@charset "UTF-8";
/* =========================================================================
   sections.css — header / hero / band / intro / strip / features /
                  members / stats / cta / footer
   ========================================================================= */

/* ============================================================== header == */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: var(--c-header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 65px);
  height: 100%;
  padding-inline: var(--header-gutter);
}

/* img の下に行の隙間が出ないよう flex にする（img 側に display を書くと
   白抜き版 .header__logo-inv の display: none より強くなり、PC で2つ並んでしまう） */
.header__logo {
  display: flex;
  flex: none;
}

/* ロゴは SVG（283x27・余白なし）。2026-10-28 のカンプ改訂でヘッダーにも新ロゴが入り、1440 で幅 283px */
.header__logo img {
  width: clamp(174px, 19.65vw, 283px);   /* カンプの新ロゴ 283x27（x=61） */
  height: auto;
}

.header__eyebrow {
  font-family: var(--ff-latin);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--c-header-ink);
  white-space: nowrap;
}

.gnav { margin-left: auto; }

.gnav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 35px);
}

.gnav__list a {
  display: inline-block;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease;
}

/* スマホメニューは青地のため、ホバーで青文字にするのは PC のナビだけ */
@media (min-width: 1100px) {
  .gnav__list a:hover { color: var(--c-primary); }
}
.gnav__list a[aria-current="page"] { color: var(--c-sky); }

/* スマホメニュー専用の英字ラベルと ENTRY 項目は PC では出さない */
.gnav__en,
.gnav__entry { display: none; }

/* ================================================================ hero == */
.hero {
  position: relative;
  display: block;
  height: clamp(560px, 73vw, 1053px);
  padding-top: clamp(120px, 15vw, 216px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

/* スマホ〜タブレット（iPad の縦横とも）: 文字と2人が重ならないよう、ヒーローを文字量に合わせて伸ばし
   動画を下端に揃える。上に空いた分は動画上端の空の色で埋め、境目は動画側をフェードさせてなじませる。
   動画の高さは 560px か画面幅いっぱい（16:9）の大きい方。
   次の .band は上に clamp(60px, 13vw, 188px) 食い込むため、60px を超えた分だけ動画を持ち上げて足元を隠さない。
   padding-bottom = 持ち上げ分 + 動画のうち人物の頭（上から約56%）より下の 44% + 文字との間 40px */
@media (max-width: 1279px) {
  .hero {
    --hero-video-h: max(560px, 56.25vw);
    --hero-video-lift: calc(clamp(60px, 13vw, 188px) - 60px);
    height: auto;
    min-height: 560px;
    padding-bottom: calc(var(--hero-video-lift) + var(--hero-video-h) * .44 + 40px);
    background-color: #5488b9;
  }
  .hero__bg {
    top: auto;
    bottom: var(--hero-video-lift);
    height: var(--hero-video-h);
    object-position: 62% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 80px);
            mask-image: linear-gradient(to bottom, transparent, #000 80px);
  }
}

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--ff-mincho);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--c-white);
  text-shadow: 0 2px 24px rgba(0, 40, 80, .28);
}

.hero__lead {
  margin-top: clamp(24px, 3vw, 43px);   /* 2026-10-28 改訂: 見出し下端から 43px（旧 76px） */
  font-family: var(--ff-mincho);
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
  line-height: var(--lh-lead);
  color: var(--c-white);
  text-shadow: 0 2px 18px rgba(0, 40, 80, .3);
}

/* ================================================= cream band + waves == */
.band {
  position: relative;
  z-index: 1;
  margin-top: calc(clamp(60px, 13vw, 188px) * -1);
  padding-top: clamp(88px, 17vw, 246px);
  padding-bottom: clamp(88px, 14.4vw, 208px);
  background-image:
    url(../img/wave-top.svg),
    url(../img/wave-bottom.svg),
    linear-gradient(var(--c-cream), var(--c-cream));
  background-repeat: no-repeat, no-repeat, no-repeat;
  /* ベタ塗りは上下 1px ずつ波の下へ潜らせる（小数座標で継ぎ目に髪の毛ほどの隙間が出て、裏の動画が透けるため） */
  background-position: 0 0, 0 100%, 0 calc(var(--wave-top) - 1px);
  background-size:
    100% var(--wave-top),
    100% var(--wave-bottom),
    100% calc(100% - var(--wave-top) - var(--wave-bottom) + 2px);
}

