/* 見本：1ページの店舗サイト（架空の喫茶店「喫茶 つむぎ坂」）
   昭和の喫茶店の雰囲気（こげ茶・からし色・クリーム色）。スマホの幅を先に作り、広い画面で横に並べる。 */
:root {
  --brown: #4a2f22;
  --brown-dark: #2f1d14;
  --mustard: #d9a441;
  --mustard-soft: #f3dfae;
  --cream: #f6ecd9;
  --paper: #fffaf0;
  --red: #b3402e;
  --ink: #2a1d16;
  --sub: #6e5a48;
  --line: #d8c7a8;
  --maru: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --bar-h: 34px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--gothic); color: var(--ink); background: var(--cream); line-height: 1.85; font-size: 15px; padding-bottom: 62px; position: relative; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, .logo, .price, .foot-name, .time, .badge { font-family: var(--maru); font-weight: 700; }
.pc { display: none; }

/* ---------- 「見本」の帯（いつも表示） ---------- */
.sample-bar { position: sticky; top: 0; z-index: 30; min-height: var(--bar-h); padding: 6px 12px; background: var(--ink); color: #fff; font-size: 11.5px; line-height: 1.6; text-align: center; }
.sample-bar b { color: #f6d58b; }

/* ---------- 店名と案内 ---------- */
.head { display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: var(--paper); border-bottom: 3px double var(--brown); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 20px; letter-spacing: .08em; line-height: 1.25; color: var(--brown); }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font-size: 9.5px; letter-spacing: .5em; color: var(--red); font-family: var(--gothic); }
.head nav { display: none; }

/* ---------- 冒頭（写真を敷いて文を重ねる） ---------- */
.hero { position: relative; background: var(--brown-dark); }
.hero img { width: 100%; height: 440px; object-fit: cover; object-position: 60% 50%; opacity: .62; }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 22px 36px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); background: linear-gradient(0deg, rgba(24, 14, 9, .82) 0%, rgba(24, 14, 9, .5) 38%, rgba(24, 14, 9, 0) 72%); }
.since { align-self: flex-start; background: var(--mustard); color: var(--brown-dark); text-shadow: none; font-weight: 700; font-size: 12px; padding: 3px 12px; border-radius: 14px; letter-spacing: .06em; }
h1 { font-size: 36px; line-height: 1.45; letter-spacing: .08em; margin: 14px 0 10px; }
.lead { font-size: 14.5px; }
.lead br { display: none; }
.lead span { display: inline-block; }

/* ---------- 営業のご案内の帯 ---------- */
.eigyo { background: var(--mustard); padding: 0; }
.eigyo dl { display: grid; grid-template-columns: 1fr 1fr; max-width: 1080px; margin: 0 auto; }
.eigyo dl > div { padding: 16px 14px 14px; text-align: center; border-bottom: 1px solid rgba(74, 47, 34, .25); }
.eigyo dl > div:nth-child(odd) { border-right: 1px solid rgba(74, 47, 34, .25); }
.eigyo dl > div:nth-last-child(-n+2) { border-bottom: 0; }
.eigyo dt { font-size: 11.5px; letter-spacing: .2em; color: var(--brown); font-weight: 700; }
.eigyo dd { font-family: var(--maru); font-weight: 700; font-size: 21px; color: var(--brown-dark); line-height: 1.4; }
.eigyo dd span { font-size: 14px; margin: 0 2px; }
.eigyo dd small { display: block; font-family: var(--gothic); font-weight: 400; font-size: 11.5px; color: var(--brown); }

/* ---------- 各欄の共通 ---------- */
section { padding: 48px 20px; }
section.hero, section.eigyo { padding: 0; }
.sec-head { text-align: center; margin-bottom: 26px; }
.time { display: inline-block; color: var(--red); font-size: 13px; letter-spacing: .18em; }
h2 { font-size: 27px; letter-spacing: .14em; color: var(--brown); line-height: 1.5; }
.sec-head h2::after { content: ""; display: block; width: 44px; height: 4px; margin: 8px auto 0; background: repeating-linear-gradient(90deg, var(--mustard) 0 8px, transparent 8px 12px); }
.sec-note { margin-top: 10px; font-size: 13.5px; color: var(--sub); }
.price { color: var(--red); font-size: 17px; letter-spacing: .03em; }

