:root {
  --ink: #202020;
  --muted: #6d6d6d;
  --paper: #fffdf8;
  --red: #b8171f;
  --red-dark: #821017;
  --gold: #f2b632;
  --line: #ded8ce;
  --success: #176d45;
  --shadow: 0 8px 26px rgba(42, 28, 16, .10);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: #f1eee8;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.65;
}
a { color: var(--red-dark); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.site-header {
  color: #fff;
  background: linear-gradient(135deg, #710e13, var(--red) 65%, #d82b23);
  border-bottom: 5px solid var(--gold);
}
.header-inner, .container { width: min(100% - 28px, 980px); margin-inline: auto; }
.header-inner { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 72px; }
.brand { color: #fff; text-decoration: none; font-size: clamp(1.15rem, 4vw, 1.55rem); font-weight: 900; letter-spacing: .02em; }
.header-link { color: #fff; font-size: .9rem; }
.container { padding-block: 24px 56px; }
.narrow { max-width: 720px; }
.hero { margin-bottom: 22px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 7vw, 2.35rem); line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); }

.card, .panel {
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card-body, .panel { padding: 18px; }
.article-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.article-card-heading > .store-name { min-width: 0; }
.pr-label { flex: none; padding: 2px 5px; border: 1px solid #aaa; color: #555; background: #fff; font: 11px/1.2 Arial, sans-serif; }
.note a, .result-text a { overflow-wrap: anywhere; }
.panel h2, .panel h3 { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .9rem; }
.article-title { margin: 8px 0 2px; font-size: 1.28rem; line-height: 1.35; }
.store-name { margin: 0 0 12px; font-weight: 700; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 9px; border-radius: 999px; color: #fff; background: var(--red); font-size: .78rem; font-weight: 800; }
.badge.gold { color: #352200; background: var(--gold); }
.badge.gray { background: #777; }
.badge.green { background: var(--success); }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: 4px; }
.photo-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-grid > :only-child { grid-column: 1 / -1; aspect-ratio: 16/10; }
.article-copy { margin: 15px 0 0; }
.note { padding: 12px 14px; background: #fff5d9; border-left: 4px solid var(--gold); white-space: pre-wrap; }
.article-event-page-links { margin: 16px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.article-event-page-links li + li { margin-top: 8px; }
.result-text { margin: 0; white-space: pre-wrap; }
.result-photos { grid-template-columns: 1fr; margin-top: 14px; }
.result-photos img, .result-photos > :only-child { aspect-ratio: auto; height: auto; object-fit: contain; }
.filter-panel { padding: 0; }
.filter-panel summary { padding: 17px 18px; cursor: pointer; font-weight: 900; }
.filter-panel[open] summary { border-bottom: 1px solid var(--line); }
.filter-panel form { padding: 18px; }
.filter-grid { display: grid; gap: 0 14px; }
.active-filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin: -2px 0 16px; padding: 11px 12px; background: #fff6e6; border-left: 5px solid #f29800; }
.active-filter-summary strong { flex: 1 1 260px; }
.active-filter-summary span { color: var(--muted); font-weight: 700; }
.active-filter-summary a { font-weight: 800; }
.store-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.store-search label { flex: 1 1 260px; margin: 0; }
.store-admin-grid { display: grid; gap: 16px; }
.store-admin-card { padding: 16px; }
.store-admin-card h2 { margin: 8px 0 14px; font-size: 1.1rem; }
.store-admin-photo, .store-admin-placeholder { width: 100%; aspect-ratio: 16/9; margin-bottom: 12px; border-radius: 9px; object-fit: cover; }
.store-admin-placeholder { display: grid; place-items: center; color: var(--muted); background: #e7e2da; font-weight: 800; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.event-page { max-width: 948px; }
.legacy-event-banner { margin: 8px auto; text-align: center; }
.legacy-event-banner img { width: 100%; height: auto; }
.legacy-schedule-list { padding: 0; background: #fff; }
.legacy-schedule-card { width: 100%; margin: 0 auto 10px; }
.legacy-region-bar { width: 100%; height: 14px; border-radius: 6px 6px 0 0; }
.legacy-top-row { display: flex; width: 100%; gap: 4px; }
.legacy-shop-photo { width: 29.66%; height: auto; object-fit: contain; margin: 0 auto; }
.legacy-shop-logo { width: 70.34%; height: auto; max-width: 280px; object-fit: contain; margin: 0 auto; }
.legacy-shop-name { display: none; flex: 1; padding: 12px; text-align: center; }
.legacy-shop-logo[hidden] + .legacy-shop-name { display: block; }
.legacy-bottom-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; }
.legacy-date-box { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; height: 48px; padding: 0 8px; color: #fff; border-radius: 6px; font-family: "Hiragino Kaku Gothic ProN", sans-serif; font-size: 16px; white-space: nowrap; }
.legacy-date-day { text-align: center; line-height: 1.2; white-space: normal; }
.legacy-month { font-family: Impact, "Arial Black", sans-serif; font-size: 18px; font-weight: 700; }
.legacy-day { font-family: Impact, "Arial Black", sans-serif; font-size: 30px; font-weight: 700; }
.legacy-weekday { margin-top: 2px; font-family: sans-serif; font-size: 14px; }
.legacy-icon-group { display: flex; flex: 1; min-width: 0; gap: 4px; align-items: center; overflow-x: auto; padding-bottom: 2px; }
.legacy-event-icon { width: 45px; height: 45px; border-radius: 4px; object-fit: cover; }
/* PCの予定枠はgwr/style.cssと同じ横並びにする。 */
.embedded-layout.legacy-desktop-schedule { padding: 0 8px; }
.public-layout.legacy-desktop-schedule .event-page { padding-right: 8px; padding-left: 8px; }
.legacy-desktop-schedule .legacy-event-banner { margin: 0 auto 10px; }
.legacy-desktop-schedule .legacy-schedule-card { margin-bottom: 12px; }
.legacy-desktop-schedule .legacy-region-bar { height: 16px; }
.legacy-desktop-schedule .legacy-content-row { display: flex; align-items: center; gap: 6px; }
.legacy-desktop-schedule .legacy-top-row, .legacy-desktop-schedule .legacy-bottom-row { display: contents; }
.legacy-desktop-schedule .legacy-date-box { order: 1; flex: 0 1 auto; width: 50px; height: 62px; padding: 0; line-height: 1; }
.legacy-desktop-schedule .legacy-date-day { font-family: Impact, "Arial Black", sans-serif; font-size: 0; }
.legacy-desktop-schedule .legacy-month { font-size: 16px; font-weight: 400; }
.legacy-desktop-schedule .legacy-day { font-size: 26px; font-weight: 400; }
.legacy-desktop-schedule .legacy-weekday { display: block; margin: 0; font-size: 12px; }
.legacy-desktop-schedule .legacy-date-paren { display: none; }
.legacy-desktop-schedule .legacy-shop-photo { order: 2; width: auto; height: 62px; margin: 0; }
.legacy-desktop-schedule .legacy-shop-logo { order: 3; width: auto; height: 62px; max-width: 300px; margin: 0; }
.legacy-desktop-schedule .legacy-shop-name { order: 3; }
.legacy-desktop-schedule .legacy-icon-group { order: 4; display: grid; flex: 0 1 auto; grid-template-columns: repeat(2, 30px); grid-template-rows: repeat(2, 30px); gap: 2px; justify-items: center; margin-top: 4px; padding: 0; overflow: visible; }
.legacy-desktop-schedule .legacy-event-icon { width: 30px; height: 30px; border-radius: 0; object-fit: contain; }
.event-results > h2 { margin: 30px 0 12px; }
.event-result-card h3 { margin: 8px 0 2px; font-size: 1.28rem; }
.event-result-card .result-photos { margin: 0; }
.event-result-link { padding-top: 12px; border-top: 1px solid var(--line); }
.article-region-bar { height: 14px; }
.article-schedule-row { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.article-date-box { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; color: #fff; border-radius: 6px; white-space: nowrap; }
.article-month { font-family: Impact, "Arial Black", sans-serif; font-size: 18px; font-weight: 700; }
.article-day { font-family: Impact, "Arial Black", sans-serif; font-size: 30px; font-weight: 700; }
.article-weekday { font-size: 13px; }
.article-event-icon { width: 45px; height: 45px; object-fit: cover; }
.article-event-icons { display: flex; flex-wrap: wrap; gap: 4px; }
.article-event-icon-link, .date-filter-link { display: inline-flex; text-decoration: none; }
.article-event-list, .compact-list { margin: 6px 0 0; padding-left: 1.2em; }
.article-event-list { color: #555; font-size: .88rem; }

.tabs, .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.x-post-actions { margin: 14px 0; }
.x-post-actions button:disabled { cursor: not-allowed; }
.tabs { margin-bottom: 18px; }
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button.secondary, button.secondary { color: var(--ink); background: #e7e2da; }
.button.danger, button.danger { background: #2f2f2f; }
.button.block { width: 100%; }
.button.active { outline: 3px solid var(--gold); }
button:disabled, input[type="submit"]:disabled { opacity: .55; cursor: wait; }
form.is-processing::after {
  content: "写真を送信用に処理しています…";
  display: block;
  margin-top: 12px;
  color: var(--red-dark);
  font-weight: 800;
  text-align: center;
}

.schedule-list { display: grid; gap: 12px; }
.schedule-item { padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.schedule-item h3 { margin: 5px 0 2px; font-size: 1.05rem; }
.schedule-item p { margin: 0; color: var(--muted); }
.schedule-item .button { margin-top: 10px; width: 100%; }
.done { border-color: #62a886; background: #effaf4; }

label { display: block; margin: 0 0 16px; font-weight: 800; }
input[type="text"], input[type="password"], input[type="date"], select, textarea, input[type="file"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #aaa39a;
  border-radius: 9px;
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.help { display: block; margin-top: 5px; color: var(--muted); font-size: .84rem; font-weight: 400; }
.required { color: var(--red); }
.photo-required { padding: 16px; background: #fff0d1; border: 2px solid var(--gold); border-radius: 12px; }
.existing-photo { max-width: 240px; margin: 8px 0; border-radius: 8px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 16px; }
.preview-grid img { aspect-ratio: 4/3; width: 100%; object-fit: cover; border-radius: 8px; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 9px; background: #fff0d1; border-left: 4px solid var(--gold); }
.alert.error { color: #6f0c12; background: #ffe7e9; border-color: var(--red); }
.alert.success { color: #0b5533; background: #e5f7ed; border-color: var(--success); }
.pagination { margin-top: 24px; text-align: center; }
.empty { padding: 26px 18px; color: var(--muted); text-align: center; }
.admin-row { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-row:last-child { border-bottom: 0; }
.small { font-size: .85rem; color: var(--muted); }
.footer { padding: 30px 14px; color: #ddd; background: #242424; text-align: center; font-size: .8rem; }

/* 公式スマホ版に合わせる公開レイアウト */
body.public-layout, body.embedded-layout {
  color: #333;
  background: #fff;
  font-family: Verdana, "ヒラギノ角ゴ Pro W3", "ＭＳ Ｐゴシック", "Osaka‐等幅", sans-serif;
  font-size: 80%;
  line-height: 1.4;
}
.public-layout a, .embedded-layout a { color: #013298; }
.official-header { position: relative; width: min(100%, 720px); margin: 0 auto; background: #fff; }
.official-header > a:first-child, .official-header > a:first-child img { display: block; width: 100%; }
.official-x { position: absolute; top: 77%; left: 45%; width: 50%; }
.official-x img { width: 90%; margin: 0 auto; }
.official-back-link { width: min(100%, 900px); margin: 0 auto; padding: 12px 10px; }
.public-layout .container, .embedded-layout .container { width: min(100%, 900px); padding: 0 6px 40px; }
.public-layout .hero, .embedded-layout .hero { margin: 0 0 18px; padding: 18px 10px 14px; border-bottom: 11px solid #f29800; text-align: left; }
.public-layout .hero h1, .embedded-layout .hero h1 { font-size: clamp(1.45rem, 6vw, 2rem); }
.report-results-heading { font-family: Arial, sans-serif; }
.report-results-heading small { display: block; margin-top: 6px; font-size: .5em; font-weight: 400; }
.public-layout .hero p, .embedded-layout .hero p { color: #555; }
.public-layout .card, .public-layout .panel,
.embedded-layout .card, .embedded-layout .panel {
  background: #fff;
  border: 1px solid #d9d9d6;
  border-radius: 0;
  box-shadow: none;
}
.public-layout .card > .card-body, .embedded-layout .card > .card-body { padding: 10px; }
.public-layout .article-title, .embedded-layout .article-title { margin-top: 0; font-size: 1.25rem; }
.public-layout .store-name, .embedded-layout .store-name { margin-bottom: 6px; }
.public-layout .store-filter-link, .embedded-layout .store-filter-link { display: inline-flex; align-items: center; max-width: 100%; min-height: 44px; padding: 8px 12px; background: #fff; border: 1px solid #d9d9d6; border-radius: 6px; text-decoration: none; }
.store-filter-link:hover { border-color: #999; }
.store-filter-link:focus-visible { outline: 2px solid #013298; outline-offset: 2px; }
.public-layout .article-event-list a, .embedded-layout .article-event-list a { color: #555; text-decoration: none; }
.public-layout .badge { border-radius: 2px; background: #013298; }
.public-layout .badge.gold { color: #fff; background: #f29800; }
.public-layout .badge.green { background: #009900; }
.public-layout .button, .public-layout button, .embedded-layout .button, .embedded-layout button { color: #fff; border-radius: 2px; background: #013298; }
.public-layout .button.secondary, .public-layout button.secondary, .embedded-layout .button.secondary, .embedded-layout button.secondary { color: #333; background: #fff; border: 1px solid #d9d9d6; }
.public-layout .note, .embedded-layout .note { background: #fff; border-left-color: #f29800; }
.public-layout .filter-panel summary, .embedded-layout .filter-panel summary { color: #fff; background: #013298; }
.public-layout .filter-panel[open] summary, .embedded-layout .filter-panel[open] summary { border-color: #013298; }
.public-layout .photo-grid, .embedded-layout .photo-grid { gap: 3px; }
.official-footer { width: min(100%, 900px); margin: 0 auto; padding: 18px 10px; color: #666; background: #fff; text-align: center; }
.official-footer p { margin: 2em 0 0; font-size: .8em; }
.result-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 16px 0; }
.result-month { margin: 20px 0 6px; font-size: 1.1rem; }
.result-index { margin: 0; padding: 0; list-style: none; }
.result-index li { border-bottom: 1px solid #d9d9d6; }
.result-index a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 44px; padding: 8px 6px; text-decoration: none; }
.result-index a:hover, .result-index a:focus-visible { background: #f0f4fa; }
.result-variant { padding: 1px 6px; color: #555; background: #eee; font-size: .75rem; }
.result-page-header { padding: 8px 12px; background: #013298; line-height: 1.4; }
.public-layout .result-page-header a { display: block; width: min(100%, 900px); margin: auto; color: #fff; font-weight: 800; text-decoration: none; }
.result-page { width: min(100%, 920px); margin: 18px auto 0; padding: 0 10px 24px; }
.result-page h1 { margin: 0 0 12px; font-size: 1.35rem; }
.result-page .result-photos { margin: 0; }
.result-picker { display: flex; align-items: end; gap: 10px; margin-top: 20px; }
.result-picker label { flex: 1; min-width: 0; margin: 0; }
.result-picker select { min-height: 44px; padding: 10px 6px; border-radius: 2px; }
.result-index-link { margin: 26px 0 0; text-align: center; }
.result-index-link a { display: inline-block; min-height: 44px; padding: 8px 0; }

/* 公式ページの iframe 内に表示する取材別ページ */
body.embedded-layout { display: flow-root; margin: 0; padding: 0 6px; text-align: left; }
.embedded-layout .event-page { width: 100%; max-width: 920px; margin: 0 auto; padding: 0; }
.public-layout .event-page { width: min(100%, 920px); margin: 0 auto; padding: 0 6px 40px; }
.embedded-layout .event-result-card { border-color: #d9d9d6; }
.embedded-layout .event-result-link a { display: inline-block; padding: 8px 0; }

@media (min-width: 720px) {
  .card > .card-body { padding: 22px; }
  .schedule-list { grid-template-columns: repeat(2, 1fr); }
  .admin-row { grid-template-columns: 1fr auto; align-items: center; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .store-admin-grid { grid-template-columns: repeat(2, 1fr); }
}
