/* =====================================================================
   common.css — 業種別サンプル共通スタイル
   各ページは <head> で読み込み、:root に下記の変数を定義して使う。
   ここには「色に依存しない骨組み」と「変数で色を受け取る共通パーツ」だけを置く。
   ページ固有のレイアウト（ヒーロー・各セクション・フッター等）は各HTML側に書く。

   ▼ 各ページの :root で必須の変数
     --bg --surface --paper --ink --muted --line --radius --shadow --shadow-soft
     --brand --brand-deep            … 主要アクセント（リンクhover等）
     --ph-grad                       … 写真プレースホルダーのグラデーション
     --ph-label                      … プレースホルダーのラベル文字色
     --replace-fg                    … 差替え枠の文字色（任意・既定 var(--muted)）
     --ribbon-bg --ribbon-fg --ribbon-link
     --header-bg                     … 追従ヘッダー背景
     --nav-fg --nav-hover --nav-bar  … ナビ文字 / hover / ハンバーガー線色
     --nav-drawer-bg                 … スマホ時ナビの背景（既定 var(--surface)）
     --btn-bg --btn-fg --btn-bg-hover --btn-shadow
     --ghost-fg --ghost-border --ghost-bg-hover --ghost-fg-hover
     --kicker                        … 小見出し(kicker)の色
     --faq-mark                      … FAQ ＋/− の色
     --sticky-bg --sticky-fg --sticky-accent   … LP追従CTA（LPのみ）
     --wrap-max（既定1120px）--narrow-max（既定760px）
   ===================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Segoe UI", system-ui, sans-serif;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.serif { font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }

.wrap { width: min(var(--wrap-max, 1120px), 92vw); margin: 0 auto; }
.narrow { width: min(var(--narrow-max, 760px), 92vw); margin: 0 auto; }

/* 写真プレースホルダー（画像が読めない時はグラデのみ表示）
   ※角丸は文脈ごとに差があるため共通では付けない。丸めたい箇所は各ページで border-radius を指定する。 */
.ph { position: relative; overflow: hidden; background: var(--ph-grad); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph[data-label]::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-label); font-size: 13px; letter-spacing: 0.1em; font-weight: 700; opacity: 0.78;
  text-align: center; padding: 12px;
}

/* 差替え枠（実案件で店の写真を入れる場所） */
.replace-slot {
  border: 1.5px dashed var(--replace-border, var(--line));
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--paper) 12px, var(--paper) 24px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--replace-fg, var(--muted)); font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  padding: 24px; min-height: 220px;
}

/* デモ用リボン */
.demo-ribbon { background: var(--ribbon-bg); color: var(--ribbon-fg); text-align: center; font-size: 12px; letter-spacing: 0.08em; padding: 7px 12px; }
.demo-ribbon a { color: var(--ribbon-link); font-weight: 700; }

/* ヘッダー */
header.site { position: sticky; top: 0; z-index: 30; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; position: relative; }

/* ナビ */
nav.main { display: flex; gap: 26px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--nav-fg); }
nav.main a:hover { color: var(--nav-hover); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; padding: 11px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--nav-bar, var(--ink)); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: 0.04em;
  border: none; cursor: pointer; box-shadow: var(--btn-shadow, none);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-2px); }
.btn.big { padding: 16px 36px; font-size: 16px; }
.btn .sub { font-size: 12px; font-weight: 700; opacity: 0.85; }
.btn.ghost { background: transparent; color: var(--ghost-fg); border: 1.5px solid var(--ghost-border); box-shadow: none; }
.btn.ghost:hover { background: var(--ghost-bg-hover); color: var(--ghost-fg-hover, var(--ghost-fg)); transform: translateY(-2px); }

/* セクション見出し */
.sec-head { text-align: center; margin-bottom: 52px; }
.sec-head .kicker { color: var(--kicker); font-size: 12px; font-weight: 800; letter-spacing: 0.3em; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: 0.06em; margin-top: 12px; font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* FAQ（LP共通） */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; box-shadow: var(--shadow-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; color: var(--faq-mark, var(--brand)); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--muted); font-size: 14.5px; }

/* LP追従CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--sticky-bg, rgba(255,255,255,0.96)); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  display: none; align-items: center; gap: 12px; padding: 10px 16px;
}
.sticky-cta .p { font-size: 13px; font-weight: 800; line-height: 1.3; color: var(--sticky-fg, var(--ink)); }
.sticky-cta .p small { display: block; color: var(--sticky-accent, var(--brand)); font-size: 12px; }
.sticky-cta .btn { flex: 1; padding: 14px 18px; font-size: 15px; }

/* スマホ：ナビをドロワーに、追従CTAを表示 */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nav-drawer-bg, var(--surface)); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 0; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease;
  }
  nav.main.open { max-height: 460px; opacity: 1; }
  nav.main a { padding: 14px 22px; font-size: 16px; }
  nav.main a:not(.btn) { border-bottom: 1px solid var(--paper); }
  nav.main a.btn { margin: 12px 22px 8px; justify-content: center; }
  .sticky-cta { display: flex; }
}
