@charset "UTF-8";
/* ==========================================================================
   あぶくま信用金庫 教育プラン（教育ローン）LP
   ベースは carlife/hp.html と同一設計。配色（グリーン＋オレンジ）も共通とし、
   カーライフとの違いは写真・コピー・セクション構成で出している。
   ========================================================================== */

:root {
  /* brand */
  --green:        #00924a;
  --green-dark:   #00753b;
  --green-deep:   #005c2e;
  --green-soft:   #eaf6ef;
  --green-tint:   #f3faf6;
  --orange:       #f3981e;
  --orange-dark:  #e0850c;
  --orange-soft:  #fff4e6;

  /* neutrals */
  --text:         #1d2b24;
  --muted:        #65726b;
  --muted-2:      #8a958f;
  --bg:           #f5f8f6;
  --white:        #ffffff;
  --line:         #d9e5dc;
  --line-soft:    #eef3ef;
  --line-strong:  #bfd3c4;

  /* geometry */
  --r-sm: 14px;
  --r:    18px;
  --r-md: 22px;
  --r-lg: 28px;
  --r-xl: 32px;
  --pill: 999px;

  --sh-sm: 0 4px 14px rgba(0, 80, 40, .06);
  --sh:    0 14px 36px rgba(0, 80, 40, .08);
  --sh-lg: 0 24px 50px rgba(0, 90, 45, .14);

  --nav-h: 74px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1120px;

  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  /* 写真スロット（none にすると仮置きのアイコン表示に戻ります） */
  --hero-img: url("../img/edu-hero.jpg");
  --refi-img: url("../img/edu-refinance.jpg");
  --flow-img: url("../img/edu-flow.jpg");
  --uses-img: url("../img/edu-uses.jpg");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, form, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; border: 0; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

body {
  min-width: 320px;
  font-family: var(--font);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text);
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(0, 146, 74, .16); }

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.wrap { width: min(var(--container), calc(100% - 36px)); margin-inline: auto; }
.wrap--narrow { width: min(880px, calc(100% - 36px)); }

.n { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* ---------- reveal ---------- */
.r { opacity: 0; transform: translateY(20px); }
html.has-js .r {
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}
.r.in { opacity: 1; transform: none; }
html:not(.has-js) .r { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 56px;
  font-size: 1.6rem; font-weight: 700; line-height: 1.4;
  padding: .9em 1.9em;
  border-radius: var(--pill);
  border: 1px solid transparent;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* 主要CV：オレンジ＋濃色文字（白文字だとコントラスト不足のため）。他LPと共通のCV配色。 */
.btn--cv {
  color: var(--text);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 10px 24px rgba(243, 152, 30, .3);
}
.btn--cv:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(243, 152, 30, .42); }

.btn--green {
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 10px 24px rgba(0, 117, 59, .22);
}
.btn--green:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 117, 59, .3); }

