@charset "utf-8";

/* ══════════════════════════════════════════════════════════
   洋菓子店 マルティエ — 店舗サイト（5ページ）
   型：全幅バンドの積層。地色が 黄→黒→クリーム と入れ替わり、
       境目をジグザグに切り欠く。中央対称。
   ══════════════════════════════════════════════════════════ */

/* ── トークン ─────────────────────────────────────────── */
:root {
  /* Meiryo UI 優先。無い環境は OS 標準の日本語 UI 書体へ落とす */
  --ui: "Meiryo UI", Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --butter:  #FFC53D;   /* 帯の黄 */
  --butter-d:#F0A81B;   /* 黄の陰 */
  --ink:     #1F1A17;   /* 帯の黒（茶みのある黒） */
  --ink-2:   #302823;
  --cream:   #FFF6E8;   /* 明るい地 */
  --cream-2: #FBEAD2;
  --berry:   #E4586E;   /* 差し色（苺） */
  --berry-d: #C13A52;   /* 白地に小さな文字を置くとき用（読みやすさ確保） */
  --cocoa:   #6B4429;   /* 焼き色 */
  --white:   #FFFFFF;

  --line:    rgba(31, 26, 23, .14);
  --muted:   rgba(31, 26, 23, .62);

  /* 清潔感は「細い線・やわらかい影・白の余白」で出す。
     太い黒枠とベタ影はチラシの文法なので使わない */
  --edge:    rgba(31, 26, 23, .11);
  --edge-2:  rgba(31, 26, 23, .20);
  --sh:      0 1px 2px rgba(31, 26, 23, .04), 0 6px 18px rgba(31, 26, 23, .06);
  --sh-up:   0 3px 8px rgba(31, 26, 23, .06), 0 18px 38px rgba(31, 26, 23, .11);

  /* 主役は商品なので、書体は癖のないゴシックで統一する。
     和文・欧文とも --ui （Meiryo UI 系）1本で組む。 */

  --wrap: 1120px;
  --pad:  clamp(18px, 4vw, 34px);
  --r:    18px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ── 基本 ─────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.35; text-wrap: balance; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--butter);
  padding: 10px 18px;
  font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

/* ── バンドとジグザグ ─────────────────────────────────── */
.band {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0;
}
.band.white  { background: var(--white);  color: var(--ink); }
.band.cream  { background: var(--cream);  color: var(--ink); }
.band.cream2 { background: var(--cream-2);color: var(--ink); }
.band.butter { background: var(--butter); color: var(--ink); }
.band.ink    { background: var(--ink);    color: var(--cream); }

/* 上のバンドの色（--za）が下のバンド（--zb）へ三角に食い込む */
.zig {
  --zw: 24px;
  --zh: 12px;
  height: var(--zh);
  background:
    conic-gradient(from -45deg at 50% 100%, var(--za) 0 90deg, var(--zb) 0)
    0 0 / var(--zw) var(--zh) repeat-x;
  animation: zigdrift 3.6s linear infinite;
}
@keyframes zigdrift { to { background-position-x: var(--zw); } }

.z-butter-white  { --za: var(--butter);  --zb: var(--white); }
.z-white-butter  { --za: var(--white);   --zb: var(--butter); }
.z-white-cream   { --za: var(--white);   --zb: var(--cream); }
.z-cream-white   { --za: var(--cream);   --zb: var(--white); }
.z-white-cream2  { --za: var(--white);   --zb: var(--cream-2); }
.z-cream2-white  { --za: var(--cream-2); --zb: var(--white); }
.z-white-ink     { --za: var(--white);   --zb: var(--ink); }
.z-ink-white     { --za: var(--ink);     --zb: var(--white); }
.z-butter-ink    { --za: var(--butter);  --zb: var(--ink); }
.z-ink-butter    { --za: var(--ink);     --zb: var(--butter); }
.z-butter-cream  { --za: var(--butter);  --zb: var(--cream); }
.z-cream-butter  { --za: var(--cream);   --zb: var(--butter); }
.z-ink-cream     { --za: var(--ink);     --zb: var(--cream); }
.z-cream-ink     { --za: var(--cream);   --zb: var(--ink); }
.z-cream2-ink    { --za: var(--cream-2); --zb: var(--ink); }
.z-ink-cream2    { --za: var(--ink);     --zb: var(--cream-2); }
.z-cream-cream2  { --za: var(--cream);   --zb: var(--cream-2); }
.z-cream2-cream  { --za: var(--cream-2); --zb: var(--cream); }
.z-butter-cream2 { --za: var(--butter);  --zb: var(--cream-2); }
.z-cream2-butter { --za: var(--cream-2); --zb: var(--butter); }

