/* index.html 固有のスタイル。css/style.css の後に読み込む（2026-11-29 に style.css から機械的に切り出し）。
   共通ルールは docs/brushup/COMMON_TOKENS.md。素の .btn / .card / .section などは上書きしない。 */

/* ========== index.html page ========== */

/* Home page upgrades — brand indigo/cyan accent only (no new hues).
   Appended after style.css; every new class is prefixed "home-". */

/* -- hero: stat numbers with dividers -- */

/* 3 つの数値を 1 行に収める(以前は 40px で 3 つ目が 2 行目に落ち、区切り線ごと字下げされていた)。
   ラベルは折り返してよいので幅を抑え、数値は画面幅に合わせて縮める */

.home-hero-stats { margin-top: 42px; gap: 0; flex-wrap: nowrap; }

.home-hero-stats > div { padding: 2px 22px; border-left: 1px solid rgba(255,255,255,0.14); }

.home-hero-stats > div:first-child { border-left: none; padding-left: 0; }

/* ラベルは子要素だけに当てる(OS 名を .nb で包むため、入れ子の span を block にしない)。
   背景動画の上で読めるよう、共通の --on-dark-3 より明るい --on-dark-1 にする(D3) */
.home-hero-stats > div > span { display: block; max-width: 12em; font-size: 13px; letter-spacing: 0.03em; color: var(--on-dark-1); }

/* 共通の .hero-stats div span(--on-dark-3)が入れ子の .nb にも当たるので、親の色を継がせる */
.home-hero-stats > div > span .nb { color: inherit; }

