/* ==========================================================================
   CALVO 製品紹介サイト — スタイル一式
   コンセプト: 「予約の両側」。CALVO は "お店の運営" と "お客様の予約体験" を
   つなぐ。ブランド配色はその両方を持つ —
     ・構造色 = コバルト/ネイビーの青(管理画面ゆずり。信頼・清潔・明快)
     ・アクセント = 温かいローズ(予約ページゆずり。歓迎・もてなし)
   地色は青みのある白。掲載する管理画面(青)と予約ページ(ローズ×クリーム)の
   スクリーンショットが浮かず、地続きに見えることを最優先にしている。
   モチーフ: アイソメトリック・キューブ格子(暗いネイビー面に控えめに敷く)。
   フォントはシステムフォントのみ(外部読み込みなし)。
   見出しは明朝(もてなしの温度)、本文はゴシック、ワードマークはラテン・セリフ。
   ========================================================================== */

:root {
  /* --- ライト面(特長 / 画面紹介 / 地) --- */
  --canvas: #f3f6fc;          /* 地色: ごく淡い青みの白(管理画面の空気に合わせる) */
  --canvas-alt: #e9f0fa;      /* 交互セクション */
  --surface: #ffffff;         /* カード */
  --ink: #13202f;             /* 主要テキスト(純黒でなく紺寄り) */
  --ink-soft: #51606f;        /* 補助テキスト(白/地上で AA) */
  --line: rgba(19, 44, 74, 0.12);
  --line-strong: rgba(19, 44, 74, 0.22);

  /* --- ブランド青(管理画面 #1465c0 由来。構造色・主アクション) --- */
  --brand: #1462c4;
  --brand-strong: #0f4fa5;    /* ホバー・押下 */
  --brand-ink: #0b2a52;       /* 淡い青地の上の濃紺テキスト */
  --brand-tint: #e6f0fc;      /* 淡い青のパネル(管理画面の選択ピル相当) */

  /* --- ネイビー面(ヒーロー / デモ / フッター。青の一族で暗部を作る) --- */
  --navy: #0e2338;            /* ヒーローのベース */
  --navy-2: #14304c;          /* ネイビー上のパネル */
  --navy-3: #1d3d5e;          /* さらに一段上げた面 */
  --navy-deep: #0a1a2b;       /* フッター最下部・グラデ端 */
  --navy-fg: #eaf2fb;         /* ネイビー上の主要テキスト */
  --navy-soft: #b3c6dc;       /* ネイビー上の本文・補助 */
  --navy-dim: #8ba3bd;        /* ネイビー上の小さめ補助(AA 確保) */
  --line-navy: rgba(200, 222, 248, 0.16);
  --line-navy-strong: rgba(200, 222, 248, 0.30);

  /* --- ローズ(予約ページ #a2415c 由来。人肌のアクセント) --- */
  --rose: #a2415c;
  --rose-strong: #8a3550;     /* ホバー・押下 */
  --rose-ink: #7a2c47;        /* クリーム地の上のローズ濃色テキスト */
  --rose-bright: #e79fb0;     /* ネイビー地の上で読ませる明るいローズ(AA 確保) */
  --hero-light: #f2b7c6;      /* ヒーローの走行光(彗星の尾・グロー)。screen 合成で発光する */
  --hero-light-core: #fff6f8; /* 彗星の芯(白寄り。screen 合成でホットな光点になる) */
  --cream: #f7efe8;           /* 予約ページの温かいクリーム */
  --rose-tint: #f7e7ec;       /* ローズの淡いパネル(応相談タグ。人肌の温度で "相談" を示す) */

  /* --- メニューカテゴリ(管理画面の凡例色。ヒーローの時間割で実物を再現) --- */
  --cat-cut: #3f6ad8;         /* カット = 青 */
  --cat-cut-tint: #e6eefc;
  --cat-color: #17958a;       /* カラー = ティール */
  --cat-color-tint: #e2f3f0;
  --cat-perm: #d8922a;        /* パーマ = アンバー */
  --cat-set: #c94e6a;         /* セット = ローズ寄りの赤 */

  --shadow-navy: 0 26px 60px rgba(4, 14, 26, 0.45);
  --shadow-navy-sm: 0 2px 10px rgba(4, 14, 26, 0.35);
  --shadow-panel: 0 22px 50px rgba(9, 26, 48, 0.28);
  --shadow-light-sm: 0 1px 2px rgba(19, 44, 74, 0.05), 0 8px 22px rgba(19, 44, 74, 0.07);
  --shadow-light-md: 0 18px 44px rgba(19, 44, 74, 0.14);

  /* --- タイポグラフィ --- */
  --font-serif-latin: "Hoefler Text", "Iowan Old Style", "Palatino Linotype",
    Palatino, Georgia, "Times New Roman", serif;
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", "MS PMincho", serif;
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic",
    Meiryo, Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
}

