@charset "UTF-8";

/* ==========================================================
   FAQ Page
   ========================================================== */

#faq-main {
    width: 100%;
    color: #333;
}

/* テキスト色ユーティリティ（既存サイト準拠） */
#faq-main .text-green {
    color: #00A968;
    font-weight: bold;
}

/* --- Title Section --- */
.faq-title-section {
    text-align: center;
    padding: 50px 20px 28px;
    background-color: #fff;
    border-bottom: 4px solid #00A968;
}

.faq-title-section h1 {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    margin: 0;
    letter-spacing: 0.04em;
}

.faq-title-en {
    margin: 6px 0 0;
    font-size: 13px;
    letter-spacing: 0.4em;
    color: #00A968;
    font-weight: bold;
}

/* --- Breadcrumb --- */
.faq-breadcrumb {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
    font-size: 14px;
    color: #333;
}

/* --- Lead Section --- */
.faq-lead-section {
    background-color: #fff;
    padding: 30px 20px 60px;
}

.faq-lead-inner {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border: 2px solid #C4F2DD;
    border-radius: 18px;
    padding: 36px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 169, 104, 0.06);
    position: relative;
}

.faq-lead-inner::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background: #00A968;
    border-radius: 2px;
}

.faq-lead-text {
    font-size: 18px;
    line-height: 1.9;
    margin: 0 0 12px;
    font-weight: 500;
}

.faq-lead-sub {
    font-size: 15px;
    color: #555;
    margin: 0;
}

.faq-lead-link {
    color: #00A968;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-lead-link:hover {
    color: #008c56;
}

/* --- Category Navigation --- */
.faq-nav-section {
    background-image: radial-gradient(#00A968 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #f7fbf9;
    padding: 70px 20px 80px;
}

.faq-nav-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-nav-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 32px;
    position: relative;
    padding-bottom: 14px;
}

.faq-nav-title::after {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #00A968;
    border-radius: 2px;
}

.faq-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.faq-nav-card {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 2px solid #00A968;
    color: #333;
    padding: 18px 22px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    min-height: 86px;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 2px 0 #00A968;
}

.faq-nav-card:hover {
    background: #00A968;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 169, 104, 0.25);
}

.faq-nav-num {
    font-family: "Jost", Arial, sans-serif;
    font-size: 22px;
    color: #00A968;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.faq-nav-card:hover .faq-nav-num {
    color: #fff;
}

.faq-nav-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #C4F2DD;
    color: #00A968;
    border-radius: 50%;
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease;
}

.faq-nav-card:hover .faq-nav-icon {
    background: #fff;
    color: #00A968;
}

.faq-nav-label {
    font-size: 15px;
    line-height: 1.45;
}

.faq-nav-arrow {
    font-size: 11px;
    color: #00A968;
    transition: color 0.25s ease, transform 0.25s ease;
}

.faq-nav-card:hover .faq-nav-arrow {
    color: #fff;
    transform: translateX(3px);
}

/* --- Category Section --- */
.faq-cat-section {
    padding: 90px 20px 100px;
    background-color: #fff;
    scroll-margin-top: 90px;
}

.faq-cat-section.faq-cat-alt {
    background-color: #f7fbf9;
}

.faq-cat-inner {
    max-width: 940px;
    margin: 0 auto;
}

.faq-cat-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.faq-cat-num {
    display: inline-block;
    font-family: "Jost", Arial, sans-serif;
    font-size: 56px;
    line-height: 1;
    color: #C4F2DD;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.faq-cat-title {
    font-size: 30px;
    font-weight: bold;
    color: #333;
    margin: 0;
    display: inline-block;
    background: linear-gradient(transparent 62%, rgba(0, 169, 104, 0.25) 62%);
    padding: 0 6px;
}

.faq-cat-sub {
    margin: 18px auto 0;
    font-size: 15px;
    color: #555;
    max-width: 640px;
    line-height: 1.8;
}

/* --- FAQ List --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e2ece6;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
    border-color: #00A968;
    box-shadow: 0 6px 20px rgba(0, 169, 104, 0.08);
}

/* Q（summary） */
.faq-q {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 0.2s ease;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    background-color: #f7fbf9;
}

.faq-q-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #00A968;
    color: #fff;
    border-radius: 50%;
    font-family: "Jost", Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-q-text {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    line-height: 1.6;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 12px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-toggle {
    background: #00A968;
    color: #fff;
    transform: rotate(45deg);
}

/* A（answer） */
.faq-a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 0 26px 26px;
    background: #ffffff;
    animation: faqFadeIn 0.3s ease;
}

