/* ============================================================
   base.css — 3つのデモサイトで共有する土台
   ・フレームワーク/ビルド不要。CSS変数でテーマだけ差し替える設計。
   ・外部フォント/CDNを読み込まない（外部通信ゼロ）
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img, svg, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 600; letter-spacing: .04em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--maxw, 1120px)); margin-inline: auto; }
.section { padding: clamp(4rem, 11vw, 7.5rem) 0; }
.center { text-align: center; }

.sec-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.sec-head .en {
  display: block; font-family: var(--font-en);
  font-size: .72rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .7rem;
}
.sec-head .ja { font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
.sec-head .lead { margin-top: 1rem; color: var(--muted); font-size: .95rem; }

.grid { display: grid; gap: clamp(1rem, 3vw, 1.75rem); }
.g2 { grid-template-columns: 1fr; }
.g3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 1.05em 2.1em; border: 1px solid transparent; border-radius: var(--radius-btn, 999px);
  font-size: .93rem; font-weight: 600; letter-spacing: .1em; text-decoration: none;
  cursor: pointer; transition: transform .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
  min-height: 48px; /* タップ領域 */
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-dark); }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- demo badge（架空の店舗であることの明示） ---------- */
.demo-bar {
  background: #1c1c1c; color: #fff; font-size: .74rem; letter-spacing: .06em;
  text-align: center; padding: .55rem 1rem; line-height: 1.6; position: relative; z-index: 60;
}
.demo-bar b { color: #ffd166; font-weight: 700; }
.demo-note {
  font-size: .76rem; color: var(--muted); line-height: 1.7;
  border: 1px dashed var(--line); border-radius: 8px; padding: .8rem 1rem; margin-top: 1rem;
}

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 50;
  background: var(--hdr-bg); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.brand { font-family: var(--font-en); font-size: 1rem; letter-spacing: .22em; text-decoration: none; font-weight: 600; }
.brand small { display: block; font-family: var(--font-body); font-size: .58rem; letter-spacing: .28em; color: var(--muted); }
.nav { display: none; }
.nav a { text-decoration: none; font-size: .84rem; letter-spacing: .12em; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent); }
.hdr-cta { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: clamp(1.1rem, 2.4vw, 2rem); align-items: center; }
  .hdr-cta { display: inline-flex; padding: .8em 1.6em; font-size: .8rem; }
  .burger { display: none !important; }
}
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 0 8px;
}
.burger span { display: block; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .3s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 1.6rem;
  padding: 2rem 2.5rem; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer a { text-decoration: none; font-size: 1.1rem; letter-spacing: .18em; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.drawer .btn { margin-top: 1rem; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: clamp(560px, 86svh, 860px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-in { position: relative; padding-block: clamp(3rem, 9vw, 6rem); }
.hero h1 { font-size: clamp(1.9rem, 7.4vw, 4rem); letter-spacing: .08em; font-weight: 500; }
.hero .sub { margin-top: 1.4rem; font-size: clamp(.86rem, 2.6vw, 1rem); line-height: 2.1; max-width: 30em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.8rem, 5vw, 2.6rem); }
.hero-ctas .btn { flex: 1 1 14rem; }
@media (min-width: 700px) { .hero-ctas .btn { flex: 0 0 auto; } }

/* ---------- price table ---------- */
.price { border-top: 1px solid var(--line); }
.price-row {
  display: flex; flex-wrap: wrap; gap: .2rem 1rem; align-items: baseline;
  padding: 1.15rem .2rem; border-bottom: 1px solid var(--line);
}
.price-row .nm { flex: 1 1 12rem; font-weight: 600; letter-spacing: .06em; }
.price-row .ds { flex: 1 1 100%; order: 3; font-size: .8rem; color: var(--muted); line-height: 1.8; }
.price-row .pr { font-family: var(--font-en); font-size: 1.02rem; white-space: nowrap; color: var(--accent-strong, var(--ink)); font-weight: 600; }
@media (min-width: 760px) { .price-row .ds { flex: 2 1 20rem; order: 0; font-size: .82rem; } }

/* ---------- gallery / instagram ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--radius-img, 4px); background: var(--line); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.06); }

.ig-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.ig-handle { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-en); letter-spacing: .1em; text-decoration: none; font-size: .95rem; }
.ig-handle svg { width: 22px; height: 22px; flex: none; }

/* ---------- access ---------- */
.map { border-radius: var(--radius-img, 4px); overflow: hidden; border: 1px solid var(--line); background: var(--map-bg, #eee); }
.map svg { width: 100%; height: auto; display: block; }
.info-row { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.info-row dt { flex: 0 0 5.5rem; color: var(--muted); font-size: .8rem; letter-spacing: .1em; margin: 0; }
.info-row dd { margin: 0; flex: 1; }

/* ---------- form ---------- */
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-size: .82rem; letter-spacing: .1em; margin-bottom: .5rem; }
.field .req { color: #c0392b; font-size: .72rem; margin-left: .4em; }
.field input, .field textarea, .field select {
  width: 100%; padding: .95em 1em; background: var(--field-bg, #fff);
  border: 1px solid var(--line); border-radius: var(--radius-img, 4px);
  min-height: 48px; transition: border-color .2s ease;
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; }
.form-msg { display: none; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: 6px; font-size: .86rem; line-height: 1.9; }
.form-msg[data-show="true"] { display: block; }

/* ---------- footer ---------- */
.ftr { padding: clamp(2.5rem, 7vw, 4rem) 0 calc(clamp(2.5rem, 7vw, 4rem) + var(--sticky-pad, 0px)); border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ftr-in { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: flex-start; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta a {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  padding: 1em .5em; min-height: 54px; text-decoration: none;
  font-size: .84rem; font-weight: 600; letter-spacing: .08em;
  background: var(--bg); color: var(--ink);
}
.sticky-cta a.main { background: var(--accent); color: var(--on-accent); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- motion ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
