:root {
    --stst-yellow: #ffcf21;
    --stst-yellow-soft: #fff4b8;
    --stst-orange: #f26a2a;
    --stst-charcoal: #242424;
    --stst-ink: #2d2d2d;
    --stst-muted: #6e737b;
    --stst-border: #dfddd6;
    --stst-surface: #ffffff;
    --stst-cream: #f7f4ec;
    --stst-danger: #bf3d3d;
    --stst-radius-lg: 28px;
    --stst-radius-md: 18px;
    --stst-shadow: 0 24px 70px rgba(38, 33, 24, 0.11);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 95% 5%, rgba(255, 207, 33, 0.19), transparent 32rem),
        linear-gradient(180deg, #fbfaf6 0, var(--stst-cream) 42rem, #f3f0e8 100%);
    color: var(--stst-ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.85;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px clamp(18px, 4vw, 56px);
    border-bottom: 1px solid rgba(223, 221, 214, 0.88);
    background: rgba(255, 253, 248, 0.92);
    box-shadow: 0 8px 28px rgba(38, 33, 24, 0.055);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    width: clamp(150px, 18vw, 205px);
    height: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(12px, 2.2vw, 28px);
    color: #555b62;
    font-size: 0.82rem;
    font-weight: 800;
}

.header-nav a {
    position: relative;
    text-decoration: none;
}

.header-nav a::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--stst-orange);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.terms-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: var(--stst-charcoal);
}

.terms-hero__pattern {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 14px;
    background: repeating-linear-gradient(-45deg,
            var(--stst-yellow) 0,
            var(--stst-yellow) 18px,
            #151515 18px,
            #151515 36px);
}

.terms-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(64px, 9vw, 118px) 0 clamp(56px, 8vw, 96px);
}

.terms-hero__eyebrow,
.terms-toc__label,
.terms-closing__label {
    margin: 0;
    color: var(--stst-yellow);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.terms-hero h1 {
    max-width: 880px;
    margin: 12px 0 18px;
    font-size: clamp(2.35rem, 6vw, 5.25rem);
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.terms-hero__lead {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.77);
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.terms-meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
}

.terms-layout {
    display: grid;
    width: min(1280px, calc(100% - 36px));
    margin: clamp(30px, 6vw, 72px) auto 88px;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 96px;
}

.terms-toc__inner {
    overflow: hidden;
    border: 1px solid var(--stst-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(38, 33, 24, 0.07);
}

.terms-toc__label {
    padding: 18px 20px 13px;
    background: var(--stst-charcoal);
}

.terms-toc ol {
    max-height: calc(100vh - 190px);
    margin: 0;
    padding: 12px 10px 14px 36px;
    overflow: auto;
    color: #797e85;
    font-size: 0.76rem;
    font-weight: 800;
}

.terms-toc li::marker {
    color: #b3b6bb;
    font-size: 0.68rem;
}

.terms-toc a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    color: #555a61;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
    background: var(--stst-yellow-soft);
    color: var(--stst-charcoal);
}

.terms-document {
    min-width: 0;
}

.terms-summary {
    display: grid;
    margin-bottom: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.terms-summary>div {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(242, 106, 42, 0.18);
    border-radius: var(--stst-radius-md);
    background: linear-gradient(145deg, #fff 0, #fffaf0 100%);
    box-shadow: 0 12px 28px rgba(38, 33, 24, 0.055);
}

.terms-summary strong {
    display: block;
    color: var(--stst-charcoal);
    font-size: 0.96rem;
}

.terms-summary p {
    margin: 8px 0 0;
    color: var(--stst-muted);
    font-size: 0.78rem;
    line-height: 1.7;
}

.terms-section,
.terms-closing {
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--stst-border);
    border-radius: var(--stst-radius-lg);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--stst-shadow);
}

.terms-section {
    scroll-margin-top: 96px;
}

.terms-section__heading {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid #ebe8e1;
    padding-bottom: 18px;
}

.terms-section__heading span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--stst-charcoal);
    color: var(--stst-yellow);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.terms-section h2,
