/* ============================================================
   Webフォント（自サイト配信）。Noto Sans JP・Roboto とも可変フォント1ファイル、太さは 400〜900。
   サイトで使う文字だけに絞ってあり、tools/build-fonts.py で生成する（文言を変えたら再実行し、
   node tools/check-fonts.mjs で欠字なしを確認する）。使うウェイトは 400 / 500 / 700 / 900。
   ============================================================ */
@font-face {
  font-family: 'Noto Sans JP';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/NotoSansJP-VF.woff2) format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/Roboto-VF.woff2) format('woff2');
}

/* ============================================================
   ざつね屋 事業HP — 定数（全ページ共通。ここだけを正本にする）
   色：ブランド4色＋文字用の濃色派生。書体：Noto Sans JP ＋ Roboto
   角丸：カード系 / 小物の2種（ボタン・バッジは 999px、円形は 50%）
   影：浮いている要素だけ。動き：300ms・ease-out の1系統
   ============================================================ */
:root {
  /* 色：ブランド */
  --teal:        #5BBDC8;
  --teal-dk:     #46A6B1; /* 装飾・枠線用（文字には使わない） */
  --teal-soft:   #EAF6F8;
  --teal-soft2:  #DCF0F2;
  --teal-line:   #D3E7EA;
  --card-tint:   #F6FBFC;
  --card-line:   #E1EEF0;
  --orange:      #F8981D;
  --orange-dk:   #E28511;
  --orange-soft: #FDF0DE;
  --warm-bg:     #FFF9F0;
  --warm-line:   #F6E4C8;
  --bluegray:    #839CAA; /* 装飾・枠線用（文字には使わない） */
  --bg:          #EFF4F5;
  --heading:     #3C3C3C;
  --text:        #575757;
  /* 色：文字用の濃色派生（WCAG AA） */
  --teal-text:   #31747C; /* 白 5.36:1 */
  --sub-text:    #556E7C; /* 白 5.37:1 */
  --orange-text: #9C5C0C; /* 白 5.32:1 */
  --teal-strong: #337F88; /* ティール地の白文字 4.63:1 */
  --teal-deep:   #24565C; /* 濃色面（フッターのリング・写真帯のveil・hover） */
  --orange-strong: #C26B06; /* 24px以上の大きい文字専用（白地 3.89:1） */
  --on-orange:   #332211; /* オレンジ地の文字 6.90:1 */
  --teal-deep-rgb: 36,86,92; /* --teal-deep の RGB。写真帯のveilの透過に使う */
  --teal-on-dark: #7BBFC4; /* フッター（濃色面）上のティール文字 */
  /* 角丸 */
  --r-card:      24px;
  --r-sm:        8px;
  /* 影（浮いている要素と hover だけ） */
  --sh-float:    0 8px 24px rgba(40,60,70,.12);
  --sh-2:        0 2px 6px rgba(40,60,70,.06), 0 14px 30px rgba(40,60,70,.10);
  --sh-orange-h: 0 16px 32px rgba(248,152,29,.44);
  /* 動き */
  --dur:         300ms;
  --dur-reveal:  400ms;
  --ease:        cubic-bezier(.22,.61,.36,1);
  /* 余白（4pxグリッド。狭幅では各ページが上書き） */
  --s4: 16px; --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* 本文の基準（全ページ共通・2026-10-10 ユーザー決定：16px に統一）。各ページの <style> には body の文字設定を書かない */
body {
  font-family: 'Roboto', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', system-ui, sans-serif;
  background: #fff; color: var(--text); font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}


/* ── ヒーロー（3a 合成: ドットグリッド＋多層ブロブ＋写真コンポジション） ── */
.hero {
  position: relative; background: var(--bg);
  padding: 64px 24px 0; overflow: hidden; text-align: center;
}

/* 2カラムグリッド（テキスト＋ビジュアル） */
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 40px; align-items: center; max-width: 1000px; margin: 0 auto 48px;
  text-align: left;
}
.hero-grid .hero-lead { max-width: 460px; margin-left: 0; }
.hero-grid .hero-cta { justify-content: flex-start; }
.hero-grid .hero-copy h1 { font-size: 33px; line-height: 1.5; letter-spacing: 0.01em; }
.nw { white-space: nowrap; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-grid .hero-lead { margin: 24px auto 0; }
  .hero-grid .hero-cta { justify-content: center; }
  .hero-grid .hero-copy h1 { font-size: 24px; }
}

/* 写真コンポジション */
.hero-visual { position: relative; height: 430px; }
@media (max-width: 860px) { .hero-visual { height: 360px; max-width: 480px; margin: 0 auto; width: 100%; } }
.hero h1 {
  font-weight: 900; color: var(--heading);
  font-size: 42px; line-height: 1.42; margin: 24px 0 0;
}
@media (max-width: 640px) { .hero h1 { font-size: 26px; } }
.hero h1 em {
  position: relative; font-style: normal; color: var(--teal-text); white-space: nowrap; z-index: 0;
}
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(91,189,200,0.24); border-radius: var(--r-sm); z-index: -1;
}
.hero-lead { font-size: 16px; color: var(--text); max-width: 640px; margin: 24px auto 0; line-height: 2.05; }
@media (max-width: 640px) { .hero-lead { font-size: 14px; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
.hero-note { font-size: 14px; color: var(--sub-text); margin: 16px 0 48px; }

/* ── ボタン ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Noto Sans JP', sans-serif; font-size: 16px; font-weight: 700; line-height: 1.9; letter-spacing: .02em;
  text-decoration: none; text-align: center; cursor: pointer;
  padding: 16px 32px; border-radius: 999px; border: 1.5px solid transparent;
  white-space: normal; text-wrap: balance; /* 長い文言は幅に応じて折り返す（はみ出し防止。ページ側で nowrap にしない） */
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; fill: none; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-fill { background: var(--orange); color: var(--on-orange); }
.btn-fill:hover { background: var(--orange-dk); }
.btn-white { background: #fff; color: var(--teal-text); border:       1px solid var(--card-line); }
.btn-white:hover { background: #f4fafb; }
.btn-teal { background: var(--teal-strong); color: #fff; } /* 白文字 4.63:1 */
.btn-teal:hover { background: var(--teal-deep); } /* 白文字 8.2:1 */
/* スマホ幅では文言が長いボタン（「まず30分、話を聞かせてください」等）がボタンの外へはみ出していた。
   各ページの<style>にある .btn{white-space:nowrap} より優先させるため !important で折り返しを許可する */
@media (max-width: 680px) {
  .btn { white-space: normal !important; text-wrap: balance; text-align: center; padding-left: 24px !important; padding-right: 24px !important; }
}

/* ── 帯レイアウト・見出し ──
   .band 単体はどのページでも使用されていない死にクラス（band-white/tint/tight も未使用）。
   index.html / index-v2.html が独自に定義する「写真帯」コンポーネント .band（photo band, bcontent付き）
   と名前が衝突し、ここの上下左右の余白が同一セレクタ特異度の後勝ちルールでも非上書きプロパティとして
   漏れ込み、モバイル幅でTOGETHER帯が異常に縦長になるバグの原因だったため padding を削除した。 */
.band { position: relative; overflow: hidden; }
.container { max-width: 920px; margin: 0 auto; text-align: center; position: relative; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; color: var(--heading); line-height: 1.25; letter-spacing: -0.01em; margin: 12px 0 0; }
@media (max-width: 640px) { .section-title { font-size: clamp(1.4rem, 5vw, 1.8rem); } }
.section-lead { font-size: 15px; color: var(--text); line-height: 1.9; max-width: 680px; margin: 16px auto 0; }

/* ── お悩み ── */
.worry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; }
@media (max-width: 640px) { .worry-grid { grid-template-columns: 1fr; } }

/* ── サービスカード（1b） ── */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--card-tint); border: 1px solid var(--card-line); border-radius: var(--r-card);
  padding: 0 0 32px; overflow: hidden;
  display: flex; flex-direction: column;
}

/* ── 料金 ── */

/* ── CV（全ページ共通：相談・申込みセクション。旧 .cv-panel/.cv-grid はどのページからも参照されなくなったため、各ページ個別の <style> にあった最新版へ統一） ── */
.cv-section { background: var(--bg); padding: 96px 0; position: relative; }
@media (max-width: 680px) { .cv-section { padding: 64px 0; } }
.cv-card {
  position: relative; max-width: 940px; margin: 0 auto;
  background: #fff; border-radius: var(--r-card); padding: 16px 16px 0;
  border:       1px solid var(--card-line);
  overflow: hidden;
}
.cv-topbar { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-dk)); }
.cv-inner { position: relative; padding: 48px; text-align: center; }
@media (max-width: 680px) { .cv-inner { padding: 32px 24px; } }
.cv-tag {
  position: relative; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 700 12.5px/1 'Roboto', sans-serif; letter-spacing: 0.16em; color: var(--orange-text);
  background: var(--orange-soft); border: 1px solid var(--warm-line); padding: 8px 16px; border-radius: 999px;
}
.cv-tag svg { width: 15px; height: 15px; stroke: var(--orange-dk); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.cv-inner h2 {
  position: relative; font-size: clamp(24px, 3.6vw, 34px); margin: 24px 0 0; letter-spacing: 0.01em;
  color: var(--heading); font-family: 'Noto Sans JP', sans-serif; font-weight: 900;
}
.cv-inner .lead {
  position: relative; font-family: 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 1.9;
  color: var(--text); max-width: 560px; margin: 16px auto 0;
  line-break: strict; word-break: normal; overflow-wrap: normal; text-wrap: pretty; /* keep-all＋anywhere だと禁則より優先され「。」「？」だけが次行に落ちる */
}
.cv-cta-row { position: relative; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 32px; }
@media (max-width: 680px) { .cv-cta-row .btn { width: 100%; } }
.cv-foot { position: relative; font-size: 14px; line-height: 1.6; color: var(--sub-text); margin-top: 24px; }
.cv-foot a { color: var(--teal-text); font-weight: 700; text-decoration: none; }
.cv-foot a:hover { text-decoration: underline; }
.cv-foot a, .contact-mail a { display: inline-block; padding: 4px 0; } /* 文中リンクでも押せる高さを24px以上に */

/* ── 無料ツール ── */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: left; }
@media (max-width: 640px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card {
  display: block; text-decoration: none;
  background: var(--card-tint); border: 1px solid var(--card-line); border-radius: var(--r-card);
  padding: 32px 32px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(40,60,70,0.12); }

/* ── 選ばれる理由 ── */
table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
thead th {
  background: var(--bluegray); color: #fff; font-weight: 700;
  padding: 12px 20px; text-align: left; font-size: 12px; letter-spacing: 0.06em;
}
tbody tr:nth-child(even) { background: var(--card-tint); }
td { padding: 12px 20px; border-bottom: 1px solid #EDF3F4; color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 700; color: var(--heading); white-space: nowrap; }

/* ── ご相談の流れ ── */
.step-num {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r-sm);
  background: #fff; color: var(--teal-text); font-weight: 900; font-size: 17px; font-family: 'Roboto', sans-serif;
  display: flex; align-items: center; justify-content: center;
}

/* ── 問い合わせ ── */

/* ── サービス詳細（下層） ── */

/* ── (旧フッタークラス削除済み。新フッターは .site-footer を使用) ── */

/* ============================================================
   ざつね屋 グローバルヘッダー・フッター・追加コンポーネント
   style.css 末尾追記（既存スタイルは変更しない）
   ============================================================ */

/* ── A. サイトヘッダー（スティッキーナビ） ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--card-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
}

.site-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.12em;
  line-height: 1.2;
}

.site-logo__pre {
  font-size: 0.73em;
  font-weight: 400;
  color: var(--teal-text);
  letter-spacing: 0.03em;
}

.site-logo__ai {
  color: var(--orange);
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}

.site-nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  display: inline-block;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--teal-text);
  background: var(--teal-soft);
}

.site-nav__item--dropdown {
  position: relative;
}

.site-nav__dropdown-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.03em;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--dur) var(--ease);
}

.site-nav__dropdown-trigger:hover {
  color: var(--teal-text);
  background: var(--teal-soft);
}

.site-nav__caret {
  font-size: 0.75rem;
  pointer-events: none;
}

.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: var(--sh-float);
  border-radius: var(--r-sm);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.site-nav__item--dropdown.is-open .site-nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav__dropdown-link {
  display: block;
  padding: 8px 16px;
  color: var(--heading);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-nav__dropdown-link:hover {
  background: var(--teal-soft);
  color: var(--teal-text);
}

.site-nav__cta {
  background: var(--teal-strong); /* 白文字 4.63:1 */
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav__cta:hover {
  background: var(--teal-deep); /* 白文字 8.2:1 */
  color: #fff;
  box-shadow: 0 4px 18px rgba(91,189,200,0.40);
  transform: translateY(-1px);
}

/* ── B. モバイル ハンバーガーメニュー ── */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 40px;
  height: 40px;
  margin-left: 8px;
}

