:root {
    --paper: #FAF9F6;
    --ink: #333333;
    --muted: #999999;
    --faint: #b5b5b5;
    --line: #eeeeee;
    --soft: #f7f7f7;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #FAF9F6; }
body.yhl {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #FAF9F6;
    color: var(--ink);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.yhl.lock { overflow: hidden; }
body.yhl :where(h1, h2, h3, p) { margin: 0; }
img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: #eeeeee; color: #333333; }

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
}
.skip:focus {
    left: 16px;
    z-index: 90;
    background: #FAF9F6;
    padding: 8px 12px;
}

.yhl-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px max(24px, calc((100% - 1300px) / 2)) 16px;
    background: rgba(255, 255, 255, 0.38);
    border-bottom: 0;
    box-shadow: none;
    -webkit-backdrop-filter: saturate(180%) blur(28px);
    backdrop-filter: saturate(180%) blur(28px);
}
.yhl-header.is-scrolled {
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    -webkit-backdrop-filter: saturate(200%) blur(40px);
    backdrop-filter: saturate(200%) blur(40px);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .yhl-header,
    .yhl-header.is-scrolled {
        background: rgba(250, 249, 246, 0.94);
    }
}
.header-end {
    display: flex;
    align-items: center;
    gap: 8px;
}
.brand {
    text-decoration: none;
    color: var(--ink);
}
.brand strong {
    display: block;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.15;
}
.brand small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    letter-spacing: 0.28em;
    color: #b5b5b5;
}
.yhl-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: 18px;
}
#openMenu { display: none; }
.yhl-nav > a,
.nav-parent {
    position: relative;
    background: none;
    border: 0;
    padding: 0 0 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.06em;
    color: #333333;
}
.yhl-nav > a.active::after,
.yhl-nav > a:hover::after,
.nav-parent.active::after,
.nav-parent:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 16px;
    height: 1px;
    background: var(--ink);
    transform: translateX(-50%);
}
.nav-drop { position: relative; }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 10px;
    z-index: 5;
}
.nav-drop:hover .nav-sub,
.nav-drop:focus-within .nav-sub { display: block; }
.nav-sub-inner {
    background: #FAF9F6;
    border: 1px solid var(--line);
    min-width: 132px;
    padding: 8px;
    display: flex;
    flex-direction: column;
}
.nav-sub a {
    text-decoration: none;
    text-align: center;
    padding: 8px 14px;
    font-size: 14px;
    letter-spacing: 0.08em;
    white-space: nowrap;
}
.nav-sub a:hover,
.nav-sub a.active { background: var(--soft); }
.tools {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}
.icon-btn, .overlay-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: var(--ink);
}
.icon-btn .icon-close { display: none; }
.icon-btn.is-open .icon-menu { display: none; }
.icon-btn.is-open .icon-close { display: block; }

.overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(250, 249, 246, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay[hidden] { display: none !important; }
.overlay-x {
    position: absolute;
    top: 26px;
    right: clamp(28px, 6vw, 88px);
}
.search-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    width: min(560px, 86vw);
}
.search-panel input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #2f2c28;
    background: transparent;
    text-align: center;
    font-size: 28px;
    letter-spacing: 0.12em;
    padding: 10px 8px 14px;
}
.search-panel input:focus { outline: none; }
.search-panel input::placeholder { color: #c8c3bb; }
.menu-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 80px 24px;
}
.menu-panel > a {
    text-decoration: none;
    font-size: 28px;
    letter-spacing: 0.18em;
}
.menu-panel > a.active { box-shadow: inset 0 -1px 0 var(--ink); }
.menu-group { text-align: center; }
.menu-group p {
    font-size: 13px;
    letter-spacing: 0.28em;
    color: var(--faint);
    margin-bottom: 8px;
}
.menu-group a {
    display: block;
    text-decoration: none;
    font-size: 22px;
    letter-spacing: 0.14em;
    padding: 4px 0;
}

