/* 受講サイトの無料会員登録の入口ページ（いまは /ideco-reform/）の見た目。2026-10-29 追加。
   土台（header.site・footer.site・色と字のトークン）は legal-page.css。
   広告から来るのはほぼスマホなので、スマホの見え方を先に決め、PC は幅を広げるだけにしている。
   書体は DESIGN.md のとおり、見出しは Zen Kaku Gothic New、本文は Noto Sans JP。
   フォームの部品（parts/learn-free/form.php）の見た目もここ（.lf-form 以下）。 */

.lf-page {
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  --font-head: "Zen Kaku Gothic New", var(--font-body);
  --danger: #D45A5A;
  font-family: var(--font-body);
}
.lf-page main.lf-main { padding: 0; flex: 1; }
.lf-page main.lf-main [hidden] { display: none !important; }

.lf-inner { max-width: 820px; margin: 0 auto; }
.lf-inner--narrow { max-width: 640px; }

/* ---------- ファーストビュー ---------- */
.lf-hero {
  background: linear-gradient(135deg, #D4EFF7 0%, #EAF3F5 38%, #FBE9F0 100%);
  padding: 56px 48px 64px;
}
.lf-eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-head); font-size: 14px; font-weight: var(--fw-bold);
  letter-spacing: 0.06em; color: var(--brand-primary-ink); line-height: 1.7;
}
.lf-eyebrow span {
  display: inline-block; margin-left: 10px; padding: 2px 12px;
  border-radius: var(--radius-pill); background: var(--surface); color: var(--brand-primary-ink);
  font-size: 12px; letter-spacing: 0.04em; vertical-align: 1px;
}
.lf-title {
  margin: 0 0 20px;
  font-family: var(--font-head); font-weight: var(--fw-black);
  font-size: 44px; line-height: 1.35; letter-spacing: 0.02em; color: var(--ink);
  word-break: auto-phrase;
}
.lf-br-sp { display: none; }
.lf-lead { margin: 0 0 24px; max-width: 640px; font-size: 16px; line-height: 2; color: var(--ink-soft); letter-spacing: 0.02em; }
.lf-chips { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chips li {
  margin: 0; padding: 4px 14px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-soft);
  font-size: 13px; font-weight: var(--fw-bold); color: var(--ink); line-height: 1.8;
}
.lf-cta__btn,
.lf-sticky {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 40px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary-ink); color: #fff;
  font-family: var(--font-head); font-size: 18px; font-weight: var(--fw-bold); letter-spacing: 0.06em;
  text-decoration: none; box-shadow: var(--shadow-2);
  transition: background 0.15s ease;
}
.lf-cta__btn::after { content: ""; width: 8px; height: 8px; margin-left: 12px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) translate(-2px, -2px); }
.lf-cta__btn:hover, .lf-sticky:hover { background: #237A81; color: #fff; }
.lf-cta__btn:focus-visible, .lf-sticky:focus-visible { outline: 3px solid rgba(78, 185, 195, 0.5); outline-offset: 3px; }
.lf-cta__note { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

/* ---------- 段の共通 ---------- */
.lf-sec { padding: 72px 48px; background: var(--surface); }
.lf-sec--wash { background: var(--surface-wash); }
.lf-label, .lf-sec .lf-label { margin: 0 0 6px; font-family: var(--font-head); font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.2em; color: var(--brand-primary-ink); }
.lf-h2 {
  margin: 0 0 28px;
  font-family: var(--font-head); font-weight: var(--fw-black);
  font-size: 28px; line-height: 1.45; letter-spacing: 0.02em; color: var(--ink);
  word-break: auto-phrase;
}
.lf-sec p { font-size: 15px; line-height: 1.95; color: var(--ink); }
.lf-sec__lead { margin: -12px 0 24px; color: var(--ink-soft) !important; }
.lf-note { margin: 20px 0 0; font-size: 13px !important; line-height: 1.9 !important; color: var(--ink-soft) !important; }
.lf-sec a { color: var(--brand-primary-ink); text-decoration: underline; text-underline-offset: 3px; }

/* 変わること3つ */
.lf-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lf-points li {
  margin: 0; padding: 24px 22px;
  background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-md); box-shadow: var(--shadow-1);
}
.lf-points__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-bottom: 10px;
  border-radius: 50%; background: var(--brand-primary-soft); color: var(--brand-primary-ink);
  font-family: var(--font-head); font-size: 16px; font-weight: var(--fw-black); line-height: 1;
}
.lf-points h3 { margin: 0 0 8px; font-family: var(--font-head); font-size: 18px; font-weight: var(--fw-bold); line-height: 1.5; color: var(--ink); }
.lf-points p { margin: 0; font-size: 14.5px; line-height: 1.9; }
.lf-points strong { font-weight: var(--fw-bold); background: linear-gradient(transparent 62%, rgba(78, 185, 195, 0.30) 62%); }

