/* 全体を内包するセクションのスタイル */
#gentuki-guide-section {
    /* カラー定義をこのセクション内で有効にする */
    --primary-color: #5D2AEE; /* プライマリーカラー (メイン) */
    --primary-variant-color: #3F1DAB; /* プライマリーバリアント (サブ) */
    --secondary-color: #00C896; /* セカンダリーカラー (アクセント) */
    --text-color: #333;
    --background-color: #f9f9f9;
    --border-color: #ddd;
    --orange-color: #FF8C00; /* オレンジ色の定義 */

    /* 書体を丸ゴシック系に変更 */
    font-family: 'Corporate Logo Rounded', 'Avenir Rounded', 'M Plus Rounded 1c', 'BIZ UDPGothic', 'メイリオ', Meiryo, 'ヒラギノ丸ゴ ProN W4', 'Hiragino Maru Gothic ProN', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0; /* 既存サイトの余白に影響しないようにリセット */
    padding: 0; /* 既存サイトの余白に影響しないようにリセット */
    box-sizing: border-box; /* パディングやボーダーが幅に影響しないように */
}

/* ヘッダー */
#gentuki-guide-section header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#gentuki-guide-section header h1 {
    margin: 0;
    font-size: 2.2em;
}

/* 目次リンクリストのスタイル - PC版の調整 */
#gentuki-guide-section .table-of-contents {
    padding: 0 20px;
    margin: 10px auto 20px;
    max-width: 800px;
}

#gentuki-guide-section .table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 両端揃えに調整 */
    align-items: flex-start;
}

#gentuki-guide-section .table-of-contents ul li {
    /* flex-basis: calc(50% - 20px); で2列にする（左右のマージン分を引く） */
    flex-basis: calc(50% - 20px);
    max-width: calc(50% - 20px); /* 念のためmax-widthも指定 */
    margin-right: 10px; /* 右側にスペース */
    margin-left: 10px; /* 左側にもスペース */
    margin-bottom: 5px; /* 下側にスペース */
    box-sizing: border-box; /* パディングやボーダーを含めて幅を計算 */
}

/* 最後の要素が単独で来た場合に中央に寄せる（任意） */
/* #gentuki-guide-section .table-of-contents ul li:last-child:nth-child(odd) {
    margin-left: auto;
    margin-right: auto;
} */


#gentuki-guide-section .table-of-contents ul li a {
    color: var(--orange-color);
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    line-height: 1.2;
    display: inline-block;
    padding: 2px 0;
}

#gentuki-guide-section .table-of-contents ul li a:hover {
    text-decoration: underline;
}


/* メインコンテンツ */
#gentuki-guide-section main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 各ガイド項目 (section.guide-item) */
#gentuki-guide-section .guide-item {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

#gentuki-guide-section .guide-item h2 {
    color: var(--primary-variant-color);
    font-size: 1.8em;
    border-bottom: 3px solid var(--primary-variant-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* 本文テキストのフォントサイズを関連情報本文と同じに設定 */
#gentuki-guide-section p {
    margin-bottom: 1em;
    font-size: 1.3em;
}

/* 関連情報セクションの囲みスタイル */
#gentuki-guide-section .related-info .box {
    background-color: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

#gentuki-guide-section .related-info .box h3 {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: -20px -20px 20px -20px;
    font-size: 1.5em;
    border-bottom: none;
    box-sizing: border-box;
    width: auto;
}


#gentuki-guide-section .related-info dl,
#gentuki-guide-section .related-info ul {
    font-size: 1.3em;
}

#gentuki-guide-section .related-info dl {
    margin-bottom: 0;
}

#gentuki-guide-section .related-info dt {
    font-weight: bold;
    color: var(--primary-variant-color);
    margin-top: 15px;
    margin-bottom: 5px;
}

#gentuki-guide-section .related-info dd {
    margin-left: 1em;
    margin-bottom: 10px;
}

#gentuki-guide-section .related-info ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

#gentuki-guide-section .related-info ul li {
    margin-bottom: 8px;
}

#gentuki-guide-section .related-info ul li strong {
    color: var(--primary-variant-color);
}


/* フッター（削除） */
/* #gentuki-guide-section footer {
    background-color: var(--primary-variant-color);
    color: #fff;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
} */

/* レスポンシブ対応 */
@media (max-width: 768px) {
    #gentuki-guide-section header h1 {
        font-size: 1.8em;
    }

    /* 目次リンクリストのスマホでの調整 */
    #gentuki-guide-section .table-of-contents {
        padding: 0 15px;
        margin: 10px auto 15px;
        font-size: 1.4em;
    }
    #gentuki-guide-section .table-of-contents ul {
        justify-content: flex-start; /* スマホ版は左寄せ */
    }
    #gentuki-guide-section .table-of-contents ul li {
        margin-right: 15px;
        margin-bottom: 3px;
        flex-basis: auto; /* スマホ版では自動幅に戻す */
        max-width: none; /* スマホ版ではmax-widthも解除 */
    }
    #gentuki-guide-section .table-of-contents ul li a {
        font-size: 1.1em;
        line-height: 1.2;
    }


    #gentuki-guide-section .guide-item h2 {
        font-size: 1.5em;
    }

    /* スマホ版での関連情報ボックスの幅調整 */
    #gentuki-guide-section .related-info .box {
        width: 90%;
        box-sizing: border-box;
    }

    /* スマホ版での関連情報見出しのスタイル（水色見出し） */
    #gentuki-guide-section .related-info .box h3 {
        width: calc(100% + 40px);
        margin-left: -20px;
        font-size: 1.3em;
    }

    /* スマホ版での関連情報内のテキストサイズ調整 */
    #gentuki-guide-section .related-info dl,
    #gentuki-guide-section .related-info ul,
    #gentuki-guide-section .related-info p {
        font-size: 1.3em;
    }

    #gentuki-guide-section main {
        margin: 15px auto;
        padding: 0 15px;
    }
}