/* ============================================================
   blocks.css｜b/cバリアント専用の追加CSS
   （variant a は css/style.css のクラスをそのまま使用）
   design-rules.md のCSS変数のみ使用。HEX直書き禁止。
   ============================================================ */

/* ==================== fv-b ==================== */
/* ============================================================
   fv-b.css｜ファーストビューb案：中央寄せ＋大型MVイメージ帯
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン/画像寸法・フォントサイズは可）
   ============================================================ */

.fv-b {
  padding-top: 128px;   /* 固定ヘッダー(SP top24+80px)ぶんのオフセット */
  padding-bottom: var(--sp-6);
  text-align: center;
  overflow: hidden;
}
@media (min-width: 768px) {
  .fv-b { padding-top: 178px; padding-bottom: var(--sp-8); }
}

.fv-b__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fv-b__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.fv-b__title {
  margin-top: var(--sp-2);
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-family: var(--sl-font-jp);
  color: var(--sl-accent);
  text-wrap: balance;
}
@media (min-width: 768px) {
  .fv-b__title { font-size: 48px; line-height: 1.4; letter-spacing: 0.04em; }
}

.fv-b__lead {
  margin-top: var(--sp-3);
  max-width: 560px;
}
.fv-b__lead strong { color: var(--sl-accent-text); font-weight: 700; }

.fv-b__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2) var(--sp-3);
  margin-top: var(--sp-4);
}
@media (max-width: 560px) { .fv-b__btns { flex-direction: column; align-items: center; } }

/* ---- 大型MVイメージ帯（フルブリード） ---- */
.fv-b__visual {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: var(--sp-5);
  height: 200px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .fv-b__visual { margin-top: var(--sp-6); height: 380px; }
}
.fv-b__mv { width: 100%; height: 100%; object-fit: cover; }

.fv-b__char {
  position: absolute;
  right: var(--sp-3);
  bottom: -46px;
  width: 130px;
  height: auto;
  z-index: 2;
}
@media (min-width: 768px) {
  .fv-b__char { right: var(--sp-8); bottom: -64px; width: 200px; }
}
.fv-b__char-shadow {
  position: absolute;
  right: calc(var(--sp-3) + 8px);
  bottom: -54px;
  width: 91px;
  height: 12px;
  border-radius: 50%;
  background: rgba(5, 15, 28, 0.08);
  filter: blur(4px);
}
@media (min-width: 768px) {
  .fv-b__char-shadow { right: calc(var(--sp-8) + 16px); bottom: -74px; width: 140px; }
}

/* ---- 実績バッジ列 ---- */
.fv-b__badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
  width: 100%;
  max-width: 720px;
  margin-top: var(--sp-8);
}
@media (min-width: 768px) {
  .fv-b__badges { grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-6); }
}
.fv-b__badge {
  background: var(--sl-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3) var(--sp-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}
.fv-b__badge-num {
  font-family: var(--sl-font-label);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sl-accent-text);
}
@media (min-width: 768px) { .fv-b__badge-num { font-size: 34px; } }
.fv-b__badge-num small { font-size: 13px; font-weight: 700; margin-left: 2px; }
.fv-b__badge-label {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sl-text-sub);
}
@media (min-width: 768px) { .fv-b__badge-label { font-size: 13px; } }

/* ==================== problem-b ==================== */
/* ============================================================
   problem-b.css｜お悩みb案：吹き出し羅列（左右交互）＋キャラ締め
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン/画像寸法・フォントサイズは可）
   吹き出し仕様は design-rules §4-2 準拠：
   border 2px solid --sl-pop／border-radius r-full／bg白／
   文字 --sl-pop-deep 700 12〜14px（新規クラスで羅列UI化）
   ============================================================ */

.problem-b__list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 768px) { .problem-b__list { gap: var(--sp-4); } }

.problem-b__item {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-2);
}
.problem-b__item--r { justify-content: flex-end; }

.problem-b__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sl-pop-tint);
  color: var(--sl-pop-deep);
  font-family: var(--sl-font-label);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) { .problem-b__num { width: 40px; height: 40px; font-size: 14px; } }

.problem-b__bubble {
  position: relative;
  display: inline-block;
  max-width: 460px;
  background: var(--sl-white);
  border: 2px solid var(--sl-pop);
  border-radius: var(--r-full);
  color: var(--sl-pop-deep);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  padding: var(--sp-2) var(--sp-3);
}
@media (min-width: 768px) { .problem-b__bubble { font-size: 14px; padding: var(--sp-2) var(--sp-4); } }
.problem-b__bubble::after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  background: var(--sl-white);
  border-left: 2px solid var(--sl-pop);
  border-bottom: 2px solid var(--sl-pop);
  transform: skewX(16deg) rotate(14deg);
}

