@charset "UTF-8";

/* 基本設定 */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

main {
    max-width: 780px;
    margin: 0 auto;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* cta */
.cta {
    position: relative;
}

.cta-button {
    position: absolute;
    left: 50%;
    bottom: 40%;
    transform: translateX(-50%);
    width: 100%;
    animation: cta-pulse 1.5s ease-in-out infinite;
}

.cta-button img {
    display: block;
    width: 100%;
    height: auto;
}

@keyframes cta-pulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* Q&A */

.qa {
    background-image: url("../img/qa-bg.webp");
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: top center;
    padding: 300px 0 80px;
}

.qa-inner {
    width: calc(100% - 104px);
    max-width: 670px;
    margin: 0 auto;
}

.qa-item {
    margin-bottom: 55px;
}

.qa-question {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 90px;
    padding: 0 30px;
    background: #ff7628;
    color: #fff;
    border: none;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    border-radius: 18px 18px 0 0;
}

.qa-q {
    flex-shrink: 0;
    margin-right: 8px;
}

.qa-text {
    padding-right: 40px;
}

.qa-icon {
    position: absolute;
    top: 50%;
    right: 30px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
}

.qa-icon::before,
.qa-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.qa-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.3s ease;
}

.qa-item.is-open .qa-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    background: #fff;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
}

.qa-answer p {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.6;
}

.qa-item.is-open .qa-answer {
    max-height: 500px;
    padding: 25px 30px 30px;
    opacity: 1;
}

.qa-item.is-open .qa-icon::after {
    display: none;
}

/* footer */

.footer {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 35px 60px;
}

.footer-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding: 5px 20px;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
}

.footer-links a:nth-child(odd) {
  border-right: 1px solid #000;
}

.footer-copy {
  padding: 25px 20px;
  background: #ff7628;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

/* =========================
   レスポンシブ
========================= */

@media screen and (max-width: 767px) {

    /* -------------------------
       全体
    ------------------------- */

    main {
        width: 100%;
        max-width: 780px;
    }

    


    /* -------------------------
       Q&A
    ------------------------- */

    .qa {
        background-image: url("../img/qa-bg-sp.webp");
        background-size: 100% auto;
        background-position: top center;
        padding: 150px 0 50px;
    }


    .qa-inner {
        width: calc(100% - 40px);
        max-width: none;
    }

    .qa-item {
        margin-bottom: 30px;
    }

    .qa-question {
        min-height: 65px;
        padding: 15px 45px 15px 18px;
        font-size: 17px;
        line-height: 1.5;
        border-radius: 12px 12px 0 0;
    }

    .qa-q {
        margin-right: 6px;
    }

    .qa-text {
        padding-right: 0;
    }

    .qa-icon {
        right: 18px;
        width: 18px;
        height: 18px;
    }

    .qa-icon::before,
    .qa-icon::after {
        width: 18px;
        height: 2px;
    }

    .qa-answer {
        padding: 0 18px;
        border-radius: 0 0 12px 12px;
    }

    .qa-answer p {
        font-size: 16px;
        line-height: 1.7;
    }

    .qa-item.is-open .qa-answer {
        max-height: 500px;
        padding: 18px 18px 20px;
    }

    /* -------------------------
       footer
    ------------------------- */
    .footer-links {
    padding: 25px 20px;
  }

  .footer-links a {
    min-height: 50px;
    padding: 5px 10px;
    font-size: 14px;
  }

  .footer-copy {
    padding: 20px 10px;
    font-size: 13px;
  }

}