@charset "utf-8";
/* =========================================================
   TOP ファーストビュー（カードレイアウト）
   左に大きなビジュアル、右にカード2〜4枚（基本は2×2）を置く構成
   使用箇所: common/inc/top/mv-06.html
   ========================================================= */

/* master.css の body 背景（#0055a0）がスクロールの引っ張り時や
   ページ端で青く見えるので、TOPだけ白にする。html にも入れておくと
   iOS Safari のバウンス領域まで白になる（このCSSはTOPでしか読まれない） */
html,
body {
  background-color: #fff;
}

.fv-f {
  --gap: 16px;
  --radius: 14px;

  /* ===== 調整用パラメータ（ここだけ触れば全体に効く） =====
     --fv-navy      : FVの紺（見出し文字・リード帯・ボタン）
     --fv-navy-band : リード帯の背景（透け具合込み）
     カードの白い霞み（写真の上に乗せる白のグラデーション）:
       --haze-start : 霞みが始まる位置（上から%）。小さいほど上から白くなる
       --haze-mid   : 霞みが濃くなる位置（上から%）
       --haze-mid-a : その位置の白の濃さ（0〜1）。大きいほど写真が隠れる
       --haze-end-a : 最下部の白の濃さ（0〜1） */
  --fv-navy: #1a2968;
  --fv-navy-band: rgb(26 41 104 / 93%);
  --haze-start: 26%;
  --haze-mid: 58%;
  --haze-mid-a: .78;
  --haze-end-a: .96;
  /* 固定ヘッダー（60px）と自身の上下 padding を引いて画面の高さに収める。
     低い画面で潰れないよう下限を持たせる。dvh 非対応は前者にフォールバック */
  --fv-h: max(560px, calc(100vh - 132px));
  --fv-h: max(560px, calc(100dvh - 132px));
  padding: 16px 16px 56px;
  background: #eff3f9;
}

.fv-f__grid {
  display: grid;
  /* 右を 2×2 にしたぶん少し広げる（1.92fr のままだと1枚が細くなりすぎる） */
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--gap);
  max-width: 1392px;
  margin: 0 auto;
}

/* =========================================================
   左：メインビジュアル
   ========================================================= */
.fv-f__hero {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: var(--fv-h);
  background: #0d1526;
  text-decoration: none;
  isolation: isolate;
}

/* 親は min-height だけで height:auto のため、height:100% は解決されない。
   四辺を固定して枠に一致させないと object-fit のトリミングが起きず、
   object-position が効かなくなる */
/* top.css の `.p-dhk-top img { height:auto }` が詳細度(0,1,1)で勝ってしまうため、
   こちらも2クラスにして上書きする。これを外すと object-position が効かなくなる */
.fv-f .fv-f__hero-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  /* img は置換要素なので height:100% が親の min-height に解決されない。
     高さを実数で与えないと object-fit のトリミングが起きず object-position が無効になる */
  height: var(--fv-h);
  object-fit: cover;
  object-position: 50% 23%;
  transition: transform 1.2s cubic-bezier(.2, .7, .3, 1);
}

.fv-f__hero:hover .fv-f__hero-img {
  transform: scale(1.035);
}

/* 下半分を沈ませて文字を読ませる */
.fv-f__hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, .52) 46%,
    rgba(255, 255, 255, .86) 70%,
    rgba(255, 255, 255, .96) 100%);
}

.fv-f__hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  min-height: var(--fv-h);
  padding: 48px 56px 44px;
}

.fv-f__ttl {
  font-size: clamp(4rem, 3.6vw, 5.6rem);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: .02em;
  color: var(--fv-navy);
  /* 背景の写真が細かいので、白い光彩で文字を浮かせる */
  text-shadow:
    0 0 18px rgba(255, 255, 255, .9),
    0 0 44px rgba(255, 255, 255, .7);
}

.fv-f__hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
}