/* --- リセット/ベース --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ヘッダー(sticky 66px)に隠れないよう、アンカー着地位置を下げる */
main[id],
section[id] {
  scroll-margin-top: 78px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* 和文の折り返し: 各行を右端まで使う自然な折り返し(word-break:normal)+ 禁則(line-break:strict)。
     auto-phrase は語・句を保持するあまり行を早く切り、右に大きな余白を残すため不採用(ユーザー要望)。
     分割してほしくない語(カタカナ複合語・型番等)は個別に <span class="nb"> で保護する。 */
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.32;
  margin: 0;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ネイビー文脈ではフォーカスリングを明色に(コントラスト確保) */
.site-header :focus-visible,
.hero :focus-visible,
.demo :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--navy-fg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

/* 文単位の折り返し制御: 余白に収まるときは同一行に留まり、収まらないときだけ
   文ごと次行へ落ちる(行の切れ目を文の切れ目に揃える。短い説明文・リード文用)。
   前提: 各文はブロック幅に収まる長さへ文言を調整しておくこと(長すぎる文は文中で折れる)。 */
.sen {
  display: inline-block;
}

.nb {
  white-space: nowrap;
}

/* ==========================================================================
   ワードマーク(フォントで再現。頭の C を大きく、ALVO はスモールキャップ風)
   単色。currentColor を継承するので、地色に応じて色が決まる。
   HTML: <span class="wordmark"><span class="c">C</span><span class="rest">alvo</span></span>
   ========================================================================== */
.wordmark {
  font-family: var(--font-serif-latin);
  font-weight: 600;
  line-height: 1;
  color: currentColor;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  letter-spacing: 0;
}

.wordmark .c {
  font-size: 1.32em;          /* 頭の C を一回り大きく */
  margin-right: 0.02em;
}

.wordmark .rest {
  font-size: 0.82em;          /* スモールキャップ風に小さく */
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* キューブ格子レイヤー(ネイビー面の背後に控えめに敷く。中心を残し周縁をフェード) */
.cube-field {
  position: relative;
  isolation: isolate;
}

.cube-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("pattern-cube.svg");
  background-size: 118px auto;
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 26%, #000 26%, transparent 82%);
  mask-image: radial-gradient(120% 90% at 50% 26%, #000 26%, transparent 82%);
}

/* 見出し上の符牒(エアブロウ)。先頭にブランド青の刻み。 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1.2rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 35, 56, 0.78);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-navy);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-fg);
}

.brand .wordmark {
  font-size: 1.4rem;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(4, 14, 26, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
  box-shadow: 0 4px 14px rgba(4, 14, 26, 0.45);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* デモ導線は控えめなゴースト、申込を主CTA(filled)にする */
.header-cta-ghost {
  background: transparent;
  color: var(--navy-fg);
  border-color: var(--line-navy-strong);
  box-shadow: none;
}

.header-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* 料金パネル内の申込ボタン */
.plan-cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease,
    border-color 0.18s ease, background-color 0.18s ease;
}

/* 主ボタン = ブランド青(管理画面のアクションと同じ色。白抜き文字) */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(11, 42, 82, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--brand-strong);
  box-shadow: 0 7px 20px rgba(11, 42, 82, 0.5);
}

/* 副ボタン = ヘアラインの明色(ネイビー面) */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--navy-fg);
  border-color: var(--line-navy-strong);
}

