:root {
    --bg: #E6E2DA;
    --bg-deep: #D4CFC6;
    --panel: #F4F1EA;
    --panel-soft: #EBE7DF;
    --ink: #2C2A28;
    --text: #3A3732;
    --muted: #6A645C;
    --quiet: #8A847A;
    --elephant: #B8B3A8;
    --moss: #6A7A58;
    --clay: #A65A3A;
    --border: rgba(44, 42, 40, 0.14);
    --border-strong: rgba(166, 90, 58, 0.36);
    --shadow: 0 12px 28px rgba(44, 42, 40, 0.08);
    --max: 980px;
    --top-news: 20px;
    --top-head: 54px;
    --top-steps: 46px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    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.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }

.elephant-news {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 700;
    height: var(--top-news);
    background: var(--ink);
    color: var(--panel);
    font-size: 12px;
}
.top-inner,
.header-inner,
.steps-inner,
.footer-inner,
.page-shell {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}
.top-inner {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.utility-search {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--panel);
    font-size: 12px;
    line-height: 20px;
    padding: 0 2px;
    cursor: pointer;
}
.utility-search::after {
    content: "";
    position: absolute;
    inset: -12px -10px;
}

.elephant-header {
    position: fixed;
    inset: var(--top-news) 0 auto 0;
    z-index: 690;
    height: var(--top-head);
    background: var(--elephant);
    border-bottom: 1px solid rgba(44, 42, 40, 0.24);
}
.header-inner {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand-link,
.drawer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}
.brand-logo,
.drawer-logo,
.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    object-position: center;
}
.brand-fallback { font-size: 16px; font-weight: 700; color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-app,
.drawer-button,
.drawer-close,
.search-close,
.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 16px;
    font-size: 14px;
    white-space: nowrap;
}
.header-app {
    color: var(--ink);
    border: 1px solid rgba(44, 42, 40, 0.26);
    background: rgba(244, 241, 234, 0.68);
}
.drawer-button,
.drawer-close,
.search-close {
    border: 1px solid rgba(44, 42, 40, 0.2);
    background: var(--panel);
    color: var(--ink);
    cursor: pointer;
}

.elephant-steps {
    position: fixed;
    inset: calc(var(--top-news) + var(--top-head)) 0 auto 0;
    z-index: 680;
    height: var(--top-steps);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}
.steps-inner { display: flex; align-items: stretch; height: 46px; gap: 28px; }
.step-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--ink);
    font-size: 13px;
}
.step-link span { color: var(--clay); font-size: 12px; }
.step-link.is-current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--clay);
}
.step-link.is-current span { color: var(--ink); }

.site-main { padding-top: 152px; padding-bottom: 48px; min-height: 70vh; }
.page-shell { padding-bottom: 32px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; color: var(--ink); font-size: 24px; line-height: 1.3; letter-spacing: 0.02em; }
h2 { margin-bottom: 14px; color: var(--ink); font-size: 20px; line-height: 1.4; }
h3 { margin-bottom: 8px; color: var(--ink); font-size: 16px; line-height: 1.5; }
p { margin-bottom: 14px; }
.eyebrow { display: inline-block; color: var(--clay); font-size: 12px; letter-spacing: 0.12em; }
.section-note { color: var(--muted); }

.hero-number {
    font-size: clamp(64px, 11vw, 118px);
    line-height: 0.88;
    font-weight: 760;
    letter-spacing: -0.05em;
    color: var(--elephant);
}
.home-intro {
    padding: 28px 0 34px;
    border-bottom: 1px solid var(--border);
}
.home-intro .hero-copy { max-width: 720px; }
.hero-sentence { font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-primary { background: linear-gradient(135deg, #B8B3A8 0%, #2C2A28 100%); color: var(--panel); border: 1px solid transparent; }
.btn-secondary { background: var(--panel); color: var(--ink); border: 1px solid var(--clay); }

.content-section { margin-top: 32px; padding-top: 4px; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 13px; }

.media-slot {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--elephant);
    box-shadow: var(--shadow);
}
.media-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.media-empty { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-deep), var(--elephant)); }
.media-slot figcaption { padding: 9px 12px; background: var(--panel); color: var(--muted); font-size: 13px; }
.frame-short { width: 100%; height: 180px; }
.frame-banner { width: 100%; height: 200px; }
.frame-app { height: 320px; }
.frame-standard { height: 220px; }
.frame-tall { height: 280px; }

