/* yolidoli SO LP 試作（日本語）— 色・書体はコーポレートサイト yolidoli.com に合わせる */

:root {
  --green: #22ac35;
  --green-deep: #1a8a2a;
  --ink: #1d1f1d;
  --text: #333633;
  --muted: #6d726d;
  --line: #e3e6e3;
  --soft: #f4f6f4;
  --white: #ffffff;
  --radius-xl: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --en: "Inter", "Noto Sans JP", sans-serif;
  --ja: "Inter", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ja);
  color: var(--text);
  background: var(--white);
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
ul, ol { list-style: none; }
.sp { display: none; }

.container { width: min(1120px, 100% - 96px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 96px); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }
.btn--small .btn__arrow { width: 13px; height: 13px; }
.btn--small { padding: 10px 22px; font-size: 14px; }
.btn--white { background: var(--white); color: var(--green-deep); }
.btn--white:hover { background: #eef7ef; }

/* ---------- ヘッダー（Kagu Rig LP と同じ: 透明 → 地色付き） ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 48px;
  color: var(--white);
  transition: background .5s, color .5s, padding .5s, box-shadow .5s;
}
.header__logo { position: relative; display: block; width: 132px; height: 36px; }
.logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .5s; }
.logo--dark { opacity: 0; }
.header__nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 500; }
.header__nav a { position: relative; padding-bottom: 4px; opacity: .9; transition: opacity .3s; }
.header__nav a:hover, .header__nav a:focus-visible { opacity: 1; }
/* Kagu Rig LP と同じ: カーソルを乗せると下線が左から伸び、外すと右へ抜ける */
.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.header__nav a:hover::after, .header__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; align-items: center; font-family: var(--en); font-size: 13px; font-weight: 500; }
.lang a { padding: 4px 8px; opacity: .65; transition: opacity .3s; }
.lang a + a { border-left: 1px solid currentColor; }
.lang a:hover, .lang a[aria-current="page"] { opacity: 1; }
.lang a[aria-current="page"] { font-weight: 600; }
.header.is-solid {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  padding: 16px 48px;
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .logo--light { opacity: 0; }
.header.is-solid .logo--dark { opacity: 1; }

/* ---------- ヒーロー（固定写真の上に本文が重なって上がる） ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0f1a12;
  /* ヘッダーの下と、上がってくる白い面の上に必ず余白を取り、その間で文字の塊を縦中央に置く */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(112px + env(safe-area-inset-top, 0px)) 0 calc(var(--radius-xl) + 40px);
}
.hero__photo {
  position: absolute;
  inset: 0;
  background: url("../../_shared/assets/hero-hospital.jpg") center 30% / cover no-repeat;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 12, .62) 0%, rgba(10, 16, 12, .38) 45%, rgba(10, 16, 12, .05) 75%),
    linear-gradient(0deg, rgba(10, 16, 12, .35) 0%, rgba(10, 16, 12, 0) 40%);
}
.hero__body {
  position: relative;
  margin-left: max(48px, calc((100vw - 1120px) / 2));
  width: min(680px, 100% - 96px);
  color: var(--white);
  transition: opacity .6s;
}
.hero.is-passed .hero__body, .hero.is-passed .hero__credit { opacity: 0; }
.hero__eyebrow { font-size: 13px; letter-spacing: .08em; opacity: .85; margin-bottom: clamp(12px, 3vh, 28px); }
.hero__title {
  font-size: clamp(26px, min(3.6vw, 5.4vh), 48px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .04em;
  word-break: keep-all;
  margin-bottom: clamp(16px, 4.6vh, 44px);
}
.hero__promise {
  font-size: clamp(16px, min(1.9vw, 2.9vh), 25px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .04em;
  word-break: keep-all;
  margin-bottom: clamp(10px, 2.3vh, 22px);
  padding-left: 18px;
  border-left: 3px solid var(--green);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.hero__lead { font-size: clamp(14px, min(1.15vw, 1.9vh), 16px); font-weight: 500; line-height: 1.95; margin-bottom: clamp(20px, 5.6vh, 56px); text-shadow: 0 1px 10px rgba(0, 0, 0, .3); }
.hero__points { display: grid; gap: 6px; margin-bottom: 36px; font-size: 14px; }
.hero__points li { position: relative; padding-left: 20px; }
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
}
.hero__note { margin-top: 14px; font-size: 12px; opacity: .8; }
.hero__credit { position: absolute; right: 24px; bottom: 18px; font-size: 11px; color: rgba(255, 255, 255, .7); transition: opacity .6s; }
.hero-spacer { height: 100svh; }

/* ---------- 本文 ---------- */
.content { position: relative; z-index: 1; }
.content > section, .footer { background: var(--white); }

/* 最初に上がってくる面: 左上だけ丸める（コーポレートサイトのトップと同じ発想） */
.section--first { border-top-left-radius: var(--radius-xl); margin-top: calc(var(--radius-xl) * -1); background: var(--white); }

.section { padding: 128px 0; }
.section--tight { padding: 120px 0; }
.content > .section--soft { background: var(--soft); }

.heading { margin-bottom: 64px; }
.heading h2, .heading h3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  letter-spacing: .04em;
}
.heading__en {
  margin-top: 10px;
  font-family: var(--en);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
}
.heading--center { text-align: center; }
.heading--light h2, .heading--light .heading__en { color: var(--white); }
.heading--light .heading__en { opacity: .85; }

.lead { margin: -32px 0 48px; color: var(--muted); }
.small { margin-top: 28px; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* 丸だけの箇条書き */
.dots { display: grid; gap: 14px; }
.dots li { position: relative; padding-left: 26px; }
.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--green);
}
.dots--small { gap: 10px; font-size: 14px; }

