/* =========================================================
   K-Drive 健康経営プロジェクト｜Hero（確定案 5a MONOCHROME）
   Claude Design t5-5a を実装に移植。
   白 #FFFFFF ／ 黒 #14181D ／ パネル #F2F2F2。彩りは実画面のみ。
   ========================================================= */

:root {
  --ink: #14181D;
  --ink-90: #171D26;
  --ink-sub: #565D66;
  --panel: #F2F2F2;
  --line: rgba(17, 24, 32, .1);
  --line-strong: rgba(16, 20, 24, .14);
  --font-ja: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
  --font-en: 'Manrope', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ---------- Header ---------- */

.hd {
  position: sticky;
  top: 0;
  /* モバイルメニュー(.hdm z-index:60)より前面に置く。
     でないとメニューがヘッダーを覆い、閉じるボタンが押せなくなる。 */
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.hd__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.hd__logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .02em;
}

.hd__sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(17, 24, 32, .55);
  letter-spacing: .16em;
  white-space: nowrap;
}

.hd__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.hd__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-90);
  text-decoration: none;
}

.hd__nav a:hover { opacity: .6; }

.hd__cta,
.hd__nav a.hd__cta {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 9px 18px;
  border-radius: 4px;
}

.hd__cta:hover { opacity: .85; }

.hd__burger { display: none; }

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 65px);
}

.hero__eyebrow {
  margin: 18px 40px 0;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: .12em;
}

.hero__title {
  display: flex;
  align-items: baseline;
  gap: 26px;
  margin: 10px 40px 0;
  white-space: nowrap;
}

.hero__title-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: clamp(56px, 6.9vw, 100px);
  line-height: 1;
  letter-spacing: .01em;
}

.hero__title-ja {
  font-size: clamp(48px, 5.9vw, 85px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: .015em;
}

/* 改行は .w 単位でのみ許可（単語内で折らない） */
.hero__title-ja .w {
  display: inline-block;
  white-space: nowrap;
}

.hero__catch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 40px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .1em;
}

.hero__catch-bar {
  width: 28px;
  height: 3px;
  background: var(--ink);
}

.hero__lead {
  margin: 10px 40px 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-sub);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 16px 40px 0;
}

.btn {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 4px;
  text-align: center;
}

.btn--primary { color: #fff; background: var(--ink); }
.btn--primary:hover { opacity: .85; }
.btn--ghost {
  color: var(--ink);
  border: 1px solid rgba(16, 20, 24, .35);
  font-weight: 600;
}
.btn--ghost:hover { background: rgba(16, 20, 24, .05); }

/* ---------- Stage（3D回転カルーセル） ---------- */

/* 確定案5aのPC構成＝eyebrow＋タイトル＋ステージ。
   キャッチ・リード・CTAはSPのみ（PCのCTAはヘッダー） */
@media (min-width: 768px) {
  .hero__catch,
  .hero__lead,
  .hero__actions { display: none; }
}

.stage {
  position: relative;
  margin: 16px 40px 0;
  height: 540px;
  border-radius: 18px;
  /* 淡いブルーの空気感（横浜銀行系）。白カードが浮き、オレンジが差し色として立つ */
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(165deg, #EDF4FA 0%, #DFEAF4 52%, #D2E1EF 100%);
  overflow: hidden;
}

/* 遠近コンテキスト → 傾き → 回転リング の3層 */
.stage__fan {
  position: absolute;
  inset: 0;
  perspective: 2000px;
  perspective-origin: 50% 38%;
}

.stage__tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(-12deg) rotateZ(-7deg);   /* 斜めの回転軌道（follow.art寄り） */
}

.ring {
  position: absolute;
  left: 50%;
  top: 55%;   /* 奥側の帯が上へ持ち上がるぶん下げて、ステージ内に収める */
  transform-style: preserve-3d;
  /* translateZ(-R) と rotationY は JS（GSAP）が制御 */
}

/* ---------- 中央固定のスマホ（wellness office・回転しない） ----------
   .stage__tilt（preserve-3d）の直下に置き、translateZ(-R) で円筒の中心軸上へ。
   3Dの奥行きソートにより、手前のカードは前を・奥のカードは後ろを通る。
   奥に置くぶん遠近で縮むため、実寸は大きめに取る（transformはJSが設定） */

.phone {
  position: absolute;
  left: 50%;
  top: 120px;   /* 実測で微調整（tilt空間内のため計算では合わない） */
  width: 260px;
  margin: 0 0 0 -130px;
}

.phone__frame {
  position: relative;
  background: #101418;
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(16, 20, 24, .28);
}

.phone__island {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  background: #101418;
  border-radius: 13px;
  z-index: 2;
}

.phone__screen {
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
}

.phone__screen img {
  width: 100%;
  height: auto;
  display: block;
  /* スクショ側のステータスバーを切り、Dynamic Islandを実機の一部に見せる */
  margin-top: -12.4%;
}

.card {
  position: absolute;
  left: -165px;   /* -width/2 */
  top: -107px;    /* -height/2 */
  width: 330px;
  height: 214px;
  transform-style: preserve-3d;   /* 湾曲スライスを保持 */
  /* 背面も表示する（帯の向こう側が上に見え続ける） */
  /* 円筒配置 rotateY(i*STEP) translateZ(R) は JS が設定 */
}

/* ---- 湾曲（JSが .card 内を縦3スライスに分割して生成） ---- */

.card__slice {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.card__slice--l {
  left: 0;
  transform-origin: 100% 50%;
  transform: rotateY(-10deg);    /* 左端を奥へ＝円筒に沿った反り */
  border-radius: 12px 0 0 12px;
}

.card__slice--c { border-radius: 0; }

.card__slice--r {
  transform-origin: 0 50%;
  transform: rotateY(10deg);     /* 右端を奥へ */
  border-radius: 0 12px 12px 0;
}

.card__slice .cardc {
  position: absolute;
  top: 0;
  height: 100%;
  /* width と left は JS が設定（スライスごとに表示範囲をずらす） */
}

/* ---- カード面のデザイン（偽ブラウザ枠・黒チップは廃止） ---- */

.cardc {
  position: absolute;
  inset: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 14px 18px 12px;
  box-sizing: border-box;
}

.cardc__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-en);
  margin-bottom: 10px;
}