/* =============================================================== intro == */
.intro {
  display: grid;
  /* 本文はコンテンツ左端から 37px 入った x=157 から（カンプ）。列幅 530 + 字下げ */
  grid-template-columns: minmax(0, 567px) minmax(0, 600px);
  justify-content: space-between;
  gap: clamp(24px, 2.3vw, 33px);   /* 567 + 33 + 600 = 1200 */
  align-items: start;
}

.intro__text p {
  font-size: var(--fs-lead);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-lead);
  text-wrap: pretty;
  word-break: auto-phrase;   /* 普通に折り返すときも文節の途中で切らない（非対応ブラウザは通常の折り返し） */
}

/* カンプの改行位置。最長の行（24字）は文字サイズ最大20pxで約455px。
   画面幅ではなく文章の欄の幅で判定する（1024px前後は2列になって欄が狭まるため）。
   欄が狭いときは改行せず、普通に折り返して左寄せのまま */
.intro__text {
  container-type: inline-size;
  padding-left: clamp(0px, 2.57vw, 37px);
}

.br-intro { display: none; }

@container (min-width: 460px) {
  .br-intro { display: inline; }
}

.intro__visual { position: relative; }

.intro__photo {
  width: 100%;
  aspect-ratio: 600 / 455;
  object-fit: cover;
  border-radius: 16px;
}

.intro__vertical {
  position: absolute;
  top: clamp(-54px, -3.75vw, -20px);
  right: clamp(12px, 2.4vw, 35px);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* 白い帯はアニメーション用に img ではなく包む span に持たせる（寸法は従来と同じ） */
.intro__vertical-item {
  display: block;
  padding: 7px 9px;
  background: var(--c-white);
  line-height: 0;
}

.intro__vertical img {
  width: auto;
  height: calc(clamp(260px, 32.8vw, 472px) - 14px);
}

.intro__vertical-back { margin-top: clamp(18px, 2.5vw, 36px); }

/* ========================================================= photo strip == */
.strip {
  margin-top: clamp(56px, 7.4vw, 106px);
  overflow: hidden;
}

.strip__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: strip-scroll 96s linear infinite;   /* 6枚で 4枚時（64s）と同じ速さ */
}

.strip__list {
  display: flex;
  gap: 20px;
}

/* カンプ 2026-10-30: 先頭（海沿いの女性）が上段、2枚目から交互に下段 */
.strip__list li:nth-child(even) { margin-top: clamp(32px, 5.1vw, 74px); }

.strip__list img {
  width: clamp(220px, 27.2vw, 392px);
  aspect-ratio: 392 / 283;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

/* 同じリストを4本並べ、1本分（リスト幅 + gap）だけ動かして先頭に戻す。
   トラック幅 = 4L + 3g なので 1本分 = (トラック幅 + g) / 4 = 25% + 5px。
   6枚なら 1本 L ≒ 2450px、4本あれば表示幅 3(L + g) ≒ 7400px までは端が見えない */
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-25% - 5px)); }
}

@media (prefers-reduced-motion: reduce) {
  .strip { overflow-x: auto; }
  .strip__track { animation: none; }
}

/* ============================================================ features == */
/* Figma（1440）実測: 見出し列 405px / 列間 72px / カード 259x418・gap 20、右端 x=1414。
   カード列はコンテンツ幅（右端 1320）を越えて右余白 26px まで張り出す */
.features {
  display: grid;
  grid-template-columns: minmax(0, 405px) minmax(0, 1fr);
  column-gap: 72px;
  align-items: start;
  margin-top: clamp(64px, 9.9vw, 142px);
}

.features__head { padding-top: 13px; }   /* カード上端(2173)より英字ラベル(2186)が 13px 下 */

.features__head .eyebrow { line-height: 30px; }   /* このセクションの Figma は 20/30（共通の 40 だと 10px 下がる） */

.features__head .btn-outline { margin-top: 40px; }

.features__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: calc(100% + var(--gutter) * .78);   /* 1440 で +94px → 右端 1414 */
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 418px;
  padding: 34px 18px 28px 19px;   /* 枠線 2px の内側。本文幅 218px、本文8行でちょうど 418px */
  background: var(--c-white);
  border: 2px solid var(--c-text);
  border-radius: var(--radius-feature);
}

/* 番号はカードの右端ぴったり・上から 7px（Nova Script 96/80、黒 10%） */
.feature-card__num {
  position: absolute;
  top: 5px;
  right: -2px;
  font-family: var(--ff-script);
  font-size: 96px;
  line-height: 80px;
  color: rgba(0, 0, 0, .1);
  pointer-events: none;
}

