@charset "UTF-8";

/* =========================================================
   RelayNote LP（Relaybase株式会社／架空のBtoB SaaS）
   デザイン方向：ホワイト × ネイビー × エレクトリックブルー
   太めのモダンゴシック／グリッドを明確に／写真ではなくUI画面が主役
   明朝体・水彩・柔らかい人物イラストは使わない
   ========================================================= */

:root {
  /* 色：3色構成（白 / ネイビー / エレクトリックブルー）＋状態色 */
  --white:     #FFFFFF;
  --bg-alt:    #F3F6FC;   /* 薄いブルーグレー */
  --navy:      #0B1B33;   /* 文字・濃い面 */
  --navy-soft: #16294A;
  --blue:      #1B4FE0;   /* CTA・強調（白文字で 6.4:1） */
  --blue-hi:   #4E86FF;   /* ネイビー面の上で使う明るい青（5.0:1） */
  --blue-pale: #E8EEFF;
  --muted:     #4C5C77;   /* 補足文（白地で 6.7:1） */
  --muted-dk:  #B9C7E0;   /* ネイビー面の補足文（10.1:1） */
  --line:      #DCE4F2;
  --line-dk:   #2A3E63;

  --amber-bg:  #FFF3DC;
  --amber-tx:  #8A5300;
  --red-bg:    #FDEAEA;
  --red-tx:    #C22B2B;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 2px 4px rgba(11,27,51,.04), 0 12px 32px rgba(11,27,51,.08);
  --shadow-lg: 0 8px 20px rgba(11,27,51,.10), 0 32px 60px rgba(11,27,51,.16);

  --font: "Inter", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  word-break: auto-phrase;
}

img, svg { max-width: 100%; }
a { color: var(--blue); }

h1, h2, h3 { line-height: 1.4; letter-spacing: .01em; margin: 0; font-weight: 900; }
p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2.5rem); }

.br-pc { display: none; }
@media (min-width: 768px) {
  .br-pc { display: inline; }
  .br-sp { display: none; }
}

/* ============ サンプル告知バー ============ */
.samplebar {
  background: var(--navy);
  color: var(--muted-dk);
  font-size: .78rem;
  line-height: 1.6;
  text-align: center;
  padding: .55rem 1.25rem;
}
.samplebar strong { color: var(--white); font-weight: 700; }

/* ============ ヘッダー ============ */
.siteheader {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.siteheader-in {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue); color: var(--white); }
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { font-size: .66rem; color: var(--muted); letter-spacing: .04em; }

.gnav { display: none; gap: 1.6rem; }
.gnav a { color: var(--navy); text-decoration: none; font-size: .88rem; font-weight: 700; }
.gnav a:hover { color: var(--blue); }
@media (min-width: 900px) { .gnav { display: flex; } }

/* 狭い画面：ヘッダーの中身が横に溢れないように詰める */
@media (max-width: 480px) {
  .brand-text small { display: none; }
  .brand-text b { font-size: .98rem; }
  .siteheader .btn-sm { padding: .58rem .8rem; font-size: .78rem; }
}

/* ============ ボタン ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .95rem 1.7rem;
  border-radius: 10px;
  font-size: .96rem; font-weight: 800; letter-spacing: .02em;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 18px rgba(27,79,224,.28); }
.btn-primary:hover { background: #1743C4; transform: translateY(-1px); }
.btn-ghost { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-pale); }
.btn-sm { padding: .68rem 1.15rem; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; padding: 1.1rem; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ============ セクション共通 ============ */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .eyebrow { color: var(--blue-hi); }
.section-dark .lead, .section-dark .note { color: var(--muted-dk); }

.eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 800; letter-spacing: .18em;
  color: var(--blue);
  margin-bottom: .8rem;
}
.h2 {
  font-size: clamp(1.55rem, 4.4vw, 2.45rem);
  margin-bottom: 1rem;
}
.lead { color: var(--muted); font-size: 1rem; max-width: 46em; margin-bottom: 2.6rem; }
.note { color: var(--muted); font-size: .82rem; margin-top: 1rem; }

