:root {
  --bg: #f6f4ef;
  --paper: #ffffff;
  --ink: #5a5048;
  --muted: #8a7f75;
  --blue: #b08a2e;
  --blue-soft: #f1eadb;
  --line: #e6e0d4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.9;
  letter-spacing: 0.04em;
}

a { color: var(--blue); }
img { max-width: 100%; display: block; }

/* ヘッダー */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.logo {
  font-family: "Shippori Mincho", serif;
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.12em;
}
.logo span { color: var(--blue); }
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
}
nav a:hover, nav a[aria-current="page"] { background: var(--blue-soft); color: var(--blue); }

/* ヒーロー */
.hero {
  text-align: center;
  padding: 88px 16px 72px;
  background: linear-gradient(180deg, var(--blue-soft), var(--bg));
}
.hero .feather { font-size: 2.4rem; color: var(--blue); }
.hero h1 {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin: 12px 0 16px;
  line-height: 1.6;
}
.hero p { color: var(--muted); }

/* 本文 */
main { max-width: 960px; margin: 0 auto; padding: 48px 16px 80px; }
.page-title {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 8px;
}
.page-sub { text-align: center; color: var(--muted); font-size: 0.85rem; margin-bottom: 40px; letter-spacing: 0.2em; }
section + section { margin-top: 56px; }
h2 {
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--blue);
}
p + p { margin-top: 1em; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card .price { color: var(--ink); font-size: 1.15rem; margin-top: 12px; }

.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  border-radius: 999px;
  margin-top: 24px;
}
.btn:hover { opacity: 0.85; }
.center { text-align: center; }

table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { width: 30%; background: var(--blue-soft); font-weight: 500; }

.note {
  background: #fff8e6;
  border: 1px dashed #e2c26b;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #8a6d1d;
  margin-bottom: 24px;
}