/* 行ごとに背景を敷いて白抜きにする（角丸なし） */
.fv-f__read {
  /* 帯の途中で折らない（2026-09-25）。1行20字が左列に収まるよう画面幅で縮める */
  font-size: min(2.1rem, 1.5vw);
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.95;
  letter-spacing: .04em;
}

/* 1行につき1つの帯。inline-block にしないと clip-path が効かない */
.fv-f__read-in {
  display: table;
  padding: 7px 18px;
  background: var(--fv-navy-band);
  color: #fff;
}

.fv-f__read-in + .fv-f__read-in {
  margin-top: 6px;
}

/* ローディング中は隠しておき、明けた合図で左から伸ばす。
   JS が動かないときは is-loading が付かないので、そのまま表示される */
.is-loading .fv-f__read-in {
  clip-path: inset(0 100% 0 0);
}

.is-ready .fv-f__read-in {
  clip-path: inset(0 100% 0 0);
  animation: fvReadIn .85s cubic-bezier(.22, .72, .24, 1) forwards;
}

.is-ready .fv-f__read-in:nth-child(2) {
  animation-delay: .16s;
}

@keyframes fvReadIn {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.fv-f__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid rgb(26 41 104 / 32%);
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fv-navy);
  transition: background .24s, border-color .24s, color .24s;
}

.fv-f__hero:hover .fv-f__btn {
  background: var(--fv-navy);
  border-color: var(--fv-navy);
  color: #fff;
}

/* =========================================================
   右：カード（2〜4枚）
   基本は 2×2。枚数で自動的に組み替える：
     4枚 → 2×2
     3枚 → 1枚目を横長にして上、残り2枚を下
     2枚 → 縦積み（旧レイアウト）
   枚数の判定は :first-child:nth-last-child(n) で行い、HTML側に
   クラスを付けなくても差し替えだけで成立するようにしている
   ========================================================= */
.fv-f__side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: var(--gap);
  min-width: 0;
}

/* 3枚：先頭を横長に */
.fv-f__card:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}

/* 2枚：両方横長にして縦積み */
.fv-f__card:first-child:nth-last-child(2),
.fv-f__card:first-child:nth-last-child(2) + .fv-f__card {
  grid-column: 1 / -1;
}

.fv-f__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b1020;
  text-decoration: none;
  isolation: isolate;
}

.fv-f .fv-f__card-img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2, .7, .3, 1);
}

.fv-f__card:hover .fv-f__card-img {
  transform: scale(1.05);
}

/* 正方形寄りのカードは文字がカードの中ほどまで上がるので、
   白の霞みを早めに立ち上げる */
.fv-f__card:not(.fv-f__card--logo)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* 値は .fv-f の --haze-* で調整する */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) var(--haze-start),
    rgba(255, 255, 255, var(--haze-mid-a)) var(--haze-mid),
    rgba(255, 255, 255, var(--haze-end-a)) 100%);
}

/* カード上部のロゴ（共通の置き方）。
   サイズと高さ位置は「DHK CANVASロゴ」と「企業ロゴ（--client）」で別々に持つ。
   同じ詳細度で後勝ちにならないよう、共通側は :not(--client) で企業ロゴを除外する */
.fv-f .fv-f__card-logo {
  position: absolute;
  z-index: 1;
  left: 50%;
  height: auto;
  transform: translate(-50%, -50%);
}

.fv-f .fv-f__card-logo:not(.fv-f__card-logo--client) {
  /* 縦長カード（PC 2×2）は本文が下 1/3 に寄るので、ロゴは上 2/3 の重心（34%）に
     置き、少し大きめにして上下の余白を均す（2026-09-17 調整。旧 30%/62%/220px） */
  top: 34%;
  width: 70%;
  max-width: 236px;
}

/* 企業ロゴ型の事例カード：写真を持たず、淡い地にロゴを置く。
   地が白いので霞みは作らない（写真カード側は :not(--logo) で除外） */