.btn-secondary:hover {
  border-color: var(--navy-soft);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   ヒーロー(ネイビー + キューブ格子 + 浮遊する管理パネル)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--navy-soft);
  background:
    radial-gradient(120% 80% at 82% -8%, rgba(40, 110, 200, 0.22), transparent 58%),
    radial-gradient(90% 80% at -6% 108%, rgba(162, 65, 92, 0.16), transparent 55%),
    var(--navy);
}

/* 背景キューブ格子の線上を這う光(ヒーロー装飾。assets/hero-lines.js が WAAPI で駆動)。
   - viewBox を持たず、ユーザー座標 = CSS px。JS が背景タイルと同一原点・同一スケールの
     等角格子を実測して彗星パスを生成するため、光は必ず背景の線に重なる。
   - mix-blend-mode: screen で光を加算合成し、navy 地とキューブ線の上で発光させる。
   - mask は背景格子(.cube-field::before)と同一。周縁で光も同じくフェードし、
     線の見えない場所に光が浮かない。
   .hero .container はコンテンツを光レイヤーより手前に固定するため position/z-index を明示。 */
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 26%, #000 30%, transparent 84%);
  mask-image: radial-gradient(120% 90% at 50% 26%, #000 30%, transparent 84%);
}

/* 彗星は多層ストローク+CSS blur で発光を作る:
   halo(太く淡い光暈・強blur)→ glow → tail → flare(頭部の白い閃光)→ core(細く白い芯)。
   全層が同一パス・同一の dashoffset アニメを共有し、尾の長さ(dasharray)だけを変えて
   頭の位置を一致させる。blur はアニメしない静的 filter のため motion 監査は HARD 0(確認済み)。 */
