/* =========================================================
   サンプルHP：スパイスカレーのキッチンカー「こみち」
   温かく明るい雰囲気。差し色はターメリック（ラベル・アイコン・線）と、
   パプリカ（相談ボタンだけ）。メニューの黒板だけ、ページの中で1か所暗くする
   スマホ表示を基準に、広い画面で2列にする
   ========================================================= */
:root {
  color-scheme: light;
  --bg: #FFFBF3;
  --surface: #F6EBD9;       /* 一段浮かせる面 */
  --text: #3A2A1E;          /* #FFFBF3 の上で 13:1 */
  --sub: #7A6656;           /* 補助：#FFFBF3 の上で 5.3:1、#F6EBD9 の上で 4.6:1 */
  --turmeric: #D99A1E;      /* 文字には使わない（明るい背景の上では 2.4:1）。濃い文字を乗せる面・線・アイコンに */
  --paprika: #B5462F;       /* 主要ボタンだけ。#FFFBF3 の文字で 5.3:1 */
  --paprika-hover: #983A26;
  --line: #E6D6BC;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --hand: "Klee One", "Zen Maru Gothic", cursive;
  --gutter: 20px;
  --radius: 16px;
}
@media (min-width: 960px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 48px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
/* 最後の行に1〜2文字だけ残らないように、行の折り返しを整える */
p, li, dd, summary { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.nw { white-space: nowrap; }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3, h4 { font-family: var(--maru); font-weight: 700; letter-spacing: .04em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); line-height: 1.5; word-break: keep-all; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 720px; }
.section { position: relative; padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-surface { background: var(--surface); }
.section p + p { margin-top: 1em; }

/* 小さなラベル：ターメリックの短い線＋濃い文字 */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--maru);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.center .eyebrow { justify-content: center; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: var(--turmeric); }
.section h2 { margin-bottom: 24px; }

.small { color: var(--sub); font-size: .8125rem; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--maru);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn-main { background: var(--paprika); color: var(--bg); }
.btn-main:hover { background: var(--paprika-hover); }
.btn-line { border: 2px solid var(--text); color: var(--text); }
.btn-line:hover { background: rgba(58, 42, 30, .06); }

/* ---------- サンプルであることを示す帯（常に最上部・小さめ） ---------- */
.sample-band {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 5px 16px;
  background: var(--text);
  color: var(--bg);
  font-size: .75rem;
  line-height: 1.6;
  letter-spacing: .04em;
  text-align: center;
}
.sample-band a { margin-left: .8em; white-space: nowrap; text-underline-offset: 3px; }

/* ---------- 1. ヒーロー ---------- */
/* 写真1枚を画面いっぱいに敷き、その上に文字と相談ボタンを置く。写真は動かさない。
   文字の背後は焦げ茶で暗くする（写真のいちばん明るいところでも、生成りの文字が 4.5:1 以上になる濃さ） */
.top {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: max(560px, calc(100svh - var(--band-h, 40px)));
  padding: 96px 0 40px;
  overflow: hidden;
  background: #2A1C12;
  color: var(--bg);
}
.top-photo { position: absolute; inset: 0; z-index: -2; }
.top-photo img { width: 100%; height: 100%; object-fit: cover; }
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(42, 28, 18, .9) 0%, rgba(42, 28, 18, .78) 50%, rgba(42, 28, 18, .25) 74%, rgba(42, 28, 18, 0) 90%);
}
.top-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-shadow: 0 1px 12px rgba(42, 28, 18, .5);
}
.top-kind { display: inline-block; padding: 1px 12px; border-radius: 999px; background: var(--turmeric); color: var(--text); font-size: .8125rem; font-weight: 700; text-shadow: none; }
.top h1 { margin-top: 10px; font-size: clamp(2.5rem, 1.9rem + 3.4vw, 4.5rem); line-height: 1.2; letter-spacing: .08em; }
.top h1 small { display: block; margin-bottom: 4px; font-size: 1rem; letter-spacing: .14em; word-break: keep-all; }
.top-lead { margin-top: 16px; font-family: var(--maru); font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); font-weight: 700; line-height: 1.7; letter-spacing: .04em; word-break: keep-all; }
.top-sub { margin-top: 6px; font-size: .9375rem; word-break: keep-all; }
.top-actions { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin-top: 24px; text-shadow: none; }
.top-actions .btn-main { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6); }
/* 副のボタン：写真の上なので、生成りの枠線と文字にする */
.btn-ghost { border: 2px solid var(--bg); color: var(--bg); background: rgba(42, 28, 18, .25); }
.btn-ghost:hover { background: rgba(255, 251, 243, .12); }
.top :focus-visible { outline-color: var(--bg); }

