:root {
    --bg: #F3E8D4;
    --deep: #E2D2B4;
    --paper: #FBF3E4;
    --soft: #EDE0C8;
    --ink: #1A140A;
    --text: #2C2214;
    --muted: #5C4A30;
    --assist: #7C6844;
    --gold: #7A5A20;
    --copper: #B88838;
    --border: rgba(26,20,10,0.12);
    --strong-border: rgba(122,90,32,0.50);
    --shadow: 0 12px 28px rgba(26,20,10,0.10);
    --radius: 10px;
    --max: 960px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.7; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(184,136,56,.45); outline-offset: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; object-fit: contain; object-position: center; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 6px; border: 1px solid var(--gold); }
.skip-link:focus { top: 8px; }
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; box-shadow: 0 5px 20px rgba(26,20,10,.06); }
.top-strip { height: 20px; background: var(--ink); color: var(--copper); font-size: 12px; }
.top-strip-inner, .brand-bar-inner, .dot-nav-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.top-strip-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.text-control { border: 0; background: transparent; color: var(--copper); padding: 0 4px; min-height: 20px; }
.brand-bar { height: 54px; background: var(--paper); border-bottom: 1px solid var(--strong-border); }
.brand-bar-inner { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link, .footer-brand, .drawer-brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo, .drawer-logo, .footer-logo { height: 24px; width: auto; max-width: 120px; object-fit: contain; }
.brand-fallback { color: var(--ink); font-weight: 800; font-size: 16px; }
.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: 9px; font-size: 14px; }
.app-link { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--paper); }
.app-link:hover { color: #fff7e8; }
.drawer-button { border: 1px solid var(--gold); color: var(--ink); background: var(--paper); }
.dot-nav { height: 42px; background: var(--paper); border-bottom: 1px solid var(--border); }
.dot-nav-inner { display: flex; height: 42px; align-items: center; justify-content: flex-end; gap: 28px; }
.dot-item { position: relative; min-width: 48px; height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; color: var(--muted); }
.dot-mark { width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; }
.dot-item.is-active .dot-mark { background: var(--copper); border-color: var(--copper); }
.dot-item.is-active { color: var(--ink); font-weight: 700; }
.site-main { padding-top: 116px; padding-bottom: 36px; min-height: 70vh; }
.content-wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto 28px; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-weight: 700; letter-spacing: .05em; font-size: 13px; }
h1, h2, h3 { color: var(--ink); margin-top: 0; }
h1 { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
h2 { font-size: 20px; line-height: 1.45; margin-bottom: 10px; }
h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.button { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button.primary { background: linear-gradient(135deg,#1A140A 0%,#B88838 100%); color: var(--paper); }
.button.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--gold); }
.text-link { color: var(--gold); font-weight: 700; border-bottom: 1px solid rgba(122,90,32,.35); padding-bottom: 2px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.section-heading p { margin: 0; color: var(--assist); font-size: 13px; }
.section-heading h2 { margin: 0; max-width: 70%; }
.image-slot { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.image-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.landscape-slot { height: 168px; }
.medium-slot { min-height: 180px; max-height: 260px; }
.wide-slot { min-height: 150px; max-height: 260px; }
.app-slot { height: 300px; }
.icon-slot { width: 64px; height: 64px; padding: 8px; }
.banner-slot { height: 200px; }
.home-intro { padding: 38px 0 26px; }
.home-index { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.home-index a { background: var(--paper); border: 1px solid var(--border); border-radius: 999px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.home-index a span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.lead-sentence { font-size: 18px; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.intro-copy { max-width: 780px; }
.home-slice, .home-triad, .home-book, .home-shelf, .home-period, .home-status, .home-app, .home-method, .home-faq, .home-brand { background: rgba(251,243,228,.72); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: 0 8px 20px rgba(26,20,10,.04); }
.slice-copy { padding-top: 14px; }
.home-triad { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 14px; }
.home-triad .section-heading, .home-triad > .button { grid-column: 1 / -1; }
.triad-card { background: var(--soft); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); }
.triad-card.featured { background: var(--paper); }
.triad-card .image-slot { margin-bottom: 12px; }
.book-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.book-pair article { background: var(--paper); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius); }
.book-pair .image-slot { margin-bottom: 12px; }
.shelf-head { margin-bottom: 14px; }
.shelf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shelf-cards article { background: var(--ink); color: var(--paper); padding: 18px; border-radius: var(--radius); }
.shelf-cards h3 { color: var(--copper); }
.shelf-cards a { color: var(--copper); font-weight: 700; }
.period-media { margin-bottom: 16px; }
.period-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.period-list div { background: var(--paper); border-left: 3px solid var(--copper); padding: 14px; }
.period-list strong { color: var(--gold); }
.home-status { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.home-status .section-heading, .home-status > .button { grid-column: 1 / -1; }
.status-list { display: grid; gap: 10px; }
.status-list span { background: var(--paper); border: 1px solid var(--border); padding: 12px 14px; border-radius: 8px; }
.status-list b { color: var(--gold); margin-right: 8px; }
.home-app { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; align-items: start; }
.app-visuals { position: relative; }
.app-visuals .icon-slot { position: absolute; right: 10px; bottom: 10px; box-shadow: var(--shadow); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.faq-grid article { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.brand-links, .inline-links { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-links a, .inline-links a { min-height: 40px; padding: 0 12px; display: inline-flex; align-items: center; border: 1px solid var(--gold); border-radius: 8px; background: var(--paper); }
.page-hero, .slice-page, .book-page, .single-flow, .period-page, .status-page, .memo-page, .method-page, .topic-page, .center-card-page, .app-page, .guide-page, .policy-page, .help-page, .faq-page, .contact-page, .about-page { padding-top: 34px; }
.compact-hero { border-bottom: 1px solid var(--border); padding-bottom: 18px; }
.triad-page { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.triad-page-item { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.triad-page-item.visual-first { grid-column: span 2; display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.related-band, .note-panel, .safety-note { padding: 18px; background: var(--soft); border-radius: var(--radius); border: 1px solid var(--border); }
.slice-top { max-width: 760px; margin-bottom: 18px; }
.slice-steps { margin-top: 18px; display: grid; gap: 0; border-top: 1px solid var(--border); }
.slice-steps article { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.book-page .page-intro { max-width: 760px; }
.book-spread { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; background: var(--paper); border: 1px solid var(--border); padding: 18px; border-radius: var(--radius); margin-top: 16px; }
.book-spread.reverse { grid-template-columns: .9fr 1.1fr; background: var(--soft); }
.single-flow { max-width: 760px; }
.single-flow > article { border-left: 2px solid var(--copper); padding: 4px 0 8px 18px; margin: 18px 0; }
.single-flow > .image-slot { margin: 18px 0 22px; }
.period-columns { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 16px; }
.period-columns article { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.period-columns span { display: inline-flex; background: var(--ink); color: var(--copper); padding: 3px 8px; border-radius: 999px; margin-bottom: 10px; }
.status-page > .image-slot { margin: 18px 0; }
.status-rows { display: grid; gap: 10px; }
.status-rows article { display: grid; grid-template-columns: 110px 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.status-rows strong { color: var(--gold); }
.memo-page > .image-slot { margin: 16px 0; }
.memo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.memo-list li { background: var(--paper); padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--border); }
.method-stack { display: grid; gap: 18px; }
.method-stack article { padding: 0 0 16px; border-bottom: 1px solid var(--border); }
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.topic-list article { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.topic-list article:first-child { grid-column: 1 / -1; background: var(--soft); }
.center-card { max-width: 760px; margin: 0 auto 18px; text-align: center; background: var(--paper); border: 1px solid var(--strong-border); border-radius: 12px; padding: 20px; }
.center-card .image-slot { margin: 14px 0; }
.center-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.center-cards-grid article { background: var(--soft); border-radius: var(--radius); padding: 16px; border: 1px solid var(--border); }
.center-cards-grid a { color: var(--gold); font-weight: 700; }
.app-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; }
.app-page-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.guide-steps { display: grid; gap: 10px; margin-top: 18px; }
.guide-steps article { display: grid; grid-template-columns: 52px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.guide-steps span { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink); color: var(--copper); font-weight: 800; }
.policy-page { max-width: 800px; }
.policy-page article { padding: 18px 0; border-bottom: 1px solid var(--border); }
.help-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.help-grid article, .contact-grid article { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.help-grid a { color: var(--gold); font-weight: 700; }
.faq-list { display: grid; gap: 10px; margin-top: 18px; }
.faq-list article { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.about-page article { max-width: 780px; margin: 0 auto; padding: 16px 0; border-bottom: 1px solid var(--border); }
.about-page > h1, .about-page > .eyebrow { max-width: 780px; margin-left: auto; margin-right: auto; }
.about-mark { max-width: 520px; margin: 18px auto 0; }
.site-footer { background: var(--ink); color: var(--bg); border-top: 1px solid var(--copper); font-size: 13px; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 26px 0 72px; }
.footer-brand { margin-bottom: 20px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: var(--copper); font-size: 12px; }
.footer-groups { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.footer-groups h2 { color: var(--copper); font-size: 14px; margin-bottom: 8px; }
.footer-groups a { display: block; color: var(--bg); margin: 5px 0; }
.footer-note { color: #d8c6a6; margin-top: 22px; max-width: 800px; }
.footer-copy { color: var(--copper); }
.screen-mask { position: fixed; inset: 0; background: rgba(26,20,10,.45); z-index: 70; opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.screen-mask.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; left: 16px; bottom: 16px; width: 240px; max-height: 380px; z-index: 80; background: var(--paper); border: 1px solid var(--strong-border); border-radius: 12px; box-shadow: var(--shadow); transform: translateY(24px); opacity: 0; visibility: hidden; pointer-events: none; transition: .22s ease; }
.drawer-open .site-drawer { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); }
.drawer-brand span { font-weight: 800; }
.icon-control { min-height: 40px; border: 1px solid var(--gold); background: var(--paper); color: var(--ink); border-radius: 8px; padding: 0 10px; }
.drawer-scroll { max-height: 310px; overflow-y: auto; padding: 8px 12px 14px; }
.drawer-scroll section { padding: 8px 0; border-bottom: 1px solid var(--border); }
.drawer-scroll h2 { font-size: 14px; color: var(--gold); margin-bottom: 6px; }
.drawer-scroll a { display: block; padding: 6px 0; }
.drawer-scroll a strong, .drawer-scroll a span { display: block; }
.drawer-scroll a span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.search-panel { position: fixed; left: 0; right: 0; top: 74px; z-index: 85; visibility: hidden; pointer-events: none; opacity: 0; transition: .2s ease; }
.search-open .search-panel { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(720px, calc(100% - 32px)); margin: 0 auto; background: var(--paper); border: 1px solid var(--strong-border); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); padding: 16px; }
.search-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.search-card label { display: block; color: var(--muted); margin-bottom: 8px; }
.search-card input { width: 100%; min-height: 44px; border: 1px solid var(--gold); background: #fff9ee; color: var(--ink); border-radius: 8px; padding: 0 12px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; background: var(--soft); border-radius: 999px; border: 1px solid var(--border); }
.mobile-bottom { display: none; }
@media (max-width: 760px) {
    .dot-nav { display: none; }
    .site-main { padding-top: 74px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .top-strip-inner, .brand-bar-inner, .content-wrap, .footer-inner { width: calc(100% - 32px); }
    .brand-bar-inner { gap: 8px; }
    .brand-actions { gap: 6px; }
    .app-link, .drawer-button { min-height: 44px; padding: 0 10px; }
    .home-intro { padding-top: 26px; }
    .section-heading { align-items: start; flex-direction: column; gap: 3px; }
    .section-heading h2 { max-width: none; }
    .home-triad, .home-status, .home-app, .triad-page, .book-spread, .book-spread.reverse, .app-page { grid-template-columns: 1fr; }
    .home-triad .section-heading, .home-triad > .button, .home-status .section-heading, .home-status > .button { grid-column: 1; }
    .book-pair, .shelf-cards, .period-list, .faq-grid, .period-columns, .topic-list, .center-cards-grid, .help-grid, .contact-grid, .footer-groups { grid-template-columns: 1fr; }
    .triad-page-item.visual-first { grid-column: auto; grid-template-columns: 1fr; }
    .slice-steps article, .status-rows article { grid-template-columns: 1fr; gap: 6px; }
    .topic-list article:first-child { grid-column: auto; }
    .site-drawer { left: 6%; width: 88%; bottom: calc(58px + env(safe-area-inset-bottom)); max-height: 380px; }
    .drawer-scroll { max-height: 300px; }
    .search-panel { top: 0; bottom: 0; background: var(--ink); color: var(--copper); padding: 18px 16px; }
    .search-card { width: 100%; max-width: none; margin-top: 20px; background: var(--ink); border-color: var(--copper); border-radius: 12px; box-shadow: none; }
    .search-card strong, .search-card label { color: var(--copper); }
    .search-card input { background: var(--paper); }
    .search-presets a { background: #2a2114; color: var(--bg); border-color: rgba(184,136,56,.35); }
    .search-panel .icon-control { background: transparent; color: var(--copper); border-color: var(--copper); }
    .mobile-bottom { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--ink); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--copper); }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; color: var(--bg); min-height: 48px; font-size: 13px; }
    .mobile-bottom a.is-active { background: var(--copper); color: var(--ink); font-weight: 800; }
    .drawer-open .mobile-bottom, .search-open .mobile-bottom { z-index: 65; }
    .footer-inner { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
    .landscape-slot { height: 168px; }
    .app-slot { height: 280px; }
}

.extra-reading { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
.extra-reading article { background:var(--paper); border:1px solid var(--border); border-radius:var(--radius); padding:16px; }
.extra-reading article:nth-child(3n) { background:var(--soft); }
@media (max-width:760px) { .extra-reading { grid-template-columns:1fr; } }
