:root {
  color-scheme: light;
  --bg: #f7f3ed;
  --surface: #fffdf9;
  --red: #a63835;
  --red-dark: #702923;
  --gold: #ad8857;
  --text: #342a27;
  --muted: #887a70;
  --line: #ece3d8;
  --serif: "Songti SC", STSong, "Noto Serif CJK SC", serif;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #eee9e2;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; line-height: 1.6; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { min-width: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
h1, h2, h3, p { margin: 0; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #bd9a62; outline-offset: 4px; }
[hidden] { display: none !important; }
.app-shell { position: relative; width: 100%; max-width: 480px; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
.brand-logo { display: block; width: 148px; height: 64px; flex: 0 0 auto; object-fit: contain; }
.header-contact { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 11px; gap: 5px; border: 1px solid #e7d8c7; border-radius: 999px; color: var(--red-dark); font-size: 12px; }
.header-contact svg { width: 16px; height: 16px; }
.page-content { padding: 18px 18px 0; overflow-wrap: anywhere; }
.page-topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-height: calc(56px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 12px 0; border-bottom: 1px solid var(--line); background: #fffdf9f7; backdrop-filter: blur(12px); }
.back-button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 44px; min-height: 44px; padding: 0 7px; border: 0; background: none; color: var(--red-dark); }
.back-button svg { width: 20px; height: 20px; }
.topbar-title { min-width: 0; overflow: hidden; color: #594a41; font-size: 15px; font-weight: 600; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.page-content-inner { padding: 24px 20px 0; }
.is-inner .site-footer { padding: 32px 0 calc(24px + env(safe-area-inset-bottom, 0px)); }
.page-heading { margin: 6px 0 22px; }
.page-heading h1 { font: 700 24px/1.4 var(--serif); letter-spacing: 2px; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.eyebrow { margin-bottom: 6px; color: var(--gold); font-size: 11px; letter-spacing: 2px; }
.section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-heading h2 { font: 700 18px/1.4 var(--serif); letter-spacing: 1px; }
.section-action { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0; gap: 3px; color: var(--muted); font-size: 12px; }
.section-action svg { width: 15px; height: 15px; }
.hero { position: relative; min-height: 202px; overflow: hidden; isolation: isolate; border: 1px solid #e6d5be; border-radius: 22px; background: #eee0cc; }
.hero-art { position: absolute; inset: 0 0 0 26%; z-index: -2; width: 74%; height: 100%; object-fit: cover; object-position: center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, #f4e8d7 1%, #f4e8d7 42%, #f4e8d7f2 56%, #f4e8d700 79%); }
.hero-content { position: relative; width: 72%; padding: 23px 20px 22px; }
.hero-kicker { color: #946b46; font-size: 11px; letter-spacing: 2px; }
.hero-title { margin-top: 8px; font: 700 30px/1.25 var(--serif); color: var(--red-dark); letter-spacing: 2px; }
.hero-copy { max-width: 190px; margin-top: 10px; color: #7e6557; font-size: 12px; line-height: 1.75; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; margin: 10px 0 -6px; padding: 0 13px; border: 1px solid #bb8c66; border-radius: 999px; color: var(--red-dark); font-size: 12px; }
.hero-button svg { width: 15px; height: 15px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.shortcut { display: flex; min-height: 77px; align-items: center; flex-direction: column; justify-content: flex-start; gap: 8px; text-align: center; }
.shortcut-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #e9d9c7; border-radius: 16px; color: var(--red); background: #fffaf2; }
.shortcut:nth-child(2) .shortcut-icon { color: #9b7041; background: #f6ead9; }
.shortcut:nth-child(3) .shortcut-icon { color: #858565; background: #eeefe3; border-color: #e0e2cf; }
.shortcut:nth-child(4) .shortcut-icon { color: #a76657; background: #f8e8df; }
.shortcut-label { font-size: 12px; line-height: 1.4; }
.soon-badge { display: inline-block; padding: 2px 6px; border: 1px solid #d9c6b4; border-radius: 999px; color: #94775f; background: #fffcf480; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.card-image { width: 100%; aspect-ratio: 1; object-fit: cover; overflow: hidden; background: #eee4d5; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-body { position: relative; padding: 12px; }
.card-title { font: 700 17px/1.5 var(--serif); color: var(--text); }
.card-summary { display: -webkit-box; overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.7; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.story-card { display: flex; align-items: flex-start; min-width: 0; gap: 12px; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 12px #634b3706; }
.story-card:first-child { margin-top: 0; }
.story-image { width: 104px; height: 104px; flex: 0 0 104px; overflow: hidden; border-radius: 10px; object-fit: cover; background: #eee4d5; }
.story-image img { width: 100%; height: 100%; object-fit: cover; }
.story-body { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; }
.story-title { font: 700 17px/1.5 var(--serif); }
.story-meta { margin-top: 9px; color: var(--muted); font-size: 11px; }
.story-card .story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 7px; line-height: 1.5; }
.story-category { padding: 2px 6px; border-radius: 6px; color: #987346; background: #f3eadf; font-size: 12px; font-weight: 600; }
.story-meta time { white-space: nowrap; }
.story-body .card-summary { margin-top: 6px; font-size: 12px; }
.search-box { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.search-box svg { width: 19px; height: 19px; color: var(--muted); }
.search-box input { flex: 1; width: 100%; min-height: 46px; padding: 0; border: 0; outline-offset: 1px; background: transparent; font-size: 14px; }
.search-box input::placeholder { color: #a3978c; }
.search-box button { flex: 0 0 auto; min-width: 44px; min-height: 44px; padding: 0 2px 0 8px; border: 0; color: var(--red); background: transparent; font-size: 13px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 20px; }
.filter-chip { min-height: 44px; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 13px; }
.filter-chip.is-active { border-color: var(--red); color: var(--surface); background: var(--red); }
.empty-state, .status-panel { padding: 55px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.empty-state h2, .status-panel h1, .status-panel h2 { font: 700 22px/1.5 var(--serif); }
.empty-state h1 { font: 700 24px/1.5 var(--serif); }
.empty-state > svg { width: 36px; height: 36px; margin: 0 auto 18px; color: var(--gold); }
.empty-state p, .status-panel p { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }
.reset-button, .retry-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--red); border-radius: 999px; color: var(--red); background: transparent; }
.detail-cover { width: 100%; max-height: 320px; margin-bottom: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #eee4d5; }
.detail-cover img { width: 100%; max-height: 320px; object-fit: contain; }
.detail-heading { margin-bottom: 24px; }
.detail-heading h1 { color: #302723; font: 700 26px/1.45 var(--serif); letter-spacing: .5px; overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.detail-meta a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.detail-body { color: #57483f; font-size: 16px; line-height: 1.9; overflow-wrap: anywhere; }
.detail-body p { margin: 0 0 18px; white-space: pre-line; }
.detail-body img { width: auto; height: auto; max-width: 100%; margin: 20px auto; border-radius: 10px; }
.detail-body .body-heading { margin: 32px 0 14px; padding-left: 11px; border-left: 3px solid var(--red); color: var(--red-dark); font: 700 19px/1.6 var(--serif); }
.detail-body > .body-heading:first-child { margin-top: 0; }
.detail-body .body-lead { margin-bottom: 24px; padding: 15px 16px; border-radius: 12px; background: #f0e8dd; color: #715748; font-size: 17px; line-height: 1.85; }
.body-quote { margin: 0 0 24px; padding: 16px 18px; border-left: 2px solid var(--gold); background: #f1ece3; color: #725d4d; }
.body-quote p:last-child { margin-bottom: 0; }
.body-list, .body-steps { margin: 0 0 24px; padding: 0; list-style: none; }
.body-list > li { margin: 10px 0; padding-left: 12px; border-left: 1px solid #d7c7b3; }
.body-steps > li { margin: 10px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.body-steps .body-list { margin: 10px 0 0; font-size: 15px; }
.body-data { margin: 24px 0; }
.body-record { min-width: 0; margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.body-record-title { margin-bottom: 14px; color: var(--red-dark); font: 700 18px/1.5 var(--serif); }
.body-record-label { display: block; margin-bottom: 5px; color: var(--muted); font: 400 12px/1.5 -apple-system, BlinkMacSystemFont, sans-serif; }
.body-record-fields { display: grid; grid-template-columns: minmax(58px, 26%) minmax(0, 1fr); gap: 12px; margin: 0; }
.body-record-fields dt { color: var(--muted); font-size: 12px; line-height: 1.8; }
.body-record-fields dd { min-width: 0; margin: 0; color: #57483f; font-size: 15px; line-height: 1.85; }
.body-poem { margin-bottom: 24px; line-height: 2.1; }
.body-poem p { margin-bottom: 10px; }
.detail-section { margin: 24px 0; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 11px 20px; border: 1px solid var(--red); border-radius: 12px; color: var(--surface); background: var(--red); font-size: 14px; }
.primary-button svg, .secondary-button svg { width: 18px; height: 18px; }
.secondary-button { color: var(--red); background: var(--surface); }
.detail-actions > * { flex: 1 1 auto; }
.contact-card { overflow: hidden; padding: 3px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-page .contact-card { margin-top: 20px; }
.contact-card > .secondary-button { width: 100%; margin: 0 0 12px; }
.contact-row { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; color: var(--red); background: #f8eae4; }
.contact-icon svg { width: 19px; height: 19px; }
.contact-row > div { min-width: 0; }
.contact-label { color: var(--muted); font-size: 12px; }
.contact-value { display: block; margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }
a.contact-value { display: inline-flex; align-items: center; min-height: 44px; color: var(--red-dark); text-decoration: underline; text-underline-offset: 4px; }
.contact-row button { flex: 0 0 auto; min-width: 44px; min-height: 44px; margin-left: auto; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--red); background: var(--surface); font-size: 12px; }
.qr-card { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-align: center; }
.qr-image { display: block; width: 174px; height: auto; max-width: 100%; margin: 0 auto 15px; border: 8px solid #fff; object-fit: contain; }
.qr-image img { width: 100%; height: auto; }
.qr-card h2 { font: 700 20px/1.5 var(--serif); }
.qr-card p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.notice { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 14px 16px; border: 1px solid #e9ddcb; border-radius: 12px; color: #8d765e; background: #f6eee2; font-size: 12px; line-height: 1.8; }
.notice > span, .notice > p { flex: 1; min-width: 0; }
.notice small { display: block; color: var(--muted); font-size: 11px; }
.notice > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--red); white-space: nowrap; }
.catalog-page > .notice { margin: 0 0 20px; }
.catalog-page > .notice:last-child { margin: 20px 0 0; }
.image-fallback { display: flex; min-height: 110px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 12px; color: #a38e78; background: #eee4d5; font-size: 12px; text-align: center; }
.loading-orbit { width: 36px; height: 36px; margin: 0 auto 20px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: orbit 1s linear infinite; }
.toast { position: fixed; z-index: 20; bottom: calc(87px + env(safe-area-inset-bottom, 0px)); left: 50%; width: max-content; max-width: calc(100vw - 40px); padding: 11px 18px; border-radius: 10px; color: #fffdf9; background: #513c35f2; box-shadow: 0 4px 16px #342a2714; font-size: 13px; text-align: center; transform: translateX(-50%); }
.site-footer { padding: 27px 18px calc(94px + env(safe-area-inset-bottom, 0px)); color: #ac9f91; font-size: 10px; text-align: center; line-height: 1.9; }
.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; max-width: 480px; min-height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 7px 10px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #fffdf9f7; backdrop-filter: blur(12px); transform: translateX(-50%); }
.bottom-nav a { display: flex; min-height: 48px; align-items: center; flex-direction: column; justify-content: center; gap: 3px; color: #a99a8c; }
.nav-icon { display: flex; align-items: center; justify-content: center; height: 25px; }
.nav-icon svg { width: 23px; height: 23px; }
.nav-label { font-size: 12px; line-height: 1.5; }
.bottom-nav a.active { color: var(--red); }
.bottom-nav a.active .nav-icon { position: relative; }
.bottom-nav a.active .nav-icon::before { position: absolute; z-index: -1; inset: -3px -9px; content: ""; border-radius: 9px; background: #f7e8e0; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (min-width: 600px) {
  .app-shell { border-right: 1px solid #e2d9ce; border-left: 1px solid #e2d9ce; box-shadow: 0 0 48px #634b3710; }
}
@media (max-width: 359px) {
  .site-header { padding-right: 14px; padding-left: 14px; gap: 8px; }
  .page-content { padding-right: 14px; padding-left: 14px; }
  .page-content-inner { padding-right: 16px; padding-left: 16px; }
  .brand { gap: 7px; }
  .header-contact { min-width: 56px; padding: 0 8px; }
  .hero-content { width: 80%; padding: 21px 16px; }
  .hero-title { font-size: 28px; }
  .service-grid { gap: 10px; }
  .card-body { padding: 11px 10px; }
  .card-title { font-size: 16px; }
  .story-image { width: 88px; height: 88px; flex-basis: 88px; }
  .story-card { gap: 10px; padding: 10px; }
  .story-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