@media (min-width: 960px) {
  .top { padding: 120px 0 72px; }
  /* PCは左下に文字。左側と下側を暗くする */
  .top::before {
    background:
      linear-gradient(90deg, rgba(42, 28, 18, .85) 0%, rgba(42, 28, 18, .68) 42%, rgba(42, 28, 18, 0) 72%),
      linear-gradient(0deg, rgba(42, 28, 18, .6) 0%, rgba(42, 28, 18, 0) 45%);
  }
  .top-actions { flex-direction: row; max-width: none; }
  .top-actions .btn { min-width: 240px; }
}

/* ---------- 2. スケジュール ---------- */
/* 1日分の行（お休みの行と、タップで開く行の summary）は同じ並び */
.updated { margin: -12px 0 4px; color: var(--sub); font-size: .8125rem; }
.schedule-hint { margin-bottom: 20px; color: var(--sub); font-size: .8125rem; word-break: keep-all; }
.schedule { border-top: 2px solid var(--text); }
.schedule > li { border-bottom: 1px solid var(--line); }
.schedule .off,
.schedule summary {
  display: grid;
  grid-template-columns: 2.5em 1fr 20px;
  column-gap: 12px;
  align-items: center;
  padding: 12px 0;
  line-height: 1.6;
}
.schedule .off { grid-template-columns: 2.5em 1fr; }
.schedule summary { cursor: pointer; list-style: none; border-radius: 8px; }
.schedule summary::-webkit-details-marker { display: none; }
.schedule summary:hover .place { text-decoration: underline; text-underline-offset: 4px; }
/* 開閉の矢印 */
.schedule summary::after {
  content: "";
  grid-column: 3;
  grid-row: 1 / span 2;
  justify-self: center;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sub);
  border-bottom: 2px solid var(--sub);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.schedule details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .schedule summary::after { transition: none; } }
.schedule .day {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.25em;
  height: 2.25em;
  border-radius: 50%;
  background: var(--turmeric);
  font-family: var(--maru);
  font-weight: 700;
}
.schedule .place { font-weight: 700; word-break: keep-all; }
.schedule .time { grid-column: 2; color: var(--sub); font-size: .875rem; font-variant-numeric: tabular-nums; }
.schedule .off .day { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.schedule .off .place { color: var(--sub); font-weight: 400; }
/* タップで開く詳しい情報 */
.spot {
  margin: 0 0 12px calc(2.5em + 12px);
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--surface);
  font-size: .875rem;
  line-height: 1.7;
}
.spot > div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding: 4px 0; }
.spot dt { color: var(--sub); }
.spot dd { word-break: keep-all; }
.spot-map { display: inline-flex; align-items: center; min-height: 44px; margin: -8px 0 8px calc(2.5em + 12px); font-size: .875rem; font-weight: 700; }
@media (max-width: 479px) {
  .spot, .spot-map { margin-left: 0; }
}
@media (min-width: 640px) {
  .schedule .off,
  .schedule summary { grid-template-columns: 2.5em 1fr auto 20px; }
  .schedule .off { grid-template-columns: 2.5em 1fr auto; }
  .schedule .day { grid-row: auto; }
  .schedule .time { grid-column: 3; font-size: 1rem; }
  .schedule summary::after { grid-column: 4; grid-row: 1; }
}
.schedule + .note { margin-top: 16px; color: var(--sub); font-size: .875rem; word-break: keep-all; }

