@charset "utf-8";

.content {
    padding: 5rem 0;
}

.content:first-of-type {
    padding: 5rem 0 0;
}

/* ====== Base Layout ====== */
.content.v-login .content-inner .lead {
    font-size: 1.35rem;
    line-height: 1.9;
    margin-bottom: 1.2rem
}

.content.v-login .content-inner .note {
    font-size: .95rem;
    color: #666;
    margin-top: 1rem
}

.content.v-login .content-inner h2,
.content.v-login .content-inner h3,
.content.v-login .content-inner h4 {
    scroll-margin-top: 90px
}

.content.v-login .content-inner h2 {
    display: block;
    align-items: center;
    gap: .5rem
}

.content.v-login .content-inner h3 {
    margin: 2.5rem 0;
    padding: .6rem .9rem;
    border-left: .4rem solid #00AC97;
    background: linear-gradient(90deg, rgba(0, 172, 151, .12), transparent 60%);
    display: flex;
    align-items: center;
    gap: .5rem
}

.content.v-login .content-inner h4 {
    margin: 2rem 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .45rem
}

.content.v-login .content-inner p {
    margin: 1.5rem 0
}

.content.v-login .content-inner ul {
    margin: .4rem 0 .8rem 1.2rem
}

.content.v-login .content-inner li {
    margin: .25rem 0;
    line-height: 1.8
}

.content.v-login .content-inner > * + * {
    margin-top: .4rem
}

.content.v-login .content-inner p,
.content.v-login .content-inner li {
    line-height: 1.95
}

.content.v-login .content-inner ul {
    margin-left: 1em
}

/* ====== TOC Accordion ====== */
.toc {
    background: #F6FFFD;
    border: 1px solid #D8F3EE;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04)
}

#toc-top {
    margin-bottom: 5rem;
}

.toc__toggle {
    width: 100%;
    background: transparent;
    border: 0;
    padding: .9rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    font-weight: 700;
    color: #008B7F;
    cursor: pointer
}

.toc__toggle:focus {
    outline: 2px solid #00ac97;
    outline-offset: 2px
}

.toc__icon {
    transition: transform .2s
}

.toc.is-open .toc__icon {
    transform: rotate(180deg)
}

.toc__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease
}

.toc.is-open .toc__panel {
    max-height: 1000px
}

.toc__list {
    list-style: none;
    margin: .2rem 0 1rem;
    padding: 0 1.2rem 1rem
}

.toc__list li {
    margin: .35rem 0
}

.toc__link {
    color: #007e72;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .55rem;
    border-radius: 6px;
    transition: color .2s, background .2s
}

.toc__link:hover {
    color: #00ac97;
    text-decoration: underline
}

.toc__link.is-active {
    background: #E8FFFA;
    color: #00665C;
    text-decoration: none
}

/* ====== Table ====== */
.rules-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: .6rem 0 1rem
}

.rules-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 560px;
    border: 1px solid #E6F3F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .04)
}

.rules-table thead th {
    background: linear-gradient(180deg, #F3FFFC 0%, #E9FBF6 100%);
    color: #045;
    text-align: left;
    padding: .85rem .9rem;
    font-weight: 700;
    font-size: .95rem;
    border-bottom: 1px solid #D7EFEA
}

.rules-table tbody td {
    padding: .8rem .9rem;
    vertical-align: top;
    border-bottom: 1px solid #EEF6F4;
    background: #fff
}

.rules-table tbody tr:nth-child(even) td {
    background: #FAFEFD
}

.rules-table tbody tr:last-child td {
    border-bottom: 0
}

@media(max-width:640px) {
    .rules-table {
        font-size: .95rem
    }
}

/* ====== Emphasis ====== */
.hl {
    background: linear-gradient(transparent 60%, #FFF4B8 60%);
    font-weight: 700
}

.badge {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    color: #066;
    background: #DFF7F2;
    border: 1px solid #99E4D9;
    padding: .15rem .5rem;
    border-radius: .4rem
}

/* ====== Divider ====== */
.rule-divider {
    height: 1px;
    background: linear-gradient(90deg, #EAF7F4, transparent);
    border: 0;
    margin: 1.6rem 0
}

/* ====== Minor text ====== */
.muted {
    color: #6b7280
}

/* ====== Smooth Scroll & motion配慮 ====== */
html {
    scroll-behavior: smooth
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    .current-section-marker,
    .toc__icon {
        transition: none
    }
}

/* ====== Back-to-top ====== */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 999;
    display: none;
    align-items: center;
    gap: .4rem;
    background: #00AC97;
    color: #fff;
    border: none;
    border-radius: 999px;
    min-height: 44px;
    padding: .7rem 1rem;
    box-shadow: 0 8px 18px rgba(0, 172, 151, .35);
    cursor: pointer;
    transition: transform .1s ease, opacity .2s ease
}

.back-to-top:hover {
    transform: translateY(-1px)
}

.back-to-top:active {
    transform: translateY(0)
}

.back-to-top[aria-hidden="false"] {
    display: inline-flex
}

.back-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px
}

/* ====== Current section marker (小演出) ====== */
.current-section-marker {
    position: fixed;
    left: 0;
    top: 65px;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #00AC97, transparent);
    transition: width .3s ease;
    z-index: 10;
    pointer-events: none
}


/*▼ 色付きボックス（シンプル）*/
:root {
    --oz-teal: #00AC97;
    --oz-ink: #0b3b35;
    --oz-yellow: #F9C846;
    --oz-red: #FF6B6B;
    --oz-green: #22C55E;
    --oz-bg: #fff;
}

.oz-callout {
    border: 1px solid currentColor;
    border-radius: 12px;
    padding: 0 1.5rem;
    background: var(--oz-bg);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    line-height: 1.8;
    display: block;
}

.oz-callout strong {
    font-weight: 800;
}

.oz-callout + .oz-callout {
    margin-top: .8rem;
}

/* バリアント */
.oz-callout--info {
    color: var(--oz-ink);
    background: linear-gradient(180deg, #F3FFFC, #E9FBF6);
    border-color: #D7EFEA;
}

.oz-callout--warn {
    color: #6b4a00;
    background: linear-gradient(180deg, #FFF9E8, #FFF3C9);
    border-color: #F6D77C;
    margin-bottom: 3rem;
}

.oz-callout--success {
    color: #064e3b;
    background: linear-gradient(180deg, #ECFFF6, #DFFBEA);
    border-color: #B7F0D1;
    margin-bottom: 3rem;
}

/* 見出し（任意） */
.oz-callout__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    margin: 0 0 .3rem;
}

.btn-big {
    display: inline-block;
    padding: 0.8em 3em;
    background-color: #f4a000;
    box-shadow: 0 5px 0 #ee7800;
    /* 影の太さ・色 */
    border-radius: 60px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    /* 文字の下線を消す */
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
    width: 100%;
    font-weight: bold;
}

.btn-big:hover {
    box-shadow: none;
    transform: translateY(5px);
    color: #fff;
}


/* ====== 可読幅：PCは適正幅、モバイルは約20文字幅 ====== */
@media(min-width:768px) {
    .content.v-login .content-inner {
        max-width: 68ch;
        margin-inline: auto
    }

}

@media(max-width:640px) {
    .content.v-login .content-inner {
        /* 約20文字相当の可読幅（CJKは厳密20字ではないが視認上20前後に収束） */
        max-width: 100%;
        margin-inline: auto;
        padding-inline: 5%
    }

    .content {
        padding: 2.5rem 0;
    }
}