.feature-card__title {
  position: relative;
  margin-left: 7px;   /* 見出しはカード外端から 28px、本文は 21px */
  font-size: var(--fs-h4);
  line-height: 40px;
}

/* 02 は見出しが長いため Figma でも 28px に落とし、左端も 19px に寄せている */
.feature-card__title--long {
  margin-left: -2px;
  margin-right: -12px;   /* 「地域の枠を超えた」(28px x 8字 = 224px) を1行に収める。Figma の枠も 226px */
  font-size: calc(var(--fs-h4) * .875);
}

.feature-card__body {
  margin-top: 32px;
  font-size: var(--fs-xs);
  line-height: var(--lh-card);
}

/* 03 だけ Figma の本文枠が幅 201px・左 26px（他は 218px・21px）。折り返し位置を揃えるため合わせる */
.feature-card:nth-child(3) .feature-card__body {
  max-width: 201px;
  margin-left: 5px;
}

/* ============================================================= members == */
.members { margin-top: clamp(72px, 11.18vw, 161px); }   /* カンプ 2026-10 改訂: 見出しの上端 y=2958 に合わせる */

/* 2026-10-30 カンプ: 3人に増えたため横スクロールに。カードは従来どおり見出し幅に2枚、
   3枚目は画面の右端まではみ出して見せる。幅は .members（コンテンツ幅）基準で決める */
.members { container-type: inline-size; }

.members__list {
  display: flex;
  gap: 28px;
  margin-top: clamp(40px, 4.1vw, 59px);
  /* 右は画面端まで抜く。カード右下の青い影（-9px / -10px）が切れないよう余白を取る */
  margin-right: calc(50cqi - 50vw);
  padding: 0 var(--gutter) 12px 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.members__list::-webkit-scrollbar { display: none; }

.members__list.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.members__list.is-dragging a { pointer-events: none; }

.interview {
  position: relative;
  flex: 0 0 calc((100cqi - 28px) / 2);
  /* 既定の min-width:auto だと、リンクの min-height と縦横比から出る幅（約390px）より縮まない */
  min-width: 0;
  scroll-snap-align: start;
}

/* 表示中の範囲を示すバー（カンプ 1440: 幅 305 / カード下端から 38px） */
.members__bar {
  position: relative;
  width: min(305px, 60%);
  height: 4px;
  margin: 26px auto 0;
  border-radius: var(--radius-pill);
  background: var(--c-line);
  overflow: hidden;
}

.members__thumb {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  border-radius: inherit;
  background: var(--c-primary);
}

.interview::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 10px -9px -10px 10px;
  background: var(--c-primary);
  border-radius: var(--radius-interview);
}

.interview__link {
  position: relative;
  z-index: 1;
  display: block;
  /* width を明示しないと min-height 側から aspect-ratio が幅を逆算して膨らむ */
  width: 100%;
  aspect-ratio: 582 / 313;
  /* 幅が縮んでも見出し・氏名・タグが重ならない下限を確保 */
  min-height: 210px;
  border-radius: var(--radius-interview);
  overflow: hidden;
  color: var(--c-white);
}

.interview__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.interview__link::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 26, 52, .55) 0%, rgba(0, 26, 52, .06) 30%, rgba(0, 26, 52, .28) 56%, rgba(0, 26, 52, .78) 100%);
}

.interview__link:hover .interview__photo,
.interview__link:focus-visible .interview__photo { transform: scale(1.04); }

.interview__head {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 25px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 20, 40, .65);
}

.interview__rule {
  width: 68px;
  height: 1px;
  background: currentColor;
}

.interview__body {
  position: absolute;
  z-index: 2;
  left: 11px;
  right: 72px;          /* 右下の矢印(47px + 余白)を避ける */
  bottom: 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.interview__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;   /* note のタイトルは平均54文字。2行で打ち切る */
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  padding: 3px 14px;
  background: var(--c-white);
  color: var(--c-text);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.interview__name {
  margin: 6px 0 0 4px;
  /* カンプは氏名 20px / 見出し 28px。--fs-h5(28px) を誤用していたため --fs-lead(20px) に修正 */
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0, 20, 40, .65);
}

.interview__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.interview__link .arrow-circle {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 13px;
}

.interview__link:hover .arrow-circle { transform: translateX(4px); }

.members__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 6.3vw, 91px);   /* スライダーのバーから 91px（カンプ 2026-10-30） */
}