.fv-f__card--logo {
  background: linear-gradient(160deg, #ffffff 0%, #eef2f8 100%);
}

/* ロゴの背後に淡い光を敷いて、無地カードの上半分が空いて見えないようにする */
.fv-f__card--logo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(58% 34% at 50% 33%, rgba(26, 41, 104, .07), rgba(26, 41, 104, 0) 100%);
}

/* 企業ロゴはDHK CANVASロゴより横に短いので、少し大きめに出す */
.fv-f .fv-f__card-logo--client {
  top: 33%;
  width: 66%;
  max-width: 204px;
}

/* 本文はボタンの上に置く（横幅が足りないので横並びにしない） */
.fv-f__card-body {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 80px;
  left: 24px;
}

/* ---------------------------------------------------------
   横長カード（3枚時の1枚目・2枚時の両方）は旧レイアウト：
   本文を左、ボタンを右に並べ、霞みは下だけに置く
   --------------------------------------------------------- */
.fv-f__card:first-child:nth-last-child(3):not(.fv-f__card--logo)::after,
.fv-f__card:first-child:nth-last-child(2):not(.fv-f__card--logo)::after,
.fv-f__card:first-child:nth-last-child(2) + .fv-f__card:not(.fv-f__card--logo)::after {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, .72) 72%,
    rgba(255, 255, 255, .94) 100%);
}

.fv-f .fv-f__card:first-child:nth-last-child(3) .fv-f__card-logo:not(.fv-f__card-logo--client),
.fv-f .fv-f__card:first-child:nth-last-child(2) .fv-f__card-logo:not(.fv-f__card-logo--client),
.fv-f .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-logo:not(.fv-f__card-logo--client) {
  top: 42%;
  width: 54%;
  max-width: 268px;
}

/* 横長カードに企業ロゴが来たとき（先頭に置く運用は想定外だが崩さない） */
.fv-f .fv-f__card:first-child:nth-last-child(3) .fv-f__card-logo--client,
.fv-f .fv-f__card:first-child:nth-last-child(2) .fv-f__card-logo--client,
.fv-f .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-logo--client {
  top: 42%;
  width: 40%;
  max-width: 200px;
}

.fv-f__card:first-child:nth-last-child(3) .fv-f__card-body,
.fv-f__card:first-child:nth-last-child(2) .fv-f__card-body,
.fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-body {
  right: 128px;
  bottom: 28px;
  left: 32px;
}

.fv-f__card:first-child:nth-last-child(3) .fv-f__card-btn,
.fv-f__card:first-child:nth-last-child(2) .fv-f__card-btn,
.fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-btn {
  right: 28px;
  bottom: 28px;
}

/* 横長カードは幅があるので、正方形用の指定改行は使わない */
.fv-f__card:first-child:nth-last-child(3) .fv-f__card-br,
.fv-f__card:first-child:nth-last-child(2) .fv-f__card-br,
.fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-br {
  display: none;
}

.fv-f__card-ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--fv-navy);
}

.fv-f__card-btn {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--fv-navy);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  transition: background .24s;
}

.fv-f__card:hover .fv-f__card-btn {
  background: #2c56f7;
}

/* =========================================================
   実績バッジ（グリッドの下）
   ========================================================= */
.fv-f__badges {
  container-type: inline-size;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 2.2cqw;
  row-gap: 12px;
  max-width: 1392px;
  margin: 28px auto 0;
  padding: 0 8px;
}

.fv-f__badge {
  position: relative;
  flex: 0 0 auto;
  width: 26em;
  min-height: 8.6em;
  padding: 0 3.9em;
  font-size: 9px; /* cqw 非対応ブラウザ向けフォールバック */
  font-size: min(1.1cqw, 9px);
  line-height: 1;
  text-align: center;
  color: #1e2a8a;
}

.fv-f__badge::before,
.fv-f__badge::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3.1em;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.fv-f__badge::before {
  left: 0;
  background-image: url("/common/img/top/fv/laurel-l.svg");
}

.fv-f__badge::after {
  right: 0;
  background-image: url("/common/img/top/fv/laurel-r.svg");
}