.site-nav__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  flex-shrink: 0; /* 3本合計36px > ボタン内側24pxのためflexが高さを0に圧縮してしまい、
                     アイコンが非表示になるバグを修正（2026-08-05 導入・2026-10-02 発見） */
  background: currentColor;
  color: var(--heading);
  margin: 4px 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(2) {
  opacity: 0;
}

.site-nav__hamburger.is-open .site-nav__hamburger-line:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-nav__hamburger {
    display: flex;
    /* .site-nav には margin-left: auto が付いているが、このブレークポイントでは
       .site-nav が display: none になり flex レイアウトから外れるため、
       ハンバーガーボタン自身にマージンを持たせてヘッダー右端に固定する
       （2026-08-05 導入・2026-10-02 発見のロゴ隣接バグを修正） */
    margin-left: auto;
  }

  .site-header .site-nav {
    display: none;
    position: absolute;
    /* top: 64px固定だとヘッダー実高さ（72px＋border 1px＝73px）とズレ、
       パネル上端がヘッダー下端の9px上から始まってしまっていた。
       top: 100% にして親（.site-header、position: sticky）の実際の下端に
       常時ぴったり接続させる（2026-10-02 根本原因調査で発見・修正） */
    top: 100%;
    left: 0;
    right: 0;
    /* パネル背景が rgba(255,255,255,.98) の半透明だった上に、親.site-headerの
       backdrop-filter: blur(12px) が作るスタッキング・コンテキストの影響で、
       Safari/WebKit系ブラウザではメニュー項目の隙間から背後のページ本文が
       透けて見える不具合があった（PR #35はスティッキーCTAバナーの重なりのみ対応し、
       このパネル自体の不透明度は未対応だった）。背景を完全不透明の#fffに変更し、
       z-indexを明示してパネル自身の重なり順を親のスタッキング文脈から独立させる
       （2026-10-02 根本修正） */
    background: #fff;
    z-index: 10;
    border-bottom: 1px solid var(--card-line);
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-left: 0;
    box-shadow: var(--sh-float);
  }

  .site-header .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .site-nav__item {
    width: 100%;
  }

  .site-nav__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .site-nav__dropdown-trigger {
    width: 100%;
    padding: 12px 16px;
    /* button要素はiOS Safariで中身が中央寄せになるため、他のメニュー項目と揃えて左寄せを明示 */
    justify-content: flex-start;
    text-align: left;
  }

  .site-nav__item--dropdown {
    position: static;
  }

  .site-nav__dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    pointer-events: none;
    transform: none;
    display: none;
    padding: 0 0 0 16px;
  }

  .site-nav__item--dropdown.is-open .site-nav__dropdown {
    display: block;
    pointer-events: auto;
  }

  .site-nav__cta {
    margin-top: 12px;
    margin-left: 0;
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* 狭幅ではロゴのサブテキスト（キャッチコピー）がハンバーガーボタンの
     表示幅を圧迫し、margin-left: auto が実質0になって隣接して見える
     バグを修正（2026-10-02 発見）。ブランド名「ざつね屋」本体は残し、
     サブテキストのみ非表示にする。 */
  .site-logo__pre {
    display: none;
  }
}

