/* ══════════════════════════════════════════════════════════════
   INVERT LP — デザインシステム（LP専用の手書きCSS）

   旧Next.jsアプリのTailwindビルド成果物（347KB・大半が未使用）を
   置き換える単一のスタイルシート。モバイル広告の着地先であるため、
   モバイル優先で設計し、拡張はメディアクエリで上へ広げる。

   デザイントークン
     和紙 #F6F5F1 / 藍 #22456E / 墨 #23272B
     灰   #6E6A64 / 淡藍 #E9EEF3 / 朱 #C73E3A
   書体
     見出し = Shippori Mincho（明朝）／本文 = Zen Kaku Gothic New
   ══════════════════════════════════════════════════════════════ */

/* ── 1. トークン ────────────────────────────────────────── */
:root {
  --washi: #f6f5f1;
  --ai: #22456e;
  --ai-deep: #1a3556;
  --sumi: #23272b;
  --hai: #6e6a64;
  --usuai: #e9eef3;
  --shu: #c73e3a;
  --line: rgba(35, 39, 43, 0.1);

  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  /* 余白のリズム（セクション上下） */
  --sec-y: 3.5rem;
  --gut: 1.25rem;
  --maxw: 68rem;
  --radius: 0.5rem;
  /* タップ領域の下限（Apple HIG） */
  --tap: 44px;
}
@media (min-width: 768px) {
  :root { --sec-y: 5.5rem; --gut: 2rem; }
}

/* ── 2. リセット ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background-color: var(--washi);
  color: var(--sumi);
  font-family: var(--gothic);
  font-size: 1rem;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ai); outline-offset: 3px; border-radius: 2px; }

/* ── 3. レイアウト基本 ─────────────────────────────────── */
.wrap {
  margin-inline: auto;
  max-width: var(--maxw);
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: 48rem; }
.section { padding-block: var(--sec-y); }
.section--washi { background-color: var(--washi); }
.section--white { background-color: #fff; }
.section--usuai { background-color: var(--usuai); }
.section--ai { background-color: var(--ai); color: #fff; }

/* 見出しの型 */
.eyebrow {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ai);
}
.section--ai .eyebrow { color: rgba(255, 255, 255, 0.72); }
.h2 {
  font-family: var(--mincho);
  font-size: clamp(1.5rem, 5.4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  /* 和文の改行位置を文節で切る（非対応ブラウザは既定動作） */
  word-break: auto-phrase;
}
.lede {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--hai);
  text-wrap: pretty;
}
/* 本文の行末に1文字だけ残る「泣き別れ」を避ける */
.card__b, .plan__b, .faq__b, .about__b, .step__b, .hero__lead, .hero__note {
  text-wrap: pretty;
}
.section--ai .lede { color: rgba(255, 255, 255, 0.82); }
.center { text-align: center; }

/* ── 4. ボタン ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: var(--tap);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.6rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 69, 110, 0.22); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(34, 69, 110, 0.18); }
.btn--primary { background-color: var(--ai); color: #fff; }
.btn--primary:hover { background-color: var(--ai-deep); }
.btn--onai { background-color: #fff; color: var(--ai); }
.btn--onai:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  background-color: transparent;
  color: #fff;
  font-size: 0.9rem;
}
.btn--ghost:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn--block { display: flex; width: 100%; }
.btn__sub {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* ── 5. ヘッダー ───────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(246, 245, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.logo { display: block; height: 1.5rem; width: auto; overflow: visible; }
.logo__text {
  font-family: var(--mincho);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3em;
  fill: var(--ai);
  stroke: var(--ai);
  stroke-width: 0.5;
  stroke-linejoin: round;
}
/* 初回表示時のみ2秒で一度だけ描画（JSが .iv-logo--draw を付与） */
.iv-logo--draw .logo__text {
  fill-opacity: 0;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: logo-draw 1.5s cubic-bezier(0.65, 0, 0.35, 1) forwards,
             logo-fill 0.9s ease 1.1s forwards;
}
@keyframes logo-draw { to { stroke-dashoffset: 0; } }
@keyframes logo-fill { to { fill-opacity: 1; } }
.header .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ── 6. ヒーロー ───────────────────────────────────────── */
.hero { padding-block: 2.5rem var(--sec-y); }
.tag {
  display: inline-block;
  border: 1px solid rgba(34, 69, 110, 0.3);
  border-radius: 2px;
  padding: 0.28rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ai);
  background-color: rgba(34, 69, 110, 0.05);
}
.hero__title {
  margin-top: 1.4rem;
  font-family: var(--mincho);
  font-size: clamp(2.3rem, 11vw, 3.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title .accent { color: var(--ai); }
.hero__lead {
  margin-top: 1.3rem;
  font-size: 1.02rem;
  line-height: 2;
}
.hero__lead b { font-weight: 700; color: var(--ai); }
.hero__note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--hai);
}
.hero__cta { margin-top: 1.8rem; }
.hero__fine {
  margin-top: 0.7rem;
  font-size: 0.76rem;
  line-height: 1.8;
  color: var(--hai);
}
.hero__price {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--hai);
}
.hero__media { margin-top: 2.2rem; }
.phone {
  margin-inline: auto;
  width: min(15rem, 62%);
  border: 2px solid var(--ai);
  border-radius: 1.4rem;
  background-color: #fff;
  padding: 0.375rem;
  box-shadow: 0 12px 40px rgba(34, 69, 110, 0.18);
}
.phone video, .phone img { width: 100%; border-radius: 1rem; }
.hero__caption {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--hai);
}

