/* ===== 色と大きさ（ここを変えると全体が変わります） ===== */
:root {
  --navy: #15254A;
  --blue: #1F8FD6;
  --pale: #EAF3F9;
  --green: #06C755;
  --green-d: #04A045;
  --text: #3A3F4A;
  --line: #C7D3E0;
  --header-h: 60px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.8; -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-break: strict; }
p, li, dd, td, th, h3, summary, .btn, figcaption { word-break: auto-phrase; }
ol, ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===== ヘッダー ===== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header-h);
  background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(21,37,74,.08);
}
.header-in { height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.logo img { height: 34px; width: auto; }
.header-label { font-size: 13px; color: var(--navy); white-space: nowrap; margin-right: auto; }
.gnav { display: none; }
.header-line { display: none; }
.header-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--navy); color: var(--navy);
  font-size: 14px; text-decoration: none; white-space: nowrap;
}
.header-cta:hover { background: var(--navy); color: #fff; }
@media (max-width: 520px) { .header-label { display: none; } .logo { margin-right: auto; } }

main { padding-top: var(--header-h); }

/* ===== 共通 ===== */
.sec { padding: 64px 0; }
.eyebrow { color: var(--blue); font-size: 15px; letter-spacing: .06em; display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--blue); }
.h2 { color: var(--navy); font-weight: 400; font-size: clamp(26px, 6.8vw, 42px); line-height: 1.45; letter-spacing: .02em; word-break: keep-all; overflow-wrap: anywhere; }
.h2 em { font-style: normal; color: var(--blue); }
.h2 u { text-decoration: none; border-bottom: 3px solid var(--blue); }
.sec-lead { margin-top: 16px; max-width: 46em; font-size: clamp(15px, 3.9vw, 17px); }
.chip { display: inline-block; background: var(--navy); color: #fff; font-size: 14px; line-height: 1.6; padding: 4px 14px; border-radius: 6px; }
.note { font-size: 13px; }

.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 8px 14px; border-radius: 12px;
  font-size: 16px; line-height: 1.4; text-decoration: none; text-align: center;
  word-break: keep-all; overflow-wrap: anywhere;
}
.btn-line { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-d); }
.btn-line:hover { filter: brightness(1.05); }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--pale); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ===== FV ===== */
.fv { background: linear-gradient(180deg, #F6FAFD 0%, #fff 70%); }
.fv-grid { display: grid; gap: 8px; padding-top: 28px; }
.fv-visual { position: relative; order: -1; margin: 0 -20px; }
.fv-visual img { width: 100%; max-height: 62vh; object-fit: cover; object-position: 70% 20%; }
.fv-visual::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(rgba(255,255,255,0), #fff); }
.badge {
  position: absolute; left: 20px; bottom: -14px; z-index: 1; width: 112px; aspect-ratio: 1;
  border-radius: 50%; background: var(--navy); color: #fff; border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(21,37,74,.18);
  display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.5;
}
.badge b { display: block; font-size: 32px; line-height: 1.25; font-weight: 500; }
.fv-copy { padding-top: 20px; }
.fv-title { margin-top: 14px; color: var(--navy); font-weight: 500; font-size: clamp(30px, 8.2vw, 56px); line-height: 1.25; letter-spacing: .02em; }
.band-line { white-space: nowrap; display: table; position: relative; background: #fff; border-left: 5px solid var(--blue); padding: .14em .4em; box-shadow: 0 4px 16px rgba(21,37,74,.06); }
.band-line.l2 { margin: 10px 0 0 .5em; }
.band-line::after { content: ""; position: absolute; inset: 0; background: #F6FAFD; transform-origin: right center; }
.js .band-line::after { transform: scaleX(1); }
.js.is-ready .band-line::after { transform: scaleX(0); transition: transform .9s cubic-bezier(.6,0,.2,1); }
.js.is-ready .band-line.l2::after { transition-delay: .35s; }
.fv-lead { margin-top: 20px; font-size: clamp(15px, 4vw, 19px); word-break: keep-all; overflow-wrap: anywhere; }
.fv-points { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0; }
.fv-points li { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: clamp(12px, 3.3vw, 15px); color: var(--navy); line-height: 1.45; padding: 0 4px; }
.fv-points li + li { border-left: 1px solid var(--blue); }
.fv-points svg { width: 42px; height: 42px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.fv-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; color: var(--navy); font-size: 17px; }
.fv-price .tag { background: var(--blue); color: #fff; font-size: 13px; padding: 2px 10px; border-radius: 4px; align-self: center; }
.fv-price b { font-size: 34px; font-weight: 500; line-height: 1; }
.fv-copy .note { margin-top: 10px; }
.facts { background: var(--navy); color: #fff; margin-top: 36px; }
.facts dl { margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); padding-top: 16px; padding-bottom: 16px; row-gap: 12px; }
.facts div { text-align: center; padding: 0 6px; }
.facts div:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.3); }
.facts dt { font-size: 12px; opacity: .75; }
.facts dd { margin: 0; font-size: clamp(14px, 3.8vw, 18px); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }

/* ===== お悩み ===== */
.pain { background: var(--pale); }
.pain-list { display: grid; gap: 20px; margin-top: 32px; }
.pain-list li { position: relative; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(21,37,74,.08); padding-bottom: 22px; }
.pain-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pain-list b { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--blue); font-weight: 400; font-size: 26px; line-height: 1; padding: 8px 12px; border-radius: 8px; }
.pain-list h3 { margin: 18px 20px 8px; color: var(--navy); font-weight: 500; font-size: clamp(17px, 4.6vw, 20px); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.pain-list p { margin: 0 20px; font-size: 15px; }

/* ===== ちがい ===== */
.cmp { margin-top: 28px; overflow-x: auto; }
.cmp table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; font-size: clamp(13px, 3.5vw, 16px); line-height: 1.6; }
.cmp th, .cmp td { padding: 14px 12px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.cmp thead th { font-weight: 400; color: var(--text); font-size: .92em; border-bottom: 0; padding-bottom: 10px; }
.cmp thead th.us { background: var(--navy); color: #fff; border-radius: 12px 12px 0 0; font-size: 1.05em; }
.cmp tbody th { color: var(--navy); font-weight: 500; white-space: nowrap; width: 5.5em; }
.cmp td { color: #6B7280; }
.cmp td.us { background: #F2F8FC; color: var(--navy); font-weight: 500; border-left: 2px solid var(--navy); border-right: 2px solid var(--navy); }
.cmp tbody tr:last-child td.us { border-bottom: 2px solid var(--navy); border-radius: 0 0 12px 12px; }
.cmp td, .cmp th { word-break: keep-all; overflow-wrap: anywhere; }

/* ===== サービス ===== */
.service { background: linear-gradient(180deg, #fff 0%, var(--pale) 100%); }
.service-grid { display: grid; gap: 28px; }
.service-phone { width: 46%; max-width: 260px; margin: 24px auto 0; border-radius: 20px; }
.service-list { display: grid; gap: 14px; }
.service-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: #fff; border-radius: 14px; padding: 18px 18px 20px; box-shadow: 0 6px 20px rgba(21,37,74,.07); }
.service-list i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-style: normal; font-size: 18px; }
.stage { font-size: 13px; color: var(--blue); }
.service-list h3 { color: var(--navy); font-weight: 500; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.45; margin: 2px 0 6px; }
.service-list li p:not(.stage) { font-size: 15px; }

/* ===== 選ばれる理由 ===== */
.reason-grid { display: grid; gap: 14px; margin-top: 28px; }
.r-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.r-card { background: var(--pale); border-radius: 16px; padding: 22px 20px 24px; }
.r-card b { display: block; width: fit-content; color: var(--blue); font-weight: 300; font-size: 44px; line-height: 1.1; padding-top: 8px; border-top: 2px solid var(--blue); }
.r-card h3 { margin: 10px 0; color: var(--navy); font-weight: 500; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.45; }
.r-card p { font-size: 15px; }

/* ===== 担当者紹介 ===== */
.profile { background: var(--pale); }
.profile-grid { display: grid; gap: 20px; }
.profile-photo { width: 100%; margin-top: 24px; border-radius: 16px; }
.profile-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; }
.p-card { background: #fff; border-radius: 14px; padding: 18px 14px 20px; box-shadow: 0 8px 24px rgba(21,37,74,.08); }
.role { display: inline-block; background: var(--blue); color: #fff; font-size: clamp(11px, 3vw, 14px); padding: 3px 10px; border-radius: 6px; line-height: 1.5; }
.p-card h3 { margin: 12px 0 10px; padding-bottom: 10px; border-bottom: 1.5px solid var(--navy); color: var(--navy); font-weight: 500; font-size: clamp(22px, 6vw, 32px); letter-spacing: .06em; line-height: 1.3; }
.p-card li { position: relative; padding-left: 16px; font-size: clamp(12px, 3.3vw, 15px); line-height: 1.6; margin-top: 6px; }
.p-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; background: var(--blue); }
.profile-foot { grid-column: 1 / -1; text-align: center; color: var(--navy); font-size: clamp(15px, 4.2vw, 19px); padding-top: 8px; }

/* ===== 料金 ===== */
.plans { display: grid; gap: 4px; margin-top: 28px; align-items: stretch; }
.plan { border: 2px solid var(--navy); border-radius: 16px; padding: 22px 22px 24px; background: #fff; }
.plan-name { display: inline-block; background: var(--navy); color: #fff; font-size: 16px; padding: 2px 14px; border-radius: 6px; }
.plan-price { margin: 10px 0 14px; color: var(--navy); font-size: 20px; }
.plan-price b { font-size: 60px; font-weight: 500; line-height: 1; }
.plan-price span { margin-left: 12px; font-size: 15px; color: var(--text); }
.plan li { position: relative; padding-left: 26px; font-size: 15px; margin-top: 6px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plus { text-align: center; color: var(--blue); font-size: 32px; line-height: 1.2; }
.price-notes { margin-top: 16px; font-size: 14px; }
.price-notes li::before { content: "※"; }
.price-cta { margin-top: 32px; background: var(--pale); border-radius: 20px; padding: 24px 20px; display: grid; gap: 16px; justify-items: center; text-align: center; }
.price-cta img { width: 120px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.price-cta-title { color: var(--navy); font-size: clamp(20px, 5.4vw, 28px); margin-bottom: 14px; }
.price-cta .btns { width: 100%; }

/* ===== 流れ ===== */
.flow { background: var(--pale); }
.steps { display: grid; gap: 12px; margin-top: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; background: #fff; border-radius: 14px; padding: 18px 18px 18px 76px; min-height: 96px; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 14px; color: var(--blue); font-size: 46px; font-weight: 300; line-height: 1; }
.steps h3 { color: var(--navy); font-weight: 500; font-size: clamp(16px, 4.4vw, 19px); line-height: 1.45; }
.steps p { font-size: 14px; line-height: 1.6; margin-top: 4px; }
.steps .you { display: inline-block; margin-top: 8px; background: var(--pale); color: var(--navy); font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.flow-photo { position: relative; margin: 28px 0 0; }
.flow-photo img { width: 100%; border-radius: 16px; }
.flow-photo figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--blue); color: #fff; font-size: 15px; padding: 6px 16px; border-radius: 10px; }

/* ===== よくある質問 ===== */
.faq-grid { display: grid; gap: 24px; }
.faq-head img { width: 140px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-top: 20px; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(21,37,74,.15); }
.faq-list { display: grid; gap: 12px; }
.qa { border-radius: 14px; background: var(--pale); overflow: hidden; }
.qa .q { position: relative; padding: 16px 16px 16px 58px; background: var(--navy); color: #fff; font-size: clamp(15px, 4vw, 17px); line-height: 1.55; }
.qa .q::before { content: "Q"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; }
.qa .a { position: relative; padding: 16px 16px 18px 58px; font-size: 15px; }
.qa .a::before { content: "A"; position: absolute; left: 18px; top: 12px; color: var(--blue); font-size: 28px; line-height: 1; }

/* ===== お問い合わせ ===== */
.contact { background: #fff; border-top: 1px solid var(--pale); }
.contact-grid { display: grid; gap: 32px; }
.contact-photo { width: 100%; border-radius: 16px; margin-top: 24px; }
.line-box { margin-top: 20px; background: var(--pale); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.line-box p { color: var(--navy); font-size: 15px; }
.form { display: grid; gap: 20px; align-content: start; background: #F8FBFD; border: 1px solid var(--pale); border-radius: 20px; padding: 24px 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.lbl { font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; padding: 0; }
.lbl em, .lbl i { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 4px; }
.lbl em { background: var(--navy); color: #fff; }
.lbl i { background: var(--pale); color: var(--text); }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  padding: 12px 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.checks span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--navy); background: #fff; }
.checks input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.checks input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.submit { min-height: 58px; border: 0; border-radius: 12px; cursor: pointer; background: var(--navy); color: #fff; font: inherit; font-size: 17px; letter-spacing: .04em; box-shadow: 0 4px 0 #0B1630; }
.submit:hover { filter: brightness(1.15); }
.submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #0B1630; }
.form-note { font-size: 14px; color: var(--navy); min-height: 1em; }

/* ===== フッター ===== */
.site-footer { padding: 36px 0 110px; background: var(--navy); color: #fff; text-align: center; font-size: 13px; }
.site-footer img { height: 36px; width: auto; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #fff; }
.copy { opacity: .7; }

/* ===== スマホの追従ボタン ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; transform: translateY(110%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid rgba(21,37,74,.1); transition: transform .35s ease;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; font-size: 15px; text-decoration: none; }
.s-line { background: var(--green); color: #fff; }
.s-form { background: #fff; color: var(--navy); border: 1px solid var(--navy); }

/* ===== タブレット以上 ===== */
@media (min-width: 768px) {
  .container { padding: 0 40px; }
  .sec { padding: 96px 0; }
  .facts dl { grid-template-columns: repeat(4, 1fr); }
  .facts div + div { border-left: 1px solid rgba(255,255,255,.3); }
  .pain-list { grid-template-columns: repeat(3, 1fr); }
  .reason-grid { grid-template-columns: 1fr 1fr; }
  .reason-grid .r-photo { grid-row: span 2; height: 100%; aspect-ratio: auto; }
  .plans { grid-template-columns: 1fr 48px 1fr; }
  .plus { align-self: center; }
  .price-cta { grid-template-columns: 140px 1fr; justify-items: start; text-align: left; padding: 28px 32px; align-items: center; }
  .price-cta img { width: 140px; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps li { padding: 64px 16px 18px; }
  .steps li::before { left: 16px; top: 12px; }
  .faq-grid { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
  .faq-head img { width: 180px; }
}

/* ===== PC ===== */
@media (min-width: 1024px) {
  :root { --header-h: 72px; }
  .header-in { padding: 0 32px; gap: 20px; }
  .header-label { margin-right: 0; }
  .gnav { display: flex; gap: 22px; margin-left: auto; }
  .gnav a { color: var(--navy); font-size: 14px; text-decoration: none; white-space: nowrap; }
  .gnav a:hover { color: var(--blue); }
  .header-line { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; text-decoration: none; white-space: nowrap; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 40px; }

  .fv-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 40px; }
  .fv-visual { order: 0; margin: 0; }
  .fv-visual img { max-height: none; border-radius: 24px; aspect-ratio: 1024 / 1100; object-position: 60% 20%; }
  .fv-visual::after { display: none; }
  .badge { left: -36px; bottom: 40px; width: 150px; font-size: 16px; }
  .badge b { font-size: 44px; }
  .fv-copy { padding: 0; }
  .fv-points { justify-content: start; max-width: 520px; }
  .btns { max-width: 560px; }
  .facts { margin-top: 64px; }

  .compare .container, .service-grid { }
  .compare .h2, .compare .sec-lead { text-align: left; }
  .cmp table { font-size: 17px; }
  .cmp th, .cmp td { padding: 20px 24px; }

  .service-grid { grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
  .service-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .service-phone { margin: 32px 0 0; width: 220px; }
  .service-list { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-list li { grid-template-columns: 1fr; padding: 26px 24px 28px; }

  .reason-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 20px; }
  .reason-grid .r-photo { grid-row: auto; height: 100%; }

  .profile-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .profile-cards { grid-template-columns: 1fr; gap: 16px; }
  .p-card { padding: 24px 28px 26px; }

  .price .container { display: grid; grid-template-columns: 340px 1fr; column-gap: 56px; }
  .price .eyebrow, .price .h2 { grid-column: 1; }
  .price .plans { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .price-notes { grid-column: 1; }
  .price-cta { grid-column: 1 / -1; grid-template-columns: 160px 1fr; }
  .price-cta .btns { max-width: 640px; }

  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 32px); }
  .form { padding: 36px 36px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .band-line::after { display: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
}

@media (min-width: 1024px) {
  .service-head .h2, .price .h2, .faq-head .h2 { font-size: 32px; }
  .service-grid { grid-template-columns: 400px 1fr; }
  .price .container { grid-template-columns: 380px 1fr; }
  .faq-grid { grid-template-columns: 340px 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .faq-head .h2 { font-size: 30px; }
}
.nw { white-space: nowrap; }

/* =====================================================================
   FV（動きつき）・オープニング・読み進めバー
   ===================================================================== */
:root { --ease: cubic-bezier(.2,.8,.2,1); }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 40; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), #5CC0F2); transform-origin: left; transform: scaleX(0); }

/* --- FV の土台：方眼の背景と、ラベルに流れ込む青い線 --- */
.fv { position: relative; overflow: hidden; background-color: #F7FAFD;
  background-image: linear-gradient(rgba(31,143,214,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31,143,214,.07) 1px, transparent 1px);
  background-size: 32px 32px; }
.fv-grid { position: relative; z-index: 1; padding-bottom: 8px; }
.fv-line { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.fv-line path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; opacity: .55; stroke-dasharray: 1; stroke-dashoffset: 1; }
.fv.is-in .fv-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.6,0,.2,1) .15s; }
.fv-label { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.fv-label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px rgba(31,143,214,.16); flex: none; }

/* --- 見出し：太い書体で1文字ずつ。2行目の「看護師」は青＋光が走る --- */
.fv-title { margin-top: 14px; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; color: var(--navy);
  font-size: clamp(36px, 10.4vw, 68px); line-height: 1.22; letter-spacing: .01em; }
.fv-title .ln { display: block; white-space: nowrap; }
.fv-title em { font-style: normal; color: var(--blue); position: relative; z-index: 0; }
.ch { display: inline-block; }
.js .fv .ch { opacity: 0; transform: translateY(.45em) rotate(4deg); filter: blur(4px); }
.js .fv.is-in .ch { opacity: 1; transform: none; filter: none; transition: opacity .5s ease, transform .6s var(--ease), filter .5s ease; }
.shine .ch { color: transparent; background: linear-gradient(100deg, var(--blue) 0 40%, #A8E1FF 50%, var(--blue) 60% 100%); background-size: 400% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; }
.fv.is-in .shine .ch { animation: shine 1.6s ease 1.7s 1 both; }
@keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }
.fv-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .18em; background: rgba(31,143,214,.18); z-index: -1; transform: scaleX(0); transform-origin: left; }
.fv.is-in .fv-title em::after { transform: scaleX(1); transition: transform .7s var(--ease) 1.2s; }

/* --- 文と部品が順に上がってくる --- */
.js .fv .up { opacity: 0; transform: translateY(18px); }
.js .fv.is-in .up { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.btn-line { position: relative; overflow: hidden; }
.btn-line::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); pointer-events: none; }
.fv.is-in .btn-line::after { animation: btnShine 3.6s ease 2.6s infinite; }
@keyframes btnShine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

/* --- 写真：下から幕が開く --- */
.fv-visual .ph { position: relative; overflow: hidden; }
.fv-visual .ph img { width: 100%; max-height: 62vh; object-fit: cover; object-position: 70% 20%; }
.js .fv-visual .ph { clip-path: inset(100% 0 0 0); }
.js .fv-visual .ph img { transform: scale(1.12); }
.js .fv.is-in .fv-visual .ph { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .1s; }
.js .fv.is-in .fv-visual .ph img { transform: scale(1); transition: transform 2.4s var(--ease) .1s; }
.fv-visual::after { display: none; }
.fv-visual .kari { position: absolute; right: 8px; top: 8px; z-index: 2; font-size: 10px; line-height: 1.6; color: #fff; background: rgba(21,37,74,.55); padding: 1px 8px; border-radius: 4px; }

/* --- 求人が届く → LINE → 面接、のカードが順に出る --- */
.fcards { position: absolute; z-index: 2; right: 10px; bottom: 22px; width: min(60%, 240px); display: grid; gap: 8px; }
.fc { background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(21,37,74,.18); padding: 10px 12px; font-size: 12px; line-height: 1.5; color: var(--navy); }
.fc-k { display: inline-block; font-size: 10px; font-weight: 700; color: #fff; background: linear-gradient(90deg, #E1306C, #F77737); border-radius: 4px; padding: 0 6px; margin-bottom: 4px; }
.fc-k.g { background: var(--green); }
.fc-ad b { display: block; font-size: 15px; font-family: "Noto Sans JP", sans-serif; font-weight: 900; }
.fc-t { display: block; color: var(--text); }
.fc-b { display: block; margin-top: 6px; text-align: center; background: var(--pale); border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--blue); }
.fc-line { background: #EAF6EE; }
.bub { background: #fff; border-radius: 12px 12px 12px 2px; padding: 4px 10px; width: fit-content; max-width: 92%; }
.bub.me { margin: 6px 0 0 auto; background: var(--green); color: #fff; border-radius: 12px 12px 2px 12px; }
.fc-ok { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 8px 12px; }
.ok { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 12px; line-height: 1; }
@media (max-width: 767px) { .fc-ad .fc-t, .fc-ad .fc-b, .fc-line .bub.me, .fc-ok { display: none; } .fcards { width: 50%; bottom: 12px; gap: 6px; } .fc { padding: 8px 10px; } }
.js .fc, .js .bub.me { opacity: 0; transform: translateY(14px) scale(.96); }
.js .fv.is-in .fc, .js .fv.is-in .bub.me { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.3,1.5,.5,1); }
.js .fv.is-in .fc-ad { transition-delay: 1.5s; }
.js .fv.is-in .fc-line { transition-delay: 2.1s; }
.js .fv.is-in .fc-line .bub.me { transition-delay: 2.6s; }
.js .fv.is-in .fc-ok { transition-delay: 3.1s; }
.fv.is-in .fc-ad { animation: floaty 6s ease-in-out 3.8s infinite; }
.fv.is-in .fc-ok { animation: floaty 6s ease-in-out 4.6s infinite; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* --- バッジ：ポンと出る（数字は main.js で 0→10） --- */
.badge { z-index: 3; }
.js .fv .badge { opacity: 0; transform: scale(.4) rotate(-12deg); }
.js .fv.is-in .badge { opacity: 1; transform: none; transition: opacity .3s ease 1.1s, transform .7s cubic-bezier(.3,1.6,.5,1) 1.1s; }

/* --- 工程が流れる帯 --- */
.ticker { position: relative; z-index: 1; margin-top: 36px; background: var(--blue); color: #fff; overflow: hidden; padding: 10px 0; }
.ticker .track { display: flex; width: max-content; animation: tick 32s linear infinite; }
.ticker span { font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.6; letter-spacing: .08em; padding: 0 22px; white-space: nowrap; position: relative; }
.ticker span::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: rgba(255,255,255,.6); }
@keyframes tick { to { transform: translateX(-50%); } }
.facts { margin-top: 0; }

/* --- オープニング --- */
.intro { position: fixed; inset: 0; z-index: 60; background: var(--navy); display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.intro[hidden] { display: none; }
.intro-rows { position: absolute; inset: -10% -20%; display: grid; gap: 14px; align-content: center; transform: rotate(-8deg); opacity: 0; transition: opacity .6s ease; }
.intro.ph1 .intro-rows { opacity: .42; }
.intro .row { overflow: hidden; }
.intro .trk { display: flex; gap: 14px; width: max-content; animation: tick 26s linear infinite; }
.intro .row.rev .trk { animation-direction: reverse; }
.tile { width: 220px; height: 130px; border-radius: 12px; flex: none; padding: 14px 16px; color: #fff; display: grid; align-content: end; gap: 2px; position: relative; overflow: hidden; }
.tile u { position: absolute; top: 12px; left: 14px; text-decoration: none; font-size: 10px; font-weight: 700; background: rgba(255,255,255,.22); border-radius: 4px; padding: 0 6px; }
.tile b { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 20px; line-height: 1.25; }
.tile span { font-size: 12px; opacity: .9; }
.tile.chat { background: #EAF6EE; color: var(--navy); align-content: center; gap: 8px; }
.tile.chat i { font-style: normal; background: #fff; border-radius: 12px 12px 12px 2px; padding: 4px 10px; width: fit-content; font-size: 13px; }
.tile.chat i + i { margin-left: auto; background: var(--green); color: #fff; border-radius: 12px 12px 2px 12px; }
.intro-copy { position: relative; z-index: 1; text-align: center; color: #fff; font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: clamp(34px, 9.6vw, 72px); line-height: 1.3; }
.ic-l { display: block; white-space: nowrap; opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s ease, transform .7s var(--ease), filter .6s ease; text-shadow: 0 4px 24px rgba(0,0,0,.35); }
.ic-l:nth-child(2) { transition-delay: .25s; }
.ic-l em { font-style: normal; color: #7FD0FF; }
.ic-sub { display: inline-block; margin-top: 18px; padding-top: 14px; border-top: 2px solid #5CC0F2; font-size: clamp(14px, 3.8vw, 20px); font-weight: 700; letter-spacing: .06em; opacity: 0; transition: opacity .6s ease .6s; }
.intro.ph1 .ic-l { opacity: 1; transform: none; filter: none; }
.intro.ph1 .ic-sub { opacity: 1; }
.intro-kari { position: absolute; left: 12px; bottom: 12px; font-size: 11px; color: #fff; background: rgba(255,255,255,.18); padding: 2px 8px; border-radius: 4px; }
.intro-skip { position: absolute; top: 14px; right: 14px; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.7); background: rgba(21,37,74,.4); color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.intro.out { opacity: 0; transition: opacity .5s ease; }

/* --- PC --- */
@media (min-width: 1024px) {
  .fv-grid { padding-top: 56px; gap: 64px; }
  .fv-label { font-size: 15px; }
  .fv-visual .ph { border-radius: 24px; }
  .fv-visual .ph img { max-height: none; aspect-ratio: 1024 / 1100; object-position: 60% 20%; }
  .fv-visual .kari { right: 14px; top: 14px; }
  .fcards { inset: 0; width: auto; display: block; }
  .fc { position: absolute; }
  .fc-ad { left: -64px; top: 5%; width: 262px; }
  .fc-line { right: -36px; bottom: 25%; width: 262px; }
  .fc-ok { right: 7%; bottom: -22px; }
  .fc { font-size: 13px; padding: 12px 14px; }
  .fc-ad b { font-size: 17px; }
  .badge { left: -40px; bottom: 36px; }
  .ticker { margin-top: 64px; padding: 12px 0; }
  .ticker span { font-size: 16px; }
  .tile { width: 260px; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .js .fv .ch, .js .fv .up, .js .fc, .js .bub.me, .js .fv .badge { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .js .fv-visual .ph { clip-path: none; }
  .js .fv-visual .ph img { transform: none; }
  .fv-line path { stroke-dashoffset: 0; }
  .ticker .track, .fv.is-in .fc-ad, .fv.is-in .fc-ok, .fv.is-in .btn-line::after, .fv.is-in .shine .ch { animation: none; }
  .fv-title em::after { transform: scaleX(1); }
}

/* ===== 選ばれる理由（大きく・交互） ===== */
.reason { background: #fff; }
.rs-head { text-align: center; }
.rs-en { color: var(--blue); font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: .3em; }
.rs-title { margin-top: 6px; color: var(--navy); font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: clamp(30px, 8vw, 48px); line-height: 1.3; }
.rs-title em { font-style: normal; color: var(--blue); font-size: 1.35em; margin: 0 .04em; }
.rs-title::after { content: ""; display: block; width: 48px; height: 3px; margin: 16px auto 0; background: var(--blue); border-radius: 2px; }
.rs-lead { margin-top: 14px; font-size: 15px; }
.rs-list { display: grid; gap: 56px; margin-top: 40px; }
.rs-item { display: grid; gap: 22px; align-items: center; }
.rs-ph { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(21,37,74,.14); }
.rs-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease, ease); }
.js .rs-item .rs-ph img { transform: scale(1.08); }
.js .rs-item.is-in .rs-ph img { transform: scale(1); }
.rs-body { position: relative; padding-top: 4px; }
.rs-num { position: absolute; right: 0; top: -18px; z-index: 0; font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 88px; line-height: 1; color: #E2EFF9; letter-spacing: -.02em; pointer-events: none; }
.rs-k { position: relative; color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .18em; }
.rs-body h3 { position: relative; margin: 6px 0 14px; color: var(--navy); font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: clamp(24px, 6.6vw, 34px); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.rs-body h3 em { font-style: normal; color: var(--blue); background: linear-gradient(transparent 68%, #D6EBFA 68%); }
.rs-body p:not(.rs-k) { position: relative; font-size: 15px; line-height: 1.9; }
.rs-body p + p:not(.rs-k) { margin-top: 10px; }
@media (min-width: 768px) {
  .rs-list { gap: 88px; margin-top: 56px; }
  .rs-item { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .rs-item:nth-child(even) .rs-ph { order: 2; }
  .rs-num { font-size: 140px; top: -56px; }
  .rs-item:nth-child(even) .rs-num { right: 0; }
  .rs-k { font-size: 13px; }
}
@media (min-width: 1024px) {
  .rs-item { gap: 72px; }
  .rs-body h3 { font-size: 36px; }
  .rs-num { font-size: 170px; top: -76px; }
  .rs-body p:not(.rs-k) { font-size: 16px; }
}
.plan-price small { font-size: 20px; margin-right: 4px; }
.plan-after { margin: -6px 0 14px; display: inline-block; background: var(--pale); color: var(--navy); font-size: 14px; padding: 2px 10px; border-radius: 4px; }

/* ===== オープニング（ロゴ版）：上の古いオープニングの指定を上書き ===== */
.intro { background: #fff; cursor: pointer; transition: opacity .7s ease, visibility .7s; }
.intro-in { display: grid; justify-items: center; gap: 22px; }
.intro-logo { width: min(56vw, 280px); height: auto; opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .8s ease .1s, transform .9s var(--ease) .1s, filter .8s ease .1s; }
.intro-bar { display: block; width: min(56vw, 280px); height: 2px; background: #E6EEF5; overflow: hidden; border-radius: 2px; }
.intro-bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.6,0,.2,1) .35s; }
.intro.ph1 .intro-logo { opacity: 1; transform: none; filter: none; }
.intro.ph1 .intro-bar i { transform: scaleX(1); }
.intro.out { opacity: 0; visibility: hidden; }
.intro.out .intro-logo { transform: scale(1.04); transition: transform .7s ease; }
.intro-on body { overflow: hidden; }

/* ===== ミスマッチを防ぐ ===== */
.match { background: var(--pale); }
.voices { display: grid; gap: 14px; margin-top: 28px; }
.voice { margin: 0; background: #fff; border-radius: 16px; padding: 20px 20px 18px; box-shadow: 0 8px 24px rgba(21,37,74,.06); }
.voice figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.who { background: var(--navy); color: #fff; font-size: 13px; padding: 2px 12px; border-radius: 999px; }
.who.g { background: var(--blue); }
.voice blockquote { margin: 12px 0 10px; color: var(--navy); font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: clamp(18px, 4.8vw, 22px); line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.miss { font-size: 14px; color: var(--text); padding-top: 10px; border-top: 1px dashed var(--line); word-break: keep-all; overflow-wrap: anywhere; }
.match-turn { margin: 32px 0 0; text-align: center; color: var(--navy); font-size: clamp(18px, 4.8vw, 24px); line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; }
.match-turn b { font-family: "Noto Sans JP", sans-serif; font-weight: 900; background: linear-gradient(transparent 68%, #CFE6F7 68%); }
.msteps { display: grid; gap: 12px; margin-top: 24px; counter-reset: m; }
.msteps li { position: relative; background: #fff; border-radius: 14px; padding: 18px 20px 18px 84px; min-height: 92px; }
.msteps b { position: absolute; left: 20px; top: 18px; color: var(--blue); font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 30px; line-height: 1; }
.msteps h3 { color: var(--navy); font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 20px; line-height: 1.3; }
.msteps p { margin-top: 4px; font-size: 14px; line-height: 1.7; }
@media (min-width: 768px) {
  .voices { grid-template-columns: 1fr 1fr; gap: 20px; }
  .msteps { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .msteps li { padding: 24px 22px 22px; border-radius: 0; min-height: 0; }
  .msteps li:first-child { border-radius: 14px 0 0 14px; }
  .msteps li:last-child { border-radius: 0 14px 14px 0; background: var(--navy); }
  .msteps li:last-child h3, .msteps li:last-child p { color: #fff; }
  .msteps li:last-child b { color: #8FD0FF; }
  .msteps li + li { border-left: 1px solid var(--pale); }
  .msteps li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; width: 16px; height: 16px; margin-top: -8px; background: #fff; border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: rotate(45deg); }
  .msteps b { position: static; display: block; margin-bottom: 10px; font-size: 34px; }
}

/* ===== 料金表（通常価格に線 → モニター価格） ===== */
:root { --accent: #D9365E; }
.ptable { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 1024px) { .price .ptable { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; } }
.prow { margin: 0; display: grid; grid-template-columns: 1fr; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(21,37,74,.06); }
.prow dt { background: var(--navy); color: #fff; font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.4; padding: 14px 18px; }
.prow dt small { display: block; margin-top: 4px; font-family: inherit; font-weight: 400; font-size: 12px; opacity: .8; line-height: 1.5; }
.prow dd { margin: 0; background: #F4F7FA; padding: 14px 18px 16px; color: var(--navy); }
.was { display: inline-block; font-size: 20px; font-weight: 700; color: #8A93A3; text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 3px; letter-spacing: .02em; }
.now { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.mon { background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 4px; align-self: center; }
.now b, .plain b { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 32px; line-height: 1.2; letter-spacing: .01em; }
.now b { color: var(--accent); }
.zero { color: var(--accent); }
.unit { font-size: 14px; color: var(--text); }
.sub { margin-top: 4px; font-size: 13px; color: var(--text); line-height: 1.6; }
.price-notes b { color: var(--accent); }
@media (min-width: 768px) {
  .prow { grid-template-columns: 260px 1fr; }
  .prow dt { display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; }
  .prow dd { padding: 18px 24px; display: flex; flex-direction: column; justify-content: center; }
  .now b, .plain b { font-size: 36px; }
}

/* ===== 本音のやりとり（LINE風） ===== */
.chat { margin: 28px auto 0; max-width: 860px; background: #DCE9F3; border-radius: 20px; padding: 24px 16px; display: grid; gap: 22px; }
.msg { display: flex; align-items: flex-start; gap: 12px; }
.msg.right { flex-direction: row-reverse; }
.av { width: 64px; height: 64px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(21,37,74,.12); }
.msg-body { max-width: calc(100% - 84px); display: grid; }
.msg.right .msg-body { justify-items: end; text-align: right; }
.who-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); margin-bottom: 6px; }
.msg.right .who-line { flex-direction: row-reverse; }
.bubble { position: relative; width: fit-content; background: #fff; color: var(--navy); font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.55; padding: 12px 16px; border-radius: 4px 18px 18px 18px; box-shadow: 0 4px 12px rgba(21,37,74,.08); word-break: keep-all; overflow-wrap: anywhere; text-align: left; }
.msg.right .bubble { background: #8DE07A; color: #13301A; border-radius: 18px 4px 18px 18px; }
.miss { margin-top: 8px; border-top: 0; padding-top: 0; font-size: 13px; color: var(--text); word-break: keep-all; overflow-wrap: anywhere; }
.miss::before { content: "→ "; color: var(--blue); font-weight: 700; }
.js .match .msg { opacity: 0; transform: translateY(16px); }
.js .match.is-in .msg { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.3,1.4,.5,1); }
.js .match.is-in .msg.left { transition-delay: .35s; }
.js .match.is-in .msg.right { transition-delay: 1.0s; }
@media (min-width: 768px) {
  .chat { padding: 36px 40px; gap: 8px; }
  .av { width: 88px; height: 88px; }
  .msg-body { max-width: 70%; }
  .msg.right { margin-top: -4px; }
  .who-line { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .js .match .msg { opacity: 1; transform: none; transition: none; } }
.js .match.is-in .msg:nth-child(1) { transition-delay: .3s; }
.js .match.is-in .msg:nth-child(2) { transition-delay: .9s; }
.js .match.is-in .msg:nth-child(3) { transition-delay: 1.5s; }
.js .match.is-in .msg:nth-child(4) { transition-delay: 2.1s; }
/* 「だから…」を大きく ／ お問い合わせ：写真とLINEの箱を外し、フォームを広く */
.match-turn { font-size: clamp(20px, 5.4vw, 32px); margin-top: 40px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; max-width: 920px; }
  .contact-side { position: static; text-align: center; }
  .contact-side .eyebrow { justify-content: center; }
  .contact-side .sec-lead { margin-left: auto; margin-right: auto; }
  .contact .h2 br.pc-hide { display: none; }
  .form { padding: 44px 56px 40px; }
}

/* ===== 料金：通常価格 → モニター価格（1画面に収める比較表＋切り替わる動き） ===== */
.price2 { background: #fff; padding-top: 64px; }
.price2-head .h2 { font-size: clamp(24px, 6.4vw, 36px); }
.pcmp { margin-top: 22px; display: grid; gap: 8px; }
.pc-row { display: grid; grid-template-columns: 1fr 26px 1fr; grid-template-areas: "k k k" "n a m"; background: #F4F7FA; border-radius: 12px; overflow: hidden; }
.pc-k { grid-area: k; background: var(--navy); color: #fff; font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.4; padding: 9px 14px; }
.pc-k small { display: block; font-family: inherit; font-weight: 400; font-size: 11px; opacity: .78; }
.pc-n, .pc-m { padding: 10px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; align-content: center; }
.pc-n { grid-area: n; color: #7C8696; font-weight: 700; font-size: 16px; }
.pc-n span { position: relative; }
.pc-a { grid-area: a; position: relative; }
.pc-a::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -7px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
.pc-m { grid-area: m; background: #FFF3F6; color: var(--navy); }
.pc-m b { font-family: "Noto Sans JP", sans-serif; font-weight: 900; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pc-row.chg .pc-m b { color: var(--accent); }
.pc-m .u, .pc-n .u { font-size: 11px; font-weight: 700; color: inherit; }
.pc-note { flex-basis: 100%; font-size: 11px; color: var(--text); line-height: 1.5; margin-top: 2px; }
.pc-head { background: transparent; grid-template-areas: "n a m"; }
.pc-head .pc-k { display: none; }
.pc-head .pc-n, .pc-head .pc-m { background: transparent; justify-content: center; font-size: 13px; color: var(--text); padding: 0 4px 2px; }
.pc-head .pc-a::before { display: none; }
.pc-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(217,54,94,.3); white-space: nowrap; }
.pc-badge b { background: #fff; color: var(--accent); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.price2-note { margin-top: 12px; font-size: 12px; line-height: 1.7; color: var(--text); }
.price2-note b { color: var(--accent); }
/* 線を引く（通常価格のうち、モニターで下がるもの） */
.pc-row.chg .pc-n span::after { content: ""; position: absolute; left: -2px; right: -2px; top: 52%; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(1); }
/* 動き */
.js .price2 .pc-row.chg .pc-n span::after { transform: scaleX(0); }
.js .price2 .pc-m, .js .price2 .pc-a::before { opacity: 0; }
.js .price2 .pc-m { transform: translateX(-14px); }
.js .price2 .pc-badge { opacity: 0; transform: scale(.5) rotate(-6deg); }
.js .price2 .pc-n { color: var(--navy); }
.js .price2.is-in .pc-n { color: #7C8696; transition: color .5s ease .5s; }
.js .price2.is-in .pc-row.chg .pc-n span::after { transform: scaleX(1); transition: transform .45s cubic-bezier(.6,0,.2,1) calc(.5s + var(--i, 0) * .08s); }
.js .price2.is-in .pc-badge { opacity: 1; transform: none; transition: opacity .3s ease 1.1s, transform .6s cubic-bezier(.3,1.6,.5,1) 1.1s; }
.js .price2.is-in .pc-a::before { opacity: 1; transition: opacity .3s ease calc(1.35s + var(--i, 0) * .1s); }
.js .price2.is-in .pc-m { opacity: 1; transform: none; transition: opacity .45s ease calc(1.4s + var(--i, 0) * .1s), transform .55s cubic-bezier(.3,1.3,.5,1) calc(1.4s + var(--i, 0) * .1s); }
@media (prefers-reduced-motion: reduce) {
  .js .price2 .pc-m, .js .price2 .pc-a::before, .js .price2 .pc-badge { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .price2 .pc-row.chg .pc-n span::after { transform: scaleX(1) !important; transition: none !important; }
}
@media (min-width: 768px) {
  .pc-row { grid-template-columns: 280px 1fr 48px 1.15fr; grid-template-areas: "k n a m"; }
  .pc-head { grid-template-areas: "k n a m"; }
  .pc-head .pc-k { display: block; background: transparent; }
  .pc-k { padding: 12px 20px; display: flex; flex-direction: column; justify-content: center; font-size: 16px; }
  .pc-k small { font-size: 12px; }
  .pc-n, .pc-m { padding: 12px 20px; }
  .pc-n { font-size: 19px; }
  .pc-m b { font-size: 28px; }
  .pc-head .pc-n, .pc-head .pc-m { font-size: 14px; justify-content: flex-start; padding: 0 20px 4px; }
  .pc-badge { font-size: 15px; padding: 6px 16px; }
  .pc-a::before { width: 12px; height: 12px; margin: -6px 0 0 -9px; border-width: 3px; }
  .price2-note { font-size: 13px; }
}
@media (min-width: 1024px) {
  .price2 { padding: 56px 0 72px; }
  .price2-head { display: flex; align-items: baseline; gap: 24px; }
  .price2-head .eyebrow { margin: 0; }
  .price2-head .h2 { font-size: 32px; }
  .pcmp { margin-top: 18px; gap: 6px; }
  .pc-k, .pc-n, .pc-m { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 767px) {
  .price2 { padding: 48px 0 56px; }
  .price2-head .h2 { font-size: 24px; }
  .pcmp { gap: 6px; margin-top: 16px; }
  .pc-k { padding: 6px 12px; font-size: 14px; }
  .pc-k small { display: none; }
  .pc-n, .pc-m { padding: 6px 12px; }
  .pc-n { font-size: 14px; }
  .pc-m b { font-size: 20px; }
  .pc-note { font-size: 10px; }
}
/* ご相談の流れ：「施設で：」の札をカードの下にそろえる */
@media (min-width: 768px) {
  .steps li { display: flex; flex-direction: column; }
  .steps h3 { min-height: 2.9em; }
  .steps .you { margin-top: auto; display: block; width: 100%; text-align: center; white-space: nowrap; font-size: 12px; padding: 6px 4px; border-radius: 6px; }
  .steps .you { position: relative; top: 0; }
  .steps li p:not(.you) { margin-bottom: 12px; }
}

/* FV：4つの職場の写真を順に切り替える */
.slides { position: relative; }
.slides .sl { margin: 0; }
.slides .sl + .sl { position: absolute; inset: 0; }
.slides .sl img { height: 100%; }
.slides .sl { opacity: 0; transition: opacity 1.2s ease; }
.slides .sl.is-on { opacity: 1; z-index: 1; }
.slides .sl.was { opacity: 1; z-index: 0; transition: none; }
.fv.is-in .slides .sl.is-on img { animation: kb 6.5s linear both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.07); } }
.sl-tag { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.94); color: var(--navy); border-radius: 999px; padding: 6px 14px 6px 16px;
  font-family: "Noto Sans JP", sans-serif; font-weight: 700; font-size: 14px; line-height: 1.5; letter-spacing: .06em;
  box-shadow: 0 4px 14px rgba(21,37,74,.12); }
.sl-name { min-width: 5em; transition: opacity .3s ease; }
.sl-name.swap { opacity: 0; }
.sl-dots { display: flex; gap: 5px; }
.sl-dots i { width: 6px; height: 6px; border-radius: 50%; background: #C9D6E3; transition: background .3s, width .3s; }
.sl-dots i.on { width: 16px; border-radius: 3px; background: var(--blue); }
.js .fv .sl-tag { opacity: 0; transform: translateY(-8px); }
.js .fv.is-in .sl-tag { opacity: 1; transform: none; transition: opacity .5s ease 1s, transform .6s var(--ease) 1s; }

/* 看護師歴の札（写真の上から、見出しの下へ） */
.fv-career { margin-top: 14px; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px;
  background: var(--navy); color: #fff; border-radius: 10px; padding: 6px 14px; font-size: 14px; line-height: 1.6; font-weight: 700; }
.fv-career span:first-child { color: #BFD9F0; margin-right: 4px; }
.fv-career b { font-size: 24px; line-height: 1; margin: 0 2px; color: #fff; }
.fv-career b .cnt { font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .sl-tag { left: 20px; top: 20px; font-size: 15px; }
  .fv-career { font-size: 16px; padding: 7px 18px; }
  .fv-career b { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .fv.is-in .slides .sl.is-on img { animation: none; }
  .js .fv .sl-tag { opacity: 1; transform: none; }
}

/* 拡大したまま次の写真へ：消えていく写真も拡大を続け、元の大きさに戻さない */
.js .fv.is-in .slides .sl img { transition: none; }
.fv.is-in .slides .sl.is-on img,
.fv.is-in .slides .sl.was img { animation: kb 6.5s linear both; }
@media (prefers-reduced-motion: reduce) {
  .fv.is-in .slides .sl.is-on img, .fv.is-in .slides .sl.was img { animation: none; }
}

/* Netlifyの無料プランで右下に出る「Powered by Netlify」マークがあるとき、追従ボタンをその上に逃がす */
.nf-badge .sticky-cta { bottom: 58px; }

/* ===== 文章の見直し（比較表の費用・注記、料金下の補足、ミスマッチの導入） ===== */
.cmp td.us .c-main { display: block; font-weight: 700; }
.cmp td.us .c-sub { display: block; margin-top: 4px; font-size: 13px; line-height: 1.6; font-weight: 400; color: #4B5563; }
.cmp td.us .c-gap { margin-top: 8px; }
.cmp thead th:first-child { color: #6B7280; font-size: 13px; }
.cmp-note { margin-top: 12px; font-size: 13px; line-height: 1.7; color: #6B7280; }
.price-cta-sub { margin: -6px 0 14px; color: var(--text); font-size: 14px; line-height: 1.7; }
.match-lead { margin-top: 14px; }
@media (min-width: 768px) {
  .cmp td.us .c-sub { font-size: 14px; }
  .cmp-note { font-size: 14px; }
  .price-cta-sub { font-size: 15px; }
}
/* 比較表：スマホでは列の幅を固定して、真ん中の列がつぶれないようにする */
@media (max-width: 767px) {
  .cmp table { table-layout: fixed; }
  .cmp thead th:first-child { width: 5.6em; }
  .cmp tbody th, .cmp thead th:first-child { padding-left: 4px; padding-right: 4px; }
  .cmp th, .cmp td { padding: 12px 8px; }
  .cmp tbody th { white-space: normal; width: auto; }
}
/* 税込の小さな表記 */
.cmp .c-tax { font-size: 12px; font-weight: 400; margin-left: 2px; }
.pc-tax { font-size: 11px; font-weight: 400; margin-left: 2px; }