.btn--white { color: var(--green-dark); background: var(--white); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.btn--white:hover { transform: translateY(-2px); }

.btn--sm { min-height: 44px; font-size: 1.4rem; padding: .6em 1.3em; }
/* ==========================================================================
   header
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 229, 220, .8);
  transition: box-shadow .2s ease;
}
.nav.stuck { box-shadow: 0 8px 20px rgba(0, 40, 20, .06); }

.nav-inner {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
  min-height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.nav-brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-brand img { height: 36px; width: auto; max-width: 210px; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-links a {
  font-size: 1.35rem; color: var(--muted);
  padding: .55em .8em; border-radius: var(--pill);
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--green-tint); color: var(--green-dark); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.6rem; font-weight: 700; color: var(--green-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav-actions .btn { white-space: nowrap; }
.nav-tel svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }
.nav-tel small { display: block; font-size: 1rem; font-weight: 500; color: var(--muted); line-height: 1.3; }

.nav-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--green), var(--orange));
}

.nav-burger {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  position: relative; background: var(--white);
}
.nav-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px; background: var(--green-dark); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav-burger span:nth-child(1) { transform: translate(-50%, -5px); }
.nav-burger span:nth-child(2) { transform: translate(-50%, 3px); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-drawer {
  position: absolute; inset: 100% 0 auto 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  padding: 6px 18px 18px;
  display: grid;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .35s var(--ease);
  pointer-events: none;
}
.nav-drawer.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.nav-drawer a {
  font-size: 1.6rem; padding: .9em .4em;
  border-bottom: 1px solid var(--line-soft); color: var(--text);
}
.nav-drawer a:last-child { border-bottom: 0; }
.nav-drawer-tel { color: var(--green-dark) !important; font-weight: 700; font-size: 2rem !important; }

/* ナビ項目が詰まる前にハンバーガーへ切り替える */
@media (max-width: 1150px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  :root { --nav-h: 62px; }
  .nav-inner { gap: 12px; }
  .nav-brand img { height: 32px; max-width: 176px; }
  .nav-tel small { display: none; }
  .nav-tel span { display: none; }
  .nav-tel svg { width: 21px; height: 21px; }
  /* スマホではアイコンのみになるため、見た目を変えずにタップ領域だけ44pxを確保する */
  .nav-tel { min-width: 44px; min-height: 44px; justify-content: center; }
  /* ロゴ+電話+ボタン+ハンバーガーだと 375px 幅で収まらないため、
     ヘッダーのCVボタンは非表示。下部固定バーとヒーローで導線は確保。 */
  .nav-actions .btn { display: none; }
  [id] { scroll-margin-top: 76px; }
}
@media (max-width: 360px) {
  .nav-brand img { height: 28px; max-width: 152px; }
  .hero-title { font-size: 2.4rem; }
}

/* ==========================================================================
   hero
   ========================================================================== */
.hero { padding: 38px 0 60px; position: relative; overflow: hidden; }
/* 背景装飾：不透明度を10%以下に抑え、内容の可読性を損なわない */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
}
.hero::before {
  width: 620px; height: 620px; right: -230px; top: -290px;
  background: radial-gradient(circle, rgba(0, 146, 74, .10), transparent 68%);
}
.hero::after {
  width: 460px; height: 460px; left: -200px; bottom: -240px;
  background: radial-gradient(circle, rgba(243, 152, 30, .10), transparent 68%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 44px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.35rem; font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid #cfe6d7;
  padding: .5em 1.2em;
  border-radius: var(--pill);
  margin-bottom: 22px;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.8rem, 3.6vw, 4.4rem);
  font-weight: 900; line-height: 1.34; letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--green); }

.hero-lead {
  font-size: clamp(1.5rem, 1.5vw, 1.7rem);
  color: var(--muted); max-width: 30em; margin-bottom: 28px;
}

/* rate strip */
.hero-rate {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 20px 26px;
  margin-bottom: 26px;
}
.hero-rate-label { font-size: 1.3rem; font-weight: 700; color: var(--muted); line-height: 1.5; white-space: nowrap; }
.hero-rate-label b { display: block; color: var(--green-dark); font-size: 1.5rem; }
.hero-rate-value {
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 900; color: var(--green); line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-rate-value .pre { font-size: 1.8rem; }
.hero-rate-value .num { font-size: clamp(3.4rem, 4.2vw, 5.2rem); letter-spacing: -.02em; }
.hero-rate-value .unit { font-size: 2.4rem; }
.hero-rate-note { font-size: 1.2rem; color: var(--muted); white-space: nowrap; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-meta li {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 1.35rem; font-weight: 500; color: var(--muted);
}
.hero-meta svg { width: 17px; height: 17px; color: var(--green); flex-shrink: 0; }

/* hero visual */
.hero-visual { position: relative; }
/* 写真の背後に置くアクセント板（奥行きを出す）。差し色はブルー。 */
.hero-visual::before {
  content: ""; position: absolute;
  inset: 22px -18px -18px 22px;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(0, 146, 74, .16), rgba(243, 152, 30, .14));
  z-index: 0;
}
.hero-photo {
  position: relative; z-index: 1;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  border: 5px solid var(--white);
  background-color: var(--green-soft);
  background-image: var(--hero-img), linear-gradient(150deg, #d8efe1 0%, #eaf6ef 45%, #fff4e6 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 60, 30, .12));
}
.hero-float {
  position: absolute; z-index: 2; right: -14px; bottom: -18px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  border: 1px solid var(--line);
  padding: 16px 22px;
  display: grid; gap: 2px;
  min-width: 190px;
}
.hero-float span { font-size: 1.2rem; color: var(--muted); font-weight: 700; }
.hero-float b {
  font-size: 2.6rem; font-weight: 900; color: var(--green-dark);
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.hero-float b i { font-style: normal; font-size: .5em; margin-left: 2px; color: var(--muted); }

@media (max-width: 1023px) {
  .hero { padding: 26px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 600px) {
  .hero-rate { padding: 16px 18px; gap: 14px; }
  .btn { width: 100%; }
  .hero-cta { gap: 10px; }
  .hero-float { right: 8px; bottom: -14px; padding: 12px 18px; min-width: 0; }
  .hero-float b { font-size: 2.1rem; }
}

/* ==========================================================================
   assurance strip
   ========================================================================== */
.assure { background: var(--white); border-block: 1px solid var(--line); }
.assure-list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(var(--container), calc(100% - 36px)); margin-inline: auto;
}
.assure-list li {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 20px 12px;
  font-size: 1.45rem; font-weight: 700;
  border-right: 1px solid var(--line-soft);
  text-align: center;
}
.assure-list li:last-child { border-right: 0; }
.assure-list svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }

/* 4列のままだと文言によっては2行に折れるため早めに2列へ */
@media (max-width: 900px) {
  .assure-list { grid-template-columns: repeat(2, 1fr); }
  .assure-list li { font-size: 1.25rem; padding: 14px 8px; gap: 8px; border-bottom: 1px solid var(--line-soft); }
  .assure-list li:nth-child(2n) { border-right: 0; }
  .assure-list li:nth-last-child(-n+2) { border-bottom: 0; }
  .assure-list svg { width: 18px; height: 18px; }
}

/* ==========================================================================
   section shell
   ========================================================================== */
.sec { padding: 88px 0; }
.sec--white { background: var(--white); border-block: 1px solid var(--line-soft); }

.sec--tint {
  background: var(--green-tint);
  border-block: 1px solid var(--line-soft);
  position: relative; overflow: hidden;
}
/* 極薄のドット。上端付近だけに出して下へフェードさせる */
.sec--tint::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 146, 74, .10) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(120% 70% at 50% 0%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000, transparent 72%);
}
.sec--tint > .wrap { position: relative; z-index: 1; }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head--left { text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 1.3rem; font-weight: 700; letter-spacing: .08em;
  color: var(--green);
  background: var(--green-soft);
  padding: .35em 1.1em;
  border-radius: var(--pill);
  margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(2.4rem, 3.4vw, 3.6rem);
  font-weight: 900; line-height: 1.38; letter-spacing: .01em;
}
.sec-title em { font-style: normal; color: var(--green); }
.sec-sub {
  font-size: clamp(1.45rem, 1.4vw, 1.6rem);
  color: var(--muted); margin-top: 14px;
  max-width: 46em; margin-inline: auto;
}
.sec-head--left .sec-sub { margin-inline: 0; }

