:root {
    --bean-light: #F3E6C8;
    --bean-deep-layer: #E4D2A8;
    --paper: #FFF8E8;
    --paper-soft: #F7EDD4;
    --title: #3A2A12;
    --text: #4A3418;
    --muted: #7A5A28;
    --faint: #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(--bean-light); 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: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(106, 122, 56, 0.55); outline-offset: 3px; }
.scroll-locked { overflow: hidden; }
.sprout-line { position: fixed; z-index: 90; top: 0; left: 0; right: 0; height: 22px; background: var(--deep); color: var(--paper); font-size: 12px; }
.top-inner, .header-inner, .ridge-inner, .footer-inner { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top-inner { height: 22px; display: flex; align-items: center; justify-content: space-between; }
.text-button { border: 0; background: transparent; color: var(--paper); padding: 0 6px; min-height: 22px; }
.pod-header { position: fixed; z-index: 88; top: 22px; left: 0; right: 0; height: 56px; background: var(--bean-light); border-bottom: 1px solid var(--border-strong); }
.header-inner { height: 56px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.brand-link { justify-self: start; display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; font-size: 16px; color: var(--title); }
.brand-link img, .footer-brand img, .drawer-brand img { height: 26px; width: auto; object-fit: contain; }
.header-app-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--deep); font-weight: 700; }
.drawer-button { justify-self: end; min-width: 64px; min-height: 44px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--paper); color: var(--deep); }
.ridge-tabs { position: fixed; z-index: 86; top: 78px; left: 0; right: 0; height: 38px; background: var(--paper); border-bottom: 1px solid var(--border); }
.ridge-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.ridge-group { display: flex; gap: 6px; }
.ridge-tabs a { min-height: 30px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: 8px; font-size: 13px; color: var(--deep); }
.ridge-tabs a.is-active { background: var(--deep); color: var(--paper); }
.site-main { min-height: 70vh; padding-top: 116px; }
.page-shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 64px; }
.hero-intro { max-width: 780px; }
.eyebrow { margin: 0 0 8px; color: var(--sprout); font-weight: 700; letter-spacing: .08em; font-size: 13px; }
h1, h2, h3 { color: var(--title); line-height: 1.3; margin-top: 0; }
h1 { font-size: 24px; margin-bottom: 12px; }
h2 { font-size: 20px; margin-bottom: 12px; }
h3 { font-size: 16px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 16px; color: var(--title); max-width: 760px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 700; }
.btn-primary { background: linear-gradient(135deg, #8A5A22 0%, #5A3C16 100%); color: var(--paper); }
.btn-secondary { background: var(--paper); border: 1px solid var(--shell); color: var(--deep); }
.btn:hover { transform: translateY(-1px); }
.section { margin-top: 34px; }
.panel { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.soft-panel { background: var(--paper-soft); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.media-slot { width: 100%; background: var(--paper-soft); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.media-slot img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.media-banner { height: 200px; }
.media-card { height: 140px; }
.media-icon { width: 64px; height: 64px; }
.media-icon img { width: 48px; height: 48px; }
.media-long { height: 180px; }
.media-app { height: 340px; }
.media-default { height: 190px; }
.home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-grid article { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.home-grid p { margin-bottom: 0; }
.longform-block { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.marker { display: inline-block; color: var(--sprout); font-weight: 700; margin-right: 8px; }
.timeline { position: relative; margin-left: 12px; padding-left: 28px; }
.timeline:before { content: ""; position: absolute; left: 5px; top: 5px; bottom: 5px; width: 2px; background: var(--border-strong); }
.timeline-item { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; }
.timeline-item:before { content: ""; position: absolute; left: -29px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--sprout); box-shadow: 0 0 0 4px var(--bean-light); }
.note-split, .app-split, .two-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.theme-strips { display: grid; gap: 10px; }
.theme-strip { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--paper); border: 1px solid var(--border); border-left: 4px solid var(--shell); border-radius: 9px; padding: 15px 18px; }
.status { white-space: nowrap; font-size: 13px; color: var(--sprout); font-weight: 700; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.faq-item p:last-child { margin-bottom: 0; }
.content-prose { max-width: 860px; }
.content-prose p { margin-bottom: 16px; }
.observation-directory { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.observation-nav { position: sticky; top: 136px; background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.observation-nav a { display: block; padding: 9px 10px; border-radius: 8px; }
.observation-nav a:hover { background: var(--paper-soft); }
.observation-content { display: grid; gap: 16px; }
.observation-content section { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.quad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quad-grid article { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.memo-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.memo-column { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.check-list { display: grid; gap: 10px; }
.check-item { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.method-list { counter-reset: step; display: grid; gap: 14px; }
.method-item { position: relative; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px 20px 20px 64px; }
.method-item:before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: var(--paper); display: grid; place-items: center; font-weight: 700; }
.topic-list { display: grid; gap: 16px; }
.topic-item { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.policy-sections { display: grid; gap: 14px; }
.policy-sections section { background: var(--paper); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.service-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-index a { background: var(--paper); border: 1px solid var(--border); border-radius: 10px; padding: 18px; min-height: 120px; }
.service-index span { display: block; color: var(--muted); margin-top: 4px; }
.site-footer { background: #2E220E; color: var(--bean-light); border-top: 1px solid rgba(243, 230, 200, 0.2); }
.footer-inner { padding: 36px 0 92px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.footer-brand strong { color: var(--paper); }
.footer-brand span { color: var(--bean-light); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.footer-grid h2 { color: var(--paper); font-size: 14px; margin-bottom: 10px; }
.footer-grid a { display: block; padding: 4px 0; font-size: 13px; color: var(--bean-light); }
.footer-note, .copyright { font-size: 13px; color: var(--bean-light); }
.footer-note { margin-top: 24px; max-width: 850px; }
.copyright { margin-top: 10px; margin-bottom: 0; }
.page-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(46, 34, 14, 0.45); 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; z-index: 120; top: 0; right: 0; bottom: 0; width: 380px; max-width: 88vw; background: var(--paper); transform: translateX(100%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; box-shadow: -18px 0 40px rgba(58, 42, 18, .14); overflow-y: auto; }
.drawer-open .site-drawer { 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(--bean-light); border-bottom: 1px solid var(--border); }
.drawer-brand { display: flex; align-items: center; gap: 9px; }
.drawer-brand div { display: grid; line-height: 1.25; }
.drawer-brand span { color: var(--muted); font-size: 11px; }
.drawer-head button, .search-head button { min-height: 44px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--paper); color: var(--deep); padding: 0 12px; }
.drawer-body { padding: 12px 16px 28px; }
.drawer-body section { margin-bottom: 20px; }
.drawer-body h2 { font-size: 14px; color: var(--sprout); margin: 0 0 6px; }
.drawer-body a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.drawer-body a strong { display: block; color: var(--title); }
.drawer-body a span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.search-layer { position: fixed; z-index: 118; top: 78px; left: 0; right: 0; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.search-open .search-layer { visibility: visible; opacity: 1; pointer-events: auto; }
.search-card { width: min(760px, calc(100% - 32px)); margin: 10px auto 0; background: var(--paper); border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--paper-soft); color: var(--deep); }
.mobile-bottom { display: none; }
@media (max-width: 760px) {
    .ridge-tabs { display: none; }
    .site-main { padding-top: 78px; }
    .page-shell { padding-top: 28px; padding-bottom: 72px; }
    .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
    .brand-link { min-width: 0; }
    .brand-link img { max-width: 120px; }
    .header-app-link, .drawer-button { padding-left: 10px; padding-right: 10px; white-space: nowrap; }
    .home-grid, .quad-grid, .note-split, .app-split, .two-column, .memo-columns, .service-index, .footer-grid { grid-template-columns: 1fr; }
    .observation-directory { grid-template-columns: 1fr; }
    .observation-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
    .theme-strip { grid-template-columns: 1fr; gap: 4px; }
    .media-app { height: 320px; }
    .site-footer .footer-inner { padding-bottom: 112px; }
    .mobile-bottom { position: fixed; z-index: 84; left: 0; right: 0; bottom: 0; height: calc(48px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-top: 1px solid var(--border-strong); }
    .mobile-bottom a { min-height: 48px; display: grid; place-items: center; font-size: 13px; color: var(--deep); }
    .mobile-bottom a.is-active { background: var(--deep); color: var(--paper); }
    .search-layer { top: 0; bottom: 0; background: var(--deep); }
    .search-card { width: calc(100% - 32px); margin: 70px auto 0; background: transparent; border: 0; box-shadow: none; color: var(--paper); }
    .search-head strong, .search-card p { color: var(--paper); }
    .search-head button { background: var(--paper); }
    .search-presets a { background: rgba(255, 248, 232, .08); border-color: rgba(255, 248, 232, .24); color: var(--paper); }
}
@media (max-width: 420px) {
    .top-inner, .header-inner, .page-shell, .footer-inner { width: calc(100% - 32px); }
    .header-app-link { font-size: 13px; }
    .drawer-button { min-width: 58px; }
    .panel, .soft-panel, .longform-block { padding: 18px; }
}
