:root {
    --bg: #FFFFFF;
    --deep-bg: #F5F7FA;
    --content: #FFFFFF;
    --muted-bg: #EEF1F6;
    --title: #0A1628;
    --text: #1E2A3A;
    --secondary: #4A5568;
    --assist: #718096;
    --brand: #0033A0;
    --bright: #0052CC;
    --deep-blue: #002066;
    --line: rgba(0, 51, 160, 0.14);
    --shadow: 0 12px 36px rgba(0, 33, 102, 0.08);
    --radius: 14px;
    --top-h: 124px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
}
body.ui-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
figure { margin: 0; }
[hidden] { display: none !important; }

.shell { width: min(1220px, calc(100% - 40px)); margin: 0 auto; }
.site-top { position: fixed; inset: 0 0 auto; z-index: 900; }
.imprint-line { height: 20px; background: var(--deep-blue); color: #FFFFFF; }
.imprint-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; letter-spacing: .04em; }
.imprint-brand { min-height: 20px; display: inline-flex; align-items: center; font-weight: 700; }
.text-button { border: 0; background: transparent; color: #FFFFFF; padding: 0 6px; height: 20px; }
.text-button:hover, .text-button:focus-visible { background: rgba(255,255,255,.14); outline: none; }

.counter-bar { height: 62px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.counter-inner { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand-lockup { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.brand-text { font-size: 24px; line-height: 1; font-weight: 850; letter-spacing: -.03em; color: var(--deep-blue); }
.drawer-toggle { justify-self: center; height: 44px; min-width: 116px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); background: #FFFFFF; color: var(--deep-blue); border-radius: 10px; font-weight: 750; }
.drawer-toggle:hover, .drawer-toggle:focus-visible { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(0,82,204,.10); outline: none; }
.drawer-icon { display: inline-flex; flex-direction: column; gap: 3px; width: 16px; }
.drawer-icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.app-link { justify-self: end; min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 10px; color: #FFFFFF; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); font-weight: 750; }
.app-link:hover, .app-link:focus-visible { box-shadow: 0 8px 20px rgba(0,33,102,.18); outline: 2px solid rgba(0,82,204,.18); outline-offset: 2px; }

.tag-strip { height: 42px; background: var(--deep-bg); border-bottom: 1px solid var(--line); }
.tag-strip-inner { height: 42px; display: flex; align-items: center; justify-content: flex-start; gap: 6px; overflow: hidden; }
.tag-link { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 7px; color: var(--secondary); font-size: 14px; font-weight: 700; white-space: nowrap; }
.tag-link:hover, .tag-link:focus-visible { color: var(--brand); background: #FFFFFF; outline: none; }
.tag-link.is-current { color: #FFFFFF; background: var(--brand); }

.site-main { padding-top: calc(var(--top-h) + 26px); min-height: 70vh; }
.page { padding-bottom: 64px; }
.page-head { padding: 34px 0 26px; }
.eyebrow { display: inline-block; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 32px); line-height: 1.22; letter-spacing: -.025em; }
h2 { font-size: clamp(22px, 2.8vw, 27px); line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.45; }
p { margin: 0 0 14px; }
.lead { max-width: 860px; color: var(--secondary); font-size: 17px; }
.meta-note { margin-top: 14px; color: var(--assist); font-size: 14px; }
.section { padding: 42px 0; }
.section-alt { background: var(--deep-bg); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-title p { max-width: 650px; color: var(--secondary); }
.section-title a { color: var(--brand); font-weight: 750; }
.section-title a:hover, .section-title a:focus-visible { text-decoration: underline; outline: none; }

.hero-banner { min-height: 220px; max-height: 300px; background: var(--muted-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-banner img { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.hero-fallback { width: 100%; min-height: 240px; display: grid; place-items: center; text-align: center; padding: 30px; color: var(--deep-blue); background: linear-gradient(145deg,#F8FAFD 0%,#EEF3FA 100%); }
.hero-fallback strong { font-size: clamp(34px, 8vw, 68px); letter-spacing: -.05em; }
.hero-copy { padding: 28px 0 10px; }
.hero-copy .kicker { color: var(--brand); font-weight: 850; }
.hero-copy p { max-width: 900px; color: var(--secondary); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { min-height: 44px; padding: 10px 17px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid transparent; }
.button-primary { color: #FFFFFF; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); }
.button-secondary { color: var(--brand); background: #FFFFFF; border-color: var(--brand); }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,33,102,.12); outline: none; }

.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); background: var(--content); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p { color: var(--secondary); }
.card-link { display: inline-flex; margin-top: 6px; min-height: 44px; align-items: center; color: var(--brand); font-weight: 800; }
.card-link:hover, .card-link:focus-visible { text-decoration: underline; outline: none; }
.card-accent { border-top: 4px solid var(--bright); }
.card-accent.deep { border-top-color: var(--deep-blue); }
.number { display: inline-flex; min-width: 48px; min-height: 34px; align-items: center; justify-content: center; color: #FFFFFF; background: var(--brand); border-radius: 8px; font-weight: 900; letter-spacing: .04em; }
.large-number { font-size: clamp(34px, 5vw, 58px); color: var(--brand); font-weight: 900; line-height: 1; letter-spacing: -.05em; }

.media-slot { width: 100%; min-height: 180px; max-height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: var(--muted-bg); border: 1px solid var(--line); }
.media-slot img { width: 100%; height: 100%; min-height: 180px; max-height: 240px; object-fit: contain; object-position: center; }
.media-slot.media-tall { max-height: 420px; }
.media-slot.media-tall img { max-height: 420px; width: auto; }
.media-slot.media-wide { max-height: 300px; }
.media-slot.media-wide img { max-height: 300px; }
.media-placeholder { min-height: 190px; color: var(--deep-blue); font-weight: 850; letter-spacing: .03em; background: linear-gradient(145deg,#F8FAFD,#EEF3FA); }
.app-mini-icon { width: 60px; height: 60px; object-fit: contain; object-position: center; border-radius: 12px; margin: 0 0 14px; background: var(--muted-bg); }

.feature-row { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; }
.feature-row.reverse { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.feature-row.reverse .feature-media { order: 2; }
.feature-copy { padding: 4px 0; }
.feature-copy p { color: var(--secondary); }
.index-list, .rack-list, .plain-list, .step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.index-list li, .rack-list li, .plain-list li, .step-list li { border-bottom: 1px solid var(--line); padding: 0 0 14px; }
.index-list li:last-child, .rack-list li:last-child, .plain-list li:last-child, .step-list li:last-child { border-bottom: 0; }
.index-link { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; min-height: 56px; }
.index-link strong { color: var(--title); }
.index-link span:last-child { color: var(--brand); font-weight: 800; }

.theme-card { min-height: 150px; position: relative; overflow: hidden; }
.theme-card::after { content: ""; position: absolute; width: 68px; height: 68px; border-radius: 14px; right: -18px; bottom: -22px; background: rgba(0,82,204,.08); transform: rotate(18deg); }
.timeline { position: relative; margin-left: 9px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding: 0 0 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -30px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px #FFFFFF, 0 0 0 6px var(--line); }
.status { display: inline-flex; min-height: 28px; align-items: center; padding: 2px 9px; border-radius: 7px; background: var(--brand); color: #FFFFFF; font-size: 12px; font-weight: 850; }
.quote-card { border-left: 4px solid var(--brand); padding-left: 20px; }
.quote-card .opinion { color: var(--brand); font-weight: 850; font-size: 13px; }

.article-prose { max-width: 900px; }
.article-prose h2 { margin-top: 34px; margin-bottom: 12px; }
.article-prose h3 { margin-top: 24px; margin-bottom: 10px; }
.article-prose p { color: var(--text); }
.article-prose .soft { color: var(--secondary); }
.notice { padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); background: var(--deep-bg); border-radius: 10px; color: var(--secondary); }
.info-table { width: 100%; border-collapse: collapse; background: #FFFFFF; border: 1px solid var(--line); }
.info-table th, .info-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 24%; color: var(--title); background: var(--deep-bg); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }

.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; padding: 20px; }
.faq-item h2 { font-size: 18px; margin-bottom: 10px; }
.faq-item p { color: var(--secondary); margin: 0; }

.site-footer { background: var(--title); color: #A0AEC0; padding: 46px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(0, 2.1fr); gap: 44px; }
.footer-brand p { color: #A0AEC0; }
.footer-logo-link { display: inline-flex; min-height: 44px; align-items: center; color: #FFFFFF; font-size: 24px; }
.footer-logo { height: 32px; width: auto; object-fit: contain; object-position: left center; }
.footer-name { color: #FFFFFF !important; font-weight: 850; font-size: 18px; }
.footer-name span { color: #A0AEC0; font-size: 13px; margin-left: 8px; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.footer-links h2 { color: #FFFFFF; font-size: 15px; margin-bottom: 12px; }
.footer-links a { min-height: 36px; display: flex; align-items: center; color: #CBD5E0; font-size: 14px; }
.footer-links a:hover, .footer-links a:focus-visible { color: #FFFFFF; text-decoration: underline; outline: none; }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 13px; }
.footer-bottom a { color: #E2E8F0; }

.site-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(10,22,40,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.site-overlay.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-panel { position: fixed; z-index: 1000; inset: 0 auto 0 0; width: 350px; max-width: 84vw; background: #FFFFFF; box-shadow: 16px 0 40px rgba(0,33,102,.14); transform: translateX(-105%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; overflow-y: auto; overscroll-behavior: contain; }
body.drawer-open .drawer-panel { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { min-height: 82px; position: sticky; top: 0; z-index: 2; background: #FFFFFF; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.drawer-logo { height: 32px; width: auto; max-width: 110px; object-fit: contain; }
.drawer-brand span { display: grid; line-height: 1.05; }
.drawer-brand strong { color: var(--deep-blue); font-size: 18px; }
.drawer-brand small { color: var(--assist); font-size: 11px; margin-top: 4px; }
.drawer-close, .search-close { min-height: 44px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: #FFFFFF; color: var(--brand); font-weight: 800; }
.drawer-groups { padding: 14px 14px 26px; display: grid; gap: 12px; }
.drawer-group { border: 1px solid var(--line); border-radius: 12px; background: var(--deep-bg); padding: 12px; }
.drawer-group h2 { margin-bottom: 8px; font-size: 13px; color: var(--brand); }
.drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.drawer-grid a { min-height: 82px; padding: 10px; border-radius: 9px; background: #FFFFFF; border: 1px solid rgba(0,51,160,.10); }
.drawer-grid a:hover, .drawer-grid a:focus-visible { border-color: var(--bright); outline: none; box-shadow: 0 5px 14px rgba(0,33,102,.08); }
.drawer-grid strong { display: block; color: var(--title); font-size: 14px; margin-bottom: 4px; }
.drawer-grid span { display: block; color: var(--secondary); font-size: 11px; line-height: 1.45; }

.search-layer { position: fixed; z-index: 990; top: 82px; left: 0; right: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); opacity: 0; transition: .2s ease; }
body.search-opened .search-layer { visibility: visible; pointer-events: auto; transform: translateY(0); opacity: 1; }
.search-card { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 22px; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: #FFFFFF; box-shadow: var(--shadow); }
.search-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.search-head h2 { margin: 4px 0 12px; }
.search-field { display: grid; gap: 7px; color: var(--secondary); font-size: 13px; }
.search-field input { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 9px; background: #FFFFFF; color: var(--text); padding: 10px 12px; outline: none; }
.search-field input:focus { border-color: var(--bright); box-shadow: 0 0 0 3px rgba(0,82,204,.10); }
.search-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 68px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--title); font-weight: 800; }
.search-presets a:hover, .search-presets a:focus-visible { border-color: var(--bright); outline: none; }
.search-presets small { display: block; color: var(--secondary); font-weight: 500; margin-top: 3px; }
.search-note { margin: 12px 0 0; color: var(--assist); font-size: 12px; }

.mobile-bottom { display: none; }

@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
    .feature-row.reverse .feature-media { order: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    :root { --top-h: 82px; }
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .shell { width: calc(100% - 32px); }
    .tag-strip { display: none; }
    .counter-inner { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; }
    .brand-logo { max-width: 96px; height: 30px; }
    .brand-text { font-size: 22px; }
    .drawer-toggle { min-width: 92px; padding: 0 10px; font-size: 13px; }
    .app-link { min-width: 74px; padding: 0 10px; justify-content: center; font-size: 13px; }
    .site-main { padding-top: calc(var(--top-h) + 20px); }
    .page-head { padding-top: 26px; }
    .section { padding: 34px 0; }
    .section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
    .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
    .hero-banner { min-height: 180px; }
    .hero-fallback { min-height: 200px; }
    .index-link { grid-template-columns: 44px minmax(0,1fr); }
    .index-link span:last-child { grid-column: 2; }
    .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
    .info-table th { border-bottom: 0; padding-bottom: 6px; }
    .info-table td { padding-top: 4px; }
    .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .drawer-panel { width: 84vw; }
    .drawer-grid { grid-template-columns: 1fr; }
    .drawer-grid a { min-height: 72px; }
    .search-layer { top: 82px; }
    .search-card { width: calc(100% - 20px); background: var(--deep-bg); padding: 16px; border-radius: 0 0 12px 12px; }
    .search-presets { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mobile-bottom { position: fixed; z-index: 880; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #FFFFFF; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bottom a { min-height: 50px; display: flex; align-items: center; justify-content: center; color: var(--secondary); font-size: 12px; font-weight: 800; }
    .mobile-bottom a.is-current { color: #FFFFFF; background: var(--brand); }
    body.drawer-open .mobile-bottom, body.search-opened .mobile-bottom { z-index: 870; }
}

@media (max-width: 420px) {
    .drawer-toggle span:last-child { font-size: 12px; }
    .drawer-icon { width: 14px; }
    .app-link { min-width: 68px; }
    .search-presets { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