/* 数値は単色(グラデーション文字は使わない) */
.home-hero-stats div strong {
  font-size: clamp(28px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

/* ヒーロー: 左の文字側だけオーバーレイを少し濃くする(背景動画の明るいフレームでも
   lead とラベルのコントラストを保つため。右側の動画の見え方は共通と同じ) */
.home-hero::before {
  background-image: linear-gradient(100deg, rgba(8,12,28,.86) 0%, rgba(8,12,28,.72) 42%, rgba(8,12,28,.40) 68%, rgba(8,12,28,.22) 100%);
}

/* ヒーローの装飾カード: 画面画像の上でも読めるよう地を濃くし、
   アプリ画面のボタン(保留・終話)に掛からないよう画像の外側へ寄せる(D2) */
.home-hero-visual .glass-card { background: rgba(11,17,32,0.78); border-color: rgba(255,255,255,0.18); }
.home-hero-visual .glass-card--float1 { top: 6%; left: 0; }
/* 画面の中ほど(通話時間とボタン群の間の空いた帯)に置く。下端に置くとキーパッドに掛かり、
   さらに下げるとヒーローの overflow:hidden で切れる */
.home-hero-visual .glass-card--float2 { top: 36%; bottom: auto; right: 0; }
.home-chip-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #fff; }
.home-chip-label { font-size: var(--fs-xs); color: var(--on-dark-1); }
.home-chip-value { margin-top: 4px; font-size: 22px; font-weight: var(--fw-head); line-height: 1.2; color: #fff; }
.home-chip-value span { font-size: var(--fs-xs); font-weight: 600; color: var(--on-dark-1); }

/* -- heading accent fragments (light / dark backgrounds) -- */

/* 見出しの強調は単色(旧: グラデーション文字)。暗色地はヒーロー h1 の .grad と同じ色 */
.home-grad { color: var(--brand); }

.home-grad-ondark { color: #A9D3F0; }

/* -- "why us" intro: section head beside a real office photo -- */

/* 「選ばれる理由」は中央寄せのセクション見出しと同格なので、feature-row の h2 より大きい --fs-h2 にする */
.home-why .feature-text h2 { font-size: var(--fs-h2); }

.home-why .feature-text p { font-size: var(--fs-lead); }

.home-why .feature-media.is-photo img { min-height: 340px; }

/* -- series selector: plan cards with photo headers -- */

.home-plan-card {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.home-plan-media { position: relative; }

/* 高さ固定の cover だと幅広の画面で顔の上下が切れるので、比率で持つ(D17) */
.home-plan-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.home-plan-media--face img { object-position: 50% 28%; }

.home-plan-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,0) 50%, rgba(11,17,32,0.38) 100%);
  pointer-events: none;
}

.home-plan-body {
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.home-plan-body .plan-icon {
  margin-top: -28px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px #fff, var(--shadow-md);
}

.home-plan-body .btn { margin-top: auto; align-self: flex-start; }

/* 「{製品名}の詳細 →」は英語版だと 375px でカード幅を超えるので、折り返しを許す */
.home-plan-body .btn { max-width: 100%; white-space: normal; text-align: center; }

.home-plan-icon--business { background: var(--slate-900); }

/* -- AGEphone Cloud intro: real app screen on a dark branded panel -- */

.home-app-shot {
  position: relative;
  overflow: hidden;
  padding: 44px 32px;
  border-color: rgba(7,11,22,0.5);
  background-color: #0b1120;
  background-image:
    radial-gradient(ellipse 70% 60% at 82% 0%, rgba(86,145,205,0.35), transparent 62%),
    radial-gradient(ellipse 60% 55% at 8% 100%, rgba(57,83,164,0.4), transparent 60%),
    linear-gradient(180deg, #0b1120 0%, #070b16 100%);
}

.home-app-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 25%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 25%, black, transparent);
  pointer-events: none;
}

.home-app-shot img {
  position: relative;
  width: min(228px, 58%);
  filter: drop-shadow(0 30px 50px rgba(0,0,0,0.5));
}

.home-app-shot .home-app-chip {
  left: 22px;
  bottom: 24px;
  width: auto;
  padding: 12px 16px;
}

/* -- light & dark card grids: brand accent bar on hover -- */

.home-tile { position: relative; overflow: hidden; }

.home-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.home-tile:hover::before { opacity: 1; }

.card--dark.home-tile::before { background: #A9D3F0; }

.card--dark.home-tile:hover { border-color: rgba(126,176,222,0.4); }

/* 導入メリットの 4 列は 901〜1100px でカード幅が 200px 前後になり本文が窮屈なので、
   1100px まで 2 列にする(D12。共通の 900px ブレークポイントの手前に 1 段足す) */
@media (min-width: 901px) and (max-width: 1100px) {
  .home-benefits .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* -- disaster section: photo strip backdrop -- */

.home-disaster-strip {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #0b1120;
  background-image:
    linear-gradient(100deg, rgba(8,12,28,0.94) 0%, rgba(8,12,28,0.86) 52%, rgba(8,12,28,0.66) 100%),
    url("../../assets/photos/home-disaster-strip.jpg");
  background-size: cover;
  background-position: center 50%;
}

.home-disaster-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 88% 10%, rgba(86,145,205,0.28), transparent 62%),
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  pointer-events: none;
}

.home-disaster-strip .container {
  position: relative;
  z-index: 1;
}

.home-disaster-strip .eyebrow { color: #C7D6ED; }

.home-disaster-strip .feature-text h2 {
  color: #fff;
}

.home-disaster-strip .feature-text p {
  color: #cbd5e1;
}

.home-disaster-strip .btn-ghost {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
}

.home-disaster-strip .btn-ghost:hover {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.38);
}

/* -- option services: horizontal icon cards -- */

.home-option { display: flex; align-items: flex-start; gap: 20px; }

.home-option .icon-box {
  margin: 0;
  flex-shrink: 0;
  background: var(--brand);
  box-shadow: var(--shadow-sm);
}

.home-option .icon-box svg { color: #fff; }

.home-option h3 { font-size: var(--fs-h3); margin-bottom: 8px; }

/* -- closing CTA: Tokyo-dusk photo band (page-specific variant) -- */

.home-cta {
  background-image:
    linear-gradient(100deg, rgba(8,12,28,0.93) 0%, rgba(8,12,28,0.8) 50%, rgba(8,12,28,0.6) 100%),
    url("../../assets/photos/home-city-dusk.jpg");
  background-size: cover;
  background-position: center 62%;
}

.home-cta::before {
  background:
    radial-gradient(ellipse 60% 90% at 88% 10%, rgba(86,145,205,0.32), transparent 62%),
    radial-gradient(ellipse 50% 80% at 4% 100%, rgba(57,83,164,0.28), transparent 60%);
  opacity: 1;
}

/* オプションと CTA はどちらも白地の .section なので、間の余白が 2 倍にならないよう CTA 側の上を詰める(D13) */
.home-cta-section { padding-top: 0; }

/* Cowork の紹介: 措置義務についての注記(Cowork ページの対応表の注記と同じ趣旨) */
.home-split-text .home-cowork-note { font-size: var(--fs-sm); color: var(--slate-500); }

@media (max-width: 900px) {
  .home-why .feature-media.is-photo img { min-height: 260px; }
}

@media (max-width: 620px) {
  .home-hero-stats { gap: 14px 28px; flex-wrap: wrap; }
  .home-hero-stats > div { padding: 0; border-left: none; }
  .home-hero-stats div strong { font-size: 26px; }
  .home-app-shot { padding: 34px 22px; }
  .home-app-shot .home-app-chip { left: 14px; bottom: 14px; padding: 10px 14px; }
  .home-plan-body { padding: 0 24px 26px; }
  .home-why .feature-media.is-photo img { min-height: 220px; }
  .home-option { gap: 16px; }
}

/* ---------- demo video (click-to-play YouTube facade) ---------- */

.rcp-video-wrap { text-align: center; }

/* ---------- home: 新着動画 (クリックで再生する YouTube の器を大きく使う) ---------- */

.home-video { padding-top: 72px; scroll-margin-top: 76px; }

/* #video への移動で固定ヘッダの下に見出しを隠さない */

.home-video .section-head { max-width: 760px; margin-bottom: 36px; }

.home-video h2 .nb { display: inline-block; }

/* 「から」の途中で折り返さない */

.home-video .rcp-video-frame { max-width: 960px; border-color: rgba(255,255,255,0.14); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }

.home-video-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

.home-video-note { margin-top: 14px; font-size: 13px; color: var(--on-dark-2); }

/* トップのヒーローから新着動画への案内 (ガラス調の小さな帯) */

.home-hero-news {
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 100%; margin-bottom: 16px;
  padding: 5px 14px 5px 5px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff; font-size: 13.5px; font-weight: 700; text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}

.home-hero-news:hover, .home-hero-news:focus-visible { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

.home-hero-news-tag { flex: none; padding: 3px 10px; border-radius: var(--radius-full); background: var(--brand); font-size: var(--fs-xs); letter-spacing: .04em; }

.home-hero-news-text { min-width: 0; line-height: 1.45; }

/* 1 行に固定すると狭い画面でヒーローの列ごと押し広げる */

.home-hero-news-arrow { flex: none; }

.hero .home-hero-news + .eyebrow { display: flex; width: fit-content; }

/* トップの AGEphone Cowork の紹介欄のボタン (詳細 + 動画) */

.home-cowork-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
