/* ============================================
   BAKERY RUSTIC TEMPLATE
   天然酵母・ナチュラル — クラフト紙×ダークブラウン×オリーブ
   ============================================ */

:root {
  /* 紙と粉の色 */
  --kraft: #d8c29b; /* クラフト紙 */
  --kraft-dark: #c4aa7e;
  --kinari: #f3ebdb; /* 生成り */
  --kinari-deep: #ebe0c9;

  /* 焼き色・オリーブ */
  --brown: #3b2a1e; /* ダークブラウン（文字・ボタン） */
  --brown-soft: #6a5240;
  --crust: #9a5b2c; /* 皮の焼き色（ほんの少しだけ） */
  --olive: #6f7048; /* くすんだオリーブ */
  --olive-light: #9a9a6c;

  /* 黒板 */
  --board: #2e3a30;
  --board-deep: #243026;
  --chalk: #f2efe4;
  --chalk-yellow: #f1dc8f;
  --chalk-pink: #eab3a3;

  --text: var(--brown);
  --muted: #7a6553;
  --line: rgba(59, 42, 30, 0.22);

  /* フォント：見出しは手書き風、本文はゴシック */
  --font-hand: "Klee One", "Zen Kurenaido", cursive;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;

  --shadow-paper: 0 1px 1px rgba(59, 42, 30, 0.08), 0 6px 18px rgba(59, 42, 30, 0.14);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* 行き過ぎて戻る（はねる）カーブは使わず、すっと止まる ease-out に統一 */
  --ease-bounce: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* 紙の繊維ノイズ（SVG feTurbulence を data URI で） */
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.16  0 0 0 0 0.1  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--text);
  /* 生成りの紙：ノイズ＋ムラのグラデーション */
  background-color: var(--kinari);
  background-image:
    var(--noise),
    radial-gradient(ellipse at 15% 10%, rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 85% 60%, rgba(196, 170, 126, 0.25), transparent 60%);
  background-size: 180px 180px, auto, auto;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  /* 見出しは文節で改行（対応ブラウザのみ） */
  word-break: auto-phrase;
  font-family: var(--font-hand);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(72px, 11vw, 132px) 0;
}

.pc-only {
  display: none;
}

@media (min-width: 900px) {
  .pc-only {
    display: inline;
  }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10001;
  padding: 8px 14px;
  background: var(--brown);
  color: var(--kinari);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px dashed var(--crust);
  outline-offset: 3px;
}

/* ---------- 共通：見出し ---------- */
.section__head {
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 60px);
}

.section__label {
  display: inline-block;
  margin: 0 0 6px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  color: var(--olive);
  letter-spacing: 0.12em;
}

/* ラベルの前後に手描きの短い線 */
.section__label::before,
.section__label::after {
  content: "~";
  margin: 0 0.5em;
  opacity: 0.7;
}

.section__title {
  font-size: clamp(1.6rem, 4.2vw, 2.4rem);
}

.section__desc {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
}

/* 蛍光ペンではなく、クレヨンで引いたような下線 */
.marker {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(154, 154, 108, 0.45) 62%, rgba(154, 154, 108, 0.45) 90%, transparent 90%);
  padding: 0 0.1em;
}

/* マスキングテープ（写真の上端に貼る） */
.tape {
  position: relative;
}

.tape::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 6px, transparent 6px 12px),
    rgba(154, 154, 108, 0.62);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  /* 端をギザギザに切ったテープ */
  clip-path: polygon(2% 0, 98% 4%, 100% 30%, 97% 60%, 100% 100%, 3% 96%, 0 70%, 3% 40%);
}

.tape--right::before {
  left: auto;
  right: -18px;
  transform: rotate(28deg);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  transition:
    transform 0.3s var(--ease-bounce),
    background-color 0.3s,
    color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--brown);
  color: var(--kinari);
  box-shadow: 0 3px 0 var(--crust);
}

.btn--line {
  border: 1.5px dashed var(--brown);
  color: var(--brown);
}

.btn--kinari {
  background: var(--kinari);
  color: var(--brown);
}

.btn--line:hover {
  background: rgba(59, 42, 30, 0.06);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
}

/* 背景は疑似要素に敷く（header 自体に backdrop-filter を付けると、
   中の position: fixed なモバイルメニューが header の高さに閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: rgba(243, 235, 219, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
  transition: opacity 0.4s;
}

.header.is-scrolled::before {
  opacity: 1;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

/* 焼き印のような丸ロゴ */
.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brown);
  color: var(--kraft);
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.15rem;
  box-shadow: inset 0 0 0 3px var(--brown), inset 0 0 0 4.5px var(--kraft);
}

