/* ============================================================
   無料相談のLP
   配色の切り替え: <html data-accent="green"> または <html data-accent="yellow">
   （指定なしは朱色）
   ============================================================ */

:root {
  --surface: #ffffff;
  --paper: #f7f5ef;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #5b6472;
  --line: #e4dfd3;
  --navy: #14233b;

  --accent: #c8441b;
  --accent-hover: #a83614;
  --accent-ink: #ffffff;
  --accent-text: #b93d17;
  --accent-tint: #fbeee7;
  --marker: #ffd5c2;

  --radius-sm: 4px;
  --radius: 8px;
  --shadow-card: 0 1px 2px rgb(17 24 39 / 0.04), 0 8px 24px rgb(17 24 39 / 0.06);
  --shadow-btn: 0 6px 16px rgb(17 24 39 / 0.18);

  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-num: "Poppins", "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  --container: 1080px;
  --gutter: 16px;
  --header-h: 56px;
}

html[data-accent="green"] {
  --accent: #1f6f54;
  --accent-hover: #175641;
  --accent-ink: #ffffff;
  --accent-text: #1f6f54;
  --accent-tint: #e7f2ec;
  --marker: #c5e6d6;
}

html[data-accent="yellow"] {
  --accent: #ffe100;
  --accent-hover: #f0d200;
  --accent-ink: #14233b;
  --accent-text: #14233b;
  --accent-tint: #fff9cf;
  --marker: #ffe100;
}

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
  line-break: strict;
}

img { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

a { color: var(--accent-text); text-underline-offset: 3px; }

a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.num { font-family: var(--font-num); font-weight: 600; font-feature-settings: "tnum"; }

.nb { display: inline-block; }

/* 短い文は文節の切れ目で折り返し、行末に1文字だけ残さない（対応していないブラウザでは通常の折り返し） */
.hero-lead, .checks li, .section-note, .notes li, .apply-note, .profile-more {
  word-break: auto-phrase;
  text-wrap: pretty;
}

.profile-text p, .talk-body p, .book p, .steps p { text-wrap: pretty; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow { max-width: calc(760px + var(--gutter) * 2); }

.skip-link {
  position: absolute;
  left: 8px;
  top: -64px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  border-radius: var(--radius-sm);
}

.skip-link:focus { top: 8px; }

/* ---------------- ボタン ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 32px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-btn);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { background: var(--accent-hover); }

.btn:active { transform: translateY(1px); box-shadow: 0 2px 6px rgb(17 24 39 / 0.2); }

.btn:focus-visible { border-radius: var(--radius); }

.btn-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-block { display: flex; width: 100%; }

.btn-sm {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 14px;
  box-shadow: none;
}

.cta-row { margin-top: 32px; text-align: center; }

.cta-row .btn { width: 100%; max-width: 420px; }

/* ---------------- ヘッダー ---------------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.site-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.site-name-tag {
  padding: 2px 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
}

html.js .header-cta { display: none; }

/* ---------------- ファーストビュー ---------------- */
.hero {
  background: var(--paper);
  padding: 20px 0 40px;
}

.hero-grid { display: grid; gap: 32px; }

.hero-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgb(17 24 39 / 0.12);
}

.hero-person-text { display: flex; flex-direction: column; line-height: 1.4; }

.hero-person-label { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

.hero-person-name { font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }

.hero-title {
  font-size: clamp(21px, 5.8vw, 28px);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero-title mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--marker) 58%);
  padding-inline: 2px;
}

.hero-title-sub {
  font-size: 0.62em;
  font-weight: 700;
  color: var(--accent-text);
  vertical-align: 0.12em;
}

.hero-lead { margin-top: 12px; font-size: 15px; line-height: 1.8; }

.hero-lead + .hero-lead { margin-top: 4px; }

.terms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 20px 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.terms-item {
  padding: 8px 4px;
  text-align: center;
  line-height: 1.4;
  border-left: 1px solid var(--line);
}

.terms-item:first-child { border-left: 0; }

.terms dt { font-size: 12px; color: var(--muted); }

.terms dd { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }

