/* トップだけのFV。写真・本文・フォームはブランドページと共通。 */
.home-page .hero-copy h1 {
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.16;
}
.home-page .hero-copy h1 .line { white-space: normal; }
.home-page .hero-actions { gap: 16px; }
.home-page .hero-actions a {
  min-width: 220px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  transition: background .2s, box-shadow .12s, transform .12s, opacity .12s;
}
/* 「無料で始める」はブランド色（水色の試作）。「仕組みを見る」は白のまま。 */
.home-page .hero-actions a:not(.hero-secondary) { background: #0D92C3; color: #FFFFFF; }
.home-page .hero-actions a:focus-visible {
  outline: 3px solid #0D92C3;
  outline-offset: 4px;
}
@media (hover: hover) {
  .home-page .hero-actions a:not(.hero-secondary):hover { background: #0A7AA5; }
  .home-page .hero-actions .hero-secondary:hover { background: #EBFBFF; }
}
@media (max-width: 760px) {
  .home-page .hero-copy h1 { font-size: 8.8vw; }
  .home-page .hero-lead { font-size: clamp(11px, 3.1vw, 15px); }
  .home-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
  }
  .home-page .hero-actions a {
    min-width: 0;
    min-height: 52px;
    padding: 16px 8px;
    font-size: clamp(11px, 3vw, 13px);
    letter-spacing: -.03em;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-actions a { transition: none; }
}

/* 余白を8の倍数に揃えた分、説明文の行末に1文字だけ残らないよう折り返しを整える。 */
.home-page .feature-grid > li > span { text-wrap: pretty; }

/* スマートフォンでFVの写真がスクロール時に重かった対策（2026-11-23）。見た目は変えない。
   写真をまとめて拡大する枠と見出しも合成用の層に分け、スクロールのたびに描き直さないようにする。 */
@media (max-width: 760px) {
  .home-page .hero-cards,
  .home-page .hero-copy { will-change: transform, opacity; }
  .home-page .hero-card { backface-visibility: hidden; }
}

/* さらに軽くする（2026-11-23）：スクロールに合わせた動きを、対応するブラウザー（Chrome、iOS 26以降のSafariなど）では
   CSSのスクロール連動アニメーションに任せる。計算と描画がページの処理と切り離され、指の動きに遅れにくい。
   値は brand.css の calc(var(--p) …) と同じで、見た目は変えない。非対応のブラウザーは従来どおりJSで --p を更新する。 */
@supports (animation-timeline: view()) {
  @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .home-page .hero { view-timeline: --fv block; }
    .home-page .hero-copy,
    .home-page .hero-cards,
    .home-page .hero-card {
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-duration: auto;
      animation-timeline: --fv;
      animation-range: contain 0% contain 100%;
    }
    .home-page .hero-copy { animation-name: fv-copy; }
    .home-page .hero-cards { animation-name: fv-cards; }
    .home-page .card-a { animation-name: fv-a; }
    .home-page .card-b { animation-name: fv-b; }
    .home-page .card-c { animation-name: fv-c; }
    .home-page .card-d { animation-name: fv-d; }
    .home-page .card-e { animation-name: fv-e; }
    .home-page .card-f { animation-name: fv-f; }
  }
}
@keyframes fv-copy {
  0% { transform: translateY(0); opacity: 1; }
  66.667% { opacity: 0; }
  100% { transform: translateY(-380px); opacity: 0; }
}
@keyframes fv-cards { from { transform: scale(.84); } to { transform: scale(1.02); } }
@keyframes fv-a { from { transform: translate(0, 0) rotate(-14deg); } to { transform: translate(-40px, -240px) rotate(-17deg); } }
@keyframes fv-b { from { transform: translate(-50%, 0) rotate(1deg); } to { transform: translate(-50%, -260px) rotate(-1deg); } }
@keyframes fv-c { from { transform: translate(0, 0) rotate(14deg); } to { transform: translate(45px, -220px) rotate(17deg); } }
@keyframes fv-d { from { transform: translate(0, 0) rotate(7deg); } to { transform: translate(-75px, -320px) rotate(12deg); } }
@keyframes fv-e { from { transform: translate(-50%, 0) rotate(-3deg); } to { transform: translate(-50%, -350px) rotate(-5deg); } }
@keyframes fv-f { from { transform: translate(0, 0) rotate(-9deg); } to { transform: translate(80px, -315px) rotate(-13deg); } }

/* 画面の外にある流れ続けるアニメーション（ロゴの帯、機能の横スクロール、画面のイメージ）は、見えない間は止める。 */
@media (max-width: 760px) {
  .home-page .is-offscreen,
  .home-page .is-offscreen * { animation-play-state: paused !important; }
}

/* スマートフォンで、FVの写真が上に流れたあとの白い余白が長いので、次の節を少し上に重ねて詰める（2026-11-23）。
   写真は画面の上からの位置で止まり、余白は画面の下にできるので、詰める量は画面の高さに合わせる（2026-11-26）。
   一律に300px詰めると、高さの低い画面（Safariのバーが出たiPhoneなど）で「募集から、広告の成果までの流れ」が写真に重なっていた。
   高さ780px以上では従来どおり300px、それより低い画面ほど詰める量を減らす。
   動きを減らす設定では写真が上に流れず余白ができないので、詰めない（詰めると見出しが写真に重なる）。 */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .home-page .hero + .services { position: relative; margin-top: -300px; margin-top: calc(-1 * clamp(0px, 100svh - 480px, 300px)); }
}
