@charset "UTF-8";
/* =========================================================
   メドキャリ LP「小児科キャリアの1年旅」
   design-guide.md 準拠 ── パステル基調 / やさしい・あたたかい・ふわふわ
   ブランドカラー（紫・ターコイズ）はロゴ・要所のみ
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* Pastel main（カード・帯） */
  --c-pink:     #FFD6E0;
  --c-yellow:   #FFF3C4;
  --c-blue:     #D4ECFA;
  --c-lavender: #E4DBF5;

  /* Pastel BG（セクション背景・広い面積） */
  --c-pink-bg:     #FFF3F6;
  --c-yellow-bg:   #FEF8E4;
  --c-blue-bg:     #EFF6FC;
  --c-lavender-bg: #F5F0FC;

  /* Accent（テキスト・ボタン・アイコン） */
  --c-rose:          #D86A85;
  --c-rose-deep:     #C2546F;
  --c-honey:         #E8A93C;
  --c-sky:           #5A9FD4;
  --c-sky-deep:      #34719F; /* ボタン用にコントラスト確保 */
  --c-lavender-dark: #8B6FC8;

  /* テキスト on パステル */
  --c-on-pink:     #8E3A52;
  --c-on-yellow:   #8B6A1A;
  --c-on-blue:     #2C5F87;
  --c-on-lavender: #5A3D7A;

  /* Brand（差し色のみ） */
  --c-brand-purple:    #3D1E6D;
  --c-brand-turquoise: #3DBDC7;

  /* Neutral */
  --c-bg:       #FFFBF8;
  --c-text:     #4A4458;
  --c-text-sub: #8B8599;
  --c-border:   #F0E8EE;
  --c-white:    #FFFFFF;

  /* Fonts（丸ゴシック系） */
  --font-head: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-body: 'M PLUS Rounded 1c', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;

  /* 形状 */
  --r-card: 22px;
  --r-sm:   14px;
  --r-pill: 999px;

  /* シャドウ（やわらかく薄く） */
  --sh-soft:  0 4px 20px rgba(216, 106, 133, .08);
  --sh-card:  0 4px 18px rgba(74, 68, 88, .07);
  --sh-hover: 0 12px 30px rgba(74, 68, 88, .12);

  --header-h: 72px;
}

/* ---------- 2. リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  font-feature-settings: "palt";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

:focus-visible {
  outline: 2px solid var(--c-sky);
  outline-offset: 3px;
  border-radius: 6px;
}

section[id], div[id] { scroll-margin-top: 88px; }

/* ---------- 3. レイアウト共通 ---------- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }

.center { text-align: center; }
.center .btn { margin-top: 32px; }

/* セクション見出し */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }

.step-label {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  padding: .5em 1.2em;
  border-radius: var(--r-pill);
  background: var(--c-white);
  box-shadow: var(--sh-soft);
  margin-bottom: 18px;
}
.step-num {
  font-size: .68rem;
  letter-spacing: .1em;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-brand-purple);
  font-size: clamp(1.5rem, 5.2vw, 2rem);
  line-height: 1.5;
}

.section-intro {
  margin-top: 18px;
  color: var(--c-text);
  font-size: .96rem;
  line-height: 2;
}
.section-intro strong { font-weight: 700; }

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* 学生向けCTA：Rose */
.btn-primary {
  background: var(--c-rose);
  color: var(--c-white);
  box-shadow: 0 6px 18px rgba(216, 106, 133, .3);
}
.btn-primary:hover { background: var(--c-rose-deep); box-shadow: 0 10px 24px rgba(216, 106, 133, .4); }

/* セカンダリ：白地＋パープル枠 */
.btn-ghost,
.btn-outline {
  background: var(--c-white);
  color: var(--c-brand-purple);
  border-color: var(--c-brand-purple);
  box-shadow: var(--sh-soft);
}
.btn-ghost:hover,
.btn-outline:hover { background: var(--c-lavender-bg); }