.fv-f__badge-lead {
  display: block;
  padding-top: .2em;
  font-size: 2em;
  font-weight: 800;
  letter-spacing: .01em;
  white-space: nowrap;
}

.fv-f__badge-num {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: .1em;
  font-size: 5em;
  font-weight: 900;
  letter-spacing: -.01em;
}

.fv-f__badge-unit {
  padding-bottom: .06em;
  font-size: .48em;
}

.fv-f__badge-sub {
  width: 1em;
  padding-bottom: .28em;
  margin-left: .06em;
  font-size: .24em;
  line-height: 1.15;
  text-align: left;
}

.fv-f__badge-ast {
  align-self: flex-start;
  padding-top: .2em;
  font-size: .3em;
}

.fv-f__badge-note {
  flex: 1 1 300px;
  min-width: 0;
  margin-left: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: #8a93a6;
}

/* =========================================================
   〜1200px
   ========================================================= */
@media print, screen and (max-width: 1200px) {
  .fv-f__hero-body {
    padding: 40px 40px 36px;
  }
  /* 左列が狭くなるので、リード帯を1段落とし、帯の途中で折らない。
     収まらないときは About Us が下の行に落ちる */
  .fv-f__hero-foot {
    flex-wrap: wrap;
  }
  .fv-f__read {
    font-size: 1.7rem;
    white-space: nowrap;
  }
  /* 正方形カードは幅が足りないので、指定改行をやめて自然折返しに任せる */
  .fv-f__card-br {
    display: none;
  }
  .fv-f__card-body {
    right: 20px;
    left: 20px;
  }
  /* 横長カードだけ本文とボタンの間を詰める（正方形は本文が上にあるので不要） */
  .fv-f__card:first-child:nth-last-child(3) .fv-f__card-body,
  .fv-f__card:first-child:nth-last-child(2) .fv-f__card-body,
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-body {
    right: 128px;
    left: 24px;
  }
  .fv-f .fv-f__card-logo:not(.fv-f__card-logo--client) {
    width: 66%;
    max-width: 200px;
  }
  .fv-f__card-ttl {
    font-size: 1.4rem;
  }
}

/* =========================================================
   〜960px：縦積み。カードは横2列に並べる
   ========================================================= */
