@layer components {
    /* ========================================
     要項ページ専用スタイル
     高齢ゴルファー向けに視認性を重視
     ======================================== */

    /* ----------------------------------------
     基本設定
     ---------------------------------------- */
    body.youkou .page-content .container.simple {
        font-size: 1.4rem;
        color: #333;
    }

    /* ----------------------------------------
     セクションタイトル（h3.title）
     ---------------------------------------- */
    body.youkou .page-content .container.simple h3.title {
        margin-top: 0;
        margin-bottom: 1.5em;
        font-size: 1.5em;
        font-weight: bold;
        color: #1a365d;
    }

    /* ----------------------------------------
     小見出し（h3:not(.title)）
     ---------------------------------------- */
    body.youkou .page-content .container.simple h3:not(.title) {
        margin-top: 2.5em;
        margin-bottom: 1em;
        font-size: 1.25em;
        font-weight: bold;
        color: #2d3748;
        border-left: 4px solid #005da8;
        padding-left: 0.75em;
    }

    /* ----------------------------------------
     小小見出し（h4）
     h3の子要素として階層を表現
     ---------------------------------------- */
    body.youkou .page-content .container.simple h4 {
        margin-top: 1.8em;
        margin-bottom: 0.8em;
        margin-left: 0;
        font-size: 1.1em;
        font-weight: bold;
        color: #2d3748;
        border-left: 3px solid #e69500;
        padding-left: 0.75em;
        background: linear-gradient(to right, #fffbf0, transparent);
        padding-top: 0.3em;
        padding-bottom: 0.3em;
    }

    /* ----------------------------------------
     段落
     ---------------------------------------- */
    body.youkou .page-content .container.simple p {
        margin-bottom: 1.2em;
        line-height: 2;
    }

    /* ----------------------------------------
     強調（strong）
     ---------------------------------------- */
    body.youkou .page-content .container.simple strong {
        font-weight: bold;
        color: #1a365d;
    }

    /* ----------------------------------------
     番号付きリスト（ol）
     ---------------------------------------- */
    body.youkou .page-content .container.simple ol {
        margin: 1.5em 0;
        padding-left: 2em;
        list-style-type: decimal;
    }

    body.youkou .page-content .container.simple ol>li {
        margin-bottom: 1.2em;
        line-height: 2;
        padding-left: 0.5em;
    }

    body.youkou .page-content .container.simple ol>li::marker {
        font-weight: bold;
        color: #005da8;
    }

    /* ----------------------------------------
     入れ子リスト（ol > li > ul）
     補足説明として視覚的に差別化
     ---------------------------------------- */
    body.youkou .page-content .container.simple ol>li>ul {
        margin-top: 0.8em;
        margin-bottom: 0.8em;
        margin-left: 0;
        padding: 1em 1em 1em 2.5em;
        background-color: #f8f9fa;
        border-left: 4px solid #005da8;
        border-radius: 4px;
        list-style-type: circle;
    }

    body.youkou .page-content .container.simple ol>li>ul>li {
        margin-bottom: 0.6em;
        font-size: 0.95em;
        line-height: 1.8;
        color: #4a5568;
    }

    body.youkou .page-content .container.simple ol>li>ul>li:last-child {
        margin-bottom: 0;
    }

    /* ----------------------------------------
     ol直後のul（注意書きリスト）
     ---------------------------------------- */
    body.youkou .page-content .container.simple ol+ul {
        margin: 1.5em 0;
        padding: 1.2em 1.2em 1.2em 2.5em;
        background-color: #fffbf0;
        border-left: 4px solid #ff8c00;
        border-radius: 4px;
        list-style-type: disc;
    }

    body.youkou .page-content .container.simple ol+ul>li {
        margin-bottom: 0.8em;
        line-height: 1.9;
        color: #2d3748;
    }

    body.youkou .page-content .container.simple ol+ul>li:last-child {
        margin-bottom: 0;
    }

    body.youkou .page-content .container.simple ol+ul>li::marker {
        color: #ff8c00;
    }

    /* ----------------------------------------
     通常のul（単独で出現）
     ---------------------------------------- */
    body.youkou .page-content .container.simple ul:not(ol + ul):not(ol > li > ul) {
        margin: 1.5em 0;
        padding-left: 2em;
        list-style-type: disc;
    }

    body.youkou .page-content .container.simple ul:not(ol + ul):not(ol > li > ul)>li {
        margin-bottom: 0.8em;
        line-height: 1.9;
    }

    body.youkou .page-content .container.simple ul:not(ol + ul):not(ol > li > ul)>li:last-child {
        margin-bottom: 0;
    }

    body.youkou .age-category-dl {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.3em 0;
        align-items: baseline;
    }

    body.youkou .age-category-dl dt {
        display: flex;
        align-items: baseline;
    }

    body.youkou .age-category-dl dt p {
        margin: 0;
        font-weight: bold;
        white-space: nowrap;
    }

    body.youkou .age-category-dl dt::after {
        content: "";
        flex: 1;
        height: 1px;
        background: repeating-linear-gradient(to right,
                #999 0,
                #999 2px,
                transparent 2px,
                transparent 5px);
        margin: 0 0.5em;
        min-width: 1em;
        align-self: center;
    }

    body.youkou .age-category-dl dd {
        margin: 0;
    }

    body.youkou .age-category-dl dd p {
        margin: 0;
    }



    /* ----------------------------------------
     レスポンシブ対応（スマートフォン）
     ---------------------------------------- */
    @media screen and (max-width: 750px) {

        body.youkou .page-content .container.simple {
            font-size: 16px;
            line-height: 1.8;
        }

        body.youkou .page-content .container.simple h3.title {
            font-size: 1.35em;
            margin-bottom: 1.2em;
        }

        body.youkou .page-content .container.simple h3:not(.title) {
            font-size: 1.2em;
            margin-top: 2em;
            margin-bottom: 0.8em;
            border-left-width: 3px;
            padding-left: 0.6em;
        }

        body.youkou .page-content .container.simple h4 {
            font-size: 2.9rem;
            margin-top: 1.5em;
            margin-bottom: 0.6em;
            margin-left: 0;
            border-left-width: 2px;
            padding-left: 0.6em;
        }

        body.youkou .page-content .container.simple ol,
        body.youkou .page-content .container.simple ul {
            padding-left: 1.2em;
        }

        body.youkou .page-content .container.simple ol>li>ul {
            padding: 0.6em 0.6em 0.6em 1.5em;
            border-left-width: 3px;
        }

        body.youkou .page-content .container.simple ol+ul {
            padding: 0.8em 0.8em 0.8em 1.5em;
            border-left-width: 3px;
        }

        body.youkou .age-category-dl {
            display: block;
        }

        body.youkou .age-category-dl dt::after {
            display: none;
        }

        body.youkou .age-category-dl dd {
            margin-left: 1em;
            margin-bottom: 0.8em;
        }
    }
}