/* ---------- 5. メニュー・料金（カレーは黒板、出店料はカード） ---------- */
.board {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px clamp(20px, 6vw, 48px) 40px;
  border-radius: 10px;
  color: var(--bg);
  font-family: var(--hand);
  font-weight: 600;
  /* 黒を60%重ねる：背景のいちばん明るいところでも文字が 5:1 以上 */
  background:
    linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
    url("/samples/kitchencar/images/menu.webp") center / cover #2A2A2A;
}
.board h3 {
  margin-bottom: 14px;
  font-family: var(--hand);
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-align: center;
}
.board h3::after { content: ""; display: block; width: 48px; height: 2px; margin: 6px auto 0; background: var(--turmeric); }
.board ul + h3 { margin-top: 32px; }
.board li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  font-size: clamp(1rem, .9rem + .8vw, 1.25rem);
  line-height: 1.5;
  white-space: nowrap;
}
/* 品名と価格のあいだの点線 */
.board li::after { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 2px dotted rgba(255, 251, 243, .5); }
.board li span:last-child { order: 2; font-variant-numeric: tabular-nums; }
.board small { font-size: .75rem; }
/* 幅の狭いスマホ（〜374px）でも、品名と価格が1行に収まるように詰める */
@media (max-width: 374px) {
  .board { padding-left: 16px; padding-right: 16px; }
  .board li { gap: 6px; font-size: .9375rem; letter-spacing: 0; }
}
.board-note { margin-top: 12px; color: var(--sub); font-size: .8125rem; text-align: center; }

/* 会社・団体への出店（3枚のカード。スマホは縦に1列、PCは3列） */
.fee { margin-top: 56px; }
.fee .truck { width: 100%; max-width: 760px; aspect-ratio: 16 / 9; height: auto; margin: 0 auto 28px; object-fit: cover; border-radius: var(--radius); }
.fee h3 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); text-align: center; }
.fee-lead { margin-top: 8px; color: var(--sub); text-align: center; word-break: keep-all; }
.plans { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { display: flex; flex-direction: column; padding: 24px 22px; border-top: 4px solid var(--turmeric); border-radius: 12px; background: var(--bg); }
.plan-num { color: var(--sub); font-family: var(--maru); font-weight: 700; letter-spacing: .1em; }
.plan h4 { margin: 2px 0 16px; font-size: 1.1875rem; line-height: 1.5; word-break: keep-all; }
.plan dl { display: flex; flex: 1; flex-direction: column; gap: 14px; }
.plan dt { margin-bottom: 2px; color: var(--sub); font-size: .8125rem; font-weight: 700; }
.plan dd { line-height: 1.8; word-break: keep-all; }
.plan-good dd { font-weight: 700; }
/* 価格はカードの下にそろえる */
.plan-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.plan-price b { font-family: var(--maru); font-size: 1.25rem; }
.plan-price small { display: block; margin-top: 4px; color: var(--sub); font-size: .8125rem; line-height: 1.7; }
.fee-extra { margin-top: 24px; }
.fee-extra > div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; }
.fee-extra dt { color: var(--sub); }
.fee-extra dd { word-break: keep-all; }
.fee .small { margin-top: 8px; word-break: keep-all; }
.cta { margin-top: 36px; }
.cta .btn { min-width: 260px; }

/* ---------- 3. こんな人へ ---------- */
.for .eyebrow { margin-bottom: 28px; font-size: .9375rem; }
.for-list { display: grid; gap: 10px; }
.for-list li {
  font-family: var(--maru);
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.375rem);
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .06em;
  word-break: keep-all;
}
.section .for-note { margin-top: 28px; font-family: var(--maru); font-weight: 500; line-height: 1.9; word-break: keep-all; }