.yhl-main { flex: 1; display: flex; flex-direction: column; }
.shell { width: min(1300px, calc(100% - 48px)); margin: 0 auto; }
.rule { display: block; width: 28px; height: 1px; background: #ddd8d1; }

.home-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: min(1300px, calc(100% - 48px));
    margin: 0 auto;
}
.stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 0 20px;
}
.today {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    color: #9a9a9a;
    font-size: 18px;
    letter-spacing: 0.28em;
}
.today i { width: 36px; height: 1px; background: #dcdcdc; }
.stage-board {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 72px 56px 0;
}
.edge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #c8c8c8;
    text-decoration: none;
}
.edge:hover { color: #333; }
.edge-prev { left: 8px; }
.edge-next { right: 8px; }
.pic {
    display: flex;
    justify-content: center;
    width: 100%;
    line-height: 0;
}
.pic a { display: block; max-width: 100%; line-height: 0; }
.pic img {
    display: block;
    width: min(1000px, 100%);
    height: auto;
    max-height: 62vh;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}
.stage-copy { width: 100%; text-align: center; margin-top: 56px; }
.stage-copy h1 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.14em;
}
.stage-meta {
    margin: 0;
    padding-top: 22px;
    color: #9a9a9a;
    font-size: 13px;
    letter-spacing: 0.08em;
}
.stage-meta .bar { margin: 0 14px; color: #dddddd; }
.stage-excerpt {
    max-width: 640px;
    margin: 0 auto;
    padding-top: 28px;
    color: #888888;
    font-size: 14px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid #e5e5e5;
    background: #FAF9F6;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-ghost:hover { background: #333333; color: #ffffff; border-color: #333333; }
.empty-frame {
    width: min(420px, 100%);
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: var(--muted);
    background: #fafafa;
    letter-spacing: 0.08em;
}

.page { padding-bottom: 72px; }
.page-head { text-align: center; padding: 48px 0 32px; }
.kicker {
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.42em;
    color: var(--faint);
    margin-bottom: 12px;
}
.page-head h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: 0.1em;
}
.page-head .desc, .count {
    max-width: 520px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}
.avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    margin: 0 0 32px;
}
.filters a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding-bottom: 4px;
}
.filters a.on { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.works {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 22px;
}
.work-card { text-decoration: none; color: inherit; }
.work-card img, .work-card .ph {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #ebe6df;
    display: block;
}
.work-card h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.06em;
}
.work-card:hover img { opacity: 0.9; }
.empty-note, .end-note {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--faint);
    padding: 28px 0 8px;
    letter-spacing: 0.08em;
}
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.brand-grid a {
    text-align: center;
    text-decoration: none;
    padding: 28px 10px;
    border: 1px solid var(--line);
    letter-spacing: 0.12em;
}
.brand-grid a:hover { border-color: var(--ink); }
.sheet .prose { max-width: 760px; margin: 0 auto 40px; }