/* =============================================================== stats == */
.stats {
  margin-top: clamp(72px, 9.58vw, 138px);
  padding-block: clamp(72px, 10.3vw, 149px) clamp(64px, 8.96vw, 129px);
  background: linear-gradient(60.12deg, var(--c-ice) 1.57%, var(--c-cream) 98.43%);
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(40px, 4.5vw, 64px);
}

.stat {
  display: flex;
  flex-direction: column;
  min-height: 201px;
  padding: 15px 18px 18px;
  background: var(--c-white);
  border-radius: var(--radius-card);
}

.stat__badge {
  align-self: flex-start;
  min-width: 110px;
  padding: 2px 16px;
  background: var(--c-primary-deep);
  border-radius: var(--radius-pill);
  color: var(--c-white);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  line-height: 1.875;
  letter-spacing: 0.1em;
  text-align: center;
}

.stat__figure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 12px);
  margin-top: 2px;
  color: var(--c-primary);
}

/* Figma のアイコンは 66〜79px と幅がまちまちなので、光学的に揃う高さ基準に統一 */
.stat__icon {
  flex: none;
  width: auto;
  height: clamp(40px, 4.1vw, 60px);
}

.stat__value {
  display: flex;
  align-items: baseline;
  white-space: nowrap;
}

.stat__num {
  font-family: var(--ff-num);
  font-size: var(--fs-num);
  font-weight: var(--fw-bold);
  font-stretch: 87.5%;   /* DIN Alternate の字幅 (約0.49em/桁) に合わせる */
  line-height: 1;
  letter-spacing: -0.01em;
}

.stat__unit {
  font-size: var(--fs-unit);
  font-weight: var(--fw-bold);
  line-height: 1;
}

.stat__note {
  margin-top: auto;
  margin-inline: -9px;   /* 「2015年からの約10年で（…約1.2億円）」がカンプ通り1行に収まるよう、左右の余白を少し使う */
  padding-top: 8px;
  color: var(--c-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-body);
  text-align: center;
  text-wrap: balance;
}

.stats__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 5.4vw, 78px);
}

/* ================================================================= cta == */
.cta {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 292px;
  margin-top: var(--section-gap);
  overflow: hidden;
}

/* 2026-10-28 改訂: 背景は海辺の2人の写真（左右反転で配置）。cta-bg.jpg は原本の全体で、
   カンプ（1440）では 1883x1060 に拡大し、帯に対して x=-225 に置いている。
   幅・左位置は画面幅に比例させ、縦は「帯の中心 = 画像の 71.8% の高さ」になるよう合わせる
   （画像の高さ = 幅 x 1060/1883 = 73.61vw → 71.8% は 52.85vw） */
.cta__bg {
  position: absolute;
  top: calc(50% - 52.85vw);
  left: -15.63vw;
  width: 130.76vw;
  max-width: none;
  height: auto;
}

/* 数字の帯の直後は余白なしで続く（カンプ 2026-10 改訂） */
.stats + .cta { margin-top: 0; }

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-veil);
}

/* カンプ（1440）: 見出しの帯 x120〜683 → ボタン x744（間 61px）。ボタンの中心は帯の中心より 9.5px 下、
   見出しと英文のまとまりはさらに 6.5px 下にあるため、上の余白を多めに取って合わせる */
.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.2vw, 61px);
  padding-block: 59px 40px;
}

/* 欄の幅は見出しで決め、英文はその幅で折り返す（英文が長いと欄が広がってボタンを押し縮めるため） */
.cta__text {
  display: grid;
  margin-top: 13px;
}

/* 白い帯に青文字（30/41）。折り返したときも行ごとに帯が付くよう inline + clone */
.cta__title {
  font-size: clamp(1.25rem, 2.08vw, 1.875rem);   /* 20 -> 30 */
  font-weight: var(--fw-bold);
  line-height: 1.6;
  color: var(--c-primary);
  text-wrap: balance;        /* 折り返すときは行の長さをそろえ、文節の途中で切らない */
  word-break: auto-phrase;
}

.cta__band {
  padding: 2px 15px;
  background: var(--c-white);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 英文: 12px・字間 10%。帯の左端から 23px */
.cta__en {
  width: 0;
  min-width: 100%;
  margin-top: 10px;
  padding-left: 23px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--c-white);
}

/* ============================================================== footer == */
.footer__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;   /* カンプ 88px */
  padding-block: 16px;
}

