@charset "UTF-8";

/**
 * FAQページ専用スタイル
 * ワンカラムレイアウト
 */

/* ======================================
   FAQページ全体のレイアウト
   ====================================== */

.faq-page-container {
    background: #f8f9fa;
}

.faq-page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ======================================
   イントロダクション
   ====================================== */

.faq-page-intro {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-page-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

/* ======================================
   カテゴリーセクション
   ====================================== */

.faq-category-section {
    margin-bottom: 50px;
}

.faq-category-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--main-color, #eb610e);
    margin-bottom: 30px;
    padding: 15px 20px;
    background: #fff;
    border-left: 4px solid var(--main-color, #eb610e);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-category-title i {
    margin-right: 10px;
    opacity: 0.8;
}

/* ======================================
   FAQアイテム（トップページと同じデザイン）
   ====================================== */

.faq-page-content .faq__wrap {
    margin-bottom: 0;
}

.faq-page-content .faq__list {
    margin-bottom: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-page-content .faq__list:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* もっと見るボタンは不要なので非表示 */
.faq-page-content .faq__more-wrapper {
    display: none;
}

/* 隠れたアイテムも全て表示 - 詳細度を高めて!important不要に */
.faq-page-container .faq-page-content .faq__list--hidden {
    display: block;
    opacity: 1;
    filter: none;
    pointer-events: auto;
}

.faq-page-container .faq-page-content .faq__list--hidden::after {
    display: none;
}

/* 4番目のFAQアイテムのぼかしを解除 - 詳細度を高めて対応 */
.faq-page-container .faq-page-content .faq__wrap .faq__list:nth-child(4) {
    display: block;
    position: relative;
    opacity: 1;
    filter: none;
    max-height: none;
    overflow: visible;
    pointer-events: auto;
    z-index: auto;
}

/* 4番目のFAQアイテムのafter要素を削除 */
.faq-page-container .faq-page-content .faq__wrap .faq__list:nth-child(4)::after {
    display: none;
    content: none;
    background: none;
}

/* 全てのFAQアイテムが正常に表示されるように - 詳細度を高めて対応 */
.faq-page-container .faq-page-content .faq__wrap .faq__list {
    opacity: 1;
    filter: none;
    pointer-events: auto;
    position: relative;
    overflow: visible;
}

/* 全てのFAQアイテムのafter要素を削除（グラデーションマスク） */
.faq-page-container .faq-page-content .faq__wrap .faq__list::after {
    display: none;
    content: none;
    background: none;
}

/* FAQアコーディオンのアニメーション設定 - 連動したアニメーション */
.faq-page-container .faq-page-content .faq__answer {
    padding: 0;
    overflow: hidden;
    /* display: none; */
}

.faq-page-container .faq-page-content .faq__answer.active {
    /* display: block; */
}

/* アニメーション用の内部要素 - 高さアニメーションと同期 */
.faq-page-container .faq-page-content .faq__answer-inner {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px 24px 56px;
    opacity: 1;
    transform: translateY(0);
}

.faq-page-container .faq-page-content .faq__answer.active .faq__answer-inner {
    opacity: 1;
    transform: translateY(0);
}

/* display切替を無効化して高さアニメを生かす */
.faq-page-container .faq-page-content dd.faq__answer { display: block; }
.faq-page-container .faq-page-content dd.faq__answer.active { display: block; } /* レガシー互換用 */


/* ===== FAQ：is-open / is-closed + CSS変数 --h で往復アニメ ===== */
.faq-page-container dd.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
  will-change: max-height;
  --h: 1200px; /* フォールバック。JSが実高さで上書き */
}

.faq-page-container dd.faq__answer.is-open {
  max-height: var(--h);
}

.faq-page-container dd.faq__answer.is-closed {
  max-height: 0;
}

/* ※ display の切替はしない（トランジションが効かなくなるため） */


/* ======================================
   CTA（お問い合わせ）セクション
   ====================================== */

.faq-cta-section {
    margin-top: 80px;
}

.faq-cta-box {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid var(--main-color, #eb610e);
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-cta-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--main-color, #eb610e);
    margin-bottom: 20px;
}

.faq-cta-title i {
    margin-right: 10px;
    font-size: 24px;
}

.faq-cta-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 35px;
}

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

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
    justify-content: center;
}

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

.faq-cta-btn--primary {
    background: var(--main-color, #eb610e);
    color: #fff;
    border: 2px solid var(--main-color, #eb610e);
}

.faq-cta-btn--primary:hover {
    background: #fff;
    color: var(--main-color, #eb610e);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(235, 97, 14, 0.3);
}

.faq-cta-btn--secondary {
    background: #fff;
    color: var(--main-color, #eb610e);
    border: 2px solid var(--main-color, #eb610e);
}

.faq-cta-btn--secondary:hover {
    background: var(--main-color, #eb610e);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(235, 97, 14, 0.3);
}

/* ======================================
   レスポンシブデザイン
   ====================================== */

@media (max-width: 1200px) {
    .faq-page-content {
        max-width: 100%;
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    .faq-page-content {
        padding: 40px 15px;
    }

    .faq-page-intro {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    .faq-page-intro p {
        font-size: 15px;
    }

    .faq-category-section {
        margin-bottom: 40px;
    }

    .faq-category-title {
        font-size: 20px;
        padding: 12px 15px;
        margin-bottom: 20px;
    }

    .faq-cta-section {
        margin-top: 60px;
    }

    .faq-cta-box {
        padding: 40px 25px;
    }

    .faq-cta-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .faq-cta-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .faq-page-content {
        padding: 30px 10px;
    }

    .faq-page-intro {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .faq-page-intro p {
        font-size: 14px;
        line-height: 1.7;
    }

    .faq-category-title {
        font-size: 18px;
        padding: 10px 12px;
    }

    .faq-cta-section {
        margin-top: 40px;
    }

    .faq-cta-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

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

    .faq-cta-title i {
        display: block;
        margin: 0 0 10px 0;
        font-size: 28px;
    }

    .faq-cta-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .faq-cta-btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: auto;
    }

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

/* ======================================
   アニメーション
   ====================================== */

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-category-section {
    animation: slideInFromBottom 0.6s ease-out;
}

.faq-cta-section {
    animation: slideInFromBottom 0.8s ease-out;
}

/* ======================================
   印刷用スタイル
   ====================================== */

@media print {
    .faq-page-container .banner,
    .faq-cta-section,
    .faq__toggle-icon {
        display: none;
    }

    .faq__answer {
        max-height: none !important;
        display: block !important;
    }

    .faq__answer-inner {
        opacity: 1 !important;
        transform: none !important;
    }

    .faq__list {
        page-break-inside: avoid;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        padding: 15px;
    }
}