/* --- 日本語を文節単位で改行する（Chromium系で有効・他は無視） ---------
   「お借入れいただ / けます。」のような語中改行を防ぐ。            */
.hero-title, .hero-lead, .sec-title, .sec-sub,
.feat-desc, .uses-banner-cap, .uses li, .uses-total p,
.vs-list dd, .vs-list dd b, .refi-list div, .refi-list b,
.flow-title, .flow-text, .flow-hl, .flow-points div, .flow-points b,
.faq-t, .faq-a-in p, .bullets li, .cta-title, .cta-lead,
.assure-list li, .helper-box, .result-item span,
.oneyear-title, .oneyear-text, .oneyear-note, .terms dd, .notes li, .feat-note {
  word-break: auto-phrase;
  line-break: strict;
}

/* --- 短い語句・数値の途中改行を防ぐ -----------------------------------
   日本語は既定でほぼ任意の位置で折り返すため、金額・ラベル・見出しの
   小片が意図しない位置で改行されるのを個別に抑止する。         */
.eyebrow,
.feat-label, .feat-big,
.hero-float b,
.sim-rate-value, .sim-rate-label,
.result-amount, .result-item strong,
.vs-chip, .vs-list dt,
.flow-name, .flow-num,
.uses-total p,
.cta-tel, .cta-contact-label {
  white-space: nowrap;
}
/* 数値が入る箇所は、万一あふれても崩さず省略せずに縮める */
.result-amount, .feat-big { overflow-wrap: normal; }

.notes { margin-top: 16px; display: grid; gap: 4px; }
.notes li {
  font-size: 1.2rem; line-height: 1.7; color: var(--muted);
  padding-left: 1em; text-indent: -1em;
}
.bullets { margin-top: 10px; display: grid; gap: 4px; }
.bullets li { font-size: 1.45rem; color: var(--text); padding-left: 1.1em; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: .8em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}

@media (max-width: 767px) {
  .sec { padding: 60px 0; }
  .sec-head { margin-bottom: 34px; }
}

/* ==========================================================================
   features
   ========================================================================== */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 32px 26px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--sh); border-color: var(--line-strong); }
.feat-ic {
  width: 60px; height: 60px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
}
.feat-ic svg { width: 28px; height: 28px; }
.feat-label { font-size: 1.3rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.feat-big {
  font-size: clamp(3rem, 3.6vw, 3.8rem); font-weight: 900; line-height: 1.1;
  color: var(--green-dark); font-variant-numeric: tabular-nums;
  letter-spacing: -.01em; margin-bottom: 12px;
}
.feat-big .u { font-size: .42em; margin-left: .1em; }
.feat-desc { font-size: 1.35rem; color: var(--muted); text-align: left; }
.feat-note { font-size: 1.1rem; color: var(--muted-2); margin-top: 10px; text-align: left; }

@media (max-width: 1023px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; gap: 14px; } .feat-card { padding: 26px 22px; } }

