/* =========================================================
   見本サイト(架空の仕出し・お弁当屋) 共通スタイル
   色を変えたいときは、下の「色の設定」だけを書き換えてください。
   ========================================================= */

/* ---------- 色とフォントの設定 ---------- */
:root {
  --main: #8e2b2b;        /* えんじ(ボタン・見出しの印) */
  --main-dark: #5e1b1b;   /* 濃いえんじ(フッター・帯) */
  --gold: #d9a21b;        /* 山吹(小さな差し色) */
  --paper: #fbf8f2;       /* 生成りの背景 */
  --tint: #f3ece0;        /* 一段濃い背景 */
  --line: #e2d8c6;        /* 線 */
  --text: #2a2522;        /* 文字 */
  --text-sub: #6b625a;    /* 補足の文字 */
  --white: #ffffff;

  --font-head: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --max: 1120px;
  --header-h: 76px;
  --radius: 6px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--main); }
h1, h2, h3 { line-height: 1.45; margin: 0 0 0.6em; font-family: var(--font-head); font-weight: 600; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 40px; }
.small { font-size: 14px; color: var(--text-sub); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- 見本の帯 ---------- */
.sample-notice {
  background: #2a2522; color: #fff; font-size: 13px; text-align: center;
  padding: 8px 16px; line-height: 1.6;
}
.sample-notice a { color: #f4d27a; margin-left: 12px; white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  height: var(--header-h);
  background: rgba(251, 248, 242, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(60, 30, 20, 0.08); }
.header-inner { height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.logo img { height: 44px; width: auto; }
.logo-mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; background: var(--main); color: #fff;
  font-family: var(--font-head); font-size: 22px; font-weight: 800; letter-spacing: 0;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: 0.12em; line-height: 1.2; white-space: nowrap; }
.logo-text small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; color: var(--text-sub); }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.global-nav a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.global-nav a:hover, .global-nav a[aria-current="page"] { border-color: var(--main); color: var(--main); }
.header-tel { text-decoration: none; color: var(--main); text-align: right; line-height: 1.2; white-space: nowrap; }
.header-tel small { display: block; font-size: 11px; color: var(--text-sub); }
.header-tel strong { font-size: 22px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; background: var(--main); color: #fff; text-decoration: none;
  font-weight: 700; padding: 14px 32px; border-radius: 999px; border: 2px solid var(--main);
  transition: background 0.2s, color 0.2s; line-height: 1.5; text-align: center; font-family: var(--font-body); font-size: 15px;
}
.btn:hover { background: var(--main-dark); border-color: var(--main-dark); }
.btn-outline { background: transparent; color: var(--main); }
.btn-outline:hover { background: var(--main); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--main); border-color: #fff; }
.btn-light { background: #fff; color: var(--main); border-color: #fff; }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: var(--main-dark); }

/* ---------- 写真の提案の枠 ---------- */
.photo { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo-plan { background: repeating-linear-gradient(135deg, #f1e8d9 0 14px, #ebe0ce 14px 28px); border: 2px dashed #c8b495; }
.photo-label { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 24px; color: #4a3b2c; font-size: 14px; }
.plan-tag { align-self: flex-start; font-size: 11px; letter-spacing: .12em; background: var(--main-dark); color: #fff; padding: 2px 10px; border-radius: 999px; }
.photo-label strong { font-size: 16px; }
.plan-desc { max-width: 30em; line-height: 1.7; }

/* ---------- 見出し ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title.left { text-align: left; margin-bottom: 24px; }
.section-title .en { display: block; font-size: 12px; letter-spacing: 0.24em; color: var(--main); font-weight: 700; text-transform: uppercase; margin-bottom: 4px; }
.section-title h2 { font-size: clamp(24px, 3.2vw, 32px); margin: 0; }
.heading { font-size: 20px; padding-left: 14px; border-left: 4px solid var(--main); margin-bottom: 18px; }

/* ---------- トップの大きな写真 ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero > .photo { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; border: 0; background: #3a2a22; }
.hero > .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,20,15,.78) 0%, rgba(40,20,15,.45) 55%, rgba(40,20,15,.15) 100%); z-index: 2; }
.hero .photo-label { z-index: 3; color: rgba(255,255,255,.85); justify-content: flex-end; align-items: flex-end; text-align: right; padding-bottom: 28px; }
.hero .plan-tag { align-self: flex-end; background: var(--gold); color: var(--main-dark); }
.hero-content { position: relative; z-index: 4; padding-top: 56px; padding-bottom: 120px; }
.hero-copy { font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 5.6vw, 60px); line-height: 1.4; letter-spacing: 0.08em; margin-bottom: 20px; }
.hero-sub { font-family: var(--font-body); font-weight: 500; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.9; max-width: 34em; margin-bottom: 32px; }
.hero-sub strong { color: #f4d27a; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 数字の帯 ---------- */
.key-facts { background: var(--main-dark); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 26px 12px; text-align: center; border-left: 1px solid rgba(255,255,255,.15); line-height: 1.5; }
.facts div:first-child { border-left: 0; }
.facts span { display: block; font-size: 12px; letter-spacing: .14em; color: #f4d27a; }
.facts strong { display: block; font-family: var(--font-head); font-size: 24px; letter-spacing: .06em; }
.facts small { font-size: 12px; opacity: .8; }

/* ---------- こんなときに ---------- */
.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scene { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--main); border-radius: var(--radius); padding: 28px 26px 24px; display: flex; flex-direction: column; }
.scene h3 { font-size: 20px; }
.scene p { flex: 1; font-size: 15px; }
.scene a { font-weight: 700; text-decoration: none; }
.scene a::after { content: " →"; }

/* ---------- お品のカード ---------- */
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.item { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.item .photo { border-radius: 0; border-width: 0 0 2px; }
.item-body { padding: 20px 22px 8px; }
.item-body h3 { font-size: 20px; margin-bottom: 2px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--main); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.price small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--text-sub); margin-left: 4px; }
.item-body p:last-child { font-size: 15px; }

/* ---------- 流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 12px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -15px; top: 42px; border: 8px solid transparent; border-left-color: var(--main); z-index: 1; }
.flow-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--main); color: #fff; font-weight: 700; margin-bottom: 10px; }
.flow h3 { font-size: 17px; }
.flow p { font-size: 14px; color: var(--text-sub); }

/* ---------- 表 ---------- */
.deadline, .spec { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.deadline th, .deadline td, .spec th, .spec td { border-bottom: 1px solid var(--line); padding: 14px 16px; text-align: left; vertical-align: top; }
.deadline thead th { background: var(--main); color: #fff; font-weight: 700; border: 0; }
.deadline tbody th, .spec th { width: 38%; font-weight: 700; background: #fdfbf7; }
.deadline td strong, .spec td strong { color: var(--main); }
.spec { margin-top: 8px; }

/* ---------- 分割 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.news-list time { color: var(--text-sub); font-variant-numeric: tabular-nums; font-size: 14px; }
.news-cat { font-size: 12px; background: var(--tint); color: var(--main); padding: 1px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- 電話の帯 ---------- */
.order-band { background: var(--main); color: #fff; text-align: center; padding: 72px 0; }
.order-band h2 { font-size: clamp(20px, 2.6vw, 26px); }
.tel-big { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 48px); color: inherit; text-decoration: none; letter-spacing: .06em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.order-band p { opacity: .9; font-size: 14px; }

/* ---------- 下層ページの見出し ---------- */
.page-hero { background: var(--main-dark); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero::after { content: "環"; position: absolute; right: 4%; bottom: -60px; font-family: var(--font-head); font-weight: 800; font-size: 220px; line-height: 1; color: rgba(255,255,255,.06); }
.page-hero .en { font-size: 12px; letter-spacing: .24em; color: #f4d27a; font-weight: 700; text-transform: uppercase; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); margin: 4px 0 8px; }
.page-hero p { margin: 0; opacity: .9; }

/* ---------- お品書き ---------- */
.menu-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.photo-stack { display: grid; gap: 20px; }
.price-list { list-style: none; margin: 0 0 16px; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item-name { font-weight: 700; font-size: 17px; }
.item-note { display: block; font-weight: 400; font-size: 13px; color: var(--text-sub); }
.dots { flex: 1; border-bottom: 2px dotted #cdbfa8; transform: translateY(-5px); min-width: 20px; }
.item-price { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--main); white-space: nowrap; font-variant-numeric: tabular-nums; }
.item-price small { font-family: var(--font-body); font-size: 12px; font-weight: 500; margin-left: 2px; }
.notice-box { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 24px 28px 12px; margin-top: 40px; }
.notice-box h2 { font-size: 18px; }

/* ---------- ご注文の方法 ---------- */
.photo.map { aspect-ratio: 1 / 1; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 10px; }
.info-card h3 { font-size: 18px; color: var(--main); }
.info-card small { display: block; color: var(--text-sub); }
.faq { margin-top: 48px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 48px 16px 20px; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--main); font-family: var(--font-head); font-weight: 800; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--main); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 6px 44px; }

/* ---------- たまき屋について ---------- */
.sign { text-align: right; font-family: var(--font-head); font-weight: 600; font-size: 18px; margin-top: 24px; }
.sign small { display: block; font-family: var(--font-body); font-size: 12px; color: var(--text-sub); }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.history .year { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--main); line-height: 1.3; }
.history strong { font-size: 17px; }
.history p { margin: 2px 0 0; font-size: 15px; color: var(--text-sub); }

/* ---------- お問い合わせ ---------- */
.tel-box { background: var(--white); border: 2px solid var(--main); border-radius: var(--radius); text-align: center; padding: 32px 24px 16px; margin-bottom: 56px; }
.tel-box .tel-big { color: var(--main); }
.form-head { font-size: 24px; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; margin-top: 24px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset[disabled] { opacity: .72; }
.form-sample-note { background: #fff4d6; border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; }
.form-row { margin-bottom: 20px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form label, .form .label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.req { font-size: 11px; background: var(--main); color: #fff; padding: 1px 8px; border-radius: 3px; margin-left: 8px; vertical-align: 2px; font-weight: 500; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #cfc3ae; border-radius: 4px; background: #fdfbf7; color: var(--text);
}
.choices { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.choices label, .form-agree label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.form-submit { text-align: center; margin-top: 28px; }
.form-submit .btn { min-width: 280px; cursor: not-allowed; }
.privacy { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.privacy h2 { font-size: 20px; }

/* ---------- フッター ---------- */
.site-footer { background: #2a2522; color: #e9e2d6; padding: 56px 0 96px; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; }
.footer-name .logo-mark { width: 34px; height: 34px; font-size: 17px; }
.site-footer a { color: #f4d27a; }
.site-footer .small { color: #b9ae9f; font-size: 12px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 8px 32px; }
.footer-nav a { color: #e9e2d6; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.copyright { text-align: center; margin: 40px 0 0; font-size: 12px; color: #b9ae9f; }
.sp-bar { display: none; }

/* ---------- ふわっと出す(0.6秒) ---------- */
.fade { transition: opacity .6s ease, transform .6s ease; }
.fade.is-pre { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   タブレット・スマホ
   ========================================================= */
@media (max-width: 1080px) {
  .header-tel { display: none; }
  .global-nav ul { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 44px; height: 44px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 2px; background: var(--text); transition: transform .3s; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .global-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    padding: 24px; transform: translateX(100%); transition: transform .3s; overflow-y: auto;
  }
  .menu-open .global-nav { transform: none; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { display: block; font-size: 17px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .logo-mark { width: 38px; height: 38px; font-size: 19px; }
  .logo-text { font-size: 20px; }

  .section { padding: 64px 0; }
  .split, .menu-split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .scenes, .items, .info-cards { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .hero-content { padding-bottom: 150px; }

  .sp-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 90;
    box-shadow: 0 -2px 10px rgba(0,0,0,.12);
  }
  .sp-bar a { text-align: center; padding: 14px 8px; font-weight: 700; text-decoration: none; background: var(--white); color: var(--main); }
  .sp-bar .sp-tel { background: var(--main); color: #fff; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .logo-text small { display: none; }
  .flow { grid-template-columns: 1fr; }
  .form { padding: 20px 16px; }
  .form-row.two { grid-template-columns: 1fr; }
  .form-submit .btn { min-width: 0; width: 100%; }
  .news-list li { grid-template-columns: auto 1fr; }
  .news-title { grid-column: 1 / -1; }
  .deadline th, .deadline td, .spec th, .spec td { padding: 12px 10px; }
  .history li { grid-template-columns: 64px 1fr; gap: 14px; }
  .history .year { font-size: 20px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .photo-label { padding: 14px 16px; font-size: 13px; }
  .hero .photo-label .plan-desc { display: none; }
  .page-hero::after { font-size: 160px; }
}
