/* yolidoli コーポレートページ（日本語）— 色・書体・部品は LP（lp/so-01）と共通 */

: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: "Noto Sans JP", "Inter", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
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; }
[lang="en"] { font-family: var(--en); }
.sp { display: none; }
.pc { display: inline; }

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

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  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, .more:hover .btn__arrow { transform: translateX(4px); }
.btn--small { padding: 10px 22px; font-size: 14px; }
.btn--small .btn__arrow { width: 13px; height: 13px; }
.btn--white { background: var(--white); color: var(--green-deep); }
.btn--white:hover { background: #eef7ef; }

/* ---------- 最初に開いたときのロゴの演出（Kagu Rig の LP と同じ発想。短く 1.5 秒） ---------- */
/* 出すかどうかは index.html の head の小さな script が決める（html に has-intro が付いたときだけ出る） */
.intro { display: none; }
.has-intro .intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--white);
  cursor: pointer;
  animation: intro-out .4s ease 1.05s forwards;
}
.intro.is-skip { animation-duration: .25s; animation-delay: 0s; }
.intro__logo { position: relative; width: min(300px, 64vw); }
.intro__logo img { display: block; width: 100%; height: auto; }
/* 文字の部分（右上の「＋」を除いた形）を、左から右へ現す */
.intro__word { clip-path: polygon(0 0, 0 0, 0 25%, 0 25%, 0 100%, 0 100%); animation: intro-word .6s cubic-bezier(.65, 0, .35, 1) .05s forwards; }
/* 右上の「＋」だけを切り抜き、回りながら大きくなって出る */
.intro__plus { position: absolute; inset: 0; clip-path: inset(0 0 75% 91.5%); transform-origin: 95.5% 13.4%; transform: scale(0) rotate(-180deg); animation: intro-plus .5s cubic-bezier(.34, 1.56, .64, 1) .5s forwards; }
@keyframes intro-word { to { clip-path: polygon(0 0, 91.5% 0, 91.5% 25%, 100% 25%, 100% 100%, 0 100%); } }
@keyframes intro-plus { to { transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- ヘッダー（白地。スクロールすると線が出る） ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 48px;
  background: rgba(255, 255, 255, 0);
  color: var(--ink);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.header.is-solid { background: rgba(255, 255, 255, .96); padding: 14px 48px; box-shadow: 0 1px 0 var(--line); }
.header__logo { display: block; width: 132px; height: 36px; }
.logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.header__nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 500; }
.header__nav a { position: relative; padding-bottom: 4px; }
/* 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; }

/* ---------- ファーストビュー（現行サイトの文字主体の構成） ---------- */
/* 下端だけ緑にして、次の白い面の丸めた角から緑がのぞくようにする */
/* 最初の画面は画面の高さに合わせ、下端に「わたしたちについて」の緑の面が少しのぞくようにする（--hero-peek の分だけ見える。Kyogo 2026-11-11） */
/* 中身が画面より高い（スマホなど）ときは中身の高さになり、緑はスクロールすると見える */
.hero {
  --hero-peek: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--hero-peek) + var(--radius-xl));
  min-height: calc(100svh - var(--hero-peek) + var(--radius-xl));
  padding: clamp(96px, 14vh, 200px) 0 calc(var(--radius-xl) + clamp(32px, 6vh, 120px));
  background: var(--white);
}
.hero { position: relative; overflow: hidden; }
/* スクロールすると次の面が上に重なる（LP と同じ）。最初の画面は下端まで普通にスクロールしてから止まる。止める位置は main.js が入れる */
.hero.is-sticky { position: sticky; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
/* 背景の動画（地図の線が日本へ伸びる）。右側に置き、文字の後ろに回り込ませる。動画が再生できないときや動きを減らす設定の人には、最後のコマの静止画を出す */
/* 高さは main.js が「ヘッダーの下から入口のカードの上まで」に合わせる（--map-h）。カードの裏に都市が隠れないように */
.hero__map { position: absolute; top: 76px; right: max(16px, calc((100vw - 1440px) / 2 + 16px)); z-index: 0; height: var(--map-h, 440px); aspect-ratio: 1020 / 930; pointer-events: none; }
.hero__map img, .hero__map video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__video { opacity: 0; }
.hero__map.is-playing .hero__video { opacity: 1; }
.has-js .hero__map-still { opacity: 0; }
.has-js .hero__map.is-still .hero__map-still { opacity: 1; }
.has-js .hero__map.is-playing .hero__map-still { opacity: 0; }
/* 名刺の右上と同じ模様。並びも名刺と同じで、右端ははみ出させて切る。見出しにかからないよう全体を小さめにしている（2026-11-25 に地図の動画から一旦これに戻した） */
.hero__pattern { position: absolute; top: 100px; right: 0; z-index: 0; width: min(480px, 38vw); height: auto; aspect-ratio: 560 / 360; fill: var(--green); pointer-events: none; }
.hero__eyebrow { font-size: 14px; font-weight: 500; color: var(--green-deep); letter-spacing: .08em; margin-bottom: clamp(12px, 2vh, 20px); }
.hero__title {
  font-size: clamp(44px, min(7.2vw, 9.5vh), 100px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero__lead { font-size: clamp(15px, 1.4vw, 18px); color: var(--text); margin-bottom: clamp(40px, 6vh, 80px); }

.entries { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.entry {
  position: relative;
  display: grid;
  gap: 8px;
  padding: clamp(28px, 4.5vh, 40px) 112px clamp(28px, 4.5vh, 40px) 44px;
  border-radius: 24px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.entry:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20, 40, 25, .12); }
.entry--patients { background: var(--green); color: var(--white); border-top-left-radius: 56px; }
.entry--partners { background: var(--soft); color: var(--ink); border-top-right-radius: 56px; }
.entry__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; opacity: .85; }
.entry__title { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.5; }
.entry__text { font-size: 14px; opacity: .9; }
.entry__arrow {
  position: absolute;
  right: 36px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  transition: transform .4s var(--ease);
}
.entry__arrow svg { width: 18px; height: 18px; }
.entry:hover .entry__arrow { transform: translateY(4px); }

/* 最初の画面の文字とカードを、上から順にふわっと出す（約1秒）。ロゴの演出があるときは、その後に始める */
/* backwards にしているのは、出し終わったあとにカードのホバーの動きを邪魔しないため */
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes hero-fade { from { opacity: 0; } }
.hero__eyebrow, .hero__title, .hero__lead, .entry { animation: hero-in .7s var(--ease) backwards; animation-delay: calc(var(--intro-delay, 0s) + var(--d, 0s)); }
.hero__pattern { animation: hero-fade 1s ease backwards; animation-delay: calc(var(--intro-delay, 0s) + .2s); }

.hero__title { --d: .08s; }
.hero__lead { --d: .18s; }
.entry--patients { --d: .28s; }
.entry--partners { --d: .36s; }
.has-intro { --intro-delay: 1.05s; }

/* ---------- 本文 ---------- */
.section { padding: 128px 0; }
.section--soft { background: var(--soft); }
/* 最初の面だけ左上を丸めて緑の地から立ち上げる（現行サイトのトップと同じ発想） */
/* 最初の画面の上に重なってくる面。最初の画面も白なので、上端の薄い影で面の縁と左上の丸みを見せる */
.section--first { position: relative; z-index: 1; margin-top: calc(var(--radius-xl) * -1); border-top-left-radius: var(--radius-xl); background: var(--white); box-shadow: 0 -18px 40px -18px rgba(20, 40, 25, .18); }

.heading { margin-bottom: 56px; }
.heading h2 {
  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 { color: var(--white); }
.heading--light .heading__en { color: var(--white); opacity: .85; }

.lead { max-width: 760px; margin: -24px 0 64px; font-size: 16px; }
.small { margin-top: 28px; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* ---------- わたしたちについて ---------- */
/* わたしたちについて: yolidoli の緑の面。最初の画面の上に重なってくる。中の色は変数ごと白系に置き換える */
.about { --ink: var(--white); --muted: rgba(255, 255, 255, .88); --line: rgba(255, 255, 255, .35); background: var(--green); color: var(--white); box-shadow: none; }
/* 緑の上の白い本文はコントラストが低め（約3:1）なので、少し太くして読みやすくする */
.about__body p { font-weight: 500; }
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.about__body p { line-height: 2.2; }
.about__photo { border-radius: 0 var(--radius-xl) 0 0; overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.facts div { padding: 32px 28px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.facts dd [lang="en"] { font-size: 30px; font-weight: 600; margin-right: 2px; }
.facts small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.facts small [lang="en"] { font-size: inherit; font-weight: inherit; margin: 0; }

/* ---------- 医療ツーリズムとは（誰が見ても分かる簡単な説明と図だけ。くわしくはコラム） ---------- */
.mt__lead { max-width: 760px; margin: -24px auto 56px; font-size: 17px; line-height: 2; text-align: center; }
.mt__lead strong { color: var(--ink); background: linear-gradient(transparent 62%, #d6f0da 62%); }
.mt__flow { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 56px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
/* カードの間の矢印（両向き＝患者さまと病院の両方を支える） */
.mt__node + .mt__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -44px;
  width: 32px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--green), var(--green)) center / 22px 2px no-repeat,
    conic-gradient(from 225deg at 100% 50%, var(--green) 90deg, transparent 0) right center / 7px 14px no-repeat,
    conic-gradient(from 45deg at 0 50%, var(--green) 90deg, transparent 0) left center / 7px 14px no-repeat;
}
.mt__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 36px 28px 34px; border-radius: 24px; background: var(--soft); text-align: center; }
.mt__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--white); color: var(--green-deep); }
.mt__icon svg { width: 38px; height: 38px; }
.mt__name { margin-top: 6px; font-size: 18px; font-weight: 700; color: var(--ink); }
.mt__text { font-size: 15px; line-height: 1.8; color: var(--muted); }
.mt__node--us { justify-content: center; background: var(--green); color: var(--white); border-top-left-radius: 48px; box-shadow: 0 14px 32px rgba(34, 172, 53, .22); }
.mt__node--us .mt__text { color: var(--white); font-weight: 700; font-size: 16px; }
.mt__logo { display: block; width: 150px; margin-bottom: 6px; }
/* 緑の上なので、ロゴを白一色にする */
.mt__logo img { width: 100%; height: auto; filter: brightness(0) invert(1); }
.mt__more { margin-top: 44px; text-align: center; }

/* ---------- 患者さま向け ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.service { display: flex; flex-direction: column; background: var(--white); border-radius: 24px; overflow: hidden; }
.service__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 36px 40px 40px; }
.service__label { font-family: var(--en); font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .08em; }
.service h3 { font-size: 22px; color: var(--ink); line-height: 1.5; }
.service__body > p:not(.service__label) { color: var(--muted); font-size: 15px; }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--green-deep); }

.flow, .limits, .voices { margin-top: 64px; }
.flow h3, .limits h3, .voices h3 { font-size: 20px; color: var(--ink); margin-bottom: 24px; }
.flow__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.flow__list li { position: relative; padding: 28px 22px 30px; background: var(--white); border-radius: 20px; }
/* 次の段へ進む矢印 */
.flow__list li + li::before {
  content: "";
  position: absolute;
  top: 40px;
  left: -13px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: rotate(45deg);
}
.flow__list span { display: block; font-size: 14px; font-weight: 600; color: var(--green); letter-spacing: .08em; margin-bottom: 8px; }
.flow__list h4 { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.flow__list p { font-size: 14px; line-height: 1.85; color: var(--muted); }

.limits { padding: 36px 44px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.limits h3 { font-size: 17px; margin-bottom: 16px; }
.limits li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.9; }
.limits li + li { margin-top: 8px; }
.limits li::before { content: "※"; position: absolute; left: 0; color: var(--muted); }

/* ご利用事例 */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 30px; border-radius: 20px; background: var(--white); }
.case__meta { font-size: 13px; font-weight: 700; color: var(--green-deep); }
.case h4 { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.case > p:not(.case__meta) { font-size: 14px; line-height: 1.85; color: var(--muted); }
.case__quote { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.case__quote p { font-size: 14px; font-weight: 500; line-height: 1.8; color: var(--ink); }
.case__quote p::before { content: "「"; }
.case__quote p::after { content: "」"; }

/* 試作の確認待ちの箇所。公開前に必ず消す */
.tbd {
  display: inline-block;
  margin: 6px 0 0 6px;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff1c2;
  color: #7a5200;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0;
  vertical-align: middle;
}
.facts .tbd { display: block; margin: 8px 0 0; width: fit-content; }
.textlink { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.company__sub { display: block; font-size: 13px; color: var(--muted); }

/* ---------- 個人情報・医療情報 ---------- */
.privacy__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.privacy__list li { padding: 36px 32px; border-radius: 20px; background: var(--soft); border-top: 4px solid var(--green); }
.privacy__list h3 { font-size: 18px; line-height: 1.6; color: var(--ink); margin-bottom: 12px; }
.privacy__list p { font-size: 14px; line-height: 2; color: var(--muted); }

/* ---------- ご利用にあたって（notes/） ---------- */
.notes__title { margin-bottom: 20px; font-size: 22px; line-height: 1.6; color: var(--ink); }
.limits .notes__title { font-size: 20px; }
.container > .limits:first-child { margin-top: 0; }
.notes__lead { margin-bottom: 32px; }
.privacy__list--stack { grid-template-columns: 1fr; gap: 16px; }
.privacy__list--stack li { padding: 28px 32px; }

/* ---------- 医療機関（ロゴを右から左へ流し続ける） ---------- */
.marquee { overflow: hidden; padding: 8px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.hospitals__list { display: flex; gap: 24px; padding-right: 24px; }
.hospitals__list li { display: flex; flex: none; width: 280px; }
.hospitals__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 112px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  transition: box-shadow .3s;
}
.hospitals__list a:hover { box-shadow: 0 8px 24px rgba(20, 40, 25, .08); }
.hospitals__list a:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.hospitals__list img { max-height: 54px; width: auto; }
.hospitals__note { width: min(1120px, 100% - 96px); margin: 28px auto 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 医療機関・パートナー向け ---------- */
.partners { background: var(--green); color: var(--white); border-top-left-radius: var(--radius-xl); }
.partners__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-bottom: 64px; }
.partners__list article { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .45); }
.partners__list span { display: block; font-size: 14px; font-weight: 600; letter-spacing: .08em; opacity: .85; margin-bottom: 14px; }
.partners__list h3 { font-size: 20px; line-height: 1.5; margin-bottom: 16px; }
.partners__list h3 small { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.partners__list p { font-size: 14px; line-height: 2; opacity: .95; }

/* ---------- ニュース ---------- */
.news { border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .3s; }
.news a:hover { background: var(--soft); }
.news time { font-family: var(--en); font-weight: 500; color: var(--green-deep); }
.news span { color: var(--ink); }

/* ---------- 代表メッセージ ---------- */
.message { display: grid; grid-template-columns: 300px 1fr; gap: 80px; align-items: start; }
.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 p { line-height: 2.2; }
.message__name { margin-top: 32px; font-weight: 500; color: var(--ink); }

/* ---------- 会社概要 ---------- */
.company { padding-bottom: 0; }
.company__grid { display: grid; grid-template-columns: 300px 1fr; gap: 80px; }
.company__table { border-top: 1px solid var(--line); }
.company__table div { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.company__table dt { font-weight: 700; color: var(--ink); }
.company__office { width: min(1120px, 100% - 96px); margin: 96px auto 0; border-radius: var(--radius-xl) 0 0 0; overflow: hidden; }
.company__office img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- お問い合わせ ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
/* フォームの方が縦に長いので、WhatsApp の枠はスクロールに付いてくる */
.contact__wa { position: sticky; top: 104px; padding: 48px; border-radius: 24px; background: var(--soft); border-top-left-radius: 56px; }
.contact__wa h3 { font-size: 22px; color: var(--ink); line-height: 1.5; margin-bottom: 16px; }
.contact__wa p:not(.contact__label) { color: var(--muted); font-size: 15px; margin-bottom: 32px; }
.contact__label { font-size: 13px; font-weight: 700; color: var(--green-deep); letter-spacing: .04em; margin-bottom: 8px; }
.contact__note { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.form { display: grid; gap: 20px; }
.form__field { display: grid; gap: 8px; }
.form__field span { font-size: 14px; font-weight: 500; color: var(--ink); }
.form__field em { margin-left: 8px; padding: 1px 8px; border-radius: 4px; background: var(--green); color: var(--white); font-size: 11px; font-style: normal; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #cfd5cf;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(34, 172, 53, .35); border-color: var(--green); }
.form .btn { justify-self: start; margin-top: 8px; }
.form__status { font-size: 14px; color: var(--green-deep); }

/* ---------- フッター ---------- */
.footer { padding: 56px 0 72px; border-top: 1px solid var(--line); }
.footer__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer__inner { display: grid; gap: 10px; min-width: 0; font-size: 13px; color: var(--muted); }
.footer__logo { width: 120px; margin-bottom: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--green-deep); }
.footer__copy { font-family: var(--en); }
.footer__sns { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 6px; }
.footer__sns a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--en); transition: color .2s var(--ease); }
.footer__sns a:hover, .footer__sns a:focus-visible { color: var(--green-deep); }
.footer__sns svg { width: 20px; height: 20px; flex: none; }

/* ---------- コラム（一覧・記事）---------- */
.section--tight { padding: 88px 0; }
.page-hero { padding: 168px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero__title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; color: var(--ink); line-height: 1.4; letter-spacing: .04em; }
.page-hero__en { margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.page-hero__lead { max-width: 760px; margin-top: 32px; font-size: 16px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 10px; color: #b8beb8; }
.breadcrumb a { color: var(--green-deep); }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.column-card a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 32px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.column-card a:hover { box-shadow: 0 10px 28px rgba(20, 40, 25, .08); transform: translateY(-2px); }
.column-card a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.column-card__meta, .article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.column-card__meta time, .article__meta time { font-family: var(--en); }
.column-card__cat { padding: 2px 12px; border-radius: 999px; background: #e9f6eb; color: var(--green-deep); font-size: 12px; font-weight: 700; }
.column-card__title { font-size: 18px; line-height: 1.6; color: var(--ink); }
/* カードの上のサムネ（カードの端まで広げる）。note のアイキャッチと同じ 1200:630 */
.column-card a { --card-pad-x: 32px; --card-pad-top: 32px; overflow: hidden; }
.column-card__thumb { width: calc(100% + var(--card-pad-x) * 2); max-width: none; height: auto; aspect-ratio: 1200 / 630; margin: calc(var(--card-pad-top) * -1) calc(var(--card-pad-x) * -1) 10px; object-fit: cover; background: var(--soft); border-bottom: 1px solid var(--line); }
.column-card__text { font-size: 14px; color: var(--muted); }
/* 記事がまだ無いとき */
.columns__empty { grid-column: 1 / -1; padding: 48px 44px; border: 1px dashed #cfd5cf; border-radius: 20px; text-align: center; color: var(--muted); }
.columns__empty-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.columns__empty p:not(.columns__empty-title) { max-width: 560px; margin-inline: auto; font-size: 15px; }

.container--article { width: min(760px, 100% - 96px); }
.article { padding: 168px 0 96px; }
.article__title { margin: 16px 0 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.55; color: var(--ink); letter-spacing: .03em; }
.article__lead { font-size: 17px; line-height: 2; color: var(--ink); }
.article__body { margin-top: 56px; }
.article__body h2 { margin: 56px 0 20px; padding-left: 16px; border-left: 4px solid var(--green); font-size: 22px; line-height: 1.6; color: var(--ink); }
.article__body h2:first-child { margin-top: 0; }
.article__body p { font-size: 16px; line-height: 2.1; }
.article__body p + p { margin-top: 1.2em; }
.article__body ul, .article__body ol { margin: 20px 0; padding: 24px 28px; border-radius: 16px; background: var(--soft); }
.article__body ul li { position: relative; padding-left: 18px; line-height: 1.9; }
.article__body ul li + li { margin-top: 6px; }
.article__body ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.article__body h3 { margin: 40px 0 14px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.article__body ol:not(.article__steps) { list-style: decimal; padding-left: 2.6em; }
.article__body sup { margin-left: 2px; font-size: 11px; }
.article__body sup a { color: var(--green-deep); }
/* 挿絵（note の記事と同じイラスト） */
.article__figure { margin: 28px 0; }
.article__figure img { width: 100%; height: auto; border-radius: 16px; }
.article__figure figcaption { margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--muted); text-align: center; }
.article__figure--logo img { width: min(200px, 50%); margin-inline: auto; border-radius: 0; }
.article__figure--poster img { width: min(360px, 80%); margin-inline: auto; }
.article__figure--small img { width: auto; max-width: min(100%, 420px); margin-inline: auto; }
.article__figure--chart img { width: auto; max-width: min(100%, 670px); margin-inline: auto; border-radius: 0; }
.article__body .article__cta-title { display: flex; align-items: center; gap: 10px; }
.article__cta-title img { width: 32px; height: 32px; flex: none; }
/* 文の途中にリンクがあるので flex にせず、アイコンは文字と同じ行に置く */
.article__cta-note img { display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px; }
/* 表（横に長いときは表だけ横にスクロール） */
.article__table { margin: 24px 0; overflow-x: auto; }
.article__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article__table th, .article__table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.article__table thead th { font-size: 13px; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--line); }
.article__table tbody th { width: 34%; font-weight: 700; color: var(--ink); }
.article__table .is-japan th, .article__table .is-japan td { background: #eef7ef; color: var(--green-deep); font-weight: 700; }
.article__body .article__table-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 問い合わせ文の例 */
.article__quote { margin: 20px 0; padding: 20px 24px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: #eef7ef; }
.article__quote p { font-size: 15px; line-height: 2; color: var(--ink); }
.article__quote p::before { content: "「"; }
.article__quote p::after { content: "」"; }
/* 用意する書類 */
.article__docs { margin: 20px 0; border-top: 1px solid var(--line); }
.article__docs div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.article__docs dt { font-weight: 700; color: var(--ink); line-height: 1.7; }
.article__docs dd { font-size: 15px; line-height: 1.9; }
/* 全体の流れ（矢印でつなぐ） */
.article__body .article__steps { display: grid; gap: 22px; margin: 20px 0; padding: 0; background: none; counter-reset: step; }
.article__steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 12px; background: var(--soft); font-weight: 700; color: var(--ink); counter-increment: step; }
.article__steps li::before { content: counter(step); display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--white); font-family: var(--en); font-size: 14px; }
.article__steps li + li::after { content: ""; position: absolute; left: 34px; top: -17px; width: 8px; height: 8px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); }
/* 記事の途中の相談の入口 */
.article__cta { margin: 32px 0; padding: 28px 32px; border-radius: 20px; border-top-left-radius: 44px; background: var(--soft); }
.article__body .article__cta-title { margin-bottom: 16px; font-size: 17px; font-weight: 700; color: var(--ink); }
.article__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.article__cta-actions .btn { padding: 14px 24px; font-size: 15px; }
.article__body .article__cta-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.btn--outline { background: var(--white); color: var(--green-deep); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn--outline:hover { background: #eef7ef; }
.article__sources { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.article__sources h2 { margin-bottom: 12px; font-size: 16px; color: var(--ink); }
.article__sources ol { list-style: decimal; padding-left: 1.4em; font-size: 14px; }
.article__sources li + li { margin-top: 6px; }
.article__note { margin-top: 40px; font-size: 13px; line-height: 1.9; color: var(--muted); }
.article__back { margin-top: 40px; text-align: center; }

/* 記事の下の会社紹介 */
.about-box { padding: 44px 48px; border-radius: 24px; border-top-left-radius: 56px; background: var(--white); }
.about-box__label { font-size: 13px; font-weight: 700; color: var(--green-deep); letter-spacing: .04em; margin-bottom: 6px; }
.about-box__title { margin-bottom: 16px; font-size: 22px; line-height: 1.5; color: var(--ink); }
.about-box > p:not(.about-box__label) { font-size: 15px; line-height: 2; }
.about-box__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 28px; }
.about-box__actions .more { margin-top: 0; padding-top: 0; }

.header__nav a[aria-current="page"]::after { transform: scaleX(1); }

/* スマホのメニュー（≡）。パソコンの幅では出さない。押すとヘッダーの下にメニューが開き、≡ が × に変わる */
.header__toggle { display: none; }

/* ページ先頭へ戻る（LP と同じ） */
.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, transform .35s var(--ease);
}
.totop__circle svg { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.totop:hover .totop__circle { background: var(--green-deep); transform: translateY(-2px); }
.totop:hover svg { transform: translateY(-3px); }

/* ---------- スクロール出現（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; }
  .btn__arrow, .header__nav a::after, .entry, .entry__arrow { transition: none; }
  html { scroll-behavior: auto; }
  /* 動きを減らす設定の人には、ロゴは流さずに折り返して並べる */
  .intro { display: none !important; }
  .hero__eyebrow, .hero__title, .hero__lead, .entry, .hero__pattern { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__track .hospitals__list { flex-wrap: wrap; justify-content: center; width: min(1120px, 100% - 40px); margin: 0 auto; padding: 0; }
  .marquee__track .hospitals__list[aria-hidden="true"] { display: none; }
}

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .header__nav { gap: 20px; }
  .columns { grid-template-columns: repeat(2, 1fr); }
  .partners__list { grid-template-columns: 1fr; gap: 40px; }
  .flow__list { grid-template-columns: 1fr; gap: 12px; }
  .flow__list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
  .flow__list li > * { grid-column: 2; }
  .flow__list span { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .flow__list li + li::before { top: -9px; left: 34px; transform: rotate(135deg); }
  .privacy__list { grid-template-columns: 1fr; gap: 16px; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .mt__flow { grid-template-columns: 1fr; gap: 40px; max-width: 460px; }
  .mt__node + .mt__node::before { top: -27px; left: 50%; margin: 0 0 0 -7px; width: 14px; height: 14px; background: conic-gradient(from 135deg at 50% 100%, var(--green) 90deg, transparent 0) center / 14px 7px no-repeat; }
}

/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  :root { --radius-xl: 40px; }
  .sp { display: inline; }
  .pc { display: none; }
  .container, .container--narrow, .company__office { width: calc(100% - 40px); }
  .header, .header.is-solid { padding: 14px 20px; }
  .header__nav { display: none; }
  .header .btn--small { margin-left: auto; padding: 9px 18px; font-size: 13px; }
  .header { gap: 8px; }
  .header__toggle { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .header__toggle span { display: block; width: 22px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .header.is-open .header__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .header__toggle span:nth-child(2) { opacity: 0; }
  .header.is-open .header__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header.is-open { background: var(--white); box-shadow: 0 1px 0 var(--line); }
  .header.is-open .header__nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 4px 20px 16px; background: var(--white); box-shadow: 0 16px 24px -12px rgba(20, 40, 25, .18); font-size: 16px; }
  .header.is-open .header__nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); }
  .header.is-open .header__nav a:last-child { border-bottom: 0; }
  .header.is-open .header__nav a::after { display: none; }
  .header.is-open .header__nav a[aria-current="page"] { color: var(--green-deep); font-weight: 700; }
  .header__logo { width: 110px; height: 30px; }
  .hero { padding: 128px 0 calc(var(--radius-xl) + 72px); }
  .hero__map { top: 64px; right: -14vw; width: 84vw; height: auto; opacity: .45; }
  .hero__pattern { top: 64px; width: 38vw; }
  .hero__title { font-size: clamp(40px, 12vw, 56px); }
  .hero__lead { margin-bottom: 48px; }
  .entries { grid-template-columns: 1fr; gap: 16px; }
  .entry { padding: 28px 88px 28px 28px; }
  .entry__arrow { right: 24px; width: 44px; height: 44px; margin-top: -22px; }
  .section { padding: 96px 0; }
  .heading { margin-bottom: 40px; }
  .lead { margin-bottom: 40px; }
  .about__grid, .services, .message, .company__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .company__grid { gap: 0; }
  .facts { grid-template-columns: 1fr; margin-top: 64px; }
  .facts div { padding: 22px 4px; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .facts dd { font-size: 18px; }
  .facts dd [lang="en"] { font-size: 24px; }
  .cases { grid-template-columns: 1fr; gap: 12px; }
  .mt__lead { margin-bottom: 40px; font-size: 16px; text-align: left; }
  .mt__node { padding: 28px 22px; }
  .case { padding: 24px 22px; }
  .hospitals__list { gap: 12px; padding-right: 12px; }
  .hospitals__list li { width: 200px; }
  .hospitals__note { width: calc(100% - 40px); }
  .service__body { padding: 28px 24px 32px; }
  .flow__list li { padding: 22px 20px; grid-template-columns: 36px 1fr; }
  .flow__list li + li::before { left: 26px; }
  .limits { padding: 28px 22px; }
  .privacy__list li { padding: 28px 24px; }
  .hospitals__list a { height: 84px; padding: 14px; }
  .hospitals__list img { max-height: 40px; }
  .news a { grid-template-columns: 1fr; gap: 4px; padding: 24px 4px; }
  .message__photo { width: 56%; }
  .company__table div { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; }
  .company__table dt { font-size: 13px; color: var(--muted); }
  .company__office { margin-top: 64px; }
  .company__office img { aspect-ratio: 16 / 10; }
  .contact__wa { position: static; padding: 32px 24px; }
  .section--tight { padding: 64px 0; }
  .page-hero { padding: 112px 0 48px; }
  .page-hero__lead { margin-top: 24px; font-size: 15px; }
  .columns { grid-template-columns: 1fr; gap: 16px; }
  .column-card a { padding: 26px 24px; --card-pad-x: 24px; --card-pad-top: 26px; }
  .columns__empty { padding: 36px 24px; }
  .container--article { width: calc(100% - 40px); }
  .article { padding: 112px 0 64px; }
  .article__lead { font-size: 16px; }
  .article__body { margin-top: 40px; }
  .article__body h2 { margin-top: 44px; font-size: 19px; }
  .article__body ul, .article__body ol { padding: 20px; }
  .article__body ol:not(.article__steps) { padding-left: 2.2em; }
  .article__docs div { grid-template-columns: 1fr; gap: 4px; }
  .article__cta { padding: 24px 20px; border-top-left-radius: 32px; }
  .article__cta-actions .btn { width: 100%; justify-content: space-between; }
  .about-box { padding: 32px 24px; border-top-left-radius: 40px; }
  .footer__row { flex-direction: column; align-items: stretch; gap: 40px; }
  .totop { order: -1; align-self: center; flex-direction: column-reverse; gap: 10px; }
}