.badge-sample {
  display: inline-block;
  background: var(--blue-pale); color: var(--blue);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  padding: .18rem .6rem; border-radius: 5px;
  margin-right: .5rem;
  vertical-align: .08em;
}
.section-dark .badge-sample { background: var(--navy-soft); color: var(--blue-hi); }

/* ============ グリッド ============ */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ============ ①ヒーロー ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(27,79,224,.10), transparent 62%),
    linear-gradient(180deg, var(--white) 0%, var(--bg-alt) 100%);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.hero-in { position: relative; z-index: 1; display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); }
@media (min-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}
.hero-title {
  font-size: clamp(1.95rem, 5.2vw, 3.15rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
}
.hero-lead { color: var(--muted); font-size: clamp(.95rem, 2vw, 1.05rem); margin-bottom: 2rem; }
.hero-lead b { color: var(--navy); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero-points { display: grid; gap: .55rem; }
.hero-points li {
  position: relative; padding-left: 1.7rem;
  font-size: .88rem; font-weight: 700; color: var(--navy);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 10px; height: 10px; border-radius: 3px; background: var(--blue);
}

/* ============ UI画面（HTML/CSSで作図） ============ */
.ui-window {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ui-bar {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1rem;
  background: var(--navy);
  color: var(--white);
}
.ui-dots { display: flex; gap: .3rem; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.ui-title { font-size: .8rem; font-weight: 700; letter-spacing: .03em; }

.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.ui-stats > div { padding: .9rem .6rem; text-align: center; border-right: 1px solid var(--line); }
.ui-stats > div:last-child { border-right: 0; }
.ui-stats b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--blue); }
.ui-stats span { font-size: .7rem; color: var(--muted); font-weight: 700; }
.ui-stats .is-alert b { color: var(--red-tx); }

.ui-rows li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .7rem;
  align-items: center;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
.ui-task { font-size: .85rem; font-weight: 700; }
.ui-meta { grid-column: 2; font-size: .72rem; color: var(--muted); font-weight: 600; }

.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  padding: .2rem .55rem; border-radius: 5px; white-space: nowrap;
}
.tag-blue  { background: var(--blue-pale); color: var(--blue); }
.tag-amber { background: var(--amber-bg);  color: var(--amber-tx); }
.tag-red   { background: var(--red-bg);    color: var(--red-tx); }

.ui-why { padding: 1rem; background: var(--bg-alt); border-top: 2px solid var(--blue); }
.ui-why-label { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--blue); margin-bottom: .35rem; }
.ui-why p { font-size: .78rem; color: var(--muted); line-height: 1.75; }

/* 機能セクションの中の小さいUI */
.ui-window-sm { box-shadow: var(--shadow); }
.ui-split { display: grid; }
@media (min-width: 620px) { .ui-split { grid-template-columns: 1fr 1fr; } }
.ui-raw, .ui-out { padding: 1rem; }
.ui-raw { border-bottom: 1px solid var(--line); }
@media (min-width: 620px) { .ui-raw { border-bottom: 0; border-right: 1px solid var(--line); } }
.ui-out { background: var(--bg-alt); }
.ui-sub { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.ui-raw p { font-size: .78rem; color: var(--muted); margin-bottom: .5rem; line-height: 1.7; }
.ui-out li { font-size: .8rem; font-weight: 700; margin-bottom: .5rem; display: flex; gap: .5rem; align-items: baseline; }
.ui-out li b {
  flex: none; font-size: .66rem; font-weight: 800; letter-spacing: .06em;
  background: var(--blue); color: var(--white);
  padding: .1rem .4rem; border-radius: 4px;
}

/* ============ カード ============ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  box-shadow: var(--shadow);
}
.card-no {
  display: block;
  font-size: .95rem; font-weight: 800; letter-spacing: .1em;
  color: var(--blue); margin-bottom: .6rem;
}
.card h3 { font-size: 1.08rem; margin-bottom: .7rem; }
.card p { font-size: .87rem; color: var(--muted); }
.card .tag { margin-bottom: .7rem; }
.card-cta { background: var(--navy); border-color: var(--navy); color: var(--white); display: flex; flex-direction: column; }
.card-cta p { color: var(--muted-dk); margin-bottom: 1.2rem; }
.card-cta .btn { margin-top: auto; align-self: flex-start; }

/* ============ 比較表 ============ */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--navy-soft); }
.cmp th, .cmp td {
  padding: 1rem 1.1rem;
  text-align: left;
  font-size: .87rem;
  border-bottom: 1px solid var(--line-dk);
  vertical-align: top;
}
.cmp thead th { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--muted-dk); background: rgba(255,255,255,.04); }
.cmp thead th.is-after { color: var(--blue-hi); }
.cmp tbody th { width: 8.5em; font-weight: 800; color: var(--white); }
.cmp td { color: var(--muted-dk); font-weight: 500; }
.cmp td.is-after { color: var(--white); font-weight: 700; background: rgba(78,134,255,.10); border-left: 2px solid var(--blue-hi); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* ============ 3ステップ ============ */
.flow { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 860px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.flow-no { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: var(--blue); margin-bottom: .5rem; }
.flow h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.flow p { font-size: .87rem; color: var(--muted); }
@media (min-width: 860px) {
  .flow li:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -.95rem;
    width: 10px; height: 10px; margin-top: -5px;
    border-top: 3px solid var(--blue); border-right: 3px solid var(--blue);
    transform: rotate(45deg);
  }
}

/* ============ 機能（主役） ============ */
.feature-lead {
  display: grid; gap: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}
@media (min-width: 960px) {
  .feature-lead { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; }
}
.feature-lead-text .tag { margin-bottom: .8rem; }
.feature-lead-text h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .8rem; }
.feature-lead-text p { font-size: .92rem; color: var(--muted); }