/* ---------- ご不安（問い） ---------- */
.questions { border-top: 1px solid var(--line); }
.question {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: baseline;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}
.question__num { font-family: var(--en); font-size: 15px; font-weight: 600; color: var(--green); letter-spacing: .08em; }
.question h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.question p { color: var(--muted); }
.questions__tail { margin-top: 48px; font-size: 17px; font-weight: 500; color: var(--ink); }

/* ---------- わたしたちについて ---------- */
.about { padding-bottom: 0; }
.about__office { width: min(880px, 100%); margin: 0 auto 56px; border-radius: 16px; overflow: hidden; }
.about__office img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.about__text { max-width: 880px; margin: 0 auto 144px; font-size: 16px; line-height: 2.2; }

.about__team {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 144px;
}
.about__team figure { border-radius: 0 var(--radius-xl) 0 0; overflow: hidden; }
.about__team img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__team-label { font-family: var(--en); font-weight: 600; color: var(--green); letter-spacing: .08em; margin-bottom: 16px; }
.about__team-text p:last-child { line-height: 2.1; }

.message { display: grid; grid-template-columns: 280px 1fr; gap: 80px; align-items: start; padding-bottom: 144px; }
.message__photo { border-radius: 16px; overflow: hidden; }
.message__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; }
.message__body h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: var(--ink); }
.message__body .heading__en { margin-bottom: 36px; }
.message__body h3 { margin-bottom: 28px; }
.message__body p:not(.heading__en) { line-height: 2.2; }
.message__name { margin-top: 32px; font-weight: 500; color: var(--ink); }

.company { background: var(--green); color: var(--white); padding: 128px 0; border-top-right-radius: var(--radius-xl); }
.company__table { max-width: 860px; margin-left: 120px; display: grid; gap: 22px; }
.company__table div { display: grid; grid-template-columns: 120px 1fr; gap: 40px; }
.company__table dt { font-weight: 700; text-align: right; }
.company__table dd { line-height: 1.9; }

/* ---------- 医療機関 ---------- */
.hospitals__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.hospitals__list li { display: flex; justify-content: center; }
.hospitals__list li { align-self: stretch; }
.hospitals__list a { display: flex; align-items: center; justify-content: center; width: 100%; height: 112px; padding: 20px 24px; border-radius: 16px; background: var(--white); transition: box-shadow .3s, transform .3s var(--ease); }
.hospitals__list a:hover { box-shadow: 0 8px 24px rgba(20, 40, 25, .08); transform: translateY(-2px); }
.hospitals__list a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.hospitals__list img { max-height: 54px; width: auto; }