.hl-comet {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

/* halo/glow の blur がブルーム(光のにじみ)の本体。太いストロークを淡くぼかすことで
   「線」ではなく「発光」に見せる。flare は頭部だけの白い閃光(dash が短いため点光源に見える)。 */
.hl-comet--halo {
  stroke: var(--hero-light);
  stroke-width: 18;
  filter: blur(7px);
}

.hl-comet--glow {
  stroke: #f8c9d6;
  stroke-width: 8;
  filter: blur(3.5px);
}

.hl-comet--tail {
  stroke: #ffd9e4;
  stroke-width: 3.2;
  filter: blur(0.8px);
}

.hl-comet--flare {
  stroke: #ffffff;
  stroke-width: 7;
  filter: blur(4px);
}

.hl-comet--core {
  stroke: var(--hero-light-core);
  stroke-width: 1.8;
}

/* 対応ブラウザでは screen より強い真の加算合成で重ねる(白飛びに近いホットな発光)。 */
@supports (mix-blend-mode: plus-lighter) {
  .hl-comet {
    mix-blend-mode: plus-lighter;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
  padding-block: clamp(60px, 8vw, 112px);
}

.hero .eyebrow {
  color: var(--navy-soft);
}

.hero .eyebrow::before {
  background: var(--rose-bright);
}

/* ヒーローのワードマーク(フォントで再現。明色) */
.hero-title {
  margin: 0 0 1.4rem;
  line-height: 1;
  color: var(--navy-fg);
}

.hero-wordmark {
  font-size: clamp(3rem, 7.5vw, 4.9rem);
  text-shadow: 0 6px 26px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.6;
  color: var(--navy-fg);
  margin: 0 0 1rem;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--navy-soft);
  max-width: 36ch;
  margin: 0;
}

/* --- シグネチャ: 管理画面ふうスケジュール盤 + 予約ページのスマホ --- */
.hero-visual {
  position: relative;
  min-height: 470px;
}

/* 白い "管理パネル" をネイビーの上に浮かせ、実際の管理画面を想起させる */
.schedule {
  position: absolute;
  inset: 12px 40px 40px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 18px 20px 20px 58px;
  overflow: hidden;
}

.schedule-head {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.schedule-row {
  position: relative;
  height: 46px;
  border-top: 1px solid var(--line);
}

.schedule-row::before {
  content: attr(data-time);
  position: absolute;
  left: -44px;
  top: -0.6em;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

/* 予約チップ(管理画面の色分けを再現。左バー + カテゴリ色) */
.slot {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 9px;
  padding: 8px 12px 8px 15px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(19, 44, 74, 0.1);
}

.slot::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.slot small {
  display: block;
  font-weight: 500;
  font-size: 0.64rem;
  opacity: 0.8;
}

/* カラー(ティール) */
.slot-color {
  top: 4px;
  height: 84px;
  background: var(--cat-color-tint);
  color: #0c5b53;
}

.slot-color::before {
  background: var(--cat-color);
}

/* カット(青) */
.slot-cut {
  top: 142px;
  height: 42px;
  background: var(--cat-cut-tint);
  color: var(--brand-ink);
}

.slot-cut::before {
  background: var(--cat-cut);
}

/* 予約ページのスマホ(右下に重ねる) */
.hero-phone {
  position: absolute;
  right: -6px;
  bottom: 0;
  width: 208px;
  border-radius: 28px;
  border: 6px solid #0b1826;
  box-shadow: var(--shadow-navy), 0 0 0 1px var(--line-navy-strong);
  background: #0b1826;
}

.hero-phone img {
  border-radius: 22px;
}

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section {
  padding-block: clamp(66px, 9vw, 116px);
  background: var(--canvas);
}

.section-alt {
  background: var(--canvas-alt);
}

.section-head {
  /* 見出し・説明ともコンテナ幅いっぱいを使う(狭いキャップは説明文の右に大きな空白を
     生み「右が余っているのに折り返す」と映るため)。見出しは text-wrap:balance で自然に
     2行程度に収まる。jp-wrap-audit スキルで HARD 0 を確認済み。 */
  margin-bottom: clamp(38px, 5vw, 58px);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 0.9rem;
  color: var(--ink);
  /* 見出しは行を均衡させる。3行化・極端に短い落ち行を防ぐ */
  text-wrap: balance;
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1.02rem;
  /* 本文は各行を右端まで使い、最終行だけ短い自然な折り返しにする。列はコンテナ幅を
     使い切り、右に大きな空白を残さない(max-width キャップは付けない)。 */
}

/* ==========================================================================
   特長
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* 「運用を支える機能」はカード数が奇数(9枚)のため、最後の1枚だけ残る行を
   半分幅の孤立カードにしない(右に大きな空白が残り不自然)。全幅に広げる。 */
#more-features .features > .feature:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow-light-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light-md);
  border-color: var(--line-strong);
}

/* アイコン = 淡い青地にブランド青(管理画面の色をカードにも反復) */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid rgba(20, 98, 196, 0.16);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.feature .tags {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(20, 98, 196, 0.16);
  padding: 4px 11px;
  border-radius: 999px;
}

/* --- 4つの立場 = 困りごと→機能→改善。役割ごとに「これまでの悩み」と「CALVOなら」を
   段差にして並べ、実際の画面をとなりに置く。上の showcase(全幅の交互スクショ)とは
   別物に見せるため、コピー側に "凹んだ悩みブロック → 矢印 → ブランド色の解決ブロック" の
   前後(before/after)の段差を作る。これがこの節のシグネチャ。 --- */
.personas-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 88px);
}

.persona-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4.5vw, 66px);
  align-items: center;
}

/* 偶数行はスクショを右へ(視線に緩急) */
.persona-row.is-reverse .persona-media {
  order: 2;
}

.persona-media,
.persona-copy {
  min-width: 0;
}

/* 管理画面ショット = 角丸フレーム(showcase と同じ額装言語で地続きに) */
.persona-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light-md);
  background: var(--surface);
}

.persona-shot img {
  width: 100%;
  display: block;
}

