:root {
  color-scheme: light;
  --ink: #263238;
  --muted: #63727b;
  --paper: #fffdf9;
  --line: #dbe5df;
  --sea: #e4f4f1;
  --cherry: #dc6b73;
  --cherry-dark: #b94352;
  --matcha: #5a9e76;
  --sky: #4f9db8;
  --apricot: #efaa5d;
  --lavender: #8b78b9;
  --shadow: 0 16px 34px rgba(42, 76, 70, 0.1);
  --radius: 8px;
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background-color: #f7faf5;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(90, 158, 118, 0.15) 1px, transparent 1.5px),
    linear-gradient(180deg, #eef8f4 0, #f7faf5 430px);
  background-size: 28px 28px, auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.28rem;
  line-height: 1.25;
}

h2 {
  margin-bottom: 0;
  font-size: 1.38rem;
  line-height: 1.35;
}

h3 {
  margin-bottom: 3px;
  font-size: 1rem;
  line-height: 1.35;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(219, 229, 223, 0.95);
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--cherry);
  box-shadow: 0 5px 0 #f4b9a8;
  font-size: 1rem;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--matcha);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

main {
  padding: clamp(20px, 3.4vw, 42px) clamp(16px, 4vw, 48px);
}

.site-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(420px, calc(100% - 36px));
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #b9d6c3;
  border-radius: var(--radius);
  color: #285b43;
  background: #f4fbf5;
  box-shadow: 0 12px 30px rgba(30, 77, 54, 0.18);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.site-notice:empty {
  display: none;
}

.affiliate-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #eedfc7;
  border-radius: 8px;
  background: #fffaf4;
  color: #655642;
  font-size: 0.76rem;
  line-height: 1.45;
}

.affiliate-notice-label {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  color: #8d642c;
  background: #f8dfb5;
  font-size: 0.68rem;
  font-weight: 900;
}

.affiliate-notice > span:last-child {
  min-width: 0;
}

.app-shell {
  display: grid;
  gap: clamp(26px, 4vw, 46px);
  max-width: 1120px;
  margin: 0 auto;
}

.map-column {
  min-width: 0;
}

.section-head,
.ranking-hero,
.ranking-meta,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head {
  margin-bottom: 14px;
}

.journey-summary,
.pref-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.journey-summary span,
.pref-stats span,
.region-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(90, 158, 118, 0.25);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
  font-weight: 700;
}

.journey-summary strong,
.pref-stats strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.map-frame {
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid rgba(90, 158, 118, 0.2);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 10px, transparent 10px 20px),
    var(--sea);
  box-shadow: var(--shadow);
}

.map-view {
  display: none;
}

.map-view.is-active {
  display: grid;
  gap: 20px;
}

#regionView.is-active {
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.76fr);
  align-items: center;
}

.map-visual {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
}

.japan-map-image {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 18px rgba(50, 89, 81, 0.16));
}

.region-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}

.region-hotspot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--region-color) 42%, #ffffff);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--region-color) 18%, transparent);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.region-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--region-color);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--region-color) 46%, #ffffff);
}

.region-hotspot:hover,
.region-hotspot.is-selected {
  color: #fff;
  background: var(--region-color);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--region-color) 36%, #3f5e52);
  transform: translateY(-3px);
}

.region-hotspot:hover .region-dot,
.region-hotspot.is-selected .region-dot {
  background: #fff;
  box-shadow: none;
}

.prefecture-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-button,
.add-snack-button,
.submit-button,
.dialog-close {
  border: 0;
  font-weight: 900;
}

.back-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(90, 158, 118, 0.34);
  border-radius: var(--radius);
  color: var(--matcha);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.back-button:hover {
  color: #fff;
  background: var(--matcha);
}

.picker-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.region-visual {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 8px;
  border: 1px dashed rgba(90, 158, 118, 0.36);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
}

.region-map-image {
  display: block;
  width: min(100%, 500px);
  max-height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(50, 89, 81, 0.14));
}

.prefecture-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
}

