@charset "utf-8";

/* ============================================================
  1. Base Layout
============================================================ */
.page_faq_wrapper {
    background-color: #F3F8FB;
    padding: 8rem 0 12rem;
    position: relative;
    z-index: 1;
}

.page_faq_container {
    max-width: 1440px;
    margin: 0 auto;
}

.page_faq_lead {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 4rem;
    line-height: 2;
}

/* --- カテゴリナビゲーション --- */
.page_faq_nav_wrap {
    background-color: #3583C6;
    border-radius: 40px;
    padding: 4rem 6rem;
    margin-bottom: 8rem;
}

.page_faq_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; 
    row-gap: 2.4rem;
    max-width: 800px;
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .page_faq_nav {
        max-width: 450px;
    }
}

@media (max-width: 767px) {
    .page_faq_nav {
        justify-content: center; 
        gap: 1.6rem;
    }
}

.page_faq_nav_link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    color: #3583C6;
    font-size: 1.6rem;
    padding: 1.6rem 4rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid #FFF;
}

.page_faq_nav_link:hover {
    background-color: transparent;
    color: #FFF;
}

/* --- 白コンテナ --- */
.page_faq_content {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.page_faq_block {
    background-color: #FFF;
    border-radius: 40px;
    padding: 8rem 2rem 11rem;
}

.page_faq_block_ttl {
    text-align: center;
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 6rem;
}

.page_faq_list {
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
  2. 3-Layer Box Design (Q:80px / Shadow:84px / A)
============================================================ */
.page_faq_item {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.page_faq_item:last-child {
    margin-bottom: 0;
}

/* --- 第1層：質問（Q）の箱 (80px) --- */
.page_faq_heading {
    margin: 0;
    position: relative;
    z-index: 10; /* 最前面 */
}

.page_faq_question {
    width: 100%;
    min-height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    background-color: #F3F8FB;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-radius 0.3s ease;
    position: relative;
}

.page_faq_question[aria-expanded="true"] {
  
}
.page_faq_question::after  {
    transition: all 0.3s ease;
       content: "";
    position: absolute;
    width: 100%;
    height: calc(100% + 4px);
    /* 下部のはみ出し分 */
    background-color: #dfe3e600;
    border-radius: 8px;
    left: 0;
    top: 0;
    z-index: -1;
    pointer-events: none;
}
/* 2. 影（背景）をボタンの真裏に敷く */
.page_faq_question[aria-expanded="true"]::after {
    content: "";
    position: absolute;
    width: 100%;
    height: calc(100% + 4px); /* 下部のはみ出し分 */
    background-color: #DFE3E6;
    border-radius: 8px ;
    left: 0;
    top: 0;
    z-index: -1;
    pointer-events: none; /* はみ出した要素によるクリックイベントの阻害を防止 */
}
.page_faq_question_txt {
    display: flex;
    align-items: flex-start;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
}

.icon_q, .icon_a {
    margin-right: 2rem;
    font-size: 2rem;
    font-family: "Saira", sans-serif;
    flex-shrink: 0;
    line-height: 1;
}
.icon_q { color: #3583C6; margin-top: 0.4rem; }
.icon_a { color: #F47F53; margin-top: 0.6rem; }

.page_faq_answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 240ms ease, visibility 0s 240ms;
    z-index: 1;
    position: relative;
    visibility: hidden;
    overflow: hidden;
    background-color: #DFE3E6; /* 第2層：影の色 */
    border-radius: 0 0 8px 8px;
    margin-top: -4px;
}

.page_faq_answer[data-state="open"] {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 240ms ease, visibility 0s 0s;
}

/* 回答の箱の実体 (#E9EDF0) */
.page_faq_answer_wrap {
    min-height: 0;
    background-color: #E9EDF0; 
    padding-top: 0px; 
}

.page_faq_answer_inner {
    padding: 2.4rem 4rem;
}

/* 復活：横並びレイアウト */
.page_faq_answer_flex {
    display: flex;
    align-items: flex-start;
}

.page_faq_answer_txt {
    font-size: 1.6rem;
    line-height: 2;
    color: #333;
    margin: 0;
}

/* ============================================================
  3. Icon Animation (Central Scale)
============================================================ */

.page_faq_question_icon {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

/* 青い背景： scale で中央から膨らむ（レイアウト不動） */
.page_faq_question_icon::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #3583C6;
    border-radius: 8px;
    z-index: -1;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1);
    will-change: transform;
}

.page_faq_question:hover .page_faq_question_icon::before {
    transform: scale(1.0625);
}

.page_faq_question_icon::after,
.page_faq_question_icon span {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #FFF;
    border-radius: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.page_faq_question_icon::after { transform: rotate(0deg); }
.page_faq_question_icon span { transform: rotate(-90deg); }

.page_faq_question[aria-expanded="true"] .page_faq_question_icon span {
    transform: rotate(0deg);
    opacity: 1;
}

/* ============================================================
  4. Responsive
============================================================ */
@media (max-width: 1440px) {
    .page_faq_container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}
/* ============================================================
  5. Tablet Responsive (max-width: 1024px)
============================================================ */
@media (max-width: 1024px) {
    .page_faq_wrapper {
        padding: 6rem 0 10rem;
    }

    .page_faq_container {
        padding-left: 3rem;
        padding-right: 3rem;
    }

    /* 角丸を40pxから32pxに変更 */
    .page_faq_nav_wrap {
        padding: 3.2rem 4rem;
        margin-bottom: 6rem;
        border-radius: 32px; 
    }

    .page_faq_nav_link {
        padding: 1.2rem 2.4rem;
        font-size: 1.5rem;
    }

    .page_faq_content {
        gap: 6rem;
    }

    /* 角丸を40pxから32pxに変更 */
    .page_faq_block {
        padding: 6rem 2rem 8rem;
        border-radius: 32px; 
    }

    .page_faq_block_ttl {
        font-size: 2.8rem;
        margin-bottom: 4rem;
    }

    .page_faq_question {
        padding: 2rem 3.2rem;
    }

    .page_faq_answer_inner {
        padding: 2.4rem 3.2rem;
    }
}

/* ============================================================
  6. SP Responsive (max-width: 767px)
============================================================ */
@media (max-width: 767px) {
    .page_faq_wrapper {
        padding: 4rem 0 8rem;
    }

    .page_faq_container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .page_faq_lead {
        font-size: 1.4rem;
        margin-bottom: 3.2rem;
    }

    /* 角丸を32pxから20pxに変更 */
    .page_faq_nav_wrap {
        padding: 2.4rem 2rem;
        margin-bottom: 4rem;
        border-radius: 20px; 
    }

    /* 最小サイズ 20rem の追加 */
    .page_faq_nav_link {
        padding: 1rem 1.6rem;
        font-size: 1.3rem;
        border-radius: 6px;
        min-width: 20rem; 
    }

    .page_faq_content {
        gap: 4rem;
    }

    /* 角丸を32pxから20pxに変更 */
    .page_faq_block {
        padding: 4rem 1.6rem 6rem;
        border-radius: 20px; 
    }

    .page_faq_block_ttl {
        font-size: 2rem;
        margin-bottom: 3.2rem;
    }

    /* Qの箱 */
    .page_faq_question {
        padding: 1.6rem 1.6rem;
        min-height: 64px;
    }

    .page_faq_question_txt {
        font-size: 1.5rem;
        line-height: 1.6;
        align-items: flex-start;
    }

    .icon_q, .icon_a {
        font-size: 1.8rem;
        margin-right: 1.2rem;
    }

    .icon_q {
        margin-top: 0.2rem;
    }

    /* アイコンの縮小 */
    .page_faq_question_icon {
        width: 24px;
        height: 24px;
        margin-left: 1.2rem;
    }

    .page_faq_question_icon::before {
        border-radius: 6px;
    }

    .page_faq_question_icon::after,
    .page_faq_question_icon span {
        width: 12px;
    }

    /* Aの箱 */
    .page_faq_answer_inner {
        padding: 2rem 1.6rem;
    }

    .page_faq_answer_txt {
        font-size: 1.4rem;
        line-height: 1.8;
    }

}

/* --- ホバーアクション修正 (最下部追記用) --- */

/* PC・マウス操作時：元のデザイン（背景透明・文字白）を適用 */
@media (hover: hover) {
    .page_faq_nav_link {
        transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
        border: 1px solid transparent; /* 背景透明時のガタつき防止用 */
    }
    .page_faq_nav_link:hover {
        background-color: transparent !important;
        color: #FFF !important;
        border-color: #FFF; /* 枠線を表示してボタンの形を維持 */
    }
}

/* スマホ・タップ操作時：ホバー演出（背景透明化）を完全に無効化 */
@media (any-hover: none) {
    .page_faq_nav_link:hover {
        background-color: #FFF !important;
        color: #3583C6 !important;
        border-color: transparent !important;
    }
    /* アコーディオンのアイコン拡大もリセット */
    .page_faq_question:hover .page_faq_question_icon::before {
        transform: scale(1) !important;
    }
}
.more_contents {
    margin-top: -4rem;
    padding-top: 20rem;
    @media (max-width: 1024px) {
        padding-top: 16rem;
    }
    @media (max-width: 767px) {
        padding-top: 12rem;
    }
}