@media print, screen and (max-width: 960px) {
  /* 縦積みになるので画面いっぱいをやめ、固定の高さに戻す */
  .fv-f {
    --fv-h: 520px;
    padding: 12px 12px 44px;
  }
  .fv-f__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* 横に余裕があるので2枚時も横並びに戻す（3枚時の横長1枚目はそのまま） */
  .fv-f__card:first-child:nth-last-child(2),
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card {
    grid-column: auto;
  }
  /* 2列でも1枚が横長になるので、枚数に関係なく全カードを横長レイアウトにする */
  .fv-f__card {
    min-height: 236px;
  }
  .fv-f__card:not(.fv-f__card--logo)::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, .72) 72%,
      rgba(255, 255, 255, .94) 100%);
  }
  .fv-f .fv-f__card-logo:not(.fv-f__card-logo--client) {
    top: 42%;
    width: 54%;
    max-width: 268px;
  }
  .fv-f .fv-f__card-logo--client {
    top: 42%;
    width: 48%;
    max-width: 200px;
  }
  /* ボタン（右28px＋幅92px）と重ならない余白。116だと4px食い込む */
  .fv-f__card-body {
    right: 128px;
    bottom: 28px;
    left: 24px;
  }
  .fv-f__card-btn {
    right: 28px;
    bottom: 28px;
  }
  .fv-f__badges {
    column-gap: 3cqw;
  }
  .fv-f__badge {
    font-size: min(1.9cqw, 9px);
  }
  .fv-f__badge-note {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* =========================================================
   SP
   ========================================================= */
@media print, screen and (max-width: 767px) {
  .fv-f {
    --gap: 10px;
    --radius: 12px;
    --fv-h: 540px;
    padding: 10px 10px 36px;
  }
  .fv-f__hero-body {
    padding: 28px 24px 26px;
  }
  /* SPは見出しが人物に重なるので、白の霞みを早めに立ち上げる */
  .fv-f__hero::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 18%,
      rgba(255, 255, 255, .74) 46%,
      rgba(255, 255, 255, .96) 100%);
  }
  .fv-f .fv-f__hero-img {
    object-position: 50% 18%;
  }
  /* 「まだない体験をつくる。」(11文字)が 360〜390px で1行に収まる大きさ。
     3rem 固定だと「る。」だけが3行目に落ちる */
  .fv-f__ttl {
    font-size: clamp(2.6rem, 7.4vw, 2.95rem);
    line-height: 1.38;
    letter-spacing: 0;
  }
  .fv-f__hero-foot {
    display: block;
    margin-top: 20px;
  }
  /* 帯の20文字が 360px でも1行に入る大きさ。収まらない端末では折返しを許す */
  .fv-f__read {
    font-size: clamp(1.1rem, 3.2vw, 1.3rem);
    white-space: normal;
  }
  .fv-f__br {
    display: none;
  }
  .fv-f__btn {
    display: flex;
    width: 100%;
    margin-top: 18px;
  }
  /* 4枚を1列に積むと縦に長くなりすぎるので、SPも2列のまま。
     2枚時だけ縦積み（横長）に戻す */
  .fv-f__card:first-child:nth-last-child(2),
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card {
    grid-column: 1 / -1;
  }
  .fv-f__card {
    min-height: 176px;
  }
  /* 960px以下で横長レイアウトにしたぶんを、正方形カード用に戻す。
     カードが低いので霞みを早めに立ち上げる（SP用の値は .fv-f の変数で上書き） */
  .fv-f {
    --haze-start: 16%;
    --haze-mid: 46%;
    --haze-mid-a: .8;
  }
  .fv-f__card:not(.fv-f__card--logo)::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) var(--haze-start),
      rgba(255, 255, 255, var(--haze-mid-a)) var(--haze-mid),
      rgba(255, 255, 255, var(--haze-end-a)) 100%);
  }
  /* 見出しより上の余白の中央に置く（2026-09-26。旧: ラベルとの重なり回避で 20%／15%）*/
  .fv-f .fv-f__card-logo:not(.fv-f__card-logo--client) {
    top: 30%;
    width: 64%;
    max-width: 120px;
  }
  /* 企業ロゴは2段組で縦に高いので小さめ */
  .fv-f .fv-f__card-logo--client {
    top: 30%;
    width: 56%;
    max-width: 100px;
  }
  .fv-f .fv-f__card:first-child:nth-last-child(3) .fv-f__card-logo:not(.fv-f__card-logo--client),
  .fv-f .fv-f__card:first-child:nth-last-child(2) .fv-f__card-logo:not(.fv-f__card-logo--client),
  .fv-f .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-logo:not(.fv-f__card-logo--client) {
    top: 38%;
    width: 50%;
    max-width: 180px;
  }
  .fv-f .fv-f__card:first-child:nth-last-child(3) .fv-f__card-logo--client,
  .fv-f .fv-f__card:first-child:nth-last-child(2) .fv-f__card-logo--client,
  .fv-f .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-logo--client {
    top: 38%;
    width: 40%;
    max-width: 140px;
  }
  .fv-f__card-body {
    right: 16px;
    bottom: 64px;
    left: 16px;
  }
  .fv-f__card:first-child:nth-last-child(3) .fv-f__card-body,
  .fv-f__card:first-child:nth-last-child(2) .fv-f__card-body,
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-body {
    right: 108px;
    bottom: 22px;
    left: 22px;
  }
  .fv-f__card:first-child:nth-last-child(3):not(.fv-f__card--logo)::after,
  .fv-f__card:first-child:nth-last-child(2):not(.fv-f__card--logo)::after,
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card:not(.fv-f__card--logo)::after {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, .72) 72%,
      rgba(255, 255, 255, .94) 100%);
  }
  .fv-f__card-ttl {
    margin-top: 0;
    font-size: 1.3rem;
  }
  .fv-f__card-btn {
    right: 16px;
    bottom: 16px;
    min-width: 72px;
    height: 34px;
    font-size: 1.2rem;
  }
  .fv-f__card:first-child:nth-last-child(3) .fv-f__card-btn,
  .fv-f__card:first-child:nth-last-child(2) .fv-f__card-btn,
  .fv-f__card:first-child:nth-last-child(2) + .fv-f__card .fv-f__card-btn {
    right: 20px;
    bottom: 22px;
  }
  .fv-f__badges {
    column-gap: 3cqw;
    margin-top: 22px;
  }
  .fv-f__badge {
    font-size: min(1.62cqw, 9px);
  }
  .fv-f__badge-note {
    font-size: .9rem;
  }
}