.terms-free dd { color: var(--accent-text); }

.terms-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  border-left: 0;
  border-top: 1px solid var(--line);
}

.hero-photo { display: none; }

/* ---------------- セクション共通 ---------------- */
.section { padding: 56px 0; }

.section-paper { background: var(--paper); }

.section-title {
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-align: center;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 12px auto 0;
  background: var(--accent);
  border-radius: 2px;
}

.sub-title {
  margin-bottom: 16px;
  padding-left: 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  border-left: 4px solid var(--accent);
}

/* ---------------- こんな方の相談に乗ります ---------------- */
.checks {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 8px 16px;
}

.checks li {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.checks li:first-child { border-top: 0; }

.checks svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  padding: 4px;
  background: var(--accent);
  border-radius: 50%;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section-note { margin-top: 24px; }

/* ---------------- 相談に乗る人 ---------------- */
.profile-grid { display: grid; gap: 40px; margin-bottom: 48px; }

.profile-photo {
  float: right;
  width: 116px;
  margin: 6px 0 8px 16px;
}

.profile-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgb(17 24 39 / 0.12);
}

.profile-text::after { content: ""; display: block; clear: both; }

.profile-text p + p { margin-top: 16px; }

.stats {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 4px 20px;
}

.stat { padding: 14px 0; border-top: 1px solid var(--line); }

.stat:first-child { border-top: 0; }

.stat dt { font-size: 14px; line-height: 1.5; color: var(--muted); }

.stat dd { margin-top: 2px; line-height: 1.3; color: var(--ink); white-space: nowrap; }

.stat .num { font-size: 28px; letter-spacing: 0.01em; }

.stat small { font-size: 14px; font-weight: 700; margin-inline: 2px; }

.talks { display: grid; gap: 12px; margin-bottom: 48px; }