.cardc__head b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.cardc__head span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(16, 20, 24, .45);
}

.cardc__shot {
  flex: 1;
  border-radius: 8px;
  border: 1px solid rgba(16, 20, 24, .08);
  overflow: hidden;
  background: #EAF0F6;   /* 背景のブルーと同系 */
  position: relative;
}

.cardc__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.cardc__shot--empty::after {
  content: '素材未確定';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(16, 20, 24, .4);
}

.cardc__name {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--ink);
}

/* ロゴなど全体を見せる素材（白地に余白つきで収める） */
.cardc__shot--fit {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}
.cardc__shot--fit img {
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* 実写ライフスタイル素材（スマホ画面が中央右にある構図） */
.cardc__shot img.is-lifestyle { object-position: center 42%; }

/* 専門家2名の並列表示 */
.cardc__shot--duo {
  display: flex;
  gap: 2px;
  background: #fff;
}
.cardc__shot--duo img {
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.stage__note {
  position: absolute;
  left: 24px;
  bottom: 16px;
  margin: 0;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(16, 20, 24, .55);
  z-index: 9;
}

.stage__pause {
  position: absolute;
  right: 22px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.stage__pause-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(16, 20, 24, .35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, .75);
}

.stage__pause-icon i {
  width: 3px;
  height: 12px;
  background: var(--ink);
}

/* 再生アイコン（停止中） */
.stage__pause[aria-pressed="true"] .stage__pause-icon i:first-child {
  width: 0;
  height: 0;
  background: none;
  border-left: 10px solid var(--ink);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}
.stage__pause[aria-pressed="true"] .stage__pause-icon i:last-child { display: none; }

.stage__pause-text {
  font-size: 12px;
  color: rgba(16, 20, 24, .6);
}

.stage__pause:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 次セクション帯 ---------- */

.hero__foot {
  margin-top: auto;
  position: relative;
  z-index: 8;
  background: #fff;
  border-top: 1px solid var(--line-strong);
  padding: 14px 40px 18px;
}

.hero__foot-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .24em;
}

.hero__foot-label .rule {
  width: 28px;
  height: 3px;
  background: var(--ink);
}

.hero__foot-title {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .04em;
}

/* ---------- 入場アニメーション初期状態 ---------- */

.js [data-rv] { opacity: 0; transform: translateY(18px); }
.js [data-split] .ch { opacity: 0; display: inline-block; transform: translateY(.35em); filter: blur(6px); }

/* ---------- SP ---------- */

@media (max-width: 767px) {

  .hd { padding: 15px 16px; }
  .hd__logo { font-size: 16px; }
  .hd__sub { font-size: 9px; letter-spacing: .12em; }
  .hd__nav { display: none; }

  .hd__burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
  }
  .hd__burger span { width: 20px; height: 2px; background: var(--ink); }
  .hd__burger span:last-child { width: 12px; align-self: flex-end; }

  .hero__eyebrow {
    margin: 14px 16px 0;
    font-size: 15px;
    letter-spacing: .1em;
  }

  /* SPは3行折り：K-Drive 健康経営 / プロジェクト */
  .hero__title {
    flex-wrap: wrap;
    gap: 0 10px;
    margin: 8px 16px 0;
    white-space: normal;
  }
  .hero__title-en { font-size: 46px; letter-spacing: .005em; }
  .hero__title-ja { font-size: 42px; letter-spacing: .01em; line-height: 1.1; }

  .hero__catch { margin: 12px 16px 0; font-size: 18px; }
  .hero__catch-bar { width: 24px; }

  .hero__lead { margin: 8px 16px 0; font-size: 13px; line-height: 1.8; }

  .hero__actions {
    flex-direction: column;
    margin: 10px 16px 0;
  }
  .btn { padding: 13px 0; font-size: 15px; }

  .stage {
    margin: 12px 16px 0;
    height: 320px;
    border-radius: 14px;
  }
  .stage__fan { perspective: 1100px; }
  .stage__tilt { transform: rotateX(-10deg) rotateZ(-5deg); }

  .card {
    width: 180px;
    height: 117px;
    left: -90px;
    top: -58px;
  }

  .cardc { padding: 8px 10px 7px; }
  .cardc__head { margin-bottom: 5px; gap: 6px; }
  .cardc__head b { font-size: 10px; }
  .cardc__head span { font-size: 8px; letter-spacing: .18em; }
  .cardc__shot { border-radius: 5px; }
  .cardc__name { margin-top: 5px; font-size: 11px; }
  .card__slice--l { border-radius: 8px 0 0 8px; }
  .card__slice--r { border-radius: 0 8px 8px 0; }

  .phone {
    width: 145px;
    margin-left: -72px;
    top: 38px;
  }
  .phone__frame { border-radius: 30px; padding: 7px; }
  .phone__island { width: 56px; height: 16px; margin-left: -28px; top: 14px; border-radius: 9px; }
  .phone__screen { border-radius: 23px; }

  .stage__note { left: 14px; bottom: 12px; font-size: 10px; }
  .stage__pause { right: 12px; top: 12px; }
  .stage__pause-icon { width: 34px; height: 34px; }
  .stage__pause-icon i { width: 2.5px; height: 10px; }
  .stage__pause-text { display: none; }

  .hero__foot { padding: 12px 16px 14px; }
  .hero__foot-title { font-size: 15px; white-space: nowrap; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .js [data-rv],
  .js [data-split] .ch {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* =========================================================
   サービスカード（follow.art型スタック）
   各カードが sticky で止まり、次のカードが上に重なっていく
   ========================================================= */

.svc {
  position: relative;
  padding: 48px 40px 120px;
  background: #fff;
}

.svc-card {
  position: sticky;
  top: calc(90px + var(--i) * 14px);
  margin: 0 auto 48px;
  max-width: 1180px;
  transform: rotate(var(--rot, 0deg));
}

.svc-card__in {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 0;
  min-height: 480px;
  background: #fff;
  border: 1px solid rgba(16, 20, 24, .14);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(16, 20, 24, .10);
}

.svc-card__text {
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-en);
  margin-bottom: 14px;
}

.svc-card__head b { font-size: 15px; font-weight: 700; }
.svc-card__head span { font-size: 11px; font-weight: 700; letter-spacing: .24em; color: rgba(16,20,24,.45); }

.svc-card__text h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: .03em;
}

.svc-card__catch {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  padding-left: 14px;
  border-left: 3px solid var(--ink);
}

.svc-card__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-sub);
}

