/* ============================================
   まちのパン屋 むぎのおと（サンプル）
   カジュアル：まるゴシック＋温かい小麦ブラウン（参考サイトの色は使わない）
   ============================================ */
:root {
  --ink: #3d2914;
  --cream: #faf6f1;
  --cream-deep: #f0e4d4;
  --accent: #b85c38;
  --accent-soft: #f2dcc8;
  --mark: #efd2a8;
  --muted: #4a382c;
  --muted-2: #8a7360;
  --row: #e8d9c8;
  --white: #ffffff;
  --line: rgba(61, 41, 20, 0.14);
  --shadow: 0 10px 28px rgba(61, 41, 20, 0.10);
  --radius: 18px;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", Meiryo, sans-serif;
  --maru: "Kiwi Maru", "Hiragino Maru Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  font-size: 15px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* 注釈バー */
.sample-bar {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: 0.04em;
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--maru);
  font-size: 16px;
  font-weight: 500;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
}
.brand-name small {
  font-size: 10px;
  color: var(--muted);
  margin-left: 6px;
  font-family: var(--sans);
}
.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: 20px; list-style: none; }
.global-nav a {
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
}
.global-nav a:hover { color: #8a4328; }
.header-cta {
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); transition: 0.25s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ヒーロー */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}
.hero-lead {
  font-family: var(--maru);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.marker {
  background: linear-gradient(transparent 62%, var(--mark) 62%);
  padding: 0 2px;
}
.hero-sub { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero-btns { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-line { background: var(--white); box-shadow: var(--shadow); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12); }
.hero-badges { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.badge-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 10px 16px;
  text-align: center;
  transform: rotate(-1.2deg);
}
.badge-card:nth-child(2) { transform: rotate(1.4deg); }
.badge-card:nth-child(3) { transform: rotate(-0.8deg); }
.badge-card strong { display: block; font-size: 17px; line-height: 1.3; }
.badge-card span { font-size: 11px; color: var(--muted); }
.badge-accent { background: var(--accent); }
.badge-accent span { color: var(--muted); }

.hero-visual { position: relative; }
.hero-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slider .slide.is-active { opacity: 1; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.slider-dots button.is-active { background: var(--accent); }

/* 画像注釈 */
.photo-frame { position: relative; display: block; }
.hero-slider.photo-frame { position: relative; }
.photo-note {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  background: rgba(10, 8, 6, 0.62);
  color: #fff;
  font-size: 9.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  padding: 3px 7px;
  border-radius: 3px;
  max-width: calc(100% - 12px);
  text-align: right;
  pointer-events: none;
  font-family: var(--sans);
}

/* セクション共通 */
.section { padding: 72px 0; }
.section-alt { background: var(--cream-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section-alt, .section-alt + .section { border-top-width: 0; }
.label-pill {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--maru);
  font-size: clamp(21px, 2.8vw, 29px);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 12px;
  text-align: center;
}
.section-title.left { text-align: left; }

.section > .container > .label-pill {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
}
.section-lead {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 auto 34px;
  max-width: 36em;
  text-align: center;
  line-height: 1.85;
}

/* 本日のパン */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.bread-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bread-card .photo-frame { aspect-ratio: 3 / 2; }
.bread-card .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.bread-body { padding: 18px 18px 20px; }
.bread-body h3 { font-family: var(--maru); font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.bread-body p { font-size: 13px; color: var(--muted); }
.bread-body .price { margin-top: 10px; color: var(--ink); font-size: 12.5px; }
.bread-body .price strong { font-size: 17px; }

/* こだわり */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--maru);
  font-size: 19px;
  margin-bottom: 12px;
}
.feature h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--muted); }

/* 焼き上がり表 */
.bake-table {
  width: 100%;
  max-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.bake-table th, .bake-table td { padding: 13px 18px; text-align: left; font-size: 14px; }
.bake-table thead th {
  background: var(--accent);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.05em;
}
.bake-table tbody tr + tr td { border-top: 1px solid var(--row); }
.bake-table .time { font-weight: 900; font-size: 16px; width: 90px; }
.note { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* お取り置きの流れ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  margin: 30px 0 40px;
}
.flow-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 20px;
}
.step-num {
  position: absolute;
  top: -14px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
  font-size: 14px;
}
.flow-step h3 { font-size: 15px; margin-bottom: 6px; }
.flow-step p { font-size: 13px; color: var(--muted); }

/* お取り置きフォーム */
.reserve-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  max-width: 720px;
  width: 100%;
  margin: 30px auto 0;
  text-align: left;
}
.form-title { font-family: var(--maru); font-size: 18px; font-weight: 500; }
.form-note { font-size: 12.5px; color: var(--muted); margin: 6px 0 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label { display: block; font-size: 13px; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }
.req {
  display: inline-block;
  background: #d94f2b;
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: 1px;
}
.form-grid input, .form-grid select, .form-grid textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: var(--sans);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.btn-submit { margin-top: 22px; cursor: pointer; font-family: var(--sans); font-size: 14.5px; }
.form-result { margin-top: 14px; font-size: 12.5px; color: #8a4328; font-weight: 700; }

/* 店舗情報 */
.shop-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}
.shop-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 14px;
}
.shop-table th, .shop-table td { padding: 12px 16px; text-align: left; }
.shop-table th { width: 96px; background: var(--accent-soft); font-size: 13px; }
.shop-table tr + tr th, .shop-table tr + tr td { border-top: 1px solid var(--row); }
.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 240px;
  height: 100%;
  background: repeating-linear-gradient(45deg, #f3e8cd, #f3e8cd 12px, #ede0bd 12px, #ede0bd 24px);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* フッター */
.site-footer {
  background: var(--ink);
  color: #f5f0ea;
  text-align: center;
  padding: 40px 20px 90px;
}
.footer-brand {
  font-family: var(--maru);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer-note { font-size: 11.5px; color: #c4b09a; margin-top: 10px; }
.copyright { font-size: 11px; color: #9a8670; margin-top: 14px; }

/* 追従CTA（モバイル） */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 90;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  text-align: center;
  padding: 13px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

/* フェードイン */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* ============ レスポンシブ ============ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .lineup-grid, .feature-grid, .flow-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 10px 20px 18px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 4px; }
  .global-nav a { display: block; padding: 10px 4px; font-size: 15px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-cta { display: none; }
  .header-inner { position: relative; }
  .brand { font-size: 14px; }
  .brand-name small { display: block; margin-left: 0; line-height: 1.2; }
  .hero { padding: 38px 0 44px; }
  .hero-badges { gap: 10px; }
  .badge-card { padding: 8px 12px; }
  .badge-card strong { font-size: 15px; }
  .lineup-grid, .feature-grid, .flow-grid { grid-template-columns: 1fr; }
  .flow-grid { gap: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .sticky-cta { display: block; }
}
