/* =============================================================
   アソビューBiz 掲載サイト デザインシステム（/asoview 配下 新規ページ用）

   値は既存 /asoview の実測（ヘッドレス Chrome の computed style）に基づく。
   Studio 移植ページと違い、
     - 見出しは h1/h2/h3 を使う（SEO 対策）
     - レスポンシブはメディアクエリ1系統（PC/SP の重複 DOM を作らない）
   ============================================================= */

:root {
  /* ブランド（実測） */
  --red: #f54336;          /* CTA・強調・バッジ */
  --red-shadow: #b92d22;   /* 立体ボタンの下影 */
  --yellow: #f8b13d;       /* セクション背景 */
  --cream: #fff6e7;        /* 淡い背景 */
  --ink: #333333;          /* 本文（黒ではない） */
  --ink-weak: #666666;
  --line: #bababa;         /* カードの枠線（実測: live の 1px border はこの色だけ） */
  --line-weak: #e6e6e6;    /* 表の罫線など、枠線ほど強く出したくない箇所 */
  --blue: #133373;         /* 限定アクセント（live 実測: 2px border で使用） */
  --blue-shadow: #0b214d;  /* 青ボタンの立体影 */
  --teal: #00a693;         /* live 実測の背景色 */
  --teal-shadow: #073434;  /* ティールボタンの立体影 */

  /* レイアウト */
  --container: 1152px;     /* 白カードの実測幅 */
  --container-narrow: 980px;/* FAQ の実測幅 */
  /* 角丸は実測の出現数に合わせる: 8px が主役（208箇所）、16px が次（40箇所）、
     40〜48px は大きい白カードだけ。999px の丸ピルは live に存在しないので使わない */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 40px;        /* 大きい白カードの実測 */

  /* 影も実測値だけを使う */
  --shadow-card: 0 2px 5px rgba(0, 0, 0, .2);      /* 最頻（46箇所） */
  --shadow-float: 0 4px 8px rgba(51, 51, 51, .24); /* 浮かせる場合 */

  /* ブレークポイント（Studio と同値）: 1115 / 840 / 540 */
  --font: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  /* 数字は等幅にして、表やカードで桁がズレないようにする */
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.container--wide { max-width: 1360px; }   /* ロゴ帯など横に並べたいセクション用 */

.section { padding: 80px 0; }
/* sticky ヘッダーの下にタイトルが隠れないようアンカー位置をずらす */
.section[id], .faq-group[id] { scroll-margin-top: 80px; }
.section--cream { background: var(--cream); }
.section--yellow { background: var(--yellow); }
.section--gray { background: #fbfbfb; }

/* ---------- 見出し ---------- */
/* 2026-09-25 細部チェック: 見出しの最終行が1〜2文字だけになる改行（55か所・主にSP）を防ぐ。
   html lang="ja" が前提の auto-phrase で文節単位に折り返す。h1〜h4の要素セレクタなので、
   個別クラスや後段の urakata-ds.css 等で word-break / text-wrap を指定していない見出しに効く（指定すればそちらが優先）。
   dt 等タグ以外で見出し代わりに使う箇所は個別クラスに追記（.genre-features dt 等） */
h1, h2, h3, h4 { text-wrap: balance; word-break: auto-phrase; }

.eyebrow {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .15em;   /* 実測 3.6px / 24px */
  text-align: center;
  color: var(--red);
  margin: 0 0 12px;
}
.section--yellow .eyebrow, .section--red .eyebrow { color: #fff; }

.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .03em;   /* 実測 1.2px / 40px */
  text-align: center;
  margin: 0 0 48px;
  /* 長いカテゴリー名を含む見出しが「見直した／いこと」のように語中で折れないようにする */
  text-wrap: balance;
  word-break: auto-phrase;
}
.section--yellow .section-title { color: #fff; }

/* 見出しの下に補足文を置く場合。見出しの 48px は空きすぎるので詰める */
.section-title:has(+ .section-lead) { margin-bottom: 16px; }
.section-lead {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  color: var(--ink-weak);
}
.section--yellow .section-lead, .section--red .section-lead { color: #fff; }

.page-title {
  /* 日本語は文節で折る。対応外のブラウザでは従来どおり */
  word-break: auto-phrase;
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .03em;
  margin: 0 0 16px;
  /* 業種名の長さでタイトル長が変わるので、行の分かれ目を自動で整える */
  text-wrap: balance;
}
/* 事例名など長いタイトルは一段小さくして行数を抑える */
.page-title--sm { font-size: 32px; line-height: 1.4; }

.card-title { font-size: 28px; font-weight: 900; line-height: 1.4; margin: 0 0 12px; }
.lead { font-size: 18px; line-height: 2; margin: 0; }
.note { font-size: 13px; line-height: 1.8; color: var(--ink-weak); }
.em { color: var(--red); font-weight: 900; }

/* ---------- 立体ボタン（シグネチャ） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 40px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: var(--radius-m);
  box-shadow: 0 4px 0 0 var(--red-shadow);   /* 実測 */
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;                     /* 実測 1.6px / 20px */
  line-height: 1.3;
  cursor: pointer;
  transition: opacity .2s, translate .2s, box-shadow .2s;
}
.btn:hover { opacity: .9; translate: 0 4px; box-shadow: 0 0 0 0 var(--red-shadow); }
.btn--wide { width: 100%; max-width: 420px; }   /* 実測 420px */
.btn--white { background: #fff; color: var(--red); box-shadow: 0 4px 0 0 #d8d8d8; }
/* アイコンは currentColor のインラインSVG。ボタンの文字色に自動で追従する
   （白塗り固定の画像だと白ボタンで消えてしまう） */
.btn__icon { width: 20px; height: auto; flex: none; }

/* ---------- ヒーロー（配下ページ用・本体LPより軽い） ---------- */
.hero {
  padding: 56px 0 64px;
  background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
}
.hero__inner { display: flex; gap: 48px; align-items: center; }
.hero__body { flex: 1 1 0; min-width: 0; }
/* 写真がないページでは本文幅を抑える（横いっぱいに伸びると締まらない） */
.hero__body .lead { max-width: 40em; }
.hero__figure { flex: 0 0 38%; }
.hero__figure img {
  border-radius: var(--radius-l);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
/* 一覧ページ（L1）用。探すことが目的のページなので、本題までの余白を詰める */
.hero--compact { padding: 40px 0 32px; }
.hero--compact + .section { padding-top: 32px; }
.breadcrumb { font-size: 13px; color: var(--ink-weak); margin: 0 0 16px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* ---------- 白カード ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 40px;
}
/* 縦積みのときだけ間隔をあける。グリッド内では gap が担うので付けない
   （付けると grid item がずれて上端が揃わなくなる） */
.card + .card { margin-top: 32px; }
.grid .card + .card { margin-top: 0; }

/* 番号バッジつき横並びカード（メリット金型） */
.feature { display: flex; gap: 32px; align-items: center; }
.feature__badge {
  flex: none;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  line-height: 1.2;
}
.feature__badge small { font-size: 13px; letter-spacing: .08em; }
.feature__badge strong { font-size: 32px; font-weight: 900; }
.feature__body { flex: 1 1 0; min-width: 0; }
/* 1行が長くなりすぎると読みにくいので本文幅を抑える */
.feature__body p { margin: 0; max-width: 46em; }

/* 3列グリッド（機能・課題の並列）
   白背景セクションではカードをクリームに、色付き背景では白にして必ずコントラストを出す */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
/* 小さいカードに radius 40px は丸すぎるので抑える */
.grid .card { padding: 28px; background: var(--cream); border: 0; border-radius: 20px; }
.section--cream .grid .card,
.section--yellow .grid .card,
.section--gray .grid .card { background: #fff; }
.grid .card-title { font-size: 19px; }
/* 件数が少ないとき（1〜2件）は列を詰めて中央に寄せる */
.grid--few { grid-template-columns: repeat(auto-fit, minmax(280px, 340px)); justify-content: center; }
.grid .card p { margin: 0; }

/* ---------- ステップ（掲載までの流れ 金型） ----------
   テキスト量が少ないので幅を抑える（1152px だと右が大きく空く） */
.steps { counter-reset: step; display: grid; gap: 16px; max-width: 840px; margin: 0 auto; }
.step {
  position: relative;
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border-radius: var(--radius-m); padding: 24px 28px;
}
/* 番号の下に縦線を伸ばして「流れ」であることを示す */
.step:not(:last-child)::after {
  content: '';
  position: absolute; left: 52px; top: 100%;
  width: 2px; height: 16px;
  background: var(--red); opacity: .35;
}
.step__no {
  flex: none; counter-increment: step;
  width: 48px; height: 48px; border-radius: var(--radius-s);
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900;
}
.step__no::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 18px; font-weight: 900; margin: 0 0 4px; }
.step p { margin: 0; font-size: 15px; }

/* ---------- 料金 ---------- */
.price-card {
  background: #fff; border: 3px solid var(--red); border-radius: var(--radius-l);
  padding: 48px; text-align: center;
}
.price-card__label { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.price-card__value { font-size: 64px; font-weight: 900; line-height: 1; color: var(--red); margin: 0; }
.price-card__value small { font-size: 24px; }
.price-card__desc { margin: 24px auto 0; max-width: 44em; }
.price-list {
  list-style: none; margin: 32px auto 0; padding: 0; text-align: left;
  max-width: 40em;
}
.price-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-weak); }
.price-list li:last-child { border-bottom: 0; }
.price-list li::before { content: '✓'; color: var(--red); font-weight: 900; flex: none; }

/* 0円ブロックは必ずカードとして見えるように（背景と同色にならないよう白＋枠） */
.price-zero { display: flex; gap: 24px; justify-content: center; margin: 0 0 32px; }
.price-zero div {
  flex: 1 1 0; max-width: 320px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px; text-align: center; font-size: 15px;
}
.price-zero strong { display: block; font-size: 36px; font-weight: 900; color: var(--red); line-height: 1.2; }

/* ---------- FAQ（アコーディオン） ---------- */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group__title { font-size: 20px; font-weight: 900; margin: 0 0 16px; }
.faq { border: 0; }
.faq + .faq { margin-top: 16px; }
.faq__q {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff;
  border: 0; border-radius: var(--radius-s);
  padding: 12px;                              /* 実測 */
  font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.4;
  text-align: left; cursor: pointer;
}
.faq__q::before {
  content: 'Q'; flex: none;
  width: 28px; height: 28px; border-radius: 6px;
  background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900;
}
.faq__q span { flex: 1 1 0; }
.faq__q::after { content: '＋'; flex: none; font-size: 18px; }
.faq[open] .faq__q::after { content: '－'; }
.faq__a { padding: 16px 12px 20px 52px; margin: 0; }
.faq__a p { margin: 0; }
.faq__a p + p { margin-top: 8px; }

/* details のマーカーを消す */
.faq summary { list-style: none; }
.faq summary::-webkit-details-marker { display: none; }

/* ---------- CTA帯（赤ベタ） ---------- */
.cta {
  background: var(--red); color: #fff;
  padding: 40px;                              /* 実測 */
  text-align: center;
}
.cta__title { font-size: 28px; font-weight: 900; line-height: 1.4; margin: 0 0 8px; }
.cta__desc { margin: 0 0 24px; font-size: 16px; }
.cta .btn { background: #fff; color: var(--red); box-shadow: 0 4px 0 0 #d8d8d8; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line-weak);
}
.site-header__inner {
  max-width: 1360px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 40px;
}
.site-header__logo { flex: none; }
.site-header__logo img { height: 28px; width: auto; }
.site-nav { flex: 1 1 0; display: flex; gap: 28px; justify-content: flex-end; }
/* 文字サイズは変えず、上下 padding で当たり判定を 44px にする */
.site-nav a {
  font-size: 14px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav a:hover { color: var(--red); }
.site-header .btn { min-height: 44px; padding: 0 24px; font-size: 15px; flex: none; }
.site-header__toggle { display: none; }

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 24px; border-top: 1px solid var(--line-weak); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; margin: 0 0 24px; }
.site-footer__nav a { font-size: 14px; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__copy { text-align: center; font-size: 12px; color: var(--ink-weak); margin: 0; }

/* ---------- フローティングCTA ---------- */
.floating-cta {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 116px; height: 116px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.3;
  box-shadow: rgba(51, 51, 51, .24) 0 4px 8px;   /* live の実測値 */
}
.floating-cta:hover { opacity: .92; }

/* ---------- 事例カード ---------- */
.case-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius-m); overflow: hidden;
  border: 1px solid var(--line);
}
.case-card__figure { aspect-ratio: 16 / 10; background: #eee; }
.case-card__figure img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; }
.case-card__tag { font-size: 12px; font-weight: 700; color: var(--red); }
.case-card__title { font-size: 16px; font-weight: 900; line-height: 1.5; margin: 0; }
.case-card__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--blue); }

/* ---------- ロゴ帯 ----------
   素材は 540x300 の余白つき画像なので、幅を揃えて object-fit で収める */
.logos { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; }
.logos img { width: 148px; height: 84px; object-fit: contain; }

/* =============================================================
   レスポンシブ（1系統だけ。DOM は複製しない）
   ============================================================= */
@media (max-width: 1115px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
}

@media (max-width: 840px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 30px; margin-bottom: 32px; }
  .page-title { font-size: 32px; }
  .page-title--sm { font-size: 26px; }
  .eyebrow { font-size: 18px; }
  .card-title { font-size: 22px; }
  .lead { font-size: 16px; }
  .hero__inner { flex-direction: column; gap: 28px; }
  .hero__figure { flex: none; width: 100%; }
  .grid, .grid--2 { grid-template-columns: repeat(2, 1fr); }
  /* 角丸は live 実測の値だけを使う（24px は DS に無い） */
  .card { padding: 28px; border-radius: 20px; }
  .price-card { padding: 32px; }
  .price-card__value { font-size: 48px; }
  .price-zero { flex-direction: column; gap: 12px; }
  /* ヘッダーはハンバーガーに切り替え */
  .site-nav { display: none; }
  .site-header__toggle {
    display: flex; align-items: center; justify-content: center;
    flex: 1 1 0; justify-content: flex-end;
    /* button は font-family を継承しないので明示する（既定だと Arial になる） */
    background: none; border: 0; font-family: var(--font); font-size: 24px;
    cursor: pointer; color: var(--ink);
    /* タップ領域を 44px 確保する（文字サイズは変えない） */
    min-height: 44px; padding: 0 4px;
  }
  .site-header .btn { display: none; }
  .site-header.is-open .site-nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .site-header.is-open .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
}

