:root {
  --primary: #0b6d8c;
  --accent: #f5a623;
  --background: #f7f9fb;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #6b7280;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  box-sizing: border-box;
  max-width: 100vw;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-text .site-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-text .site-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-links a {
  margin-right: 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--primary);
}

.cart-indicator {
  font-size: 1.5rem;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  box-sizing: border-box;
  width: 100%;
}

.page-heading {
  margin: 1.5rem 0 1rem;
}

.page-heading h1 {
  margin: 0.35rem 0;
}

.subtitle {
  color: var(--muted);
  margin: 0;
}

.back-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.price {
  font-weight: 800;
  color: var(--primary);
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.product-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.product-figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  max-width: 100%;
}

.product-figure img {
  width: 100%;
  border-radius: 12px;
}

.product-meta {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.product-meta strong {
  color: var(--muted);
}

.feature-list {
  list-style: disc;
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text);
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.panel h3 {
  margin-top: 0;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step {
  padding: 0.75rem;
  background: #eef2ff;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  text-align: center;
  font-weight: 700;
  color: #4338ca;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: center;
}

.schedule-table th {
  background: #f8fafc;
}

.time-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin: 0.2rem;
  background: #f8fafc;
  font-weight: 600;
}

.time-chip-selected {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0369a1;
}

.reservation-form {
  display: grid;
  gap: 0.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-weight: 700;
}

input,
select,
textarea {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fafc;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.button {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  box-shadow: 0 8px 18px rgba(11, 109, 140, 0.25);
}

.button.secondary {
  background: #0ea5e9;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem;
}

.footer-links {
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-separator {
  margin: 0 0.35rem;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 40;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  max-width: 320px;
  height: 100%;
  background: #0f172a;
  color: #e5e7eb;
  padding: 1.25rem 1rem 2rem;
  box-shadow: 4px 0 18px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #e5e7eb;
  font-size: 1.4rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

.mobile-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 600;
  padding: 0.35rem 0;
}

.mobile-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .menu-toggle {
    display: flex;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
  }

  .logo-text .site-title {
    font-size: 1rem;
  }

  .logo-text .site-subtitle {
    font-size: 0.75rem;
  }

  .nav-links {
    display: none;
  }

  .page {
    padding: 0.75rem 1rem 2rem;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .product-figure {
    margin: 0 0.75rem 1.5rem;
  }

  .panel {
    margin: 0 0.75rem 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
  }

  .product-layout {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
  }

  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 0.75rem 0.75rem 2rem;
    margin: 0;
    max-width: 100%;
    width: 100%;
  }

  .page-heading {
    margin: 1rem 0 0.75rem;
  }

  .schedule-table {
    font-size: 0.75rem;
    max-width: 100%;
    table-layout: fixed;
  }

  .schedule-table th,
  .schedule-table td {
    padding: 0.4rem;
  }

  .time-chip {
    padding: 0.25rem 0.45rem;
    margin: 0.1rem;
    font-size: 0.85rem;
  }

  /* 入力フォーム全体を少しコンパクトに */
  .panel {
    padding: 0.75rem;
    margin-bottom: 2.5rem;
  }

  input,
  select,
  textarea {
    padding: 0.5rem 0.6rem;
    font-size: 0.95rem;
    width: 100%;
    max-width: 100%;
  }

  /* iOS の date 入力だけ横方向に大きく見えないように少し小さめに調整 */
  input[type='date'] {
    font-size: 0.9rem;
    padding: 0.45rem 0.5rem;
  }

  textarea {
    min-height: 96px;
  }

  /* 予約ボタンまわりの余白を増やしてフッターと重ならないように */
  .button {
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
  }
}

/* PC / タブレット表示用：予約フォームの横幅をパネル内に収める */
@media (min-width: 768px) {
  /* 白い枠（パネル）自体を少し細く中央寄せ */
  .panel {
    max-width: 520px;
    margin: 0 auto 2.5rem;
  }

  /* 入力フォームはさらに少し細くして中央寄せ */
  .reservation-form {
    max-width: 420px;
    margin: 0 auto;
  }
}

