/* ============================================================
   弁当まほろ — 共通スタイル
   Google Fonts (Noto Sans JP) は各 HTML の head で読み込む
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #FFF8F0;
  --white:      #FFFFFF;
  --cream-mid:  #FFF4E5;
  --cream-dark: #F0E4CE;
  --terra:      #C85A1A;
  --brown:      #3C2010;
  --brown-mid:  #6B4A35;
  --border:     #DFC9B2;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  background: var(--bg);
  color: var(--brown);
}

a { color: inherit; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 3px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.header-logo { display: flex; align-items: center; }
.header-logo img { height: 44px; display: block; }

.nav-links { display: none; }

.nav-cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--terra);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.subnav {
  display: flex;
  border-top: 1px solid var(--cream-dark);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subnav a {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--brown-mid);
  text-decoration: none;
  white-space: nowrap;
  min-width: 72px;
}

.subnav a:hover,
.subnav a.current { color: var(--terra); font-weight: 700; }

/* ============================================================
   Hero（トップページ）
   ============================================================ */
.hero-wrap { padding: 24px 20px 0; }

.hero {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 28px 44px;
  text-align: center;
  border: 2px solid var(--border);
  box-shadow: 0 5px 0 var(--cream-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--cream-mid);
  top: -110px; right: -70px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  position: relative;
}

.hero p {
  color: var(--brown-mid);
  font-size: 14px;
  margin-bottom: 24px;
  position: relative;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.hero-tag {
  background: var(--terra);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   Page Hero（サブページ共通）
   ============================================================ */
.page-hero-wrap { padding: 24px 20px 0; }

.page-hero {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  border: 2px solid var(--border);
  box-shadow: 0 5px 0 var(--cream-dark);
}

.page-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.08em;
}

/* ============================================================
   Main Content
   ============================================================ */
.main-content { padding: 40px 20px 64px; }

section { margin-bottom: 48px; }

h2 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  display: inline-block;
  background: var(--terra);
  padding: 7px 24px;
  border-radius: 28px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  border-top: 2px dashed var(--border);
}

.divider span { font-size: 10px; color: var(--terra); }

/* ============================================================
   Info Table
   ============================================================ */
.info-wrap {
  background: var(--white);
  border-radius: 20px;
  border: 2px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.info-table { width: 100%; border-collapse: collapse; }

.info-table tr {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.info-table tr:last-child { border-bottom: none; }

.info-table th {
  display: block;
  width: 100%;
  border: none;
  padding: 0 0 4px 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: var(--brown-mid);
  letter-spacing: 0.06em;
}

.info-table td {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  font-size: 14px;
}

.info-table td small {
  display: block;
  color: var(--brown-mid);
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================
   Card Grid
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 0 var(--cream-dark);
  position: relative;
}

.card.featured::after {
  content: 'おすすめ';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--terra);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.card.reservation::after {
  content: '要予約';
  position: absolute;
  top: 12px; right: 12px;
  background: var(--terra);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 0.05em;
}

.card-img-text {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--cream);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-sub);
  text-align: center;
}

.card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 12px;
}

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

.card-body { padding: 14px 16px; }

.card-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.card-price {
  display: inline-block;
  background: var(--cream-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 12px;
  font-size: 13px;
  color: var(--terra);
  font-weight: 700;
}

/* ============================================================
   More Button
   ============================================================ */
.more-btn-wrap {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 8px;
}

.more-btn {
  display: inline-block;
  padding: 12px 40px;
  border: 2px solid var(--terra);
  border-radius: 28px;
  text-decoration: none;
  color: var(--terra);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.more-btn:hover { background: var(--terra); color: #fff; }

/* ============================================================
   Instagram
   ============================================================ */
.instagram-note {
  font-size: 13px;
  color: var(--brown-mid);
  margin-bottom: 14px;
  line-height: 1.8;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.instagram-item {
  aspect-ratio: 1;
  background: var(--cream-dark);
  border-radius: 14px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-mid);
  font-size: 12px;
}

/* ============================================================
   SNS
   ============================================================ */
.sns-links { display: flex; gap: 12px; flex-wrap: wrap; }

.sns-link {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid var(--terra);
  border-radius: 32px;
  text-decoration: none;
  color: var(--terra);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.sns-link:hover { background: var(--terra); color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--brown);
  color: #E8D0BC;
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 2;
}

.footer-logo {
  height: 36px;
  display: block;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

/* Web注文フォーム見出し + 注釈 */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.section-heading h2 { margin-bottom: 0; }

.section-note {
  font-size: 12px;
  color: var(--brown-mid);
  font-weight: 500;
}

/* メニューページ注記 */
.menu-note {
  font-size: 13px;
  color: var(--brown-mid);
  line-height: 1.8;
  margin-bottom: 4px;
}

.menu-note:last-of-type { margin-bottom: 20px; }

.text-link {
  color: var(--terra);
  text-decoration: underline;
}

/* ============================================================
   Notice Box
   ============================================================ */
.notice {
  background: var(--cream-mid);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--brown-mid);
  margin-bottom: 28px;
  line-height: 1.9;
}

.notice ul { padding-left: 1.2em; }
.notice li { margin-bottom: 4px; }

/* ============================================================
   Order Methods
   ============================================================ */
.order-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.method-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.method-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--terra);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.method-card p {
  font-size: 13px;
  color: var(--brown-mid);
  line-height: 1.8;
}

/* ============================================================
   Step Indicator
   ============================================================ */
.steps {
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border);
}

.step {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--brown-mid);
  background: var(--white);
  border-right: 1px solid var(--border);
}