.prefecture-card {
  display: grid;
  grid-template-rows: 86px auto;
  gap: 7px;
  align-items: center;
  min-height: 132px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--region-color) 28%, #ffffff);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 -5px 0 color-mix(in srgb, var(--region-color) 9%, transparent);
  font-size: 0.88rem;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.prefecture-card:hover {
  background: color-mix(in srgb, var(--region-color) 10%, #ffffff);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--region-color) 21%, transparent);
  transform: translateY(-3px);
}

.prefecture-card.is-selected {
  color: #fff;
  border-color: transparent;
  background: var(--region-color);
  box-shadow: 0 8px 0 color-mix(in srgb, var(--region-color) 32%, #3f5e52);
}

.prefecture-card img {
  width: 100%;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(38, 50, 56, 0.12));
}

.prefecture-card span {
  line-height: 1.35;
}

.ranking-column {
  scroll-margin-top: 88px;
  padding: clamp(20px, 3vw, 32px) 0 0;
  border-top: 6px solid var(--cherry);
  background:
    linear-gradient(90deg, rgba(255, 237, 230, 0.68), rgba(255, 253, 249, 0) 32%),
    var(--paper);
}

.national-ranking-section {
  padding: clamp(20px, 3vw, 32px) 0 0;
  border-top: 6px solid var(--apricot);
  background:
    linear-gradient(90deg, rgba(255, 240, 215, 0.72), rgba(255, 253, 249, 0) 34%),
    var(--paper);
}

.national-ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
}

.national-ranking-head h2 {
  color: #7d5a2a;
}

.national-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #f0c985;
  border-radius: 999px;
  color: #8d642c;
  background: #fffaf0;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.national-count strong {
  color: #72501e;
  font-size: 1rem;
}

.national-search {
  display: block;
  padding: 18px clamp(16px, 3vw, 28px);
}

.national-search input {
  width: min(100%, 420px);
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #ead9bb;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.ranking-hero {
  padding: 0 clamp(16px, 3vw, 28px);
}

.ranking-hero h2 #selectedPrefecture {
  color: var(--cherry-dark);
}

.ranking-meta {
  padding: 16px clamp(16px, 3vw, 28px) 0;
}

.region-pill {
  color: var(--matcha);
}

.add-snack-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--cherry);
  box-shadow: 0 5px 0 #c54b55;
  white-space: nowrap;
}

.add-snack-button:hover {
  background: var(--cherry-dark);
  transform: translateY(-2px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) max-content;
  gap: 10px;
  padding: 18px clamp(16px, 3vw, 28px);
}

.search-field,
.select-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-field input,
.select-field select,
.snack-form input,
.snack-form select,
.snack-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.search-field input,
.select-field select {
  min-height: 42px;
  padding: 0 11px;
}

.select-field select {
  width: auto;
  min-width: 110px;
}

.ranking-list {
  display: grid;
  gap: 10px;
  padding: 0 clamp(16px, 3vw, 28px) clamp(18px, 3vw, 28px);
  margin: 0;
  list-style: none;
}

.national-ranking-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 clamp(16px, 3vw, 28px) clamp(18px, 3vw, 28px);
  margin: 0;
  list-style: none;
}

.national-ranking-list .ranking-item {
  grid-template-columns: 42px minmax(0, 1fr) 58px;
  gap: 11px;
  align-items: start;
}

.national-ranking-list .snack-icon {
  display: none;
}

.national-ranking-list .rank-badge,
.national-ranking-list .vote-button {
  margin-top: 2px;
}

.national-ranking-list .vote-button {
  width: 58px;
  min-height: 60px;
}