/* ---- 締め：キャラ＋吹き出し（design-rules §4-2 標準bubble＝1セクション1個。
   .sec-head__char / .bubble の標準パターンをそのまま流用） ---- */
.problem-b__closer {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-6);
}
@media (min-width: 768px) { .problem-b__closer { margin-top: var(--sp-8); } }
.problem-b__char-wrap { position: relative; }
.problem-b__char-shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 63px;
  height: 12px;
  border-radius: 50%;
  background: rgba(5, 15, 28, 0.08);
  filter: blur(4px);
}
@media (min-width: 768px) { .problem-b__char-shadow { width: 98px; bottom: -12px; } }

/* ==================== service-b ==================== */
/* ============================================================
   service-b.css｜サービス内容b案：縦積みカード（白カード・番号付き）
   aバリアント（罫線区切りの横並び行）とは異なり、
   1枚ずつ独立した白カード（--shadow-card・r-md）を縦に3枚並べる。
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン/画像寸法・フォントサイズは可）
   ============================================================ */

.service-b__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
@media (min-width: 768px) { .service-b__list { gap: var(--sp-4); } }

.service-b__card {
  background: var(--sl-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 768px) {
  .service-b__card {
    grid-template-columns: 1fr 300px;
    align-items: center;
    gap: var(--sp-5);
    padding: var(--sp-5);
  }
}

.service-b__num {
  display: inline-block;
  position: relative;
  font-family: var(--sl-font-label);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--sl-pop-strong);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-2);
}
@media (min-width: 768px) { .service-b__num { font-size: 44px; } }
.service-b__num::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--sl-accent);
}

.service-b__col h3 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--sl-navy);
  margin-bottom: var(--sp-2);
}
@media (min-width: 768px) { .service-b__col h3 { font-size: 22px; letter-spacing: 0.04em; } }
.service-b__col p {
  font-size: 15px;
  line-height: 1.85;
  color: var(--sl-text);
}
@media (min-width: 768px) { .service-b__col p { font-size: 16px; } }

.service-b__img {
  border: 1px solid var(--sl-border);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.service-b__img img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== merit-b ==================== */
/* ============================================================
   merit-b.css｜メリットb案：POINT番号付き横並び行
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン/画像寸法・フォントサイズは可）
   ============================================================ */

.merit-b__list {
  max-width: 900px;
  margin: 0 auto;
}

.merit-b__row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr 96px;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--sl-border);
}
.merit-b__row:first-child { padding-top: 0; }
.merit-b__row:last-child { border-bottom: none; padding-bottom: 0; }
@media (min-width: 768px) {
  .merit-b__row {
    grid-template-columns: 88px 1fr 240px;
    gap: var(--sp-4);
    padding: var(--sp-4) 0;
  }
}

/* POINT番号（design-rules §4-③：Lato italic 800 + accentアンダーライン32x3px） */
.merit-b__num { display: flex; flex-direction: column; align-items: flex-start; }
.merit-b__num-label {
  font-family: var(--sl-font-label);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sl-accent-text);
  margin-bottom: 2px;
}
.merit-b__num-i {
  font-family: var(--sl-font-label);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--sl-pop-strong);
}
@media (min-width: 768px) { .merit-b__num-i { font-size: 44px; } }
.merit-b__num::after {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-top: var(--sp-1);
  background: var(--sl-accent);
}

.merit-b__body h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sl-navy);
  margin-bottom: var(--sp-1);
}
@media (min-width: 768px) { .merit-b__body h3 { font-size: 19px; } }
.merit-b__body p {
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--sl-text);
}
@media (min-width: 768px) { .merit-b__body p { font-size: 14px; } }

.merit-b__img {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}
.merit-b__img img { width: 100%; height: 100%; object-fit: cover; }

/* ==================== flow-b ==================== */
/* ============================================================
   flow-b.css｜ご利用の流れb案：縦タイムライン
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン寸法・フォントサイズは可）
   ============================================================ */

.flow-b__timeline {
  max-width: 760px;
  margin: 0 auto;
}