.read { padding: 8px 0 24px; }
.crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--faint);
    margin-bottom: 26px;
}
.crumb a { color: #8a857e; text-decoration: none; }
.crumb a:hover, .crumb .current { color: #6e6962; }
.read-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px 64px;
    align-items: start;
}
.read-visual img#heroImage,
#heroImage {
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    height: auto;
    cursor: zoom-in;
    box-shadow: 0 18px 48px rgba(60, 48, 30, 0.08);
}
.thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}
.thumb, .thumb-more {
    width: 74px;
    height: 74px;
    padding: 0;
    border: 1px solid transparent;
    background: var(--soft);
    overflow: hidden;
    cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.thumb.is-on { border-color: var(--ink); }
.thumb.is-extra { display: none; }
.thumbs.is-all .thumb.is-extra { display: block; }
.thumb-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-color: var(--line);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.04em;
}
.thumb-more b { font-weight: 400; font-size: 18px; line-height: 1; }
.read-meta h1 {
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: 0.06em;
    line-height: 1.25;
}
.read-meta .byline { margin-top: 12px; font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.read-meta .byline a { text-decoration: none; }
.read-meta .byline a:hover { color: var(--ink); }
.facts { margin-top: 8px; font-size: 13px; letter-spacing: 0.06em; color: #9c978f; }
.read-meta .rule { margin: 20px 0; }
.lead { font-size: 14px; line-height: 1.95; color: #6f6a64; }
.specs { margin-top: 40px; }
.spec {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 18px;
    padding: 8px 0;
    font-size: 14px;
}
.spec span:first-child { color: #a39e96; }
.actions { display: flex; gap: 12px; margin-top: 28px; }
.btn-dark, .btn-line {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #2a2a2a;
    font-size: 14px;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-decoration: none;
}
.btn-dark { flex: 1 1 auto; background: #2a2a2a; color: #fff; }
.btn-dark:hover { background: #111; }
.btn-dark:disabled { opacity: 0.6; cursor: wait; }
.btn-dark.slim { flex: none; height: 40px; padding: 0 18px; }
.btn-line {
    width: auto;
    min-width: 148px;
    flex: none;
    padding: 0 18px;
    white-space: nowrap;
    background: transparent;
    border-color: #e3dfd8;
}
.btn-line:hover, .btn-line.is-on { border-color: #2a2a2a; }
.btn-line.is-on svg { fill: currentColor; }
.fine { margin-top: 12px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
body.yhl .read-meta p.license {
    margin: 0;
    padding-top: 36px;
    line-height: 1.7;
}
.gate, .pay-box { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.gate h3, .pay-box h3 { font-size: 15px; font-weight: 500; letter-spacing: 0.14em; margin-bottom: 8px; }
.gate-row { display: flex; gap: 18px; align-items: center; margin-top: 14px; }
.gate-row img { width: 96px; height: 96px; object-fit: cover; background: #fff; }
.gate-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.gate-form input {
    width: min(240px, 100%);
    border: 0;
    border-bottom: 1px solid #d9d4cc;
    background: transparent;
    padding: 8px 0;
}
.gate-form input:focus { outline: none; border-bottom-color: var(--ink); }
.gate-result { margin-top: 16px; font-size: 14px; line-height: 1.8; color: #4e4a44; }
.gate-result img { height: auto; }
.price { margin: 8px 0 14px; font-size: 20px; letter-spacing: 0.06em; }

.read-bottom {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 36px;
}
.essay h2 { font-size: 18px; font-weight: 500; letter-spacing: 0.16em; }
.essay .rule { margin: 14px 0 18px; }
.prose { font-size: 15px; line-height: 2; color: #4e4a44; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose img { height: auto; }
.prose h2, .prose h3 { font-weight: 500; margin: 1.2em 0 0.4em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 28px; }
.tag-row a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #d9d4cc;
    border-radius: 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1.4;
}
.tag-row a:hover { color: var(--ink); border-color: #2a2a2a; }
.read-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 18px;
    margin-top: 36px;
    padding: 26px 0 8px;
}
.pager-prev, .pager-next {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}
.pager-next { justify-self: end; text-align: right; }
.pager-prev small, .pager-next small { display: block; color: var(--faint); font-size: 12px; letter-spacing: 0.08em; }
.pager-prev strong, .pager-next strong {
    display: block;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.06em;
}
.arrow { color: #8a857e; }

.yhl-foot {
    padding: 0 max(24px, calc((100% - 1300px) / 2)) 24px;
    background: #FAF9F6;
}
.yhl-foot:not(:has(.yhl-foot-inner)) { display: none; }
.yhl-foot-inner {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    color: #b5b5b5;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.yhl-foot-inner a { color: inherit; text-decoration: none; margin-left: 12px; }
.home-legal { justify-content: space-between; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(250, 249, 246, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 86vh; width: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12); }
.lightbox-close, .lightbox-nav {
    position: absolute;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}
.lightbox-close { top: 18px; right: 22px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(8px);
    background: #2a2a2a;
    color: #fff;
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 0.08em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 1px solid #2f2c28;
    outline-offset: 3px;
}
.search-panel input:focus-visible, .gate-form input:focus-visible { outline: none; }

@media (max-width: 1040px) {
    .read-top, .read-bottom { grid-template-columns: 1fr; }
    .works, .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .yhl-nav { display: none; }
    #openMenu { display: inline-flex; }
}
@media (max-width: 720px) {
    .brand strong { letter-spacing: 0.08em; font-size: 18px; }
    .today { font-size: 16px; }
    .stage-board { padding: 48px 36px 0; }
    .pic img { max-height: 48vh; }
    .stage-copy { margin-top: 36px; }
    .home-legal { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
    .actions, .gate-row { flex-direction: column; align-items: stretch; }
    .actions .btn-dark,
    .actions .btn-line {
        flex: none;
        width: 100%;
        height: 48px;
        min-height: 48px;
    }
    .btn-line, .btn-dark.slim { width: 100%; }
    .read-pager { grid-template-columns: 1fr; }
    .pager-next { justify-self: start; text-align: left; }
    .works, .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
    .thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .toast, .btn-ghost, .yhl-header { transition: none; }
}
@media print {
    .yhl-header .tools, .home-foot, .read-pager, .lightbox, .overlay, .actions, .yhl-foot { display: none !important; }
    .yhl-header { position: static; }
}
