:root {
    --bg: #0C0B08;
    --bg-deep: #080706;
    --panel: #161410;
    --panel-2: #1E1A14;
    --title: #F3E6C0;
    --text: #E4D6B0;
    --muted: #B89A58;
    --soft: #8A7040;
    --gold: #C9A227;
    --gold-light: #E0C056;
    --gold-dark: #8A6E18;
    --copper: #8A5A2A;
    --cream: #F7EFD4;
    --border: rgba(201,162,39,.22);
    --border-strong: rgba(201,162,39,.50);
    --shadow: 0 12px 28px rgba(0,0,0,.45);
    --top-notice: 20px;
    --top-header: 52px;
    --top-nav: 64px;
}
* { box-sizing: border-box; }
html { 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","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; font-size: 15px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; object-fit: contain; object-position: center; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.site-notice { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 20px; padding: 0 max(16px, calc((100vw - 1180px)/2)); background: var(--bg-deep); color: var(--gold-light); display: flex; align-items: center; justify-content: space-between; font-size: 12px; border-bottom: 1px solid rgba(201,162,39,.12); }
.notice-brand { min-height: 20px; display:flex; align-items:center; }
.notice-search { border: 0; background: transparent; min-width: 54px; height: 20px; padding: 0 8px; cursor: pointer; color: var(--gold-light); }
.site-header { position: fixed; left: 0; right: 0; top: 20px; z-index: 89; height: 52px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 0 max(16px, calc((100vw - 1180px)/2)); background: #0b0907; border-bottom: 1px solid var(--gold-dark); box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.header-logo { min-width: 0; display:flex; align-items:center; height: 44px; color: var(--title); font-size:16px; font-weight:700; }
.header-logo img, .footer-brand img, .sheet-brand img { height: 24px; width: auto; max-width: 132px; object-fit: contain; }
.header-en { color: var(--muted); font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-app, .header-menu { min-height: 44px; display:flex; align-items:center; justify-content:center; padding: 0 14px; border-radius: 7px; font-size: 14px; white-space: nowrap; }
.header-app { color: #1A1408; background: linear-gradient(135deg,#E0C056 0%,#C9A227 55%,#8A6E18 100%); font-weight: 700; }
.header-menu { border:1px solid var(--border-strong); background: var(--bg-deep); color: var(--gold-light); cursor:pointer; }
.header-app:hover, .header-menu:hover, .btn:hover { filter: brightness(1.06); }
.double-nav { position: fixed; top: 72px; left: 0; right: 0; height: 64px; z-index: 88; background: #0a0907; border-bottom: 1px solid var(--border); padding-left: max(164px, calc((100vw - 1120px)/2)); padding-right: 16px; }
.double-row { height: 32px; display: flex; align-items: center; gap: 28px; }
.double-row a { position:relative; display:flex; align-items:center; min-height:32px; font-size:13px; color:var(--text); white-space:nowrap; }
.double-row a.is-current { color: var(--gold-light); }
.double-row a.is-current::after { content:""; position:absolute; left:0; right:0; bottom:1px; height:1px; background: var(--gold-light); }
.site-shell { min-height: 100vh; }
.side-nav { position: fixed; z-index: 40; top: 154px; left: max(16px, calc((100vw - 1180px)/2)); width: 148px; padding: 12px 12px 16px; background: rgba(8,7,6,.92); border:1px solid var(--border); border-radius:8px; box-shadow:var(--shadow); }
.side-group + .side-group { margin-top: 14px; padding-top: 12px; border-top:1px solid var(--border); }
.side-group strong { display:block; margin-bottom:5px; color: var(--soft); font-size:12px; font-weight:600; }
.side-group a { display:block; padding:4px 0; color:var(--text); font-size:13px; }
.side-group a.is-current { color: var(--gold-light); font-weight:700; }
.page-main { width: min(980px, calc(100% - 212px)); margin: 0 auto; padding: 168px 16px 76px 180px; }
.page-main > *:first-child { margin-top:0; }
.page-hero { padding: 22px 0 26px; border-bottom: 1px solid var(--border); }
.eyebrow { margin:0 0 8px; color:var(--muted); font-size:12px; letter-spacing:.12em; }
h1,h2,h3 { color: var(--title); margin:0; font-weight:700; }
h1 { font-size:24px; line-height:1.3; }
h2 { font-size:20px; line-height:1.4; }
h3 { font-size:16px; line-height:1.45; }
p { margin: 0 0 1em; }
.lead { max-width: 760px; margin-top: 12px; color: var(--text); }
.hero-quote { margin: 14px 0 0; color: var(--gold-light); font-size:18px; }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.btn { min-height:42px; display:inline-flex; align-items:center; justify-content:center; padding:0 16px; border-radius:7px; font-size:14px; }
.btn-primary { background:linear-gradient(135deg,#E0C056 0%,#C9A227 55%,#8A6E18 100%); color:#1A1408; font-weight:700; }
.btn-secondary { background:var(--bg-deep); border:1px solid var(--border-strong); color:var(--gold-light); }
.content-section { padding: 32px 0; border-bottom:1px solid var(--border); }
.section-head { margin-bottom:16px; display:flex; align-items:flex-end; justify-content:space-between; gap:16px; }
.section-head p { margin:0; color:var(--soft); font-size:13px; }
.media-slot { min-height: 120px; background: var(--bg-deep); border:1px solid var(--border); border-radius:8px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.media-slot img { width:100%; height:100%; object-fit:contain; object-position:center; }
.media-placeholder { width:42px; height:42px; border:1px solid var(--border); border-radius:50%; opacity:.26; }
.media-wide { height:176px; }
.media-note { height:160px; }
.media-about { height:200px; }
.media-app { height:min(320px, 44vw); min-height:220px; }
.media-icon { width:68px; height:68px; min-height:68px; }
.number-list { counter-reset:item; display:grid; gap:14px; }
.number-card { position:relative; padding:18px 18px 18px 74px; background:var(--panel); border:1px solid var(--border); border-radius:8px; }
.number-card .scene-tag { position:absolute; left:18px; top:18px; width:42px; color:var(--gold-light); font-size:12px; line-height:1.4; }
.number-card p:last-child { margin-bottom:0; }
.note-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.note-card { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:18px; }
.note-card p:last-child { margin-bottom:0; }
.flow-nodes { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0 18px; }
.flow-node { min-width:116px; flex:1 1 150px; padding:13px 14px; background:var(--panel-2); border-top:2px solid var(--gold-dark); border-radius:6px; }
.flow-node strong { color:var(--title); display:block; margin-bottom:5px; }
.flow-node span { color:var(--muted); font-size:13px; }
.work-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.work-item { padding:18px; background:var(--panel); border:1px solid var(--border); border-radius:8px; }
.work-item p:last-child { margin-bottom:0; }
.week-stack { display:grid; gap:12px; }
.week-row { padding:16px 18px; background:linear-gradient(90deg,var(--panel-2),var(--panel)); border-left:3px solid var(--gold-dark); border-radius:7px; }
.week-row strong { color:var(--gold-light); }
.status-board { display:grid; gap:10px; }
.status-row { display:grid; grid-template-columns:110px 1fr; gap:16px; padding:14px 16px; background:var(--panel); border:1px solid var(--border); border-radius:7px; }
.status-row b { color:var(--gold-light); }
.app-band { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(180px,.75fr); gap:20px; align-items:center; padding:22px; background:#080706; border:1px solid var(--border-strong); border-radius:9px; box-shadow:var(--shadow); }
.app-band .app-side { display:flex; flex-direction:column; align-items:center; gap:12px; }
.method-list, .topic-list, .memo-list { display:grid; gap:12px; }
.method-item, .topic-item, .memo-item { padding:16px 18px; background:var(--panel); border:1px solid var(--border); border-radius:8px; }
.method-item h3, .topic-item h3, .memo-item h3 { margin-bottom:8px; }
.faq-mini { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.faq-mini article { padding:16px; background:var(--panel); border:1px solid var(--border); border-radius:8px; }
.faq-mini p { margin:7px 0 0; color:var(--text); }
.single-notes article { padding:18px 0; border-bottom:1px dashed var(--border); }
.single-notes article:last-child { border-bottom:0; }
.split-notes { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.split-notes .column { min-width:0; }
.split-notes article { padding:0 0 18px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.timeline { display:grid; gap:0; }
.timeline article { position:relative; padding:0 0 24px 32px; }
.timeline article::before { content:""; position:absolute; left:8px; top:8px; bottom:-2px; width:1px; background:var(--border-strong); }
.timeline article::after { content:""; position:absolute; left:4px; top:7px; width:9px; height:9px; border-radius:50%; background:var(--gold); }
.timeline article:last-child::before { display:none; }
.deep-band { padding:24px; background:var(--bg-deep); border:1px solid var(--border-strong); border-radius:9px; }
.deep-band + .deep-band { margin-top:14px; }
.policy-sections article { padding:20px 0; border-bottom:1px solid var(--border); }
.policy-sections article:last-child { border-bottom:0; }
.qa-list { display:grid; gap:12px; }
.qa-list details { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:0 16px; }
.qa-list summary { min-height:48px; display:flex; align-items:center; cursor:pointer; color:var(--title); font-weight:700; }
.qa-list p { padding:0 0 16px; margin:0; }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.contact-card { padding:18px; background:var(--panel); border:1px solid var(--border); border-radius:8px; }
.about-brand { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; align-items:start; }
.table-like { display:grid; border:1px solid var(--border); border-radius:8px; overflow:hidden; }
.table-row { display:grid; grid-template-columns:145px 1fr; }
.table-row > * { padding:14px 16px; border-bottom:1px solid var(--border); }
.table-row:last-child > * { border-bottom:0; }
.table-row strong { background:var(--panel-2); color:var(--gold-light); }
.table-row span { background:var(--panel); }
.site-footer { position:relative; z-index:10; background:var(--bg-deep); border-top:1px solid var(--gold-dark); padding:28px max(16px, calc((100vw - 980px)/2)) 76px; color:var(--text); font-size:13px; }
.footer-brand { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.footer-brand a { display:flex; align-items:center; min-height:44px; }
.footer-brand-text { font-size:16px; color:var(--title); font-weight:700; }
.footer-brand > span { color:var(--muted); letter-spacing:.12em; }
.footer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:20px 0; }
.footer-grid strong { display:block; margin-bottom:7px; color:var(--muted); }
.footer-grid a { display:block; padding:4px 0; }
.footer-note { max-width:800px; color:var(--text); }
.footer-copy { color:var(--soft); margin-bottom:0; }
.screen-mask { position:fixed; inset:0; z-index:120; background:rgba(0,0,0,.68); opacity:0; visibility:hidden; pointer-events:none; transition:opacity .18s ease,visibility .18s ease; }
.screen-mask.is-open { opacity:1; visibility:visible; pointer-events:auto; }
.menu-sheet { position:fixed; left:0; right:0; bottom:0; z-index:130; max-height:72vh; overflow:auto; background:var(--bg-deep); border-top:1px solid var(--gold-dark); box-shadow:0 -16px 40px rgba(0,0,0,.55); transform:translateY(105%); visibility:hidden; pointer-events:none; transition:transform .2s ease,visibility .2s ease; }
.menu-sheet.is-open { transform:translateY(0); visibility:visible; pointer-events:auto; }
.sheet-head { position:sticky; top:0; z-index:2; min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:8px max(16px,calc((100vw - 980px)/2)); background:rgba(8,7,6,.98); border-bottom:1px solid var(--border); }
.sheet-brand { display:flex; align-items:center; gap:10px; color:var(--title); font-weight:700; }
.sheet-close { min-width:64px; min-height:44px; border:1px solid var(--border-strong); border-radius:7px; background:transparent; color:var(--gold-light); cursor:pointer; }
.sheet-groups { width:min(980px,100%); margin:auto; padding:18px 16px 28px; display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.sheet-groups strong { display:block; color:var(--muted); margin-bottom:8px; }
.sheet-groups a { display:block; padding:9px 0; border-bottom:1px solid rgba(201,162,39,.10); }
.sheet-groups span { display:block; color:var(--title); }
.sheet-groups small { display:block; color:var(--soft); font-size:12px; line-height:1.5; margin-top:2px; }
.search-panel { position:fixed; left:0; right:0; top:72px; z-index:131; padding:12px 16px; visibility:hidden; pointer-events:none; opacity:0; transform:translateY(-8px); transition:.18s ease; }
.search-panel.is-open { visibility:visible; pointer-events:auto; opacity:1; transform:translateY(0); }
.search-card { width:min(760px,100%); margin:auto; background:var(--bg-deep); border:1px solid var(--border-strong); border-radius:9px; box-shadow:var(--shadow); padding:18px; }
.search-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.search-head strong { color:var(--title); font-size:18px; }
.search-head p { color:var(--soft); margin:3px 0 0; font-size:13px; }
.search-label { display:block; margin:14px 0 6px; color:var(--muted); font-size:13px; }
.search-input { width:100%; height:44px; border:1px solid var(--border-strong); border-radius:7px; background:#0d0b08; color:var(--cream); padding:0 12px; }
.search-presets { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.search-presets a { min-height:40px; display:flex; align-items:center; padding:0 12px; border:1px solid var(--border); border-radius:7px; color:var(--gold-light); }
.search-empty { margin:12px 0 0; color:var(--soft); }
.layer-open { overflow:hidden; }
.mobile-bottom { display:none; }
.text-muted { color:var(--muted); }
.no-margin { margin:0; }
.space-top-14 { margin-top:14px; }
.space-top-16 { margin-top:16px; }
.space-top-18 { margin-top:18px; }
.space-top-20 { margin-top:20px; }

@media (max-width: 900px) {
    .header-en { display:none; }
    .site-header { grid-template-columns:minmax(0,1fr) auto; }
    .header-actions { grid-column:2; }
    .double-nav, .side-nav { display:none; }
    .page-main { width:100%; margin:0; padding:96px 16px 82px; }
    .site-footer { padding-bottom:86px; }
    .mobile-bottom { position:fixed; left:0; right:0; bottom:0; z-index:110; height:calc(48px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:var(--bg-deep); border-top:1px solid var(--border-strong); display:grid; grid-template-columns:repeat(4,1fr); }
    .mobile-bottom a { min-width:0; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--text); }
    .mobile-bottom a.is-current { color:#1A1408; background:var(--gold); font-weight:700; }
    .sheet-groups { grid-template-columns:1fr 1fr; }
    .search-panel { inset:0; top:0; padding:0; background:var(--bg-deep); }
    .search-card { width:100%; min-height:100%; border:0; border-radius:0; padding:22px 16px calc(70px + env(safe-area-inset-bottom)); box-shadow:none; }
    .note-pair, .work-grid, .split-notes, .contact-grid, .about-brand { grid-template-columns:1fr; }
    .app-band { grid-template-columns:1fr; }
    .app-band .app-side { align-items:flex-start; }
    .faq-mini { grid-template-columns:1fr; }
    .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px) {
    .site-notice { padding:0 12px; }
    .site-header { padding:0 12px; gap:6px; }
    .header-logo { font-size:15px; }
    .header-logo img { max-width:104px; }
    .header-actions { gap:5px; }
    .header-app, .header-menu { padding:0 9px; font-size:13px; }
    .page-main { padding-left:16px; padding-right:16px; }
    .section-head { align-items:flex-start; flex-direction:column; gap:6px; }
    .number-card { padding-left:60px; }
    .number-card .scene-tag { left:14px; }
    .status-row { grid-template-columns:1fr; gap:6px; }
    .sheet-groups, .footer-grid { grid-template-columns:1fr; }
    .footer-brand { align-items:flex-start; flex-direction:column; }
    .table-row { grid-template-columns:1fr; }
    .table-row strong { border-bottom:0; }
    .media-app { height:260px; }
}