/* ==========================================================================
   simulator
   ========================================================================== */
.sim-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 24px; align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh);
  padding: 34px 34px 30px;
}
.panel-title { font-size: 1.9rem; font-weight: 900; margin-bottom: 6px; }
.panel-sub { font-size: 1.35rem; color: var(--muted); margin-bottom: 26px; }

/* fixed rate callout */
.sim-rate {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  background: var(--green-soft);
  border: 1px solid #cfe6d7;
  border-radius: var(--r-md);
  padding: 14px 20px;
  margin-bottom: 26px;
}
.sim-rate-label { font-size: 1.35rem; font-weight: 700; color: var(--green-dark); }
.sim-rate-label small { display: block; font-size: 1.1rem; font-weight: 500; color: var(--muted); }
.sim-rate-value {
  display: flex; align-items: baseline; gap: 2px;
  font-weight: 900; color: var(--green); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sim-rate-value .pre { font-size: 1.4rem; }
.sim-rate-value .num { font-size: 3.4rem; letter-spacing: -.02em; }
.sim-rate-value .unit { font-size: 1.8rem; }

/* fields */
.sim-fields { display: grid; gap: 26px; }
.sim-field + .sim-field { padding-top: 24px; border-top: 1px solid var(--line-soft); }

.sim-field-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.sim-field-head label { font-size: 1.55rem; font-weight: 700; }
.sim-hint { font-size: 1.15rem; color: var(--muted); font-weight: 500; }

.sim-number-row { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.sim-number-wrap {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--green-soft);
  padding: 9px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.sim-number-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 146, 74, .14);
}
.sim-number-wrap input {
  width: 7ch; border: 0; background: transparent; outline: none;
  text-align: right; font-size: 2rem; font-weight: 700;
  color: var(--green-dark); font-variant-numeric: tabular-nums;
}
.sim-number-wrap .unit { font-size: 1.25rem; font-weight: 700; color: var(--muted); }

.sim-track-row { display: flex; align-items: center; gap: 12px; }
.sim-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--white);
  color: var(--green-dark); font-size: 1.6rem; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s, transform .1s;
}
.sim-btn:hover { border-color: var(--green); background: var(--green-soft); }
.sim-btn:active { transform: scale(.94); }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  flex: 1; height: 6px; border-radius: var(--pill);
  outline: none; cursor: pointer;
  background: linear-gradient(to right,
    var(--green) 0%, var(--green) var(--pct, 0%),
    var(--line) var(--pct, 0%), var(--line) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--green);
  box-shadow: 0 2px 8px rgba(0, 80, 40, .25);
  cursor: pointer; transition: transform .2s var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.1); }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(0, 146, 74, .2); }
input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--green);
  box-shadow: 0 2px 8px rgba(0, 80, 40, .25); cursor: pointer;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--pill); background: transparent; }

.helper-box {
  margin-top: 26px; padding: 16px 18px;
  border-radius: var(--r); background: #fbfcfb;
  border: 1px solid #e5ece7; color: var(--muted); font-size: 1.3rem;
}
.helper-box strong { color: var(--text); }