/* ── 見出し ───────────────────────────────────────────── */
.lab {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.lab::before {
  content: "";
  width: 26px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
}

.ttl {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 46px);
  letter-spacing: .01em;
}
.ttl .y { color: var(--berry); }
.band.ink .ttl .y { color: var(--butter); }
.ttl .b { color: var(--berry); }

.lead {
  font-family: var(--ui);
  font-size: clamp(15px, 1.6vw, 17px);
  margin-top: 16px;
  max-width: 62ch;
}

.center { text-align: center; }
.center .lab { justify-content: center; }
.center .lab::before { display: none; }
.center .lead { margin-inline: auto; }

/* ── ヘッダー ─────────────────────────────────────────── */
.topline {
  background: var(--ink);
  color: var(--butter);
  overflow: hidden;
  border-bottom: 3px solid var(--butter);
}
.tick {
  display: flex;
  width: max-content;
  animation: tick 26s linear infinite;
}
.tick span {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  padding: 7px 26px;
  white-space: nowrap;
}
.tick span::after { content: "✳"; margin-left: 26px; color: var(--berry); }
@keyframes tick { to { transform: translateX(-50%); } }

.hd {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  border-bottom: 1px solid var(--edge);
}
.hd .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
}
.logo svg { width: 40px; height: 40px; }
.logo b {
  font-family: var(--ui);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.15;
}
.logo i {
  display: block;
  font-family: var(--ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  font-style: normal;
  color: var(--muted);
}

.nav { margin-left: auto; display: flex; gap: 2px; }
.nav button {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav button:hover { background: rgba(31, 26, 23, .07); }
.nav button[aria-current="page"] { background: var(--ink); color: var(--butter); }

.call {
  flex: none;
  background: var(--berry);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: var(--sh);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.call:hover { transform: translateY(-2px); box-shadow: var(--sh-up); }

.burger { display: none; font-family: var(--ui); }

/* ── ページ切替 ───────────────────────────────────────── */
.page { animation: pagein .45s var(--ease) both; }
@keyframes pagein {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ── ヒーロー ─────────────────────────────────────────── */
.hero {
  background: var(--butter);
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px) 0 clamp(40px, 6vw, 68px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.5) 0 12%, transparent 12.5%),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,.4) 0 9%, transparent 9.5%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.hcopy h1 {
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(30px, 6.2vw, 60px);
  line-height: 1.22;
  letter-spacing: .005em;
}
.hcopy h1 em {
  font-style: normal;
  background: var(--ink);
  color: var(--butter);
  padding: 0 .18em;
  border-radius: 6px;
  display: inline-block;
}
.hcopy .sub {
  font-family: var(--ui);
  font-size: clamp(14px, 1.7vw, 17px);
  margin-top: 18px;
  max-width: 34ch;
}
.hbtns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.btn {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 14px 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.btn i { font-style: normal; transition: transform .22s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-dark  { background: var(--ink);   color: var(--butter); box-shadow: var(--sh); }
.btn-berry { background: var(--berry); color: var(--white);  box-shadow: var(--sh); }
.btn-light { background: var(--white); color: var(--ink);    box-shadow: var(--sh); border: 1px solid var(--edge); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-up); }

.hart { position: relative; }
.hart .dish {
  /* viewBox だけの SVG は固有幅を持たない。幅を明示しないと、
     margin-inline:auto を効かせた狭い画面でグリッド項目ごと 0 に潰れる */
  width: 100%;
  height: auto;
  animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 22px 26px rgba(31, 26, 23, .28));
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-16px) rotate(1.2deg); }
}