/* 予約ページ(お客様)= クリーム地のスマホ枠。予約ページの温度を出す */
.persona-phone {
  margin: 0;
  display: grid;
  place-items: center;
  padding: clamp(24px, 3.2vw, 38px);
  background: linear-gradient(180deg, var(--cream), #efe4da);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light-md);
}

.persona-phone img {
  width: 252px;
  max-width: 76%;
  border-radius: 20px;
  border: 5px solid #ffffff;
  box-shadow: 0 16px 36px rgba(122, 44, 71, 0.24);
}

/* 役割ラベル(eyebrow を流用。小さな色付きトラッキングラベル) */
.persona-role {
  margin-bottom: 1rem;
}

/* 改善(得られる結果)の見出し。明朝で一段大きく = 役割ラベルより上位 */
.persona-outcome {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

/* before/after の段差 */
.persona-flow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pf-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.45rem;
}

.pf-label-before {
  color: var(--ink-soft);
}

.pf-label-after {
  color: var(--brand);
}

/* 悩み = 凹んだ(recessed)ブロック。影なし・淡いグレー地で「これまで」を弱く見せる */
.pf-problem {
  width: 100%;
  background: #eceff4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
}

.pf-problem p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* 段差の矢印(進行を示す。ブランド色で「これまで」から「CALVOなら」へ導く) */
.pf-arrow {
  display: block;
  margin: 10px 0 10px 22px;
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
}

/* 解決 = ブランドの左罫で前に出す(悩みブロックより一段強い) */
.pf-solution {
  width: 100%;
  border-left: 3px solid var(--brand);
  padding: 2px 0 2px 17px;
}

.pf-solution p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

/* お客様 = ローズの世界(役割・矢印・解決の罫・解決ラベルをローズに寄せる) */
.persona-role-guest {
  color: var(--rose);
}

.persona-role-guest::before {
  background: var(--rose);
}

.persona-guest .pf-label-after {
  color: var(--rose-ink);
}

.persona-guest .pf-arrow {
  color: var(--rose);
}

.persona-guest .pf-solution {
  border-left-color: var(--rose);
}

@media (max-width: 860px) {
  .persona-row,
  .persona-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .persona-row.is-reverse .persona-media {
    order: 0;
  }
}

/* --- 橋渡しカード = ALMA ホームページ制作へのクロスセル。
   青の CALVO 機能カードと区別するためローズ基調 + 外部リンクのアフォーダンス。 --- */
.feature-bridge {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--rose-tint), var(--surface) 58%);
  border-color: rgba(162, 65, 92, 0.22);
}

.feature-bridge:hover {
  border-color: rgba(162, 65, 92, 0.42);
}

.feature-icon-rose {
  background: #fff;
  color: var(--rose);
  border-color: rgba(162, 65, 92, 0.24);
}

.feature-bridge h3 {
  color: var(--ink);
}

.bridge-foot {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tag-rose {
  color: var(--rose-ink);
  background: #fff;
  border-color: rgba(162, 65, 92, 0.28);
}

.bridge-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: 0.01em;
}

.bridge-link .arrow {
  font-size: 1.05em;
  transition: transform 0.18s ease;
}

.feature-bridge:hover .bridge-link .arrow {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   画面紹介
   ========================================================================== */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shot:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light-md);
}

.shot-media {
  background: var(--canvas-alt);
  border-bottom: 1px solid var(--line);
}

.shot-media.desktop img {
  width: 100%;
}

/* スマホ画面(予約ページ)は中央に小さめ表示。クリーム地で額装し予約ページの温度を出す */
.shot-media.mobile {
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, var(--cream), #efe4da);
}

.shot-media.mobile img {
  width: 200px;
  border-radius: 18px;
  border: 5px solid #ffffff;
  box-shadow: 0 16px 36px rgba(122, 44, 71, 0.24);
}

.shot-body {
  padding: 20px 24px 24px;
}

.shot-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

/* 予約ページの画面はローズのキッカーで区別(お客様側の世界) */
.shot-media.mobile ~ .shot-body .shot-kicker {
  color: var(--rose);
}

.shot-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.shot-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.shot-wide {
  grid-column: 1 / -1;
}

/* ==========================================================================
   主要機能ショーケース(スクショを主役に、media + コピーを交互に配置)
   映える画面(管理ホーム・カレンダー・分析・予約ページ)はここで「見せる」。
   映えない機能は下の .features(その他の機能)とセキュリティで「テキスト+アイコン」。
   ========================================================================== */
.showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 100px);
}

.showcase-row {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: center;
}

/* 偶数行はスクショを右に置き、視線に緩急をつける */
.showcase-row.is-reverse .showcase-media {
  order: 2;
}

.showcase-copy {
  min-width: 0;
}

