:root {
  color-scheme: light;
  --bg: #efe7d8;
  --paper: #fffdf8;
  --paper-soft: #f8f0e3;
  --ink: #24211c;
  --muted: #6e655a;
  --line: #dfd2bd;
  --accent: #1f6f5b;
  --accent-dark: #15503f;
  --accent-ink: #ffffff;
  --warm: #b85c38;
  --shadow: 0 16px 34px rgba(57, 42, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.store-line,
.selector-eyebrow,
.page-kicker {
  color: var(--accent);
  font-weight: 800;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button.secondary {
  background: var(--paper);
  color: var(--accent-dark);
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.item-head h3 {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.35;
}

.price {
  flex: 0 0 auto;
  margin: 0;
  color: var(--warm);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.desc {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.recommend-grid,
.menu-stack,
.info-list {
  display: grid;
}

.recommend-card,
.menu-row,
.info-row {
  border-bottom: 1px solid var(--line);
}

.recommend-card:last-child,
.menu-row:last-child,
.info-row:last-child {
  border-bottom: 0;
}

.contact-actions {
  display: grid;
  gap: 8px;
}

.info-list {
  margin-bottom: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

dd {
  margin: 0;
  font-size: 13px;
}

.message {
  padding: 10px;
  border-radius: 8px;
  background: var(--paper-soft);
  color: var(--muted);
  font-size: 12px;
}

/* 選択トップ */
.view-selector {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.selector-shell {
  width: min(100%, 760px);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.selector-eyebrow {
  margin-bottom: 8px;
  font-size: 13px;
}

.selector-shell h1 {
  margin-bottom: 12px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
}

.selector-lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 15px;
}

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

.selector-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-soft);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.selector-card:hover,
.selector-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 25px rgba(57, 42, 25, 0.11);
}

.selector-card-horizontal {
  background: #edf5f1;
}

.selector-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.selector-card-body {
  align-self: end;
}

.selector-card-body strong,
.selector-card-body span {
  display: block;
}

.selector-card-body strong {
  margin-bottom: 8px;
  font-size: 22px;
}

.selector-card-body span {
  color: var(--muted);
  font-size: 13px;
}

.selector-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--accent);
  font-size: 24px;
}

.sample-notice {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 縦スクロール版 */
.view-standard {
  padding: 28px 0;
}

.standard-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.back-link {
  display: block;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.standard-top {
  padding: 22px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.standard-top .store-line {
  margin-bottom: 8px;
  font-size: 12px;
}

.standard-top h1 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.15;
}

.standard-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.standard-quick-actions {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.standard-main {
  padding: 0 18px 28px;
}

.standard-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.standard-section:last-child {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 18px;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.view-standard .recommend-grid {
  gap: 10px;
}

.view-standard .recommend-card,
.contact-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.standard-category {
  margin-top: 20px;
}

.standard-category:first-of-type {
  margin-top: 0;
}

.category-title {
  margin-bottom: 4px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
  font-size: 15px;
}

.view-standard .menu-row,
.view-standard .info-row {
  padding: 11px 0;
}

.contact-box > p:first-child {
  color: var(--muted);
  font-size: 13px;
}

.contact-box .message {
  margin: 12px 0 0;
}

.standard-footer {
  padding: 18px;
  background: #eee7d9;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* 横スワイプ版 */
.view-horizontal {
  height: 100%;
  overflow: hidden;
}

.horizontal-app {
  width: min(100%, 520px);
  height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.horizontal-header {
  min-width: 0;
}

.horizontal-back {
  display: block;
  padding: 6px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.horizontal-bar {
  padding: 7px 14px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.horizontal-bar .store-line {
  margin-bottom: 2px;
  font-size: 11px;
}

.bar-main {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
}

.bar-main h1 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

.bar-main p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar,
.book::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3eadb;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.book {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  user-select: none;
}

.book.is-dragging {
  cursor: grabbing;
}

.slide {
  min-width: 100%;
  height: 100%;
  padding: 8px 10px;
  overflow: hidden;
  scroll-snap-align: start;
}

.sheet {
  height: 100%;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(63, 47, 28, 0.08);
}

.page-kicker {
  margin-bottom: 6px;
  font-size: 11px;
}

.sheet h2 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.16;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.cover-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.cover-note strong {
  display: block;
  color: var(--warm);
  font-size: 16px;
}

.cover-actions,
.view-horizontal .contact-actions {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.view-horizontal .recommend-grid,
.view-horizontal .menu-stack,
.view-horizontal .info-list {
  gap: 7px;
  margin-top: 10px;
}

.view-horizontal .recommend-card,
.view-horizontal .menu-row,
.view-horizontal .info-row {
  padding-bottom: 7px;
}

.category-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.view-horizontal .message {
  margin: 10px 0 0;
}

.page-number {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.bottom-actions {
  display: grid;
  grid-template-columns: 38px 1fr 1fr 38px;
  gap: 8px;
  padding: 7px 10px 8px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.nav-button {
  width: 38px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 900;
}

.nav-button:disabled {
  background: #f5efe6;
  color: #b5aa9c;
}

@media (max-width: 620px) {
  .view-selector {
    padding: 0;
  }

  .selector-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .selector-grid {
    grid-template-columns: 1fr;
  }

  .selector-card {
    min-height: 150px;
  }

  .view-standard {
    padding: 0;
  }

  .standard-shell {
    border-radius: 0;
  }
}

@media (max-height: 700px) {
  .horizontal-back {
    padding-block: 4px;
  }

  .horizontal-bar {
    padding: 5px 12px 4px;
  }

  .tabs {
    padding: 5px 12px;
  }

  .slide {
    padding: 6px 8px;
  }

  .sheet {
    padding: 10px;
  }

  .sheet h2 {
    font-size: 19px;
  }

  .lead,
  .desc,
  dd,
  .button {
    font-size: 12px;
  }

  .bottom-actions {
    padding-block: 5px 6px;
  }
}