.logo__body {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__name {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
}

.logo__sub {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--olive);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  font-family: var(--font-hand);
  font-size: 0.92rem;
  text-decoration: none;
  padding: 4px 0;
}

/* ホバーで、手で引いたような波線 */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='6'><path d='M0 3 Q 5 0 10 3 T 20 3' fill='none' stroke='%236f7048' stroke-width='1.5'/></svg>") repeat-x;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__link--stamp {
  padding: 6px 16px;
  border: 1.5px solid var(--brown);
  border-radius: 999px;
}

.nav__link--stamp::after {
  display: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 960px) {
  .nav-toggle {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1.5px solid var(--brown);
    border-radius: 50%;
    background: var(--kinari);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--brown);
    border-radius: 2px;
    transition:
      transform 0.3s,
      opacity 0.3s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* モバイルメニュー：クラフト紙の面が静かにフェード */
  .nav {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--kraft) var(--noise);
    background-size: 180px 180px;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0s 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
  }

  .nav__list {
    flex-direction: column;
    gap: 22px;
    transform: translateY(16px);
    transition: transform 0.3s var(--ease-out);
  }

  .nav.is-open .nav__list {
    transform: none;
  }

  .nav__link {
    font-size: 1.25rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(110px, 14vw, 150px) 0 clamp(70px, 9vw, 110px);
  /* 上半分だけクラフト紙の色を敷く */
  background:
    var(--noise),
    linear-gradient(180deg, var(--kraft) 0%, var(--kraft) 72%, var(--kinari) 72%);
  background-size: 180px 180px, auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__eyebrow {
  font-family: var(--font-hand);
  color: var(--olive);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

/* 開いた直後、見出し・案内文・ボタンが順に静かに浮かぶ（中身は最初から読める位置にある） */
.hero__title-line,
.hero__eyebrow,
.hero__lead,
.hero__actions {
  animation: heroIn 0.8s var(--ease-out) backwards;
}

.hero__title-line:nth-child(1) {
  animation-delay: 0.06s;
}

.hero__title-line:nth-child(2) {
  animation-delay: 0.12s;
}

.hero__lead,
.hero__actions {
  animation-delay: 0.2s;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.hero__lead {
  color: var(--brown-soft);
  max-width: 30em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  min-height: 460px;
}

.hero__photo {
  position: absolute;
  margin: 0;
  padding: 10px 10px 34px;
  background: #fbf8f1;
  box-shadow: var(--shadow-paper);
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.hero__photo--main {
  top: 0;
  right: 6%;
  width: 72%;
  transform: rotate(2.5deg);
}

.hero__photo--sub {
  bottom: -10px;
  left: 0;
  width: 44%;
  transform: rotate(-6deg);
}

.hero__photo--sub img {
  aspect-ratio: 1;
}

/* 写真は角度を変えず、その場で静かにフェードイン */
.hero__photo {
  animation: photoIn 0.9s ease backwards;
}

.hero__photo--sub {
  animation-delay: 0.15s;
}

@keyframes photoIn {
  from {
    opacity: 0;
  }
}

/* まるいスタンプ */
.stamp {
  position: absolute;
  right: -2%;
  bottom: 4%;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
  color: var(--olive);
}

.stamp svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stamp text {
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  fill: currentColor;
}

.stamp__center {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  text-align: center;
  background: rgba(243, 235, 219, 0.85);
}

.squiggle {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 28px;
}

.squiggle path {
  fill: none;
  stroke: var(--olive-light);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero {
    background: var(--noise), linear-gradient(180deg, var(--kraft) 0%, var(--kraft) 82%, var(--kinari) 82%);
    background-size: 180px 180px, auto;
  }

  .hero__visual {
    min-height: 0;
    height: min(110vw, 460px);
    margin-top: 12px;
  }

  .stamp {
    width: 96px;
    height: 96px;
    right: 0;
    bottom: -4%;
  }

  .stamp text {
    font-size: 11px;
  }

  .stamp__center {
    width: 52px;
    height: 52px;
    font-size: 0.78rem;
  }
}

/* ---------- 本日の焼き上がり（黒板） ---------- */
.board {
  position: relative;
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(10px, 1.6vw, 16px);
  /* 木の額縁：木目をグラデーションで */
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #8a6038, #6b4626 50%, #84592f);
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(59, 42, 30, 0.28);
  transform: rotate(-0.6deg);
}

.board__inner {
  position: relative;
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 48px);
  color: var(--chalk);
  font-family: var(--font-hand);
  /* 黒板：チョークの消し跡をグラデで */
  background:
    var(--noise),
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.09), transparent 50%),
    radial-gradient(ellipse at 75% 80%, rgba(255, 255, 255, 0.06), transparent 45%),
    linear-gradient(160deg, var(--board), var(--board-deep));
  background-size: 180px 180px, auto, auto, auto;
  background-blend-mode: soft-light, normal, normal, normal;
  border-radius: 3px;
  overflow: hidden;
}

.board__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 2px dashed rgba(242, 239, 228, 0.35);
}