/* ===== Footer ===== */
.site-footer {
  background: #1a3a3e;
  color: #c8dde0;
  padding: 64px 0 0;
  margin-top: 80px;
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9bbdc1;
  margin: 0;
}
.site-footer__sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer__col-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-on-dark);
  margin-bottom: 12px;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 0.875rem;
  color: #b0cdd1;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.site-footer__col ul li a:hover {
  color: #fff;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  font-size: 0.75rem;
  color: var(--teal-on-dark);
  text-decoration: none;
}
.site-footer__legal a:hover {
  color: #fff;
}
.site-footer__copy {
  font-size: 0.75rem;
  color: var(--teal-on-dark);
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .site-footer__sitemap {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .site-footer__sitemap {
    grid-template-columns: 1fr;
  }
}

/* ── D. 追従スティッキーCTAバナー（V3 v2/v3-top-page.css の構成を既存トークンで再現：
       濃いティール面＋ピル型オレンジボタン＋円形枠線の閉じるボタン） ── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 80px;
  padding: 12px 80px 12px 24px;
  background: var(--teal-deep);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -12px 32px rgba(var(--teal-deep-rgb),.22);
}
.sticky-cta.is-closed { display: none; } /* nav.js が閉じるボタン押下時に付与 */

.sticky-cta__text {
  margin: 0;
  color: #fff;
  font: 700 14px/1.6 'Noto Sans JP', sans-serif;
  letter-spacing: .02em;
}

.sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 32px;
  border-radius: 999px;
  /* AI診断ボタン。サイト共通の色の役割（オレンジ＝お問い合わせ）に合わせ、濃いティール地の上では白地＋ティール文字にする */
  background: #fff;
  color: var(--teal-text); /* 白地のティール文字 5.36:1 */
  font: 900 14px/1.5 'Noto Sans JP', sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sticky-cta__btn:hover {
  background: var(--teal-soft);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}
.sticky-cta__btn:focus-visible,
.sticky-cta__close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sticky-cta__close {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .48);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font: 400 15px/1 'Noto Sans JP', sans-serif;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sticky-cta__close:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
}

/* バナーがページ末尾（フッター）を隠さないよう、表示中だけ下余白を確保 */
@media (min-width: 769px) {
  body:has(.sticky-cta:not(.is-closed)) { padding-bottom: 80px; }
}
@media (max-width: 768px) {
  /* スマホ固定CTAバー（.mobile-cta-bar）があるページでは同じ導線が二重になるため隠す */
  body:has(.mobile-cta-bar) .sticky-cta { display: none; }
  /* ハンバーガーメニュー展開中は、スティッキーCTAバナー（z-index:200）が
     ドロップダウン（.site-nav、z-index:auto／.site-header のスタッキングコンテキスト内）より
     常に手前に描画され、メニューの下部やページ本文と重なって見えるバグを修正。
     展開中はバナー自体を一時的に隠す（2026-10-02） */
  body:has(.site-nav.is-open) .sticky-cta { display: none; }
  .sticky-cta {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 12px;
    min-height: 0;
    padding: 12px 64px 16px 16px;
  }
  .sticky-cta__text { width: 100%; font-size: 14px; text-wrap: balance; }
  .sticky-cta__btn { min-height: 40px; padding: 8px 20px; font-size: 14px; }
  .sticky-cta__close { right: 12px; }
  body:not(:has(.mobile-cta-bar)):has(.sticky-cta:not(.is-closed)) { padding-bottom: calc(96px + 32px); } /* 14px文字で2行に折り返す固定バーの高さ分 */
}

/* ── パンくず（全ページ共通。リンクは高さ24px以上、区切りは文字色と同じ --sub-text で 5:1 以上） ── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font: 400 14px/1.6 'Noto Sans JP', sans-serif; color: var(--sub-text); margin-bottom: 24px;
}
.breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; color: var(--sub-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-text); text-decoration: underline; }
.breadcrumb span:last-child { min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.breadcrumb-sep { color: var(--sub-text); font-size: 12px; }

/* ── E. 新規ページ用の追加スタイル ── */
.page-hero {
  padding: 80px 24px;
  text-align: center;
  background: var(--bg);
}

.page-hero__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.page-hero__lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--sub-text);
  max-width: 640px;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.card {
  background: #fff;
  padding: 32px;
  border-radius: var(--r-sm);
  border:       1px solid var(--card-line);
}