.national-ranking-list .maker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.national-ranking-list .note {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-item {
  display: grid;
  grid-template-columns: 44px 44px minmax(0, 1fr) 64px;
  gap: 12px;
  align-items: center;
  min-height: 112px;
  padding: 13px;
  border: 1px solid #f0ded6;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 0 rgba(242, 207, 190, 0.34);
}

.ranking-item.is-unranked {
  grid-template-columns: 44px minmax(0, 1fr) 64px;
}

.national-ranking-list .ranking-item.is-unranked {
  grid-template-columns: minmax(0, 1fr) 58px;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: #84939a;
  font-weight: 900;
}

.ranking-item[data-rank="1"] .rank-badge {
  color: #6f4b11;
  background: #f1c960;
}

.ranking-item[data-rank="2"] .rank-badge {
  color: #52616a;
  background: #c5d0d5;
}

.ranking-item[data-rank="3"] .rank-badge {
  color: #70432d;
  background: #e6a67e;
}

.snack-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #f3d6c7;
  border-radius: 50%;
  color: var(--cherry-dark);
  background: #fff6ee;
  font-size: 1rem;
  font-weight: 900;
}

.snack-main {
  min-width: 0;
}

.snack-title-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.snack-title-row h3 {
  overflow-wrap: anywhere;
}

.snack-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--cherry-dark);
  background: #fff0e8;
  font-size: 0.74rem;
  font-weight: 900;
}

.prefecture-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  flex: 0 0 auto;
  padding: 0 8px;
  border: 1px solid #b7d9cf;
  border-radius: 999px;
  color: #397464;
  background: #f1faf6;
  font-size: 0.74rem;
  font-weight: 900;
}

.maker,
.note {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.note {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.vote-status {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin: 0 0 8px;
  padding: 0 8px;
  border: 1px solid #dfd8cf;
  border-radius: 999px;
  color: #766e66;
  background: #faf8f5;
  font-size: 0.74rem;
  font-weight: 800;
}

.snack-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.affiliate-label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid #edcfa5;
  border-radius: 999px;
  color: #9a6328;
  font-size: 0.68rem;
  font-weight: 900;
}

.buy-link {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--matcha);
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
}

.buy-link:hover {
  background: #377657;
}

.vote-button {
  display: grid;
  place-items: center;
  gap: 4px;
  width: 62px;
  min-height: 64px;
  border: 1px solid #efcec6;
  border-radius: var(--radius);
  color: var(--cherry-dark);
  background: #fff8f5;
  font-weight: 900;
  line-height: 1;
}

.vote-action {
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.vote-count {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.vote-number {
  font-size: 0.92rem;
}

.vote-unit {
  font-size: 0.68rem;
}

.vote-button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--cherry);
  background: var(--cherry);
}

.vote-button:disabled {
  cursor: default;
  opacity: 0.58;
}

.vote-arrow {
  font-size: 0.66rem;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #d9c7bd;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.add-snack-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(780px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(30, 52, 48, 0.28);
}

.add-snack-dialog::backdrop {
  background: rgba(33, 55, 49, 0.42);
}

.dialog-shell {
  padding: clamp(20px, 4vw, 30px);
}

.dialog-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.dialog-head h2 {
  font-size: 1.24rem;
}

.dialog-head h2 span {
  color: var(--cherry-dark);
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--muted);
  background: #eef5ee;
  font-size: 1.35rem;
  line-height: 1;
}

.dialog-close:hover {
  color: #fff;
  background: var(--cherry);
}

.snack-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.snack-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.snack-form input,
.snack-form select {
  min-height: 42px;
  padding: 0 10px;
}

.snack-form textarea {
  min-height: 90px;
  padding: 10px;
  resize: vertical;
}

.wide-field,
.form-message,
.submit-button {
  grid-column: 1 / -1;
}

.turnstile-slot {
  grid-column: 1 / -1;
  min-height: 0;
}

.turnstile-slot:empty {
  display: none;
}

.form-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--cherry-dark);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.5;
}

.form-message.is-success {
  color: var(--matcha);
}

.submit-button {
  justify-self: start;
  min-width: 152px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--cherry);
  box-shadow: 0 5px 0 #c54b55;
}

