/* =============================================
   e-click 総合トップ — top-renewal.css
   配色: CTA = コーラル（メディア）/ グリーン（広告主）。
   本文は墨・グレー・罫線・余白・タイポグラフィで構成。
============================================= */
:root {
  --ink:    #17212b;   /* 見出し・文中強調 */
  --text:   #2f3438;   /* 本文はわずかに淡い黒 */
  --faint:  #6f7780;   /* 補助・注記 */
  --line:   #e3e9ed;
  --line-strong: #c9d2d8;
  --bg-soft: #f7f9fa;
  --white:  #ffffff;

  /* アクセント = コーラル */
  --coral:  #f0613f;

  /* CTA配色 — コーラル（メディア）／グリーン（広告主） */
  --cta-media:      #f0613f;
  --cta-media-deep: #d24a2f;
  --cta-adv:        #4f9d3a;
  --cta-adv-deep:   #3f8a2e;

  /* 欧文⇄和文ペアリング規約:
     和文（本文・見出し）= Noto Sans JP。数字・英字ラベル= DM Sans 専用。
     本文中の英単語は和文フォントに委ねる（混植しない）。
     DM Sans は常に tabular-nums で揃え、大数字は負トラッキングで和文の字面と握手させる。
     太さ対応: 大数字 DM800 ↔ 見出し Noto700・800 / ラベル DM700 ↔ 和文ラベル Noto700 */
  --font:       "Noto Sans JP", "Hiragino Sans", "YuGothic", sans-serif;
  --font-latin: "DM Sans", sans-serif;
  /* 見出し専用フォント — 既定は本文と同じ */
  --font-display: var(--font);

  --type-display:       clamp(40px, 4.2vw, 60px);
  --type-section-title: clamp(28px, 2.4vw, 36px);
  --type-block-title:   clamp(24px, 2.2vw, 31px);
  --type-card-title:    20px;
  --type-lead:          17px;
  --type-body:          16px;
  --type-card-body:     14.5px;
  --type-label:         13px;

  /* ウェイト — 役割ごとに命名（本家 advertiser-lp の規律を踏襲） */
  --weight-display:     800;
  --weight-section:     700;
  --weight-block:       700;
  --weight-card-title:  600;
  --weight-lead:        500;
  --weight-body:        400;
  --weight-label:       700;
  --weight-cta:         900;

  /* 行間 — 役割ごとに命名 */
  --leading-display:    1.34;
  --leading-section:    1.48;
  --leading-block:      1.45;
  --leading-card-title: 1.5;
  --leading-lead:       1.9;
  --leading-body:       1.85;

  --max: 1080px;
  --sec-y: 130px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "palt";
  color: var(--text);
  background: var(--white);
  line-height: var(--leading-body);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: 0; font-family: var(--font-display); }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* 文中強調は使わない — 本文の太字は地の文と同じウェイト・色にする */
p strong, li strong {
  font-weight: inherit;
  color: inherit;
}