/* ── 開発実績のステータスタグ（works.html。カード本体は末尾の .work-feature） ── */
.work-tag {
  display: inline-block;
  max-width: 100%;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.work-tag--client { background: var(--teal-soft2); color: var(--teal-text); border: 1px solid var(--card-line); }
.work-tag--product { background: var(--orange-soft); color: var(--orange-text); border: 1px solid var(--warm-line); }

/* FAQリスト（dl/dt/dd 構造） */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.faq-item {
  border-bottom: 1px solid var(--card-line);
}


.faq-item p {
  padding: 0 0 20px 0;
  line-height: 1.8;
  color: var(--sub-text);
  letter-spacing: 0.02em;
}

/* dt/dd スタイル（現在の実装） */
.faq-question {
  padding: 20px 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 0;
}

.faq-answer {
  padding: 0 0 20px 0;
  margin-left: 0;
  line-height: 1.8;
  color: var(--sub-text);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.faq-answer a {
  color: var(--teal-text);
  text-decoration: none;
  font-weight: 700;
}

.faq-answer a:hover {
  text-decoration: underline;
}

.thankyou-wrap {
  text-align: center;
  padding: 96px 24px;
}

.thankyou-wrap .btn--primary {
  margin-top: 32px;
}

.section-padded {
  padding: 64px 24px;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
}

.section-cta p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

/* btn--primary（BEMスタイルのCTAボタン） */
.btn--primary {
  background: var(--orange);
  color: var(--on-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}

.btn--primary:hover {
  background: var(--orange-dk);
  color: var(--on-orange);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(248, 152, 29, 0.44);
}

/* ============================================================
   デザイン品質向上パッチ
   ============================================================ */

/* ── 1. ボタン階層整理（新規追加クラス：既存を壊さない） ── */

/* 主CTA（お問い合わせ＝オレンジ。全ページ共通の正本） */
.btn-primary { background: var(--orange); color: var(--on-orange); } /* オレンジ上の濃色文字 6.90:1 */
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-2px); box-shadow: var(--sh-orange-h); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(248, 152, 29, .4); }

/* 副CTA（枠線スタイル） */
.btn-outline { background: transparent; color: var(--teal-text); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); transform: translateY(-2px); }
.btn-outline:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--teal-text); border-color: var(--teal-line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn-ghost:active { transform: translateY(0); }

/* 3次リンク（テキストリンク） */

/* ── 2. カードホバーエフェクト（style.css 内のカードクラス） ── */
.service-card,
.card {
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover,
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
}

/* ── 3. スクロール連動フェードイン ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-reveal) var(--ease), transform var(--dur-reveal) var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* 動きを減らす設定のときは、全ページ共通で動きを止める（フェードインは即表示） */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ── 4. スマホ専用固定CTAバー ── */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  }
  .mobile-cta-bar a {
    flex: 1;
    max-width: 200px;
    /* 片方が2行に折り返しても、もう片方の文字を上下中央に揃える */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
  }
  /* サイト共通の色の役割：お問い合わせ＝オレンジ（主）、AI診断＝ティール（副） */
  .mobile-cta-bar .mobile-cta-primary {
    background: var(--orange);
    color: var(--on-orange); /* オレンジ上の濃色文字 6.90:1 */
  }
  .mobile-cta-bar .mobile-cta-sub {
    background: var(--teal-strong);
    color: #fff; /* 4.63:1 */
  }
  /* スマホ下部バーがコンテンツと重ならないよう余白 */
  body {
    padding-bottom: 80px;
  }
}

/* ============================================================
   お問い合わせフォーム（Google Form 埋め込み）
   ============================================================ */

/* ============================================================
   チラシ準拠デザイン言語（営業資料 docs/営業資料/PNG 準拠）
   - 円形アイコンバッジ／ソリッド番号バッジ／斜めカット写真／
     山並み・街並みシルエット／見出しキーワード強調／短い横罫線
   - 色は既存トーンから導出した3変数のみ追加
   ============================================================ */

/* ── 1. ヒーロー共通：白→淡ティールの斜めグラデーション ── */
.hero-diagonal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #fff 0%, #fff 40%, var(--bg) 78%, var(--teal-soft2) 100%);
}
.hero-diagonal > .container { position: relative; z-index: 1; }

/* 右上コーナーの斜めカット装飾（img: assets/corner-diagonal.svg） */
.corner-diagonal {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: clamp(150px, 28vw, 380px); height: auto;
  pointer-events: none; user-select: none;
}

/* 斜めカット写真パネル（サービス詳細ヒーロー右側）。960px以下はヒーロー下部の斜め帯に切り替え */
.hero-photo-panel {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: 0;
  width: min(40%, 500px);
  clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.hero-photo-panel img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo-panel::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.55), rgba(255,255,255,0) 42%);
}
.hero-photo-panel::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(162deg, rgba(91,189,200,0) 72%, rgba(91,189,200,.38) 72.4%, rgba(70,166,177,.6) 100%);
}
.hero-photo-panel__edge {
  position: absolute; top: 0; bottom: 0; right: 14px; z-index: 0;
  width: min(40%, 500px);
  background: var(--orange);
  clip-path: polygon(34% 0, calc(34% + 2px) 0, 2px 100%, 0 100%);
  pointer-events: none;
}
@media (max-width: 960px) {
  .hero-photo-panel {
    position: relative; inset: auto; width: 100%; height: 170px; margin-top: 32px;
    clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%);
  }
  .hero-photo-panel::before { display: none; }
  .hero-photo-panel__edge { display: none; }
}

