/* =========================================================
   よくあるご質問（FAQ）ページのスタイルとアコーディオン
   ========================================================= */

/* 1. 全体の箱のデザイン */
.fs-p-faq-page {
    background-color: #ffffff;
    border: 1px solid #d4c6b5;
    max-width: 900px;
    width: 100%;
    padding: 60px 40px;
    margin: 100px auto 40px;
    box-shadow: 0 4px 15px rgba(94, 76, 65, 0.1);
    position: relative;
    box-sizing: border-box;
}

/* 内側の二重線 */
.fs-p-faq-page::before {
    content: ""; position: absolute; top: 5px; right: 5px; bottom: 5px; left: 5px;
    border: 1px solid #d4c6b5; pointer-events: none; z-index: 10;
}

/* 2. タイトルのデザイン */
.fs-p-faq-header {
    text-align: center; margin-bottom: 40px; position: relative; z-index: 20;
}
.fs-p-faq-title {
    font-size: 1.8rem; color: #5e4c41; letter-spacing: 0.1em; margin: 0 0 5px 0; font-weight: normal;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.fs-p-faq-subtitle {
    font-size: 0.8rem; color: #a89a8d; font-family: "Times New Roman", serif; letter-spacing: 0.2em;
}

/* 3. リストの枠線 */
.fs-p-faq-list {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid #d4c6b5; position: relative; z-index: 20;
}
.fs-p-faq-item {
    border-bottom: 1px solid #d4c6b5; position: relative;
}

/* 4. 質問部分（アコーディオンボタン） */
.fs-p-faq-toggle {
    display: flex; align-items: center; width: 100%; background: transparent;
    border: none; padding: 25px 15px; cursor: pointer; text-align: left;
    transition: background-color 0.3s;
}
.fs-p-faq-toggle:hover { background-color: #fcfaf5; }

/* 「Q.」マーク */
.fs-p-faq-q-mark {
    font-family: "Times New Roman", serif; font-size: 16px; color: #8c7b70;
    width: 40px; flex-shrink: 0; font-weight: bold;
}
/* 質問テキスト */
.fs-p-faq-q-text {
    flex: 1; font-size: 16px; font-weight: bold; color: #5e4c41; line-height: 1.5; padding-right: 20px;
    font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* 開閉アイコン（＋と－） */
.fs-p-faq-icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.fs-p-faq-icon::before, .fs-p-faq-icon::after {
    content: ""; position: absolute; background-color: #5e4c41; transition: transform 0.3s ease, opacity 0.3s ease;
}
.fs-p-faq-icon::before { top: 6px; left: 0; width: 14px; height: 2px; }
.fs-p-faq-icon::after { top: 0; left: 6px; width: 2px; height: 14px; }
.fs-p-faq-toggle[aria-expanded="true"] .fs-p-faq-icon::after { transform: rotate(90deg); opacity: 0; }

/* 5. 回答部分（滑らかな開閉） */
.fs-p-faq-content {
    display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; background-color: #fcfaf5;
}
.fs-p-faq-toggle[aria-expanded="true"] + .fs-p-faq-content {
    grid-template-rows: 1fr;
}
.fs-p-faq-content-inner { overflow: hidden; }

/* 回答のレイアウト（「A.」マークとテキスト） */
.fs-p-faq-a-box {
    display: flex; padding: 30px 15px; border-top: 1px dashed #d4c6b5; align-items: flex-start;
}
.fs-p-faq-a-mark {
    font-family: "Times New Roman", serif; font-size: 16px; color: #bf4d4d; /* 回答は赤色でアクセント */
    width: 40px; flex-shrink: 0; font-weight: bold; margin-top: -5px;
}
.fs-p-faq-a-text {
    flex: 1; color: #5e4c41; line-height: 1.8; font-size: 16px;
}
.fs-p-faq-a-text p { margin: 0 0 15px 0; }
.fs-p-faq-a-text p:last-child { margin-bottom: 0; }

/* 回答内の箇条書きリスト */
.fs-p-faq-a-list {
    padding-left: 20px; margin-bottom: 15px;
}
.fs-p-faq-a-list li {
    margin-bottom: 15px; list-style-type: disc; color: #8c7b70;
}
.fs-p-faq-a-list strong {
    color: #5e4c41; font-size: 16px;
}

/* 補足や注意書きの箱 */
.fs-p-faq-notice, .fs-p-faq-size-box {
    background-color: #ffffff; border: 1px solid #e8e2da; padding: 15px; margin: 15px 0; border-radius: 2px;
}

/* 6. お問い合わせ導線ボタン（枠外） */
.fs-p-faq-button-container {
    text-align: center; margin-bottom: 120px; position: relative; z-index: 20;
}
.fs-p-faq-button-text {
    color: #5e4c41; margin-bottom: 15px; font-size: 16px;
}
.fs-p-faq-button {
    display: inline-block; background-color: #5e4c41; color: #ffffff; border: 1px solid #5e4c41;
    padding: 15px 60px; font-family: inherit; font-size: 16px; cursor: pointer; transition: all 0.3s;
    text-decoration: none; min-width: 300px; box-sizing: border-box; border-radius: 2px;
}
.fs-p-faq-button:hover { background-color: #ffffff; color: #5e4c41; }

/* 7. スマホ表示 */
@media screen and (max-width: 1023px) {
    .fs-p-faq-page { padding: 40px 15px; margin: 80px auto 40px; }
    .fs-p-faq-toggle { padding: 20px 10px; }
    .fs-p-faq-q-mark, .fs-p-faq-a-mark { width: 30px; font-size: 16px; }
    .fs-p-faq-q-text { font-size: 16px; padding-right: 25px; }
    .fs-p-faq-a-box { padding: 20px 10px; }
    .fs-p-faq-a-text { font-size: 16px; }
    .fs-p-faq-button { width: 100%; min-width: auto; }
    .fs-p-faq-button-container { padding: 0 15px; }
}