.badge {
  position: absolute;
  right: -6px;
  top: -14px;
  width: clamp(96px, 15vw, 148px);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.opentag {
  position: absolute;
  left: -8px;
  bottom: 6px;
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 10px 18px;
  transform: rotate(-3deg);
  box-shadow: var(--sh);
}
.opentag b {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--berry);
}
.opentag time {
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(15px, 2.2vw, 21px);
}

/* ── 二択（どっち派？） ───────────────────────────────── */
.vs { position: relative; }
.vs .grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 2.4vw, 26px);
  align-items: stretch;
  margin-top: 34px;
}
.vsmid {
  align-self: center;
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(22px, 4vw, 40px);
  color: var(--berry);
}
.band.ink .vsmid { color: var(--butter); }

.pick {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border: 3px solid transparent;
  border-radius: var(--r);
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.pick.a { background: #FFF3D6; box-shadow: var(--sh); border-color: var(--edge); }
.pick.b { background: #FDEFF1; box-shadow: var(--sh); border-color: var(--edge); }
.pick:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--sh-up); }
.pick.b:hover { transform: translateY(-6px) rotate(1deg); }
.pick[aria-pressed="true"] { border-color: var(--berry); }

.pick .k {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(19px, 3.2vw, 30px);
  line-height: 1.35;
}
.pick .d { font-size: 13.5px; line-height: 1.8; }
.pick .ic { width: 100%; max-width: 190px; margin-inline: auto; }

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 26, 23, .16);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--berry);
  border-radius: 999px;
  transition: width 1s var(--ease);
}
.pct {
  display: flex;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.voted .pick { cursor: default; }
.vsnote { margin-top: 20px; font-size: 13px; color: var(--muted); }
.band.ink .vsnote { color: rgba(255, 246, 232, .66); }

/* ── 商品グリッド ─────────────────────────────────────── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 26px 0 8px;
}
.tabs button {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--edge-2);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.tabs button:hover { transform: translateY(-2px); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--butter); }

.items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: 26px;
}

.item {
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
  display: flex;
  flex-direction: column;
}
.item:hover { transform: translateY(-6px); box-shadow: var(--sh-up); }
.item.gone { display: none; }

.item .ph {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
}
.item .ph svg { width: 78%; transition: transform .4s var(--ease); }
.item:hover .ph svg { transform: scale(1.07) rotate(-2deg); }

.tagn {
  position: absolute;
  left: 8px;
  top: 8px;
  background: var(--berry);
  color: var(--white);
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 3px 10px;
  border-radius: 999px;
}
.tagn.season { background: var(--cocoa); }
.tagn.gift   { background: var(--ink); color: var(--butter); }

/* 売れ筋の順位。1〜3位だけ色を変える */
.rank {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--edge);
  box-shadow: var(--sh);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rank.r1 { background: var(--butter); }
.rank.r2 { background: var(--cream-2); }
.rank.r3 { background: var(--cocoa); color: var(--cream); }

/* 季節限定の3枚。黒地に大きく並べる */
.season3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.4vw, 26px);
  margin-top: 32px;
}
.season3 .item .ph { aspect-ratio: 5 / 4; }
.season3 .item h3 { font-size: 19px; }
.season3 .when {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--berry-d);
  border: 1px solid var(--berry-d);
  border-radius: 999px;
  padding: 3px 12px;
  align-self: flex-start;
}

.item .tx { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.item h3 { font-family: var(--ui); font-size: 16px; font-weight: 700; }
.item .dd { font-size: 12.5px; line-height: 1.75; color: var(--muted); flex: 1; }
.item .pr {
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.item .pr small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.item .alg { font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 7px; }

/* ── 3枚並びのカード ──────────────────────────────────── */
.trio3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: 32px;
}
.c3 {
  background: var(--white);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--edge);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease);
}
.c3:hover { transform: translateY(-6px); box-shadow: var(--sh-up); }
.c3 .ic { width: 62px; }
.c3 h3 { font-family: var(--ui); font-size: 18px; font-weight: 700; }
.c3 p  { font-size: 13.5px; line-height: 1.85; color: var(--muted); }