/* =========================================================
   〜360px（iPhone SE 初代・小型Android）
   カード幅が145px前後になり、タイトルが3行に折れてロゴと重なる。
   文字を一段落として2行に収める
   ========================================================= */
@media print, screen and (max-width: 360px) {
  .fv-f__card-body {
    right: 12px;
    left: 12px;
  }
  .fv-f__card-ttl {
    font-size: 1.2rem;
  }
  .fv-f__card-btn {
    min-width: 64px;
    padding: 0 12px;
  }
}

/* =========================================================
   【一時】実績バッジと注釈を非表示にする
   戻すときはこのブロックごと削除する
   ========================================================= */
.fv-f__badges {
  display: none;
}

.fv-f {
  padding-bottom: 16px;
}

/* =========================================================
   導入企業ロゴの帯（既存 .p-sponsor）
   1行 → 2行（上下で流れる向きが逆）にし、1行あたりを低くする
   ※ top.css 本体は触らず、このプレビュー側で上書きしている
   ========================================================= */
.p-sponsor {
  height: auto;
  padding-block: 14px;
}

/* 1行用トラックを止め、2行用トラック（既存のSP用マークアップ）を使う */
.p-sponsor__track--pc {
  display: none;
}

.p-sponsor__tracks-sp {
  display: grid;
  row-gap: 10px;
}

.p-sponsor__logo {
  max-height: 40px;
}

.p-sponsor__logo--toppan {
  max-height: 17px;
}

.p-sponsor__logo--duskin {
  max-height: 28px;
}

/* 2026-09-17 追加の4社。横長・ベタ塗りのロゴは他と目方を揃えるため低くする */
.p-sponsor__logo--francebed {
  max-height: 30px;
}

.p-sponsor__logo--saishunkan {
  max-height: 22px;
}

@media print, screen and (max-width: 767px) {
  .p-sponsor {
    padding-block: 10px;
  }
  .p-sponsor__track--pc {
    display: none;
  }
  .p-sponsor__tracks-sp {
    display: grid;
    row-gap: 8px;
  }
  .p-sponsor__logo {
    max-height: 28px;
  }
  .p-sponsor__logo--toppan {
    max-height: 13px;
  }
  .p-sponsor__logo--duskin {
    max-height: 20px;
  }
  .p-sponsor__logo--francebed {
    max-height: 21px;
  }
  .p-sponsor__logo--saishunkan {
    max-height: 15px;
  }
}

/* =========================================================
   カードのボタン見た目パターン
   .fv-f に data-btn="a|b|c|d|e" を付けて切り替える（未指定＝a）。
   比較は _preview-btn-patterns.html
     a: 紺のピル（現状）
     b: 白地に紺の枠。hover で塗る
     c: 丸い矢印だけ（文字なし）
     d: 文字＋小さな丸矢印。地なし
     e: ブランドの青（#2c56f7）のピル
   ========================================================= */
