/* ============================================================
   faq.css — よくある質問（FAQ）ページ固有スタイル
   ============================================================ */

/* ヒーローエリアのスタイル */
.page-hero {
    position: relative;
    padding: 48px 0 64px;
    background-color: var(--color-sand);
    overflow: hidden;
}

.faq-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(var(--color-forest-600) 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

.faq-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

.page-hero-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--color-forest-100);
    color: var(--color-forest-900);
    font-size: 14px;
    font-weight: 700;
    border-radius: 9999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.page-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-forest-900);
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .page-hero-title {
        font-size: 40px;
    }
}

.page-hero-desc {
    color: #4B5563;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ================= 質問を絞り込むカード ================= */
.faq-filter-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid var(--color-earth-100);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 24px 20px;
    text-align: left;
}

@media (min-width: 768px) {
    .faq-filter-card {
        padding: 32px 36px;
    }
}

.faq-filter-card-header {
    margin-bottom: 24px;
}

.faq-filter-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2C352E;
    margin-bottom: 4px;
}

.faq-filter-card-desc {
    font-size: 13px;
    color: #6B7280;
}

@media (min-width: 768px) {
    .faq-filter-card-desc {
        font-size: 16px;
    }
}

.faq-filter-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

@media (min-width: 768px) {
    .faq-filter-label {
        font-size: 16px;
    }
}

/* キーワード検索ボックス */
.faq-search-block {
    margin-bottom: 20px;
}

.faq-search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width: 100%;
}

.faq-search-input {
    width: 100%;
    padding: 13px 40px 13px 16px;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #1F2937;
    outline: none;
    transition: var(--transition-default);
    box-sizing: border-box;
}

.faq-search-input:focus {
    border-color: #429A42;
    box-shadow: 0 0 0 3px rgba(66, 154, 66, 0.15);
}

.faq-search-clear {
    display: none;
    position: absolute;
    right: 14px;
    top: 11px;
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 6px;
    z-index: 2;
}

.faq-search-clear:hover {
    color: #4B5563;
}

.faq-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background-color: #275B27;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-default);
    white-space: nowrap;
    box-sizing: border-box;
}

.faq-search-btn:hover {
    background-color: #1F491F;
}

/* タブレット・PC以上（横並び） */
@media (min-width: 768px) {
    .faq-search-box {
        flex-direction: row;
        gap: 8px;
    }

    .faq-search-input {
        flex: 1;
        width: auto;
    }

    .faq-search-clear {
        right: 120px;
        top: 50%;
        transform: translateY(-50%);
    }

    .faq-search-btn {
        width: auto;
        padding: 13px 24px;
    }
}

/* 区切り線「または」 */
.faq-or-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.faq-or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #E5E7EB;
}

.faq-or-divider span {
    position: relative;
    display: inline-block;
    padding: 0 16px;
    background-color: #FFFFFF;
    font-size: 13px;
    color: #9CA3AF;
}

/* ご状況別カードグリッド */
.faq-situation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 768px) {
    .faq-situation-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.faq-situation-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .faq-situation-card {
        padding: 14px 16px;
    }
}

.faq-situation-card:hover {
    border-color: #429A42;
    background-color: #F9FDF9;
}

.faq-situation-card.is-active {
    border: 2px solid #275B27;
    background-color: #F0FDF4;
    box-shadow: 0 2px 8px rgba(39, 91, 39, 0.12);
}

.faq-situation-radio {
    width: 18px;
    height: 18px;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    margin-top: 2px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.faq-situation-card.is-active .faq-situation-radio {
    border-color: #275B27;
    background-color: #275B27;
    box-shadow: inset 0 0 0 3px #FFFFFF;
}

.faq-situation-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    row-gap: 2px;
    column-gap: 8px;
    flex: 1;
}

.faq-situation-title {
    grid-column: 1;
    grid-row: 1;
    font-weight: 700;
    color: #1F2937;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .faq-situation-title {
        font-size: 18px;
    }
}

.faq-situation-count {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    font-weight: 700;
    color: #275B27;
    white-space: nowrap;
}

.faq-situation-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 12px;
    color: #6B7280;
    line-height: 1.4;
    margin: 0;
}

@media (min-width: 768px) {
    .faq-situation-desc {
        font-size: 14px;
    }
}

/* ================= よく読まれている質問クイックタグ ================= */
.faq-popular-wrap {
    margin-top: 32px;
    text-align: left;
}

.faq-popular-label {
    display: block;
    font-weight: 700;
    color: #4B5563;
    margin-bottom: 12px;
}

.faq-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.faq-popular-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 9999px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
    .faq-popular-tag {
        font-size: 16px;
    }
}

.faq-popular-tag:hover {
    background-color: #F0FDF4;
    border-color: #429A42;
    color: #275B27;
}

/* ================= カテゴリ目次インデックス ================= */
.faq-index-section {
    background-color: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--color-earth-100);
    padding: 24px 20px;
    margin-bottom: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .faq-index-section {
        padding: 32px;
    }
}

.faq-index-header {
    margin-bottom: 20px;
}