/* デスクトップ: 縦書きの見出しをブランド表現として使う。
   block-size: max-content で桁の折り返しを禁止し、v4で起きた
   「桁が重なって判読不能」を構造的に起こらないようにする。 */
@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 26rem) auto;
    grid-template-areas:
      "title tag   media"
      "title body  media";
    align-items: start;
    justify-content: center;
    column-gap: 3rem;
    row-gap: 1.1rem;
  }
  .hero__tagrow { grid-area: tag; }
  .hero__body { grid-area: body; }
  .hero__media { grid-area: media; margin-top: 0; }
  .hero__title {
    grid-area: title;
    margin-top: 0;
    writing-mode: vertical-rl;
    /* vertical-rl では inline-size が「行の長さ（縦方向）」にあたる。
       max-content にして行の折り返しを禁止し、桁の衝突を構造的に防ぐ。 */
    inline-size: max-content;
    font-size: 3.5rem;
    line-height: 1.5;
    letter-spacing: 0.08em;
  }
  .phone { width: 15rem; }
}

/* ── 7. 信頼バー ───────────────────────────────────────── */
.trust {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  overflow: hidden;
}
.trust__item {
  padding: 0.9rem 0.4rem;
  text-align: center;
  border-left: 1px solid var(--line);
}
.trust__item:first-child { border-left: none; }
.trust__n {
  display: block;
  font-family: var(--mincho);
  /* 「請求書払い」など長めの語でも1行に収まるよう幅に追従させる */
  font-size: clamp(0.9rem, 4.2vw, 1.15rem);
  font-weight: 700;
  color: var(--ai);
  line-height: 1.4;
  white-space: nowrap;
}
.trust__l {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--hai);
  white-space: nowrap;
}

/* ── 8. 事例（モバイルは横スクロール、PCは3列） ───────── */
.cases {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* カードの影が切れないよう上下に余白を持たせる */
  padding: 0.5rem var(--gut) 1.2rem;
  margin-inline: calc(var(--gut) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cases::-webkit-scrollbar { display: none; }
.case {
  flex: 0 0 76%;
  scroll-snap-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  padding: 1rem;
  text-align: center;
}
.case__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.case__before { width: 33%; }
.case__before img { width: 100%; border-radius: 0.3rem; border: 1px solid var(--line); }
.case__arrow { color: var(--ai); font-size: 1.1rem; font-weight: 700; }
.case__after { width: 46%; }
.case__after video, .case__after img {
  width: 100%;
  border-radius: 0.3rem;
  border: 1px solid var(--line);
}
.case__cap { margin-top: 0.35rem; font-size: 0.66rem; color: var(--hai); }
.case__name {
  margin-top: 0.8rem;
  font-family: var(--mincho);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ai);
}
.cases__hint {
  margin-top: 0.2rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--hai);
}
.measured {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--hai);
}
.measured b { color: var(--ai); font-weight: 700; }
@media (min-width: 768px) {
  .cases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }
  .case { flex: none; }
  .cases__hint { display: none; }
}