/* 医師向けCTA：Sky（学生CTAと配色を分離） */
.btn-accent {
  background: var(--c-sky-deep);
  color: var(--c-white);
  box-shadow: 0 6px 18px rgba(52, 113, 159, .3);
}
.btn-accent:hover { background: #2b5f86; box-shadow: 0 10px 24px rgba(52, 113, 159, .4); }

/* ---------- 5. ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 251, 248, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(74, 68, 88, .07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; }
.logo-img { height: 42px; width: auto; }

.header-doctor-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  color: var(--c-sky-deep);
  background: var(--c-white);
  border: 1.5px solid var(--c-sky);
  padding: 9px 17px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--sh-soft);
  transition: all .25s ease;
}
.header-doctor-link:hover { background: var(--c-sky-deep); color: var(--c-white); border-color: var(--c-sky-deep); }

/* ---------- 6. ① ファーストビュー ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 160px;
  background: linear-gradient(160deg, #FFF1F5 0%, #FEF8E4 48%, #ECF5FC 100%);
  overflow: hidden;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .55;
}
.blob-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 214, 224, .9), transparent 70%);
  top: -60px; right: -70px;
}
.blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(228, 219, 245, .85), transparent 70%);
  bottom: -130px; left: -110px;
}
.blob-3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(212, 236, 250, .9), transparent 70%);
  top: 34%; left: 6%;
}
/* ふわふわ装飾（小さな円） */
.hero-deco::before,
.hero-deco::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero-deco::before {
  width: 16px; height: 16px;
  background: var(--c-honey);
  opacity: .5;
  top: 26%; right: 16%;
}
.hero-deco::after {
  width: 24px; height: 24px;
  background: var(--c-rose);
  opacity: .35;
  bottom: 24%; right: 22%;
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-rose);
  font-size: .9rem;
  letter-spacing: .14em;
  background: var(--c-white);
  padding: .5em 1.4em;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-brand-purple);
  font-size: clamp(1.7rem, 6.2vw, 2.5rem);
  line-height: 1.45;
  letter-spacing: .03em;
}
.hero-sub {
  color: var(--c-text);
  font-size: clamp(.92rem, 3.4vw, 1.05rem);
  line-height: 2.05;
  margin: 22px auto 0;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.scroll-indicator {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-sub);
  font-family: var(--font-head);
  font-size: .66rem;
  letter-spacing: .2em;
}
.scroll-line {
  width: 3px; height: 50px;
  border-radius: 2px;
  background: linear-gradient(var(--c-rose-deep), var(--c-rose));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.6); transform-origin: top; opacity: .65; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

/* ---------- 7. ② 旅のはじまり（Yellow） ---------- */
.section-story { background: var(--c-yellow-bg); }
.section-story .step-label { color: var(--c-on-yellow); }

.story-grid { display: grid; gap: 32px; }

.story-text p { margin-top: 16px; }
.story-text .lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--c-on-yellow);
  margin-top: 0;
}

.pull-quote {
  margin: 24px 0;
  padding: 22px 24px;
  background: var(--c-white);
  border-radius: var(--r-sm);
  border-left: 5px solid var(--c-honey);
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--c-on-yellow);
  line-height: 1.95;
  box-shadow: var(--sh-card);
}

/* プロフィールカード */
.profile-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--sh-card);
  align-self: start;
}
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--c-brand-purple); }
.profile-role { font-size: .82rem; color: var(--c-text-sub); }
.profile-list { display: grid; gap: 12px; }
.profile-list li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  line-height: 1.8;
}
.profile-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 2px solid var(--c-honey);
}

/* アバター */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-pink), var(--c-lavender));
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.45rem;
  flex-shrink: 0;
}
.avatar-lg { width: 66px; height: 66px; font-size: 1.7rem; }
img.avatar { object-fit: cover; }