/* ---------- ご相談いただける内容 ---------- */
.services__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 96px; align-items: start; }
.services__photo { border-radius: var(--radius-xl) 0 0 0; overflow: hidden; }
.services__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.services__photo figcaption { padding-top: 12px; font-size: 12px; color: var(--muted); }
.rows { border-top: 1px solid var(--line); margin-top: 8px; }
.rows div { padding: 30px 0; border-bottom: 1px solid var(--line); }
.rows dt { font-size: 19px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rows dd { color: var(--muted); }

/* ---------- 扱う分野 ---------- */
.areas { border-top: 1px solid #d8ddd8; }
.areas div { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 30px 0; border-bottom: 1px solid #d8ddd8; }
.areas dt { font-size: 19px; font-weight: 700; color: var(--ink); }
.areas dd { color: var(--muted); }

/* ---------- 2カラム ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 112px; }
.two-col--wide-right { grid-template-columns: 1fr 1.15fr; }

.cases { display: grid; gap: 28px; }
.cases li { padding-left: 24px; border-left: 2px solid var(--green); color: var(--muted); }
.cases strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }

/* ---------- サポート ---------- */
.support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.support span { display: block; font-family: var(--en); font-weight: 600; color: var(--green); letter-spacing: .08em; margin-bottom: 14px; }
.support h3 { font-size: 18px; color: var(--ink); line-height: 1.6; margin-bottom: 8px; }
.support p { color: var(--muted); font-size: 15px; }

/* ---------- 流れ ---------- */
.timeline { position: relative; display: grid; gap: 36px; padding-left: 36px; counter-reset: step; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; counter-increment: step; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -36px;
  top: .55em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--white);
}
.timeline h3 { font-size: 18px; color: var(--ink); line-height: 1.6; }
.timeline h3::before { content: counter(step, decimal-leading-zero) "　"; font-family: var(--en); font-size: 14px; color: var(--green); }
.timeline p { color: var(--muted); font-size: 15px; }

/* ---------- 流れ（縦の時系列） ---------- */
.steps { position: relative; max-width: 960px; }
.steps::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 1px; background: #d3d9d3; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 72px 320px 1fr;
  gap: 0 32px;
  align-items: baseline;
  padding: 0 0 48px 48px;
}
.steps li:last-child { padding-bottom: 0; }
.steps::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  margin-left: -.5px;
  background: var(--green);
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  transition: transform .15s linear;
}
.steps li { transition: color .4s; }
.steps li::before { transition: background .45s var(--ease), box-shadow .45s var(--ease); z-index: 1; }
.steps li.is-done::before { background: var(--green); box-shadow: 0 0 0 5px rgba(34, 172, 53, .14); }
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--white);
}
.steps__num { font-family: var(--en); font-weight: 600; color: var(--green); letter-spacing: .08em; }
.steps h3 { font-size: 19px; color: var(--ink); line-height: 1.6; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.9; }

/* ---------- あると助かる情報 ---------- */
.prep { display: grid; grid-template-columns: 1fr 1.3fr; gap: 96px; align-items: start; }
.prep .heading { margin-bottom: 0; }