.footer__logo img {
  display: block;
  width: clamp(213px, 25.5vw, 366px);   /* 旧 PNG 220〜378px と見た目を揃える（ヘッダーと同じ理由） */
  height: auto;
}

.footer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 143px;
  height: 25px;
  padding-inline: 12px;
  background: var(--c-sky);
  border-radius: 3px;
  color: var(--c-white);
  font-family: var(--ff-latin);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  line-height: var(--lh-body);
}

.footer__meta a { transition: color .2s ease; }
.footer__meta a:hover { color: var(--c-primary); }

.footer__divider {
  width: 1px;
  height: 14px;
  background: currentColor;
  opacity: .4;
}

/* カンプ: CTA帯の下に白余白132px → 夕景写真（上端は白へフェード）→ 白帯の順 */
/* 2026-10-28 改訂: CTA の帯の直後から写真が全面に入る（上の余白と白いぼかしは無くなった）。
   写真はカンプ 1440x944（比率を画面幅に比例させる） */
/* 2026-10-29: 1440px 超で高さが 944px 止まりになると上下が切れるため、写真は下揃えにして空だけを切る。
   --footer-img-h は object-fit: cover で描かれる写真全体の高さ（2000x1311 を幅いっぱい、最低 320px） */
.footer__visual {
  --footer-gap: 0px;
  --footer-photo-h: clamp(320px, 65.56vw, 944px);
  --footer-img-h: max(320px, 65.54cqw);
  position: relative;
  container-type: inline-size;
}

.footer__photo {
  width: 100%;
  height: var(--footer-photo-h);
  object-fit: cover;
  object-position: 50% 100%;
}

/* footer-slogan.svg（412x170, 2026-10-02 差し替え）は傾き 1.82° を含み、線をアウトライン化した書き出し。
   旧版（407x157 を CSS で回転）と文字の大きさ・中心が変わらないよう、
   幅は 28.6% x 412/407、上端は増えた高さの半分だけ上げている。
   位置は人物の頭（写真の下から 32.2%）を基準に、下端を写真の下から 42.5% に置く
   （カンプ 1440px の「写真上端から 371/944」と同じ。空が切れる幅でも頭に重ならない） */
.footer__slogan {
  position: absolute;
  left: 50.8%;
  bottom: calc(var(--footer-img-h) * .425);
  width: clamp(202px, 28.95%, 486px);
  height: auto;
  translate: -50% 0;
}

/* ========================================================== responsive == */

/* -------------------------------- tablet wide (max-width: 1399px) ------- */
/* 特徴カード3枚 (1枚あたり内寸 192px 以上) を見出しの横に並べるには
   コンテンツ幅 1167px = ビューポート約 1400px が必要。
   数値カード3枚も同様に約 1340px を下回ると単位まで収まらないため、
   ここで見出しを上に積み、数値カードは2列へ落とす */
@media (max-width: 1399px) {
  .features { grid-template-columns: minmax(0, 1fr); }

  .features__head { padding-top: 0; }

  .features__list {
    width: auto;
    margin-top: clamp(32px, 4vw, 48px);
  }

  .stats__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .feature-card { min-height: 0; }
}

/* ------------------------------ cta (max: 1439px) ----------------------- */
/* 見出し（1行・帯込み 563px）+ 間 61px + ボタン（555px）= 1179px がそのまま収まるのはビューポート約 1414px から。
   それ未満はボタンの横幅を縮めて2カラムを保つ（2026-10-02 指示）。見出しは1行のまま折り返させず、
   ボタンだけを最小 320px まで縮める（900px で 見出し約390 + 間38 + 320 = 748 ≦ コンテンツ幅 750） */
@media (max-width: 1439px) {
  .cta__text { flex: none; }

  .cta__title { white-space: nowrap; }

  .btn-cta {
    flex: 0 1 555px;
    min-width: 320px;
    padding-inline: 24px 88px;   /* 矢印(右26px + 47px)ぶんの右余白は残す */
  }
}

/* ------------------------------ cta (max: 899px) ------------------------ */
/* 899px 以下は縦に積み、見出しとボタンをそれぞれ中央に寄せる。見出しは行ごとに帯を付けて折り返す */
@media (max-width: 899px) {
  .cta__inner {
    flex-direction: column;
    align-items: center;
    padding-block: 48px;
    text-align: center;
  }

  .cta__text { margin-top: 0; }

  /* 2行に折り返すので、白い帯どうしの間と、下の英文との間を空ける */
  .cta__title {
    line-height: 2.05;
    white-space: normal;
  }

  .cta__en {
    margin-top: 14px;
    padding-left: 0;
  }

  .btn-cta {
    flex: none;
    width: min(555px, 100%);
    min-width: 0;
  }

  /* 縦積みでは帯が高くなるため、写真を帯いっぱいに敷き、2人が見える位置で切り取る */
  .cta__bg {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 28% 72%;
  }
}

