:root { color-scheme: light; font-family: "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; color: #203448; background: #f7f9fb; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.7; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button:focus-visible, a:focus-visible { outline: 3px solid #2374b8; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-width { width: min(100% - 32px, 820px); margin-inline: auto; }
.page-header { background: #fff; border-bottom: 1px solid #dce5ec; }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 68px; padding-top: env(safe-area-inset-top); }
.brand { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; background: #174e78; color: #fff; border-radius: 8px; font-size: 16px; font-weight: 750; letter-spacing: -.05em; }
h1 { font-size: 19px; letter-spacing: .03em; line-height: 1.4; margin: 0; flex: 1; }
h2 { font-size: 21px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
h3 { font-size: 19px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
p { margin: 8px 0; }
main { min-height: 50vh; padding-block: 20px 8px; }
main:focus { outline: none; }
#status { color: #617285; font-size: 14px; }
#status:empty { display: none; }
.intro { margin-bottom: 20px; }
.eyebrow { margin: 0 0 4px; color: #52718a; font-size: 13px; font-weight: 600; }
.help { color: #617285; font-size: 13px; }
.viewer-context { margin: 0 0 20px; padding: 8px 11px; border-left: 3px solid #8aa7be; background: #eef3f7; color: #425d73; font-size: 13px; }
.area-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.area-button { min-width: 0; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 13px; color: #244a6a; background: #fff; border: 1px solid #cbdbe8; border-radius: 7px; text-align: left; overflow-wrap: anywhere; }
.area-button:hover { border-color: #5283ad; background: #f1f7fc; }
.area-count { font-size: 12px; color: #617285; white-space: nowrap; }
.text-button { min-height: 44px; padding: 8px; color: #1e5e91; border: 0; background: transparent; }
.back-button { display: inline-flex; align-items: center; gap: 6px; padding-left: 0; margin: -8px 0 6px; }
.list-heading { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 2px; }
.list-count { color: #617285; font-size: 13px; white-space: nowrap; }
.campaign-list { margin-top: 16px; border-top: 1px solid #dce5ec; }
.campaign-item { padding: 20px 0; border-bottom: 1px solid #dce5ec; }
.store-area { color: #617285; font-size: 12px; margin: 0 0 4px; }
.campaign-text, .store-text { white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; line-height: 1.85; }
.campaign-text { margin: 12px 0 14px; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 12px; font-size: 12px; color: #617285; }
.end-date { color: #805a1f; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 16px; border-radius: 6px; border: 1px solid #bdd0df; color: #1c5684; background: #fff; font-weight: 600; text-decoration: none; }
.primary-button:hover { background: #edf5fb; border-color: #7b9db8; }
.more-row { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 20px; }
.more-row .primary-button { min-width: 180px; }
.store-text { margin-top: 18px; padding-top: 18px; border-top: 1px solid #dce5ec; }
.empty { padding: 20px 0; color: #52677c; }
.error-panel { padding: 12px 0; }
.error-panel h2 { font-size: 19px; }
.error-panel p { margin: 12px 0; }
.error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.login-link { color: #1e5e91; padding: 10px 4px; font-size: 14px; }
.page-footer { margin-top: 30px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); color: #748292; font-size: 12px; }
@media (max-width: 540px) {
  .area-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-width { width: calc(100% - 28px); }
  .header-inner { min-height: 62px; gap: 10px; }
  main { padding-top: 16px; }
  .campaign-item { padding-block: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  button, a { transition: background-color .12s, border-color .12s; }
}
