:root {
  color-scheme: light;
  --bg: #f8f6f8;
  --surface: #ffffff;
  --surface-soft: #fcf8fb;
  --text: #322d31;
  --muted: #6f666c;
  --line: #ebe4e8;
  --pink: #d65d8c;
  --pink-strong: #b84170;
  --pink-soft: #fcecf3;
  --lavender: #7468b4;
  --lavender-soft: #f0edfa;
  --grey-soft: #f1eff1;
  --success: #287655;
  --danger: #b33a4b;
  --shadow: 0 12px 32px rgba(68, 49, 61, 0.07);
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--lavender); }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(116, 104, 180, 0.34); outline-offset: 3px; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--text); color: #fff; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; border-top: 4px solid var(--pink); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; line-height: 1.25; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .015em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #e9a8c1; border-radius: 50%; background: var(--pink-soft); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; display: block; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); }
.brand-mark { position: relative; }
.brand-mark::before { transform: translate(-8px, 4px); }
.brand-mark::after { transform: translate(8px, 4px); }
.brand-mark span { width: 14px; height: 5px; border-radius: 0 0 10px 10px; transform: translateY(9px); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.unofficial-label { color: var(--muted); font-size: .76rem; white-space: nowrap; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 12px; padding: 9px 17px; font-weight: 700; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--pink-strong); color: #fff; box-shadow: 0 7px 16px rgba(187, 65, 112, .18); }
.button-primary:hover { background: #98325b; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--text); }

.page-shell { padding-block: 28px 56px; }
.campaign-bar { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 22px 24px; border: 1px solid #eadfeb; border-left: 5px solid var(--lavender); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.eyebrow { margin: 0 0 3px; color: var(--pink-strong); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.45; }
h2 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.4; }
h3 { line-height: 1.45; }
.campaign-period { margin: 6px 0 0; color: var(--muted); font-size: .86rem; }
.campaign-period span { margin-left: 8px; color: var(--success); font-weight: 700; }
.campaign-select-label { display: grid; gap: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
select, input { width: 100%; min-height: 46px; border: 1px solid #dcd4d9; border-radius: var(--radius-sm); background: #fff; color: var(--text); padding: 9px 12px; }
select:hover, input:hover { border-color: #bdb3b9; }
select:focus, input:focus { border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(116,104,180,.12); outline: none; }
select:disabled { color: var(--muted); background: var(--grey-soft); }

.stats-section, .store-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.section-note { max-width: 34rem; margin: 0; color: var(--muted); font-size: .82rem; text-align: right; }
.section-note-left { text-align: left; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { position: relative; min-height: 126px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 7px 20px rgba(68,49,61,.045); }
.stat-card::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--lavender-soft); }
.stat-card-featured { background: var(--pink-soft); border-color: #f3cfe0; }
.stat-card-featured::after { background: #e69ab8; }
.stat-card span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; }
.stat-card strong { display: inline-block; margin-top: 8px; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card small { margin-left: 5px; color: var(--muted); }
.prize-summary { margin-top: 12px; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.prize-summary ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.prize-summary strong { color: var(--lavender); }

.store-heading { margin-bottom: 12px; }
.result-count { color: var(--muted); font-size: .86rem; }
.search-panel { display: grid; grid-template-columns: minmax(0, 2fr) minmax(210px, .8fr); gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 7px 20px rgba(68,49,61,.045); }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; color: #585157; font-size: .82rem; font-weight: 700; }
.field b { color: var(--pink-strong); font-size: .7rem; }
.input-wrap { position: relative; display: block; }
.search-field input { padding-left: 42px; padding-right: 42px; }
.search-icon { position: absolute; left: 16px; top: 50%; width: 14px; height: 14px; transform: translateY(-58%); border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 2px; right: -5px; bottom: -3px; transform: rotate(45deg); background: var(--muted); }
.clear-button { position: absolute; right: 8px; top: 50%; width: 34px; height: 34px; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; }
.clear-button:hover { background: var(--grey-soft); }
.status-message { min-height: 26px; padding: 14px 2px 8px; color: var(--muted); font-size: .84rem; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.store-card { display: flex; flex-direction: column; min-height: 174px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 7px 20px rgba(68,49,61,.045); transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.store-card:hover { transform: translateY(-2px); border-color: #ddc9d3; box-shadow: var(--shadow); }
.store-card h3 { margin: 0; font-size: 1.03rem; }
.store-location { margin: 5px 0 14px; color: var(--muted); font-size: .84rem; }
.store-meta { display: flex; gap: 15px; margin-top: auto; color: var(--muted); font-size: .78rem; }
.store-meta strong { color: var(--text); font-size: 1rem; }
.data-state { display: inline-block; margin-top: 11px; color: var(--lavender); font-size: .76rem; font-weight: 700; }
.store-open { margin-top: 15px; align-self: flex-start; border: 0; background: transparent; color: var(--pink-strong); padding: 0; font-weight: 800; }
.empty-state { grid-column: 1 / -1; padding: 38px 24px; border: 1px dashed #d9cfd5; border-radius: var(--radius-md); background: rgba(255,255,255,.55); text-align: center; color: var(--muted); }
.store-load-more { margin: 18px auto 0; }
.store-load-more[hidden] { display: none; }

.notice { display: grid; grid-template-columns: 34px 1fr; gap: 13px; margin-top: 36px; padding: 21px 23px; border: 1px solid #e3deee; border-radius: var(--radius-md); background: var(--lavender-soft); color: #514a62; }
.notice-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #bcb4de; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.notice h2 { font-size: 1rem; }
.notice p { margin: 7px 0 0; font-size: .8rem; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 110px; color: var(--muted); font-size: .78rem; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-note { text-align: right; }

.dialog { width: min(calc(100% - 24px), 720px); max-height: min(90vh, 860px); padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 28px 90px rgba(41,31,37,.25); overflow: hidden; }
.dialog::backdrop { background: rgba(49,42,47,.46); backdrop-filter: blur(2px); }
.dialog-frame { max-height: inherit; overflow-y: auto; }
.dialog-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.dialog-header h2 { font-size: 1.3rem; }
.icon-button { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); font-size: 1.45rem; line-height: 1; }
.icon-button:hover { background: var(--grey-soft); }
.dialog-body { padding: 22px; }
.detail-address { margin: 5px 0 18px; color: var(--muted); }
.detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.detail-stat { padding: 14px; border-radius: var(--radius-sm); background: var(--surface-soft); }
.detail-stat span { display: block; color: var(--muted); font-size: .72rem; }
.detail-stat strong { font-size: 1.35rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0; }
.detail-section { margin-top: 22px; }
.detail-section h3 { margin: 0 0 9px; font-size: 1rem; }
.recent-report { margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.recent-report p { margin: 3px 0; font-size: .82rem; }

.report-dialog { width: min(calc(100% - 24px), 760px); }
.report-form { padding: 22px; }
.form-intro { margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field-wide { grid-column: 1 / -1; }
.report-form fieldset { margin: 20px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.report-form legend { padding: 0 7px; font-size: .86rem; font-weight: 800; }
.number-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-errors { margin-bottom: 15px; padding: 12px 14px; border: 1px solid #e7bbc1; border-radius: var(--radius-sm); background: #fff1f3; color: var(--danger); font-size: .84rem; }
.turnstile-container { min-height: 0; margin-top: 20px; }
.turnstile-note { margin: 8px 0 0; color: var(--muted); font-size: .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.form-status { min-height: 24px; margin: 10px 0 0; color: var(--success); font-size: .82rem; text-align: right; }

.privacy-shell { max-width: 850px; }
.privacy-card { padding: clamp(22px, 5vw, 48px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.privacy-card h1 { font-size: 1.75rem; }
.privacy-card h2 { margin-top: 30px; font-size: 1.1rem; }
.privacy-card p, .privacy-card li { font-size: .92rem; }
.back-link { display: inline-block; margin-bottom: 18px; }
.mobile-break { display: none; }

@media (max-width: 820px) {
  .unofficial-label { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
  .footer-note { text-align: left; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 22px), var(--shell)); }
  .site-header { position: static; }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: .91rem; }
  .brand small { display: none; }
  .mobile-break { display: block; }
  .header-actions .button { min-height: 40px; padding: 8px 11px; font-size: .78rem; }
  .page-shell { padding-block: 18px 40px; }
  .campaign-bar { display: block; padding: 18px; border-radius: 17px; }
  .campaign-select-label { margin-top: 15px; }
  .campaign-period span { display: block; margin: 2px 0 0; }
  .section-heading { display: block; }
  .section-note { margin-top: 7px; text-align: left; }
  .stats-grid { gap: 8px; }
  .stat-card { min-height: 104px; padding: 15px; }
  .stat-card::after { left: 15px; right: 15px; }
  .search-panel { grid-template-columns: 1fr; padding: 12px; }
  .store-heading { display: flex; align-items: end; }
  .store-grid { grid-template-columns: 1fr; gap: 9px; }
  .store-card { min-height: 0; }
  .notice { grid-template-columns: 28px 1fr; padding: 17px; }
  .notice-mark { width: 24px; height: 24px; }
  .dialog { width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .dialog-header, .dialog-body, .report-form { padding: 18px; }
  .form-grid, .number-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .form-actions { position: sticky; bottom: 0; margin-inline: -18px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fff; }
  .form-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
