:root {
    --bg: #F3E6C8;
    --deep-bg: #E4D2A8;
    --content: #FFF8E8;
    --subtle: #F7EDD4;
    --title: #3A2A12;
    --text: #4A3418;
    --muted: #7A5A28;
    --aux: #A08048;
    --deep: #5A3C16;
    --shell: #8A5A22;
    --sprout: #6A7A38;
    --border: rgba(90,60,22,0.16);
    --border-strong: rgba(90,60,22,0.42);
    --shadow: 0 12px 28px rgba(58,42,18,0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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; }
a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--sprout); outline-offset: 3px; }
body.is-locked { overflow: hidden; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--content); color: var(--deep); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-strong); }
.skip-link:focus { top: 8px; }
.sprout-line { position: fixed; inset: 0 0 auto 0; height: 22px; z-index: 70; background: var(--deep); color: var(--content); font-size: 12px; }
.top-inner, .pod-inner, .ridge-inner { width: min(1080px, calc(100% - 32px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.text-button { min-height: 22px; border: 0; background: transparent; color: var(--content); padding: 0 4px; cursor: pointer; }
.pod-bar { position: fixed; inset: 22px 0 auto 0; height: 56px; z-index: 68; background: var(--bg); border-bottom: 1px solid var(--border-strong); }
.pod-brand, .pod-app-link, .pod-menu-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pod-brand { justify-content: flex-start; min-width: 160px; }
.brand-logo { max-height: 26px; width: auto; object-fit: contain; object-position: center; }
.brand-fallback { font-weight: 800; font-size: 16px; color: var(--title); letter-spacing: .02em; }
.pod-app-link { padding: 0 16px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--content); color: var(--deep); font-weight: 700; }
.pod-menu-button { min-width: 72px; border: 1px solid var(--border-strong); border-radius: 10px; background: transparent; color: var(--deep); cursor: pointer; font-weight: 700; }
.ridge-tabs { position: fixed; inset: 78px 0 auto 0; height: 38px; z-index: 66; background: var(--content); border-bottom: 1px solid var(--border); }
.ridge-inner { font-size: 13px; }
.ridge-left, .ridge-right { display: flex; align-items: center; gap: 8px; }
.ridge-tabs a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; }
.ridge-tabs a.is-current { background: var(--deep); color: var(--content); text-decoration: none; }
.site-main { padding-top: 116px; min-height: 70vh; }
.section-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.eyebrow { color: var(--shell); font-size: 13px; font-weight: 800; letter-spacing: .08em; margin-bottom: 8px; }
h1,h2,h3,p { margin-top: 0; }
h1 { color: var(--title); font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h2 { color: var(--title); font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
h3 { color: var(--title); font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin-bottom: 16px; }
.lead { max-width: 850px; font-size: 16px; color: var(--text); }
.section-heading { margin-bottom: 20px; }
.section-heading > span { color: var(--shell); font-size: 13px; font-weight: 800; }
.section-heading h2 { margin-top: 4px; }
.btn { 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,#8A5A22 0%,#5A3C16 100%); color: var(--content); border: 1px solid transparent; }
.btn-primary:hover { color: var(--content); }
.btn-secondary { background: var(--content); border: 1px solid var(--shell); color: var(--deep); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-weight: 800; }
.media-slot { background: var(--subtle); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.banner-slot { width: 100%; height: 200px; }
.grid-image { height: 140px; margin-bottom: 14px; }
.wide-reading-image { height: 180px; margin-bottom: 22px; }
.timeline-image, .note-image, .bar-image, .directory-image, .grid-page-image, .split-page-image, .timeline-page-image, .bars-page-image, .checklist-image, .cabinet-image, .about-image { min-height: 180px; max-height: 260px; margin: 20px 0 26px; }
.app-slot { height: 320px; }
.icon-slot { width: 64px; height: 64px; padding: 8px; margin-top: 12px; }
.icon-slot img { width: 48px; height: 48px; }
.home-intro { padding-top: 62px; padding-bottom: 28px; }
.home-intro .lead { max-width: 780px; }
.banner-section { padding-top: 8px; padding-bottom: 36px; }
.home-grid-section { background: var(--content); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-radius: 12px; padding-left: 20px; padding-right: 20px; }
.four-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.four-grid article { background: var(--subtle); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.feature-yakan { padding-top: 56px; }
.ordinal-copy { max-width: 880px; }
.ordinal-copy strong { color: var(--shell); margin-right: 8px; }
.timeline-section { background: var(--deep-bg); border-radius: 12px; padding-left: 20px; padding-right: 20px; }
.timeline { position: relative; margin-left: 12px; padding-left: 24px; border-left: 2px solid var(--border-strong); }
.timeline article { position: relative; padding: 0 0 26px 10px; }
.timeline article::before { content: ""; position: absolute; left: -31px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--sprout); border: 3px solid var(--content); }
.timeline article > span { color: var(--shell); font-weight: 800; font-size: 13px; }
.split-note { padding-bottom: 56px; }
.split-columns { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.split-columns article { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.theme-bars { display: grid; gap: 10px; }
.theme-bars a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 16px; background: var(--content); border: 1px solid var(--border-strong); border-radius: 10px; }
.theme-bars strong { color: var(--sprout); }
.app-feature { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 34px; align-items: center; background: var(--content); border-radius: 12px; padding-left: 22px; padding-right: 22px; box-shadow: var(--shadow); }
.app-visual { max-width: 360px; }
.reading-list { display: grid; gap: 12px; }
.reading-list article { border-left: 4px solid var(--sprout); background: var(--subtle); padding: 18px 20px; border-radius: 0 10px 10px 0; }
.faq-short-list, .faq-list { display: grid; gap: 10px; }
details { background: var(--content); border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; }
summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 800; color: var(--title); }
details p { padding-bottom: 8px; }
.brand-story { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.brand-image { min-height: 220px; margin: 0; }
.article-hero, .directory-hero, .grid-hero, .split-hero, .timeline-hero, .bars-hero, .checklist-hero { padding: 16px 0 12px; }
.single-longform section { max-width: 860px; margin: 0 auto 34px; }
.article-image { min-height: 220px; max-height: 300px; margin: 18px 0 34px; }
.article-note, .method-card, .timeline-foot, .bars-explain, .cabinet-note, .product-warning, .help-more, .contact-note, .grid-notes, .topic-guide { background: var(--subtle); border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-top: 28px; }
.observation-directory { display: grid; gap: 16px; }
.observation-directory article { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.observation-directory article > span { display: inline-block; color: var(--sprout); font-weight: 800; margin-bottom: 6px; }
.grid-page .four-grid article { min-height: 260px; }
.closing-strip { margin-top: 22px; background: var(--deep); color: var(--content); border-radius: 12px; padding: 24px; display: grid; grid-template-columns: 220px 1fr; gap: 26px; }
.closing-strip h2, .closing-strip span { color: var(--content); }
.yatai-columns article { margin-bottom: 16px; }
.yatai-columns article > span { color: var(--shell); font-size: 13px; font-weight: 800; }
.large-timeline article { padding-bottom: 38px; }
.status-bars { display: grid; gap: 12px; }
.status-bars article { display: grid; grid-template-columns: 260px 1fr; gap: 20px; background: var(--content); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.status-bars article span { color: var(--sprout); font-size: 13px; font-weight: 800; }
.checklist-stack { display: grid; gap: 16px; }
.checklist-stack section { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.checklist-stack ul { margin: 0 0 16px; padding-left: 22px; }
.method-page section, .policy-page section, .about-page section, .install-page section { max-width: 880px; margin: 0 auto 32px; }
.topic-list { display: grid; gap: 12px; }
.topic-list article { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: 280px 1fr; gap: 24px; }
.topic-list article span { color: var(--shell); font-size: 13px; font-weight: 800; }
.cabinet-bars { display: grid; gap: 10px; }
.cabinet-bars article { display: grid; grid-template-columns: 160px 1fr; background: var(--content); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cabinet-bars article > span { background: var(--deep-bg); color: var(--deep); font-weight: 800; padding: 20px; display: flex; align-items: center; }
.cabinet-bars article > div { padding: 18px 20px; }
.cabinet-bars article a { font-weight: 800; }
.product-hero { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; padding-top: 28px; }
.product-sections { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.product-sections article { background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.help-bands, .contact-bands { display: grid; gap: 12px; margin-top: 24px; }
.help-bands article, .contact-bands article { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: start; background: var(--content); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.help-bands article h2, .contact-bands article h2 { margin: 0; }
.help-bands article a, .contact-bands article a { font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer { background: #2E220E; color: var(--bg); border-top: 1px solid rgba(243,230,200,.25); font-size: 13px; padding-bottom: 18px; }
.footer-inner { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 24px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand-row div { display: grid; }
.footer-brand-row strong { color: var(--content); font-size: 16px; }
.footer-brand-row span { color: var(--bg); font-size: 11px; letter-spacing: .08em; }
.footer-brand p { color: var(--bg); max-width: 440px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.footer-links section { display: grid; align-content: start; gap: 8px; }
.footer-links h2 { color: var(--content); font-size: 13px; margin: 0 0 4px; }
.footer-links a { color: var(--bg); }
.footer-bottom { width: min(1080px, calc(100% - 32px)); margin: 0 auto; border-top: 1px solid rgba(243,230,200,.2); padding-top: 16px; color: var(--bg); }
.pod-drawer { position: fixed; z-index: 100; top: 0; right: 0; width: min(380px, 88vw); height: 100dvh; background: var(--content); border-left: 1px solid var(--border-strong); box-shadow: -12px 0 28px rgba(58,42,18,.16); transform: translateX(105%); visibility: hidden; pointer-events: none; transition: transform .22s ease, visibility .22s step-end; }
.pod-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .22s ease, visibility 0s; }
.drawer-head { height: 68px; padding: 0 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-brand div { display: grid; }
.drawer-brand span { font-size: 10px; color: var(--muted); }
.icon-close { min-width: 56px; min-height: 44px; border: 1px solid var(--border-strong); background: var(--subtle); color: var(--deep); border-radius: 10px; cursor: pointer; }
.drawer-scroll { height: calc(100dvh - 68px); overflow-y: auto; padding: 12px 16px 28px; }
.drawer-group { padding: 8px 0 14px; border-bottom: 1px solid var(--border); }
.drawer-group h2 { font-size: 13px; color: var(--shell); margin: 0 0 6px; }
.drawer-group a { display: grid; grid-template-columns: 92px 1fr; gap: 10px; min-height: 52px; align-items: center; border-radius: 8px; padding: 6px 8px; }
.drawer-group a:hover { background: var(--subtle); text-decoration: none; }
.drawer-group a strong { color: var(--title); }
.drawer-group a span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.site-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(46,34,14,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, visibility .18s step-end; }
.site-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .18s ease, visibility 0s; }
.search-layer { position: fixed; z-index: 98; left: 50%; top: 78px; width: min(760px, calc(100% - 32px)); transform: translate(-50%,-14px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s step-end; }
.search-layer.is-open { transform: translate(-50%,0); opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
.search-card { background: var(--content); border: 1px solid var(--border-strong); box-shadow: var(--shadow); border-radius: 0 0 12px 12px; padding: 18px; }
.search-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.search-card label { display: block; color: var(--muted); margin-bottom: 8px; }
.search-card input { width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--subtle); color: var(--text); padding: 0 12px; }
.search-presets { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.search-presets a { min-height: 60px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; display: grid; align-content: center; font-weight: 800; }
.search-presets a span { font-size: 12px; font-weight: 400; color: var(--muted); }
.mobile-bottom { display: none; }
@media (max-width: 760px) {
    .top-inner, .pod-inner, .section-shell, .footer-inner, .footer-bottom { width: calc(100% - 32px); }
    .pod-brand { min-width: 0; max-width: 38%; }
    .pod-app-link { padding: 0 10px; }
    .pod-menu-button { min-width: 60px; }
    .ridge-tabs { display: none; }
    .site-main { padding-top: 78px; padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
    .section-shell { padding-top: 34px; padding-bottom: 34px; }
    .home-intro { padding-top: 46px; }
    .four-grid, .split-columns, .app-feature, .brand-story, .product-hero, .product-sections { grid-template-columns: 1fr; }
    .home-grid-section, .timeline-section, .app-feature { padding-left: 16px; padding-right: 16px; }
    .app-feature { gap: 22px; }
    .app-visual { max-width: 100%; }
    .app-slot { height: 320px; }
    .closing-strip, .status-bars article, .topic-list article, .cabinet-bars article, .help-bands article, .contact-bands article { grid-template-columns: 1fr; }
    .cabinet-bars article > span { padding: 12px 16px; }
    .footer-inner { grid-template-columns: 1fr; gap: 18px; }
    .footer-links { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .site-footer { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
    .mobile-bottom { display: grid; grid-template-columns: repeat(5,1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 76; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--content); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--deep); }
    .mobile-bottom a.is-current { background: var(--deep); color: var(--content); text-decoration: none; }
    .search-layer { inset: 0; width: 100%; height: 100dvh; transform: none; background: var(--deep); }
    .search-layer.is-open { transform: none; }
    .search-card { height: 100%; border: 0; border-radius: 0; background: var(--deep); color: var(--content); padding: 22px 16px; }
    .search-card label, .search-card strong { color: var(--content); }
    .search-card input { background: var(--content); color: var(--text); }
    .search-presets { grid-template-columns: 1fr; }
    .search-presets a { background: var(--content); color: var(--deep); }
    .search-presets a span { color: var(--muted); }
    .search-card .icon-close { background: var(--content); }
}
@media (max-width: 420px) {
    .brand-fallback { font-size: 14px; }
    .pod-app-link { font-size: 13px; }
    .pod-menu-button { font-size: 13px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}
