/* =========================================================
   AIO最適化用 FAQスタイル（FAQIDバッジ対応・他要素への干渉防止）
   ========================================================= */

.cmn-faq-aio {
    font-family: sans-serif;
    color: #333;
    margin-top: 30px;
}

/* 1. 見出しのデザイン */
.cmn-faq-aio h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #002d74;
    border-bottom: 2px solid #002d74;
    padding-bottom: 8px;
    margin-top: 40px;
    margin-bottom: 20px;
}

/* 2. FAQアコーディオン（details/summary）のデザイン */
.cmn-faq__details {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}

.cmn-faq__summary {
    display: block;
    cursor: pointer;
    background-color: #f7f9fa;
    padding: 16px 20px;
    position: relative;
    list-style: none !important; /* デフォルトの三角形を消す */
}
.cmn-faq__summary::-webkit-details-marker {
    display: none !important;
}

/* アコーディオンの開閉アイコン */
.cmn-faq__summary::after {
    content: "＋";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #002d74;
    font-size: 1.2em;
}
.cmn-faq__details[open] .cmn-faq__summary::after {
    content: "－";
}

.cmn-faq__summary__tit {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    padding-right: 30px; /* アイコンと被らないように */
    line-height: 1.4;
    color: #333;
}

/* 3. FAQ本文（回答部分）のデザイン */
.cmn-faq__body {
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: #fff;
}

.cmn-faq__body p {
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 16px;
}
.cmn-faq__body p:last-child {
    margin-bottom: 0;
}
.cmn-faq__body strong {
    color: #333;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

/* 4. FAQID バッジのデザイン（担当者向け） */
.faq-id-badge {
    display: inline-block;
    font-size: 13px;
    color: #555;
    background-color: #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 12px;
    font-weight: normal;
    vertical-align: middle;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   ★ 修正：擬似要素を使って強制的にリストマーカーを描画
   --------------------------------------------------------- */
/* ulの設定 */
.cmn-faq__body ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 16px !important;
    margin-left: 0 !important;
}

.cmn-faq__body ul li {
    position: relative !important;
    padding-left: 1.2em !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* 黒丸（・）をCSSで強制的に描画 */
.cmn-faq__body ul li::before {
    content: "●" !important; /* または "・" */
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #333 !important;
    font-size: 0.8em !important;
    line-height: 1.8 !important; /* 行の高さに合わせて位置調整 */
}

/* ol（番号付きリスト）の設定 */
.cmn-faq__body ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 16px !important;
    margin-left: 0 !important;
    counter-reset: faq-counter !important; /* カウンターをリセット */
}

.cmn-faq__body ol li {
    position: relative !important;
    padding-left: 1.5em !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
    display: block !important;
}

/* 番号（1. 2. ...）をCSSで強制的に描画 */
.cmn-faq__body ol li::before {
    counter-increment: faq-counter !important;
    content: counter(faq-counter) "." !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #333 !important;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .faq-id-badge {
        font-size: 12px;
        margin-left: 0;
        margin-top: 6px;
        display: block;
        width: fit-content;
    }
    .cmn-faq__summary {
        padding: 12px 16px;
    }
    .cmn-faq__summary__tit {
        font-size: 1em;
    }
    .cmn-faq__body p {
        font-size: 14px;
    }
}

/* 画像の中央配置用スタイル */
.cmn-faq__img-wrapper {
    text-align: center;
    margin-bottom: 16px;
}
.cmn-faq__img-wrapper img {
    max-width: 100%;
    height: auto;
}

/* PC/SPの画像切り替えスタイル */
.u-sp-only {
    display: none; /* デフォルト（PC）ではスマホ用画像を非表示 */
}

@media screen and (max-width: 768px) {
    .u-pc-only {
        display: none; /* スマホではPC用画像を非表示 */
    }
    .u-sp-only {
        display: inline-block; /* スマホではスマホ用画像を表示 */
    }
}

/* PC用の2カラムレイアウト */
.cmn-faq__grid-2col {
    display: flex;
    gap: 24px; /* 左右の余白（必要に応じて調整してください） */
    margin-bottom: 20px;
}

/* 各カラムを均等な幅（50%ずつ）にする */
.cmn-faq__grid-item {
    flex: 1;
}

/* スマホ表示（768px以下）の場合は縦並びに変更 */
@media screen and (max-width: 768px) {
    .cmn-faq__grid-2col {
        flex-direction: column; /* 縦並びに指定 */
        gap: 24px; /* 上下の余白 */
    }
}

/* 申込セクション全体のスタイル */
.cmn-apply-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

/* セクションタイトル */
.cmn-apply-section__title {
    font-size: 1.3em;
    font-weight: bold;
    color: #7b978a; /* 左側のボタンに合わせたカラー */
    margin-bottom: 24px;
    line-height: 1.6;
    text-align: center;
}

/* ボタンを並べるコンテナ */
.cmn-apply-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 12px;
}

/* ボタンの共通スタイル */
.cmn-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* 横幅を均等にする */
    padding: 24px 20px;
    border-radius: 8px;
    color: #fff !important; /* aタグのデフォルト色を上書き */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    transition: opacity 0.3s ease;
}

/* ホバー（マウスオーバー）時の透過エフェクト */
.cmn-apply-btn:hover {
    opacity: 0.8;
}

/* 個別のボタン背景色 */
.cmn-apply-btn--green {
    background-color: #7b978a; 
}

.cmn-apply-btn--gray {
    background-color: #b5b5b5; 
}

/* 注釈テキスト */
.cmn-apply-note {
    font-size: 12px;
    color: #555;
    text-align: right;
    max-width: 100%;
}

/* スマホ対応（768px以下で縦並びに変更） */
@media screen and (max-width: 768px) {
    .cmn-apply-buttons {
        flex-direction: column; /* 縦並びに指定 */
        gap: 16px;
    }
    
    .cmn-apply-btn {
        width: 100%;
        padding: 20px 16px;
    }
    
    .cmn-apply-note {
        text-align: center; /* スマホでは注釈を中央寄せ */
    }
}