/* ── 工程ステップ ─────────────────────────────────────── */
/* 番号の列を縦のレールが貫き、読み進めた分だけ黄色く伸びる */
.steps { margin-top: 34px; display: grid; gap: 0; position: relative; --rail: 39px; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: var(--rail);
  top: 14px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
}
.steps::before { bottom: 14px; background: rgba(255, 246, 232, .16); }
.steps::after {
  height: var(--prog, 0px);
  max-height: calc(100% - 28px);
  background: var(--butter);
  box-shadow: 0 0 14px rgba(255, 197, 61, .55);
  transition: height .2s linear;
}

.st {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: clamp(14px, 2.5vw, 26px);
  padding: 22px 0;
  border-bottom: 2px dashed rgba(255, 246, 232, .14);
  align-items: start;
}
.st:last-child { border-bottom: 0; }
.st .num {
  position: relative;
  z-index: 1;
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1;
  color: rgba(255, 246, 232, .45);
  text-align: center;
  background: var(--ink);          /* レールを番号の裏で断つ */
  padding: 7px 0;
  transition: color .45s var(--ease), transform .45s var(--ease);
}
.st.lit .num { color: var(--butter); transform: scale(1.07); }
.st .time { transition: background .45s var(--ease), color .45s var(--ease); }
.st.lit .time { background: var(--butter); color: var(--ink); }
.st h3 { font-family: var(--ui); font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; }
/* 暗い地の上では --muted（暗い墨の半透明）は地色と同化して読めなくなる */
.st p  { font-size: 14px; color: rgba(255, 246, 232, .76); margin-top: 7px; }
.st .time {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  background: none;
  color: rgba(255, 246, 232, .5);
  border: 1px solid rgba(255, 246, 232, .24);
  padding: 2px 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 9px;
}

/* ── 数字 ─────────────────────────────────────────────── */
.nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  margin-top: 34px;
  background: var(--edge);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.nums div {
  background: var(--cream);
  padding: 22px 16px;
  text-align: center;
  transition: background .4s var(--ease);
}
/* 数え上げの間だけ色を変え、終わったところで一度だけ弾ませる */
.nums div.counting { background: var(--cream-2); }
.nums div.counting b { color: var(--berry); }
.nums div.done b { animation: numpop .55s var(--ease) both; }
@keyframes numpop {
  0%   { transform: scale(1.16); }
  55%  { transform: scale(.96); }
  100% { transform: none; }
}
.nums b {
  display: block;
  font-family: var(--ui);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.1;
  transition: color .4s var(--ease);
  font-variant-numeric: tabular-nums;
}
.nums b small { font-size: .45em; margin-left: 2px; }
/* 数字を <span> で包むタイル（「3年」）があるので、
   ラベルだけを狙う。子セレクタにしないと数字まで小さくなる */
.nums > div > span { display: block; font-size: 12.5px; color: var(--muted); }
.nums b span { font: inherit; color: inherit; }

/* ── 店舗情報 ─────────────────────────────────────────── */
.shop2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 3vw, 34px);
  margin-top: 32px;
  align-items: start;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
}
.tbl th, .tbl td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
}
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl th { width: 34%; background: var(--cream-2); font-weight: 700; }
.tbl td.c { text-align: center; font-variant-numeric: tabular-nums; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td {
  border: 1px solid var(--edge);
  padding: 10px 4px;
  text-align: center;
  font-size: 13px;
  font-family: var(--ui);
  font-weight: 700;
}
.hours thead th { background: var(--ink); color: var(--butter); }
.hours td.off { background: var(--cream-2); color: var(--muted); }
.hours td.on  { background: var(--white); }
.hours td.today { background: var(--butter); }

.mapbox {
  border: 3px solid var(--ink);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: 0 6px 0 var(--ink);
}
.mapnote { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Google マップの埋め込み。iframe は高さを持たないので枠側で比率を決める */
.mapembed {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--sh);
}
.mapembed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 700px) { .mapembed { aspect-ratio: 4 / 3; } }