.terms-closing h2 {
    margin: 0;
    color: var(--stst-charcoal);
    font-size: clamp(1.14rem, 2.5vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.terms-section>p,
.terms-closing p {
    color: #53575d;
}

.terms-section ol,
.terms-section ul {
    margin: 0;
    padding-left: 1.45em;
}

.terms-section li {
    padding-left: 0.4em;
    color: #4d5157;
}

.terms-section li+li {
    margin-top: 11px;
}

.terms-section li::marker {
    color: var(--stst-orange);
    font-weight: 900;
}

.terms-prohibited-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    padding-left: 0 !important;
    list-style: none;
}

.terms-prohibited-list li {
    position: relative;
    margin: 0 !important;
    padding: 12px 14px 12px 38px;
    border: 1px solid #ece7df;
    border-radius: 12px;
    background: #fbfaf7;
    font-size: 0.85rem;
    line-height: 1.68;
}

.terms-prohibited-list li::before {
    position: absolute;
    top: 12px;
    left: 14px;
    color: var(--stst-danger);
    content: "×";
    font-size: 1rem;
    font-weight: 950;
}

.terms-small {
    margin: 18px 0 0;
    padding: 13px 15px;
    border-left: 4px solid var(--stst-yellow);
    background: #fffaf0;
    color: #686d74 !important;
    font-size: 0.78rem;
}

.terms-note {
    margin-top: 22px;
    padding: 17px 18px;
    border-radius: 14px;
}

.terms-note--beta {
    border: 1px solid #edca45;
    background: #fff7cf;
}

.terms-note strong {
    display: block;
    color: #765700;
    font-size: 0.82rem;
}

.terms-note p {
    margin: 4px 0 0;
    color: #665b38;
    font-size: 0.8rem;
}

.terms-closing {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 207, 33, 0.13), transparent 55%),
        var(--stst-charcoal);
    color: #fff;
}

.terms-closing h2 {
    margin-top: 8px;
    color: #fff;
}

.terms-closing p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.77);
}