/* ── 2. 円形ソフト背景つきアイコンバッジ ── */
.icon-badge-circle {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--badge-size, 88px); height: var(--badge-size, 88px);
  border-radius: 50%; background: var(--teal-soft); color: var(--teal-deep);
}
.icon-badge-circle svg {
  display: block; width: 52%; height: 52%;
  stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none;
}
.icon-badge-circle--ring { background: #fff; box-shadow: inset 0 0 0 2px var(--teal); }
.icon-badge-circle > .step-badge-solid { position: absolute; top: -2px; left: -4px; }

/* 円形アイコンを矢印でつなぐフロー（整理する → やめる → 仕組みをつくる 等） */
.icon-flow {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: center; align-items: flex-start;
  gap: var(--flow-gap, 32px);
}
.icon-flow__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.icon-flow__label {
  margin-top: 8px; font: 700 14px/1.5 'Noto Sans JP', sans-serif;
  color: var(--heading); white-space: nowrap; letter-spacing: .02em;
}
.icon-flow__item:not(:last-child)::after {
  content: ""; position: absolute;
  top: calc(var(--badge-size, 88px) / 2 - 6px);
  right: calc(var(--flow-gap, 36px) / -2 - 10px);
  width: 20px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12' fill='none' stroke='%235BBDC8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 6h17M13 1l5 5-5 5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.icon-flow-caption {
  font: 700 12.5px/1 'Roboto', 'Noto Sans JP', sans-serif; letter-spacing: .16em;
  color: var(--teal-text); margin: 0 0 12px;
}
@media (max-width: 680px) {
  .icon-flow { --flow-gap: 22px; }
  .icon-flow__label { font-size: 12px; white-space: normal; text-wrap: balance; }
}
@media (max-width: 380px) {
  .icon-flow { --flow-gap: 16px; }
  .hero-flow .icon-flow { --badge-size: 52px; } /* 各ページの .hero-flow{--badge-size:60px} より強くする */
}

/* ジグザグ版（サービス紹介資料の表紙：円形アイコンを曲線の点線で上から下へつなぐ）
   961px以上で縦ジグザグ。960px以下は通常の横並び .icon-flow（矢印つなぎ）に戻す */

/* ── 3. 塗りつぶし円の番号バッジ（進行フロー用） ── */
.step-badge-solid {
  --step-size: 44px;
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: var(--step-size); height: var(--step-size); border-radius: 50%;
  background: var(--teal-strong); color: #fff;
  font-family: 'Roboto', sans-serif; font-weight: 900; font-size: calc(var(--step-size) * .44); line-height: 1;
  box-shadow: 0 0 0 4px #fff;
}
.step-badge-solid--sm { --step-size: 28px; box-shadow: 0 0 0 3px #fff; }
.step-badge-solid--lg { --step-size: 68px; }

/* 縦方向の工程フロー（番号バッジ＋点線コネクタ） */
.step-flow-vertical { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.step-flow-vertical__item { position: relative; display: flex; align-items: flex-start; gap: 16px; }
.step-flow-vertical__item:not(:last-child)::before {
  content: ""; position: absolute; left: 21px; top: 50px; bottom: -12px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--teal) 0 4px, transparent 4px 9px);
}
.step-flow-vertical__text {
  flex: 1; min-width: 0; padding: 8px 20px; border-radius: var(--r-sm); background: var(--bg);
  font: 500 15px/1.75 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty;
}

/* ── 4. 山並み・街並みシルエット（img: assets/skyline.svg） ── */
.skyline-illust {
  display: block; width: 100%; height: clamp(64px, 9vw, 120px);
  object-fit: cover; object-position: center bottom;
  pointer-events: none; user-select: none;
}

/* ── 5. 見出し内のキーワード色分け強調 ── */
.headline-accent { color: var(--teal-strong); }
.headline-accent--orange { color: var(--orange-strong); }

/* ── 6. 細い横罫線（見出し前の短いアクセント線／見出し下の2トーン罫線） ── */
.rule-accent { display: block; width: 56px; height: 3px; border-radius: var(--r-sm); background: var(--teal); margin: 0 0 20px; }
.rule-accent--center { margin-left: auto; margin-right: auto; }
.rule-split {
  display: block; width: min(240px, 70%); height: 3px; border-radius: var(--r-sm); margin: 12px 0 0;
  background: linear-gradient(90deg, var(--teal) 0 42%, var(--card-line) 42% 100%);
}

/* ── 7. 下層ページ共通ヒーロー（左揃えの型）
   対象：service-management / service-order / service-banso / works / faq / profile / contact / privacy / tokusho
   並び：パンくず → 英大文字の小見出し → h1 → リード文 → 区切り線 →（ページ固有の要素）
   ※ 404.html・thank-you.html は状態表示ページのため中央揃えのまま（.page-hero を使う。ここでは触らない） ── */
:root { --hero-pt: 64px; --hero-pb: 32px; --hero-gutter: 32px; --hero-measure: 640px; }
@media (max-width: 680px) { :root { --hero-pt: 40px; --hero-pb: 24px; --hero-gutter: 20px; } }
.sub-hero { padding: var(--hero-pt) 0 0; text-align: left; }
.sub-hero .skyline-illust { margin-top: var(--hero-pb); }
.sub-hero__frame { position: relative; }
.sub-hero--photo .sub-hero__frame { padding-bottom: 64px; }
@media (max-width: 960px) { .sub-hero--photo .sub-hero__frame { padding-bottom: 0; } }
.sub-hero__inner {
  position: relative; z-index: 1; max-width: 1120px; margin: 0 auto;
  padding: 0 var(--hero-gutter); text-align: left;
}
.sub-hero__inner > * { max-width: var(--hero-measure); }
.sub-hero .breadcrumb { margin-bottom: 24px; }
.sub-hero .eyebrow {
  display: block; margin: 0 0 12px;
  font: 700 12.5px/1.6 'Roboto', 'Noto Sans JP', sans-serif;
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal-text);
  overflow-wrap: anywhere; text-wrap: balance;
}
.sub-hero__title {
  font: 900 clamp(28px, 4vw, 40px)/1.3 'Noto Sans JP', sans-serif;
  letter-spacing: .01em; color: var(--heading); margin: 0 0 16px;
  text-wrap: balance; overflow-wrap: anywhere;
}
.sub-hero__lead {
  font: 400 16px/1.9 'Noto Sans JP', sans-serif; letter-spacing: .02em; color: var(--text);
  margin: 0; line-break: strict; word-break: normal; overflow-wrap: normal; text-wrap: pretty; /* anywhere だと禁則より優先され「。」だけが次行に落ちるため normal */
}
.sub-hero .rule-accent { margin: 24px 0 0; }
.sub-hero .hero-cta { justify-content: flex-start; margin-top: 24px; }
/* ページ固有：サービスページの対象者ピル（リード文・区切り線の下） */
.svc-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.svc-hero-target {
  font: 700 14px/1.5 'Noto Sans JP', sans-serif; color: var(--sub-text);
  background: #fff; border: 1px solid var(--card-line); padding: 8px 16px; border-radius: 999px;
}
/* ページ固有：faq の代表イラスト（PCはテキスト列の右、スマホはテキストの下） */
.sub-hero__inner > .sub-hero__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; max-width: none; }
.sub-hero__text { flex: 1; min-width: 0; max-width: var(--hero-measure); }
.sub-hero__portrait { flex: none; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top center; border: 3px solid #fff; }
@media (max-width: 680px) {
  .sub-hero__inner > .sub-hero__row { flex-direction: column; }
  .sub-hero__portrait { width: 72px; height: 72px; }
}

/* ============================================================
   チラシ準拠デザイン言語 第2弾（個別実装サービス紹介資料 2・4〜6ページ準拠）
   - 抽象ノートPCモックアップ／実績カード（2カラム＋解決した課題ボックス）／
     自社開発グリッド／対象企業アイコンカード／成果物カード／価格パネル強調
   - 実際のアプリ画面は模倣しない。画面内は表の行・グラフの棒等の抽象図形のみ
   ============================================================ */

/* ── 7. 円形アイコンバッジのサイズ・色バリエーション ── */
.icon-badge-circle--md { --badge-size: 64px; }
.icon-badge-circle--white { background: #fff; }
.icon-badge-circle--orange { background: var(--orange-soft); color: var(--orange-dk); }

/* ── 8. 抽象ノートPCモックアップ（CSSのフレーム＋SVGの抽象UI） ── */
.mock-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 24px 20px 20px; border-radius: var(--r-card);
  background: radial-gradient(120% 90% at 70% 20%, #fff 0%, var(--teal-soft) 55%, var(--teal-soft2) 100%);
}
.mock-laptop { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.mock-laptop__screen {
  position: relative; padding: 8px 8px 8px; border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--teal-deep);
}
.mock-laptop__screen svg { display: block; width: 100%; height: auto; border-radius: var(--r-sm); background: #fff; }
.mock-laptop__base {
  position: relative; height: 11px; margin: 0 -5%;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: linear-gradient(180deg, #E4ECEE 0%, #C3D2D6 100%);
}
.mock-laptop__base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 4px;
  transform: translateX(-50%); border-radius: 0 0 var(--r-sm) var(--r-sm); background: #B3C4C9;
}
/* 抽象UIの塗り（SVG内で使用） */
.mk-side   { fill: var(--bg); }
.mk-line   { fill: var(--card-line); }
.mk-mute   { fill: #C9D7DB; }
.mk-soft   { fill: var(--teal-soft2); }
.mk-teal   { fill: var(--teal); }
.mk-deep   { fill: var(--teal-strong); }
.mk-dark   { fill: var(--teal-deep); }
.mk-orange { fill: var(--orange); }
.mk-osoft  { fill: var(--orange-soft); }
.mk-white  { fill: #fff; }
.mk-frame  { fill: #fff; stroke: var(--card-line); stroke-width: 1.5; }
.mk-stroke { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mk-stroke--orange { stroke: var(--orange); }
.mk-stroke--line { stroke: var(--card-line); stroke-width: 2; }
.mk-stroke--brush { stroke: var(--heading); stroke-width: 7; }
.mk-stroke--dash { stroke-width: 2; stroke-dasharray: 5 5; }
.mk-frame--orange { stroke: var(--orange); stroke-width: 2; }
.mk-check  { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk-ring   { fill: none; stroke: var(--teal-soft2); stroke-width: 7; }
.mk-ring--on { stroke: var(--teal); stroke-dasharray: 48 100; }
.mk-guide  { fill: none; stroke: var(--card-line); stroke-width: 1.2; stroke-dasharray: 4 4; }
.mk-faint  { opacity: .35; }

/* ── 9. 実績カード（チラシ4ページ：番号バッジ＋吹き出し見出し＋開発内容／モックアップ＋解決した課題） ── */
.work-feature-list { display: flex; flex-direction: column; gap: 32px; }
.work-feature {
  position: relative; text-align: left;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-card);
  padding: 32px 40px 40px;
}
.work-feature--product { border-color: var(--warm-line); }
.work-feature__head { display: flex; align-items: center; gap: 16px; }
.work-feature__head .step-badge-solid { --step-size: 52px; }
.work-feature--product .work-feature__head .step-badge-solid { background: var(--orange-text); box-shadow: 0 0 0 4px #fff; }
.work-feature__catch {
  position: relative; flex: 1 1 auto; min-width: 0;
  margin: 0; padding: 12px 24px; border-radius: 999px;
  background: var(--teal-soft); color: var(--heading);
  font: 900 clamp(19px, 2.4vw, 23px)/1.5 'Noto Sans JP', sans-serif; letter-spacing: .02em;
  text-wrap: balance;
}
.work-feature__catch::before {
  content: ""; position: absolute; left: -9px; top: 50%; width: 14px; height: 16px;
  transform: translateY(-50%);
  background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.work-feature--product .work-feature__catch { background: var(--orange-soft); }
.work-feature__tag-row { margin-top: 16px; }
.work-feature__name {
  margin: 8px 0 0; color: var(--heading);
  font: 900 clamp(20px, 2.6vw, 26px)/1.5 'Noto Sans JP', sans-serif; letter-spacing: .02em;
  text-wrap: balance;
}
.work-feature__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: 24px 32px; align-items: center; margin-top: 24px;
}
.work-feature__content { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.work-feature__content-text { flex: 1; min-width: 0; }
.work-feature__label {
  display: block; color: var(--heading);
  font: 900 17px/1.5 'Noto Sans JP', sans-serif; letter-spacing: .04em;
}
.work-feature__text { margin-top: 8px; font: 400 14.5px/1.95 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty; }
.work-feature__text + .work-feature__text { margin-top: 8px; }
.work-solved {
  display: flex; gap: 16px; align-items: flex-start;
  margin-top: 24px; padding: 24px 24px; border-radius: var(--r-sm);
  background: var(--warm-bg); border: 1px solid var(--warm-line);
}
.work-solved__text { flex: 1; min-width: 0; }
.work-solved__label {
  display: block; color: var(--orange-text);
  font: 900 17px/1.5 'Noto Sans JP', sans-serif; letter-spacing: .04em;
}
.work-solved__body { margin-top: 4px; font: 500 14.5px/1.95 'Noto Sans JP', sans-serif; color: var(--heading); text-wrap: pretty; }
@media (max-width: 860px) {
  .work-feature__body { grid-template-columns: 1fr; }
  .work-feature__visual { max-width: 460px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .work-feature { padding: 24px 20px 24px; border-radius: var(--r-card); }
  .work-feature__head { gap: 12px; }
  .work-feature__head .step-badge-solid { --step-size: 42px; }
  .work-feature__catch { padding: 12px 16px; border-radius: var(--r-card); }
  .work-feature__content { gap: 12px; }
  .work-feature__content .icon-badge-circle { --badge-size: 52px; }
  .work-solved { gap: 12px; padding: 20px 16px; }
  .work-solved .icon-badge-circle { --badge-size: 44px; }
  .mock-stage { padding: 16px 16px 16px; }
}

/* ── 10. セクション見出し（チラシ準拠：短い罫線＋大見出し＋リード） ── */
.flyer-section-head { text-align: left; margin-bottom: 32px; }
.flyer-section-head__title {
  margin: 0; color: var(--heading);
  font: 900 clamp(26px, 3.6vw, 36px)/1.3 'Noto Sans JP', sans-serif; letter-spacing: .02em;
}
.flyer-section-head__lead { margin-top: 12px; font: 500 15.5px/1.9 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty; }

/* ── 11. 自社開発グリッド（チラシ5ページ：アイコン円＋タイトル＋説明＋モックアップ） ── */
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; text-align: left; }
@media (max-width: 760px) { .own-grid { grid-template-columns: minmax(0, 1fr); } } /* 1fr だと keep-all の長い文節で列が画面幅を超える */
.own-card {
  display: flex; flex-direction: column; gap: 24px;
  padding: 24px 24px 24px; border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--card-tint) 0%, var(--teal-soft) 100%);
  border: 1px solid var(--card-line);
}
.own-card__head { display: flex; gap: 16px; align-items: flex-start; }
.own-card__text { flex: 1; min-width: 0; }
.own-card__title { margin: 0; color: var(--heading); font: 900 19px/1.5 'Noto Sans JP', sans-serif; letter-spacing: .02em; }
.own-card__status {
  display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px;
  font: 700 12px/1.6 'Noto Sans JP', sans-serif; letter-spacing: .04em;
  background: #fff; color: var(--teal-text); border: 1px solid var(--card-line);
}
.own-card__status--prep { background: var(--orange-soft); color: var(--orange-text); border-color: var(--warm-line); }
.own-card__desc { margin-top: 8px; font: 400 14px/1.9 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty; }
.own-card__link { display: inline-flex; align-items: center; min-height: 24px; margin-top: 4px; font: 700 14px/1.6 'Noto Sans JP', sans-serif; color: var(--teal-text); }
.own-card__visual { margin-top: auto; }
.own-card .mock-laptop { max-width: 320px; }
@media (max-width: 560px) {
  .own-card { padding: 24px 20px 20px; }
  .own-card__head { gap: 12px; }
  .own-card__head .icon-badge-circle { --badge-size: 52px; }
}

/* ── 12. 対象企業カード（チラシ2ページ「対応範囲」：アイコン円＋文言の角丸ソフト背景カード） ── */
.need-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.need-card {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 20px 20px; border-radius: var(--r-sm);
  background: var(--teal-soft); border: 1px solid var(--card-line);
}
.need-card .icon-badge-circle { --badge-size: 60px; }
.need-card__text { flex: 1; min-width: 0; font: 700 15px/1.7 'Noto Sans JP', sans-serif; color: var(--heading); text-wrap: pretty; }
.need-grid > .need-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* アクセント強調（対象企業など、特に強く示したい1枚だけ色を変える） */
.need-card--accent { background: var(--orange-soft); border-color: var(--warm-line); }
.need-card--accent .icon-badge-circle { background: #fff; color: var(--orange-dk); }
@media (max-width: 680px) {
  .need-grid { grid-template-columns: 1fr; }
  .need-card { padding: 16px 16px; }
  .need-card .icon-badge-circle { --badge-size: 52px; }
}

/* ── 13. 成果物カード（終わったときに手元に残るもの：見出し＋説明の2段） ── */
.deliv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.deliv-card { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 20px 20px 20px 20px; border-radius: var(--r-sm); background: var(--bg); }
.deliv-card .step-badge-solid { --step-size: 34px; box-shadow: 0 0 0 3px #fff; }
.deliv-card__text { flex: 1; min-width: 0; }
.deliv-card__title { display: block; font: 900 15px/1.6 'Noto Sans JP', sans-serif; color: var(--heading); text-wrap: pretty; }
.deliv-card__desc { display: block; margin-top: 4px; font: 400 14px/1.85 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty; }
@media (max-width: 680px) { .deliv-grid { grid-template-columns: 1fr; } }

/* 短い成果物のアイコンタイル（仕様書／作った仕組み 等） */
.deliv-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.deliv-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 8px 16px; border-radius: var(--r-sm); background: var(--bg); text-align: center; }
.deliv-tile .icon-badge-circle { --badge-size: 56px; }
.deliv-tile__label { font: 700 14px/1.5 'Noto Sans JP', sans-serif; color: var(--heading); }
@media (max-width: 680px) { .deliv-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 番号つき2列リスト（お見積り前に決める8点） */
.num-grid { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.num-grid__item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 16px; border-radius: var(--r-sm); background: var(--bg); }
.num-grid__item .step-badge-solid { --step-size: 30px; box-shadow: 0 0 0 3px #fff; }
.num-grid__text { flex: 1; min-width: 0; font: 700 14.5px/1.6 'Noto Sans JP', sans-serif; color: var(--heading); text-wrap: pretty; }
@media (max-width: 680px) { .num-grid { grid-template-columns: 1fr; } }

/* 技術力リスト（チラシ6ページ：大きなアイコン円＋点リスト＋点線区切り） */
.tech-panel { display: flex; gap: 24px; align-items: center; }
.tech-panel > .icon-badge-circle { --badge-size: 112px; }
.tech-list { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.tech-list__item {
  position: relative; padding: 12px 0 12px 24px;
  font: 500 14.5px/1.75 'Noto Sans JP', sans-serif; color: var(--heading); text-wrap: balance; overflow-wrap: break-word;
  border-bottom: 1px dashed var(--card-line);
}
.tech-list__item:last-child { border-bottom: 0; }
.tech-list__item::before {
  content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal-strong);
}
@media (max-width: 680px) {
  .tech-panel { flex-direction: column; align-items: flex-start; gap: 12px; }
  .tech-panel > .tech-list { width: 100%; }
  .tech-panel > .icon-badge-circle { --badge-size: 72px; }
}

/* ── 14. 価格パネルの強調（チラシ2ページの価格：アイコン＋縦罫線＋大きな金額） ── */
.price-box.price-box--flyer { position: sticky; top: 96px; overflow: hidden; padding: 0 0 32px; border: 1px solid var(--card-line); }
/* 料金ボックスが本文の下に縦積みになる幅では、直後のCVセクションと「お問い合わせ」が連続するため、料金ボックス内のボタンを出さない（PCでは横で追従するので残す） */
/* 追従表示のとき、ノートPC（高さ720〜768px）でも画面下の追従バナーに隠れないよう、ボタンは金額のすぐ下に置く */
.price-box--flyer .price-box__inner > .price-box__cta:first-child { margin: 0 0 16px; }
@media (max-width: 960px) { .price-box--flyer .price-box__cta { display: none; } }
.price-box--flyer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--teal-strong), var(--teal)); }
.price-box__head { display: flex; align-items: center; gap: 16px; padding: 24px 32px 20px; border-bottom: 1px solid var(--card-line); background: linear-gradient(180deg, var(--teal-soft) 0%, #fff 100%); }
.price-box__head .icon-badge-circle { --badge-size: 64px; }
.price-box__head-text { flex: 1; min-width: 0; padding-left: 16px; border-left: 2px solid var(--teal); }
.price-box.price-box--flyer .price-box__label { display: block; font: 700 12px/1 'Roboto', 'Noto Sans JP', sans-serif; letter-spacing: .2em; color: var(--teal-text); }
.price-box.price-box--flyer .price-box__amount { margin-top: 8px; font: 900 clamp(26px, 3vw, 32px)/1.3 'Roboto', 'Noto Sans JP', sans-serif; color: var(--heading); letter-spacing: .01em; }
.price-box.price-box--flyer .price-box__amount small { font-size: .55em; font-weight: 700; color: var(--sub-text); }
.price-box__inner { padding: 0 32px; }
.price-box.price-box--flyer .price-box__sub { margin-top: 16px; }
.price-box.price-box--flyer .price-box__note { display: block; border-left: 3px solid var(--orange); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@media (max-width: 680px) {
  .price-box__head { padding: 24px 20px 20px; }
  .price-box__inner { padding: 0 20px; }
}

/* ── 15. 開発実績ページのリズム（カードごとの背景・配置の切り替え／大きな番号の透かし／セクション間の斜め区切り） ── */
.work-feature-list { counter-reset: work; gap: 48px; }
.work-feature { counter-increment: work; isolation: isolate; overflow: hidden; }
/* 右上に大きな番号の透かし（装飾。番号自体は見出し横のバッジで読める） */
.work-feature::before {
  content: counter(work, decimal-leading-zero);
  position: absolute; top: 12px; right: 28px; z-index: -1;
  font: 900 clamp(96px, 12vw, 150px)/1 'Roboto', sans-serif; letter-spacing: -.02em;
  color: var(--teal-soft); pointer-events: none;
}
/* 偶数カード：淡いティール地＋モックアップを左に置いてジグザグに */
.work-feature .work-feature__catch { flex: 0 1 auto; margin-right: clamp(0px, 14vw, 96px); }
.work-feature:nth-child(even) {
  background: linear-gradient(160deg, var(--card-tint) 0%, var(--teal-soft) 100%);
  border-color: var(--teal-soft2);
}
.work-feature:nth-child(even)::before { color: #fff; }
.work-feature:nth-child(even) .mock-stage { background: radial-gradient(120% 90% at 30% 20%, #fff 0%, #fff 40%, var(--teal-soft2) 100%); }
@media (min-width: 861px) {
  .work-feature:nth-child(even) .work-feature__body { grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); }
  .work-feature:nth-child(even) .work-feature__visual { order: -1; }
}
/* 自社プロダクト系のカード：上端にオレンジの帯で「クライアント依頼」と区別 */
.work-feature--product { background: linear-gradient(180deg, var(--warm-bg) 0%, #fff 38%); }
.work-feature--product::before { color: var(--orange-soft); }
.work-feature--product::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--orange-dk));
}
@media (max-width: 560px) {
  .work-feature-list { gap: 32px; }
  .work-feature::before { display: none; } /* 狭幅では見出しと重なるため透かし番号は出さない */
  .work-feature .work-feature__catch { margin-right: 0; }
}

/* クライアント実績 → 自社開発実績：斜めの区切り＋オレンジの細線（トップのヒーロー写真と同じ斜めカットの語彙） */
.works-section--own { position: relative; }
.works-section--own::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(40px, 6vw, 80px);
  background: var(--bg); clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.works-section--own::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(40px, 6vw, 80px);
  background: var(--orange); clip-path: polygon(0 calc(100% - 3px), 38% 62%, 38% calc(62% + 3px), 0 100%);
  pointer-events: none;
}
.works-section--own .flyer-section-head { position: relative; padding-left: 20px; border-left: 4px solid var(--teal-strong); }

/* ── 16. よくある質問カード（faq.html：角丸の白カード＋アイコン円で、質問・回答を視覚的に区別） ── */
.faq-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.faq-card { background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-card); padding: 24px 32px; }
.faq-question { display: flex; align-items: flex-start; gap: 16px; margin: 0; font: 700 16px/1.7 'Noto Sans JP', sans-serif; color: var(--heading); }
.faq-card__icon { --badge-size: 40px; margin-top: 4px; }
.faq-card__icon svg { stroke-width: 1.8; }
.faq-question__text { flex: 1; min-width: 0; padding-top: 4px; text-wrap: pretty; }
.faq-answer { margin: 12px 0 0; padding-left: 64px; font: 400 14.5px/1.9 'Noto Sans JP', sans-serif; color: var(--text); text-wrap: pretty; }
@media (max-width: 680px) {
  .faq-card { padding: 20px 20px; }
  .faq-card__icon { --badge-size: 34px; }
  .faq-answer { padding-left: 0; margin-top: 12px; }
}

/* ── 17. works.html の型の横展開（トップのお悩み・サービス詳細のモデルケース） ──
   works.html の実績カードで効いている「番号/アイコン＋吹き出し見出し → 本文 → 独立した結果ボックス」の型を、
   内容が「悩み・課題 → 答え・結果」の構造を持つ箇所にだけ部品として持ち出す（FAQ・料金・フォーム・法務ページには使わない） */
/* 吹き出し見出し（.work-feature__catch の小型版。左のアイコン/番号バッジに向けて尾が出る） */
.catch-bubble {
  position: relative; flex: 1 1 auto; min-width: 0;
  margin: 0; padding: 12px 20px; border-radius: 999px;
  background: var(--teal-soft); color: var(--heading);
  font: 900 15.5px/1.6 'Noto Sans JP', sans-serif; letter-spacing: .02em;
  text-wrap: balance; line-break: strict; word-break: normal; overflow-wrap: normal; /* anywhere だと「。」だけが次行に落ちる */
}
.catch-bubble::before {
  content: ""; position: absolute; left: -8px; top: 50%; width: 12px; height: 14px;
  transform: translateY(-50%);
  background: inherit; clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
@media (max-width: 560px) { .catch-bubble { padding: 8px 16px; border-radius: var(--r-card); } }

/* 画面には出さず読み上げにだけ渡す補足（番号バッジ「A」等の意味を補う） */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* モデルケース（service-management.html）：番号バッジ＋吹き出し（いまの状態）→ .work-solved（仕組み化した場合のイメージ） */
.case-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.case-card { padding: 24px 24px 24px; border-radius: var(--r-card); background: var(--bg); }
.case-card__head { display: flex; align-items: center; gap: 16px; }
.case-card__head .step-badge-solid { --step-size: 40px; }
.case-card__head .catch-bubble { background: #fff; border-radius: var(--r-card); word-break: normal; } /* 文が長いので角丸を控えめに・どこでも折り返せるように */
.case-card .work-solved { margin-top: 16px; padding: 20px 20px; }
.case-card .work-solved .icon-badge-circle { --badge-size: 48px; }
.case-card .work-solved__label { font-size: 15px; }
@media (max-width: 560px) {
  .case-card { padding: 20px 16px; }
  .case-card__head { gap: 12px; }
  .case-card__head .step-badge-solid { --step-size: 34px; }
  .case-card .work-solved { padding: 16px 16px; }
  .case-card .work-solved .icon-badge-circle { display: none; } /* 狭幅では本文の幅を優先（ラベルの色で結果ボックスと分かる） */
}

/* ============================================================
   全ページ統一（2026-10-10 総チェック）
   共通部品の文字設定・フォーカスリング・文字の折り返しを、ここ1か所に集約する
   ============================================================ */
/* 共通部品の文字設定：body と同じ基準（16px）を明示する */
.site-header, .site-footer, .sticky-cta, .mobile-cta-bar, .breadcrumb, .sub-hero, .cv-section {
  font-family: 'Roboto', 'Noto Sans JP', system-ui, sans-serif; font-size: 16px; line-height: 1.9; letter-spacing: .02em;
}
@media (max-width: 400px) {
  .btn { padding: 16px 24px; font-size: 15px; }
}
/* フォーカスリング：キーボード操作で必ず見えるようにする（ページ側に定義が無いページでもブラウザ標準のリングに頼らない） */
:focus-visible { outline: 3px solid var(--teal-text); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: #fff; } /* 濃色面では白リング */
/* セクション見出し（index・profile 共通。以前はページごとに 38px／30px とばらついていた） */
.sec-head h2 { font-size: clamp(24px, 3.6vw, 34px); line-height: 1.3; letter-spacing: .01em; margin: 24px 0 0; }
/* 文字の折り返し：1文字だけの行・句読点だけの行を作らない。
   見出し・短い見出し語・ボタン・リストは balance（Chromium・Safari・Firefox 対応）、本文は pretty（Chromium・Safari） */
body { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.3; } /* 見出しの行間（body 継承の 1.9 だと2行になったとき間延びする。各クラスで指定済みのものはそちらを優先） */
li, .btn, .eyebrow, .breadcrumb, .need-card__text, .deliv-card__title, .deliv-card__desc, .num-grid__text, .point-text, .step-flow-vertical__text,
.own-card__title, .own-card__link, .why-src, .role-tag, .price-box__amount, .price-box__sub, .svc-catch, .svc-hero-target, .work-solved__label,
.points-section__title span, .mobile-cta-bar a, .contact-mail-note { text-wrap: balance; }
/* CVセクションの幅（works・faq のように .container の標準幅が違うページでもCVカードを同じ幅にそろえる） */
.cv-section .container { max-width: 1120px; padding: 0 32px; text-align: left; }
@media (max-width: 680px) { .cv-section .container { padding: 0 20px; } }
/* 追従バナーの文言：「まず無料で確かめてみませんか？」を途中で折らない（極端に狭い画面だけ折り返しを許可してはみ出しを防ぐ） */
@media (max-width: 340px) { .sticky-cta__text .nw { white-space: normal; } }

/* 日本語の見出し・ボタン・キャッチ文は文節の途中で改行しない。
   改行位置は HTML 側の <wbr>（BudouX で文節ごとに挿入）。word-break:keep-all で単語内の改行を止め、
   overflow-wrap は文節が1行に収まらないときの保険（anywhere だと flex/grid 内の最小幅が1文字分に縮んで余計に折れるため break-word を使う）。iOS Safari でも効く。本文の段落には適用しない */
h1, h2, h3, h4, .sub-hero__title, .btn, .sticky-cta__btn, .mobile-cta-bar a, .catch-bubble, .case-card__head .catch-bubble, .svc-catch, .work-feature__catch,
.own-card__title, .deliv-card__title, .need-card__text, .num-grid__text, .step-flow-vertical__text, .work-solved__label, .faq-question__text {
  word-break: keep-all; overflow-wrap: break-word; line-break: strict;
}
@media (max-width: 340px) { .sub-hero__title { letter-spacing: 0; } } /* 「プライバシーポリシー」が320pxで1行に収まらず途中で折れるため */
/* 320px前後の狭い画面では、折り返し禁止（.nw）の文節が列幅を超えて横にはみ出さないよう折り返しを許可する */
@media (max-width: 340px) {
  h1 .nw, h2 .nw, h3 .nw, .need-card__text .nw, .step-flow-vertical__text .nw, .num-grid__text .nw, .deliv-card__title .nw, .catch-bubble .nw, .own-card__title .nw { white-space: normal; }
}
.nwe { white-space: nowrap; } /* 文末の「。」「、」を直前の2文字から離さない（句読点だけの行を作らない） */
.btn__label { text-align: center; } /* flex の .btn 内でも <wbr> を効かせるため、ボタン文言を1つの span にまとめる */
