/* FJワークス デザイン見本 共通部品
   各デザインは :root の変数（色・フォント）だけを変え、部品は共通で使う。 */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- 写真枠（写真が未配置でも崩れない） ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--ph-bg, #d9d4cc);
}
.ph::before {
  content: "写真 " attr(data-id);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(0, 0, 0, .35);
  font: 600 14px/1.4 system-ui, sans-serif;
  letter-spacing: .1em;
}
.ph img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph .ph-note {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  font: 11px/1.4 system-ui, sans-serif;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

/* ---------- ヘッダー ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(20px, 4vw, 48px);
}
.site-header .logo { text-decoration: none; line-height: 1.2; }
.site-nav { display: flex; gap: 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: var(--radius, 0);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  background: var(--cta-bg);
  color: var(--cta-ink);
  border: 2px solid var(--cta-bg);
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- セクション共通 ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--accent-ink, var(--accent));
}
.sec-title {
  margin: 0 0 24px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.45;
  font-weight: var(--head-weight, 600);
}

/* 店舗情報の表 */
.info { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px 16px; margin: 0; }
.info dt { font-weight: 700; }
.info dd { margin: 0; }

.map-ph {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px dashed currentColor;
  opacity: .7;
  font-size: 14px;
  text-align: center;
}

/* ---------- フッター ---------- */
.site-footer { padding: 32px 0 40px; font-size: 13px; text-align: center; }
.site-footer p { margin: 4px 0; }

/* ---------- 見本表示 ---------- */
.demo-badge {
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 50;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 20, 20, .72);
  color: #fff;
  font: 600 11px/1.6 system-ui, sans-serif;
  letter-spacing: .05em;
  pointer-events: none;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font: 14px/1.6 system-ui, sans-serif;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* スマホ下部の予約ボタン */
.mobile-cta { display: none; }

@media (max-width: 767px) {
  .site-nav { display: none; }
  .site-header .btn { min-height: 44px; padding: 8px 14px; font-size: 14px; }
  .mobile-cta {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--bar-bg, rgba(255, 255, 255, .96));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .12);
  }
  .mobile-cta .btn { flex: 1; padding-inline: 10px; }
  .demo-badge { bottom: 84px; left: 8px; }
  body { padding-bottom: 76px; }
  .info { grid-template-columns: 5.5em 1fr; }
}

/* ---------- A4見本用の撮影モード（?shot=top|concept|menu|access） ---------- */
html.shot { scroll-behavior: auto; }
html.shot body { padding-bottom: 0; overflow: hidden; }
html.shot .demo-badge,
html.shot .mobile-cta,
html.shot .site-footer,
html.shot .toast { display: none; }
html.shot section:not(.is-shot) { display: none !important; }
html.shot:not(.shot-top) .site-header { display: none !important; }
html.shot section.is-shot { min-height: 100vh; }
html.shot section.is-shot:not(#top) { display: flex; align-items: center; }
html.shot .map-ph { min-height: 110px; }
html.shot.shot-phone .mobile-cta { display: flex; }