/* result panel */
.result-panel {
  position: sticky; top: calc(var(--nav-h) + 16px);
  background: linear-gradient(180deg, rgba(0, 146, 74, .04), var(--white) 42%);
  display: flex; flex-direction: column;
}
.result-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--pill);
  background: var(--green-soft); color: var(--green-dark);
  font-size: 1.2rem; font-weight: 700; margin-bottom: 16px;
  align-self: flex-start;
}
.result-summary { font-size: 1.35rem; color: var(--muted); font-weight: 700; }
.result-amount {
  font-size: clamp(3.4rem, 4.6vw, 4.4rem); line-height: 1.15;
  font-weight: 900; color: var(--green-dark);
  letter-spacing: -.01em; word-break: break-word;
  font-variant-numeric: tabular-nums;
  margin: 2px 0 4px;
}
.result-list { display: grid; gap: 11px; margin-top: 22px; }
.result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px;
  border: 1px solid #e6efe8; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .94);
}
.result-item span { color: var(--muted); font-size: 1.35rem; }
.result-item strong {
  text-align: right; font-size: 1.6rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.result-item.is-emphasis { border-color: #cfe6d7; background: var(--green-soft); }
.result-item.is-emphasis strong { color: var(--green-dark); font-size: 1.8rem; }

@media (prefers-reduced-motion: no-preference) {
  .result-amount.is-updated, .result-item strong.is-updated { animation: amountPulse .4s ease; }
  @keyframes amountPulse {
    0% { opacity: .35; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

.result-cta { margin-top: 24px; }
.result-cta .btn { width: 100%; }
.result-cta-note { font-size: 1.15rem; color: var(--muted); text-align: center; margin-top: 10px; }

@media (max-width: 980px) {
  .sim-layout { grid-template-columns: 1fr; }
  .result-panel { position: static; }
}
@media (max-width: 600px) {
  .panel { padding: 24px 20px 22px; }
  .sim-number-wrap input { font-size: 1.8rem; }
}

/* ==========================================================================
   compare（国の教育ローン・奨学金との違い）
   ========================================================================== */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-col {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 14px;
}
.vs-col--us {
  border-color: #cfe6d7;
  box-shadow: var(--sh);
  background: linear-gradient(180deg, var(--green-soft), var(--white) 30%);
}
.vs-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.85rem; font-weight: 900;
  padding-bottom: 18px; border-bottom: 2px solid var(--line-soft); margin-bottom: 4px;
}
.vs-col--us .vs-head { border-bottom-color: #cfe6d7; }
.vs-chip {
  font-size: 1.15rem; font-weight: 700;
  padding: .3em .95em; border-radius: var(--pill);
  color: var(--white); background: var(--green);
}
.vs-chip--mute { background: var(--muted-2); }

.vs-list > div { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.vs-list > div:last-child { border-bottom: 0; }
.vs-list dt {
  font-size: 1.2rem; font-weight: 700; color: var(--green); margin-bottom: 6px;
}
.vs-list--mute dt { color: var(--muted-2); }
.vs-list dd { font-size: 1.3rem; line-height: 1.75; color: var(--muted); }
.vs-list dd b { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.vs-list dd b .hl { color: var(--green-dark); }
.vs-list--mute dd b { color: var(--muted); }

@media (max-width: 767px) {
  .vs { grid-template-columns: 1fr; }
  .vs-col { padding: 22px 20px 10px; }
  .vs-head { font-size: 1.6rem; }
}

/* ==========================================================================
   refinance
   ========================================================================== */
.refi { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: center; }
.refi-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 5px solid var(--white);
  position: relative;
  background-color: var(--green-soft);
  background-image: var(--refi-img), linear-gradient(150deg, #e4f2ea, #fff4e6);
  background-size: cover, cover;
  background-position: center, center;
}
.refi-list { display: grid; gap: 12px; margin-top: 26px; }
.refi-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.refi-list li:hover { transform: translateX(5px); border-color: var(--line-strong); box-shadow: var(--sh-sm); }
.refi-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--white);
  font-size: 1.3rem; font-weight: 700;
}
.refi-list b { display: block; font-size: 1.6rem; font-weight: 700; margin-bottom: 2px; }
.refi-list div { font-size: 1.3rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 1023px) {
  .refi { grid-template-columns: 1fr; gap: 34px; }
  .refi-visual { order: -1; max-width: 560px; width: 100%; margin-inline: auto; }
  .sec-head--left { text-align: center; }
  .sec-head--left .sec-sub { margin-inline: auto; }
}

/* ==========================================================================
   uses
   ========================================================================== */
/* 使いみちバナー（入学金・授業料以外にも使えることを写真で示す） */
.uses-banner {
  position: relative;
  aspect-ratio: 16 / 7;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--sh);
  margin-bottom: 26px;
  background-color: var(--green-soft);
  background-image: var(--uses-img), linear-gradient(150deg, #e4f2ea, #fff4e6);
  background-size: cover, cover;
  /* 写真は16:9。PCの16:7では上下が切れるため下端を基準にし、
     スーツケースと床が欠けないようにする（切れるのは上部の壁と窓の上端）。 */
  background-position: center bottom, center;
}
.uses-banner::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 40, 20, .74) 0%, rgba(0, 40, 20, .46) 40%, rgba(0, 40, 20, .06) 68%, transparent 80%),
    linear-gradient(180deg, transparent 45%, rgba(0, 40, 20, .40) 100%);
}
.uses-banner-cap {
  position: absolute; z-index: 1;
  left: 34px; bottom: 30px; right: 34px;
  max-width: 26em;
  color: var(--white);
}
.uses-banner-cap b {
  display: block;
  font-size: clamp(1.7rem, 2.2vw, 2.4rem); font-weight: 900;
  line-height: 1.45; margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 30, 15, .45);
}
.uses-banner-cap span {
  font-size: 1.35rem; line-height: 1.7;
  text-shadow: 0 2px 10px rgba(0, 30, 15, .5);
}

@media (max-width: 767px) {
  /* スマホ(16:11)では縦がちょうど収まり、代わりに左右が切れる。
     左は無地の壁なので少し多めに落とし、右の机まわりを残す。 */
  .uses-banner { aspect-ratio: 16 / 11; background-position: right center, center; }
  .uses-banner::after {
    background: linear-gradient(180deg, rgba(0, 45, 24, .18) 30%, rgba(0, 45, 24, .68) 100%);
  }
  .uses-banner-cap { left: 20px; right: 20px; bottom: 20px; }
}

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.uses li {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 20px;
  font-size: 1.4rem; font-weight: 700; line-height: 1.5;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.uses li:hover { transform: translateY(-4px); box-shadow: var(--sh-sm); border-color: var(--line-strong); }
.uses-ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
}
.uses-ic svg { width: 23px; height: 23px; }

.uses-total {
  margin-top: 24px; text-align: center;
  background: var(--white);
  border: 2px solid #cfe6d7;
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--sh-sm);
}
.uses-total p { font-size: clamp(1.7rem, 2.2vw, 2.2rem); font-weight: 900; }
.uses-total b {
  font-size: 1.6em; color: var(--green); font-variant-numeric: tabular-nums;
  margin-inline: .08em;
}