/* 実績バッジ */
.stats {
  margin-top: 40px;
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--sh-card);
}
.stats-caption {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-on-yellow);
  margin-bottom: 18px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 599px) {
  .stats-grid { gap: 6px; }
  .stat-num { font-size: 2rem; }
  .stat-unit { font-size: .82rem; }
  .stat-label { font-size: .7rem; margin-top: 8px; text-align: center; }
  .stat-note { font-size: .62rem; line-height: 1.5; text-align: center; }
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 3.3rem;
  line-height: 1;
  color: var(--c-rose);
}
.stat-unit {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--c-rose);
  margin-top: 4px;
}
.stat-label {
  margin-top: 10px;
  font-size: .85rem;
  color: var(--c-text-sub);
  line-height: 1.7;
}
.stat-note {
  margin-top: 6px;
  font-size: .72rem;
  color: var(--c-text-sub);
  opacity: .85;
}

/* ---------- 8. ③ 旅の軌跡（Pink） ---------- */
.section-journey { background: var(--c-pink-bg); }
.section-journey .step-label { color: var(--c-on-pink); }

/* 人物相関図：平原さん中心のうずまき（spiral） */
.spiral-map {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1;
  margin: 32px auto 32px;
}

.spiral-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--c-rose);
  overflow: visible;
}
.spiral-lines path {
  stroke: currentColor;
  stroke-width: 4;
  stroke-dasharray: 1 10;
  stroke-linecap: round;
  fill: none;
  opacity: .55;
}

/* 各ノードは avatar サイズ＝ボックスサイズ。ラベルは absolute で浮かせて重なりを避ける */
.spiral-node {
  position: absolute;
  width: clamp(54px, 11vw, 90px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
  color: inherit;
  z-index: 1;
}

.spiral-node-center {
  width: clamp(78px, 15vw, 116px);
  cursor: default;
  z-index: 2;
}

.spiral-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--c-white);
  box-shadow: var(--sh-card);
  background-color: var(--c-white);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.spiral-node-center .spiral-avatar { border-color: var(--c-pink); }

.spiral-node-doctor .spiral-avatar { position: relative; }
.spiral-node-doctor .spiral-avatar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--c-rose);
  pointer-events: none;
  animation: spiralPulse 2.4s ease-in-out infinite;
}
@keyframes spiralPulse {
  0%, 100% { transform: scale(.95); opacity: .25; }
  50%      { transform: scale(1.14); opacity: .6; }
}
.spiral-node-doctor:hover .spiral-avatar,
.spiral-node-doctor:focus-visible .spiral-avatar {
  transform: scale(1.08);
  box-shadow: var(--sh-hover);
}

.spiral-hint {
  position: absolute;
  bottom: 4%;
  right: 4%;
  z-index: 3;
  background: var(--c-rose);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  letter-spacing: .04em;
  animation: spiralHintBob 2.2s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
}
@keyframes spiralHintBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.spiral-node-doctor:focus-visible { outline: none; }
.spiral-node-doctor:focus-visible .spiral-avatar {
  outline: 3px solid var(--c-rose);
  outline-offset: 3px;
}

.spiral-name {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-white);
  color: var(--c-rose);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.68rem, 1.9vw, .8rem);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--sh-soft);
  pointer-events: none;
}
.spiral-name-center {
  background: var(--c-pink);
  color: var(--c-on-pink);
}

.spiral-node-end {
  cursor: default;
  pointer-events: none;
}
.spiral-avatar-end {
  background: var(--c-pink-bg);
  border: 3px dashed var(--c-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-rose);
  box-shadow: none;
  line-height: 1;
  padding-bottom: 6px;
}
.spiral-name-end {
  background: transparent;
  color: var(--c-text-sub);
  box-shadow: none;
}

.journey-closing {
  text-align: center;
  max-width: 620px;
  margin: 32px auto 0;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 2;
  color: var(--c-on-pink);
}