.flow-b__item {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-4);
}
@media (min-width: 768px) { .flow-b__item { grid-template-columns: 64px 1fr; gap: var(--sp-4); } }
.flow-b__item:last-child { padding-bottom: 0; }

/* 縦ライン（--sl-border 2px） */
.flow-b__item::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: var(--sl-border);
}
@media (min-width: 768px) { .flow-b__item::before { left: 31px; top: 64px; } }
.flow-b__item:last-child::before { display: none; }

/* 番号円（--sl-pop-tint地・--sl-pop枠2px・--sl-pop-deep数字） */
.flow-b__num {
  position: relative;
  z-index: 1;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sl-pop-tint);
  border: 2px solid var(--sl-pop);
  color: var(--sl-pop-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sl-font-label);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
@media (min-width: 768px) { .flow-b__num { width: 64px; height: 64px; font-size: 22px; } }

/* 最終ステップのみオレンジ強調 */
.flow-b__item--last .flow-b__num {
  background: var(--sl-accent-strong);
  border-color: var(--sl-accent-strong);
  color: var(--sl-white);
}

.flow-b__card {
  background: var(--sl-white);
  border: 1px solid var(--sl-border);
  border-radius: var(--r-md);
  padding: var(--sp-3);
}
@media (min-width: 768px) { .flow-b__card { padding: var(--sp-3) var(--sp-4); } }
.flow-b__item--last .flow-b__card { border-color: var(--sl-accent); }

.flow-b__card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sl-accent-text);
  margin-bottom: var(--sp-1);
}
@media (min-width: 768px) { .flow-b__card h3 { font-size: 18px; } }
.flow-b__card p {
  font-size: 14px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--sl-text);
}
@media (min-width: 768px) { .flow-b__card p { font-size: 15px; } }
.flow-b__badge {
  display: inline-block;
  font-family: var(--sl-font-label);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--sl-white);
  background: var(--sl-accent-strong);
  border-radius: var(--r-full);
  padding: 2px 10px;
  margin-bottom: var(--sp-1);
}

/* ==================== case-b ==================== */
/* ============================================================
   case-b.css｜事例b案：1件大きく＋サムネ列
   design-rules.md のCSS変数のみ使用。HEX直書き・生px余白禁止
   （1pxボーダー・アイコン/画像寸法・フォントサイズは可）
   ============================================================ */

/* ---- フィーチャー事例カード ---- */
.case-b__feature {
  background: var(--sl-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .case-b__feature { grid-template-columns: 1fr 1fr; } }

.case-b__feature-media { order: 2; aspect-ratio: 4 / 3; overflow: hidden; }
.case-b__feature-body { order: 1; padding: var(--sp-3); display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .case-b__feature-media { order: 0; aspect-ratio: auto; height: 100%; }
  .case-b__feature-body { order: 0; padding: var(--sp-5); justify-content: center; }
}
.case-b__feature-media img { width: 100%; height: 100%; object-fit: cover; }

.case-b__feature-genre {
  display: inline-block;
  align-self: flex-start;
  background: var(--sl-bg-light);
  color: var(--sl-accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-full);
  padding: 2px 14px;
  margin-bottom: var(--sp-2);
}
.case-b__feature-client {
  font-size: 14px;
  font-weight: 700;
  color: var(--sl-navy);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-1);
}
.case-b__feature-body h3 {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sl-accent-text);
  margin-bottom: var(--sp-2);
}
@media (min-width: 768px) { .case-b__feature-body h3 { font-size: 22px; } }
.case-b__feature-desc {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--sl-text);
}
@media (min-width: 768px) { .case-b__feature-desc { font-size: 15px; } }

.case-b__feature-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  border-top: 1px solid var(--sl-border);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
}
.case-b__feature-stats li { text-align: center; }
.case-b__feature-num {
  display: block;
  font-family: var(--sl-font-label);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--sl-accent-text);
}
@media (min-width: 768px) { .case-b__feature-num { font-size: 40px; } }
.case-b__feature-num i { font-style: normal; font-size: 0.5em; margin-left: 2px; }
.case-b__feature-label {
  display: block;
  margin-top: var(--sp-1);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--sl-text-sub);
}
@media (min-width: 768px) { .case-b__feature-label { font-size: 12px; } }

/* ---- サムネ事例カード列 ---- */
.case-b__thumbs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}
@media (min-width: 560px) { .case-b__thumbs { grid-template-columns: repeat(3, 1fr); } }