@media (max-width: 540px) {
  /* 固定CTA（SP は下部バー）でページ最下部が隠れないように逃げを作る */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 24px; }
  .page-title { font-size: 26px; }
  .page-title--sm { font-size: 22px; }
  .eyebrow { font-size: 16px; }
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .feature { flex-direction: column; align-items: flex-start; gap: 16px; }
  .feature__badge { width: 96px; height: 96px; }
  .feature__badge strong { font-size: 26px; }
  .card { padding: 20px; }
  .btn { font-size: 17px; padding: 0 24px; }
  .btn--wide { max-width: 100%; }
  .cta { padding: 32px 16px; }
  .cta__title { font-size: 21px; }
  .faq__a { padding-left: 12px; }
  /* SP は画面幅いっぱいの下部バーにする。
     原本は 80x80 の円（right 16 / bottom 24）だったが、SP は本文が全幅なので
     円が右端のリンクやチップに必ず重なる（実測 84ページ / うち 22ページはリンクを塞ぐ）。
     バーにすれば body の padding-bottom で重なりを構造的に消せる。 */
  .floating-cta {
    left: 0; right: 0; bottom: 0; width: auto; height: auto; min-height: 56px;
    border-radius: 0; flex-direction: row; gap: 8px;
    font-size: 15px; padding: 0 16px env(safe-area-inset-bottom, 0px);
    box-shadow: rgba(51, 51, 51, .24) 0 -2px 8px;
  }
  .floating-cta br { display: none; }
  .floating-cta .btn__icon { width: 18px; }
  .logos { gap: 4px 8px; }
  .logos img { width: 128px; height: 72px; }
  .step { padding: 16px 18px; gap: 14px; }
  /* 2026-09-25 細部チェック: フッターリンク（実測25px）・ヘッダーロゴ（163x28）の当たり判定が
     SPで押しにくいので40px以上に。文字サイズ・画像サイズは変えず、行の高さと詰め気味の行間で確保する */
  .site-footer__nav { row-gap: 4px; }
  .site-footer__nav a { display: inline-flex; align-items: center; min-height: 40px; }
  .site-header__logo { display: inline-flex; align-items: center; min-height: 40px; }
}