/* ---------- 注意事項 ---------- */
.notice { background: var(--soft); border-radius: 16px; padding: 48px 56px; }
.notice h2 { font-size: 18px; color: var(--ink); margin-bottom: 20px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 28px 48px 28px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__panel { overflow: hidden; }
.faq__panel > p { padding: 0 0 28px; color: var(--muted); }
.faq__body { display: grid; gap: 14px; padding: 0 0 28px; color: var(--muted); }
.faq__body .dots li::before { border-color: var(--green); }

/* ---------- CTA / フッター ---------- */
.cta-wrap { background: var(--white); }
.cta { background: var(--green); }
.cta { color: var(--white); padding: 128px 0; text-align: center; border-top-left-radius: var(--radius-xl); }
.cta h2 { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.6; margin-bottom: 20px; }
.cta p { opacity: .92; margin-bottom: 40px; }
.footer { padding: 56px 0 120px; }
.footer__inner { display: grid; gap: 10px; font-size: 13px; color: var(--muted); }
.footer__logo { width: 120px; margin-bottom: 10px; }
.footer__copy { font-family: var(--en); }
.footer__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer__inner { min-width: 0; }

/* ページ先頭へ戻る: 緑の丸ボタン。乗せると濃い緑になり、矢印が上へ */
.totop { display: inline-flex; align-items: center; gap: 16px; flex: none; color: var(--ink); font-family: var(--en); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.totop__circle {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(34, 172, 53, .28);
  transition: background .35s, box-shadow .35s, transform .35s var(--ease);
}
.totop__circle svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.totop:hover .totop__circle, .totop:focus-visible .totop__circle { background: var(--green-deep); box-shadow: 0 10px 24px rgba(34, 172, 53, .34); transform: translateY(-2px); }
.totop:hover svg, .totop:focus-visible svg { transform: translateY(-3px); }
.totop:focus-visible { outline: none; }
.totop:focus-visible .totop__circle { outline: 3px solid rgba(34, 172, 53, .35); outline-offset: 3px; }

.sticky-wa { display: none; }

/* ---------- スクロール出現（Kagu Rig LP と同じ） ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .steps::after { transform: scaleY(1); transition: none; }
  .btn__arrow, .header__nav a::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* 背の低い画面（横長のノートPC・横向きスマホ） */
@media (max-height: 680px) {
  .hero__eyebrow, .hero__note { display: none; }
}

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  :root { --radius-xl: 40px; }
  .sp { display: inline; }
  .container, .container--narrow { width: calc(100% - 40px); }
  .header { padding: 18px 20px; }
  .header.is-solid { padding: 12px 20px; }
  .header__nav { display: none; }
  .header .btn--small { display: none; }
  .lang { margin-left: auto; font-size: 12px; }
  .header__logo { width: 110px; height: 30px; }
  .hero { padding: calc(80px + env(safe-area-inset-top, 0px)) 0 calc(var(--radius-xl) + 24px); justify-content: flex-end; }
  .hero__body { margin-left: 20px; width: calc(100% - 40px); }
  .hero__scrim { background: linear-gradient(0deg, rgba(10, 16, 12, .78) 0%, rgba(10, 16, 12, .45) 55%, rgba(10, 16, 12, .2) 100%); }
  .hero__lead { font-size: 14px; }
  .hero__promise { font-size: clamp(16px, 2.4vh, 18px); padding-left: 14px; }
  .hero__points { display: none; }
  .hero__credit { right: 12px; bottom: 10px; font-size: 10px; }
  .section { padding: 96px 0; }
  .heading { margin-bottom: 40px; }
  .question { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
  .about__text { margin-bottom: 96px; }
  .about__team { grid-template-columns: 1fr; gap: 28px; margin-bottom: 96px; }
  .message { grid-template-columns: 1fr; gap: 36px; padding-bottom: 96px; }
  .message__photo { width: 56%; }
  .company { padding: 96px 0; }
  .company__table { margin-left: 0; }
  .company__table div { grid-template-columns: 1fr; gap: 2px; }
  .company__table dt { text-align: left; font-size: 13px; opacity: .85; }
  .hospitals__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hospitals__list a { height: 84px; padding: 14px; }
  .hospitals__list img { max-height: 40px; }
  .services__grid, .two-col, .two-col--wide-right { grid-template-columns: 1fr; gap: 72px; }
  .areas div { grid-template-columns: 1fr; gap: 4px; }
  .support { grid-template-columns: 1fr; gap: 36px; }
  .steps li { grid-template-columns: 1fr; gap: 4px; padding: 0 0 36px 36px; }
  .prep { grid-template-columns: 1fr; gap: 40px; }
  .notice { padding: 32px 24px; }
  .cta { padding: 96px 0; }
  /* スマホでは会社概要のすぐ下（フッターの一番上）に中央寄せで置く */
  .footer__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .totop { order: -1; align-self: center; flex-direction: column-reverse; gap: 10px; }
  .sticky-wa {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 40;
    padding: 16px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    text-align: center;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
  }
  .sticky-wa.is-on { opacity: 1; pointer-events: auto; }
}

/* 英語版: 日本語向けの字間を戻し、見出しは自然に折り返す */
body { letter-spacing: 0; }
h1, h2, h3, .hero__promise { letter-spacing: -.005em; text-wrap: balance; word-break: normal; }
.hero__title { max-width: 15em; line-height: 1.2; }
.hero__promise { max-width: 26em; line-height: 1.5; }
.heading h2 { max-width: 18em; line-height: 1.3; }