.faq-cat-alt .faq-a {
    background: #ffffff;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-a::before {
    content: "";
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(to right, transparent, #C4F2DD 30%, #C4F2DD 70%, transparent);
    margin-bottom: 18px;
}

.faq-a-badge {
    grid-column: 1;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #C4F2DD;
    color: #00A968;
    border-radius: 50%;
    font-family: "Jost", Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.faq-a-text {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    line-height: 1.95;
    color: #333;
    padding-top: 4px;
}

.faq-a-text p {
    margin: 0;
}

.faq-a-text p + p {
    margin-top: 12px;
}

.faq-a-text strong {
    background: linear-gradient(transparent 60%, rgba(0, 169, 104, 0.18) 60%);
    color: #006c44;
    font-weight: bold;
    padding: 0 2px;
}

.faq-link {
    color: #00A968;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-link:hover {
    color: #008c56;
}

/* --- CTA Section --- */
.faq-cta-section {
    padding: 80px 20px 100px;
    background: linear-gradient(180deg, #f7fbf9 0%, #eaf6ef 100%);
}

.faq-cta-inner {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.faq-cta-lead {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin: 0 0 14px;
    line-height: 1.6;
}

.faq-cta-sub {
    font-size: 15px;
    color: #555;
    margin: 0 0 32px;
    line-height: 1.8;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    min-width: 280px;
    justify-content: center;
}

.faq-cta-primary {
    background-color: #00A968;
    color: #fff;
    box-shadow: 0 6px 0 #007a4b;
}

.faq-cta-primary:hover {
    background-color: #008c56;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 122, 75, 0.3);
}

.faq-cta-secondary {
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
}

.faq-cta-secondary:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

.faq-cta-arrow {
    font-size: 11px;
}

/* ==========================================================
   レスポンシブ - Tablet (768px - 1023px)
   ========================================================== */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .faq-title-section h1 {
        font-size: 32px;
    }

    .faq-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-nav-card {
        padding: 16px 18px;
    }

    .faq-cat-title {
        font-size: 26px;
    }

    .faq-cat-num {
        font-size: 48px;
    }
}

/* ==========================================================
   レスポンシブ - SP (〜767px)
   ========================================================== */
@media screen and (max-width: 767px) {
    .faq-title-section {
        padding: 36px 20px 22px;
    }

    .faq-title-section h1 {
        font-size: 26px;
    }

    .faq-title-en {
        font-size: 11px;
    }

    .faq-lead-section {
        padding: 24px 16px 40px;
    }

    .faq-lead-inner {
        padding: 28px 22px;
    }

    .faq-lead-text {
        font-size: 15px;
        line-height: 1.85;
    }

    .faq-lead-sub {
        font-size: 13px;
    }

    /* Nav */
    .faq-nav-section {
        padding: 50px 16px 60px;
    }

    .faq-nav-title {
        font-size: 19px;
    }

    .faq-nav-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-nav-card {
        padding: 14px 16px;
        min-height: 70px;
        gap: 10px;
    }

    .faq-nav-num {
        font-size: 18px;
    }

    .faq-nav-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .faq-nav-label {
        font-size: 14px;
    }

    /* Category */
    .faq-cat-section {
        padding: 60px 16px 70px;
    }

    .faq-cat-num {
        font-size: 40px;
    }

    .faq-cat-title {
        font-size: 22px;
    }

    .faq-cat-sub {
        font-size: 14px;
    }

    /* FAQ Item */
    .faq-q {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 18px 16px;
    }

    .faq-q-badge {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .faq-q-text {
        font-size: 15px;
        line-height: 1.55;
    }

    .faq-toggle {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .faq-a {
        gap: 12px;
        padding: 0 16px 20px;
    }

    .faq-a-badge {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .faq-a-text {
        font-size: 14px;
        line-height: 1.85;
    }

    /* CTA */
    .faq-cta-section {
        padding: 60px 16px 70px;
    }

    .faq-cta-lead {
        font-size: 18px;
    }

    .faq-cta-sub {
        font-size: 13px;
    }

    .faq-cta-btn {
        padding: 16px 24px;
        font-size: 14px;
        min-width: 100%;
    }

    .faq-cta-buttons {
        flex-direction: column;
        gap: 14px;
    }
}
