:root {
    --bg: #FFF6F4;
    --surface: #FFFFFF;
    --soft: #F8E8E4;
    --ink: #3A1518;
    --text: #4A2428;
    --muted: #7A4E52;
    --faint: #A0787C;
    --brand: #E35D6A;
    --pink: #F08A92;
    --gold: #C9A227;
    --peach: #F3B4B0;
    --border: rgba(227,93,106,.18);
    --shadow: 0 14px 34px rgba(58,21,24,.08);
    --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; font-size: 16px; line-height: 1.75; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.top-shell { position: fixed; inset: 0 0 auto; z-index: 80; }
.shell-row { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.seal-bar { height: 28px; background: var(--brand); color: #fff; }
.seal-row { height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .08em; }
.seal-brand { font-weight: 760; }
.seal-search { min-width: 48px; height: 28px; padding: 0 8px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.yard-bar { height: 64px; background: rgba(255,246,244,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.yard-row { height: 64px; display: grid; grid-template-columns: 120px 1fr 120px; align-items: center; }
.menu-square { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; font-size: 19px; display: grid; place-items: center; }
.yard-logo { justify-self: center; min-width: 88px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-weight: 800; font-size: 24px; letter-spacing: .08em; }
.brand-logo { max-height: 34px; max-width: 170px; width: auto; object-fit: contain; }
.app-entry { justify-self: end; min-height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#F08A92 0%,#E35D6A 52%,#C94A56 100%); color: #fff; font-weight: 720; box-shadow: 0 8px 20px rgba(227,93,106,.18); }
.path-bar { height: 44px; background: #fff; border-bottom: 1px solid var(--border); }
.path-row { width: min(var(--max), calc(100% - 32px)); height: 44px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 52px); white-space: nowrap; }
.path-row a { position: relative; height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--muted); }
.path-row a.is-current { color: var(--ink); font-weight: 750; }
.path-row a.is-current::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 24px; height: 2px; border-radius: 2px; transform: translateX(-50%); background: var(--brand); }
.site-main { padding-top: 136px; }
.page-wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 42px 0 76px; }
.hero-card, .content-card, .soft-card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.hero-card { padding: clamp(24px, 4vw, 46px); }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); line-height: 1.28; margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { font-size: clamp(21px, 3vw, 25px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lead { max-width: 840px; color: var(--text); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 44px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; border: 1px solid transparent; }
.btn-primary { color: #fff; background: linear-gradient(135deg,#F08A92 0%,#E35D6A 52%,#C94A56 100%); }
.btn-secondary { color: var(--brand); background: #fff; border-color: var(--border); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(201,162,39,.55); outline-offset: 3px; }
@media (hover:hover) { .btn:hover, .app-entry:hover { transform: translateY(-1px); } .content-link:hover { color: var(--brand); } }
.image-wrap { margin-top: 26px; border-radius: 20px; overflow: hidden; background: var(--soft); }
.local-image { width: 100%; max-height: 340px; object-fit: cover; }
.image-slot { width: 100%; min-height: 220px; max-height: 340px; aspect-ratio: 16 / 6; display: grid; place-items: center; background: linear-gradient(135deg, #F8E8E4, #FBEFEC); color: var(--muted); border-radius: inherit; }
.image-slot span { padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.75); font-size: 13px; }
.section-block { margin-top: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 16px; }
.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)); }
.content-card { padding: 22px; }
.soft-card { padding: 20px; background: var(--soft); box-shadow: none; }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--faint); font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--brand); }
.dot.gold { background: var(--gold); } .dot.peach { background: var(--peach); }
.path-tags { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.path-tag { min-height: 140px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; display: flex; flex-direction: column; }
.path-tag h3 { display: flex; align-items: center; gap: 9px; }
.path-tag p { color: var(--muted); font-size: 14px; flex: 1; }
.path-tag a { color: var(--brand); font-weight: 750; }
.number-list { display: grid; gap: 12px; }
.number-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.number { color: var(--brand); font-size: 28px; font-weight: 850; line-height: 1; }
.number-row p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.number-row a { color: var(--brand); font-weight: 750; white-space: nowrap; }
.list-cards { display: grid; gap: 12px; }
.list-card { padding: 18px 20px; border-left: 3px solid var(--brand); background: #fff; border-radius: 0 16px 16px 0; box-shadow: var(--shadow); }
.list-card p { color: var(--muted); margin-bottom: 0; }
.album-list { display: grid; gap: 14px; }
.album-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.album-label { padding: 14px; border-radius: 14px; background: var(--soft); color: var(--brand); font-weight: 800; text-align: center; }
.album-row p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.album-row a { color: var(--brand); font-weight: 750; }
.big-roll { display: grid; gap: 10px; }
.roll-item { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.roll-item:last-child { border-bottom: 0; }
.roll-no { color: var(--pink); font-size: 44px; font-weight: 900; line-height: 1; }
.timeline { position: relative; display: grid; gap: 16px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 18px 20px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.timeline-item::before { content: ""; position: absolute; left: -26px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--bg); }
.status { display: inline-flex; margin-bottom: 7px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--brand); font-size: 12px; font-weight: 800; }
.prose { max-width: 850px; }
.prose h2 { margin-top: 30px; }
.prose p { color: var(--text); }
.prose .editor-note { padding: 18px 20px; border-left: 3px solid var(--gold); background: #fff; border-radius: 0 16px 16px 0; }
.step-list { counter-reset: step; display: grid; gap: 14px; }
.step { counter-increment: step; position: relative; padding: 20px 20px 20px 70px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.step::before { content: counter(step, decimal-leading-zero); position: absolute; left: 20px; top: 20px; color: var(--brand); font-weight: 900; font-size: 22px; }
.term-list { display: grid; gap: 14px; }
.term { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.term p:last-child { margin-bottom: 0; }
.notice { padding: 16px 18px; border-radius: 16px; background: var(--soft); color: var(--muted); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; background: #fff; padding: 0 20px; }
.faq-item summary { min-height: 58px; display: flex; align-items: center; cursor: pointer; color: var(--ink); font-weight: 760; }
.faq-item p { padding: 0 0 18px; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.contact-card { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; }
.contact-card p { color: var(--muted); }
.contact-card a { color: var(--brand); font-weight: 750; }
.app-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 26px; align-items: center; }
.app-icon-line { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.app-icon-line img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.icon-slot { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: var(--soft); color: var(--brand); font-weight: 900; }
.mini-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mini-links a { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--brand); font-weight: 700; }
.site-footer { background: var(--ink); color: #F8E8E4; }
.footer-inner { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; padding: 46px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-brand-row { display: flex; align-items: center; gap: 14px; padding-bottom: 26px; border-bottom: 1px solid rgba(248,232,228,.15); }
.footer-logo { min-width: 82px; max-width: 150px; min-height: 40px; display: flex; align-items: center; color: #fff; font-weight: 850; font-size: 22px; }
.footer-brand-logo { max-height: 34px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-brand-row div { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand-row strong { font-size: 20px; color: #fff; }
.footer-brand-row span { color: #D8BFC2; font-size: 12px; letter-spacing: .18em; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.footer-grid h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-grid div { display: flex; flex-direction: column; gap: 7px; }
.footer-grid a { color: #E8D2D4; font-size: 14px; }
.footer-note { max-width: 820px; color: #D8BFC2; font-size: 13px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(248,232,228,.15); color: #D8BFC2; font-size: 12px; }
.page-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(58,21,24,.34); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.page-overlay.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.scroll-menu { position: fixed; z-index: 100; top: 0; right: 0; width: 360px; max-width: 88vw; height: 100dvh; overflow-y: auto; padding: 20px; background: #FFF9F8; box-shadow: -18px 0 44px rgba(58,21,24,.14); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .25s ease, visibility .25s ease; }
.scroll-menu.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.scroll-head { position: sticky; top: -20px; z-index: 2; margin: -20px -20px 18px; padding: 16px 20px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,249,248,.96); border-bottom: 1px solid var(--border); }
.scroll-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.scroll-brand-logo { max-height: 30px; max-width: 118px; object-fit: contain; }
.round-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; font-size: 24px; line-height: 1; }
.scroll-groups { display: grid; gap: 22px; }
.scroll-groups section { display: grid; gap: 8px; }
.scroll-groups h2 { margin: 0 0 4px; font-size: 14px; color: var(--brand); letter-spacing: .1em; }
.scroll-groups a { display: grid; gap: 2px; padding: 12px 13px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.scroll-groups strong { color: var(--ink); font-size: 14px; }
.scroll-groups span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-layer { position: fixed; z-index: 101; top: 100px; left: 50%; width: min(760px, calc(100% - 32px)); transform: translate(-50%, -14px); opacity: 0; visibility: hidden; pointer-events: none; transition: .2s ease; }
.search-layer.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; }
.search-card { padding: 20px; border: 1px solid var(--border); border-radius: 20px; background: #FFF9F8; box-shadow: 0 22px 60px rgba(58,21,24,.18); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); }
.search-box { display: block; margin-top: 16px; }
.search-box input { width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 999px; padding: 0 18px; background: #fff; color: var(--ink); }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.search-presets a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--soft); color: var(--brand); font-weight: 700; }
.search-hint { margin: 14px 2px 0; color: var(--faint); font-size: 12px; }
.mobile-bottom { display: none; }

@media (max-width: 900px) {
    .path-tags { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .grid-3, .grid-6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .app-split { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .shell-row, .page-wrap, .footer-inner { width: min(100% - 32px, var(--max)); }
    .yard-row { grid-template-columns: 56px 1fr 82px; }
    .app-entry { padding: 0 12px; font-size: 13px; }
    .yard-logo { min-width: 0; font-size: 21px; }
    .brand-logo { max-width: 126px; }
    .path-bar { display: none; }
    .site-main { padding-top: 92px; }
    .page-wrap { padding-top: 26px; padding-bottom: 82px; }
    .hero-card { padding: 22px 18px; border-radius: 18px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .btn { padding: 0 14px; }
    .grid-2, .grid-3, .grid-4, .grid-6, .contact-grid { grid-template-columns: 1fr; }
    .path-tags { grid-template-columns: 1fr; }
    .number-row { grid-template-columns: 42px 1fr; }
    .number-row > a { grid-column: 2; }
    .album-row { grid-template-columns: 86px 1fr; }
    .album-row > a { grid-column: 2; }
    .roll-item { grid-template-columns: 54px 1fr; gap: 12px; }
    .roll-no { font-size: 34px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
    .site-footer { padding-bottom: 50px; }
    .mobile-bottom { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; min-height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--border); backdrop-filter: blur(10px); }
    .mobile-bottom a { min-width: 0; height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); font-size: 10px; line-height: 1.1; }
    .mobile-bottom a span { font-size: 16px; }
    .mobile-bottom a.is-current { color: var(--brand); font-weight: 800; }
    .search-layer { inset: 0; width: auto; transform: none; background: var(--bg); }
    .search-layer.is-open { transform: none; }
    .search-card { width: 100%; height: 100%; padding: calc(20px + env(safe-area-inset-top)) 16px 20px; border: 0; border-radius: 0; box-shadow: none; }
    .image-slot { min-height: 170px; aspect-ratio: 16 / 8; }
}
@media (max-width: 420px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { grid-template-columns: 1fr; }
}