/* ---------- モーニング ---------- */
.feature { background: var(--paper); border: 2px solid var(--brown); border-radius: 10px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.feature-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature-text { padding: 20px 20px 22px; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 12.5px; letter-spacing: .1em; padding: 3px 14px; border-radius: 3px; transform: rotate(-2deg); }
.feature h3 { font-size: 23px; color: var(--brown); letter-spacing: .06em; margin: 8px 0 4px; }
.feature .price { font-size: 26px; margin-top: 6px; }
.sets { display: grid; gap: 14px; max-width: 1000px; margin: 16px auto 0; }
.sets li { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; }
.sets h3 { font-size: 17px; color: var(--brown); letter-spacing: .04em; }
.sets p { font-size: 13.5px; color: var(--sub); }
.sets .price { font-size: 16px; color: var(--red); margin-top: 6px; }
.sets .with-photo { padding-top: 0; overflow: hidden; }
.sets .with-photo img { width: calc(100% + 36px); max-width: none; margin: 0 -18px 14px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- ランチ ---------- */
.lunch { background: var(--brown); color: var(--cream); }
.lunch h2 { color: #fff; }
.lunch .time { color: var(--mustard); }
.lunch .sec-note { color: #e3d3bb; }
.dishes { display: grid; gap: 16px; max-width: 1000px; margin: 0 auto; }
.dishes li { background: var(--paper); color: var(--ink); border-radius: 10px; overflow: hidden; }
.dishes img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.dishes div { padding: 16px 18px 18px; }
.dishes h3 { font-size: 19px; color: var(--brown); letter-spacing: .04em; }
.dishes p { font-size: 13.5px; color: var(--sub); }
.dishes .price { font-size: 20px; color: var(--red); margin-top: 4px; }
.more { max-width: 1000px; margin: 18px auto 0; }
.more li, .menu-box li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.more i, .menu-box i { flex: 1; border-bottom: 2px dotted currentColor; opacity: .35; transform: translateY(-4px); }
.more b, .menu-box b { font-family: var(--maru); white-space: nowrap; }
.more li { border-bottom: 1px solid rgba(246, 236, 217, .2); font-size: 16px; }
.more b { color: var(--mustard); }

/* ---------- お品書き ---------- */
.menu { background: var(--paper); }
.menu-grid { display: grid; gap: 18px; max-width: 1000px; margin: 0 auto; }
.menu-box { border: 2px solid var(--brown); border-radius: 10px; padding: 0 18px 12px; background: var(--cream); }
.menu-box h3 { display: inline-block; background: var(--brown); color: var(--cream); font-size: 14.500px; letter-spacing: .12em; padding: 3px 16px; border-radius: 0 0 8px 8px; margin-bottom: 6px; }
.menu-box li { font-size: 15px; }
.menu-box b { color: var(--red); }

/* ---------- お店の紹介 ---------- */
.about-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 2px solid var(--brown); }
.about-text { margin-top: 24px; }
.about-text h2 { margin-bottom: 14px; }
.about-text p + p { margin-top: 10px; }

/* ---------- お店のこと ---------- */
.mise { background: var(--mustard-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1000px; margin: 0 auto; }
.facts li { background: var(--paper); border-radius: 10px; padding: 14px 14px 12px; }
.facts b { display: block; font-size: 11.5px; letter-spacing: .16em; color: var(--red); }
.facts span { font-family: var(--maru); font-weight: 700; font-size: 16px; color: var(--brown); line-height: 1.5; }
.facts small { display: block; font-family: var(--gothic); font-weight: 400; font-size: 11.5px; color: var(--sub); line-height: 1.6; margin-top: 2px; }

/* ---------- 道順 ---------- */
.michi-grid { display: grid; gap: 22px; max-width: 1000px; margin: 0 auto; }
.map svg { width: 100%; height: auto; display: block; border-radius: 10px; border: 2px solid var(--brown); font-family: var(--gothic); }
.map figcaption { font-size: 12px; color: var(--sub); text-align: right; margin-top: 4px; }
.steps li { position: relative; padding: 12px 0 12px 48px; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.steps span { position: absolute; left: 0; top: 11px; width: 34px; height: 34px; border-radius: 50%; background: var(--brown); color: var(--cream); display: grid; place-items: center; font-family: var(--maru); font-weight: 700; font-size: 14px; }
.steps li:last-child span { background: var(--red); font-size: 13px; }
.steps small { display: block; color: var(--sub); font-size: 12px; }

/* ---------- 末尾 ---------- */
.foot { background: var(--brown-dark); color: #e3d3bb; text-align: center; padding: 34px 20px 38px; font-size: 13px; }
.foot-name { color: #fff; font-size: 21px; letter-spacing: .12em; }
.foot-note { font-size: 11.5px; margin-top: 12px; color: #b8a78f; line-height: 1.8; }

/* ---------- スマホの下の固定ボタン（3つ） ---------- */
.sp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--brown); box-shadow: 0 -4px 14px rgba(42, 29, 22, .22); }
.sp-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; }
.sp-bar a + a { border-left: 1px solid rgba(246, 236, 217, .22); }
.sp-bar svg { width: 21px; height: 21px; fill: none; stroke: var(--mustard); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- 「見つかりません」のページ（404.html） ---------- */
body.notfound { padding-bottom: 0; min-height: 100vh; display: flex; flex-direction: column; }
.nf { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 64px 22px; }
.nf h1 { font-size: 25px; color: var(--brown); margin: 6px 0 14px; }
.nf p { color: var(--sub); }
.btn { display: inline-block; margin-top: 22px; padding: 13px 28px; border-radius: 8px; background: var(--brown); color: var(--cream); text-decoration: none; font-weight: 700; letter-spacing: .08em; }

/* ---------- 広い画面（タブレット〜） ---------- */
@media (min-width: 768px) {
  body { font-size: 16px; padding-bottom: 0; }
  .pc { display: inline; }
  .sp-bar { display: none; }
  .sample-bar { font-size: 12.5px; }
  .head { position: sticky; top: var(--bar-h); z-index: 25; padding: 10px 32px; }
  .head nav { display: flex; gap: 6px; font-size: 14px; font-weight: 700; }
  .head nav a { text-decoration: none; padding: 6px 14px; border-radius: 18px; color: var(--brown); }
  .head nav a:hover { background: var(--mustard); }
  .hero img { height: 560px; opacity: .6; }
  .hero-text { justify-content: center; padding: 0 max(40px, calc((100vw - 1000px) / 2)); background: linear-gradient(90deg, rgba(24, 14, 9, .84) 0%, rgba(24, 14, 9, .66) 38%, rgba(24, 14, 9, 0) 72%); }
  .since { font-size: 13px; }
  h1 { font-size: 58px; margin: 18px 0 14px; }
  .lead { font-size: 17px; }
  .lead br { display: inline; }
  .eigyo dl { grid-template-columns: repeat(4, 1fr); }
  .eigyo dl > div { border-bottom: 0; border-right: 1px solid rgba(74, 47, 34, .25); padding: 22px 14px 20px; }
  .eigyo dl > div:last-child { border-right: 0; }
  .eigyo dd { font-size: 25px; }
  section { padding: 80px 40px; }
  .sec-head { margin-bottom: 40px; }
  h2 { font-size: 34px; }
  .feature { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; }
  .feature-photo img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .feature-text { padding: 32px 36px; }
  .feature h3 { font-size: 28px; }
  .feature .price { font-size: 32px; }
  /* 写真のない2枚を左に重ね、写真のある1枚を右に置く（3枚の高さをそろえて、空白を作らない） */
  .sets { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 18px; margin-top: 20px; align-items: stretch; }
  .sets li:not(.with-photo) { display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; }
  .sets li:not(.with-photo) h3 { font-size: 20px; }
  .sets li:not(.with-photo) p { font-size: 14.5px; }
  .sets .with-photo { grid-column: 2; grid-row: 1 / span 2; }
  .sets .with-photo img { aspect-ratio: 16 / 8; }
  .sets .with-photo h3 { font-size: 20px; }
  .dishes { grid-template-columns: 1fr 1fr; gap: 24px; }
  .more { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-left: max(40px, calc((100vw - 1000px) / 2)); padding-right: max(40px, calc((100vw - 1000px) / 2)); }
  .about-text { margin-top: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .facts li { padding: 18px 20px 16px; }
  .facts span { font-size: 18px; }
  .michi-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
  .nf h1 { font-size: 32px; }
}

/* ---------- 発注者に見せる用の画像（?preview）：「見本」の透かし ---------- */
body.preview::after {
  content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='520'%3E%3Ctext x='320' y='270' text-anchor='middle' font-size='64' font-weight='bold' font-family='sans-serif' fill='%23b3402e' fill-opacity='0.09' transform='rotate(-24 320 260)'%3E見本%3C/text%3E%3C/svg%3E");
}
/* ページ全体を1枚の画像にするとき（?full）は、下の固定ボタンを末尾に置く */
body.full .sp-bar { position: static; }
body.full { padding-bottom: 0; }
