:root {
    --bg: #E6E2DA;
    --bg-deep: #D4CFC6;
    --panel: #F4F1EA;
    --panel-soft: #EBE7DF;
    --ink: #2C2A28;
    --text: #3A3732;
    --muted: #6A645C;
    --soft: #8A847A;
    --elephant: #B8B3A8;
    --moss: #6A7A58;
    --clay: #A65A3A;
    --line: rgba(44,42,40,0.14);
    --accent-line: rgba(166,90,58,0.36);
    --shadow: 0 12px 28px rgba(44,42,40,0.08);
    --max: 980px;
    --top-desktop: 120px;
    --top-mobile: 74px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--ink); color: var(--panel); padding: 10px 14px; border-radius: 6px; transition: top .2s ease; }
.skip-link:focus { top: 8px; }
.top-stack { position: fixed; inset: 0 0 auto 0; z-index: 300; box-shadow: 0 1px 0 var(--line); }
.notice-bar { height: 20px; background: var(--ink); color: var(--panel); font-size: 12px; }
.notice-inner, .brand-inner, .step-inner, .footer-inner, .page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.notice-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.text-action { border: 0; background: transparent; color: var(--panel); min-height: 20px; padding: 0 6px; cursor: pointer; }
.brand-bar { height: 54px; background: var(--elephant); border-bottom: 1px solid rgba(44,42,40,.32); }
.brand-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link { min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo, .footer-logo, .drawer-brand img { width: auto; height: 24px; object-fit: contain; object-position: center; }
.brand-fallback { font-size: 16px; font-weight: 800; color: var(--ink); }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.app-link, .drawer-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 8px; font-size: 13px; white-space: nowrap; }
.app-link { border: 1px solid rgba(44,42,40,.28); background: var(--panel); color: var(--ink); }
.drawer-button { border: 1px solid rgba(44,42,40,.28); background: transparent; cursor: pointer; }
.step-nav { height: 46px; background: var(--panel); border-bottom: 1px solid var(--line); }
.step-inner { height: 46px; display: flex; align-items: stretch; gap: 30px; }
.step-item { position: relative; display: inline-flex; align-items: center; min-height: 46px; gap: 7px; font-size: 13px; color: var(--ink); }
.step-item span { font-size: 12px; color: var(--clay); }
.step-item.is-current span { color: var(--ink); }
.step-item.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--clay); }
.site-main { padding-top: var(--top-desktop); min-height: 60vh; }
.page-shell { padding: 42px 0 72px; }
.page-intro { padding: 34px 0 24px; }
.page-kicker, .hero-number { color: var(--clay); font-weight: 800; letter-spacing: .04em; }
.hero-number { font-size: 42px; line-height: 1; margin-bottom: 12px; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.3; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
.lead { margin-top: 12px; max-width: 760px; font-size: 16px; color: var(--text); }
.intro-copy { margin-top: 12px; max-width: 760px; color: var(--muted); }
.section { padding: 34px 0; border-top: 1px solid var(--line); }
.section:first-child { border-top: 0; }
.section-title { margin-bottom: 16px; }
.section-title p { margin-top: 8px; color: var(--muted); max-width: 760px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg,#B8B3A8 0%,#2C2A28 100%); color: var(--panel); }
.btn-secondary { background: var(--panel); border: 1px solid var(--clay); color: var(--ink); }
.btn:hover, .app-link:hover, .drawer-button:hover, .step-item:hover, .footer-grid a:hover, .drawer-groups a:hover, .search-links a:hover { transform: translateY(-1px); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(166,90,58,.45); outline-offset: 2px; }
.media-slot { width: 100%; min-height: 150px; background: var(--elephant); border: 1px solid var(--line); 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-short { height: 180px; }
.media-banner { height: 200px; }
.media-app { height: 320px; background: var(--panel-soft); }
.media-card { min-height: 180px; }
.media-inline { min-height: 140px; }
.home-hero { padding: 54px 0 36px; }
.home-hero .lead { font-size: 20px; color: var(--ink); font-weight: 700; }
.vertical-steps { display: grid; gap: 0; }
.step-row { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.step-row:first-child { border-top: 0; }
.step-index { color: var(--clay); font-size: 18px; font-weight: 800; }
.step-content p { margin-top: 8px; color: var(--muted); }
.step-content .media-slot { margin-top: 16px; }
.quote-stack { display: grid; gap: 16px; }
.quote-block { background: var(--panel); border-left: 3px solid var(--clay); padding: 22px; border-radius: 0 8px 8px 0; box-shadow: var(--shadow); }
.quote-block p { margin-top: 8px; color: var(--muted); }
.quote-block .media-slot { margin-bottom: 18px; }
.two-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.info-card p { margin-top: 8px; color: var(--muted); }
.card-media-head { margin-bottom: 16px; }
.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.period-box { background: var(--panel-soft); border-top: 3px solid var(--moss); padding: 18px; border-radius: 6px; }
.period-box p { margin-top: 8px; color: var(--muted); }
.status-list { display: grid; gap: 12px; }
.status-item { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.status-pill { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; border-radius: 999px; background: var(--bg-deep); color: var(--ink); font-size: 13px; font-weight: 700; }
.status-item p { color: var(--muted); }
.product-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: center; }
.product-copy p { margin-top: 10px; color: var(--muted); }
.icon-line { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.icon-line .media-slot { width: 50px; height: 50px; min-height: 50px; flex: 0 0 50px; }
.method-list, .memo-list, .topic-list, .terms-list { display: grid; gap: 14px; }
.method-item, .memo-item, .topic-item, .term-block { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.method-item p, .memo-item p, .topic-item p, .term-block p { margin-top: 8px; color: var(--muted); }
.memo-item { border-left: 3px solid var(--moss); }
.center-card { max-width: 760px; margin: 0 auto; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 30px; box-shadow: var(--shadow); }
.center-card p { margin-top: 10px; color: var(--muted); }
.center-card + .center-card { margin-top: 18px; }
.long-copy { display: grid; gap: 14px; }
.long-copy p { color: var(--text); }
.callout { background: var(--ink); color: var(--panel); border-radius: 8px; padding: 22px; }
.callout h2, .callout h3 { color: var(--panel); }
.callout p { margin-top: 8px; color: #F4F1EA; }
.small-note { font-size: 13px; color: var(--muted); }
.link-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.link-list a { min-height: 78px; display: flex; flex-direction: column; justify-content: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.link-list a strong { color: var(--ink); }
.link-list a span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.faq-list summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.faq-list details p { margin-top: 12px; color: var(--muted); }
.site-footer { background: #241F1C; color: #E6E2DA; border-top: 1px solid rgba(184,179,168,.35); font-size: 13px; }
.footer-inner { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid rgba(230,226,218,.16); }
.footer-brand strong { display: block; color: #F4F1EA; }
.footer-brand span { display: block; color: #B8B3A8; font-size: 12px; margin-top: 2px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; padding: 24px 0; }
.footer-grid h2 { font-size: 13px; color: #F4F1EA; margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 30px; color: #D4CFC6; }
.footer-note { max-width: 760px; color: #D4CFC6; }
.copyright { margin-top: 12px; color: #B8B3A8; }
.page-overlay { position: fixed; inset: 0; z-index: 400; background: rgba(36,31,28,.48); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 500; width: 320px; max-width: 86vw; background: var(--panel); transform: translateX(-102%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; overflow-y: auto; box-shadow: var(--shadow); }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.drawer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.close-button { min-height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-soft); cursor: pointer; }
.drawer-groups { padding: 8px 16px 30px; }
.drawer-groups section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer-groups h2 { font-size: 13px; color: var(--clay); margin-bottom: 6px; }
.drawer-groups a { display: block; padding: 10px 8px; border-radius: 8px; }
.drawer-groups a strong { display: block; color: var(--ink); font-size: 14px; }
.drawer-groups a span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.search-panel { position: fixed; top: 74px; left: 0; right: 0; z-index: 480; visibility: hidden; pointer-events: none; transform: translateY(-14px); opacity: 0; transition: .2s ease; }
.search-panel.is-open { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(720px, calc(100% - 32px)); margin: 0 auto; background: var(--panel); border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 20px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.search-head strong { color: var(--ink); }
.search-head p { color: var(--muted); font-size: 13px; }
.search-card label { display: block; margin: 16px 0 6px; color: var(--ink); font-weight: 700; }
.search-card input { width: 100%; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 0 12px; }
.search-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.search-links a { background: var(--panel-soft); border-radius: 8px; padding: 10px 12px; }
.search-links a span { display: block; font-size: 12px; color: var(--muted); }
.search-empty { margin-top: 12px; color: var(--muted); }
.mobile-bottom { display: none; }
.bullet-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.bullet-box { background: var(--panel-soft); border-radius: 8px; padding: 18px; }
.bullet-box p { margin-top: 7px; color: var(--muted); }
.rule-line { border-left: 2px solid var(--clay); padding-left: 16px; }

@media (max-width: 700px) {
    body { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
    .notice-inner, .brand-inner, .footer-inner, .page-shell { width: calc(100% - 32px); }
    .notice-inner { gap: 8px; }
    .notice-inner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .step-nav { display: none; }
    .site-main { padding-top: var(--top-mobile); }
    .brand-actions { gap: 4px; }
    .app-link, .drawer-button { padding: 0 10px; }
    .page-shell { padding-top: 28px; padding-bottom: 48px; }
    .home-hero { padding-top: 38px; }
    .hero-number { font-size: 36px; }
    .two-cards, .period-grid, .product-split, .footer-grid, .link-list, .bullet-grid { grid-template-columns: 1fr; }
    .step-row { grid-template-columns: 46px 1fr; gap: 10px; }
    .status-item { grid-template-columns: 1fr; gap: 8px; }
    .media-app { height: 290px; }
    .footer-grid { gap: 8px; }
    .footer-grid section { padding-bottom: 12px; border-bottom: 1px solid rgba(230,226,218,.12); }
    .footer-inner { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .search-panel { top: 0; bottom: 0; background: var(--ink); color: var(--panel); overflow-y: auto; }
    .search-card { min-height: 100%; width: 100%; margin: 0; border: 0; border-radius: 0; background: var(--ink); color: var(--panel); padding: calc(22px + env(safe-area-inset-top)) 16px 32px; box-shadow: none; }
    .search-head strong, .search-card label { color: var(--panel); }
    .search-head p, .search-empty { color: #D4CFC6; }
    .search-card .close-button { background: transparent; border-color: rgba(244,241,234,.3); color: var(--panel); }
    .search-links { grid-template-columns: 1fr; }
    .search-links a { background: #3A3732; color: var(--panel); }
    .search-links a span { color: #D4CFC6; }
    .mobile-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 350; min-height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr); background: var(--panel); border-top: 1px solid var(--line); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); }
    .mobile-bottom a.is-current { background: var(--ink); color: var(--panel); }
    .site-drawer { z-index: 520; }
    .page-overlay { z-index: 410; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
.mt-20 { margin-top: 20px; }
.mt-18 { margin-top: 18px; }
.centered-intro { text-align: center; }
.lead-center { margin-left: auto; margin-right: auto; }
.button-center { justify-content: center; }
/* Target-size refinements */
.btn { min-height: 44px; }
.footer-grid a { min-height: 44px; display: flex; align-items: center; }
.text-action { position: relative; }
.text-action::before { content: ""; position: absolute; inset: -12px -10px; }
.icon-line .media-slot { width: 48px; height: 48px; min-height: 48px; flex: 0 0 48px; }