/* ── 9. 理由カード ─────────────────────────────────────── */
.cards {
  margin-top: 2.2rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  padding: 1.4rem 1.3rem;
}
.card__h {
  font-family: var(--mincho);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ai);
  line-height: 1.5;
}
.card__b { margin-top: 0.7rem; font-size: 0.9rem; line-height: 1.95; }
.foot-note {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--hai);
}

/* ── 10. 料金 ──────────────────────────────────────────── */
.plans { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #fff;
  padding: 1.6rem 1.4rem;
}
.plan--feature { border: 2px solid var(--ai); }
.plan__badge {
  position: absolute;
  top: -0.75rem;
  right: 1.2rem;
  border-radius: 2px;
  background-color: var(--shu);
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}
.plan__name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ai);
}
.plan__price {
  margin-top: 0.5rem;
  font-family: var(--mincho);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.3;
}
.plan__price small { font-size: 0.8rem; font-weight: 500; }
.plan__was { font-size: 0.78rem; color: var(--hai); }
.plan__b { margin-top: 0.9rem; font-size: 0.88rem; line-height: 1.95; }
.plan__note { margin-top: 1.4rem; text-align: center; font-size: 0.82rem; color: var(--hai); }

/* ── 11. 流れ ──────────────────────────────────────────── */
.steps { margin-top: 2.2rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 1rem;
  padding-bottom: 1.4rem;
}
.step:last-child { padding-bottom: 0; }
/* 番号どうしを縦線でつなぐ */
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  bottom: 0.2rem;
  width: 1px;
  background-color: rgba(34, 69, 110, 0.25);
}
.step__n {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background-color: var(--usuai);
  color: var(--ai);
  font-family: var(--mincho);
  font-size: 0.95rem;
  font-weight: 700;
}
.step__b { padding-top: 0.15rem; font-size: 0.92rem; line-height: 1.9; }

/* ── 12. 運営について ─────────────────────────────────── */
.about__b { margin-top: 1.2rem; font-size: 0.92rem; line-height: 2.05; }
.about__links {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.linkline {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 0.88rem;
  color: var(--ai);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
@media (min-width: 768px) {
  .about__links { flex-direction: row; gap: 2rem; }
}

/* ── 13. FAQ ───────────────────────────────────────────── */
.faq { margin-top: 2rem; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--tap);
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 1.5px solid var(--ai);
  border-bottom: 1.5px solid var(--ai);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-0.1rem, -0.1rem); }
.faq__b { padding-bottom: 1.1rem; font-size: 0.88rem; line-height: 1.95; color: var(--sumi); }

/* ── 14. 申込フォーム ─────────────────────────────────── */
.apply__card {
  margin-top: 2.25rem;
  background-color: #fff;
  border-radius: 0.6rem;
  padding: 1.5rem 1.25rem;
  text-align: left;
  color: var(--sumi);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}