/* ---------- 4. 大切にしていること ---------- */
#value h2 { font-size: clamp(1.625rem, 1.3rem + 1.6vw, 2.5rem); word-break: keep-all; }
.value-head { max-width: 720px; }
.value-head p { word-break: keep-all; }
/* こだわり3つ：上にターメリックの線を引いたカード。スマホは縦、PCは横に3つ */
.value-points { display: grid; gap: 16px; margin-top: 36px; padding: 0; list-style: none; }
.value-points li { padding: 22px 22px 24px; border-top: 4px solid var(--turmeric); border-radius: 12px; background: var(--surface); }
.value-num { display: block; margin-bottom: 6px; color: var(--sub); font-family: var(--maru); font-weight: 700; letter-spacing: .1em; }
.value-points p { line-height: 1.85; word-break: keep-all; }
@media (min-width: 900px) { .value-points { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- 7. プロフィール ---------- */
.why { display: grid; gap: 32px; }
.why img { width: min(100%, 360px); height: auto; justify-self: center; border-radius: var(--radius); }
.why .goal { margin-top: 1.5em; padding: 16px 20px; border-left: 4px solid var(--turmeric); border-radius: 0 10px 10px 0; background: var(--bg); }
.why .sign { margin-top: 20px; color: var(--sub); font-family: var(--maru); font-weight: 700; text-align: right; }
@media (min-width: 960px) {
  .why { grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
  .why img { width: 100%; }
}

/* ---------- 6. 声 ---------- */
.voices { display: grid; gap: 16px; }
/* 声は3件。PCは3列 */
@media (min-width: 900px) { .voices { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.voices li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-top: 4px solid var(--turmeric);
  border-radius: 12px;
  background: var(--surface);
}
.voices blockquote { font-size: .9375rem; line-height: 1.9; }
.voices .who { color: var(--sub); font-size: .8125rem; }
.tag { margin-left: .8em; padding: 1px 8px; border: 1px solid var(--sub); border-radius: 4px; font-size: .75rem; white-space: nowrap; }
.card.history { margin-top: 32px; background: var(--surface); }
/* これまでの出店：PCは2列に並べて、横幅いっぱいに使う */
@media (min-width: 760px) {
  .card.history { padding: 28px 32px; }
  .history .dots { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
}

/* ---------- カード・点の一覧・項目の一覧（料金・出店実績で使う） ---------- */
.card { padding: 24px 22px; border-radius: 12px; background: var(--bg); }
.card h3 { margin-bottom: 12px; font-size: 1.125rem; }
.dots li { word-break: keep-all; position: relative; padding: 6px 0 6px 18px; line-height: 1.7; }
.dots li::before { content: ""; position: absolute; left: 2px; top: 1em; width: 7px; height: 7px; border-radius: 50%; background: var(--turmeric); }
.spec > div { padding: 8px 0; border-bottom: 1px dashed var(--line); line-height: 1.7; }
.spec > div:last-child { border-bottom: 0; }
.spec dt { color: var(--sub); font-size: .8125rem; }
.spec dd { word-break: keep-all; }

/* ---------- 8. 流れ・よくある質問 ---------- */
.flow { display: grid; gap: 10px; margin-bottom: 12px; }
.flow li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.flow li + li::before { content: none; }
.flow span {
  display: grid; place-items: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--turmeric);
  font-family: var(--maru);
}
.flow li:not(:last-child) { position: relative; padding-bottom: 10px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: -8px; width: 2px; background: var(--turmeric); }

.sub { margin: 48px 0 16px; font-size: 1.25rem; }
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 16px 32px 16px 0;
  font-weight: 700;
  line-height: 1.7;
  word-break: keep-all;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; margin-right: .4em; color: var(--paprika); font-family: var(--maru); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--sub);
  border-bottom: 2px solid var(--sub);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 18px; font-size: .9375rem; line-height: 1.9; }

/* ---------- 9. 相談 ---------- */
#contact p { word-break: keep-all; }
.contact-info { display: inline-grid; gap: 4px; margin-top: 20px; text-align: left; }
.contact-info > div { display: grid; grid-template-columns: 5.5em 1fr; gap: 8px; }
.contact-info dt { color: var(--sub); }
.contact-info dd { font-weight: 700; }
.contact-links { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 360px; margin: 28px auto 0; }
.handle { margin-left: 4px; color: var(--sub); font-size: .8125rem; font-weight: 500; }
@media (min-width: 640px) { .contact-links { flex-direction: row; justify-content: center; max-width: none; } }

/* ---------- クレジット ---------- */
.credit { padding: 40px var(--gutter) 48px; color: var(--sub); font-size: .75rem; line-height: 1.9; text-align: center; }
.credit a { color: var(--sub); }
/* ダミーのリンクを押したときのお知らせ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-size: .8125rem;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