/* --------------------------- intro (max: 1023px) ------------------------ */
@media (max-width: 1023px) {
  .intro { grid-template-columns: minmax(0, 1fr); }

  /* 写真が下に落ちる1カラムでは、カンプの改行（2カラムの欄幅向け）は使わず普通に折り返す。
     （文節単位の折り返しは .intro__text p の auto-phrase） */
  .br-intro { display: none; }

  .intro__text { padding-left: 0; }

  .intro__visual {
    justify-self: center;   /* 写真が下に落ちたら左右中央 */
    width: 100%;
    max-width: 600px;
  }

  .interview__head { top: 12px; left: 16px; }

  .interview__rule { width: 40px; }

  .footer__bar {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 32px;
  }

  .footer__meta {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ------------------------------------------ tablet (max-width: 959px) --- */
@media (max-width: 959px) {
  .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ----------------------------------------------- mobile (max: 767px) ---- */
@media (max-width: 767px) {
  .header__inner { gap: 12px; }

  .header__eyebrow { display: none; }

  .br-pc { display: none; }

  .intro__vertical {
    top: -16px;
    right: 8px;
  }

  .intro__vertical-item { padding: 5px 6px; }

  .intro__vertical img { height: calc(clamp(260px, 32.8vw, 472px) - 10px); }

  .features__list,
  .stats__list { grid-template-columns: minmax(0, 1fr); }

  .feature-card { padding: 28px 22px 24px; }

  .feature-card__num { font-size: 76px; }

  /* スマホは1枚ずつ。次のカードの端を見せてスクロールできることを伝える */
  .members__list { gap: 20px; }

  .interview { flex-basis: 86cqi; }

  .interview__head { left: 16px; }

  .interview__body { left: 8px; right: 66px; bottom: 14px; }


  .interview__rule { width: 40px; }

  .stat { min-height: 0; }

  .btn-cta { min-height: 96px; }
}

/* ------------------------------------ small phone (max: 419px) --------- */
/* ロゴ180 + ENTRY116 + ハンバーガー44 + 余白 が横一列に収まるのは約 420px から。
   それ未満はロゴと ENTRY を圧縮する */
@media (max-width: 419px) {
  :root { --header-gutter: 14px; }

  .header__inner { gap: 8px; }

  .header__logo img { width: 145px; }

  .btn-entry {
    min-width: 0;
    padding-inline: 12px;
    font-size: var(--fs-2xs);
  }
}

/* 979px 以下はカードが細く、高さの下限（210px）にかかって PC より縦長になる（スマホの1列・iPad mini などの2列とも）。
   写真を cover で広げると顔が大きくなって見出しにかかるので、写真は PC と同じ比率のまま上に置き、
   余った下の部分は紺色へなじませて、PC と同じ構図にする */
@media (max-width: 979px) {
  .interview__link { background: #001f3f; }

  .interview__photo {
    height: auto;
    aspect-ratio: 582 / 313;
    -webkit-mask-image: linear-gradient(#000 72%, transparent);
    mask-image: linear-gradient(#000 72%, transparent);
  }
}

/* タブレット幅は写真ほど文字が縮まず、見出しの右端が顔にかかるので、見出しもカードの幅に合わせて小さくする
   （.members が container。1200px 以上は通常の大きさ） */
@media (min-width: 768px) and (max-width: 1199px) {
  .interview__title { font-size: clamp(1.125rem, 2.5cqi, 1.625rem); }
}

/* 360px 未満はカードの見出しを少し小さくして1行に収める（2行になると顔にかかる） */
@media (max-width: 359px) {
  .interview__title { font-size: 1.0625rem; }

  /* CTA ボタンの文字も1行に収める（「エントリーはこち／ら」と1字だけ折り返さない） */
  .btn-cta {
    padding-inline: 16px 72px;
    font-size: 1.125rem;
    white-space: nowrap;
  }
}

/* 見出しが折り返すときは行の長さをそろえ、「仲／間」のように1〜2字だけ次の行に残さない */
.section-title {
  text-wrap: balance;
  word-break: auto-phrase;
}