.faq-index-title {
    font-size: 22px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.faq-index-desc {
    font-size: 13px;
    color: #6B7280;
}

@media (min-width: 768px) {
    .faq-index-desc {
        font-size: 16px;
    }
}

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

@media (min-width: 768px) {
    .faq-index-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-index-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background-color: #F9F9F7;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.faq-index-card:hover {
    background-color: #FFFFFF;
    border-color: #429A42;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.faq-index-card-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-index-card-num {
    font-family: monospace;
    font-weight: 700;
    color: #275B27;
}

.faq-index-card-title {
    font-weight: 700;
    color: #1F2937;
}

.faq-index-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-index-card-count {
    font-size: 13px;
    color: #6B7280;
}

.faq-index-card-icon {
    font-size: 12px;
    color: #275B27;
}

/* ================= 絞り込み状態バナー ================= */
.faq-filter-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background-color: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 32px;
    color: #065F46;
}

.faq-filter-banner-text {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-filter-banner-reset {
    background-color: #FFFFFF;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.faq-filter-banner-reset:hover {
    background-color: #065F46;
    color: #FFFFFF;
}

/* ================= カテゴリ別セクション ================= */
.faq-category-section {
    margin-bottom: 56px;
}

.faq-category-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: none;
}

.faq-category-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 12px;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 3px solid #275B27;
}

.faq-category-num {
    font-size: 26px;
    font-weight: 700;
    color: #275B27;
    font-family: monospace;
}

.faq-category-title {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
}

.faq-category-count {
    margin-left: auto;
    padding-right: 2px;
    font-size: 14px;
    color: #6B7280;
    font-weight: 700;
}

/* タブレット・PC以上（768px〜） */
@media (min-width: 768px) {
    .faq-category-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: baseline;
        gap: 0;
        padding-bottom: 12px;
        border-bottom: 3px solid #275B27;
        margin-bottom: 20px;
    }

    .faq-category-title-wrap {
        width: auto;
        padding-bottom: 0;
        border-bottom: none;
    }

    .faq-category-title {
        font-size: 24px;
    }

    .faq-category-count {
        font-size: 16px;
    }
}

.faq-category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-category-footer {
    text-align: right;
    margin-top: 16px;
}

.faq-back-to-index {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4B5563;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.faq-back-to-index:hover {
    color: #275B27;
}

/* ================= FAQアイテム・アコーディオン ================= */
.faq-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .faq-item {
        margin-bottom: 14px;
    }
}

.faq-item:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.faq-item-highlight {
    border-color: #429A42 !important;
    box-shadow: 0 0 0 3px rgba(66, 154, 66, 0.25) !important;
    animation: faqPulse 1.5s ease-out;
}

@keyframes faqPulse {
    0% {
        box-shadow: 0 0 0 6px rgba(66, 154, 66, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 154, 66, 0);
    }
}

.faq-button {
    width: 100%;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
}

.faq-question-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.faq-q-label {
    padding: 3px 8px;
    border-radius: 6px;
    background-color: var(--color-forest-100);
    color: var(--color-forest-900);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.badge-cat {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    background-color: #F3F4F6;
    color: #4B5563;
}

@media (min-width: 768px) {
    .badge-cat {
        font-size: 14px;
    }
}

.faq-q-text {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .faq-q-text {
        font-size: 20px;
    }
}

.faq-icon-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-sand);
    color: var(--color-forest-600);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    margin-top: 2px;
}

.faq-icon-arrow i {
    font-size: 12px;
}

.faq-item.open .faq-icon-arrow {
    transform: rotate(180deg);
}

/* アコーディオン本文 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease;
    opacity: 0;
}

.accordion-content.open {
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
    opacity: 1;
}

.faq-answer-inner {
    padding: 18px 20px;
    border-top: 1px solid #F3F4F6;
    background-color: #FAF9F6;
}

.faq-answer-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.faq-a-label {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--color-forest-900);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-a-text {
    color: #374151;
    line-height: 1.7;
    flex: 1;
}

@media (min-width: 768px) {
    .faq-a-text {
        font-size: 16px;
    }
}

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

.faq-a-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ================= 該当結果なし表示 ================= */
.no-results-box {
    text-align: center;
    padding: 48px 16px;
    background-color: #FFFFFF;
    border-radius: 16px;
    border: 1px dashed var(--color-earth-200);
    margin: 32px 0;
}

.no-results-icon {
    font-size: 40px;
    color: #D1D5DB;
    margin-bottom: 12px;
}

.no-results-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-forest-900);
    margin-bottom: 4px;
}

.no-results-desc {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
}

.btn-reset-search {
    padding: 8px 20px;
    font-size: 14px;
}

/* ================= CTAセクション ================= */
.faq-cta-section {
    background: linear-gradient(to bottom right, var(--color-forest-900), var(--color-forest-800));
    color: #FFFFFF;
    border-radius: 24px;
    padding: 40px 24px;
    text-align: center;
    margin-top: 64px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .faq-cta-section {
        padding: 64px 32px;
    }
}

.faq-cta-title {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .faq-cta-title {
        font-size: 30px;
    }
}

.faq-cta-desc {
    font-size: 15px;
    color: var(--color-forest-100);
    line-height: 1.625;
    max-width: 512px;
    margin: 0 auto 24px;
}

.faq-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .faq-cta-buttons {
        flex-direction: row;
    }
}

.btn-cta-line-faq {
    background-color: var(--color-forest-line);
    width: 100%;
    max-width: 300px;
}

.btn-cta-line-faq i {
    font-size: 20px;
}

.btn-cta-web-faq {
    width: 100%;
    max-width: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}