/* =============================================================
   導入事例（インタビュー記事）
   白い紙面に、タイトル・取材先・本文の階層を組む。
   PCは可変幅の目次＋本文640px。SPは同じ読み順で一列に戻す。
   ============================================================= */
.article-page { padding-bottom: 72px; }
.article-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.article-wrap--wide { max-width: 1040px; }
.article-head { padding-top: 40px; }
.article-head .breadcrumb { margin-bottom: 36px; }
.article-tag { display: block; color: var(--ink-weak); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.article-title { max-width: 920px; font-size: 42px; font-weight: 900; line-height: 1.55; letter-spacing: .015em; word-break: auto-phrase; margin: 0 0 28px; }
.article-head__meta { border-top: 1px solid var(--line); padding-top: 20px; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.9; }
.article-head__meta span { display: block; color: var(--ink-weak); font-size: 13px; font-weight: 400; }
.article-head__meta .article-head__person { color: var(--ink); margin-top: 4px; }
.article-introduction { max-width: 640px; margin: 36px 0 0 auto; }
/* 2026-09-25 細部チェック: 本文の単語途中改行（例「ダイレクトイン/ン」）を防ぐ。
   auto-phrase が効かないブラウザでは従来どおりなので安全。長い英数字URLは overflow-wrap で維持 */
.article-lead { font-size: 16px; line-height: 2; margin: 0; word-break: auto-phrase; overflow-wrap: anywhere; }
.article-lead + .article-lead { margin-top: 20px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 640px); gap: 64px; margin-top: 64px; }
.article-main { min-width: 0; }
/* PC は左の目次を追従させる（長い記事で左カラムが空になるのを避ける）。SP は本文の前に置くだけ */
.topics { align-self: start; position: sticky; top: 96px; border-top: 1px solid var(--line); padding-top: 16px; }
.topics h2 { font-size: 14px; font-weight: 700; margin: 0 0 16px; }
.topics ul { list-style: none; padding: 0; margin: 0; }
.topics li { font-size: 13px; line-height: 1.85; padding: 12px 0; border-bottom: 1px solid var(--line-weak); }
.topics a:hover { text-decoration: underline; text-underline-offset: 4px; }
.article-body h2 { scroll-margin-top: 96px; font-size: 25px; font-weight: 900; line-height: 1.65; letter-spacing: .015em; margin: 64px 0 24px; word-break: auto-phrase; }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 16px; line-height: 2; margin: 0 0 24px; word-break: auto-phrase; overflow-wrap: anywhere; }
.quote { margin: 32px 0; padding: 0 0 0 24px; border-left: 4px solid var(--red); }
.quote p { font-size: 19px; font-weight: 500; line-height: 1.95; margin: 0; }
.quote cite { display: block; font-size: 13px; font-style: normal; color: var(--ink-weak); margin-top: 14px; }
.quote cite::before { content: '— '; }
.article-hero { margin: 40px 0 0; }
.article-hero img, .article-body figure img { width: 100%; height: auto; }
/* 取材写真のヒーローは 3:2 に揃える（4:3 の写真をそのまま出すと本文幅で 780px を超える）。SP は 4:3 */
.article-hero img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 540px) { .article-hero img { aspect-ratio: 4 / 3; } }
.article-body figure { margin: 32px 0; }
/* 元画像が小さい提供写真は本文幅に引き伸ばさず実寸相当で出す */
.article-body figure.figure--small { max-width: 480px; }
.article-hero figcaption, .article-body figcaption { font-size: 13px; color: var(--ink-weak); margin-top: 8px; }
.article-gallery { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 24px; }
.article-gallery h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.article-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article-gallery figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--cream); }
.article-gallery img { width: 100%; height: 100%; object-fit: cover; }
.article-gallery__credit { margin: 12px 0 0; font-size: 13px; color: var(--ink-weak); }
@media (max-width: 540px) { .article-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.article-data { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 24px; }
.article-data > h2, .article-links h2, .forwhom h2 { font-size: 16px; font-weight: 700; margin: 0 0 16px; }
.facts { margin: 0; font-size: 14px; }
.facts > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-weak); }
.facts dt { font-weight: 500; color: var(--ink-weak); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.facts dd a + a { margin-left: 12px; }
.forwhom { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 24px; }
.forwhom ul { margin: 0; padding-left: 1.2em; }
.forwhom li { font-size: 15px; margin-top: 8px; }
.article-links { margin-top: 40px; }
.article-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.article-links a { font-size: 14px; color: var(--red); text-decoration: underline; text-underline-offset: 4px; }
.article-links span { display: block; font-size: 13px; color: var(--ink-weak); margin-top: 4px; }
.draft-badge { display: block; width: fit-content; color: var(--ink); border: 1px solid var(--yellow); padding: 4px 12px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.internal-note { overflow-wrap: anywhere; margin-top: 48px; border: 1px dashed var(--yellow); padding: 20px; font-size: 13px; line-height: 1.9; }
.internal-note h2 { font-size: 14px; margin: 0 0 12px; }
.internal-note ul { margin: 0; padding-left: 1.2em; }
/* 関連事例の順番・列数は既存を維持。イラストの下に文字を置く。 */
.article-cards { display: grid; gap: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.article-cards a { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.article-cards__figure { aspect-ratio: 16 / 10; background: var(--cream); border-radius: 10px; overflow: hidden; }
.article-cards__figure img { width: 100%; height: 100%; object-fit: cover; }
.article-cards__meta { font-size: 12px; color: var(--red); font-weight: 700; margin: 14px 0 6px; }
.article-cards__title { font-size: 17px; font-weight: 900; line-height: 1.65; margin: 0 0 8px; }
.article-cards a:hover .article-cards__title, .article-cards a:focus-visible .article-cards__title { text-decoration: underline; text-underline-offset: 4px; }
.article-cards a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 0; }
.article-cards__sub { font-size: 13px; color: var(--ink-weak); margin: 0; }
/* 導入事例一覧。箱を重ねず、先頭の写真と細い罫線で記事の強弱を作る。 */
.cases-index { padding-top: 40px; padding-bottom: 80px; overflow-wrap: anywhere; }
.cases-index__head { margin-bottom: 48px; }
.cases-index__head .breadcrumb { margin-bottom: 24px; }
.cases-index__head h1 { margin: 0 0 20px; font-size: 42px; font-weight: 900; line-height: 1.5; }
.cases-index__head > p { max-width: 800px; margin: 0 0 8px; }
.cases-index__head .cases-index__guide { font-size: 14px; color: var(--ink-weak); }
.cases-index__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 24px; font-size: 14px; font-weight: 700; }
.cases-index__nav a { color: var(--blue); text-decoration: underline; text-underline-offset: 5px; }
.cases-index__nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.cases-index__section { scroll-margin-top: 96px; }
.cases-index__section + .cases-index__section { margin-top: 72px; }
.cases-index__section-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.cases-index__section-head h2 { margin: 0; font-size: 26px; line-height: 1.6; font-weight: 900; }
.cases-index__section-head p { margin: 0; font-size: 14px; color: var(--ink-weak); }
.cases-index__description { max-width: 800px; margin: 0 0 32px; font-size: 14px; color: var(--ink-weak); }
.article-cards.article-cards--index { grid-template-columns: minmax(0, 1fr); gap: 0; }
.article-cards--index .article-cards__item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line-weak); }
.article-cards--index .article-cards__item:first-child { padding-top: 0; }
.article-cards--index .article-cards__item--featured { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; }
.article-cards--index .article-cards__item--featured .article-cards__figure { aspect-ratio: 4 / 3; }
.article-cards__body { min-width: 0; }
.article-cards__type { margin: 0 0 10px; font-size: 12px; color: var(--ink-weak); }
.article-cards--index .article-cards__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 10px; font-size: 14px; }
.article-cards--index .article-cards__meta span + span { color: var(--ink-weak); font-weight: 400; }
.article-cards--index .article-cards__title { font-size: 22px; line-height: 1.65; margin-bottom: 16px; }
.article-cards--index .article-cards__item--featured .article-cards__title { font-size: 28px; }
.article-cards__facility { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.article-cards__reason { margin: 20px 0 16px; font-size: 14px; line-height: 1.85; }
.article-cards__reason > span { display: block; margin-bottom: 4px; font-size: 12px; color: var(--ink-weak); }
.article-cards__more { display: inline-block; margin-top: 8px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 840px) {
  .article-cards--index .article-cards__item--featured { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .article-cards--index .article-cards__item--featured .article-cards__figure { aspect-ratio: 16 / 10; }
}
@media (max-width: 540px) {
  .cases-index { padding: 28px 16px 48px; }
  .cases-index__head { margin-bottom: 36px; }
  .cases-index__head h1 { font-size: 28px; margin-bottom: 16px; }
  .cases-index__section-head { margin-bottom: 24px; padding-bottom: 16px; }
  .cases-index__section-head h2 { font-size: 22px; }
  .cases-index__section + .cases-index__section { margin-top: 48px; }
  .article-cards--index .article-cards__item { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 0; }
  .article-cards--index .article-cards__title { font-size: 20px; }
  .article-cards--index .article-cards__item--featured .article-cards__title { font-size: 24px; }
  .article-cards--index .article-cards__meta { font-size: 13px; }
  .article-cards__reason { margin-top: 16px; }
}
@media (max-width: 840px) {
  .article-layout { display: block; margin-top: 40px; }
  .topics { position: static; }
  .article-wrap { max-width: 688px; }
  .article-title { font-size: 34px; }
  .article-introduction { margin-top: 28px; }
  .topics { margin-bottom: 48px; }
  .topics li { padding: 8px 0; font-size: 14px; }
  .article-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .article-head { padding-top: 28px; }
  .article-head .breadcrumb { margin-bottom: 28px; }
  .article-title { font-size: 28px; line-height: 1.6; margin-bottom: 24px; letter-spacing: 0; }
  .article-tag { margin-bottom: 12px; }
  .article-head__meta { font-size: 14px; padding-top: 16px; }
  .article-lead, .article-body p { line-height: 2; }
  .article-body h2 { font-size: 22px; margin: 48px 0 20px; letter-spacing: 0; }
  .quote { padding-left: 16px; margin: 28px 0; }
  .quote p { font-size: 17px; line-height: 1.95; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .facts dt { font-size: 13px; }
  .article-cards { grid-template-columns: 1fr; }
}

/* =============================================================
   ジャンル別ページ（2026-09-09）
   写真・文字組み・データの横棒を軸にした専用レイアウト。
   共通部品と記事のスタイルには作用させない。
   ============================================================= */
.genre-page { color: var(--ink); overflow-wrap: anywhere; }
.genre-shell { max-width: 1152px; margin: 0 auto; padding: 40px 24px 0; }
.genre-page p { line-height: 1.95; }
.genre-page h1, .genre-page h2, .genre-page h3 { word-break: auto-phrase; overflow-wrap: anywhere; }
.genre-page a:not(.btn) { color: var(--blue); text-underline-offset: 4px; }
.genre-page a:not(.btn):hover { text-decoration: underline; }
.genre-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 24px 0 44px; }
.genre-hero h1 { font-size: 40px; font-weight: 900; line-height: 1.5; margin: 0 0 24px; letter-spacing: .02em; }
.genre-hero p { margin: 0 0 24px; }
.genre-hero .btn { max-width: 100%; margin-bottom: 20px; }
.genre-hero figure { margin: 0; min-width: 0; }
.genre-hero img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.genre-hero figcaption { color: var(--ink-weak); font-size: 12px; margin-top: 8px; }
.genre-page .genre-note { font-size: 13px; color: var(--ink-weak); line-height: 1.85; }
.genre-index { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.genre-section { padding: 64px 0; border-bottom: 1px solid var(--line-weak); scroll-margin-top: 90px; }
.genre-section h2 { font-size: 30px; line-height: 1.6; font-weight: 900; margin: 0 0 28px; }
.genre-section h3 { font-size: 20px; line-height: 1.7; margin: 28px 0 12px; }
.genre-section > p { max-width: 800px; }
.genre-section li { line-height: 1.9; }
.genre-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 32px 0 20px; }
.genre-metrics > div { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.genre-metrics dt { font-size: 14px; font-weight: 700; }
.genre-metrics dd { margin: 8px 0 0; font-size: 40px; line-height: 1.5; color: var(--red); font-weight: 900; }
.genre-metrics small { display: inline-block; font-size: 14px; margin-left: 6px; color: var(--ink); }
.genre-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.genre-columns h3 { margin-top: 0; }
.genre-bars { margin: 24px 0; }
.genre-bars > div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; align-items: baseline; margin: 0 0 20px; }
.genre-bars dt { font-size: 15px; font-weight: 700; }
.genre-bars dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: 14px; }
.genre-bar { display: block; grid-column: 1 / -1; height: 10px; background: var(--cream); }
.genre-bar > span { display: block; height: 100%; background: var(--red); }
.genre-region { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line-weak); }
.genre-region > p { max-width: 800px; }
.genre-region .genre-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.genre-types { display: flex; flex-wrap: wrap; gap: 0 32px; padding: 16px 24px; background: var(--cream); list-style: none; }
/* 2026-09-25: list-style-position: inside だと長い項目で「・」だけが1行目に残る（SP の glass）。記号を本文の左に固定する */
.genre-types li { display: flex; gap: .25em; padding: 8px 0; font-weight: 700; }
.genre-types li::before { content: '・'; flex: none; }
.genre-review { padding: 32px; margin-top: 48px; background: var(--cream); border-bottom: 0; }
.genre-review ul { padding-left: 1.4em; margin-bottom: 0; }
.genre-review li + li { margin-top: 12px; }
.genre-features { margin: 0 0 32px; }
.genre-features > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line-weak); }
/* 2026-09-25 細部チェック: 見出し代わりの機能名（例「受け付/ける」）が語の途中で改行するのを防ぐ。dt要素はh1〜h3の対象外なので個別に指定 */
.genre-features dt { font-size: 18px; font-weight: 700; line-height: 1.8; word-break: auto-phrase; }
.genre-features dd { margin: 0; line-height: 1.95; }
.genre-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 28px 0; }
.genre-cases article { padding: 20px 0; border-top: 1px solid var(--line); }
.genre-cases__figure { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--cream); margin: 0 0 14px; }
.genre-cases__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.genre-cases article p { margin: 0; }
.genre-cases h3 { margin: 12px 0 20px; font-size: 18px; }
.genre-cases h3 a { color: var(--ink) !important; }
.genre-price { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.genre-price p { margin: 0; }
.genre-price strong { display: block; font-size: 36px; color: var(--red); line-height: 1.5; }
.genre-flow { list-style-position: outside; padding-left: 24px; max-width: 840px; }
.genre-flow li { padding: 16px 0 16px 12px; border-bottom: 1px solid var(--line-weak); }
.genre-flow h4 { font-size: 18px; margin: 0 0 6px; }
.genre-flow p { margin: 0; }
.genre-faq { margin: 24px 0; max-width: 840px; border-top: 1px solid var(--line); }
.genre-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.genre-faq summary { cursor: pointer; font-size: 17px; font-weight: 700; line-height: 1.8; }
.genre-faq details > div { padding: 16px 0 0; line-height: 1.95; }
@media (max-width: 840px) {
  .genre-shell { padding-top: 24px; }
  .genre-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .genre-hero h1 { font-size: 32px; }
  .genre-hero figure { max-width: 640px; width: 100%; }
  .genre-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .genre-region .genre-bars { gap: 0 32px; }
  .genre-cases { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 540px) {
  .genre-shell { padding: 24px 20px 0; }
  .genre-hero { padding: 16px 0 28px; }
  .genre-hero h1 { font-size: 28px; line-height: 1.55; }
  .genre-hero .btn { font-size: 16px; width: 100%; padding-left: 12px; padding-right: 12px; }
  .genre-index { gap: 12px 20px; }
  .genre-section { padding: 40px 0; }
  .genre-section h2 { font-size: 24px; margin-bottom: 24px; }
  .genre-section h3 { font-size: 18px; }
  .genre-metrics { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .genre-metrics > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding-bottom: 16px; }
  .genre-metrics dd { font-size: 30px; }
  .genre-metrics small { font-size: 12px; }
  .genre-region .genre-bars { grid-template-columns: minmax(0, 1fr); }
  .genre-bars > div { grid-template-columns: 6em minmax(0, 1fr); gap: 12px; }
  .genre-review { padding: 24px 20px; margin-top: 32px; }
  .genre-features > div { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .genre-price { gap: 24px 32px; }
  .genre-price strong { font-size: 32px; }
}