/* お使いみちの重要な補足（今後1年間ルール）。
   直前の「まとめて1,000万円まで」を在学期間分と誤解されやすいため、
   注記ではなく独立したブロックとして目に留まる強さで置く。 */
.oneyear {
  display: flex; align-items: flex-start; gap: 18px;
  margin-top: 16px;
  padding: 22px 26px;
  background: var(--orange-soft);
  border: 1px solid #f5dfc0;
  border-left: 5px solid var(--orange);
  border-radius: 0 var(--r) var(--r) 0;
}
.oneyear-ic {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--white); color: #a5610a;
}
.oneyear-ic svg { width: 24px; height: 24px; }
.oneyear-title {
  font-size: clamp(1.6rem, 1.9vw, 1.9rem); font-weight: 900;
  line-height: 1.55; margin-bottom: 6px;
}
.oneyear-title em { font-style: normal; color: #a5610a; }
.oneyear-text { font-size: 1.35rem; line-height: 1.85; color: var(--muted); }
.oneyear-text + .oneyear-text { margin-top: 6px; }
/* 制限の直後に置く補足。制限（オレンジ）と対にして、
   ご利用いただける旨はグリーンで示し、諦めさせないようにする。 */
.oneyear-note {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed #eccfa4;
  font-size: 1.35rem; line-height: 1.8; font-weight: 700;
  color: var(--green-dark);
}
.oneyear-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .32em; color: var(--green); }

@media (max-width: 600px) {
  .oneyear { gap: 13px; padding: 18px 18px; }
  .oneyear-ic { width: 38px; height: 38px; border-radius: 10px; }
  .oneyear-ic svg { width: 21px; height: 21px; }
}

@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uses { grid-template-columns: 1fr; gap: 10px; } .uses li { padding: 16px 18px; } }

/* ==========================================================================
   flow
   ========================================================================== */
/* 流れセクション導入（写真＋要点） */
.flow-intro {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px;
  align-items: center; margin-bottom: 46px;
}
.flow-photo {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh);
  border: 5px solid var(--white);
  background-color: var(--green-soft);
  background-image: var(--flow-img), linear-gradient(150deg, #e4f2ea, #fff4e6);
  background-size: cover, cover;
  background-position: center, center;
}
.flow-points { display: grid; gap: 12px; }
.flow-points li {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
}
.flow-points-ic {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
}
.flow-points-ic svg { width: 21px; height: 21px; }
.flow-points b { display: block; font-size: 1.55rem; font-weight: 700; margin-bottom: 2px; }
.flow-points div { font-size: 1.3rem; color: var(--muted); line-height: 1.7; }

@media (max-width: 900px) {
  .flow-intro { grid-template-columns: 1fr; gap: 26px; margin-bottom: 34px; }
  .flow-photo { max-width: 520px; width: 100%; margin-inline: auto; }
}