@media (min-width: 640px) { .apply__card { padding: 2.25rem; } }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hai);
  letter-spacing: 0.04em;
}
.req, .opt {
  display: inline-block;
  margin-left: 0.45rem;
  border-radius: 2px;
  padding: 0.05rem 0.4rem;
  font-size: 0.62rem;
  vertical-align: 1px;
}
.req { background-color: var(--shu); color: #fff; }
.opt { background-color: #e2e0da; color: #55524d; }
.form input[type="text"],
.form input[type="email"],
.form select {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 0.3rem;
  background-color: var(--washi);
  padding: 0.7rem 0.8rem;
  font-size: 1rem; /* 16px未満だとiOSで自動ズームするため下げない */
  font-family: inherit;
  color: var(--sumi);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236E6A64' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgba(34, 69, 110, 0.14);
}
.form input::placeholder { color: #a9a49c; }
/* スパム対策のハニーポット（人間には見えない・読み上げもさせない） */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 1.5rem; }
.submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border: none;
  border-radius: var(--radius);
  background-color: var(--ai);
  padding: 0.9rem 1.5rem;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.submit:hover { background-color: var(--ai-deep); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34, 69, 110, 0.22); }
.submit:active { transform: translateY(0); }
.submit[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.form-note {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.8;
  color: var(--hai);
}
.form-error {
  margin-top: 0.9rem;
  border-radius: 0.3rem;
  background-color: #fdeceb;
  padding: 0.8rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.8;
  color: #a3302c;
  text-align: left;
}
/* 送信失敗時でも申し込みを取りこぼさないためのメール導線 */
.form-error .iv-error-mail {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  border-radius: 0.3rem;
  background-color: #a3302c;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
/* ?debug=1 のときだけ表示する技術的な失敗理由 */
.form-error .iv-error-debug {
  margin-top: 0.6rem;
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.6;
  color: #7a2825;
  word-break: break-all;
}
/* 送信完了 */
.done { text-align: center; padding: 1rem 0 0.25rem; }
.done__mark {
  margin: 0 auto 1rem;
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--usuai);
  color: var(--ai);
  font-size: 1.25rem;
  font-weight: 700;
}
.done__h { font-family: var(--mincho); font-size: 1.15rem; font-weight: 700; color: var(--ai); }
.done__b { margin-top: 0.75rem; font-size: 0.9rem; line-height: 1.9; }
/* メール導線（フォーム下の残置） */
.bymail {
  margin-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1.5rem;
  text-align: center;
}
.bymail__h { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.bymail .btn { margin-top: 0.7rem; }
.bymail__fine { margin-top: 0.8rem; font-size: 0.74rem; line-height: 1.8; color: rgba(255, 255, 255, 0.7); }
.bymail__addr { margin-top: 0.6rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.9); }

/* ── 15. フッター ─────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--hai);
}
.footer .linkline { justify-content: center; }
.footer__c { margin-top: 0.4rem; line-height: 1.9; }

/* ── 15b. 特定商取引法に基づく表記ページ ─────────────── */
.legal {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.legal__row {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
@media (min-width: 640px) {
  .legal__row { grid-template-columns: 13rem 1fr; gap: 1.5rem; }
}
.legal__k { font-size: 0.8rem; font-weight: 700; color: var(--hai); }
.legal__v { margin: 0; font-size: 0.88rem; line-height: 1.95; }
main > .wrap > .linkline { margin-top: 2rem; }

/* ── 16. モバイル固定CTAバー ──────────────────────────── */
.iv-sticky {
  font-family: var(--gothic);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: var(--ai);
  padding: 0.5rem 0.9rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 250ms ease;
}
.iv-sticky.is-shown { transform: none; }
.iv-sticky__t { font-size: 0.72rem; line-height: 1.5; color: rgba(255, 255, 255, 0.9); }
.iv-sticky__b {
  flex: none;
  display: flex;
  align-items: center;
  min-height: var(--tap);
  border-radius: 0.25rem;
  background-color: #fff;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ai);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 640px) { .iv-sticky { display: none; } }
@media (max-width: 639.98px) { body.iv-has-sticky { padding-bottom: 4rem; } }

/* ── 17. スクロール連動フェード（初回のみ） ─────────────── */
.iv-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.iv-reveal.is-in { opacity: 1; transform: none; }

/* ── 18. モーション設定の尊重 ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .iv-logo--draw .logo__text {
    animation: none;
    fill-opacity: 1;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
  .iv-reveal, .iv-reveal.is-in { opacity: 1; transform: none; transition: none; }
  .btn, .submit, .iv-sticky, .faq summary::after { transition: none; }
  .btn:hover, .btn:active, .submit:hover, .submit:active { transform: none; }
  .iv-sticky { transform: none; }
  .iv-sticky:not(.is-shown) { display: none; }
}
