:root {
    --bg: #FBF6EA;
    --bg-deep: #F3E6C8;
    --surface: #FFFFFF;
    --surface-soft: #F0E2BE;
    --title: #3A2A10;
    --text: #4A3A1A;
    --muted: #7A6232;
    --soft: #9A7A44;
    --gold: #C9A227;
    --gold-light: #E0BC4A;
    --gold-dark: #8C6A12;
    --ivory: #FFF8E8;
    --border: rgba(201, 162, 39, 0.18);
    --border-strong: rgba(201, 162, 39, 0.46);
    --shadow: 0 12px 28px rgba(58, 42, 16, 0.08);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { min-width: 0; background: var(--bg); scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding-top: 122px;
}
body.drawer-open, body.search-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(201,162,39,.38); outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 500; background: var(--surface); color: var(--title); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-strong); }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bar-inner, .footer-inner, .page-shell { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.crown-bar { position: fixed; inset: 0 0 auto 0; z-index: 160; height: 22px; background: var(--title); color: var(--bg-deep); font-size: 12px; }
.crown-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-control { min-width: 44px; height: 22px; padding: 0 8px; border: 0; background: transparent; color: var(--ivory); cursor: pointer; }
.palace-header { position: fixed; left: 0; right: 0; top: 22px; z-index: 155; height: 60px; background: var(--surface); border-bottom: 1px solid var(--border-strong); }
.palace-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.brand-logo { display: block; width: auto; height: 28px; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--title); letter-spacing: .04em; }
.drawer-trigger { min-width: 94px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--ivory); color: var(--title); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; }
.drawer-trigger:hover { background: var(--surface-soft); }
.drawer-mark { width: 17px; height: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.drawer-mark i { display: block; height: 1px; background: currentColor; }
.app-entry { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border-strong); color: var(--title); font-size: 14px; background: var(--surface); }
.app-entry:hover { background: var(--ivory); }
.seat-tabs { position: fixed; top: 82px; left: 0; right: 0; z-index: 150; height: 40px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ivory); border-bottom: 1px solid var(--border); padding: 4px 16px; }
.seat-link { position: relative; min-height: 32px; padding: 3px 18px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; color: var(--muted); }
.seat-link::before { content: ""; position: absolute; inset: -6px -4px; }
.seat-link:hover { color: var(--title); background: rgba(201,162,39,.08); }
.seat-link.is-current { background: var(--gold); color: var(--title); font-weight: 700; }
.site-main { min-height: 60vh; }
.page-shell { padding: 34px 0 64px; }
.page-head { margin-bottom: 24px; padding: 26px 28px; border: 1px solid var(--border); border-radius: 14px; background: linear-gradient(180deg, var(--surface) 0%, var(--ivory) 100%); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 6px; color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
h1, h2, h3 { margin-top: 0; color: var(--title); }
h1 { margin-bottom: 12px; font-size: 24px; line-height: 1.3; }
h2 { font-size: 20px; line-height: 1.4; }
h3 { font-size: 16px; line-height: 1.5; }
p { margin: 0 0 1em; }
.lead { margin-bottom: 0; max-width: 820px; font-size: 15px; line-height: 1.8; }
.section-block { margin-top: 24px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 20px rgba(58,42,16,.05); }
.section-block > :last-child { margin-bottom: 0; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-title-row h2 { margin-bottom: 0; }
.section-kicker { color: var(--muted); font-size: 13px; }
.media-slot { width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--ivory); border: 1px solid var(--border); border-radius: 12px; }
.media-slot img { width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; }
.media-banner { height: 260px; }
.media-card { height: 180px; }
.media-feature { height: 200px; }
.media-app { height: min(360px, 54vw); min-height: 260px; }
.media-brand { height: 220px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn-primary, .btn-secondary { min-height: 44px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 55%, var(--gold-dark) 100%); color: var(--title); border: 1px solid var(--gold-dark); }
.btn-secondary { background: var(--surface); color: var(--title); border: 1px solid var(--border-strong); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(58,42,16,.10); }
.cover-copy { padding: 18px 4px 2px; }
.cover-copy .brand-word { display: block; color: var(--gold-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.cover-copy h1 { margin: 6px 0 10px; }
.feature-grid, .three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature-card, .info-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.feature-card .card-copy, .info-card { padding: 18px; }
.feature-card p, .info-card p { margin-bottom: 0; color: var(--muted); }
.number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.number-item { padding: 16px; background: var(--ivory); border: 1px solid var(--border); border-radius: 10px; }
.number-item strong { display: block; color: var(--gold-dark); font-size: 20px; }
.number-item span { color: var(--title); font-weight: 800; }
.shelf-list { display: grid; gap: 10px; }
.shelf-row { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--border); }
.shelf-row strong { color: var(--title); }
.shelf-row span { color: var(--muted); }
.shelf-row a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--title); font-weight: 700; }
.ranking-list { display: grid; gap: 12px; }
.rank-row { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; padding: 16px; background: var(--ivory); border: 1px solid var(--border); border-radius: 12px; }
.rank-no { color: var(--gold-dark); font-size: 26px; font-weight: 900; line-height: 1; }
.rank-row h3 { margin-bottom: 6px; }
.rank-row p { margin-bottom: 0; color: var(--muted); }
.timeline { position: relative; margin-left: 10px; padding-left: 30px; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 16px 18px; border-radius: 10px; background: var(--ivory); border: 1px solid var(--border); }
.timeline-item::before { content: ""; position: absolute; left: -28px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; border-radius: 999px; background: var(--surface-soft); color: var(--title); font-size: 12px; font-weight: 800; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note-card { padding: 18px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--border); }
.note-card h3 { margin-bottom: 8px; }
.note-card p { margin-bottom: 0; color: var(--muted); }
.app-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; }
.icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-icon-slot { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.app-icon-slot img { width: 48px; height: 48px; object-fit: contain; }
.notice-box { padding: 16px 18px; border-left: 3px solid var(--gold); background: var(--ivory); border-radius: 0 10px 10px 0; color: var(--muted); }
.faq-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-mini article { padding: 16px; border: 1px solid var(--border); background: var(--ivory); border-radius: 10px; }
.faq-mini h3 { margin-bottom: 6px; }
.faq-mini p { margin-bottom: 0; color: var(--muted); }
.dir-list, .method-list { display: grid; gap: 14px; }
.dir-item, .method-item { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--ivory); }
.dir-no, .method-no { color: var(--gold-dark); font-size: 22px; font-weight: 900; }
.dir-item h2, .method-item h2 { margin-bottom: 8px; }
.dir-item p, .method-item p { margin-bottom: 0; }
.entry-list { display: grid; gap: 14px; }
.entry-card { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.entry-card .meta { margin-bottom: 8px; color: var(--gold-dark); font-size: 13px; font-weight: 800; }
.entry-card h2 { margin-bottom: 8px; }
.entry-card p:last-child { margin-bottom: 0; }
.big-number-list { display: grid; gap: 16px; counter-reset: rank; }
.big-number-item { display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; padding: 20px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--border); }
.big-number-item .big-no { font-size: 44px; line-height: 1; font-weight: 900; color: var(--gold-dark); }
.memo-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memo { min-height: 190px; padding: 20px; border-radius: 12px; background: linear-gradient(180deg, var(--ivory), var(--surface)); border: 1px solid var(--border); }
.memo h2 { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.book-list { display: grid; gap: 12px; }
.book-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.book-row strong { color: var(--title); }
.book-row p { margin-bottom: 0; }
.term-list { display: grid; gap: 14px; }
.term-section { padding: 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.term-section h2 { margin-bottom: 10px; }
.term-section ul { margin: 0; padding-left: 1.2em; }
.term-section li + li { margin-top: 7px; }
.faq-full { display: grid; gap: 14px; }
.faq-item { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq-item h2 { font-size: 17px; margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; }
.contact-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-lane { padding: 20px; border-radius: 12px; background: var(--ivory); border: 1px solid var(--border); }
.contact-lane h2 { margin-bottom: 8px; }
.page-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.page-links a { min-height: 44px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); display: inline-flex; align-items: center; color: var(--title); font-weight: 700; }
.site-footer { background: var(--title); color: var(--bg-deep); border-top: 1px solid var(--gold-dark); }
.footer-inner { padding: 34px 0 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.footer-logo-wrap { min-width: 86px; min-height: 34px; display: flex; align-items: center; }
.footer-brand strong { color: var(--ivory); }
.footer-brand span { color: var(--bg-deep); font-size: 13px; }
.footer-brand-name { color: var(--ivory); font-size: 16px; font-weight: 800; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.footer-grid h2 { color: var(--gold-light); font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--bg-deep); font-size: 13px; }
.footer-grid a:hover { color: var(--ivory); }
.footer-note { margin: 24px 0 8px; max-width: 920px; color: var(--bg-deep); font-size: 13px; }
.footer-copy { margin-bottom: 0; color: var(--soft); font-size: 13px; }
.page-overlay { position: fixed; inset: 0; z-index: 190; background: rgba(58,42,16,.38); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
body.drawer-open .page-overlay, body.search-open .page-overlay { opacity: 1; visibility: visible; pointer-events: auto; }
.palace-drawer { position: fixed; left: 0; top: 0; bottom: 0; z-index: 210; width: min(400px, 86vw); background: var(--surface); box-shadow: 16px 0 40px rgba(58,42,16,.16); transform: translateX(-104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; }
body.drawer-open .palace-drawer { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 68px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: var(--ivory); }
.drawer-brand { min-height: 44px; display: flex; align-items: center; }
.drawer-close, .search-head button { min-width: 64px; min-height: 44px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; }
.drawer-scroll { height: calc(100% - 68px); overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.drawer-group + .drawer-group { margin-top: 22px; }
.drawer-group h2 { margin: 0 0 8px; font-size: 13px; color: var(--gold-dark); }
.drawer-group a { display: grid; gap: 2px; min-height: 58px; padding: 10px 12px; border-radius: 10px; }
.drawer-group a:hover { background: var(--ivory); }
.drawer-group strong { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-layer { position: fixed; left: 0; right: 0; top: 82px; z-index: 205; visibility: hidden; pointer-events: none; transform: translateY(-16px); opacity: 0; transition: opacity .2s ease, transform .2s ease, visibility .2s ease; padding: 16px; }
body.search-open .search-layer { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(760px, 100%); margin: 0 auto; padding: 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.search-head div { display: grid; gap: 2px; }
.search-head strong { color: var(--title); font-size: 18px; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-field input { width: 100%; min-height: 46px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--ivory); color: var(--title); padding: 0 14px; }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 62px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--ivory); display: grid; align-content: center; color: var(--title); font-weight: 800; }
.search-presets a span { color: var(--muted); font-size: 12px; font-weight: 400; }
.search-empty { margin: 14px 0 0; color: var(--muted); }
.mobile-bottom { display: none; }

@media (max-width: 820px) {
    body { padding-top: 82px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .bar-inner, .footer-inner, .page-shell { width: calc(100% - 32px); }
    .seat-tabs { display: none; }
    .palace-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .brand-link { min-width: 0; max-width: 100%; overflow: hidden; }
    .brand-logo { max-width: 112px; height: 28px; }
    .drawer-trigger { min-width: 78px; padding: 0 12px; }
    .app-entry { padding: 0 10px; min-width: 66px; justify-content: center; }
    .page-shell { padding-top: 24px; padding-bottom: 44px; }
    .page-head, .section-block { padding: 20px 18px; }
    .feature-grid, .three-grid, .number-grid, .note-grid, .memo-board, .contact-lanes, .faq-mini { grid-template-columns: 1fr; }
    .app-layout { grid-template-columns: 1fr; }
    .shelf-row { grid-template-columns: 1fr; }
    .shelf-row a { justify-self: start; }
    .book-row { grid-template-columns: 1fr; gap: 8px; }
    .dir-item, .method-item { grid-template-columns: 58px 1fr; gap: 10px; padding: 16px; }
    .big-number-item { grid-template-columns: 68px 1fr; gap: 12px; padding: 16px; }
    .big-number-item .big-no { font-size: 34px; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-inner { padding-bottom: 72px; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 170; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-width: 0; min-height: 48px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
    .mobile-bottom a.is-current { background: var(--gold); color: var(--title); font-weight: 800; }
    .page-overlay { z-index: 230; }
    .palace-drawer { z-index: 250; }
    .search-layer { inset: 0; z-index: 250; padding: 14px; background: var(--title); color: var(--ivory); transform: none; overflow-y: auto; }
    .search-card { width: 100%; min-height: calc(100vh - 28px); margin: 0; background: transparent; border-color: rgba(243,230,200,.22); box-shadow: none; }
    .search-head strong, .search-head span, .search-empty { color: var(--ivory); }
    .search-head button { background: var(--ivory); color: var(--title); }
    .search-field input { background: var(--ivory); color: var(--title); }
    .search-presets { grid-template-columns: 1fr; }
    .search-presets a { background: var(--ivory); }
    .media-banner { height: 220px; }
    .media-app { height: 320px; }
}

@media (max-width: 430px) {
    .crown-inner { width: calc(100% - 20px); }
    .crown-inner > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .palace-inner { width: calc(100% - 20px); grid-template-columns: minmax(72px, 1fr) 76px 66px; }
    .brand-logo { max-width: 96px; }
    .brand-fallback { font-size: 15px; white-space: nowrap; }
    .drawer-trigger { min-width: 76px; padding: 0 10px; gap: 7px; }
    .drawer-mark { width: 15px; }
    .app-entry { min-width: 66px; padding: 0 7px; font-size: 13px; }
    .media-banner { height: 190px; }
    .media-card { height: 160px; }
    .media-feature { height: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