/* 左の About Us（.fv-f__btn）と同じ作り：地は透明、細い薄紺の枠、字は 600・字間広め */
.fv-f[data-btn="b"] .fv-f__card-btn {
  background: transparent;
  border: 1px solid rgb(26 41 104 / 32%);
  color: var(--fv-navy);
  font-weight: 600;
  letter-spacing: .06em;
  transition: background .24s, border-color .24s, color .24s;
}

.fv-f[data-btn="b"] .fv-f__card:hover .fv-f__card-btn {
  background-color: var(--fv-navy);
  border-color: var(--fv-navy);
  color: #fff;
}

.fv-f[data-btn="c"] .fv-f__card-btn {
  width: 40px;
  min-width: 0;
  padding: 0;
  font-size: 0;
  background: var(--fv-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.fv-f[data-btn="c"] .fv-f__card:hover .fv-f__card-btn {
  background-color: #2c56f7;
}

.fv-f[data-btn="d"] .fv-f__card-btn {
  gap: 8px;
  height: auto;
  min-width: 0;
  padding: 0;
  background: none;
  color: var(--fv-navy);
}

.fv-f[data-btn="d"] .fv-f__card-btn::after {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fv-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .24s;
}

.fv-f[data-btn="d"] .fv-f__card:hover .fv-f__card-btn::after {
  transform: translateX(3px);
}

.fv-f[data-btn="e"] .fv-f__card-btn {
  background: #2c56f7;
}

.fv-f[data-btn="e"] .fv-f__card:hover .fv-f__card-btn {
  background: var(--fv-navy);
}

/* --- 追加パターン f〜j --- 
     f: 白い丸矢印（影つき）。写真の上で軽く見せる
     g: 文字＋下線だけ。いちばん静か
     h: 角丸四角の紺。文字＋矢印
     i: 半透明の白（すりガラス）ピル、紺文字
     j: カード下端いっぱいの帯。左に文字・右に矢印（2×2 前提。横長カード時は本文位置の調整が要る） */
.fv-f[data-btn="f"] .fv-f__card-btn {
  width: 40px;
  min-width: 0;
  padding: 0;
  font-size: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2968' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 4px 14px rgba(15, 26, 61, .16);
}

.fv-f[data-btn="f"] .fv-f__card:hover .fv-f__card-btn {
  background-color: var(--fv-navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
}

.fv-f[data-btn="g"] .fv-f__card-btn {
  height: auto;
  min-width: 0;
  padding: 0 0 5px;
  border-radius: 0;
  border-bottom: 2px solid var(--fv-navy);
  background: none;
  color: var(--fv-navy);
  letter-spacing: .1em;
}

.fv-f[data-btn="g"] .fv-f__card:hover .fv-f__card-btn {
  border-color: #2c56f7;
  color: #2c56f7;
}

.fv-f[data-btn="h"] .fv-f__card-btn {
  gap: 8px;
  padding: 0 14px 0 18px;
  border-radius: 8px;
}

.fv-f[data-btn="h"] .fv-f__card-btn::after {
  content: "";
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.fv-f[data-btn="i"] .fv-f__card-btn {
  background: rgba(255, 255, 255, .74);
  color: var(--fv-navy);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(15, 26, 61, .12), inset 0 0 0 1px rgba(255, 255, 255, .7);
}

.fv-f[data-btn="i"] .fv-f__card:hover .fv-f__card-btn {
  background: #fff;
}

.fv-f[data-btn="j"] .fv-f__card-btn {
  right: 0;
  bottom: 0;
  left: 0;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 22px 0 24px;
  border-radius: 0;
  letter-spacing: .08em;
}

.fv-f[data-btn="j"] .fv-f__card-btn::after {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .24s;
}

.fv-f[data-btn="j"] .fv-f__card:hover .fv-f__card-btn::after {
  transform: translateX(4px);
}

/* j は帯が下端に付くので本文を少し上げる */
.fv-f[data-btn="j"] .fv-f__card-body {
  bottom: 66px;
}

/* =========================================================
   カード内の「文字とボタンの位置」パターン
   .fv-f に data-layout="1|2|3|4|5|6" を付けて切り替える（未指定＝1）。
   比較は _preview-layout-patterns.html。横長カード（3枚・2枚時）は従来配置のまま
     1: 文字は左下、ボタンはその下の右寄せ（現状）
     2: 文字もボタンも左揃えで縦に並べる
     3: 文字もボタンも中央揃え
     4: 文字は左下いっぱい、ボタンは右上（写真の上）
     5: 文字とボタンを最下段に横並び。ボタンは丸い矢印に変わる
     6: 文字の下に、カード幅いっぱいのボタン
   ========================================================= */

/* 2: 左揃え縦積み */
.fv-f[data-layout="2"] .fv-f__card-btn {
  right: auto;
  left: 24px;
}

/* 3: 中央揃え */
.fv-f[data-layout="3"] .fv-f__card-body {
  text-align: center;
}

.fv-f[data-layout="3"] .fv-f__card-btn {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* 4: 文字は下いっぱい、ボタンは右上。写真の上に載るので白地にする */
.fv-f[data-layout="4"] .fv-f__card-body {
  bottom: 26px;
}

.fv-f[data-layout="4"] .fv-f__card-btn {
  top: 18px;
  right: 18px;
  bottom: auto;
  height: 34px;
  min-width: 0;
  padding: 0 14px;
  background: rgba(255, 255, 255, .92);
  font-size: 1.2rem;
}

/* 5: 最下段に横並び。ボタンは丸矢印 */
.fv-f[data-layout="5"] .fv-f__card-body {
  right: 70px;
  bottom: 26px;
  left: 22px;
}

/* 横に矢印が並ぶぶん文字の幅が狭い。指定改行の2行目（最長12文字）が収まる大きさ */
.fv-f[data-layout="5"] .fv-f__card-ttl {
  font-size: 1.4rem;
  letter-spacing: 0;
}

.fv-f[data-layout="5"] .fv-f__card-btn {
  width: 42px;
  min-width: 0;
  padding: 0;
  font-size: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2968' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
}

.fv-f[data-layout="5"] .fv-f__card:hover .fv-f__card-btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M12 5l7 7-7 7'/%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}

/* 6: カード幅いっぱいのボタン */
.fv-f[data-layout="6"] .fv-f__card-body {
  bottom: 86px;
}

.fv-f[data-layout="6"] .fv-f__card-btn {
  right: 24px;
  left: 24px;
  height: 42px;
}

@media print, screen and (max-width: 767px) {
  .fv-f[data-layout="2"] .fv-f__card-btn { left: 16px; }
  .fv-f[data-layout="4"] .fv-f__card-body { bottom: 18px; }
  .fv-f[data-layout="4"] .fv-f__card-btn { top: 12px; right: 12px; height: 28px; padding: 0 10px; font-size: 1.05rem; }
  /* SPは幅が足りないので文字を一段落として2行に収め、矢印も小さく */
  .fv-f[data-layout="5"] .fv-f__card-body { right: 50px; bottom: 16px; left: 14px; }
  .fv-f[data-layout="5"] .fv-f__card-ttl { font-size: 1.2rem; line-height: 1.5; }
  .fv-f[data-layout="5"] .fv-f__card-btn { width: 30px; height: 30px; right: 12px; bottom: 16px; background-size: 13px; }
  .fv-f[data-layout="6"] .fv-f__card-body { bottom: 68px; }
  .fv-f[data-layout="6"] .fv-f__card-btn { right: 16px; left: 16px; height: 36px; }
}

/* 旧ヘッダーはSPで固定配置のため master.css が #main に padding-top:63px を入れている。
   新TOPは新ヘッダー（通常フロー／sticky）なので打ち消す。
   このCSSは新TOP（top-v2.html）だけが読むので、旧TOPには効かない（Codexレビュー R2） */
#main.l-main {
  padding-top: 0;
}
