:root {
    --bg: #0D0D0D;
    --bg-deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --title: #F2F2F2;
    --text: #C8C8C8;
    --muted: #9A9A9A;
    --soft: #6E6E6E;
    --silver: #C8C8C8;
    --bright: #E8E8E8;
    --ink: #1A1A1A;
    --red: #B85A5A;
    --border: rgba(232,232,232,0.12);
    --border-strong: rgba(232,232,232,0.36);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
    --radius: 12px;
    --max: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font: 15px/1.7 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 80; box-shadow: 0 1px 0 var(--border); }
.ink-line { height: 22px; background: var(--bg-deep); border-bottom: 1px solid var(--border); font-size: 12px; }
.ink-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.ink-brand { color: var(--silver); letter-spacing: .04em; }
.text-button { border: 0; background: transparent; color: var(--silver); padding: 0 6px; min-height: 22px; cursor: pointer; }
.material-bar { height: 60px; background: var(--ink); border-bottom: 1px solid var(--border); }
.material-inner { height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 28px; width: auto; max-width: 180px; object-fit: contain; object-position: center; }
.brand-text { font-size: 16px; font-weight: 700; color: var(--bright); }
.drawer-trigger, .app-link { min-height: 44px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.drawer-trigger { border: 1px solid var(--border-strong); background: var(--bg); color: var(--bright); cursor: pointer; }
.app-link { justify-self: end; background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); color: #0D0D0D; font-weight: 700; }
.case-tabs { height: 40px; background: var(--bg-deep); border-bottom: 1px solid var(--border); }
.case-tabs-inner { height: 40px; display: flex; align-items: stretch; justify-content: center; gap: 8px; }
.case-tabs a { min-width: 94px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; font-size: 13px; color: var(--text); }
.case-tabs a.is-active { background: var(--silver); color: #0D0D0D; }
.site-main { padding-top: 122px; min-height: 60vh; }
.page-section { padding: 44px 0; }
.page-section + .page-section { border-top: 1px solid var(--border); }
.hero { padding: 38px 0 46px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; color: var(--muted); }
h1,h2,h3 { color: var(--title); margin: 0; line-height: 1.3; }
h1 { font-size: 24px; margin-bottom: 14px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 840px; color: var(--text); font-size: 16px; }
.muted { color: var(--muted); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head p { margin: 0; color: var(--muted); max-width: 620px; }
.media-slot { width: 100%; height: 180px; border: 1px solid var(--border); background: var(--ink); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { height: 260px; }
.tall-slot { height: min(360px, 62vw); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--bright); font-weight: 700; }
.card-link::after { content: '→'; margin-left: 8px; color: var(--red); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 42px; padding: 0 18px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; white-space: nowrap; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%); color: #0D0D0D; font-weight: 700; }
.btn-secondary { background: var(--bg-deep); border-color: var(--border-strong); color: var(--bright); }
.btn:hover, .card-link:hover, .site-footer a:hover, .drawer-group a:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.number-list { display: grid; gap: 10px; }
.number-row { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.number-row:first-child { border-top: 0; }
.number { font-size: 26px; line-height: 1; color: var(--silver); font-weight: 800; letter-spacing: .02em; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.shelf-item { min-height: 150px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; justify-content: space-between; }
.shelf-item small, .status { color: var(--muted); }
.timeline { position: relative; margin-left: 10px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 5px; bottom: 5px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding: 0 0 24px 42px; }
.timeline-item::before { content: ''; position: absolute; left: 4px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--silver); box-shadow: 0 0 0 5px var(--panel-2); }
.timeline-item:last-child { padding-bottom: 0; }
.memo { border-left: 3px solid var(--red); padding: 16px 18px; background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 14px; }
.notice { padding: 18px 20px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel-2); color: var(--bright); }
.list-clean { margin: 0; padding: 0; list-style: none; }
.list-clean li { padding: 14px 0; border-top: 1px solid var(--border); }
.list-clean li:first-child { border-top: 0; }
.article-copy { max-width: 900px; }
.article-copy h2 { margin-top: 32px; }
.article-copy h3 { margin-top: 22px; }
.article-copy ul { padding-left: 1.2em; }
.faq-list details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 18px; margin-bottom: 12px; }
.faq-list summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; color: var(--bright); font-weight: 700; }
.faq-list details p { padding: 0 0 18px; color: var(--text); }
.site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 36px 0 24px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 26px; }
.site-footer h2 { font-size: 13px; margin-bottom: 10px; color: var(--bright); }
.site-footer section:not(.footer-brand) a { display: block; color: var(--text); min-height: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 5px; color: var(--silver); }
.footer-logo-wrap { min-height: 32px; display: inline-flex; align-items: center; }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-note p:last-child { margin-bottom: 0; }
.site-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.64); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease; }
.site-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; z-index: 100; inset: 0 auto 0 0; width: min(400px, 86vw); background: var(--bg-deep); border-right: 1px solid var(--border-strong); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s; overflow-y: auto; overscroll-behavior: contain; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.drawer-brand small { color: var(--muted); margin-top: 4px; }
.close-button { min-height: 44px; min-width: 64px; padding: 0 12px; background: var(--panel); border: 1px solid var(--border-strong); color: var(--bright); border-radius: 10px; cursor: pointer; }
.drawer-body { padding: 12px 16px 30px; }
.drawer-group { padding: 12px 0 4px; }
.drawer-group h2 { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.drawer-group a { display: grid; gap: 2px; padding: 11px 0; border-top: 1px solid var(--border); }
.drawer-group a:first-of-type { border-top: 0; }
.drawer-group strong { color: var(--bright); font-size: 14px; }
.drawer-group span { color: var(--muted); font-size: 12px; }
.site-search { position: fixed; z-index: 105; top: 82px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -14px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.site-search.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { background: var(--ink); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-head > div { display: flex; flex-direction: column; }
.search-head span { color: var(--muted); font-size: 13px; }
.search-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 16px; }
.search-links a { min-height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.search-tip { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.mobile-bottom { display: none; }
.no-scroll { overflow: hidden; }

@media (max-width: 820px) {
    .site-main { padding-top: 82px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .case-tabs { display: none; }
    .grid-3, .grid-2, .shelf { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .material-inner { gap: 8px; }
    .drawer-trigger, .app-link { padding: 0 12px; }
    .brand-logo { max-width: 128px; }
    .site-search { inset: 0; width: 100%; transform: none; background: var(--bg-deep); }
    .site-search.is-open { transform: none; }
    .search-card { min-height: 100vh; border: 0; border-radius: 0; padding: calc(22px + env(safe-area-inset-top)) 16px 24px; box-shadow: none; background: var(--bg-deep); }
    .search-links { grid-template-columns: 1fr 1fr; }
    .mobile-bottom { position: fixed; z-index: 70; inset: auto 0 0; min-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); display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; }
    .mobile-bottom a.is-active { background: var(--silver); color: #0D0D0D; }
    .page-section { padding: 34px 0; }
    .hero { padding: 30px 0 36px; }
    .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 460px) {
    .shell { width: calc(100% - 32px); }
    .ink-brand { max-width: 70%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .brand-text { font-size: 15px; }
    .drawer-trigger, .app-link { font-size: 13px; padding: 0 10px; }
    .number-row { grid-template-columns: 42px 1fr; }
    .number { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