.svc-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc-card__list li {
  font-size: 14.5px;
  line-height: 1.7;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 20, 24, .08);
}

.svc-card__list li:last-child { border-bottom: none; }
.svc-card__list b { font-weight: 700; }

.svc-card__note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: rgba(16, 20, 24, .5);
}

.svc-card__tags {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-card__tags li {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(16, 20, 24, .25);
  border-radius: 999px;
}

.svc-card__cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
}
.svc-card__cta:hover { opacity: .85; color: #fff; }

.svc-card__visual {
  margin: 0;
  position: relative;
  background: #EAF0F6;
  min-height: 300px;
}

.svc-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 全体図・ロゴは白地に contain */
.svc-card__visual img.fit,
.svc-card__visual img.contain { object-fit: contain; background: #fff; }
.svc-card__visual--pad { background: #fff; }
.svc-card__visual--pad img { padding: 40px; box-sizing: border-box; }

.svc-card__visual--duo {
  display: flex;
}
.svc-card__visual--duo img {
  position: static;
  width: 50%;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
}

@media (max-width: 767px) {
  .svc { padding: 24px 16px 80px; }
  .svc-card { top: calc(70px + var(--i) * 8px); margin-bottom: 28px; }
  .svc-card__in {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .svc-card__text { padding: 26px 22px; order: 2; }
  .svc-card__text h3 { font-size: 24px; }
  .svc-card__catch { font-size: 15px; }
  .svc-card__body, .svc-card__list li { font-size: 13.5px; }
  .svc-card__visual { order: 1; min-height: 210px; }
  .svc-card__visual--pad img { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-card { transform: none; }
}

/* 見出しの単語内改行を防ぐ */
.svc-card__text h3 .nw { display: inline-block; white-space: nowrap; }

/* ドック到達で傾きを解除（閲覧時はまっすぐ） */
.svc-card {
  transition: transform .5s cubic-bezier(.22, .61, .36, 1);
}
.svc-card.is-docked { transform: rotate(0deg); }

/* 公式ロゴ（ヘッダー） */
.hd__logoimg { height: 32px; width: auto; display: block; }
@media (max-width: 767px) { .hd__logoimg { height: 26px; } }

/* ---- 07 料金・実績カード ---- */

.svc-card__in--last {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 48px;
  min-height: 420px;
}

.svc-card__head--center { justify-content: center; margin-bottom: 20px; }

.svc-price {
  margin: 0 0 34px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.svc-price__pre,
.svc-price__post {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .08em;
}

.svc-price b {
  font-family: var(--font-en);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: .01em;
}

.svc-price b i {
  font-style: normal;
  font-family: var(--font-ja);
  font-size: .45em;
  font-weight: 700;
  margin-left: 2px;
}

.svc-stats__title {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .28em;
  color: rgba(16, 20, 24, .5);
}

.svc-stats {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0;
}

.svc-stats li {
  padding: 4px 42px;
  border-left: 1px solid rgba(16, 20, 24, .12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.svc-stats li:first-child { border-left: none; }

.svc-stats b {
  font-family: var(--font-en);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.svc-stats i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.svc-stats span {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(16, 20, 24, .55);
}

.svc-card__cta--center { align-self: center; padding: 14px 44px; }

@media (max-width: 767px) {
  .svc-card__in--last { padding: 36px 20px; min-height: 0; }
  .svc-price { flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin-bottom: 26px; }
  .svc-stats { flex-direction: column; gap: 18px; margin-bottom: 24px; }
  .svc-stats li { border-left: none; padding: 0; }
}

/* SPはスタック演出を無効化（カードがビューポートより高く、
   sticky重なりだと本文下部が読めなくなるため。縦積みで全文読める形に） */
@media (max-width: 767px) {
  .svc-card {
    position: static;
    top: auto;
    transform: none !important;
    margin-bottom: 22px;
  }
}

/* SP: キャッチ/CTA削除後の空白を詰める（100svh強制を解除） */
@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero__foot { margin-top: 26px; }
}

/* =========================================================
   トップ残りセクション（ALL BUILT IN-HOUSE / EXPERTS / PATHS / CONTACT / FOOTER）
   ========================================================= */

.inhouse {
  background: var(--ink);
  color: #fff;
  padding: 110px 40px;
}

.inhouse__in { max-width: 860px; margin: 0 auto; text-align: center; }

.inhouse__label,
.experts__label,
.contact__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .26em;
  margin-bottom: 22px;
}

.inhouse__label .rule,
.experts__label .rule,
.contact__label .rule { width: 28px; height: 3px; background: currentColor; }

.inhouse__title {
  margin: 0 0 26px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: .04em;
}

.inhouse__body {
  margin: 0 auto 16px;
  max-width: 640px;
  font-size: 15px;
  line-height: 2.1;
  color: rgba(255, 255, 255, .82);
}

.inhouse__body--strong { color: #fff; font-weight: 700; }

.inhouse__cta {
  display: inline-block;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  padding: 14px 38px;
  border-radius: 6px;
  text-decoration: none;
}
.inhouse__cta:hover { opacity: .85; color: var(--ink); }

/* EXPERTS */

.experts { background: #fff; padding: 110px 40px; }
.experts__in { max-width: 1180px; margin: 0 auto; text-align: center; }
.experts__title { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: .04em; }
.experts__lead { margin: 0 0 46px; font-size: 14.5px; line-height: 2; color: var(--ink-sub); }

.experts__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  text-align: left;
}

.expert__photo {
  margin: 0 0 14px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: #EAF0F6;
  position: relative;
}

.expert__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }

.expert__photo--empty { display: flex; align-items: center; justify-content: center; }
.expert__photo--empty span { font-size: 12px; letter-spacing: .1em; color: rgba(16, 20, 24, .4); }

.expert__name { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.expert__role { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-sub); }
.expert__role i { font-style: normal; display: block; color: rgba(16, 20, 24, .45); }

/* PATHS（研修 / 代理店OEM） */

.paths { background: #F5F7FA; padding: 72px 40px; }
.paths__in {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.path {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid rgba(16, 20, 24, .12);
  border-radius: 16px;
  padding: 34px 38px 30px;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .3s ease, transform .3s ease;
}

.path:hover { box-shadow: 0 14px 40px rgba(16, 20, 24, .12); transform: translateY(-3px); }

.path__label { font-family: var(--font-en); font-weight: 700; font-size: 11px; letter-spacing: .24em; color: rgba(16, 20, 24, .45); margin-bottom: 10px; }
.path__title { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.path__body { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-sub); max-width: 88%; }
.path__arrow { position: absolute; right: 30px; bottom: 26px; font-size: 22px; }

/* CONTACT */

.contact { background: #fff; padding: 110px 40px 120px; }
.contact__in { max-width: 760px; margin: 0 auto; text-align: center; }
.contact__title { margin: 0 0 12px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: .04em; }
.contact__lead { margin: 0 0 42px; font-size: 14.5px; line-height: 2; color: var(--ink-sub); }

.cform { text-align: left; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.cform__field { display: block; margin-bottom: 18px; }
.cform__field span { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 7px; }
.cform__field span b { font-size: 10px; font-weight: 700; color: #C0392B; border: 1px solid #C0392B; border-radius: 3px; padding: 1px 6px; }

.cform__field input,
.cform__field select,
.cform__field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #F5F7FA;
  border: 1px solid rgba(16, 20, 24, .14);
  border-radius: 8px;
  padding: 13px 14px;
  box-sizing: border-box;
}

.cform__field textarea { resize: vertical; }

.cform__field input:focus,
.cform__field select:focus,
.cform__field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  background: #fff;
}

.cform__submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  cursor: pointer;
}
.cform__submit:hover { opacity: .88; }

.cform__note { margin: 12px 0 0; font-size: 11.5px; color: rgba(16, 20, 24, .5); text-align: center; }

/* FOOTER */

.ft { background: var(--ink); color: #fff; padding: 64px 40px 30px; }
.ft__in {
  max-width: 1180px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
/* フッターはダーク面。白抜き版の画像を使うため filter は掛けない
   （ロゴPNGの背景が白＝非透過のため、invertすると全面が白矩形になる） */
.ft__logo { height: 34px; width: auto; }
.ft__addr { margin: 18px 0 0; font-size: 12.5px; line-height: 2; color: rgba(255, 255, 255, .65); }
.ft__nav { display: flex; gap: 26px; align-items: flex-start; }
.ft__nav a { color: rgba(255, 255, 255, .8); font-size: 13.5px; text-decoration: none; }
.ft__nav a:hover { color: #fff; }
.ft__copy { margin: 0; text-align: center; font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .45); }

@media (max-width: 767px) {
  .inhouse, .experts, .contact { padding: 64px 20px; }
  .paths { padding: 40px 16px; }
  .paths__in { grid-template-columns: 1fr; }
  .experts__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cform__row { grid-template-columns: 1fr; gap: 0; }
  .ft { padding: 48px 20px 24px; }
  .ft__in { flex-direction: column; gap: 24px; }
}

/* EXPERTS 3名構成に調整 */
.experts__grid { grid-template-columns: repeat(3, 1fr); max-width: 940px; margin: 0 auto; }
@media (max-width: 767px) {
  .experts__grid { grid-template-columns: 1fr 1fr; max-width: none; }
}

/* サービスカードから下層への導線 */
.svc-card__more {
  display: inline-block;
  align-self: flex-start;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}
.svc-card__more::after { content: ' →'; }
.svc-card__more:hover { opacity: .65; color: var(--ink); }

/* フォーム：ハニーポット・送信状態 */
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__status { margin: 14px 0 0; text-align: center; font-size: 13.5px; font-weight: 700; min-height: 1.2em; }
.cform__status.is-ok { color: #1E7A46; }
.cform__status.is-error { color: #C0392B; }
.cform__submit:disabled { opacity: .5; cursor: default; }
.cform__note a { color: var(--ink); }

/* ---- 専門家カード：AI（顔出しなし） ---- */

.experts__grid { grid-template-columns: repeat(4, 1fr); max-width: none; }

.expert__photo--ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.expert__photo--ai:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(16, 20, 24, .28); }
.expert__photo--ai:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.expert__wave { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.expert__wave i {
  display: block;
  width: 7px;
  background: #fff;
  border-radius: 4px;
  animation: expWave 1.3s ease-in-out infinite;
}
.expert__wave i:nth-child(1) { height: 20px; }
.expert__wave i:nth-child(2) { height: 40px; animation-delay: .12s; }
.expert__wave i:nth-child(3) { height: 28px; animation-delay: .24s; }
.expert__wave i:nth-child(4) { height: 14px; animation-delay: .36s; }

@keyframes expWave { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

.expert__ailabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 767px) {
  .experts__grid { grid-template-columns: 1fr 1fr; }
  .expert__wave { height: 36px; }
  .expert__wave i { width: 5px; }
  .expert__ailabel { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .expert__wave i { animation: none; }
}

/* 実績数値の定義注記 */
.svc-stats__note { margin: -14px 0 26px; font-size: 11px; color: rgba(16, 20, 24, .5); }

/* =========================================================
   ヘッダーナビ：サービスのドロップダウン
   ========================================================= */

.hd__item { position: relative; display: flex; align-items: center; }

.hd__droptrig {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-90);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.hd__droptrig::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.hd__droptrig[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
.hd__droptrig:hover { opacity: .6; }
.hd__droptrig:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.hd__drop {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 250px;
  background: #fff;
  border: 1px solid rgba(16, 20, 24, .12);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(16, 20, 24, .16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.hd__item--drop.is-open .hd__drop { opacity: 1; visibility: visible; transform: translateX(-50%); }

.hd__drop a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.hd__drop a:hover { background: #F5F7FA; opacity: 1; }
.hd__drop b { font-family: var(--font-en); font-size: 11px; font-weight: 700; color: rgba(16, 20, 24, .4); }

/* =========================================================
   モバイルメニュー
   ========================================================= */

.hdm {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  transition: opacity .25s ease;
}
.hdm[hidden] { display: none; }
.hdm.is-open { opacity: 1; }

.hdm__in { padding: 92px 22px 48px; }

.hdm__label {
  margin: 0 0 12px;
  font-family: var(--font-en);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .26em;
  color: rgba(16, 20, 24, .45);
}

.hdm__list { margin: 0 0 34px; padding: 0; list-style: none; border-top: 1px solid rgba(16, 20, 24, .12); }
.hdm__list li { border-bottom: 1px solid rgba(16, 20, 24, .12); }
.hdm__list a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 17px 4px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.hdm__list b { font-family: var(--font-en); font-size: 11.5px; font-weight: 700; color: rgba(16, 20, 24, .4); }
.hdm__list--plain a { font-weight: 600; font-size: 15px; }

.hdm__cta {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 16px 0;
  border-radius: 8px;
  text-decoration: none;
}

/* バーガーを開いた状態（×） */
.hd__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hd__burger.is-open span:nth-child(2) { opacity: 0; }
.hd__burger.is-open span:nth-child(3) { width: 20px; transform: translateY(-6px) rotate(-45deg); }
.hd__burger span { transition: transform .25s ease, opacity .2s ease, width .25s ease; }

body.hdm-open { overflow: hidden; }

@media (max-width: 1100px) and (min-width: 768px) {
  .hd__nav { gap: 20px; }
  .hd__nav a, .hd__droptrig { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hd__drop, .hdm, .hd__burger span { transition: none; }
}


/* モバイルメニュー展開中はチャットのランチャーを隠す（重なり防止） */
body.hdm-open .och { display: none; }
