:root {
    --stst-yellow: #ffcf21;
    --stst-yellow-soft: #fff4b8;
    --stst-orange: #f26a2a;
    --stst-charcoal: #252525;
    --stst-ink: #2c2d30;
    --stst-muted: #6c7179;
    --stst-border: #dedbd3;
    --stst-surface: #ffffff;
    --stst-cream: #f7f4ec;
    --stst-danger: #b73c3c;
    --stst-radius-lg: 26px;
    --stst-shadow: 0 22px 62px rgba(40, 35, 27, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
    overflow-x: hidden;
}

body {
    min-width: 320px;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 94% 5%, rgba(255, 207, 33, 0.19), transparent 30rem),
        repeating-linear-gradient(
            -45deg,
            rgba(37, 37, 37, 0.027) 0,
            rgba(37, 37, 37, 0.027) 14px,
            transparent 14px,
            transparent 28px
        ),
        linear-gradient(180deg, #fcfbf7 0, var(--stst-cream) 40rem, #f2efe7 100%);
    color: var(--stst-ink);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "Yu Gothic",
        Meiryo,
        sans-serif;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

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

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

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

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

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

.header-nav {
    display: flex;
    min-width: 0;
    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;
    flex: 0 0 auto;
    text-decoration: none;
    white-space: nowrap;
}

.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);
}

.guide-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 207, 33, 0.18), transparent 25rem),
        linear-gradient(135deg, #1e1e1e 0, #2b2b2b 62%, #202020 100%);
    color: #fff;
}

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

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

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

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

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

.guide-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;
}

.guide-hero__zebra {
    width: 100%;
    height: 14px;
    background: repeating-linear-gradient(
        -45deg,
        var(--stst-yellow) 0,
        var(--stst-yellow) 18px,
        #151515 18px,
        #151515 36px
    );
}

.guide-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;
}

.guide-toc {
    position: sticky;
    top: 96px;
    min-width: 0;
}

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

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

.guide-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;
}

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

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

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

.guide-document {
    min-width: 0;
    max-width: 100%;
}

.guide-intro {
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid #e5c64a;
    border-radius: var(--stst-radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 207, 33, 0.18), transparent 62%),
        #fffdf4;
    box-shadow: 0 14px 34px rgba(60, 50, 25, 0.07);
}

.guide-intro strong {
    display: block;
    color: var(--stst-charcoal);
    font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.guide-intro p {
    margin: 9px 0 0;
    color: #5d6065;
    font-size: 0.88rem;
}

.guide-section,
.guide-application {
    min-width: 0;
    max-width: 100%;
    margin-bottom: 18px;
    padding: clamp(24px, 4vw, 42px);
    scroll-margin-top: 96px;
    border: 1px solid var(--stst-border);
    border-radius: var(--stst-radius-lg);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--stst-shadow);
}

.guide-section__heading {
    display: grid;
    margin-bottom: 20px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ebe8e1;
    text-align: left;
}

.guide-section__heading span {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--stst-charcoal);
    color: var(--stst-yellow);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.guide-section h2,
.guide-application h2 {
    min-width: 0;
    margin: 0;
    color: var(--stst-charcoal);
    text-align: left;
    font-size: clamp(1.14rem, 2.5vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.guide-section > p,
.guide-section li {
    color: #4f5359;
}

.guide-section > p {
    margin: 0;
}

.guide-section > p + p {
    margin-top: 14px;
}

.guide-check-list,
.guide-prohibited-list {
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-check-list {
    display: grid;
    gap: 10px;
}

.guide-check-list li {
    position: relative;
    min-width: 0;
    padding: 13px 15px 13px 44px;
    border: 1px solid #ece7df;
    border-radius: 12px;
    background: #fbfaf7;
    font-size: 0.88rem;
    line-height: 1.7;
}

.guide-check-list li::before {
    position: absolute;
    top: 13px;
    left: 15px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--stst-yellow);
    color: var(--stst-charcoal);
    content: "✓";
    font-size: 0.72rem;
    font-weight: 950;
}

.guide-note {
    margin-top: 20px;
    padding: 16px 18px;
    border: 1px solid #edca45;
    border-radius: 14px;
    background: #fff7cf;
}

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

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

.guide-prohibited-list {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

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

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

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

.guide-inline-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    margin-top: 18px;
    padding: 9px 16px;
    border: 1px solid var(--stst-charcoal);
    border-radius: 10px;
    color: var(--stst-charcoal);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.guide-inline-link:hover,
.guide-inline-link:focus-visible {
    background: var(--stst-charcoal);
    color: #fff;
    transform: translateY(-1px);
}

.guide-application {
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 207, 33, 0.15), transparent 58%),
        var(--stst-charcoal);
    color: #fff;
}

.guide-application h2 {
    margin-top: 8px;
    color: #fff;
    font-size: clamp(1.55rem, 4vw, 2.35rem);
}

.guide-application > p:not(.guide-application__label) {
    max-width: 700px;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.76);
}