/* 先生詳細モーダル */
.field-tag {
  display: inline-block;
  background: var(--c-pink);
  color: var(--c-on-pink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .73rem;
  padding: .4em .9em;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}

.doctor-modal {
  /* <dialog> 非対応ブラウザでも閉じた状態を維持するための明示フォールバック。
     対応ブラウザでは UA の dialog:not([open]) { display: none } と同等の挙動。 */
  display: none;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;

  width: min(540px, 92vw);
  max-height: 90vh;

  border: 0;
  border-radius: var(--r-card);
  padding: 0;
  background: var(--c-white);
  box-shadow: 0 24px 64px rgba(60, 40, 80, .28);
  color: var(--c-text);
  overflow: hidden;
}
.doctor-modal[open] {
  display: block;
}
.doctor-modal::backdrop {
  background: rgba(60, 40, 80, .55);
  backdrop-filter: blur(2px);
}

.modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--c-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .2s ease;
  box-shadow: var(--sh-soft);
}
.modal-close:hover { background: var(--c-white); transform: scale(1.06); }

/* 記事アイキャッチを全体表示するバナー */
.modal-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 670;
  overflow: hidden;
  background: var(--c-lavender-bg);
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.modal-thumb:hover img { transform: scale(1.03); }

/* タッチデバイスでは誤タップ防止のため、サムネイルから記事へのリンクを無効化
   （末尾の「インタビュー記事を読む →」ボタンは引き続き有効） */
@media (hover: none) and (pointer: coarse) {
  .modal-thumb {
    pointer-events: none;
    cursor: default;
  }
}

.modal-head {
  padding: 22px 26px 14px;
}
.modal-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--c-brand-purple);
  line-height: 1.4;
  margin: 6px 0 2px;
}
.modal-name .hon { font-size: .78rem; color: var(--c-text-sub); margin-left: 4px; }
.modal-affil {
  font-size: .82rem;
  color: var(--c-text-sub);
  line-height: 1.5;
}

.modal-body { padding: 4px 26px 26px; }

.modal-section { margin-bottom: 20px; }
.modal-section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-on-pink);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--c-pink);
  border-radius: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  color: var(--c-rose);
  background: var(--c-pink-bg);
  padding: .35em .85em;
  border-radius: var(--r-pill);
}
.modal-quote {
  font-size: .94rem;
  line-height: 1.95;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--c-rose);
  border-bottom: 2px solid var(--c-pink);
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.modal-link:hover { border-color: var(--c-rose); }

/* ---------- 9. ④ コラム記事（Blue） ---------- */
.section-columns { background: var(--c-blue-bg); }
.section-columns .step-label { color: var(--c-on-blue); }

/* カテゴリタブ */
.column-tabs {
  display: flex;
  gap: 6px;
  max-width: 540px;
  margin: 0 auto 24px;
  padding: 6px;
  background: var(--c-white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  flex-wrap: wrap;
}
.column-tab {
  flex: 1 1 auto;
  min-width: 90px;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--c-text-sub);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.column-tab:hover { color: var(--c-on-blue); }
.column-tab.is-active {
  background: var(--c-blue);
  color: var(--c-on-blue);
}
@media (max-width: 599px) {
  .column-tab { padding: 8px 8px; font-size: .78rem; min-width: 0; }
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
/* モバイル：1 列縦積みは長く感じるため 2 列に */
@media (max-width: 599px) {
  .column-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .column-card-link { padding: 14px 12px; }
  .column-title { font-size: .88rem; line-height: 1.55; }
  .column-cat { font-size: .62rem; padding: .3em .65em; margin-bottom: 6px; }
}
.column-card.is-hidden { display: none; }
.column-card {
  background: var(--c-white);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-card);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.column-card:hover,
.column-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}
/* カード全体をクリック領域に */
.column-card-link {
  display: block;
  padding: 22px;
  color: inherit;
  text-decoration: none;
}
.column-card-link:hover { color: inherit; }
.column-card-link:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: -3px;
}
.column-cat {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .7rem;
  color: var(--c-on-blue);
  background: var(--c-blue);
  padding: .35em .8em;
  border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.column-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-brand-purple);
}
.column-note {
  text-align: center;
  color: var(--c-text-sub);
  font-size: .9rem;
  margin-top: 22px;
}

/* ---------- 10. ⑤ 旅を終えて（Lavender） ---------- */
.section-growth { background: var(--c-lavender-bg); }
.section-growth .step-label { color: var(--c-on-lavender); }

