@charset "UTF-8";

/* =========================================================
   T CLINIC / ドクター紹介ページ
   ========================================================= */

:root {
  --ink: #2b2a28;
  --ink-2: #4c4a46;
  --ink-3: #6d6a65;
  --line: #2b2a28;
  --line-soft: #d9d4cb;
  --badge: #9a9895;
  --panel: #ffffff;
  --msg-bg: #eeedea;
  --accent: #c99a9a;
  --gold-1: #c5ad78;
  --gold-2: #a98f5c;
  --pink-1: #ecaaa4;
  --pink-2: #e0908d;
  --green-1: #3ad06b;
  --green-2: #06c755;

  --header-h: 76px;
  --content: 1080px;
  --content-narrow: 990px;

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --en: "Cormorant Garamond", "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: linear-gradient(180deg, #fdfcfa 0%, #f8f4ec 45%, #f6f2e9 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--content), 92vw); margin-inline: auto; }
.container--narrow { width: min(var(--content-narrow), 92vw); margin-inline: auto; }

/* =========================================================
   ヘッダー
   ========================================================= */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  z-index: 100;
}

/* ロゴ（正式ロゴ画像が入稿されたら .logo ごと <img> に差し替え） */
.logo {
  display: block;
  margin-right: auto;
  text-decoration: none;
  line-height: 1;
  padding-top: 13px;
}
.logo__mark {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 45px;
  color: #8f8d88;
  margin-left: 26px;
  height: 36px;
}
.logo__name {
  display: block;
  font-family: var(--en);
  font-size: 14px;
  letter-spacing: .46em;
  color: #6b6963;
  margin-top: -5px;
  text-indent: .46em;
}

.header-cta { display: flex; gap: 10px; }