/* ── お知らせ ─────────────────────────────────────────── */
.news { margin-top: 28px; display: grid; gap: 12px; }
.na {
  display: grid;
  grid-template-columns: 96px 96px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 15px 18px;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: var(--sh);
  text-align: left;
  font: inherit;
  cursor: pointer;
  width: 100%;
}
.na:hover { transform: translateX(4px); box-shadow: var(--sh-up); border-color: var(--berry); }
.na.gone { display: none; }
.na time {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.na .cat {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 3px 0;
  border-radius: 999px;
  background: var(--butter);
}
.na .cat.fair { background: var(--berry); color: var(--white); }
.na .cat.shop { background: var(--ink);   color: var(--butter); }
.na h3 { font-family: var(--ui); font-size: 15px; font-weight: 700; }
.na .bd { display: none; grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 11px; }
.na[aria-expanded="true"] .bd { display: block; }
.na .new {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  color: var(--white);
  background: var(--berry);
  border-radius: 999px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* 管理画面のモック */
.cms {
  margin-top: 34px;
  border: 1px solid var(--edge);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  background: var(--white);
}
.cms .bar2 {
  background: var(--ink);
  color: var(--cream);
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.cms .bar2 em {
  font-style: normal;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--berry);
}
.cms .in { padding: clamp(16px, 2.6vw, 24px); display: grid; gap: 14px; }
.cms label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 700; }
.cms .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cms .hint { font-size: 12px; color: var(--muted); }

/* ── SNS ──────────────────────────────────────────────── */
.sns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 28px;
}
.sq {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: var(--cream-2);
  border: 1px solid var(--edge);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease);
}
.sq:hover { transform: scale(1.05) rotate(-1.5deg); z-index: 2; box-shadow: var(--sh-up); }
.sq svg { width: 100%; height: 100%; }
.sq figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(31, 26, 23, .82);
  color: var(--cream);
  font-size: 10.5px;
  padding: 5px 8px;
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.sq:hover figcaption { opacity: 1; }

.snsbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.snsb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 8px 18px;
  transition: transform .18s var(--ease);
}
.snsb:hover { transform: translateY(-3px); }
.snsb svg { width: 17px; height: 17px; }

/* ── フォーム ─────────────────────────────────────────── */
/* 見出しが中央なので、入力の塊も中央に置く。
   ただし項目名と入力欄そのものは左揃えのまま（そのほうが書きやすい） */
.form { margin: 30px auto 0; display: grid; gap: 16px; max-width: 720px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 7px; font-size: 13.5px; font-weight: 700; }
.form .send { justify-self: center; margin-top: 4px; }
.req {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  background: var(--berry);
  color: var(--white);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 7px;
  vertical-align: 1px;
}
.opt {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 800;
  background: var(--line);
  color: var(--ink);
  border-radius: 3px;
  padding: 1px 6px;
  margin-left: 7px;
  vertical-align: 1px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--edge-2);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: rgba(31, 26, 23, .38); }