/* ============ 利用シーン ============ */
.scene {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.scene h3 { font-size: 1.1rem; }
.scene-sub { font-size: .76rem; font-weight: 800; color: var(--blue); margin: .3rem 0 .9rem; }
.scene p { font-size: .87rem; color: var(--muted); }

/* ============ お客様の声 ============ */
.voice {
  margin: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  display: flex; flex-direction: column;
}
.voice blockquote {
  margin: 0 0 1.1rem;
  font-size: .9rem; font-weight: 700; line-height: 1.9;
}
.voice figcaption {
  margin-top: auto;
  font-size: .76rem; font-weight: 700; color: var(--muted);
  padding-top: .9rem; border-top: 1px solid var(--line);
}

/* ============ 定着とセキュリティ ============ */
.pillar {
  background: var(--navy-soft);
  border: 1px solid var(--line-dk);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: .7rem; color: var(--white); }
.pillar p { font-size: .87rem; color: var(--muted-dk); }

/* ============ 料金 ============ */
.plans { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.plan-main { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .plan-main { margin-top: -.9rem; padding-block: 2.4rem; } }
.plan-flag {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: var(--white);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  padding: .3rem .9rem; border-radius: 20px; white-space: nowrap;
}
.plan-name { font-size: 1.25rem; letter-spacing: .02em; }
.plan-target { font-size: .78rem; font-weight: 700; color: var(--muted); margin-top: .2rem; }
.plan-price {
  display: flex; align-items: baseline; min-height: 3rem;
  margin: 1rem 0 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line);
}
.plan-price b { font-size: 2.1rem; font-weight: 800; letter-spacing: -.01em; }
.plan-price span { font-size: .78rem; font-weight: 700; color: var(--muted); margin-left: .3rem; }
.plan-price-ask b { font-size: 1.35rem; }
.plan-list { margin-bottom: 1.6rem; display: grid; gap: .55rem; }
.plan-list li { position: relative; padding-left: 1.5rem; font-size: .85rem; font-weight: 600; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }

/* ============ FAQ ============ */
.faq { display: grid; gap: .8rem; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.3rem;
  font-size: .95rem; font-weight: 800;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.3rem; top: 1.5rem;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.75rem; }
.faq summary:hover { background: var(--bg-alt); }
.faq-a { padding: 0 1.3rem 1.3rem; }
.faq-a p { font-size: .87rem; color: var(--muted); }

/* ============ デモ予約フォーム ============ */
.section-demo { background: var(--bg-alt); border-top: 1px solid var(--line); }
.demoform {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-note {
  background: var(--blue-pale);
  border-radius: 9px;
  padding: .8rem 1rem;
  font-size: .8rem; font-weight: 600; color: var(--navy);
  margin-bottom: 1.6rem;
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.field label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 800; margin-bottom: .45rem;
}
.req {
  background: var(--blue); color: var(--white);
  font-size: .64rem; font-weight: 800; letter-spacing: .06em;
  padding: .1rem .4rem; border-radius: 4px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: .92rem; font-weight: 500;
  color: var(--navy);
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.field textarea { resize: vertical; line-height: 1.8; }
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: #F8FAFE; color: var(--muted); cursor: not-allowed;
}
.form-sub { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .9rem; }

/* ============ フッター ============ */
.sitefooter { background: var(--navy); color: var(--white); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-flag { font-size: clamp(1.2rem, 3.4vw, 1.7rem); font-weight: 900; line-height: 1.5; margin-bottom: 1.8rem; }
.footer-meta { padding-top: 1.6rem; border-top: 1px solid var(--line-dk); }
.footer-meta p { font-size: .85rem; color: var(--muted-dk); }
.footer-meta b { color: var(--white); font-weight: 800; }
.disclaimer {
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  background: var(--navy-soft); border-radius: 9px;
  font-size: .78rem; line-height: 1.8; color: var(--muted-dk);
}
.copyright { margin-top: 1.6rem; font-size: .72rem; color: var(--muted-dk); letter-spacing: .06em; }

/* =========================================================
   動き
   ---------------------------------------------------------
   要素を隠すのは <html class="js-motion"> が付いているときだけ。
   このクラスは head のインラインスクリプトが付け、motion.js が
   3秒以内に起動しなければ自動で外れる。
   つまり **JSが動かない環境では、最初から全部表示されている**。
   ========================================================= */

/* ── ① スクロールで入ってくる ── */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.2,.75,.3,1),
              transform .75s cubic-bezier(.2,.75,.3,1);
}
.js-motion .reveal.is-in { opacity: 1; transform: none; }

/* 見出しは、下から押し上がるマスク出現 */
.js-motion .reveal-mask {
  opacity: 1;
  transform: translateY(16px);
  clip-path: inset(0 0 108% 0);
  transition: clip-path .9s cubic-bezier(.16,.84,.28,1),
              transform .9s cubic-bezier(.16,.84,.28,1);
}
.js-motion .reveal-mask.is-in { clip-path: inset(0 0 -12% 0); transform: none; }

/* 同じ列に並ぶものは、少しずつ遅らせる */
.js-motion .grid > .reveal:nth-child(2),
.js-motion .moods > .reveal:nth-child(2) { transition-delay: .09s; }
.js-motion .grid > .reveal:nth-child(3) { transition-delay: .18s; }
.js-motion .grid > .reveal:nth-child(4) { transition-delay: .27s; }
.js-motion .grid > .reveal:nth-child(5) { transition-delay: .36s; }
.js-motion .grid > .reveal:nth-child(6) { transition-delay: .45s; }

/* ── ② ヒーローの読み込み演出 ── */
/* 見出しは行ごとにマスクの下から押し上がる */
.hero-title .ln { display: block; overflow: hidden; }
.hero-title .ln > span { display: block; }
.js-motion .hero-title .ln > span {
  transform: translateY(112%);
  animation: lineUp .95s cubic-bezier(.16,.84,.28,1) forwards;
}
.js-motion .hero-title .ln:nth-child(1) > span { animation-delay: .10s; }
.js-motion .hero-title .ln:nth-child(2) > span { animation-delay: .20s; }
.js-motion .hero-title .ln:nth-child(3) > span { animation-delay: .30s; }
@keyframes lineUp { to { transform: none; } }

/* 見出し以外は、少し遅れてふわりと */
.js-motion .hero-copy > .eyebrow,
.js-motion .hero-copy > .hero-lead,
.js-motion .hero-copy > .hero-cta,
.js-motion .hero-copy > .hero-points,
.js-motion .hero-ui,
.js-motion .siteheader {
  opacity: 0;
  animation: heroIn .9s cubic-bezier(.2,.75,.3,1) forwards;
}
.js-motion .siteheader            { animation-delay: .05s; animation-name: headerIn; }
.js-motion .hero-copy > .eyebrow  { animation-delay: .05s; }
.js-motion .hero-copy > .hero-lead   { animation-delay: .52s; }
.js-motion .hero-copy > .hero-cta    { animation-delay: .62s; }
.js-motion .hero-copy > .hero-points { animation-delay: .72s; }
.js-motion .hero-ui                  { animation-delay: .42s; }
@keyframes heroIn   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes headerIn { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }

/* ── ③ ヒーローの図形。スクロールに合わせて広がりながら消える ── */
.hero-shape {
  position: absolute; z-index: 0;
  left: 52%; top: 48%;
  width: min(820px, 96vw); aspect-ratio: 1 / .82;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, opacity;
}
.hero-shape i {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(140deg, #D8E4FF 0%, #E9EFFF 55%, #DFE8FF 100%);
  clip-path: polygon(24% 3%, 76% 0%, 99% 30%, 92% 78%, 62% 100%, 22% 96%, 2% 62%, 6% 24%);
  animation: shapeBreathe 16s ease-in-out infinite alternate;
}
@keyframes shapeBreathe {
  0%   { clip-path: polygon(24% 3%, 76% 0%, 99% 30%, 92% 78%, 62% 100%, 22% 96%, 2% 62%, 6% 24%); }
  50%  { clip-path: polygon(18% 8%, 72% 4%, 96% 36%, 97% 74%, 66% 98%, 26% 92%, 5% 68%, 3% 28%); }
  100% { clip-path: polygon(28% 6%, 80% 6%, 97% 26%, 90% 82%, 58% 97%, 18% 90%, 4% 58%, 9% 20%); }
}
.js-motion .hero-shape {
  transform: translate(-50%, -50%) scale(calc(1 + var(--p, 0) * 4.6));
  opacity: calc(1 - var(--p, 0) * .9);
}
/* スクロールするとコピーは静かに退場する */
.js-motion .hero-in {
  opacity: calc(1 - var(--p, 0) * 1.15);
  transform: translateY(calc(var(--p, 0) * -34px));
}

/* ── ④ ボタン：ホバーでラベルが入れ替わる ──
   マスク（.lbl）を**ちょうど1行分**にして、その1行分だけ動かす。
   ボタン全体をマスクにすると、上下の余白のぶん動きが足りず、
   文字がボタンの上端に残ってしまう */
.btn { position: relative; overflow: hidden; }
.btn .lbl {
  display: block; position: relative; overflow: hidden;
  line-height: 1.5; white-space: nowrap;
}
.btn .lbl i {
  display: block; font-style: normal;
  transition: transform .45s cubic-bezier(.2,.75,.3,1);
}
.btn .lbl::after {
  content: attr(data-label);
  position: absolute; left: 0; top: 0; width: 100%;
  transform: translateY(100%);
  transition: transform .45s cubic-bezier(.2,.75,.3,1);
}
.btn:hover .lbl i     { transform: translateY(-100%); }
.btn:hover .lbl::after { transform: translateY(0); }

/* 無効なボタンは入れ替えない */
.btn:disabled .lbl i     { transform: none; }
.btn:disabled .lbl::after { content: none; }

/* 主ボタンだけ、右端の小窓を矢印が滑る */
.btn-primary { padding-right: 3.3rem; }
.btn-primary.btn-sm { padding-right: 2.6rem; }
.btn-primary::before {
  content: "→";
  position: absolute; right: 1.15rem; top: 50%;
  width: 1.1em; height: 1.35em; margin-top: -.68em;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.2,.75,.3,1);
  z-index: 1;
}
.btn-primary:hover::before { transform: translateX(.35em); }
.btn-primary.btn-sm::before { right: .85rem; }

/* ── ⑤ セクションの切れ目に流れる帯 ── */
.marquee {
  overflow: hidden;
  padding: 1.15rem 0;
  background: var(--navy);
  color: var(--white);
  border-block: 1px solid var(--navy);
}
.marquee-track {
  display: flex; width: max-content;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  font-weight: 800; letter-spacing: .04em;
  white-space: nowrap;
}
.marquee-track span { padding-inline: 1.6rem; }
.marquee-track span::after { content: "／"; margin-left: 1.6rem; color: var(--blue-hi); }
.js-motion .marquee-track { animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn > span, .btn::after, .btn-primary::before { transition: none; }
  .hero-shape i, .marquee-track { animation: none; }
}
