@charset "utf-8";

/*==============================================================
　このページのみ：navをfixedから通常フローに戻す
==============================================================*/
@media screen and (min-width: 801px) {
    nav {
        position: static !important;
        top: auto !important;
        right: auto !important;
        z-index: auto !important;
    }

    #topbar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #3b2a1a !important;
        height: auto !important;
        min-height: 70px !important;
        padding: 8px 24px !important;
    }

    #header {
        flex-shrink: 0;
    }
}

/*==============================================================
　ページタイトルバナー
==============================================================*/
#page_banner {
    width: 99%;
    margin: -70px auto 0;        /* topbarの高さ分上に引き上げ */
    padding: 118px 0 40px;       /* 上: 70px(topbar) + 48px(元のpadding) */
    background: #3b2a1a;
    background-image:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 60px
        );
    border-bottom: 1px solid #b8a070;
    text-align: center;
    position: relative;
    z-index: 1;
}


.page_banner_sub {
    width: 100%;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 13px;
    letter-spacing: 0.5em;
    color: #b8a070;
    margin: 0 0 10px;
}

.page_banner_title {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 38px;
    font-weight: normal;
    letter-spacing: 0.4em;
    color: #f5e8d0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/*==============================================================
　共通ラッパー
==============================================================*/
.htu_inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/*==============================================================
　ルール確認リンク
==============================================================*/
#rules_notice {
    width: 99%;
    margin: 0 auto;
    padding: 24px 0;
    background: rgba(139, 32, 32, 0.08);
    border-bottom: 1px solid #d4b896;
    position: relative;
    z-index: 2;                  /* page_bannerより前面に */
}

.rules_link {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 14px;
    color: #8b2020;
    text-decoration: none;
    border: 1px solid #8b2020;
    padding: 14px 20px;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    transition: background 0.2s;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.rules_link:hover { background: rgba(139,32,32,0.08); }

.rules_link_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: #8b2020;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50%;
}

.rules_link_arrow {
    margin-left: auto;
    font-size: 18px;
    color: #8b2020;
}

/*==============================================================
　目次
==============================================================*/
#toc_section {
    width: 99%;
    margin: 0 auto;
    padding: 32px 0 32px;
    border-bottom: 1px solid #b8a070;
    background: rgba(255,255,255,0.3);
    position: relative;
    z-index: 2;
}

.toc_grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.toc_item {
    display: block;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 12px;
    color: #5a3e1b;
    text-decoration: none;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid #d4b896;
    border-radius: 2px;
    background: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.toc_item:hover {
    background: #3b2a1a;
    color: #f5e8d0;
    border-color: #3b2a1a;
}

/*==============================================================
　本文エリア
==============================================================*/
#htu_body {
    width: 99%;
    margin: 0 auto;
    padding: 48px 0 60px;
    position: relative;
    z-index: 2;
}

.htu_section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px dotted #d4b896;
    scroll-margin-top: 80px;
}

.htu_section:last-of-type { border-bottom: none; }

.htu_midashi {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 20px;
    font-weight: normal;
    color: #5a3e1b;
    letter-spacing: 0.2em;
    margin: 0 0 20px;
    padding: 10px 16px;
    border-left: 4px solid #b8a070;
    background: rgba(184, 160, 112, 0.08);
}

.htu_content { padding-left: 20px; }

.htu_text {
    width: 100%;
    margin: 0 0 12px;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 15px;
    color: #4a3520;
    line-height: 2.0;
    letter-spacing: 0.08em;
}

.htu_link {
    display: inline-block;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 14px;
    color: #5a7a3a;
    text-decoration: none;
    border-bottom: 1px solid #5a7a3a;
    padding-bottom: 2px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.htu_link:hover { color: #3a5a1a; }

.htu_list {
    padding-left: 0;
    margin: 0;
    list-style: none;
    counter-reset: htu-counter;
}

.htu_list li {
    position: relative;
    padding: 12px 16px 12px 44px;
    margin-bottom: 4px;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 14px;
    color: #4a3520;
    line-height: 1.9;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.4);
    border-left: 2px solid transparent;
    transition: border-color 0.2s, background 0.2s;
}

.htu_list li:hover {
    border-left-color: #b8a070;
    background: rgba(255,255,255,0.65);
}

ol.htu_list { counter-reset: htu-counter; }

ol.htu_list li::before {
    content: counter(htu-counter);
    counter-increment: htu-counter;
    position: absolute;
    left: 12px;
    top: 12px;
    width: 22px;
    height: 22px;
    background: #3b2a1a;
    color: #b8a070;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

ul.htu_list li::before {
    content: '※';
    position: absolute;
    left: 14px;
    top: 12px;
    color: #b8a070;
    font-size: 13px;
}

.htu_note { font-size: 12px; color: #9a7a50; }

ol.htu_steps li {
    background: rgba(255,255,255,0.5);
    border-left: 2px solid #b8a070;
}

.htu_note_list {
    list-style: none;
    padding: 12px 16px;
    margin-top: 12px;
    background: rgba(184,160,112,0.08);
    border-left: 3px solid #b8a070;
}

.htu_note_list li {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 13px;
    color: #7a6040;
    line-height: 2.0;
    padding-left: 1.2em;
    position: relative;
}

.htu_note_list li::before {
    content: '※';
    position: absolute;
    left: 0;
    color: #b8a070;
}

.htu_contact_btn {
    margin-top: 20px;
    text-align: center;
}

.htu_contact_btn a {
    display: inline-block;
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 15px;
    color: #f5e8d0;
    background: #3b2a1a;
    text-decoration: none;
    padding: 14px 40px;
    border: 1px solid #b8a070;
    letter-spacing: 0.2em;
    transition: background 0.25s;
}

.htu_contact_btn a:hover { background: #5a3e1b; }

.htu_final_link {
    margin-top: 40px;
    padding: 20px 24px;
    background: rgba(255,255,255,0.45);
    border: 1px solid #d4b896;
    border-left: 4px solid #b8a070;
    text-align: center;
}

.htu_final_link a {
    font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
    font-size: 14px;
    color: #5a3e1b;
    text-decoration: none;
    line-height: 2.0;
    letter-spacing: 0.08em;
    border-bottom: 1px solid #b8a070;
    transition: color 0.2s;
}

.htu_final_link a:hover { color: #3a2a0a; }

/*==============================================================
　TOPに戻るボタン：他要素のz-indexより前面に
==============================================================*/
#page_top {
    z-index: 999;
}