/* この講座で分かること */
.lf-inner--split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.lf-checks { list-style: none; margin: 0; padding: 0; }
.lf-checks li { position: relative; margin: 0 0 12px; padding-left: 30px; font-size: 15px; line-height: 1.85; }
.lf-checks li::before {
  content: ""; position: absolute; left: 4px; top: 7px;
  width: 12px; height: 7px;
  border-left: 3px solid var(--brand-primary); border-bottom: 3px solid var(--brand-primary);
  transform: rotate(-45deg);
}
.lf-spec { margin: 36px 0 0; padding: 8px 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.lf-spec div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.lf-spec div:last-child { border-bottom: none; }
.lf-spec dt { font-size: 13px; font-weight: var(--fw-bold); color: var(--ink-soft); line-height: 1.8; }
.lf-spec dd { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink); }

/* こんな方に */
.lf-for__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lf-for__list li {
  margin: 0; padding: 16px 18px 16px 44px; position: relative;
  background: var(--surface-alt); border-radius: var(--radius-md);
  font-size: 15px; line-height: 1.8;
}
.lf-for__list li::before { content: ""; position: absolute; left: 18px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-primary); }
.lf-about { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.lf-about h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 15px; font-weight: var(--fw-bold); }
.lf-about p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--ink-soft); }

/* 所属の皆さんにまとめてご案内したい方へ（SHARE。2026-10-31） */
.lf-share__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 28px 0 0; }
.lf-share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 32px;
  border: 2px solid var(--brand-primary-ink); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--brand-primary-ink) !important;
  font-family: var(--font-head); font-size: 16px; font-weight: var(--fw-bold); letter-spacing: 0.04em;
  text-decoration: none !important; transition: background 0.15s ease;
}
.lf-share__btn::before {
  content: ""; width: 12px; height: 12px; margin-right: 10px; flex: none;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg) translate(2px, -2px); /* 下向きの矢印 */
}
.lf-share__btn:hover { background: var(--brand-primary-soft); }
.lf-share__btn:focus-visible { outline: 3px solid rgba(78, 185, 195, 0.5); outline-offset: 3px; }
.lf-share__text { flex: 1 1 100%; }
.lf-share__text summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: var(--fw-bold); color: var(--brand-primary-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.lf-share__text summary::-webkit-details-marker { display: none; }
.lf-share__text summary::after { content: "＋"; display: inline-block; margin-left: 6px; text-decoration: none; }
.lf-share__text[open] summary::after { content: "−"; }
.lf-share__text summary:focus-visible { outline: 3px solid rgba(78, 185, 195, 0.5); outline-offset: 3px; }
.lf-share__box { margin: 14px 0 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-md); }
.lf-sec p.lf-share__msg { margin: 0; font-size: 14.5px; line-height: 1.9; word-break: break-all; }
.lf-share__copy { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; }
.lf-share__copybtn {
  min-height: 40px; padding: 8px 20px;
  border: none; border-radius: var(--radius-pill);
  background: var(--brand-primary-ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: var(--fw-bold); cursor: pointer;
}
.lf-share__copybtn:hover { background: #237A81; }
.lf-share__copybtn:focus-visible { outline: 3px solid rgba(78, 185, 195, 0.5); outline-offset: 3px; }
.lf-share__copy:has(.lf-share__copybtn[hidden]) { display: none; }
.lf-share__status { font-size: 13px; color: var(--brand-primary-ink); font-weight: var(--fw-bold); }
.lf-sec p.lf-share__hint { margin: 12px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.lf-sec p.lf-share__note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }

/* 流れ */
.lf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lf-steps li {
  margin: 0; padding: 20px 18px;
  background: var(--surface); border: 1px solid var(--line-soft); border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-md); box-shadow: var(--shadow-1); line-height: 1.8;
}
.lf-steps__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 8px;
  border-radius: 50%; background: var(--brand-primary-ink); color: #fff;
  font-size: 14px; font-weight: var(--fw-black); line-height: 1;
}
.lf-steps strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: var(--fw-bold); }
.lf-steps li > span:last-child { display: block; font-size: 14px; color: var(--ink-soft); }

