@charset "UTF-8";

/* =========================================
   Doctors page (Node ID: qyPrh) specific styles
   - 共通(ヘッダー / フッター / サブページタイトル等) は common.css
   ========================================= */


/* =========================================
   Doctors section wrapper
   - 内側コンテンツ幅は .l-inner-sub (common.css) を使用
   ========================================= */
.doctors {
  background: #FFFFFF;
}


/* =========================================
   Doctor card (Doctor1〜6)
   ========================================= */
.doctor {
  padding: 100px 0;
}

.doctor__row {
  display: flex;
  align-items: center;
  gap: 40px;
}
/* 偶数番目は写真と情報を左右反転 */
.doctor:nth-child(even) .doctor__row {
  flex-direction: row-reverse;
}

/* ---------- Photo ---------- */
.doctor__photo {
  flex-shrink: 0;
  width: 300px;
  aspect-ratio: 300 / 350; /* PC基準の比率を全breakpointで維持 */
  background: #D9D9D9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.doctor__photo-icon {
  width: 48px;
  height: 48px;
  color: #BBBBBB;
}
.doctor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Info column ---------- */
.doctor__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 20px;
}

/* nameTitle: 縦軸の名前+肩書 + 横軸の英名 */
.doctor__name-block {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}
.doctor__name-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.doctor__title {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-meta);
}
.doctor__name {
  margin: 0;
  font-family: var(--font-jp-serif);
  font-size: 28px;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.2;
}
.doctor__en-name {
  flex: 1;
  margin: 0;
  text-align: right;
  font-family: var(--font-en-decor);
  font-size: 70px;
  font-weight: 400;
  color: #f2f2f2;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  user-select: none;
}

/* divider */
.doctor__divider {
  display: block;
  width: 100%;
  height: 1px;
  background: #E0E0E0;
}

.doctor__message {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 2;
  letter-spacing: 0.03em;
}


/* =========================================
   Career & Qualifications card
   ========================================= */
.career-qual {
  margin-top: 32px;
  display: flex;
  align-items: stretch;
  gap: 32px;
  padding: 32px;
  border: 1px solid #CCCCCC;
  border-radius: 4px;
}
.career-qual__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.career-qual__label {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-heading);
}
.career-qual__text {
  margin: 0;
  font-family: var(--font-jp-sans);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.8;
}
.career-qual__divider {
  display: block;
  width: 1px;
  background: #E0E0E0;
  flex-shrink: 0;
}


/* =========================================
   Responsive
   ========================================= */

/* Tab (820 - 1080) */
@media (max-width: 1080px) {
  .doctor {
    padding: 80px 0;
  }
  .doctor__row {
    align-items: flex-start;
    gap: 30px;
  }
  .doctor__photo {
    width: 240px;
  }
  .doctor__en-name {
    font-size: 52px;
  }
  .doctor__name {
    font-size: 24px;
  }
}

/* narrow Tab (768 - 819) — 横並びを維持(写真は Tab 値の 240×280 を踏襲) */
@media (max-width: 819px) {
  .doctor {
    padding: 60px 0;
  }
  .doctor__row {
    gap: 30px;
  }
  .doctor__en-name {
    font-size: 40px;
  }
}

/* SP (〜 767) — 写真と名前エリアを横並び、その下に区切り線+本文 */
@media (max-width: 767px) {
  .doctor {
    padding: 50px 0;
  }

  /* doctor__row を grid に切り替え
     1行目: 写真 + 名前エリア
     2行目: 本文(全幅)  */
  .doctor__row {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "photo name"
      "message message";
    column-gap: 16px;
    row-gap: 20px;
    align-items: center;
  }
  /* 偶数番は写真と名前を左右反転 */
  .doctor:nth-child(even) .doctor__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name photo"
      "message message";
    flex-direction: row; /* row-reverse の指定を打ち消す(grid に切替なので無視されるが念のため) */
  }

  .doctor__photo {
    grid-area: photo;
    width: 120px;
    max-width: none;
    margin: 0;
  }
  /* info を擬似的に解体して grid 配下に直接配置 */
  .doctor__info {
    display: contents;
  }
  .doctor__name-block {
    grid-area: name;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }
  .doctor__divider {
    display: none;
  }
  .doctor__message {
    grid-area: message;
    font-size: 14px;
    line-height: 1.9;
  }

  .doctor__title {
    font-size: 13px;
  }
  .doctor__name {
    font-size: 22px;
  }
  .doctor__en-name {
    width: 100%;
    text-align: left;
    font-size: 28px;
  }

  /* careerQual を縦積み */
  .career-qual {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }
  .career-qual__divider {
    width: 100%;
    height: 1px;
  }
  .career-qual__label {
    font-size: 16px;
  }
  .career-qual__text {
    font-size: 14px;
  }
}