.submit-button:hover {
  background: var(--cherry-dark);
  transform: translateY(-2px);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 16px 28px;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer a,
.footer-links a {
  color: var(--matcha);
  text-underline-offset: 3px;
}

.footer-links {
  display: inline-flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.policy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(219, 229, 223, 0.95);
  background: rgba(255, 253, 249, 0.94);
}

.policy-brand {
  color: inherit;
  text-decoration: none;
}

.policy-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.policy-brand .eyebrow {
  display: block;
  margin-bottom: 0;
}

.policy-back {
  color: var(--matcha);
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.policy-main {
  max-width: 840px;
  margin: 0 auto;
}

.policy-heading {
  margin-bottom: 22px;
}

.policy-heading h1 {
  font-size: 1.7rem;
}

.policy-content {
  display: grid;
  gap: 22px;
  padding: clamp(20px, 4vw, 34px);
  border-top: 6px solid var(--matcha);
  background: var(--paper);
}

.policy-content section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.policy-content h2 {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.policy-content p:last-child,
.policy-content ul:last-child {
  margin-bottom: 0;
}

.policy-content ul {
  display: grid;
  gap: 5px;
  padding-left: 1.4em;
  margin: 0;
}

.policy-contact {
  padding: 12px;
  border-radius: var(--radius);
  color: #78572a;
  background: #fff7e8;
}

.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;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(79, 157, 184, 0.48);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    position: static;
  }

  .header-note {
    display: none;
  }

  .policy-topbar {
    align-items: flex-start;
  }

  .policy-back {
    white-space: nowrap;
  }

  main {
    padding: 18px 12px 28px;
  }

  .section-head,
  .ranking-hero,
  .national-ranking-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .journey-summary {
    gap: 6px;
  }

  .map-frame {
    padding: 12px;
  }

  #regionView.is-active {
    grid-template-columns: 1fr;
  }

  .map-visual {
    width: min(100%, 360px);
    padding: 6px;
  }

  .region-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .region-hotspot {
    min-height: 44px;
    padding: 7px 8px;
    font-size: 0.82rem;
  }

  .region-visual {
    min-height: 190px;
  }

  .region-map-image {
    max-height: 260px;
  }

  .prefecture-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prefecture-card {
    grid-template-rows: 76px auto;
    min-height: 120px;
  }

  .prefecture-card img {
    height: 76px;
  }

  .ranking-hero,
  .ranking-meta,
  .toolbar,
  .ranking-list,
  .national-ranking-head,
  .national-search,
  .national-ranking-list {
    padding-left: 14px;
    padding-right: 14px;
  }

  .ranking-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .toolbar,
  .snack-form {
    grid-template-columns: 1fr;
  }

  .select-field {
    justify-content: space-between;
  }

  .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr) 50px;
    gap: 9px;
    min-height: 104px;
    padding: 10px;
  }

  .ranking-item.is-unranked,
  .national-ranking-list .ranking-item.is-unranked {
    grid-template-columns: minmax(0, 1fr) 50px;
  }

  .national-ranking-list {
    grid-template-columns: 1fr;
  }

  .national-ranking-list .ranking-item {
    grid-template-columns: 36px minmax(0, 1fr) 50px;
    gap: 9px;
    min-height: 0;
    padding: 12px 10px;
  }

  .national-ranking-list .rank-badge {
    margin-top: 3px;
  }

  .national-ranking-list .vote-button {
    width: 50px;
    min-height: 58px;
    margin-top: 1px;
  }

  .national-ranking-list .snack-title-row {
    gap: 5px;
  }

  .national-ranking-list .snack-title-row h3 {
    font-size: 1rem;
    line-height: 1.45;
  }

  .national-ranking-list .maker {
    margin-top: 7px;
  }

  .national-ranking-list .note {
    margin-bottom: 8px;
  }

  .snack-icon {
    display: none;
  }

  .rank-badge {
    width: 36px;
    height: 36px;
  }

  .vote-button {
    width: 50px;
    min-height: 58px;
  }

  .vote-action {
    font-size: 0.62rem;
  }

  .vote-number {
    font-size: 0.86rem;
  }

  .snack-title-row {
    gap: 5px;
  }

  .dialog-shell {
    padding: 20px;
  }

  .site-notice {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }

  .affiliate-notice {
    align-items: flex-start;
    gap: 7px;
  }
}
