/* ==========================================================
   むぎのわ製パン所
   ========================================================== */

:root {
  --cream: #f6efe3;
  --cream-deep: #eee3d0;
  --paper: #fffaf1;
  --ink: #3b2a1e;
  --ink-soft: #6b5646;
  --crust: #a9692a;
  --wheat: #c98a3c;
  --wheat-pale: #ecd3a6;
  --leaf: #66754f;
  --line: #dccdb4;

  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --radius: 18px;
  --header-h: 68px;
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 8px;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - var(--gutter) * 2); }

/* ---------- ヘッダー ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 227, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(59, 42, 30, .06); }

.header__inner {
  width: min(1160px, 100% - var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 40px; height: 40px; color: var(--wheat); flex: none; }
.logo__text {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.15; letter-spacing: .12em;
  display: flex; flex-direction: column;
}
.logo__text small { font-size: .62rem; letter-spacing: .42em; color: var(--ink-soft); font-weight: 500; }

.gnav ul { display: flex; gap: 28px; }
.gnav a {
  text-decoration: none; font-size: .92rem; font-weight: 500; padding: 8px 2px; position: relative;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--wheat); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.gnav a:hover::after, .gnav a:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: .8rem; color: var(--ink); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background .25s;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 30px;
  border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 700; font-size: .98rem; text-decoration: none; letter-spacing: .08em;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 6px 0 rgba(59, 42, 30, .18); }
.btn--primary:hover { transform: translateY(-2px); background: var(--crust); border-color: var(--crust); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn__sub { font-size: .72rem; font-weight: 500; opacity: .85; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 9vw, 110px);
  background:
    radial-gradient(circle at 85% 18%, rgba(236, 211, 166, .55), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(102, 117, 79, .12), transparent 40%),
    var(--cream);
}
.hero__inner {
  width: min(1160px, 100% - var(--gutter) * 2); margin-inline: auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 5vw, 72px);
}
.hero__place {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .2em;
  color: var(--leaf); padding-bottom: 6px; border-bottom: 2px solid currentColor;
}
.hero__title {
  margin-top: 26px;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.32; letter-spacing: .1em;
}
.hero__title span { display: block; }
.hero__title span:last-child { color: var(--crust); }
.hero__lead { margin-top: 26px; font-size: clamp(.98rem, 1.6vw, 1.1rem); color: var(--ink-soft); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero__ring {
  position: absolute; inset: 0; width: 100%; height: 100%; color: var(--wheat);
  animation: spin 90s linear infinite;
}
.hero__plate {
  position: absolute; inset: 17%;
  background: var(--paper); border-radius: 50%;
  box-shadow: 0 24px 50px rgba(59, 42, 30, .14), inset 0 0 0 10px rgba(236, 211, 166, .35);
}
.hero__bread { position: absolute; filter: drop-shadow(0 8px 8px rgba(59, 42, 30, .16)); }
.hero__bread--1 { width: 52%; height: 52%; left: 8%; top: 12%; }
.hero__bread--2 { width: 62%; height: 62%; right: -6%; top: 6%; }
.hero__bread--3 { width: 44%; height: 44%; left: 10%; bottom: 4%; }
.hero__bread--4 { width: 42%; height: 42%; right: 8%; bottom: 8%; }

@keyframes spin { to { transform: rotate(360deg); } }

.today {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%);
  display: inline-flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - var(--gutter) * 2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 26px; font-size: .92rem; font-weight: 500; line-height: 1.5;
  box-shadow: 0 10px 24px rgba(59, 42, 30, .08);
}
.today__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.today.is-open .today__dot { background: #5c9a4b; box-shadow: 0 0 0 4px rgba(92, 154, 75, .2); }
.today.is-closed .today__dot { background: #b8623f; }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }

.heading { text-align: center; margin-bottom: clamp(36px, 5vw, 60px); }
.heading__en {
  font-family: var(--serif); font-size: .85rem; letter-spacing: .34em; color: var(--wheat);
  text-transform: uppercase;
}
.heading__ja {
  margin-top: 6px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: .12em; line-height: 1.5;
}
.heading__ja::after {
  content: ""; display: block; width: 44px; height: 3px; border-radius: 3px;
  background: var(--wheat); margin: 18px auto 0;
}
.heading__note { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- こだわり ---------- */
.about__intro {
  text-align: center; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.02rem, 2vw, 1.25rem); line-height: 2.3;
}
.about__intro strong { color: var(--crust); font-weight: 700; font-size: 1.15em; }