.ba-grid {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.ba-card { border-radius: var(--r-card); padding: 26px 24px; }
.ba-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  padding: .35em 1em;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.ba-card p { font-size: .95rem; line-height: 1.95; }
.ba-before {
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
}
.ba-before .ba-label { background: var(--c-border); color: var(--c-text-sub); }
.ba-before p { color: var(--c-text-sub); }
.ba-after {
  background: var(--c-white);
  border: 2px solid var(--c-lavender-dark);
  box-shadow: var(--sh-soft);
}
.ba-after .ba-label { background: var(--c-lavender); color: var(--c-on-lavender); }
.ba-arrow {
  display: flex;
  justify-content: center;
  color: var(--c-lavender-dark);
  transform: rotate(90deg);
}

.growth-quote {
  position: relative;
  max-width: 740px;
  margin: 42px auto;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.15rem, 4.4vw, 1.55rem);
  line-height: 1.9;
  color: var(--c-brand-purple);
  padding: 14px 10px 0;
}
.growth-quote .quote-mark {
  display: block;
  font-size: 3.2rem;
  line-height: .6;
  color: var(--c-brand-turquoise);
  margin-bottom: 6px;
}
.growth-quote .quote-mark-close {
  margin-top: 6px;
  margin-bottom: 0;
}

.growth-illustration {
  margin: 44px auto 0;
  max-width: 420px;
  padding: 0 16px;
}
.growth-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.cta-illustration {
  max-width: 260px;
  margin: -8px auto 18px;
}
.cta-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}
.growth-quote strong { color: var(--c-rose); }
.growth-quote cite {
  display: block;
  margin-top: 16px;
  font-size: .9rem;
  font-weight: 500;
  font-style: normal;
  color: var(--c-text-sub);
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 8px;
}
@media (max-width: 600px) {
  .words-grid { grid-template-columns: 1fr; }
}

.word-card {
  position: relative;
  padding: 32px 26px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--c-white) 65%, var(--c-lavender-bg));
  box-shadow: 0 6px 22px rgba(123, 95, 175, .08);
  text-align: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.word-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(123, 95, 175, .14);
}

/* 装飾の「」マーク（薄いラベンダーの透かし） */
.word-card::before,
.word-card::after {
  position: absolute;
  font-family: 'Zen Maru Gothic', serif;
  font-weight: 700;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--c-lavender);
  opacity: .25;
  pointer-events: none;
}
.word-card::before {
  content: "「";
  top: 8px;
  left: 14px;
}
.word-card::after {
  content: "」";
  bottom: 8px;
  right: 14px;
}

.word-quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--c-brand-purple);
  margin: 6px 0 18px;
}

.word-from {
  position: relative;
  z-index: 1;
  font-size: .78rem;
  color: var(--c-text-sub);
  font-weight: 500;
  letter-spacing: .04em;
}
.word-from::before {
  content: "—  ";
  color: var(--c-lavender-dark);
  font-weight: 700;
}

.growth-closing {
  text-align: center;
  max-width: 660px;
  margin: 38px auto 0;
  font-size: .96rem;
  line-height: 2.1;
}
.growth-closing strong { color: var(--c-lavender-dark); }

/* ---------- 11. ⑥ 学生CTA（Pink） ---------- */
.section-cta-student {
  background: linear-gradient(160deg, var(--c-pink-bg), #FFE2EA);
}
.cta-box {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 48px 28px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--sh-soft);
}
.cta-eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-rose);
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.cta-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 5.6vw, 2.05rem);
  line-height: 1.5;
  color: var(--c-brand-purple);
}
.cta-text {
  color: var(--c-text);
  font-size: .95rem;
  line-height: 2.05;
  margin: 20px 0 30px;
}

/* ---------- 13. ⑧ メドキャリの活動（Blue） ---------- */
.section-about { background: var(--c-blue-bg); }
.section-about .step-label { color: var(--c-on-blue); }

.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.activity-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--sh-card);
  transition: transform .22s ease, box-shadow .22s ease;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover); }