.showcase-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.7rem;
}

/* 予約ページ(お客様側)の行はローズのキッカーで世界を区別 */
.showcase-row.is-guest .showcase-kicker {
  color: var(--rose);
}

.showcase-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.7vw, 1.95rem);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.showcase-copy p {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 1.3rem;
}

.showcase-copy .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-media {
  min-width: 0;
}

/* デスクトップ画面の額装(管理画面のスクショ) */
.showcase-shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-light-md);
  background: var(--surface);
}

.showcase-shot img {
  width: 100%;
  display: block;
}

/* 予約ページ(スマホ2枚)の額装。クリーム地で予約ページの温度を出す */
.showcase-phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 22px;
  background: linear-gradient(180deg, var(--cream), #efe4da);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-light-md);
}

.showcase-phones img {
  width: 46%;
  max-width: 214px;
  border-radius: 18px;
  border: 5px solid #ffffff;
  box-shadow: 0 16px 36px rgba(122, 44, 71, 0.24);
}

@media (max-width: 860px) {
  .showcase-row,
  .showcase-row.is-reverse {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .showcase-row.is-reverse .showcase-media {
    order: 0;
  }
}

/* ==========================================================================
   セキュリティ(概念的な機能なのでスクショは使わず、アイコン + 事実ベースの短文)
   ========================================================================== */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sec-card {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow-light-sm);
}

.sec-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border: 1px solid rgba(20, 98, 196, 0.16);
}

.sec-icon svg {
  width: 22px;
  height: 22px;
}

.sec-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.sec-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .sec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .sec-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   制作例(ホームページ制作のクロスセル。.shot と同じカード構造 + ローズ基調)
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light-md);
  border-color: rgba(162, 65, 92, 0.32);
}

.work-media {
  background: var(--canvas-alt);
  border-bottom: 1px solid var(--line);
}

.work-media img {
  width: 100%;
  display: block;
}

.work-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.work-body .tags {
  margin-bottom: 0;
}

.work-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}

.work-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.work-body .bridge-link {
  margin-top: auto;
  padding-top: 6px;
}

.work-card:hover .bridge-link .arrow {
  transform: translate(2px, -2px);
}

.works-note {
  margin-top: 22px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   デモ案内(ネイビー + キューブ格子)
   ========================================================================== */
.demo {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(40, 110, 200, 0.2), transparent 55%),
    var(--navy);
  color: var(--navy-soft);
}

.demo .eyebrow {
  color: var(--navy-soft);
}

.demo .eyebrow::before {
  background: var(--rose-bright);
}

.demo .section-title {
  color: var(--navy-fg);
}

/* デモ節のリードは幅を広げ(全角 ~44 字)、各行を右端まで使わせる。
   section-head 側の上限も広げて列がセクション中央より手前で切れないようにする。 */
.demo .section-title {
  max-width: 30em;
}

.demo-lead {
  color: var(--navy-soft);
  font-size: 1.05rem;
}

.demo-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 46px 0;
}

.demo-point {
  border: 1px solid var(--line-navy);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

/* 序数ではなくアイコンで意味を伝える。ローズ系でデモ節のアクセントを反復 */
.demo-point .pt-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(231, 159, 176, 0.12);
  color: var(--rose-bright);
  border: 1px solid var(--line-navy-strong);
}

.demo-point .pt-icon svg {
  width: 23px;
  height: 23px;
}

.demo-point h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-fg);
  margin-bottom: 0.5rem;
}

.demo-point p {
  color: var(--navy-soft);
  font-size: 0.94rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   料金(ライト面。価格の数字をラテン・セリフで大きく = この節のシグネチャ)
   ========================================================================== */
.pricing {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
  align-items: start;
}

/* 主プラン(白カード。上辺にブランド青の一本線でアクションの色を反復) */
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-light-md);
  overflow: hidden;
}

.plan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--brand);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 1.4rem;
}

.plan-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin: 0;
}