.points { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.point {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: 44px 28px 32px; border: 1px solid var(--line);
}
.point__num {
  position: absolute; top: -22px; left: 26px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wheat); color: #fff;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
}
.point__title { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .08em; line-height: 1.6; margin-bottom: 12px; }
.point p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- メニュー ---------- */
.menu { background: var(--cream-deep); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 0 var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 30px rgba(59, 42, 30, .1); }
.card__pic {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 250, 241, .95) 0 34%, transparent 35%),
    repeating-linear-gradient(45deg, #f1dfbf 0 12px, #f5e7cd 12px 24px);
}
.card__pic svg { width: 46%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 6px 6px rgba(59, 42, 30, .15)); transition: transform .4s; }
.card:hover .card__pic svg { transform: rotate(-5deg) scale(1.06); }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--leaf); border: 1px solid currentColor; border-radius: 999px; padding: 1px 12px;
}
.card__name { margin-top: 10px; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .08em; line-height: 1.5; }
.card__desc { margin-top: 8px; font-size: .92rem; color: var(--ink-soft); line-height: 1.8; flex: 1; }
.card__price {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  text-align: right; font-size: .88rem; color: var(--ink-soft);
}
.card__price b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0 2px 0 6px; letter-spacing: .02em; }
.menu__note { margin-top: 28px; text-align: center; font-size: .85rem; color: var(--ink-soft); }

/* ---------- 焼き上がり ---------- */
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before {
  content: ""; position: absolute; left: 91px; top: 20px; bottom: 20px; width: 2px;
  background: repeating-linear-gradient(var(--wheat) 0 6px, transparent 6px 12px);
}
.timeline li { display: grid; grid-template-columns: 72px 1fr; gap: 40px; align-items: center; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 84px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: var(--cream); border: 3px solid var(--wheat);
}
.timeline time { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; text-align: right; letter-spacing: .02em; }
.timeline div {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px;
  display: flex; flex-direction: column; line-height: 1.6;
}
.timeline b { font-size: 1.02rem; }
.timeline span { font-size: .85rem; color: var(--ink-soft); }

.reserve {
  margin-top: 48px; text-align: center;
  background: var(--ink); color: var(--paper); border-radius: var(--radius);
  padding: clamp(30px, 5vw, 46px) clamp(22px, 5vw, 48px);
}
.reserve h3 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .12em; }
.reserve p { margin: 12px auto 24px; max-width: 34em; font-size: .95rem; opacity: .9; }
.reserve .btn--primary {
  background: var(--wheat); border-color: var(--wheat); color: #fff;
  font-size: 1.25rem; font-family: var(--serif); box-shadow: none; flex-direction: column; gap: 0; line-height: 1.3; padding: 10px 40px;
}
.reserve .btn--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- ごあいさつ ---------- */
.message { background: var(--cream-deep); }
.message__box {
  position: relative; background: var(--paper); border-radius: var(--radius);
  padding: clamp(48px, 7vw, 72px) clamp(24px, 6vw, 68px) clamp(36px, 6vw, 56px);
  border: 1px solid var(--line);
}
.message__mark {
  position: absolute; top: -32px; left: 50%; margin-left: -32px;
  width: 64px; height: 64px; color: var(--wheat);
  background: var(--paper); border-radius: 50%; padding: 6px; border: 1px solid var(--line);
}
.message__title { text-align: center; font-family: var(--serif); font-size: 1.5rem; letter-spacing: .18em; margin-bottom: 22px; }
.message__box p + p { margin-top: 1.2em; }
.message__sign { text-align: right; font-family: var(--serif); font-weight: 700; letter-spacing: .12em; }

/* ---------- お知らせ ---------- */
.newslist { border-top: 1px solid var(--line); }
.newslist li {
  display: grid; grid-template-columns: auto auto 1fr; gap: 6px 18px; align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--line);
}
.newslist time { font-family: var(--serif); font-size: .92rem; color: var(--ink-soft); letter-spacing: .06em; }
.newslist__cat {
  font-size: .72rem; font-weight: 700; background: var(--wheat-pale); color: var(--ink);
  border-radius: 999px; padding: 1px 12px; white-space: nowrap;
}
.newslist p { font-size: .96rem; line-height: 1.8; }