.activity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--c-blue);
  color: var(--c-on-blue);
  margin-bottom: 16px;
}
.activity-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-brand-purple);
  margin-bottom: 8px;
}
.activity-card p { font-size: .9rem; line-height: 1.85; color: var(--c-text-sub); }

.about-note {
  text-align: center;
  max-width: 620px;
  margin: 34px auto 0;
  font-size: .95rem;
  line-height: 2.1;
}
.about-note strong { color: var(--c-on-blue); }

/* ---------- 14. パートⅡ：協力医師募集（Lavender） ---------- */
.doctors-wrap { background: var(--c-lavender-bg); }

/* 医師① 今後の展望 */
.section-doctor-vision { padding-top: 80px; }
.doctor-head { text-align: center; max-width: 720px; margin: 0 auto; }
.doctor-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  color: var(--c-on-lavender);
  background: var(--c-white);
  padding: .55em 1.3em;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  margin-bottom: 22px;
}
.doctor-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.55rem, 5.6vw, 2.15rem);
  line-height: 1.5;
  color: var(--c-brand-purple);
}
.doctor-vision-text {
  text-align: center;
  max-width: 680px;
  margin: 24px auto 0;
  color: var(--c-text);
  font-size: .96rem;
  line-height: 2.1;
}

/* 医師② 医師の募集 */
.section-doctor-recruit { padding-top: 28px; }
.doctor-recruit-box {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 44px 28px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--sh-soft);
}
.doctor-h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.55;
  color: var(--c-brand-purple);
}
.doctor-recruit-box p {
  font-size: .95rem;
  line-height: 2.05;
  color: var(--c-text);
  margin-top: 16px;
}
.doctor-recruit-box .btn { margin-top: 28px; }

/* 医師③ メリット */
.doctor-h2.center-text { text-align: center; }
.doctor-merit-intro {
  text-align: center;
  color: var(--c-text);
  font-size: .95rem;
  margin: 16px auto 0;
  max-width: 560px;
}
.merit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 18px;
  margin-top: 38px;
}
.merit-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 30px 24px;
  box-shadow: var(--sh-card);
}
.merit-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--c-brand-turquoise);
  display: block;
  margin-bottom: 10px;
}
.merit-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--c-brand-purple);
  line-height: 1.55;
  margin-bottom: 10px;
}
.merit-card p { font-size: .9rem; line-height: 1.9; color: var(--c-text-sub); }

.teamhatto-box {
  margin: 26px auto 0;
  background: var(--c-blue-bg);
  border: 1.5px solid var(--c-blue);
  border-radius: var(--r-card);
  padding: 28px 26px;
  max-width: 820px;
}
.teamhatto-label {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-on-blue);
  margin-bottom: 8px;
}
.teamhatto-box p:not(.teamhatto-label):not(.service-name):not(.teamhatto-note) {
  color: var(--c-text);
  font-size: .93rem;
  line-height: 2;
}

.teamhatto-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 14px;
}
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 6px;
  background: var(--c-white);
  border-radius: var(--r-sm);
  text-align: center;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-blue-bg);
  color: var(--c-on-blue);
}
.service-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  line-height: 1.4;
  color: var(--c-brand-purple);
}

.teamhatto-note {
  text-align: center;
  color: var(--c-text-sub);
  font-size: .88rem;
  line-height: 1.7;
  margin-top: 8px;
}
.teamhatto-note small {
  font-size: .78rem;
  opacity: .85;
}

.section-doctor-merit .center .btn { margin-top: 32px; }