.bad input, .bad select, .bad textarea { border-color: var(--berry); background: #FFF1F3; }

.err { font-size: 12px; font-weight: 700; color: #C0293F; display: none; }
.bad .err { display: block; }

.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 400; }
.agree input { width: 20px; height: 20px; flex: none; margin-top: 3px; accent-color: var(--berry); }

.sent {
  display: none;
  background: var(--ink);
  color: var(--butter);
  border-radius: var(--r);
  padding: 20px 22px;
  font-weight: 700;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.sent.on { display: block; animation: pagein .4s var(--ease) both; }
.formnote { font-size: 12.5px; color: rgba(31, 26, 23, .78); text-align: center; }

/* ── 実装 ─────────────────────────────────────────────── */
.tech { background: var(--ink); color: var(--cream); }
.tech .ttl { color: var(--butter); }
.tlist {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 2px;
  background: rgba(255, 246, 232, .16);
  border-radius: var(--r);
  overflow: hidden;
}
.tlist div { background: var(--ink); padding: 18px 20px; }
.tlist h3 {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--butter);
  margin-bottom: 7px;
}
.tlist p { font-size: 13.5px; line-height: 1.8; color: rgba(255, 246, 232, .78); }

.cms-note {
  margin-top: 26px;
  border: 2px dashed rgba(255, 246, 232, .34);
  border-radius: var(--r);
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.9;
  color: rgba(255, 246, 232, .82);
}
.cms-note b { color: var(--butter); }
code { font-family: var(--ui); }
.cms-note code {
  font-family: var(--ui);
  font-size: 12.5px;
  background: rgba(255, 246, 232, .12);
  padding: 1px 7px;
  border-radius: 5px;
}

/* ── フッター ─────────────────────────────────────────── */
/* 実装セクションをフッターの中（「このページについて」の直上）へ入れたため、
   フッター自体は左右の余白を持たない。上下は各ブロック側で取る */
footer {
  background: var(--butter);
  color: var(--ink);
  /* 注釈（実装・このページについて）を削除しても下余白が残るようにしておく */
  padding: 0 0 clamp(32px, 5vw, 52px);
}
/* お問い合わせ（黄）から地続きになるので、細い罫で区切る */
footer .fgrid {
  padding-top: clamp(30px, 5vw, 46px);
  border-top: 1px solid rgba(31, 26, 23, .22);
}
.fgrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(18px, 3vw, 36px);
}
.fgrid h4 { font-family: var(--ui); font-size: 12px; font-weight: 800; letter-spacing: .14em; margin-bottom: 12px; }
.fgrid li { font-size: 13.5px; padding: 3px 0; }
.fgrid button {
  font: inherit; font-size: 13.5px; background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.fnote {
  margin-top: 0;
  padding-top: clamp(26px, 4vw, 40px);
  font-size: 12px;
  line-height: 1.9;
}
.fnote b { display: block; margin-bottom: 4px; }

.pagetop {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--butter);
  border: 3px solid var(--butter);
  display: grid;
  place-items: center;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.pagetop.on { opacity: 1; pointer-events: auto; transform: none; }

/* ── リビール ─────────────────────────────────────────── */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ── レスポンシブ ─────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hart { order: -1; width: 100%; max-width: 420px; margin-inline: auto; }

  /* 狭い画面では絶対配置をやめ、イラストの下に流し込む。
     ヒーローは overflow:hidden なので、はみ出させると切れる */
  .opentag {
    position: static;
    width: max-content;
    margin: 16px auto 0;
    transform: rotate(-2deg);
    box-shadow: var(--sh);
  }
  .badge { width: clamp(84px, 22vw, 118px); right: 2px; top: 2px; }
  .shop2, .form .row2, .cms .row2 { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .vs .grid { grid-template-columns: 1fr; }
  .vsmid { justify-self: center; }
}

@media (max-width: 760px) {
  .burger {
    display: grid;
    font-family: var(--ui);
    place-items: center;
    margin-left: auto;
    width: 44px; height: 44px;
    background: var(--ink);
    color: var(--butter);
    border: 0;
    border-radius: 11px;
    font-size: 19px;
    cursor: pointer;
  }
  .nav {
    position: fixed;
    inset: 68px 0 auto;
    background: var(--cream);
    border-bottom: 1px solid var(--edge);
    flex-direction: column;
    gap: 0;
    padding: 10px var(--pad) 18px;
    margin: 0;
    display: none;
  }
  .nav.open { display: flex; }
  .nav button { text-align: left; border-radius: 11px; padding: 13px 15px; }
  .call { display: none; }
  .na { grid-template-columns: 84px 1fr; }
  .na time { grid-column: 1; }
  .na .cat { grid-column: 2; justify-self: start; padding-inline: 12px; }
  .na h3 { grid-column: 1 / -1; }
  .st { grid-template-columns: 54px 1fr; }
  .steps { --rail: 27px; }
  .fgrid { grid-template-columns: 1fr; }
  .season3 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rise { opacity: 1; transform: none; }
  .hart .dish, .badge, .tick, .zig { animation: none; }
  /* 工程のレールは伸ばさず、最初から全部引いておく */
  .steps::after { height: calc(100% - 28px) !important; transition: none; box-shadow: none; }
  .st .num { color: var(--butter); transform: none; }
  .nums div.done b { animation: none; }
}
