/* MedLead LP
   色は :root の変数で管理。768px未満がスマホ */
:root {
  --blue: #316AC3;
  --blue-dark: #24539C;
  --light: #E3ECFA;      /* 薄い水色 */
  --pale: #F1F5FD;
  --orange: #F2541D;
  --orange-2: #FF8A3D;
  --orange-dark: #C23F12;
  --yellow: #FFF94E;
  --yellow-line: #D6CC00;
  --ink: #1B2236;
  --sub: #5E6577;
  --line: #D5DFEE;
  --gray: #EBEBEB;
  --white: #fff;
  --header-h: 64px;
  --radius: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --num: "Oswald", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp { display: none; }
.hl { color: var(--blue); }
.os { font-family: var(--num); }

.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: rgba(255,255,255,.96); box-shadow: 0 1px 8px rgba(27,34,54,.08); }
.header__inner { height: 100%; display: flex; align-items: center; padding-left: 24px; }
.header__logo { font-weight: 900; font-size: 24px; color: var(--blue); text-decoration: none; letter-spacing: .01em; }
.header__nav { margin-left: auto; display: flex; gap: 22px; padding-right: 24px; }
.header__nav a { font-size: 13px; font-weight: 700; text-decoration: none; }
.header__nav a:hover { color: var(--blue); }
.header__cta { height: 100%; display: flex; align-items: center; padding: 0 24px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; background: linear-gradient(90deg, var(--orange-2), var(--orange)); }
.header__cta:hover { filter: brightness(1.05); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.btn--cta { color: #fff; font-size: 18px; padding: 16px 40px; border-radius: 999px; background: linear-gradient(90deg, var(--orange-2), var(--orange)); box-shadow: 0 5px 0 var(--orange-dark); transition: transform .15s, box-shadow .15s; }
.btn--cta:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--orange-dark); }
.btn__free { background: #fff; color: var(--orange); font-size: 12px; padding: 2px 8px; border-radius: 4px; }
.btn--submit { border-radius: 8px; padding: 14px 64px; font-size: 16px; }
.btn--submit[disabled] { opacity: .6; cursor: wait; }

/* ---------- 3軸の札 ---------- */
.ab { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 14px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap; }
.ab--a { background: #fff; color: var(--orange); border-color: var(--orange); }
.ab--b { background: var(--blue); color: #fff; border-color: var(--blue); }
.ab--c { background: var(--yellow); color: var(--ink); border-color: var(--yellow-line); }

/* ---------- section common ---------- */
.section { padding: 88px 0; }
.section--light { background: var(--light); }
.section--pale { background: var(--pale); }
.section--gray { background: var(--gray); }
.label { text-align: center; color: var(--blue); font-weight: 700; font-size: 14px; }
.label::after { content: ""; display: block; width: 52px; height: 3px; margin: 4px auto 0; background: var(--blue); }
.section__title { text-align: center; font-size: 30px; font-weight: 900; line-height: 1.45; margin: 10px 0 40px; }
.note { font-size: 12px; color: var(--sub); margin-top: 12px; }

/* ---------- 1. FV ---------- */
.fv { position: relative; padding-top: var(--header-h); background:linear-gradient(105deg, #EEF3FD 0%, #DCE6FA 58%, var(--blue) 58.1%, #3B78D4 100%); overflow: hidden; }
.fv__inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px 0; display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: end; }
.fv__text { padding-bottom: 56px; }
.fv__tag { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 4px; }
.fv__title { font-size: 52px; font-weight: 900; line-height: 1.3; margin: 20px 0 22px; letter-spacing: .02em; }
.fv__lead { font-weight: 700; font-size: 18px; }
.fv__sub { color: var(--sub); font-size: 15px; margin: 6px 0 28px; }
.fv__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.fv__badges li { border: 2px solid var(--blue); color: var(--blue-dark); background: #fff; font-weight: 700; font-size: 14px; padding: 6px 16px; border-radius: 999px; }
.fv__op { margin-top: 18px; font-size: 12px; color: var(--sub); }
.fv__photo img { width: 100%; max-width: 520px; margin-left: auto; }

/* ---------- 2. entry ---------- */
.entry { padding: 56px 0 72px; }
.entry__title { text-align: center; font-size: 22px; font-weight: 900; margin-bottom: 24px; }
.entry__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.entry__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px; border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: border-color .15s, transform .15s, box-shadow .15s; }
.entry__card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(49,106,195,.12); }
.entry__text { font-size: 18px; font-weight: 900; }
.entry__more { font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- 3. problem ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pcard { background: #fff; border-radius: var(--radius); padding: 24px; scroll-margin-top: calc(var(--header-h) + 24px); }
.nlist { margin-top: 14px; }
.nlist li { display: flex; gap: 10px; font-weight: 700; font-size: 15px; padding: 12px 0; border-bottom: 1px dashed var(--line); line-height: 1.5; }
.num { font-family: var(--num); color: var(--blue); font-weight: 600; flex: none; }
.ask { max-width: 560px; margin: 32px auto 0; background: var(--yellow); text-align: center; font-weight: 900; font-size: 18px; padding: 14px 20px; border-radius: 10px; }

/* ---------- 4. concept ---------- */
.compare { border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 24px rgba(27,34,54,.08); }
.compare__table { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.compare__table th, .compare__table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid #E6EBF2; }
.compare__table thead th { background: #F1F4F7; font-size: 13px; color: var(--sub); }
.compare__table thead th.is-ml { background: var(--blue); color: #fff; font-size: 16px; }
.compare__table tbody th { width: 18%; font-weight: 700; }
.compare__table td.is-ml { background: #EAF1FD; color: var(--blue-dark); font-weight: 700; }
.compare__table tbody tr:last-child > * { border-bottom: 0; }
.concept__close { text-align: center; font-size: 22px; font-weight: 900; margin-top: 40px; }

/* ---------- 5. features ---------- */
.fcard { background: #fff; border-radius: var(--radius); padding: 26px 24px 24px; border-top: 6px solid var(--orange); }
.ax--b { border-top-color: var(--blue); }
.ax--c { border-top-color: var(--yellow-line); }
.blist { margin-top: 16px; display: grid; gap: 10px; }
.blist li { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; font-weight: 700; font-size: 15px; line-height: 1.5; }

/* ---------- 6. voice ---------- */
.chips { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.chip { font-family: inherit; font-size: 14px; font-weight: 700; color: var(--blue); background: #fff; border: 2px solid var(--blue); border-radius: 999px; padding: 8px 22px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.chip--a::before { background: var(--orange); }
.chip--c::before { background: var(--yellow-line); }
.chip[aria-selected="true"] { background: var(--blue); color: #fff; }
.chip[aria-selected="true"]::before { background: #fff; }
.chip:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; }
.case { display: grid; grid-template-columns: 1fr auto 1.1fr; align-items: center; gap: 24px; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 6px 24px rgba(27,34,54,.08); }
.case[hidden] { display: none; }
.case__problem { background: var(--pale); border-radius: 12px; padding: 20px; }
.case__problem p { font-weight: 900; font-size: 17px; margin-top: 10px; }
.case__arrow { color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.case__arrow::after { content: " →"; }
.case__steps li { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.step { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--num); font-size: 15px; display: grid; place-items: center; }

/* ---------- 7. reasons ---------- */
.rcard { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.rcard__big { font-family: var(--num); color: var(--blue); font-size: 52px; font-weight: 600; line-height: 1.1; }
.rcard__big:not(:has(.os)) { font-family: var(--font); font-weight: 900; font-size: 40px; }
.rcard__big small { font-family: var(--font); font-size: 18px; font-weight: 900; margin-left: 2px; }
.rcard__head { font-weight: 900; font-size: 17px; margin-top: 12px; }
.rcard__sub { font-size: 13px; color: var(--sub); margin-top: 4px; }
.ctabar { margin-top: 32px; background: #fff; border-radius: var(--radius); padding: 22px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; box-shadow: 0 6px 24px rgba(49,106,195,.12); }
.ctabar__text { color: var(--orange); font-weight: 900; font-size: 20px; }

/* ---------- 8. flow ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps__item { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.steps__no { color: var(--blue); font-weight: 700; font-size: 14px; }
.steps__title { font-weight: 900; font-size: 18px; }
.steps__sub { font-size: 13px; color: var(--sub); }
.terms { margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.terms > div { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid #E6EBF2; }
.terms > div:last-child { border-bottom: 0; }
.terms dt { background: #F1F4F7; font-weight: 700; font-size: 14px; padding: 14px 20px; }
.terms dd { font-size: 15px; padding: 14px 20px; }
.message { margin-top: 32px; background: #fff; border-radius: var(--radius); border-left: 6px solid var(--blue); padding: 28px 32px; }
.message__label { color: var(--blue); font-weight: 700; font-size: 13px; }
.message__title { font-size: 24px; font-weight: 900; margin: 6px 0 14px; }
.message p + p { margin-top: 8px; }
.message p:not([class]) { font-size: 15px; }
.message__sign { text-align: right; font-weight: 700; margin-top: 14px !important; }

/* ---------- 9. FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: #fff; border-radius: 12px; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 18px 48px 18px 20px; font-weight: 900; font-size: 16px; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 14px; font-size: 24px; color: var(--blue); font-weight: 400; }
.faq__item[open] summary::after { content: "−"; }
.faq__item summary:focus-visible { outline: 3px solid var(--orange-2); outline-offset: 2px; border-radius: 12px; }
.faq__q { font-family: var(--num); color: var(--blue); font-size: 20px; line-height: 1.2; flex: none; }
.faq__qt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.5; }
.faq__a { padding: 0 20px 18px 54px; color: var(--sub); font-size: 15px; }

/* ---------- 10. contact ---------- */
.formbox { max-width: 560px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 36px 40px; }
.form__row { margin-bottom: 18px; }
.form__row label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.req { display: inline-block; margin-left: 8px; background: #FFE3D8; color: var(--orange); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; vertical-align: 1px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #D9D9D9; border-radius: 6px; background: #FAFAFA; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; background: #fff; }
.form .is-invalid { border-color: var(--orange); background: #FFF6F2; }
.form__agree { font-size: 14px; font-weight: 700; margin: 6px 0 20px; }
.form__agree input { margin-right: 6px; }
.form__agree a { color: var(--blue); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: var(--orange); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.form__submit { text-align: center; }
.form__done { text-align: center; font-weight: 700; font-size: 17px; padding: 40px 0; }

/* ---------- footer ---------- */
.footer { background: #262626; color: #fff; text-align: center; font-size: 13px; padding: 32px 24px 40px; }
.footer p + p { margin-top: 8px; }
.footer__company { font-weight: 700; }
.footer a { color: #bbb; }
.footer__copy { color: #888; margin-top: 18px !important; font-size: 12px; }

/* ---------- 11. follow ---------- */
.follow { position: fixed; z-index: 40; right: 20px; bottom: 20px; width: 300px; background: var(--blue); color: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 24px rgba(27,34,54,.25); transition: opacity .25s, transform .25s; }
.follow.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.follow__text { font-weight: 700; font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.follow__btn { display: block; text-align: center; color: #fff; font-weight: 700; text-decoration: none; padding: 10px; border-radius: 8px; background: linear-gradient(90deg, var(--orange-2), var(--orange)); }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .header__nav { gap: 14px; }
  .header__nav a { font-size: 12px; }
  .fv__title { font-size: 44px; }
}
@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__cta { margin-left: auto; }
}

/* ---------- smartphone (<768px) ---------- */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .sp { display: inline; }
  .container { padding: 0 20px; }
  .header__inner { padding-left: 20px; }
  .header__logo { font-size: 22px; }
  .header__cta { padding: 0 18px; font-size: 14px; }
  .section { padding: 64px 0; }
  .section__title { font-size: 24px; margin-bottom: 28px; }

  .fv { background: linear-gradient(180deg, #EEF3FD 0%, #DCE6FA 100%); }
  .fv__inner { grid-template-columns: 1fr; padding: 32px 20px 0; gap: 24px; }
  .fv__text { padding-bottom: 0; }
  .fv__tag { font-size: 13px; }
  .fv__title { font-size: 36px; margin: 16px 0; }
  .fv__lead { font-size: 15px; letter-spacing: -.02em; }
  .fv__sub { font-size: 14px; margin-bottom: 22px; }
  .fv .btn--cta { width: 100%; }
  .fv__photo img { max-width: none; border-radius: 12px 12px 0 0; }

  .btn--cta { font-size: 17px; padding: 15px 20px; }

  .entry { padding: 48px 0 56px; }
  .entry__title { font-size: 20px; }
  .entry__cards, .cols3, .steps { grid-template-columns: 1fr; }

  .ask { font-size: 16px; }

  /* 比較表：行ごとのカードに */
  .compare__table thead { display: none; }
  .compare__table, .compare__table tbody, .compare__table tr, .compare__table th, .compare__table td { display: block; width: 100%; }
  .compare__table tbody th { width: 100%; background: #F1F4F7; border-bottom: 1px solid var(--line); }
  .compare__table td { display: flex; gap: 14px; padding: 12px 20px; border-bottom: 0; }
  .compare__table td::before { content: attr(data-h); flex: none; width: 76px; font-size: 12px; font-weight: 700; color: var(--sub); padding-top: 2px; }
  .compare__table td.is-ml::before { color: var(--blue); }
  .concept__close { font-size: 20px; }

  .case { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .case__arrow::after { content: " ↓"; }

  .ctabar { flex-direction: column; text-align: center; padding: 24px 20px; }
  .ctabar .btn--cta { width: 100%; }

  .terms > div { grid-template-columns: 1fr; }
  .terms dt { background: none; padding: 14px 20px 0; font-size: 13px; color: var(--sub); }
  .terms dd { padding: 2px 20px 14px; }
  .message { padding: 24px 22px; }
  .message__title { font-size: 21px; }

  .faq__qt { flex-direction: column; align-items: flex-start; gap: 6px; }
  .faq__a { padding-left: 54px; }

  .formbox { padding: 28px 20px; }

  .footer { padding-bottom: 104px; }

  .follow { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  .follow__text { margin: 0; font-size: 14px; }
  .follow__btn { flex: none; padding: 12px 20px; font-size: 16px; }
}