.btn-res {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 21px;
  border-radius: 20px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: .1em;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.btn-res:hover { opacity: .86; transform: translateY(-1px); }
.btn-res svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-res--tel  { background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); }
.btn-res--web  { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
.btn-res--line { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-2);
}
.lang a { text-decoration: none; }
.lang a[aria-current="true"] { font-weight: 500; }
.lang span { color: #bdbab4; }

.nav-toggle {
  width: 42px; height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: .3s;
}
.nav-toggle span:nth-child(2) { width: 12px; justify-self: end; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(19deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { width: 18px; transform: translateY(-3.25px) rotate(-19deg); }

/* ドロワー（メニュー項目は仮。実サイトのグローバルナビに差し替える） */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(253, 252, 250, .98);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer ul { text-align: center; }
.drawer li + li { margin-top: 26px; }
.drawer a {
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: .18em;
  text-decoration: none;
}
.drawer a:hover { color: var(--accent); }

/* =========================================================
   ヒーロー
   ========================================================= */

.hero {
  position: relative;
  margin-top: var(--header-h);
  height: 168px;
  display: grid;
  place-items: center;
  background: url("../img/hero.jpg") center 38% / cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .5);
}
.hero__inner { position: relative; z-index: 1; text-align: center; }
.hero__en {
  font-family: var(--en);
  font-size: 18px;
  letter-spacing: .22em;
  color: var(--accent);
}
.hero__ja {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 33px;
  letter-spacing: .3em;
  text-indent: .3em;
}
.breadcrumb {
  position: absolute;
  z-index: 1;
  top: 20px;
  right: max(4vw, calc((100vw - var(--content)) / 2));
  display: flex;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* =========================================================
   ドクター一覧
   ========================================================= */

.doctors-index { padding: 50px 0 18px; }

.doctor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 14px;
}

/* 縦型カード（写真＝上／情報＝下）。6名を2行で見渡せる形 */
.doctor-card {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #fff;
  text-decoration: none;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.doctor-card:hover {
  border-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}
.doctor-card__photo {
  width: 100%;
  height: auto;          /* HTMLのheight属性を打ち消してaspect-ratioを効かせる */
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top center;
  background: #dcdcdc;
  transition: transform .5s;
}
.doctor-card:hover .doctor-card__photo { transform: scale(1.04); }
.doctor-card > div { padding: 11px 14px 13px; }

/* 肩書タグ（一覧・詳細で共通のゴールドラベル） */
.doctor-card__role,
.doctor__role {
  display: inline-block;
  background: linear-gradient(135deg, #c3a86d, #a4864d);
  color: #fff;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}
.doctor-card__role {
  font-size: 10.5px;
  letter-spacing: .12em;
  padding: 3px 9px;
  text-indent: .12em;
}
.doctor-card__name {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .06em;
}
.doctor-card__en {
  display: block;
  margin-top: 1px;
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.doctor-card__tags {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ece7dd;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .02em;
  color: var(--ink-2);
}

/* =========================================================
   ドクター詳細
   ========================================================= */

.doctor {
  background: var(--panel);
  padding: 50px 52px 54px;
  margin-bottom: 54px;
  scroll-margin-top: calc(var(--header-h) + 14px);
}
.doctor:first-of-type { margin-top: 42px; }

.doctor__head {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 38px;
  align-items: start;
}
.doctor__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: top center;
  background: #dcdcdc;
}
.doctor__photo--empty {
  width: 100%;
  aspect-ratio: 5 / 6;
  background: #dcdcdc;
}
.doctor__role {
  font-size: 12px;
  letter-spacing: .16em;
  padding: 7px 16px;
  text-indent: .16em;
}
.doctor__name {
  margin: 22px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 31px;
  letter-spacing: .12em;
}
.doctor__en {
  display: block;
  margin-top: 3px;
  font-family: var(--en);
  font-size: 17px;
  letter-spacing: .16em;
  color: var(--ink-2);
}
.doctor__catch {
  margin: 24px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: .04em;
}
/* 専門分野（一覧カードの記載を詳細にも出す） */
.doctor__field {
  margin: 20px 0 0;
  padding-top: 17px;
  border-top: 1px solid #ece7dd;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.doctor__field span {
  display: inline-block;
  min-width: 4.6em;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: #a38a58;
}

.sns { display: flex; gap: 11px; margin-top: 20px; }
.sns a { display: block; transition: opacity .25s, transform .25s; }
.sns a:hover { opacity: .8; transform: translateY(-2px); }
.sns img { width: 30px; height: 30px; }

/* 経歴・資格
   全幅の横帯を積む構成。左に見出しセル、右に本文。
   項目数がドクターごとに0〜9件と振れるが、行の高さで吸収されるので左右の高さ合わせが不要。 */
.career {
  margin-top: 44px;
  border-bottom: 1px solid #e4dfd4;
}
.career__row {
  position: relative;
  display: grid;
  grid-template-columns: 176px 1fr;
  gap: 16px 36px;
  padding: 26px 0 28px;
  border-top: 1px solid #e4dfd4;
}
/* 各行の頭に短いゴールドの罫を差す */
.career__row::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 52px; height: 1px;
  background: #b08d55;
}

.career__title {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4dfd4;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .14em;
}
.career__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 52px; height: 1px;
  background: #b08d55;
}

/* 見出しセル（横帯の左） */
.career__row .career__title {
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 16px;
}
.career__row .career__title::after { content: none; }
.career__title-en {
  display: block;
  margin-top: 7px;
  font-family: var(--en);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .2em;
  color: #b08d55;
}

.career__list li {
  display: grid;
  grid-template-columns: 2.2em 1fr;
  align-items: baseline;
  padding: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  text-wrap: pretty;
  break-inside: avoid;
}
/* 経歴＝ノードと縦線のタイムライン */
.career__list--timeline li {
  position: relative;
  grid-template-columns: 26px 1fr;
  align-items: start;
  padding-bottom: 18px;
}
/* ノード＝白丸にゴールドの輪 */
.career__list--timeline li::before {
  content: "";
  box-sizing: content-box;
  width: 10px;
  height: 10px;
  margin: 5px 0 0 4px;
  border: 1.5px solid #b08d55;
  border-radius: 50%;
  background: #fff;
}
/* 次の項目へ繋ぐ縦線（丸の下端から） */
.career__list--timeline li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: #ded4c1;
}
.career__list--timeline li:last-child::after { display: none; }
/* 資格・所属学会＝ゴールドの中黒 */
.career__list--dot li { grid-template-columns: 1.15em 1fr; }
.career__list--dot li::before { content: "・"; color: #b08d55; }

/* 項目が多いリストは2列に流す（幅が足りなければ自動で1列） */
.career__list--flow {
  columns: 16em 2;
  column-gap: 44px;
}

/* Message */
.message {
  position: relative;
  margin-top: 44px;
  padding: 40px 46px 36px;
  background: #f8f5ef;
  overflow: hidden;
}
.message::before {
  content: "”";
  position: absolute;
  left: 20px; top: 16px;
  font-family: var(--en);
  font-size: 94px;
  line-height: 1;
  color: rgba(176, 141, 85, .13);
  pointer-events: none;
}
.message__title {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 13px;
  font-family: var(--en);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  text-align: center;
  letter-spacing: .02em;
}
.message__title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 40px; height: 1px;
  background: #b08d55;
}
.message p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.95;
  letter-spacing: .03em;
}
.message p + p { margin-top: 1.5em; }
/* 書き出しの一段落をリードとして立てる（クラスはJSで付与） */
.message .is-lead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: #22211f;
}