.talk {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.talk img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.talk-body { font-size: 14px; line-height: 1.75; }

.ext-link {
  display: inline-block;
  margin-block: -4px -12px;
  padding-block: 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.ext-link svg {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credentials { display: grid; gap: 48px; }

.books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.book-cover {
  display: block;
  width: 112px;
  box-shadow: 0 4px 14px rgb(17 24 39 / 0.16);
  border-radius: 2px;
  overflow: hidden;
}

.book p { margin-top: 12px; font-size: 13px; line-height: 1.6; }

.certs { display: flex; flex-wrap: wrap; gap: 8px; }

.certs li {
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.profile-more { margin-top: 40px; }

.cta-band {
  display: grid;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

.cta-band-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cta-band-terms li {
  padding: 4px 12px;
  background: var(--accent-tint);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------------- 相談の進め方 ---------------- */
.how-grid { display: grid; gap: 24px; }

.spec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.spec > div:first-child { border-top: 0; }

.spec dt {
  padding: 12px 16px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
}

.spec dd { padding: 12px 16px; font-weight: 700; color: var(--ink); line-height: 1.6; }

.notes { display: grid; gap: 12px; font-size: 14px; line-height: 1.8; }

.notes li { position: relative; padding-left: 16px; }

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--muted);
  border-radius: 50%;
}

/* ---------------- 申し込み方法 ---------------- */
.steps { display: grid; gap: 12px; }

.steps li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  font-weight: 700;
  line-height: 1.7;
  color: var(--ink);
}

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  border-radius: 50%;
}

.apply-note { margin-top: 24px; text-align: center; }

.btn-lg { min-height: 68px; font-size: 20px; }

/* ---------------- フッター ---------------- */
.site-footer {
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: #cbd2dd;
  font-size: 12px;
  text-align: center;
}

/* ---------------- 画面下の申し込みボタン（スマホ） ---------------- */
.sticky-cta { display: none; }

html.js .sticky-cta {
  display: block;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0s linear 0.3s;
}

html.js.show-sticky .sticky-cta {
  transform: none;
  visibility: visible;
  transition: transform 0.3s ease, visibility 0s;
}

.sticky-cta .btn { min-height: 52px; font-size: 16px; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .sticky-cta { transition: none !important; }
}

/* ---------------- 360px未満 ---------------- */
@media (max-width: 359px) {
  .terms-item { padding-inline: 0; }

  .terms dd { font-size: 13px; }

  .btn { padding-inline: 16px; font-size: 16px; }
}

/* ---------------- 640px以上 ---------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }

  .hero-lead { font-size: 16px; }

  .hero .btn-block { display: inline-flex; width: auto; min-width: 320px; }

  .terms-item { padding: 10px 4px; }

  .checks { padding: 8px 24px; }

  .talks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

  .talk { display: block; padding: 0; overflow: hidden; }

  .talk img { border-radius: 0; }

  .talk-body { padding: 16px; }

  .book-cover { width: 128px; }

  .profile-photo { width: 168px; margin-left: 24px; }

  .certs li { padding: 6px 12px; font-size: 14px; }

  .cta-band { padding: 24px; }

  .cta-band .btn { justify-self: center; min-width: 320px; }

  .steps li { padding: 20px 24px; }
}

/* ---------------- 900px以上 ---------------- */
@media (min-width: 900px) {
  :root { --header-h: 64px; }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(247 245 239 / 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  html.js .header-cta {
    display: inline-flex;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
  }

  html.js.is-past-hero .header-cta {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0s;
  }

  html.js .sticky-cta { display: none; }

  .hero { padding: 48px 0 64px; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: center;
  }

  .hero-person { display: none; }

  .hero-title { font-size: clamp(30px, 3.4vw, 38px); line-height: 1.4; }

  .hero-lead { margin-top: 20px; font-size: 17px; line-height: 1.9; }

  .hero-lead + .hero-lead { margin-top: 8px; }

  .terms { margin: 28px 0; }

  .terms dd { font-size: 17px; }

  .hero .btn-block { min-width: 360px; min-height: 64px; font-size: 20px; }

  .hero-photo {
    display: block;
    position: relative;
  }

  .hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgb(17 24 39 / 0.14);
  }

  .hero-photo figcaption {
    position: absolute;
    left: -16px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    padding: 10px 20px;
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    line-height: 1.4;
  }

  .hero-photo .hero-person-name { font-size: 18px; }

  .section { padding: 96px 0; }

  .section-title { margin-bottom: 48px; font-size: 32px; }

  .checks { padding: 8px 32px; }

  .checks li { padding: 20px 0; font-size: 18px; }

  .checks svg { margin-top: 4px; }

  .section-note { margin-top: 32px; text-align: center; }

  .cta-row { margin-top: 40px; }

  .profile-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 64px;
    align-items: start;
    margin-bottom: 72px;
  }

  .profile-photo { display: none; }

  .profile-text { font-size: 17px; }

  .profile-text p + p { margin-top: 20px; }

  .stats { padding: 8px 28px; }

  .stat { padding: 18px 0; }

  .stat .num { font-size: 32px; }

  .talks { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 72px; }

  .credentials { grid-template-columns: 440px minmax(0, 1fr); gap: 64px; }

  .books { gap: 24px; }

  .profile-more { margin-top: 56px; text-align: center; }

  .cta-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    margin-top: 56px;
    padding: 28px 40px;
  }

  .cta-band-terms { justify-content: flex-start; }

  .cta-band-terms li { font-size: 16px; padding: 6px 16px; }

  .how-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .spec > div { grid-template-columns: 120px minmax(0, 1fr); }

  .spec dt, .spec dd { padding: 16px 24px; }

  .notes { font-size: 15px; gap: 16px; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

  .steps li {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    position: relative;
  }

  .steps li + li::before {
    content: "";
    position: absolute;
    left: -17px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 3px solid var(--line);
    border-right: 3px solid var(--line);
    border-color: #c9c2b2;
    transform: translateY(-50%) rotate(45deg);
  }

  .apply-note { margin-top: 40px; font-size: 17px; }

  .cta-row .btn-lg { max-width: 480px; }
}

/* ---------------- 1080px以上 ---------------- */
@media (min-width: 1080px) {
  .sent { display: inline-block; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }

  .terms { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.9fr); }

  .terms-wide {
    grid-column: auto;
    display: block;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