.flow { display: grid; gap: 16px; counter-reset: step; }
.flow-step {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 28px 30px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.flow-step:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 61px; bottom: -16px;
  width: 2px; height: 16px; background: var(--line-strong);
}
.flow-num {
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--white);
  font-size: 1.9rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.flow-name {
  display: inline-block; font-size: 1.2rem; font-weight: 700;
  color: var(--green-dark); background: var(--green-soft);
  padding: .2em .9em; border-radius: var(--pill); margin-bottom: 8px;
}
.flow-title { font-size: 1.95rem; font-weight: 900; margin-bottom: 10px; }
.flow-text { font-size: 1.35rem; color: var(--muted); line-height: 1.85; }
.flow-hl {
  font-size: 1.4rem; line-height: 1.8; margin-top: 12px;
  padding: 13px 18px;
  background: var(--orange-soft);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.flow-hl b { font-weight: 700; color: #a5610a; }

@media (max-width: 767px) {
  .flow-step { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .flow-step:not(:last-child)::after { display: none; }
  .flow-num { width: 50px; height: 50px; font-size: 1.6rem; }
  .flow-title { font-size: 1.7rem; }
}

/* ==========================================================================
   faq
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}
.faq-item.open { border-color: #cfe6d7; box-shadow: var(--sh-sm); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 15px; padding: 21px 24px; text-align: left; }
.faq-n {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-soft); color: var(--green-dark);
  font-size: 1.25rem; font-weight: 700;
}
.faq-item.open .faq-n { background: var(--green); color: var(--white); }
.faq-t { flex: 1; font-size: 1.55rem; font-weight: 700; line-height: 1.6; }
.faq-i { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-i::before, .faq-i::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--green); transition: transform .3s var(--ease);
}
.faq-i::before { width: 18px; height: 2px; transform: translate(-50%, -50%); }
.faq-i::after { width: 2px; height: 18px; transform: translate(-50%, -50%); }
.faq-item.open .faq-i::after { transform: translate(-50%, -50%) rotate(90deg) scaleX(0); }

/* 0fr -> 1fr collapse。padding はグリッドアイテムの最小高さに算入されるため
   縦方向 padding は持たせず、内側のスペーサーで下余白を作る。 */
.faq-a { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows .4s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { min-height: 0; overflow: hidden; padding: 0 24px 0 73px; }
.faq-a-in::after { content: ""; display: block; height: 22px; }
.faq-a-in p { font-size: 1.4rem; color: var(--muted); }
.faq-a-lead { font-weight: 700; color: var(--text) !important; margin-top: 14px; }
.faq-a-lead:first-child { margin-top: 0; }

@media (max-width: 600px) {
  .faq-q { padding: 17px 16px; gap: 11px; }
  .faq-t { font-size: 1.4rem; }
  .faq-n { width: 28px; height: 28px; font-size: 1.1rem; }
  .faq-a-in { padding: 0 16px; }
  .faq-a-in::after { height: 18px; }
}

/* ==========================================================================
   ご利用条件（商品概要）
   ========================================================================== */
.terms {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.terms > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  border-bottom: 1px solid var(--line-soft);
}
.terms > div:last-child { border-bottom: 0; }
.terms dt {
  display: flex; align-items: center;
  padding: 17px 22px;
  font-size: 1.35rem; font-weight: 700;
  color: var(--green-dark);
  background: var(--green-tint);
}
.terms dd {
  padding: 17px 22px;
  font-size: 1.4rem; line-height: 1.8;
  word-break: auto-phrase; line-break: strict;
}
.terms-note {
  display: block;
  font-size: 1.2rem; line-height: 1.7; color: var(--muted); margin-top: 3px;
}

@media (max-width: 600px) {
  /* 2列だと定義側が狭くなりすぎるため、上下に積む */
  .terms > div { grid-template-columns: 1fr; }
  .terms dt { padding: 11px 16px; font-size: 1.25rem; }
  .terms dd { padding: 14px 16px 16px; }
}

/* ==========================================================================
   final cta / contact
   ========================================================================== */
.cta { padding: 20px 0 90px; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 60px 40px 52px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, rgba(0, 146, 74, .98), rgba(0, 117, 59, .96));
  box-shadow: var(--sh-lg);
}
.cta-card::before, .cta-card::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta-card::before { width: 300px; height: 300px; right: -100px; top: -90px; background: rgba(255,255,255,.08); }
.cta-card::after { width: 240px; height: 240px; right: 140px; bottom: -110px; background: rgba(243,152,30,.18); filter: blur(4px); }

.cta-card > * { position: relative; z-index: 1; }
.cta-eyebrow {
  display: inline-block; font-size: 1.3rem; font-weight: 700;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: .4em 1.2em; border-radius: var(--pill); margin-bottom: 18px;
}
.cta-title { font-size: clamp(2.4rem, 3.8vw, 3.8rem); font-weight: 900; line-height: 1.34; margin-bottom: 16px; }
.cta-lead { font-size: clamp(1.45rem, 1.5vw, 1.65rem); opacity: .95; max-width: 40em; margin: 0 auto 32px; }
.cta-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; }

.cta-contact { margin-top: 42px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.24); }
.cta-contact-label { font-size: 1.25rem; font-weight: 700; opacity: .9; }
.cta-tel {
  display: inline-block; font-size: clamp(3rem, 4.8vw, 4.2rem); font-weight: 900;
  line-height: 1.25; font-variant-numeric: tabular-nums; margin: 2px 0 4px;
}
.cta-hours { font-size: 1.2rem; opacity: .88; }

@media (max-width: 600px) {
  .cta { padding: 10px 0 80px; }
  .cta-card { padding: 44px 22px 38px; border-radius: var(--r-lg); }
}

/* ==========================================================================
   footer / dock / totop
   ========================================================================== */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 34px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer-brand img { height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 1.3rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--green-dark); }