.board__date {
  margin: 0;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 600;
  color: var(--chalk-yellow);
}

.board__now {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.board__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.board__row {
  display: grid;
  grid-template-columns: 4.2em auto 1fr auto auto;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 0;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  text-shadow: 0 0 1px rgba(242, 239, 228, 0.5);
}

/* 1行ずつチョークで書かれていく */
.reveal-ready .board__row {
  opacity: 0;
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--i, 0) * 0.05s);
}

.reveal-ready .board.is-visible .board__row {
  opacity: 1;
}

.board__time {
  font-weight: 600;
  color: var(--chalk-yellow);
}

.board__dots {
  border-bottom: 2px dotted rgba(242, 239, 228, 0.35);
  transform: translateY(-5px);
}

.board__price {
  opacity: 0.9;
  white-space: nowrap;
}

/* ステータス（JSで現在時刻と比べて付与） */
.board__status {
  min-width: 5.6em;
  font-size: 0.9em;
  text-align: center;
}

.board__status:empty {
  display: none;
}

.board__status[data-state] {
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
}

.board__status[data-state="done"] {
  color: rgba(242, 239, 228, 0.75);
}

.board__status[data-state="soon"] {
  color: var(--chalk-pink);
}

.board__status[data-state="later"] {
  color: rgba(242, 239, 228, 0.5);
  border-style: dashed;
}

.board__note {
  margin: 16px 0 0;
  font-size: 0.88rem;
  opacity: 0.75;
}

.board__memo {
  margin: 10px 0 0;
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--chalk-yellow);
  border-top: 1px dashed rgba(242, 239, 228, 0.25);
}

.board__doodle {
  position: absolute;
  right: 18px;
  bottom: 10px;
  width: 92px;
  opacity: 0.35;
  fill: none;
  stroke: var(--chalk);
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 640px) {
  .board {
    transform: none;
  }

  .board__row {
    grid-template-columns: 3.2em 1fr auto;
    gap: 2px 10px;
    letter-spacing: 0.02em;
  }

  .board__name {
    grid-column: 2 / span 2;
    line-height: 1.6;
  }

  .board__dots {
    display: none;
  }

  .board__price {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.95em;
  }

  .board__status {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
  }

  .board__memo {
  margin: 10px 0 0;
  padding-top: 12px;
  font-size: 0.95rem;
  color: var(--chalk-yellow);
  border-top: 1px dashed rgba(242, 239, 228, 0.25);
}

.board__doodle {
    display: none;
  }
}

.today__call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin: 40px 0 0;
  font-family: var(--font-hand);
  text-align: center;
}

/* ---------- ストーリー ---------- */
.story {
  background: var(--kinari-deep) var(--noise);
  background-size: 180px 180px;
}

.story__intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(56px, 8vw, 96px);
}

.story__photo {
  margin: 0;
  padding: 10px;
  background: #fbf8f1;
  box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
}

.story__photo img {
  width: 100%;
  aspect-ratio: 8 / 9;
  object-fit: cover;
}

.story__copy .section__title {
  margin-bottom: 22px;
}

.story__copy p:not(.section__label) {
  color: var(--brown-soft);
}

/* 店主の手書きメモ（付箋風） */
.memo {
  position: relative;
  margin-top: 24px;
  padding: 18px 20px 14px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 30px; /* 罫線の間隔と揃える */
  color: var(--brown) !important;
  background:
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(111, 112, 72, 0.25) 29px 30px) 0 18px / 100% 30px,
    #f8f1da;
  box-shadow: 0 6px 14px rgba(59, 42, 30, 0.12);
  transform: rotate(1deg);
}

.memo__sign {
  display: block;
  margin-top: 4px;
  text-align: right;
  color: var(--olive);
}

/* 工程：番号の丸を点線でつなぐ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed var(--olive-light);
}

.step {
  position: relative;
  text-align: center;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--kinari);
  background: var(--olive);
  /* 手で描いたような、少しいびつな丸 */
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  box-shadow: 0 0 0 6px var(--kinari-deep);
}