.plan-badge {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(20, 98, 196, 0.16);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 価格を淡い青のパネルで額装し、この節のシグネチャ(大きな数字)を安定させる */
.plan-price-panel {
  background: linear-gradient(180deg, var(--brand-tint), #f4f9ff);
  border: 1px solid rgba(20, 98, 196, 0.14);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  margin-bottom: 1.9rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.plan-amount {
  font-family: var(--font-serif-latin);
  font-size: clamp(3rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.plan-yen {
  font-size: 0.5em;
  color: var(--brand);
  margin-right: 0.06em;
  vertical-align: baseline;
}

.plan-per {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.plan-tax {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(20, 98, 196, 0.16);
  padding: 2px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.plan-note {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.7rem 0 0;
}

/* 初期費用0円 = 導入時の "良い知らせ"。ローズで小さく強調 */
.plan-zero {
  font-weight: 800;
  color: var(--rose-ink);
  background: var(--rose-tint);
  border: 1px solid rgba(162, 65, 92, 0.24);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* 店舗追加ぶんの従量表記。基本料金の下に、控えめだが分かるトーンで置く。 */
.plan-addon {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5em;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

.plan-addon-amount {
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-tint, rgba(20, 98, 196, 0.08));
  border: 1px solid rgba(20, 98, 196, 0.22);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.included-head {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin: 0 0 1.1rem;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 15px;
}

.plan-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.li-title {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.99rem;
  line-height: 1.5;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.16em;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
}

/* 別費用パネル(淡い青。応相談タグはローズ = "人に相談する" の温度) */
.plan-extra {
  background: var(--brand-tint);
  border: 1px solid rgba(20, 98, 196, 0.16);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
}

.extra-head {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.extra-sub {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.extra-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.extra-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(20, 98, 196, 0.16);
}

.extra-name {
  grid-column: 1;
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
}

.extra-tag {
  grid-column: 2;
  justify-self: end;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rose-ink);
  background: var(--rose-tint);
  border: 1px solid rgba(162, 65, 92, 0.24);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* 拡張の2グループ(いつでも増減 / 作り込み)。
   視覚階層のルール: 「料金 > お店に合わせた拡張 > グループ > 項目」と1段下がるごとに
   デザイン語彙を変える — 親タイトル(大・ink)/ グループ=子パネル+小さな色付きラベル
   (サイトの eyebrow と同語彙)/ 項目=太字+説明。同じ意味はタグで重複させず、
   グループの意味(Webで増減できる・応相談)は見出しと説明文だけで伝える。 */
.extra-group {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(20, 98, 196, 0.12);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px 18px 6px;
  margin-top: 14px;
}

.extra-group-quote {
  border-left-color: var(--rose-bright);
}

/* グループ見出しは eyebrow(小さな色付きトラッキングラベル)の語彙で、
   親タイトル(extra-head)とも項目名(extra-name)とも別のレベルに見せる */
.extra-group-label {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand-strong);
  margin: 0 0 0.35rem;
}

.extra-group-quote .extra-group-label {
  color: var(--rose-ink);
}

.extra-group .extra-list li:last-child {
  padding-bottom: 14px;
}

.extra-desc {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ==========================================================================
   フッター(ネイビー + キューブ格子)
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  border-top: 1px solid var(--line-navy);
  padding-block: 44px;
  color: var(--navy-dim);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  color: var(--navy-fg);
}

.footer-brand .wordmark {
  font-size: 1.2rem;
  opacity: 0.95;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--navy-dim);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-block: clamp(48px, 9vw, 76px);
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 430px;
    max-width: 460px;
  }

  .hero-sub {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 20px;
  }

  .features,
  .shots,
  .works-grid,
  .demo-points,
  .pricing {
    grid-template-columns: 1fr;
  }

  /* モバイルでは見出しの行均衡(balance)を外す。狭幅だと balance が
     1行目を短く切って右に大きな余白を残す(jp-wrap-audit UNDERFILL)ため、
     自然な充填(normal)に切り替える。デスクトップは balance のまま。 */
  .section-title {
    text-wrap: wrap;
  }

  .demo-actions .btn {
    width: 100%;
  }

  .plan {
    padding: 32px 24px 30px;
  }

  .plan-extra {
    padding: 28px 24px 26px;
  }

  .header-cta {
    display: none;
  }

  .hero-wordmark {
    font-size: clamp(2.7rem, 13vw, 3.6rem);
  }

  .hero-visual {
    min-height: 410px;
    margin-inline: auto;
    width: 100%;
  }

  .schedule {
    inset: 8px 30px 30px 0;
    padding-left: 52px;
  }

  .hero-phone {
    width: 172px;
  }

  .shot-media.mobile img {
    width: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  /* 光の走行を止め、背景キューブ格子は静的表示のみにする(hero-lines.js 側でも判定済み) */
  .hl-comet {
    display: none !important;
  }
}

/* ==========================================================================
   フッターの規約リンク
   ========================================================================== */
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--platinum, #c9d2df);
  text-decoration: none;
  font-size: 0.85rem;
  opacity: 0.85;
}
.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ==========================================================================
   利用規約などの法務ページ
   ========================================================================== */
.legal {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px);
  background: var(--paper, #f6f8fc);
}
.legal .container {
  max-width: 860px;
}
.legal-title {
  font-family: var(--font-serif, serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--ink, #16202e);
  margin: 0 0 1rem;
}
.legal-lead {
  color: var(--ink-soft, #4a5568);
  line-height: 1.9;
  margin: 0 0 0.6rem;
}
.legal-meta {
  color: var(--ink-soft, #4a5568);
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0 0 2.5rem;
}
.legal-section {
  margin: 0 0 2.2rem;
}
.legal-section > h2 {
  font-family: var(--font-sans);
  font-size: 1.12rem;
  color: var(--ink, #16202e);
  border-left: 3px solid var(--brand, #1462c4);
  padding-left: 0.7rem;
  margin: 0 0 0.9rem;
}
.legal-section > p {
  color: var(--ink-soft, #4a5568);
  line-height: 1.9;
  margin: 0 0 0.6rem;
}
.legal-list {
  margin: 0;
  padding-left: 1.4rem;
  color: var(--ink-soft, #4a5568);
  line-height: 1.9;
}
.legal-list > li {
  margin: 0 0 0.5rem;
  padding-left: 0.2rem;
}

/* 特定商取引法に基づく表記などの項目表 */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.1rem;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}
.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table th {
  width: 34%;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--ink, #16202e);
  background: var(--brand-tint, #e6f0fc);
  border-right: 1px solid var(--line);
}
.legal-table td {
  color: var(--ink-soft, #4a5568);
}
.legal-table a {
  color: var(--brand, #1462c4);
  word-break: break-all;
}
@media (max-width: 560px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }
  .legal-table tr {
    border-bottom: 1px solid var(--line);
  }
  .legal-table tr:last-child {
    border-bottom: 0;
  }
  .legal-table th {
    border-right: 0;
    border-bottom: 0;
    padding-bottom: 0.2rem;
  }
  .legal-table td {
    padding-top: 0.2rem;
  }
}

/* ==========================================================================
   お問い合わせフォーム
   ========================================================================== */
.contact-page .eyebrow {
  margin-bottom: 0.9rem;
}

.contact-form {
  margin-top: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* display:flex は [hidden] より詳細度で並ぶため、hidden 属性を明示的に優先させる */
.contact-form[hidden] {
  display: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 0.6em;
}

.field-required,
.field-optional {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.14em 0.6em;
  border-radius: 999px;
}

.field-required {
  color: var(--rose-ink);
  background: var(--rose-tint);
}

.field-optional {
  color: var(--ink-soft);
  background: var(--canvas-alt);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  line-height: 1.7;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 8.5em;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--rose);
}

.field-error {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--rose-ink);
}

/* ハニーポット: display:none は一部の bot に無視されるため、画面外へオフセット
   する定石で隠す。スクリーンリーダーからも除外する。 */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.9;
}

.consent a {
  color: var(--brand);
}

.form-status {
  margin: 0;
  min-height: 1.4em;
  font-size: 0.92rem;
}

.form-status-error {
  color: var(--rose-ink);
}

.contact-submit {
  align-self: flex-start;
}

.form-success {
  margin-top: 2.4rem;
  padding: 30px 30px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light-sm);
}

.form-success h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.form-success p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.9;
}

@media (max-width: 640px) {
  .contact-submit {
    align-self: stretch;
  }
}