footer {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

@media (max-width: 600px) {
  .header-inner { justify-content: center; }
  nav a { padding: 4px 10px; font-size: 0.85rem; }
  th { width: 36%; }
}

/* 予約フォーム */
.form { display: grid; gap: 18px; margin-top: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.form label { display: block; font-size: 0.92rem; }
.form input, .form select, .form textarea {
  display: block; margin-top: 6px;
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); border-color: transparent; }
.req { display: inline-block; font-size: 0.7rem; color: #fff; background: #c98a8a; border-radius: 4px; padding: 0 6px; margin-left: 4px; }
.hp { position: absolute; left: -9999px; }
button.btn { border: none; font: inherit; cursor: pointer; margin-top: 0; }
.form-status { text-align: center; color: var(--blue); min-height: 1.5em; }

/* 追加 */
.hero-img { width: 100%; max-height: 520px; object-fit: cover; }
.hero.photo { padding-top: 40px; }
.lead { font-family: "Shippori Mincho", serif; font-size: 1.05rem; line-height: 2.1; }
.photo { border-radius: 12px; margin: 16px 0; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; color: var(--blue); }
.steps li p { font-size: 0.92rem; }
ul.dots { padding-left: 1.2em; }
ul.dots li { margin: 2px 0; }
.card .tag { display: inline-block; font-size: 0.75rem; color: var(--blue); border: 1px solid var(--blue); border-radius: 999px; padding: 0 10px; margin-bottom: 8px; }
.card ul { padding-left: 1.1em; font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.terms h3 { font-size: 1rem; margin: 24px 0 6px; color: var(--blue); }
.terms ul { padding-left: 1.2em; }
.contact-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.btn.insta { background: #c13584; margin-top: 0; }
.check { display: flex !important; gap: 8px; align-items: center; }
.check input { width: auto !important; margin: 0 !important; }
.sched-img { max-width: 560px; margin: 16px auto; border-radius: 8px; border: 1px solid var(--line); }

/* 用語集 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 24px 0 40px; }
.tab { font: inherit; font-size: 0.9rem; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--blue); background: var(--paper); color: var(--blue); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--blue); color: #fff; }
.gloss dl { display: grid; gap: 12px; }
.gloss dt { font-weight: 500; color: var(--blue); font-size: 1.02rem; margin-top: 8px; }
.gloss dd { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; font-size: 0.94rem; }
.gloss dd ul { margin-top: 6px; }

/* ===== スマホ優先 ===== */
nav svg { display: none; }
html { -webkit-text-size-adjust: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  /* 上は店名だけ、メニューは画面の下に固定 */
  header { position: static; }
  .header-inner { justify-content: center; padding: 12px 16px; }
  .logo { font-size: 1.3rem; }
  nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    backdrop-filter: blur(8px);
  }
  nav ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
  nav a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; padding: 6px 2px; border-radius: 0;
    font-size: 0.68rem; letter-spacing: 0; color: var(--muted);
  }
  nav a:hover { background: none; color: var(--muted); }
  nav a[aria-current="page"] { background: none; color: var(--blue); font-weight: 500; }
  nav svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  main { padding: 32px 16px 48px; }
  .hero { padding: 40px 16px 40px; }
  .hero-img { max-height: 60vh; }
  .page-title { font-size: 1.6rem; }
  .page-sub { margin-bottom: 28px; }
  section + section { margin-top: 44px; }
  body { font-size: 16px; }

  /* ボタンは横いっぱい、親指で押しやすく */
  .center .btn, .contact-row .btn { width: 100%; max-width: 420px; }
  .contact-row { flex-direction: column; align-items: center; }

  /* 表は縦に並べる */
  table, tbody, tr, th, td { display: block; width: 100% !important; }
  tr { border-bottom: 1px solid var(--line); }
  th, td { border: none; padding: 10px 16px; }
  th { padding-top: 14px; }
  td { padding-bottom: 14px; }

  /* 用語集タブ：1列で横スクロール、上に固定 */
  .tabs {
    position: sticky; top: 0; z-index: 20;
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    margin: 16px -16px 28px; padding: 10px 16px;
    background: var(--bg); scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; min-height: 44px; padding: 8px 20px; }
  .gloss { scroll-margin-top: 72px; }

  /* フォーム */
  .form { padding: 20px 16px; }
  .form input, .form select, .form textarea { min-height: 48px; }
  .check { min-height: 48px; }
  .check input { width: 22px !important; height: 22px; min-height: 0 !important; }
}
@media (max-width: 768px) {
  .lead { font-size: 0.95rem; }
  .hero h1 { font-size: 1.5rem; }
}
.badge { display: inline-block; font-size: 0.7rem; font-weight: 400; color: #fff; background: var(--blue); border-radius: 999px; padding: 1px 10px; margin-left: 6px; vertical-align: middle; }
.card h3 small { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.badge.soft { background: var(--paper); color: var(--blue); border: 1px solid var(--blue); }
.card.muted { opacity: 0.7; }
.insta-embed { display: flex; justify-content: center; margin: 16px 0; }
.insta-embed .instagram-media { margin: 0 auto !important; min-width: 0 !important; width: 100% !important; max-width: 480px !important; }
.send-box { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.send-title { font-weight: 500; text-align: center; }
.send-box .btn { width: 100%; margin-top: 4px; }
.send-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin-bottom: 6px; }
.preview summary { cursor: pointer; color: var(--blue); font-size: 0.9rem; min-height: 44px; display: flex; align-items: center; }
.preview textarea { margin-top: 6px; font-size: 14px; }

/* 予約ページの利用規約 */
.terms-box-wrap { display: grid; gap: 8px; }
.terms-box {
  max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 16px 16px; font-size: 0.88rem; line-height: 1.8;
}
.terms-box h3 { font-size: 0.95rem; margin: 18px 0 4px; }
.terms-box:focus-visible { outline: 2px solid var(--blue); }
.terms-end { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 20px; }
.terms-hint { font-size: 0.82rem; color: #b0603a; text-align: center; }
.terms-hint.done { color: var(--blue); }
.check input:disabled + * , .check:has(input:disabled) { opacity: 0.55; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.name-row label { min-width: 0; }

/* 送り方の案内シート */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(40, 32, 24, 0.45); }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  background: var(--paper); border-radius: 20px 20px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  display: grid; gap: 14px;
}
.sheet-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 500; }
.ok-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #3f9a6b; color: #fff; display: grid; place-items: center; font-size: 1.05rem; }
.sheet.failed .ok-mark { background: #c98a3a; }
.sheet-lead { font-size: 0.92rem; color: var(--muted); }
.howto { list-style: none; display: grid; gap: 10px; }
.howto li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; background: var(--bg); border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.7; }
.howto b { color: var(--ink); }
.howto-num { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-weight: 500; margin-top: 2px; }
.mock { position: relative; margin-top: 30px; }
.mock-input { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--paper); color: var(--muted); font-size: 0.82rem; }
.mock-bubble { position: absolute; top: -28px; left: 18px; background: #2f2f2f; color: #fff; font-size: 0.75rem; padding: 3px 12px; border-radius: 8px; }
.mock-bubble::after { content: ""; position: absolute; left: 14px; bottom: -5px; border: 5px solid transparent; border-top-color: #2f2f2f; border-bottom: 0; }
.sheet-btn { width: 100%; margin-top: 4px; }
.btn-sub { font: inherit; font-size: 0.9rem; background: none; border: none; color: var(--blue); min-height: 44px; cursor: pointer; text-decoration: underline; }
.copied summary { cursor: pointer; color: var(--blue); font-size: 0.9rem; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.copied textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.copied .btn-sub { display: block; margin: 4px auto 0; }

/* hidden を付けた要素は必ず消す（.sheet の display:flex より優先） */
[hidden] { display: none !important; }
.sheet-panel { max-height: 92dvh; }

/* 仮予約（メール） */
.field-note { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.slot-legend { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.slot-legend .send-title { text-align: left; }
.confirm-list { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px 12px; background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 0.9rem; }
.confirm-list dt { color: var(--muted); }
.confirm-list dd { min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.ok-mark.warn { background: #c98a3a; }
#step-confirm, #step-done, #step-error { display: grid; gap: 14px; }
.btn:disabled { opacity: 0.6; }