.step:nth-child(even) .step__num {
  background: var(--brown);
  border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%;
}

.step__title {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--brown-soft);
  text-align: left;
}

.step__time {
  display: inline-block;
  padding: 2px 12px;
  font-family: var(--font-hand);
  font-size: 0.875rem;
  color: var(--olive);
  border: 1px solid var(--olive-light);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .story__intro {
    grid-template-columns: 1fr;
  }

  .story__photo {
    max-width: 420px;
  }

  /* 縦のタイムラインに切り替え */
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .steps::before {
    top: 10px;
    bottom: 10px;
    left: 29px;
    right: auto;
    border-top: 0;
    border-left: 2px dashed var(--olive-light);
  }

  .step {
    display: grid;
    grid-template-columns: 60px 1fr;
    column-gap: 18px;
    text-align: left;
  }

  .step__num {
    grid-row: 1 / span 3;
    margin: 0;
  }

  .step__time {
    justify-self: start;
  }
}

/* ---------- 定番のパン（クラフトの値札） ---------- */
/* 看板のカンパーニュだけ大きく、残り2つを右に縦積み */
.breads__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.bread:first-child {
  grid-row: span 2;
}

.bread:first-child .bread__img img {
  aspect-ratio: 4 / 4;
}

.bread:not(:first-child) {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
}

.bread:not(:first-child) .bread__img {
  border-radius: 50% 50% 6px 6px / 30% 30% 6px 6px;
}

.bread:not(:first-child) .bread__tag {
  margin: 0 0 0 -16px;
}

.bread__img {
  overflow: hidden;
  border-radius: 50% 50% 6px 6px / 22% 22% 6px 6px; /* パンの山型 */
}

.bread__img img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.bread:hover .bread__img img {
  transform: scale(1.03);
}

/* 紐でぶら下がった値札 */
.bread__tag {
  position: relative;
  margin: -28px 18px 0;
  padding: 26px 22px 18px;
  background: var(--kraft) var(--noise);
  background-size: 180px 180px;
  box-shadow: var(--shadow-paper);
  clip-path: polygon(0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transform: rotate(-1deg);
  transition: translate 0.4s var(--ease-bounce);
}

.bread:nth-child(even) .bread__tag {
  transform: rotate(1.2deg);
}

.bread:hover .bread__tag {
  translate: 0 -3px;
}

.bread__tag::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--kinari);
  box-shadow: inset 0 0 0 1.5px var(--brown-soft);
}

.bread__name {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.bread__text {
  font-size: 0.9rem;
  color: var(--brown-soft);
  line-height: 1.8;
}

.bread__price {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.2rem;
}

.bread__price small {
  font-size: 0.75em;
  font-weight: 400;
  color: var(--muted);
}

@media (max-width: 860px) {
  .breads__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .bread:first-child {
    grid-row: auto;
  }

  .bread:not(:first-child) {
    grid-template-columns: 1fr;
  }

  .bread:not(:first-child) .bread__tag {
    margin: -28px 18px 0;
  }
}

/* ---------- ギャラリー（ポラロイド） ---------- */
.gallery {
  background:
    var(--noise),
    linear-gradient(180deg, transparent, rgba(196, 170, 126, 0.35));
  background-size: 180px 180px, auto;
}

.polaroids {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px) clamp(16px, 3vw, 40px);
  padding: 10px clamp(0px, 3vw, 40px);
}

.polaroid {
  margin: 0;
  padding: 12px 12px 0;
  background: #fdfbf6;
  box-shadow: var(--shadow-paper);
  transform: rotate(var(--r, 0deg));
  transition:
    translate 0.4s var(--ease-bounce),
    box-shadow 0.4s;
}

/* 段違いに散らす */
.polaroid:nth-child(3n + 2) {
  margin-top: 36px;
}

.polaroid:nth-child(3n) {
  margin-top: 12px;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: sepia(0.18) saturate(0.92) contrast(1.02);
}

.polaroid figcaption {
  padding: 10px 4px 14px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  text-align: center;
}

.polaroid:hover {
  z-index: 2;
  translate: 0 -4px;
  box-shadow: 0 18px 36px rgba(59, 42, 30, 0.25);
}

/* 角度はそのまま、少し下から静かに現れる（JSが有効なときだけ） */
.reveal-ready .polaroid[data-drop] {
  opacity: 0;
  translate: 0 20px;
}