/* ---------- 15. フッター（Pink） ---------- */
.site-footer {
  background: var(--c-pink-bg);
  color: var(--c-text);
  padding: 52px 0 26px;
}
.footer-inner { display: grid; gap: 26px; }
.logo-footer .logo-img { height: 46px; }
.footer-tagline {
  font-size: .85rem;
  line-height: 1.85;
  margin-top: 12px;
  max-width: 320px;
  color: var(--c-text-sub);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a {
  font-size: .86rem;
  color: var(--c-text);
  transition: color .2s ease;
}
.footer-links a:hover { color: var(--c-rose); text-decoration: underline; }
.footer-bottom {
  max-width: 1060px;
  margin: 34px auto 0;
  padding: 22px 20px 0;
  border-top: 1.5px solid var(--c-border);
  font-size: .78rem;
  color: var(--c-text-sub);
}
.footer-bottom strong { color: var(--c-brand-purple); }
.copyright { margin-top: 6px; }

/* ---------- 16. スクロール演出（reveal） ---------- */
/* JS が読み込まれて html.js が付いている時のみアニメーション初期状態を適用。
   JS 無効・読込失敗時はデフォルトでコンテンツを表示。 */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.19, 1, 0.22, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 17. レスポンシブ：タブレット以上 ---------- */
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding: 100px 0; }
  .section-head { margin-bottom: 52px; }

  .hero-actions { flex-direction: row; justify-content: center; }

  .story-grid {
    grid-template-columns: 1fr 320px;
    gap: 44px;
    align-items: start;
  }

  .ba-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
  }
  .ba-arrow { transform: rotate(0deg); }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
  }
  .footer-links { justify-content: flex-end; max-width: 460px; }
}

@media (min-width: 1024px) {
  .section { padding: 116px 0; }
  .logo-img { height: 46px; }
}

/* ---------- 18. アクセシビリティ：モーション抑制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal,
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. ビュー切替（LP ⇔ For Doctors） ---------- */
[data-view][hidden] { display: none !important; }

#view-for-doctors {
  padding-top: var(--header-h);
}
.back-to-top-bar {
  padding-top: 24px;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .9rem;
  color: var(--c-on-lavender);
  background: var(--c-white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.back-to-top:hover {
  background: var(--c-lavender-bg);
  transform: translateY(-1px);
  box-shadow: var(--sh-hover);
}

/* For Doctors ビュー先頭に back-to-top を置いた分、最初のセクションの上余白を詰める */
#view-for-doctors .section-doctor-vision { padding-top: 40px; padding-bottom: 20px; }
/* vision → recruit の間隔を詰める（breakpoint ごとの差分を消す） */
#view-for-doctors .section-doctor-recruit { padding-top: 20px; }
/* 4 枚カードを常に 2×2 配列に（モバイルでも縦4連を防ぐ） */
#view-for-doctors .merit-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 599px) {
  #view-for-doctors .merit-card { padding: 18px 14px; }
  #view-for-doctors .merit-num { font-size: 1.7rem; }
  #view-for-doctors .merit-title { font-size: .92rem; line-height: 1.5; }
  #view-for-doctors .merit-card p { font-size: .78rem; line-height: 1.7; }
}
@media (min-width: 600px) {
  #view-for-doctors .merit-grid { gap: 18px; }
}
/* 本文中の「総合診療科」を強調（タイトルを汎用に戻した分、本文で訴求） */
.doctor-emphasis {
  color: var(--c-brand-turquoise);
  font-weight: 700;
  font-size: 1.08em;
}

/* 次の旅の問い（For Doctors のテーマ・コールアウト） */
.doctor-theme {
  margin: 36px auto 0;
  max-width: 720px;
  text-align: center;
  padding: 8px 0 0;
}
.doctor-theme-label {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--c-on-lavender);
  background: var(--c-white);
  padding: .45em 1.1em;
  border-radius: var(--r-pill);
  box-shadow: var(--sh-soft);
  margin-bottom: 18px;
}
.doctor-theme-question {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  line-height: 1.75;
  color: var(--c-brand-purple);
}
.doctor-theme-question strong {
  color: var(--c-brand-turquoise);
}
.doctor-theme-mark {
  display: inline;
  color: var(--c-brand-turquoise);
  font-size: 1.4em;
  vertical-align: -.05em;
  margin: 0 .1em;
  opacity: .8;
}

/* 学生 CTA 直下に出す「協力医師はこちら」二次リンク */
.for-doctors-link {
  margin-top: 18px;
  text-align: center;
  font-size: .9rem;
  color: var(--c-text-sub);
}
.for-doctors-link a {
  color: var(--c-on-lavender);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.for-doctors-link a:hover { text-decoration: none; }