/* 長いメッセージはたたむ */
.message__body { position: relative; }
.message__body.is-clamped { max-height: 224px; overflow: hidden; }
.message__body.is-clamped::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 105px;
  background: linear-gradient(rgba(248, 245, 239, 0), #f8f5ef 78%);
}
.message__more {
  display: block;
  margin: 22px auto 0;
  padding: 10px 30px;
  border: 1px solid #d3c9b6;
  background: none;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.message__more:hover {
  background: #b08d55;
  border-color: #b08d55;
  color: #fff;
}

/* 動画 */
.movie {
  width: min(520px, 100%);
  margin: 32px auto 0;
}
.movie__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.movie__frame img { width: 100%; height: 100%; object-fit: cover; }
.movie__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 68px; height: 48px;
  border-radius: 12px;
  background: #f00;
  display: grid;
  place-items: center;
  transition: background .25s;
}
.movie__frame:hover .movie__play { background: #ff2b2b; }
.movie__play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

/* 学術業績（数字で実績を示し、一覧は畳む） */
.record { margin-top: 46px; }
.record__title { margin-bottom: 22px; }
.record__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #e4dfd4;
  border-bottom: 1px solid #e4dfd4;
}
.record__stat { padding: 24px 18px; text-align: center; }
.record__stat + .record__stat { border-left: 1px solid #e4dfd4; }
.record__num {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 37px;
  line-height: 1;
}
.record__num small {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-2);
}
.record__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: .16em;
  text-indent: .16em;
}
.record__breakdown {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.record__details { margin-top: 22px; }
.record__summary {
  display: block;
  width: max-content;
  margin: 0 auto;
  padding: 10px 30px;
  border: 1px solid #d3c9b6;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-indent: .16em;
  list-style: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.record__summary::-webkit-details-marker { display: none; }
.record__summary:hover {
  background: #b08d55;
  border-color: #b08d55;
  color: #fff;
}
.record__body { margin-top: 32px; }

.papers { margin-top: 40px; }
.record__body > .papers:first-child { margin-top: 0; }
.papers__head { text-align: center; }
.papers__title {
  display: inline-block;
  margin: 0;
  padding: 0 12px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .12em;
}
.papers__sub {
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: .08em;
}
.papers__list {
  counter-reset: paper;
  margin-top: 18px;
}
.papers__list li {
  counter-increment: paper;
  display: grid;
  grid-template-columns: 2.6em 1fr;
  font-size: 12.5px;
  line-height: 1.75;
  letter-spacing: .02em;
}
.papers__list li + li { margin-top: 10px; }
.papers__list li::before {
  content: counter(paper) "．";
  color: var(--ink-2);
}

/* 原稿未入稿の注記（納品前に削除） */
.draft-note {
  margin: 40px 0 0;
  padding: 12px 18px;
  border: 1px dashed #c9a0a0;
  background: #fff8f8;
  font-size: 12.5px;
  line-height: 1.8;
  color: #a2635f;
  letter-spacing: .02em;
}

/* =========================================================
   SP固定CTA
   ========================================================= */

.mobile-cta { display: none; }

/* =========================================================
   レスポンシブ
   ========================================================= */

@media (max-width: 1180px) {
  .btn-res { padding: 0 18px; font-size: 12.5px; }
  .doctor { padding: 60px 44px 64px; }
  .message { padding: 42px 38px 46px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .site-header { padding: 0 16px; gap: 12px; }
  .logo { padding-top: 14px; }
  .logo__mark { font-size: 40px; height: 32px; margin-left: 22px; }
  .logo__name { font-size: 12px; }
  .header-cta { display: none; }

  .hero { height: 150px; }
  .hero__ja { font-size: 27px; }
  .hero__en { font-size: 17px; }
  .breadcrumb { top: 12px; right: 4vw; font-size: 11px; }

  .doctors-index { padding: 54px 0 20px; }
  .doctor-cards { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .doctor-card > div { padding: 14px 14px 18px; }
  .doctor-card__role { font-size: 10.5px; letter-spacing: .12em; padding: 4px 9px; }
  .doctor-card__name { font-size: 20px; margin-top: 11px; letter-spacing: .06em; }
  .doctor-card__en { font-size: 12px; }
  .doctor-card__tags { margin-top: 11px; padding-top: 10px; font-size: 12.5px; }

  .doctor { padding: 44px 20px 50px; margin-bottom: 48px; }
  .doctor:first-of-type { margin-top: 40px; }
  .doctor__head { grid-template-columns: 1fr; gap: 26px; }
  .doctor__photo,
  .doctor__photo--empty { width: min(300px, 100%); margin-inline: auto; aspect-ratio: 3 / 4; }
  .doctor__name { font-size: 30px; margin-top: 20px; }
  .doctor__en { font-size: 17px; }
  .doctor__catch { margin-top: 24px; font-size: 14px; }

  .career { margin-top: 38px; }
  .career__row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0 24px; }
  .career__title { font-size: 16px; }
  .career__row .career__title { font-size: 15px; }
  .career__title-en { display: inline; margin: 0 0 0 10px; font-size: 11px; }
  .career__list li { font-size: 13px; padding-bottom: 9px; }

  .message { margin-top: 40px; padding: 38px 20px 34px; }
  .message::before { left: 12px; top: 14px; font-size: 84px; }
  .message__title { font-size: 26px; margin-bottom: 26px; }
  .message p { font-size: 13.5px; line-height: 2; }
  .message .is-lead { font-size: 14.5px; }
  .message__body.is-clamped { max-height: 240px; }

  .record { margin-top: 44px; }
  .record__stat { padding: 22px 12px; }
  .record__num { font-size: 34px; }
  .record__label { font-size: 12.5px; }
  .record__breakdown { font-size: 11px; }
  .record__body { margin-top: 30px; }
  .papers { margin-top: 40px; }
  .papers__title { font-size: 17px; }
  .papers__list li { grid-template-columns: 2.4em 1fr; font-size: 12.5px; }

  body { padding-bottom: 62px; }

  .mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 95;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .1);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 62px;
    color: #fff;
    font-size: 13px;
    letter-spacing: .06em;
    text-decoration: none;
  }
  .mobile-cta svg { width: 17px; height: 17px; fill: currentColor; }
  .mobile-cta .is-tel  { background: linear-gradient(135deg, var(--pink-1), var(--pink-2)); }
  .mobile-cta .is-web  { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); }
  .mobile-cta .is-line { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }
}

@media (max-width: 420px) {
  .doctor-card__name { font-size: 18px; }
  .doctor-card__tags { font-size: 12px; }
  .record__stats { grid-template-columns: 1fr; }
  .record__stat + .record__stat { border-left: 0; border-top: 1px solid #e4dfd4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