/* ---------- 店舗情報 ---------- */
.shop { background: var(--paper); }
.shop__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.info > div {
  display: grid; grid-template-columns: 7em 1fr; gap: 12px;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.info > div:first-child { border-top: 1px solid var(--line); }
.info dt { font-weight: 700; font-size: .9rem; color: var(--crust); letter-spacing: .1em; }
.info dd { line-height: 1.8; }
.info small { font-size: .82rem; color: var(--ink-soft); }
.info a { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; text-decoration-color: var(--wheat); text-underline-offset: 4px; }

.hours { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; text-align: center; }
.hours caption { font-family: var(--serif); font-weight: 700; letter-spacing: .14em; margin-bottom: 8px; }
.hours th { font-size: .85rem; font-weight: 500; color: var(--ink-soft); padding: 4px 0; }
.hours td {
  background: var(--cream); border-radius: 10px; padding: 10px 0;
  color: var(--leaf); font-weight: 700; border: 2px solid transparent;
}
.hours td.is-closed { color: #b8623f; background: #f5e4da; }
.hours td.is-today { border-color: var(--ink); }
.hours th.is-today { color: var(--ink); font-weight: 700; }

.map {
  margin-top: 20px; border-radius: var(--radius); padding: 32px 20px; text-align: center;
  background:
    linear-gradient(rgba(246, 239, 227, .86), rgba(246, 239, 227, .86)),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 34px);
  border: 1px solid var(--line);
}
.map__mark { width: 48px; height: 48px; color: var(--wheat); margin: 0 auto 6px; }
.map p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ---------- FAQ ---------- */
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 54px; font-weight: 700; line-height: 1.7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; position: absolute; left: 20px; top: 15px;
  font-family: var(--serif); font-size: 1.25rem; color: var(--wheat);
}
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 20px 54px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- フッター ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 36px; text-align: center; }
.logo--footer { justify-content: center; }
.logo--footer .logo__text { text-align: left; }
.logo--footer .logo__text small { color: var(--wheat-pale); }
.footer__addr { margin-top: 18px; font-size: .88rem; opacity: .85; }
.footer__nav { margin-top: 26px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer__nav a { font-size: .88rem; text-decoration: none; padding: 6px 0; display: inline-block; }
.footer__nav a:hover { color: var(--wheat-pale); text-decoration: underline; text-underline-offset: 5px; }
.footer__copy { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(246, 239, 227, .18); opacity: .7; }

/* ---------- スマホ下部の導線 ---------- */
.dock { display: none; }

/* ---------- スクロール表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   レスポンシブ
   ========================================================== */
@media (max-width: 900px) {
  .points, .cards { grid-template-columns: repeat(2, 1fr); }
  .points { gap: 40px 20px; }
  .shop__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; padding-bottom: 60px; }

  .nav-toggle { display: inline-flex; }
  .gnav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 24px rgba(59, 42, 30, .1);
    display: none;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; padding: 6px var(--gutter) 14px; }
  .gnav a { display: block; padding: 15px 4px; border-bottom: 1px dashed var(--line); font-size: 1rem; }
  .gnav li:last-child a { border-bottom: 0; }
  .gnav a::after { display: none; }

  .logo__mark { width: 34px; height: 34px; }
  .logo__text { font-size: 1.1rem; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__art { order: -1; max-width: 300px; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 100%; }
  .today { font-size: .82rem; padding: 10px 18px; white-space: normal; text-align: left; }

  .about__intro { text-align: left; line-height: 2.1; }
  .about__intro br { display: none; }

  .points, .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card__pic { flex: 0 0 34%; aspect-ratio: auto; background: repeating-linear-gradient(45deg, #f1dfbf 0 12px, #f5e7cd 12px 24px); }
  .card__pic svg { width: 72%; }
  .card__body { padding: 16px 16px 16px 18px; }
  .card__name { font-size: 1.1rem; }
  .card__desc { font-size: .86rem; }
  .card__price { margin-top: 10px; padding-top: 8px; }

  .timeline::before { left: 67px; }
  .timeline li { grid-template-columns: 54px 1fr; gap: 30px; }
  .timeline li::before { left: 60px; }
  .timeline time { font-size: 1.1rem; }

  .newslist li { grid-template-columns: auto 1fr; }
  .newslist__cat { justify-self: start; }
  .newslist p { grid-column: 1 / -1; }

  .info > div { grid-template-columns: 5.5em 1fr; }

  .faq summary { padding-left: 46px; padding-right: 46px; }
  .faq summary::before { left: 16px; }
  .faq summary::after { right: 18px; }
  .faq details p { padding-left: 46px; padding-right: 18px; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    color: var(--paper); text-decoration: none; text-align: center;
    font-weight: 700; font-size: .92rem; padding: 16px 8px; line-height: 1.6;
  }
  .dock a:first-child { background: var(--wheat); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .header, .dock, .hero__art, .nav-toggle { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