.footer-copy { width: 100%; text-align: center; font-size: 1.15rem; color: var(--muted); padding-top: 6px; }

.dock {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: none; gap: 9px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0, 40, 20, .08);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.dock.show { transform: none; }
.dock-btn {
  flex: 1; display: grid; place-items: center;
  font-size: 1.35rem; font-weight: 700;
  padding: .95em .4em; border-radius: var(--pill);
  border: 1px solid var(--line-strong); color: var(--green-dark);
  background: var(--white); text-align: center;
}
.dock-btn--cv {
  color: var(--text); border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.totop {
  position: fixed; right: 20px; bottom: 24px; z-index: 41;
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 80, 40, .22);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s, transform .22s, visibility .22s, background .2s;
}
.totop:hover { background: var(--green-dark); }
.totop.show { opacity: 1; visibility: visible; transform: none; }
.totop svg { width: 20px; height: 20px; }

@media (max-width: 767px) {
  .dock { display: flex; }
  .totop { bottom: 86px; right: 14px; width: 44px; height: 44px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-links { justify-content: center; gap: 14px; }
}


/* ==========================================================================
   印刷（A4横。画面のPC表示に近い段組みで紙に出す）
   ========================================================================== */
@media print {
  /* 横向きだと本文幅が約1,000pxとなり、PC表示と同じ段組みのまま印刷できる。
     縦向きに変えた場合もタブレット相当の段組みで崩れずに出力される。 */
  @page { size: A4 landscape; margin: 8mm; }

  /* 背景色・背景画像を紙にも反映する。
     Chrome / Edge はこの指定があれば「背景のグラフィック」が未チェックでも出力される。 */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body { background: var(--white) !important; overflow: visible !important; min-width: 0; }

  /* 画面操作用のUIは紙には出さない */
  .nav, .nav-drawer, .nav-progress, .dock, .totop { display: none !important; }

  /* スクロール連動の表示演出を解除する。
     これが無いと画面外だった要素が opacity:0 のまま印刷され、白紙で出力される。 */
  .r { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* よくある質問は、すべて開いた状態で印刷する */
  .faq-a { grid-template-rows: 1fr !important; }
  .faq-a-in { overflow: visible !important; }
  .faq-i { display: none !important; }

  /* 影は紙では濁るだけなので落とす */
  * { box-shadow: none !important; }

  /* 動きを止める。印刷はスナップショットのため、これが無いと
     開閉やアニメーションの途中経過がそのまま紙に出てしまう。 */
  *, *::before, *::after { transition: none !important; animation: none !important; }

  /* 画面ほど余白は必要ないので詰める */
  .sec { padding: 10mm 0 !important; }
  .hero { padding: 4mm 0 8mm !important; }
  .cta { padding: 6mm 0 8mm !important; }
  .footer { padding: 6mm 0 !important; }

  /* 追従表示は紙では意味がない */
  .result-panel { position: static !important; }

  /* 途中で切れると読めなくなる要素は、ページをまたがせない */
  .feat-card, .uses li, .vs-col, .flow-step, .faq-item, .panel,
  .refi-list li, .flow-points li, .terms > div,
  .hero-visual, .uses-banner, .cta-card, .assure {
    break-inside: avoid; page-break-inside: avoid;
  }
  /* 見出しだけがページ末尾に取り残されないようにする */
  h1, h2, h3, .sec-head { break-after: avoid; page-break-after: avoid; }

  /* 分量の多いセクションはページの先頭から始める */
  #sim, #flow, #faq, #terms { break-before: page; page-break-before: always; }

  a { text-decoration: none !important; }
}

/* 教育プラン固有：1年ルールの注意ブロックを分割させない */
@media print {
  .oneyear { break-inside: avoid; page-break-inside: avoid; }
}