.reveal-ready .polaroid[data-drop].is-visible {
  opacity: 1;
  translate: none;
  transition:
    opacity 0.7s ease calc(var(--d, 0) * 0.06s),
    translate 0.7s var(--ease-bounce) calc(var(--d, 0) * 0.06s),
    box-shadow 0.4s;
}

.reveal-ready .polaroid[data-drop].is-visible:hover {
  translate: 0 -4px;
  transition-delay: 0s;
}

@media (max-width: 760px) {
  .polaroids {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
    padding: 0;
  }

  .polaroid:nth-child(n) {
    margin-top: 0;
  }

  .polaroid:nth-child(even) {
    margin-top: 22px;
  }

  .polaroid {
    padding: 8px 8px 0;
  }

  .polaroid figcaption {
    font-size: 0.875rem;
    letter-spacing: 0;
    padding: 6px 2px 10px;
  }
}

/* ---------- マルシェ ---------- */
.marche {
  background: var(--olive);
  color: var(--kinari);
}

.marche::before {
  /* 上端にミシン目のステッチ */
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(243, 235, 219, 0.35);
}

.marche .section__label {
  color: var(--chalk-yellow);
}

.marche__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.marche__copy .section__title {
  margin-bottom: 20px;
}

.marche__memo {
  font-size: 0.9rem;
  opacity: 0.8;
}

.marche__list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* チケット風カード（左右に切り欠き） */
.ticket {
  display: grid;
  grid-template-columns: 88px 1fr;
  color: var(--brown);
  background: var(--kinari) var(--noise);
  background-size: 180px 180px;
  -webkit-mask: radial-gradient(circle 9px at 88px 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at 88px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 9px at 88px 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 9px at 88px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform 0.4s var(--ease-bounce);
}

.ticket:hover {
  transform: translateX(4px);
}

.ticket__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  font-family: var(--font-hand);
  line-height: 1.1;
  border-right: 2px dashed var(--line);
}

.ticket__month {
  font-size: 0.875rem;
  color: var(--olive);
}

.ticket__day {
  font-size: 2.2rem;
  font-weight: 600;
}

.ticket__week {
  font-size: 0.875rem;
  color: var(--crust);
}

.ticket__body {
  padding: 16px 20px;
}

.ticket__name {
  font-size: 1.12rem;
}

.ticket__info {
  margin: 4px 0 8px;
  font-size: 0.9rem;
  color: var(--brown-soft);
}

.ticket__chip {
  display: inline-block;
  padding: 1px 12px;
  font-size: 0.875rem;
  background: rgba(111, 112, 72, 0.15);
  color: var(--olive);
  border-radius: 999px;
}

@media (max-width: 860px) {
  .marche__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .ticket {
    grid-template-columns: 72px 1fr;
    -webkit-mask: radial-gradient(circle 8px at 72px 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle 8px at 72px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 8px at 72px 0, transparent 98%, #000) top / 100% 51% no-repeat,
      radial-gradient(circle 8px at 72px 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
  }

  .ticket__body {
    padding: 14px;
  }
}

/* ---------- アクセス ---------- */
.access__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.access__info .section__title {
  margin-bottom: 24px;
}

.access__list {
  margin: 0 0 18px;
}

.access__row {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.access__row dt {
  font-family: var(--font-hand);
  font-weight: 600;
  color: var(--olive);
}

.access__row dd {
  margin: 0;
}

.access__row a {
  display: inline-block;
  padding: 10px 0;
  margin: -10px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.access__note {
  font-size: 0.9rem;
  color: var(--muted);
}

.access__map {
  padding: 10px;
  background: #fbf8f1;
  box-shadow: var(--shadow-paper);
  transform: rotate(1.2deg);
}

.access__map iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 40vw, 400px);
  border: 0;
  filter: sepia(0.35) saturate(0.85);
}

@media (max-width: 860px) {
  .access__inner {
    grid-template-columns: 1fr;
  }

  .access__map {
    transform: none;
  }
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 36px;
  background: var(--brown);
  color: var(--kraft);
  text-align: center;
}

.footer__logo {
  margin: 0;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.footer__text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer__copy {
  margin: 0;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* ---------- スクロールリビール ----------
   script.js が html に .reveal-ready を付けたときだけ隠す
   （script.js の読み込みに失敗しても中身はそのまま見える） */
.reveal-ready [data-reveal] {
  opacity: 0;
  /* 傾けて置いた要素の角度（transform）を崩さないよう、translate で動かす */
  translate: 0 20px;
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal-ready [data-reveal],
  .reveal-ready .polaroid[data-drop],
  .reveal-ready .board__row {
    opacity: 1 !important;
    translate: none !important;
  }
}