.case-b__thumb {
  background: var(--sl-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.case-b__thumb-media { aspect-ratio: 4 / 3; overflow: hidden; }
.case-b__thumb-media img { width: 100%; height: 100%; object-fit: cover; }
.case-b__thumb-body { padding: var(--sp-3); }
.case-b__thumb-genre {
  font-family: var(--sl-font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sl-accent-text);
}
.case-b__thumb-body h4 {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sl-navy);
  margin: var(--sp-1) 0 var(--sp-2);
}
.case-b__thumb-result {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--sl-text-sub);
  border-top: 1px solid var(--sl-border);
  padding-top: var(--sp-1);
}
.case-b__thumb-result b {
  font-family: var(--sl-font-label);
  font-weight: 700;
  color: var(--sl-accent-text);
}

/* ==================== cta-variants ==================== */
/* ============================================================
   cta-variants.css｜CTA帯 背景バリアント（P1-07）
   対象は .cta-band[data-variant="a|b|c"] のみ。
   文言差し替え用の構造（cta-a/b/c.html）と組み合わせて使う。
   design-rules.md §1 CSS変数・§4 背景あしらい 準拠。
   色はCSS変数のみ／許可グラデ2種（--grad-accent, --grad-tint）以外は追加禁止。
   ============================================================ */

/* [a] ベタ塗り：クリームtint一色（--bg-tint） */
.cta-band[data-variant="a"] {
  background: var(--bg-tint);
}

/* [b] グラデーション：許可グラデ2種のうち --grad-tint のみ使用 */
.cta-band[data-variant="b"] {
  background: var(--grad-tint);
}

/* [c] 柄入り：白地（--bg-pattern）＋四隅のドットグリッド
   仕様（design-rules §4 背景あしらい）：4px円・16px間隔・--sl-accent 25%不透明。
   四隅のうち1〜2箇所、200×200px程度の範囲に収める。
   rgba()の数値は --sl-accent (#EA700F) のRGB値そのままで、不透明度のみ付与する
   既存の .deco--dots-o と同じ扱い（style.css参照）。HEX直書きではない。
   .cta-band は共通の section { position: relative; } を継承済みのため
   position指定は不要。ドットは白カード（.cta-band__inner）の背後に位置し、
   カードに重なる範囲は白い不透明背景で自然に隠れるため本文の可読性に影響しない。 */
.cta-band[data-variant="c"] {
  background: var(--bg-pattern);
}
.cta-band[data-variant="c"]::before,
.cta-band[data-variant="c"]::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(rgba(234, 112, 15, 0.25) 2px, transparent 2px);
  background-size: 16px 16px;
  pointer-events: none;
  z-index: 0;
}
.cta-band[data-variant="c"]::before { top: 0; left: 0; }
.cta-band[data-variant="c"]::after { bottom: 0; right: 0; }

@media (max-width: 767px) {
  .cta-band[data-variant="c"]::before,
  .cta-band[data-variant="c"]::after {
    width: 100px;
    height: 100px;
  }
}

/* ==================== cards-a（汎用カードグリッド：番号＋アイコン円＋見出し＋本文。2026-08-25ブラッシュアップで新設） ==================== */
.svc__grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; align-items: stretch; }
.svc__card {
  background: var(--sl-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--sp-4) var(--sp-3);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;  /* 2026-08-26 FB: 番号・アイコン・見出しを中央寄せ */
}
@media (min-width: 560px) { .svc__card { width: calc((100% - var(--sp-3)) / 2); } }
@media (min-width: 768px) { .svc__card { width: calc((100% - var(--sp-3) * 2) / 3); } }
.svc__num {
  font-family: var(--sl-font-label);
  font-style: italic;
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  color: var(--sl-pop-strong);
  display: inline-block;
  padding-bottom: var(--sp-1);
  position: relative;
}
.svc__num::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 32px; height: 3px;
  background: var(--sl-accent);
}
.svc__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--sl-pop-tint);
  color: var(--sl-pop);
  display: flex; align-items: center; justify-content: center;
  margin-top: var(--sp-3);
}
.svc__icon svg { width: 34px; height: 34px; }
.svc__card h3 {
  text-align: center;
  margin-top: var(--sp-3);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--sl-accent-text);
}
.svc__body {
  align-self: stretch;
  text-align: left; margin-top: var(--sp-2); font-size: 14px; line-height: 1.8; letter-spacing: 0.02em; text-align: left; }
@media (min-width: 768px) { .svc__body {
  align-self: stretch;
  text-align: left; font-size: 15px; } }