/* 運営 */
.lf-orgtable { width: 100%; border-collapse: collapse; margin: 16px 0 0; font-size: 14.5px; background: var(--surface); }
.lf-orgtable th, .lf-orgtable td { border: 1px solid var(--line-soft); padding: 12px 16px; text-align: left; line-height: 1.8; }
.lf-orgtable th { width: 9em; background: var(--surface-alt); font-weight: var(--fw-bold); white-space: nowrap; }

/* ---------- 登録フォーム（parts/learn-free/form.php） ---------- */
.lf-form, .lf-done, .lf-closed {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
  padding: 32px;
}
.lf-field { margin: 0 0 20px; }
.lf-field label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: var(--fw-bold); line-height: 1.6; color: var(--ink); }
.lf-field input, .lf-field select {
  display: block; width: 100%; max-width: 100%;
  padding: 12px 16px;
  font: inherit; font-size: 16px; /* 16px 未満だと iOS が入力時に拡大する */
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-1); outline: none;
  -webkit-appearance: none; appearance: none;
}
.lf-field select {
  padding-right: 40px;
  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 d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.lf-field input::placeholder { color: #AAAAAA; }
.lf-field input:focus, .lf-field select:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(78, 185, 195, 0.25); }
.lf-field.is-error input, .lf-field.is-error select { border-color: var(--danger); }
.lf-req, .lf-opt {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 3px;
  font-size: 11px; font-weight: var(--fw-bold); line-height: 1.6; vertical-align: 1px; white-space: nowrap;
}
.lf-req { background: #B23D28; color: #fff; }
.lf-opt { background: var(--surface-alt); color: var(--ink-soft); border: 1px solid var(--line-soft); }
.lf-hint { margin: 6px 0 0 !important; font-size: 12.5px !important; line-height: 1.8 !important; color: var(--ink-soft) !important; }
.lf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.lf-consent { margin: 24px 0 0; padding: 18px 20px; background: var(--surface-alt); border-radius: var(--radius-md); }
.lf-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font-size: 14.5px; line-height: 1.8; cursor: pointer; }
.lf-check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand-primary-ink); }
.lf-consent .lf-hint { margin: 0 !important; }
.lf-msg { display: none; margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: #FDEDEA; color: #B23D28; font-size: 14px; font-weight: var(--fw-bold); line-height: 1.7; }
.lf-msg.is-shown { display: block; }
.lf-submit {
  display: block; width: 100%; max-width: 380px; min-height: 56px; margin: 24px auto 0; padding: 14px 24px;
  border: none; border-radius: var(--radius-pill);
  background: var(--brand-primary-ink); color: #fff;
  font-family: var(--font-head); font-size: 18px; font-weight: var(--fw-bold); letter-spacing: 0.08em;
  cursor: pointer; transition: background 0.15s ease;
}
.lf-submit:hover { background: #237A81; }
.lf-submit:focus-visible { outline: 3px solid rgba(78, 185, 195, 0.5); outline-offset: 3px; }
.lf-submit:disabled { opacity: 0.6; cursor: default; }
.lf-done { border-color: var(--brand-primary); background: var(--brand-primary-soft); text-align: center; outline: none; }
.lf-done h3 { margin: 0 0 10px; font-family: var(--font-head); font-size: 21px; font-weight: var(--fw-bold); color: var(--brand-primary-ink); line-height: 1.6; }
.lf-done p { margin: 0 0 10px; font-size: 15.5px; line-height: 2; }
.lf-done .lf-hint { margin: 14px 0 0 !important; font-size: 13px !important; }
.lf-closed p { margin: 0; }

/* ---------- スマホの画面下のボタン（learn-free.js が出し入れ） ---------- */
.lf-sticky { display: none; }

@media (max-width: 720px) {
  .lf-hero { padding: 28px 20px 36px; }
  .lf-eyebrow { margin-bottom: 12px; font-size: 13px; }
  .lf-eyebrow span { margin: 6px 0 0; display: table; }
  .lf-title { font-size: 28px; line-height: 1.45; margin-bottom: 14px; }
  .lf-br-sp { display: inline; }
  .lf-lead { font-size: 15px; line-height: 1.9; margin-bottom: 18px; }
  .lf-chips { margin-bottom: 22px; gap: 6px; }
  .lf-chips li { font-size: 12px; padding: 3px 12px; }
  .lf-cta__btn { display: flex; width: 100%; padding: 14px 20px; }
  .lf-cta__note { font-size: 12.5px; }

  .lf-sec { padding: 56px 20px; }
  .lf-h2 { font-size: 22px; margin-bottom: 22px; }
  .lf-points, .lf-steps, .lf-for__list, .lf-inner--split { grid-template-columns: 1fr; }
  .lf-inner--split { gap: 0; }
  .lf-points li { padding: 18px 18px 18px 64px; position: relative; border-top-width: 1px; border-left: 4px solid var(--brand-primary); }
  .lf-points__no { position: absolute; left: 16px; top: 18px; margin: 0; }
  .lf-points h3 { font-size: 17px; }
  .lf-spec { margin-top: 24px; padding: 4px 16px; }
  .lf-spec div { grid-template-columns: 5.5em 1fr; gap: 8px; }
  .lf-steps li { padding: 16px 16px 16px 58px; position: relative; border-top-width: 1px; border-left: 4px solid var(--brand-primary); }
  .lf-steps__no { position: absolute; left: 16px; top: 16px; margin: 0; }
  .lf-orgtable th, .lf-orgtable td { display: block; width: auto; border-bottom: none; }
  .lf-orgtable tr { display: block; border-bottom: 1px solid var(--line-soft); }

  .lf-share__actions { gap: 14px; margin-top: 22px; }
  .lf-share__btn { display: flex; width: 100%; padding: 12px 20px; font-size: 15.5px; }
  .lf-share__box { padding: 16px; }

  .lf-form, .lf-done, .lf-closed { padding: 22px 18px; border-radius: var(--radius-md); }
  .lf-submit { max-width: none; }

  .lf-sticky {
    display: flex; position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 12px;
    min-height: 52px; padding: 12px 20px; font-size: 17px;
    box-shadow: 0 8px 24px rgba(51, 51, 51, 0.18);
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .lf-sticky.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  .lf-registered .lf-sticky { display: none; }
  /* 画面下のボタンで、フッターのリンクが隠れないように */
  .lf-page footer.site { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .lf-sticky { transition: none; }
}