.site-footer {
    padding: 46px clamp(20px, 5vw, 64px) 34px;
    border-top: 10px solid transparent;
    border-image: repeating-linear-gradient(-45deg,
            var(--stst-yellow) 0,
            var(--stst-yellow) 18px,
            var(--stst-charcoal) 18px,
            var(--stst-charcoal) 36px) 10;
    background: #fffdf8;
    color: var(--stst-charcoal);
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.site-footer__brand img {
    width: 170px;
    height: auto;
}

.site-footer__brand p {
    margin: 0;
    color: #77736b;
    font-size: 0.74rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
}

.site-footer nav a {
    color: #56524b;
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
    color: var(--stst-orange);
}

.site-footer__copy {
    margin: 26px 0 0;
    color: #99938a;
    font-size: 0.7rem;
}

:focus-visible {
    outline: 3px solid rgba(242, 106, 42, 0.36);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .terms-layout {
        grid-template-columns: 1fr;
    }

    .terms-toc {
        position: static;
    }

    .terms-toc__inner {
        display: grid;
        grid-template-columns: 140px minmax(0, 1fr);
        align-items: stretch;
    }

    .terms-toc__label {
        display: grid;
        place-items: center;
        padding: 16px;
    }

    .terms-toc ol {
        display: flex;
        max-height: none;
        gap: 2px;
        padding: 10px;
        overflow-x: auto;
        list-style: none;
    }

    .terms-toc li {
        flex: 0 0 auto;
    }

    .terms-toc a {
        padding: 9px 11px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 74px;
    }

    .site-header {
        min-height: 62px;
        padding: 9px 14px;
    }

    .site-logo img {
        width: 146px;
    }

    .header-nav {
        gap: 10px;
        font-size: 0.7rem;
    }

    .header-nav a:nth-child(2) {
        display: none;
    }

    .terms-hero__inner {
        width: min(100% - 28px, 1180px);
        padding-top: 50px;
        padding-bottom: 62px;
    }

    .terms-hero__pattern {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 12px;
    }

    .terms-layout {
        width: min(100% - 24px, 1280px);
        margin-top: 22px;
        gap: 18px;
    }

    .terms-toc__inner {
        display: block;
    }

    .terms-toc__label {
        display: block;
    }

    .terms-summary {
        grid-template-columns: 1fr;
    }

    .terms-summary>div {
        padding: 18px;
    }

    .terms-section,
    .terms-closing {
        margin-bottom: 12px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .terms-section__heading {
        display: block;
    }

    .terms-section__heading span {
        display: inline-flex;
        margin-bottom: 10px;
    }

    .terms-prohibited-list {
        grid-template-columns: 1fr;
    }

    .site-footer__brand {
        display: block;
    }

    .site-footer__brand p {
        margin-top: 8px;
    }
}

@media (max-width: 460px) {
    .header-nav a:first-child {
        display: none;
    }

    .terms-hero h1 {
        font-size: 2.2rem;
    }

    .terms-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .terms-meta span {
        justify-content: center;
    }

    .terms-section ol,
    .terms-section ul {
        padding-left: 1.2em;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Mobile overflow fix / 2026-08-01
   ========================================================= */

/* 冒頭の3つの要点カードは不要のため非表示 */
.terms-summary {
    display: none;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    overflow-wrap: anywhere;
    word-break: normal;
}

.site-header,
.terms-hero,
.terms-layout,
.terms-document,
.terms-section,
.terms-closing,
.site-footer,
.terms-toc,
.terms-toc__inner,
.terms-toc ol {
    min-width: 0;
    max-width: 100%;
}

.site-logo,
.header-nav,
.terms-hero__inner,
.terms-section__heading,
.site-footer__brand {
    min-width: 0;
}

.terms-section h2,
.terms-closing h2,
.terms-section p,
.terms-closing p,
.terms-section li,
.terms-toc a,
.header-nav a,
.site-footer a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 760px) {
    .site-header {
        width: 100%;
        padding: 10px 12px;
        gap: 10px;
    }

    .site-logo {
        flex: 0 1 auto;
    }

    .site-logo img {
        width: min(138px, 42vw);
        max-width: 100%;
    }

    .header-nav {
        min-width: 0;
        flex: 1 1 auto;
        justify-content: flex-end;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    .header-nav a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .terms-hero__inner {
        width: calc(100% - 28px);
        max-width: 1180px;
    }

    .terms-layout {
        width: calc(100% - 24px);
        max-width: 1280px;
    }

    .terms-toc__inner {
        width: 100%;
        overflow: hidden;
    }

    .terms-toc ol {
        width: 100%;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .terms-toc ol::-webkit-scrollbar {
        display: none;
    }

    .terms-toc li {
        min-width: 0;
        max-width: none;
    }

    .terms-document {
        width: 100%;
    }

    .terms-section,
    .terms-closing {
        width: 100%;
        padding: 22px 17px;
        overflow: hidden;
    }

    .terms-section__heading {
        width: 100%;
        gap: 8px;
    }

    .terms-section__heading span {
        max-width: 100%;
    }

    .terms-section ol,
    .terms-section ul {
        width: 100%;
        margin: 0;
        padding-left: 1.25rem;
    }

    .terms-prohibited-list {
        padding-left: 0 !important;
    }

    .terms-prohibited-list li {
        width: 100%;
        padding-right: 12px;
    }

    .terms-meta {
        width: 100%;
    }

    .terms-meta span {
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }

    .site-footer {
        width: 100%;
        padding: 36px 16px 28px;
        overflow: hidden;
    }

    .site-footer__brand,
    .site-footer nav {
        width: 100%;
    }

    .site-footer__brand img {
        width: min(165px, 62vw);
        max-width: 100%;
    }
}

@media (max-width: 520px) {
    .site-header {
        align-items: center;
    }

    .header-nav {
        gap: 8px;
        font-size: 0.66rem;
    }

    .terms-hero h1 {
        font-size: clamp(2rem, 12vw, 2.7rem);
    }

    .terms-hero__lead {
        font-size: 0.9rem;
        line-height: 1.75;
    }

    .terms-layout {
        width: calc(100% - 16px);
    }

    .terms-section,
    .terms-closing {
        padding: 20px 14px;
        border-radius: 18px;
    }

    .terms-section h2,
    .terms-closing h2 {
        font-size: 1.08rem;
    }

    .terms-section ol,
    .terms-section ul {
        padding-left: 1.1rem;
    }

    .terms-section li {
        padding-left: 0.18rem;
    }
}

@media (max-width: 380px) {
    .site-logo img {
        width: 118px;
    }

    .header-nav a {
        font-size: 0.62rem;
    }

    .terms-hero__inner {
        width: calc(100% - 20px);
    }

    .terms-meta {
        grid-template-columns: 1fr;
    }
}