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

/* ヒーローエリアのスタイル */
.faq-hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(#2d543c 1px, transparent 1px);
    background-size: 16px 16px;
    pointer-events: none;
}

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

/* ヒーローエリアの検索ボックス */
.faq-search-wrap {
    margin-top: 32px;
    max-width: 576px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.faq-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search-icon {
    position: absolute;
    left: 16px;
    color: #9ca3af;
    font-size: 20px;
}

.faq-search-input {
    width: 100%;
    padding-left: 48px;
    padding-right: 40px;
    padding-top: 14px;
    padding-bottom: 14px;
    background-color: #ffffff;
    border: 1px solid var(--color-earth-100);
    border-radius: 9999px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    font-size: 16px;
    color: #1f2937;
    outline: none;
    transition: var(--transition-default);
    box-sizing: border-box;
}

.faq-search-input:focus {
    box-shadow: 0 0 0 2px var(--color-forest-600);
    border-color: transparent;
}

.faq-search-clear {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
}

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

/* カテゴリフィルタータブ */
.faq-cat-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.cat-tab {
    padding: 10px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #374151;
    transition: var(--transition-default);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

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

.cat-tab i {
    margin-right: 6px;
    color: var(--color-forest-600);
}

.cat-tab:hover {
    background-color: var(--color-forest-50);
}

.cat-tab.active {
    background-color: var(--color-forest-900);
    color: #ffffff;
    border-color: var(--color-forest-900);
}

/* カテゴリバッジ */
.badge-cat {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.badge-legal {
    background-color: #ecfdf5;
    color: #065f46;
}

.badge-procedure {
    background-color: #eff6ff;
    color: #1e40af;
}

.badge-remains {
    background-color: #fffbeb;
    color: #92400e;
}

.badge-cost {
    background-color: #faf5ff;
    color: #6b21a8;
}

/* アコーディオンリスト */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--color-earth-100);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.faq-item:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

@media (min-width: 640px) {
    .faq-button {
        padding: 24px;
    }
}

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

@media (min-width: 640px) {
    .faq-question-wrap {
        gap: 16px;
    }
}

.faq-q-label {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-color: var(--color-forest-100);
    color: var(--color-forest-900);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.faq-icon-arrow {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    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;
}

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

.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: 20px;
    border-top: 1px solid var(--color-earth-100);
    background-color: rgba(251, 249, 245, 0.5);
}

@media (min-width: 640px) {
    .faq-answer-inner {
        padding: 24px;
    }
}

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

@media (min-width: 640px) {
    .faq-answer-wrap {
        gap: 16px;
    }
}

.faq-a-label {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background-color: var(--color-forest-900);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.faq-a-text {
    font-size: 16px;
    color: #374151;
    line-height: 1.625;
}

.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-top: 32px;
}

.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: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.faq-cta-desc {
    font-size: 16px;
    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;
}

.btn-cta-line-faq {
    background-color: #06C755;
    width: 100%;
    max-width: 320px;
}

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

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