.inner {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

/* ===== タイポグラフィの道具立て ===== */
.title-rule {
  display: block;
  width: 44px;
  height: 3px;
  background: var(--coral);
  margin: 26px auto 0;
}

.kicker {
  display: block;
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: var(--weight-label);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 18px;
}

.section-title {
  font-size: var(--type-section-title);
  font-weight: var(--weight-section);
  line-height: var(--leading-section);
}
.section-lead {
  font-size: var(--type-lead);
  font-weight: var(--weight-lead);
  line-height: var(--leading-lead);
  color: var(--text);
}
.section-head { text-align: center; }
.section-head .section-lead { margin-top: 34px; }

.num {
  font-family: var(--font-latin);
  font-size: 40px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

/* CTA前後の小さい言葉 */
.cheer {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .04em;
  text-align: center;
}

/* ===== CTA — 色はここだけ ===== */
.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(400px, 100%);
  padding: 30px 36px;
  border-radius: 6px;
  color: var(--white);
  text-align: center;
  transition: transform .16s ease;
}
.cta-block:hover { transform: translateY(-2px); }
.cta-block .cta-small {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  color: rgba(255,255,255,.85);
}
.cta-block .cta-big {
  font-size: 22px;
  font-weight: var(--weight-cta);
  line-height: 1.4;
  letter-spacing: 0;
  white-space: nowrap;
}
.cta-block .cta-big small {
  font-size: 15px;
  font-weight: 700;
}
.cta-block.media { background: var(--cta-media); box-shadow: 0 10px 28px rgba(22,36,46,.16); }
.cta-block.media:hover { background: var(--cta-media-deep); }
.cta-block.adv { background: var(--cta-adv); box-shadow: 0 10px 28px rgba(22,36,46,.16); }
.cta-block.adv:hover { background: var(--cta-adv-deep); }

/* ボタン形状：ピル型で確定（body[data-btn="pill"]） */
body[data-btn="pill"] .cta-block,
body[data-btn="pill"] .cta-compact { border-radius: 999px; }

.cta-pair {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 34px;
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background .15s ease;
}
.cta-compact.media { background: var(--cta-media); }
.cta-compact.media:hover { background: var(--cta-media-deep); }
.cta-compact.adv { background: var(--cta-adv); }
.cta-compact.adv:hover { background: var(--cta-adv-deep); }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-main {
  width: min(1240px, calc(100% - 48px));
  min-height: 138px;
  margin: 0 auto;
  padding: 24px 0 18px;
  display: grid;
  grid-template-columns: minmax(370px, 1fr) 220px minmax(370px, 1fr);
  gap: 34px;
  align-items: start;
}
.header-brand {
  align-self: center;
  text-align: center;
  padding-top: 2px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo img { height: 48px; width: auto; }
.header-login {
  min-width: 0;
  text-align: left;
}
.header-login-head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.header-login-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.header-login-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #5c6872;
  font-size: 12px;
  line-height: 1.3;
}
.header-login-links a {
  display: inline-flex;
  align-items: center;
  transition: color .15s;
  white-space: nowrap;
}

.header-login-links a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.header-login-error {
  margin: 8px 0 0;
  color: var(--cta-media-deep);
  font-size: 11px;
  line-height: 1.5;
}
.header-login-form {
  display: grid;
  grid-template-columns: auto minmax(92px, 100px) auto minmax(92px, 100px) auto;
  gap: 10px 12px;
  align-items: center;
}
.header-login-form label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.header-login-form input {
  width: 100%;
  height: 30px;
  padding: 0 9px;
  border: 1px solid #cfd7dd;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: 13px/1 var(--font);
}
.header-login-form input:focus {
  outline: none;
  border-color: var(--login-accent, var(--coral));
  box-shadow: 0 0 0 2px rgba(240,97,63,.14);
}
.header-login-btn {
  height: 34px;
  min-width: 76px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--login-accent, var(--coral));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.header-login-btn:hover {
  background: var(--login-accent-deep, var(--cta-media-deep));
  transform: translateY(-1px);
}
.header-login.media {
  --login-accent: var(--cta-media);
  --login-accent-deep: var(--cta-media-deep);
}
.header-login.adv {
  --login-accent: var(--cta-adv);
  --login-accent-deep: var(--cta-adv-deep);
}
/* ログイン誘導リンク：PCでは隠し、スマホの細いヘッダーバーで表示 */
.aff-login-link,
.adv-login-link { display: none; }
.header-nav {
  border-top: 1px solid var(--line);
  background: var(--white);
}
.nav {
  width: min(var(--max), calc(100% - 56px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: var(--type-label);
  font-weight: 700;
  color: #41525e;
  white-space: nowrap;
}
.nav-link {
  transition: color .15s;
}
.nav-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
/* スクリーンリーダー専用（視覚的に非表示）。SEO用h1などに使用 */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
/* ===== 固定CTAバー ===== */
.cta-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  transform: translateY(-110%);
  transition: transform .28s ease, visibility .28s ease;
  visibility: hidden;
  pointer-events: none;
}
.cta-bar.visible { transform: translateY(0); visibility: visible; pointer-events: auto; }

/* ===== HERO — 3カラム（左画像・中央コピー・右画像） ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding: 30px 0 12px;
}
.hero-grid {
  width: min(1240px, 94vw);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-center { text-align: center; }
.hero-cta { margin-top: 0; }
.hero-cta .cheer { display: block; margin-bottom: 14px; }

.hero-cta .cta-pair { display: flex; flex-direction: row; justify-content: center; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.hero-cta .cta-block.media,
.hero-cta .cta-block.adv { box-shadow: none; }

/* ===== SECTION BASE ===== */
.section { padding: var(--sec-y) 0; }
.about { padding-top: 78px; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 88px;
}
/* 列間は左右paddingではなくgapで対称に。中央列(02)だけ幅が狭くならないようにし、
   狭めた時に3枚が同時に縮む（＝常に同サイズで揃う）ようにする */
.about-item { padding: 0; text-align: left; }
.about-item .num { display: block; margin-bottom: 22px; }
.about-item h3 {
  font-size: var(--type-card-title);
  font-weight: var(--weight-card-title);
  line-height: var(--leading-card-title);
  margin-bottom: 14px;
}
.about-item p {
  font-size: var(--type-card-body);
  line-height: var(--leading-body);
}

/* ===== FLOW — aboutと差別化: 縦タイムライン（細レール＋ドット / 終点だけコーラル） ===== */
.flow {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.flow-illust {
  position: absolute;
  left: max(12px, calc(50% - 650px));
  bottom: 128px;
  width: clamp(280px, 22vw, 360px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
#faq {
  position: relative;
  overflow: visible;
  z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #fff 72%, var(--bg-soft) 100%);
}
.faq-illust {
  position: absolute;
  right: max(-34px, calc(50% - 700px));
  top: auto;
  bottom: -74px;
  width: clamp(280px, 22vw, 360px);
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.flow > .inner, #faq > .inner { position: relative; z-index: 1; }
@media (max-width: 1120px) {
  .flow-illust, .faq-illust { display: none; }
}
.flow-wrap {
  max-width: 680px;
  margin: 88px auto 0;
}
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 30px;
  padding-bottom: 46px;
}
.flow-step:last-child { padding-bottom: 0; }
.flow-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
/* 連結レール — 「縦に進む」を視覚化 */
.flow-rail::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -46px;
  left: 50%;
  width: 2px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.flow-step:last-child .flow-rail::before { display: none; }
.flow-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--ink);
}
/* 終点だけ軽く強調 */
.flow-step:last-child .flow-dot {
  background: var(--coral);
  border-color: var(--coral);
}

.flow-step h3 {
  font-size: 18px;
  font-weight: var(--weight-card-title);
  line-height: var(--leading-card-title);
  margin: 0 0 7px;
}
/* 「無料登録フォーム」リンク：広告主LPの同箇所を踏襲、色のみコーラル */
.flow-step h3 a {
  color: var(--coral);
  text-decoration: underline;
  text-decoration-color: rgba(240, 97, 63, .5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .2em;
}
.flow-step p {
  font-size: var(--type-card-body);
  line-height: var(--leading-body);
}
.flow-cta {
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ===== ADVERTISER ===== */
.advertiser { background: #f5fbf2; }
.adv-wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
}
.adv-text h2 {
  font-size: var(--type-block-title);
  font-weight: var(--weight-block);
  line-height: var(--leading-block);
  margin-bottom: 24px;
}
.adv-text > p {
  font-size: var(--type-body);
  font-weight: var(--weight-lead);
  line-height: var(--leading-lead);
  margin-bottom: 32px;
}
.adv-benefits {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adv-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: var(--type-body);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.65;
}
.adv-benefits li::before {
  content: "";
  flex: none;
  width: 23px;
  height: 23px;
  margin-top: 2px;
  border-radius: 50%;
  background-color: var(--cta-adv);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6 12.5l3.8 3.8L18 7" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"/></svg>');
  background-size: 14px 14px;
  background-position: center;
  background-repeat: no-repeat;
}
.adv-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 760px;
  margin: 72px auto 0;
  border-top: 1px solid var(--line-strong);
}
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  gap: 16px;
  align-items: center;
  text-align: left;
  padding: 26px 4px;
}
.faq-q-mark {
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}
.faq-q-text {
  font-size: var(--type-body);
  font-weight: var(--weight-card-title);
  color: var(--ink);
  line-height: 1.65;
}
.faq-q-icon {
  display: grid;
  place-items: center;
  color: var(--faint);
  transition: transform .24s ease;
}
.faq-item.open .faq-q-icon { transform: rotate(180deg); color: var(--ink); }
.faq-a { display: none; padding: 0 28px 30px 4px; }
.faq-item.open .faq-a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  align-items: start;
}
.faq-a::before {
  content: "A";
  font-family: var(--font-latin);
  font-size: 20px;
  font-weight: 800;
  color: var(--cta-adv);
  line-height: 1.3;
  padding-top: 2px;
}
.faq-a p {
  font-size: var(--type-card-body);
  line-height: var(--leading-body);
}

/* ===== FINAL CTA ===== */
.final {
  position: relative;
  z-index: 0;
  background: var(--bg-soft);
  text-align: center;
  padding-top: 76px;
}
.final .section-lead { margin: 0 auto; max-width: 560px; }
.final .cta-pair { margin-top: 0; }
.final-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}
.final-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 46px 40px 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.final-card.media { border-color: var(--cta-media); }
.final-card.adv { border-color: var(--cta-adv); }
.final-card h3 { font-size: 22px; font-weight: 800; color: var(--ink); }
.fc-rule { display: block; width: 40px; height: 3px; margin: 14px auto 18px; border-radius: 2px; }
.final-card.media .fc-rule { background: var(--cta-media); }
.final-card.adv .fc-rule { background: var(--cta-adv); }
.final-card p { font-size: 14px; line-height: 1.85; color: var(--text); margin-bottom: 28px; }
.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px 16px 30px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
  margin-top: auto;
  align-self: center;
}
.fc-btn:hover { transform: translateY(-2px); }
.final-card.media .fc-btn { background: var(--cta-media); box-shadow: 0 12px 26px rgba(22,36,46,.16); }
.final-card.adv .fc-btn { background: var(--cta-adv); box-shadow: 0 12px 26px rgba(22,36,46,.16); }
.fc-arrow { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; flex: none; }
.fc-arrow svg { width: 13px; height: 13px; }
.final-card.media .fc-arrow svg { color: var(--cta-media); }
.final-card.adv .fc-arrow svg { color: var(--cta-adv); }
@media (max-width: 760px) {
  .final-cards { grid-template-columns: 1fr; gap: 20px; }
}
/* ===== FOOTER — 5カラム目次型 ===== */
footer {
  background: var(--ink);
  padding: 72px 0 40px;
  color: rgba(255,255,255,.6);
}
.footer-inner {
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col h4 {
  color: var(--white);
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 12.5px;
  font-weight: 500;
  transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== ページトップへ ===== */
.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  box-shadow: 0 8px 24px rgba(22,36,46,.25);
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== 実画像スタイル ===== */
.about-illust {
  width: 76%;
  height: 200px;
  margin: 0 auto 36px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.about-illust img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* 3枚とも正方形に統一されたので同一扱い */
.about-item:nth-child(1) .about-illust,
.about-item:nth-child(2) .about-illust,
.about-item:nth-child(3) .about-illust {
  width: 88%;
  height: 224px;
}

.adv-img-real {
  width: 88%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== RESPONSIVE ===== */
/* ヘッダー横並びは「ログインフォーム2つが余裕で収まる幅」だけに限定。
   これ未満は1カラムに積む（中間幅でボタン文字が改行する問題を回避） */
@media (max-width: 1240px) {
  .header-main {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 720px;
  }
  .header-brand { order: -1; }
  .header-login { text-align: center; }
  .header-login-head,
  .header-login-links,
  .header-login-form {
    justify-content: center;
  }
}
@media (max-width: 880px) {
  .hero-center { padding: 8px 4px 0; }
  /* 縦並び時は幅固定(400px)のボタンが左寄せになるため中央寄せにする */
  .hero-cta .cta-pair { flex-direction: column; align-items: center; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-item { padding: 0; }
  .about-item + .about-item { padding-top: 56px; }
  .adv-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  /* 1カラム化時：イラストは高さ固定をやめ画像なり＋幅は上限付きで中央寄せ。
     01/03(正方形)が小さく浮かないよう拡大し、02(横長)と高さを揃える。スマホは≤640で別途上書き */
  .about-illust,
  .about-item:nth-child(1) .about-illust,
  .about-item:nth-child(2) .about-illust,
  .about-item:nth-child(3) .about-illust {
    height: auto;
    width: 56%;
    max-width: 300px;
    margin: 0 auto 28px;
  }
  .about-illust img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    transform: none;
  }
}
@media (max-width: 640px) {
  .cta-block { width: 100%; }
  /* 固定CTAバー：スマホで2ボタンが横溢れしないよう均等分割＋余白を圧縮 */
  .cta-bar { gap: 8px; padding: 10px 12px; }
  .cta-bar .cta-compact { flex: 1 1 0; min-width: 0; padding: 12px 6px; font-size: 12.5px; }
  .header {
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(223,231,237,.72);
  }
  .header-main {
    width: min(100% - 32px, var(--max));
    height: 70px;
    min-height: 70px;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .header-nav { display: none; }
  .header-brand {
    order: -1;
    flex: 0 0 auto;
    margin-right: auto;
    text-align: left;
    padding-top: 0;
  }
  .logo { gap: 0; }
  .logo img { height: 30px; width: auto; }
  .header-login {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
    text-align: left;
  }
  .header-login .header-login-form,
  .header-login .header-login-head { display: none; }
  .aff-login-link,
  .adv-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    color: var(--ink);
    font-size: 11px;
    font-weight: var(--weight-label);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }
  /* スマホの縦余白：PCの大きな余白を引きずらず、セクション間の間延びを抑える */
  :root { --sec-y: 92px; }
  .inner,
  .footer-inner { width: min(100% - 32px, var(--max)); }
  .section { padding: var(--sec-y) 0; }
  .about { padding-top: 56px; }
  .kicker { margin-bottom: 12px; }
  .title-rule { margin-top: 20px; }
  .section-head .section-lead { margin-top: 24px; }
  .about-grid { margin-top: 48px; gap: 34px; }
  .about-item + .about-item { padding-top: 34px; }
  .about-item .num { margin-bottom: 16px; }
  .about-item h3 { margin-bottom: 10px; }
  .flow-wrap { margin-top: 48px; }
  .flow-step { gap: 20px; padding-bottom: 34px; }
  .flow-rail::before { bottom: -34px; }
  .flow-cta { margin-top: 48px; gap: 12px; }
  .faq-list { margin-top: 44px; }
  .faq-q { padding: 24px 4px; }
  .faq-a { padding: 0 24px 26px 4px; }
  .final { padding-top: 88px; }
  .final-card { padding: 34px 24px 32px; }
  .final-card p { margin-bottom: 22px; }
  footer { padding: 52px 0 32px; }
  .footer-cols { gap: 28px 18px; margin-top: 36px; padding-bottom: 36px; }
  .footer-bottom { padding-top: 24px; }
  /* スマホ：3枚とも正方形・同一扱い。高さは画像なり＋横62%中央 */
  .about-illust,
  .about-item:nth-child(1) .about-illust,
  .about-item:nth-child(2) .about-illust,
  .about-item:nth-child(3) .about-illust {
    height: auto;
    width: 62%;
    margin-left: auto;
    margin-right: auto;
  }
  .about-illust img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    transform: none;
  }
}
/* 極小幅(〜360px)の保険：ロゴ＋2ログインリンクの横溢れを防ぐ */
@media (max-width: 360px) {
  .header-main { gap: 8px; }
  .logo img { height: 28px; }
  .aff-login-link,
  .adv-login-link { font-size: 10px; }
}