.step:last-child { border-right: none; }

.step.active {
  background: var(--terra);
  color: #fff;
  font-weight: 700;
}

.step-content { display: none; }
.step-content.active { display: block; }

/* ============================================================
   Form
   ============================================================ */
.form-section {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.form-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.04em;
}

.form-group { margin-bottom: 14px; }
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-mid);
  margin-bottom: 6px;
}

.required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--terra);
  border: 1px solid var(--terra);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--brown);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--terra);
}

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

.form-row { display: grid; gap: 14px; }

.error-msg {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 400;
  color: var(--brown);
  cursor: pointer;
  margin-bottom: 0;
}

.select-wrapper { position: relative; }

.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--brown-mid);
  pointer-events: none;
}

/* ============================================================
   Menu Rows（注文フォーム）
   ============================================================ */
.menu-rows { margin-bottom: 12px; }

.menu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.menu-row .select-wrapper {
  flex: 1;
  min-width: 0;
}

.menu-row input[type="number"] {
  width: 68px;
  flex-shrink: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.unit-label {
  font-size: 13px;
  white-space: nowrap;
  color: var(--brown-mid);
  flex-shrink: 0;
}

.add-row-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px dashed var(--terra);
  border-radius: 20px;
  background: transparent;
  color: var(--terra);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.add-row-btn:hover { background: var(--cream-mid); }

.remove-row-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: transparent;
  color: var(--brown-mid);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.remove-row-btn:hover { border-color: #c0392b; color: #c0392b; }
.remove-row-btn:disabled { opacity: 0.3; cursor: default; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--terra);
  color: #fff;
  border: 2px solid var(--terra);
  border-radius: 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:hover { opacity: 0.85; }

.btn-outline {
  background: transparent;
  color: var(--terra);
}

.btn-outline:hover {
  background: var(--terra);
  color: #fff;
  opacity: 1;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ============================================================
   Confirm Table
   ============================================================ */
.confirm-wrap {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.confirm-table {
  width: 100%;
  border-collapse: collapse;
}

.confirm-table th,
.confirm-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td { border-bottom: none; }

.confirm-table th {
  font-weight: 700;
  color: var(--brown-mid);
  background: var(--cream-mid);
  width: 120px;
  white-space: nowrap;
}

/* ============================================================
   Complete Box
   ============================================================ */
.complete-box {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 4px 0 var(--cream-dark);
}

.complete-box h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--terra);
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.complete-box p {
  font-size: 14px;
  color: var(--brown-mid);
  line-height: 1.9;
}

.center-wrap { text-align: center; }

/* ============================================================
   480px — カード2列 / テーブル横並び
   ============================================================ */
@media (min-width: 480px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .order-methods { grid-template-columns: repeat(3, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }

  .info-table { display: table; }
  .info-table tr { display: table-row; padding: 0; border-bottom: none; }

  .info-table th,
  .info-table td {
    display: table-cell;
    padding: 13px 18px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
  }

  .info-table tr:last-child th,
  .info-table tr:last-child td { border-bottom: none; }

  .info-table th {
    background: var(--cream-mid);
    font-size: 13px;
    font-weight: 700;
    color: var(--brown);
    width: 130px;
    white-space: nowrap;
    letter-spacing: 0;
  }
}

/* ============================================================
   680px — ナビ切り替え / 3列
   ============================================================ */
@media (min-width: 680px) {
  .subnav { display: none; }

  .header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 22px 56px;
    gap: 0;
  }

  .header-logo img { height: 56px; }

  .nav-cta {
    justify-self: end;
    padding: 13px 34px;
    font-size: 14px;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .nav-links a {
    color: var(--brown);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 24px;
    background: var(--cream-mid);
    border: 1.5px solid var(--border);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
  }

  .nav-links a:hover,
  .nav-links a.current {
    background: var(--terra);
    color: #fff;
    border-color: var(--terra);
  }

  .card-grid { grid-template-columns: repeat(3, 1fr); }

  .hero-wrap { padding: 32px 32px 0; }
  .hero { padding: 56px 48px 52px; }
  .hero h1 { font-size: 28px; }

  .page-hero-wrap { padding: 32px 32px 0; }

  .main-content { padding: 48px 32px 80px; }
}

/* ============================================================
   960px — 最大幅
   ============================================================ */
@media (min-width: 960px) {
  body { font-size: 16px; }

  .header-top { padding: 24px 72px; }

  .nav-links { gap: 20px; }
  .nav-links a { padding: 13px 34px; font-size: 15px; }

  .nav-cta { padding: 14px 42px; font-size: 15px; }

  .hero-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 40px 0;
  }

  .hero { padding: 64px 56px 60px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }

  .page-hero-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 40px 0;
  }

  .main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 40px 96px;
  }

  section { margin-bottom: 64px; }

  .info-table th { width: 160px; }
}
