/* =========================================================
   FAQ page
   ========================================================= */

.guidebook-page.faq-page {
    margin: 0;
    background: #111;
    background-image: url("../images/icon/img_icon_back.webp");
    background-position: center top;
    background-repeat: repeat;
    background-size: 1024px auto;
    color: #fff;
}

.faq-main {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 40px 20px 0;
    box-sizing: border-box;
}

.faq-header {
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
}

.faq-title {
    margin: 0;
}

.faq-title picture,
.faq-title img {
    display: block;
}

.faq-title img {
    width: min(48vw, 820px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.faq-lead {
    margin: 12px 0 0;
    font-size: 18px;
    opacity: .9;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
}

.faq-panel {
    padding: 50px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.88);
    color: #222;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .28);  
}

.faq-panel .content__inner {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

.faq-list {
    margin: 0;
    padding: 0;
}

.faq-list dt,
.faq-list dd {
    box-sizing: border-box;
}

.faq-list dt {
    position: relative;
    margin-top: 20px;
    padding: 15px 58px 15px 20px;
    background-color: #00A86E;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.55;
    cursor: pointer;
    outline: none;
}

.faq-list dt:first-child {
    margin-top: 0;
}

.faq-list dt::before {
    display: inline-block;
    width: 18px;
    margin-right: 18px;
    content: "+";
    font-weight: 800;
    text-align: center;
}

.faq-list dt::after {
    position: absolute;
    display: block;
    top: 100%;
    left: 35px;
    width: 0;
    height: 0;
    content: "";
    border: 10px solid transparent;
    border-top-color: #00A86E;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
}

.faq-list dt:hover {
    opacity: .88;
}

.faq-list dt:focus-visible {
    box-shadow: 0 0 0 4px rgba(254, 225, 1, .9);
}

.faq-list dt.active::before {
    content: "−";
}

.faq-list dt.active::after {
    opacity: 1;
    transform: translateY(0);
}

.faq-list dd {
    display: none;
    margin: 0;
    padding: 25px 18px 18px;
    border: 2px solid #00A86E;
    border-top: none;
    background: rgba(255, 255, 255, 0.88);
    color: #222;
    font-size: 16px;
    line-height: 1.8;
    }

.faq-list dd.is-open {
    display: block;
}

.faq-list dd a {
    color: #008a5a;
    font-weight: 700;
    text-decoration: underline;
}

.faq-list dd a:hover {
    text-decoration: none;
}

.faq-back {
    margin: 48px 0 0;
    text-align: center;
}

.faq-back a {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
}

.faq-page .l-footer__guide {
    padding-top: 4vw;
}

@media (max-width: 767px) {
    .guidebook-page.faq-page {
        background-size: 100% auto;
        background-position: center top;
        background-repeat: repeat-y;
    }

    .faq-main {
        padding: 72px 10px 0;
    }

    .faq-header {
        padding: 0 8px;
        margin-bottom: 18px;
    }

    .faq-title img {
        width: min(78vw, 420px);
        max-width: 100%;
    }

    .faq-lead {
        margin-top: 8px;
        font-size: 13px;
    }

    .faq-panel {
        padding: 15px 12px 24px;
        border-radius: 24px;
    }

    .faq-list dt {
        margin-top: 10px;
        padding: 11px 12px;
        font-size: 13px;
        line-height: 1.55;
    }

    .faq-list dt::before {
        width: 15px;
        margin-right: 8px;
    }

    .faq-list dt::after {
        left: 18px;
        border-width: 5px;
    }

    .faq-list dd {
        padding: 14px 11px 11px;
        font-size: 12px;
        line-height: 1.75;
    }

    .faq-back a {
        font-size: 18px;
        -webkit-text-stroke: 1px #000;
    }

    .faq-page .l-footer__guide {
        padding-top: 6vw;
    }
}

/* =========================================================
   FAQ category spacing
   ========================================================= */
.faq-category {
    margin-top: 26px;
}

.faq-category:first-child {
    margin-top: 0;
}

.faq-category-title {
    margin: 0 0 12px;
    padding: 4px 0;
    font-size: 24px;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .faq-category {
        margin-top: 20px;
    }

    .faq-category:first-child {
        margin-top: 0;
    }

    .faq-category-title {
        margin-bottom: 9px;
        padding: 2px 0;
        font-size: 16px;
        line-height: 1.4;
    }
}


/* =========================================================
   Footer spacing adjustment
   「公式サイトへ戻る」→「購入はこちら」を40pxに統一
   ========================================================= */
.faq-page .faq-back {
    margin-bottom: 0;
}

.faq-page .l-footer__bottom-area {
    margin-top: 0;
    padding-top: 40px;
}