.guide-application__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.guide-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0.86rem;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.guide-button:hover,
.guide-button:focus-visible {
    transform: translateY(-2px);
}

.guide-button--primary {
    background: var(--stst-yellow);
    color: var(--stst-charcoal);
    box-shadow: 0 10px 28px rgba(255, 207, 33, 0.2);
}

.guide-button--secondary {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.guide-button--secondary:hover,
.guide-button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.14);
}

.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) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-toc {
        position: static;
    }

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

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

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

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

    .guide-toc a {
        padding: 8px 11px;
        white-space: nowrap;
    }
}

@media (max-width: 760px) {
    .site-header {
        min-height: 64px;
        gap: 12px;
        padding: 10px 14px;
    }

    .site-logo img {
        width: clamp(125px, 34vw, 160px);
    }

    .header-nav {
        max-width: 58vw;
        justify-content: flex-start;
        gap: 14px;
        overflow-x: auto;
        padding: 5px 1px 8px;
        font-size: 0.72rem;
        scrollbar-width: none;
    }

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

    .guide-hero__inner {
        width: calc(100% - 28px);
        padding-top: 56px;
    }

    .guide-layout {
        width: calc(100% - 24px);
        margin-top: 24px;
        margin-bottom: 54px;
    }

    .guide-toc__inner {
        display: block;
    }

    .guide-toc__label {
        display: block;
        padding: 12px 16px 9px;
    }

    .guide-toc ol {
        padding: 8px 10px 11px;
    }

    .guide-section,
    .guide-application,
    .guide-intro {
        border-radius: 18px;
    }

    .guide-section__heading {
        grid-template-columns: 1fr;
        gap: 9px;
        align-items: start;
    }

    .guide-section__heading span {
        justify-self: start;
    }

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

    .guide-application__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .site-footer {
        padding: 36px 18px 28px;
    }

    .site-footer__brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

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

    .header-nav {
        max-width: 54vw;
    }

    .guide-hero h1 {
        font-size: clamp(2.05rem, 13vw, 3.35rem);
        word-break: keep-all;
    }

    .guide-hero__lead {
        font-size: 0.9rem;
    }

    .guide-meta {
        display: grid;
        justify-items: start;
    }

    .guide-section,
    .guide-application {
        padding: 22px 18px;
    }

    .guide-intro {
        padding: 20px 18px;
    }

    .guide-section__heading h2 {
        font-size: 1.17rem;
    }

    .guide-check-list li,
    .guide-prohibited-list li {
        padding-right: 12px;
        font-size: 0.82rem;
    }

    .guide-application__actions {
        grid-template-columns: 1fr;
    }

    .guide-button {
        width: 100%;
    }

    .site-footer nav {
        display: grid;
        gap: 9px;
    }
}

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

    .header-nav {
        max-width: 50vw;
        gap: 12px;
        font-size: 0.68rem;
    }

    .guide-hero__inner {
        width: calc(100% - 22px);
    }

    .guide-layout {
        width: calc(100% - 18px);
    }

    .guide-section,
    .guide-application,
    .guide-intro {
        padding-right: 15px;
        padding-left: 15px;
    }
}