.vertical-steps { display: grid; gap: 0; border-top: 1px solid var(--border); }
.step-item {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.step-index { font-size: 26px; line-height: 1; color: var(--clay); font-weight: 700; }
.step-body { min-width: 0; }
.step-body .media-slot { margin: 16px 0 14px; max-width: 620px; }

.quote-stack { display: grid; gap: 18px; }
.quote-card {
    margin: 0;
    padding: 22px;
    border-left: 4px solid var(--clay);
    border-radius: 0 8px 8px 0;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.quote-card p { color: var(--ink); font-size: 17px; line-height: 1.75; }
.quote-card footer { color: var(--muted); font-size: 13px; }
.quote-card .media-slot { margin: 16px 0; }

.explain-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.explain-card { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.explain-card .media-slot { margin-bottom: 16px; box-shadow: none; }

.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel-soft); }
.period-grid article { padding: 20px; border-right: 1px solid var(--border); }
.period-grid article:last-child { border-right: 0; }
.period-grid .tag { display: inline-block; color: var(--clay); font-weight: 700; margin-bottom: 8px; }

.status-list { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.status-row span:last-child { justify-self: end; padding: 3px 10px; border-radius: 999px; background: var(--bg-deep); color: var(--ink); font-size: 13px; }
.status-row.is-making span:last-child { background: rgba(106, 122, 88, 0.18); color: #435035; }
.status-row.is-waiting span:last-child { background: rgba(166, 90, 58, 0.12); color: #7D3E28; }

.product-split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 26px; align-items: center; }
.product-visual { position: relative; }
.app-icon-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-icon-wrap img { width: 48px; height: 48px; object-fit: contain; object-position: center; border-radius: 10px; }
.app-icon-fallback { width: 48px; height: 48px; border-radius: 10px; background: var(--elephant); }

.info-list { display: grid; gap: 12px; }
.info-list article { padding: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }

.faq-mini { display: grid; gap: 10px; }
.faq-mini details { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow: hidden; }
.faq-mini summary { cursor: pointer; padding: 16px 18px; min-height: 44px; color: var(--ink); font-weight: 650; }
.faq-mini details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

.page-intro {
    margin-bottom: 28px;
    padding: 24px 0 20px;
    border-bottom: 1px solid var(--border);
}
.page-intro-number { color: var(--clay); font-size: 12px; letter-spacing: 0.14em; }
.page-intro p { max-width: 760px; color: var(--muted); }

.full-frame-intro .media-slot { margin: 16px 0 24px; }
.story-column { max-width: 760px; }
.story-column section { padding: 20px 0; border-bottom: 1px solid var(--border); }
.story-column section:last-child { border-bottom: 0; }

.memo-list { display: grid; gap: 14px; }
.memo-list article { padding: 18px 20px; border-left: 3px solid var(--moss); background: var(--panel); border-radius: 0 8px 8px 0; }
.memo-list ul { margin: 8px 0 0; padding-left: 1.2em; }

.method-flow { counter-reset: method; display: grid; gap: 14px; }
.method-flow article { position: relative; padding: 20px 20px 20px 72px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.method-flow article::before { counter-increment: method; content: counter(method, decimal-leading-zero); position: absolute; left: 20px; top: 18px; color: var(--clay); font-weight: 760; }

.topic-list { display: grid; gap: 12px; }
.topic-list article { padding: 18px; background: var(--panel-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.topic-list a { text-decoration: underline; text-decoration-color: rgba(166, 90, 58, 0.5); text-underline-offset: 4px; }

.center-cards { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.center-card { text-align: center; padding: 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.center-card p { max-width: 620px; margin-left: auto; margin-right: auto; }
.center-card .media-slot { margin: 0 auto 16px; }

.terms { display: grid; gap: 18px; }
.terms section { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.terms section h2 { margin-bottom: 8px; }

.qa-list { display: grid; gap: 14px; }
.qa-item { padding: 18px 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.qa-item h2 { font-size: 17px; }

.contact-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-paths article { padding: 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }

.site-footer { background: #241F1C; color: #E6E2DA; border-top: 1px solid rgba(184, 179, 168, 0.34); font-size: 13px; }
.footer-inner { padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.footer-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(230, 226, 218, 0.15); }
.footer-brand a { min-height: 44px; display: inline-flex; align-items: center; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 22px 0; }
.footer-grid h2 { color: #E6E2DA; font-size: 13px; margin-bottom: 8px; }
.footer-grid a { display: block; min-height: 32px; color: #E6E2DA; opacity: 0.88; }
.footer-note { max-width: 820px; color: #E6E2DA; opacity: 0.76; }
.footer-copy { margin: 0; color: #E6E2DA; opacity: 0.62; }

.site-overlay {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    position: fixed;
    inset: 0;
    z-index: 810;
    background: rgba(36, 31, 28, 0.48);
    transition: opacity 180ms ease, visibility 180ms ease;
}
.site-overlay.is-active { visibility: visible; pointer-events: auto; opacity: 1; }

.site-drawer {
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 900;
    width: 320px;
    max-width: 86vw;
    transform: translateX(-104%);
    transition: transform 220ms ease, visibility 220ms ease;
    background: var(--panel);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.site-drawer.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
.drawer-head { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.drawer-brand { gap: 10px; }
.drawer-scroll { height: calc(100vh - 66px); overflow-y: auto; padding: 16px 14px 28px; }
.drawer-scroll section { margin-bottom: 22px; }
.drawer-scroll h2 { font-size: 13px; color: var(--clay); margin-bottom: 7px; }
.drawer-scroll a { display: block; min-height: 54px; padding: 8px 2px; border-bottom: 1px solid var(--border); }
.drawer-scroll a strong { display: block; font-size: 14px; color: var(--ink); }
.drawer-scroll a span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; }

.site-search {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    position: fixed;
    z-index: 880;
    top: 74px;
    left: 50%;
    width: min(calc(100% - 32px), 760px);
    transform: translate(-50%, -12px);
    padding: 22px;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
.site-search.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%, 0); }
.search-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.search-head h2 { margin-bottom: 8px; }
.search-label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.search-input { width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 8px; background: #fffdf7; color: var(--ink); padding: 0 12px; outline: 0; }
.search-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 58px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-soft); }
.search-presets span { display: block; color: var(--muted); font-size: 12px; }
.search-empty { margin: 14px 0 0; color: var(--muted); }

.spaced-top { margin-top: 16px; }
.centered-intro { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.center-buttons { justify-content: center; }
.story-centered { margin-left: auto; margin-right: auto; }

.mobile-bar { display: none; }

.header-app:hover,
.drawer-button:hover,
.drawer-close:hover,
.search-close:hover,
.btn:hover,
.step-link:hover,
.footer-grid a:hover,
.drawer-scroll a:hover { opacity: 0.82; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible { outline: 3px solid rgba(166, 90, 58, 0.5); outline-offset: 2px; }

@media (max-width: 760px) {
    :root { --top-steps: 0px; }
    .top-inner,
    .header-inner,
    .footer-inner,
    .page-shell { width: calc(100% - 32px); }
    .elephant-steps { display: none; }
    .site-main { padding-top: 102px; padding-bottom: 76px; }
    .header-inner { gap: 8px; }
    .brand-link { flex: 1 1 auto; min-width: 0; }
    .header-actions { flex: 0 0 auto; gap: 4px; }
    .header-app,
    .drawer-button { min-height: 44px; padding: 0 10px; font-size: 13px; }
    .brand-logo { max-width: 124px; }
    .hero-number { font-size: 68px; }
    .explain-cards,
    .contact-paths,
    .product-split,
    .footer-grid,
    .search-presets { grid-template-columns: 1fr; }
    .period-grid { grid-template-columns: 1fr; }
    .period-grid article { border-right: 0; border-bottom: 1px solid var(--border); }
    .period-grid article:last-child { border-bottom: 0; }
    .step-item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
    .status-row { grid-template-columns: 1fr; gap: 8px; }
    .status-row span:last-child { justify-self: start; }
    .frame-app { height: 300px; }
    .site-search {
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        transform: none;
        border: 0;
        border-radius: 0;
        background: var(--ink);
        color: var(--panel);
        padding: calc(22px + env(safe-area-inset-top)) 16px 22px;
        overflow-y: auto;
    }
    .site-search.is-open { transform: none; }
    .search-head h2,
    .site-search .eyebrow,
    .search-label { color: var(--panel); }
    .search-close { background: var(--panel); color: var(--ink); }
    .search-presets a { background: #342F2B; border-color: rgba(244, 241, 234, 0.18); color: var(--panel); }
    .search-presets span,
    .search-empty { color: #CFC8BE; }
    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 760;
        height: calc(48px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--panel);
        border-top: 1px solid var(--border);
    }
    .mobile-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--ink); }
    .mobile-bar a.is-current { background: var(--ink); color: var(--panel); }
    .site-overlay { z-index: 810; }
    .site-drawer { z-index: 900; }
    .footer-inner { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
