/* ============================================================
   さくらクリニック 医師紹介ページ — style.css
   ブレークポイント: sp < 768px / tab 768〜1024px / pc > 1024px
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
  --pink: #eeb9b8;
  --pink-shadow: rgba(238, 185, 184, 0.45);
  --bg: #fffaf6;
  --black: #1a1a1a;
  --white: #ffffff;
  --gray: #d9d9d9;

  --radius-card: 16px;
  --radius-btn: 30px;

  --font: "Noto Sans JP", sans-serif;

  --max-w: 1100px;
  --px: 40px;
  --sec-py: 80px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  line-height: 1.7;
  min-width: 320px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =====共通 wrapper ===== */
.doctor-section,
.reason-head,
.reason-section,
.treatment-section,
.detail-section,
.message-section,
.media-section {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.sec_fv {
  background: url("image/fv_doctor.png") top center no-repeat;
  background-size: cover;
}

@media screen and (max-width: 460px) {
  /*-----------------SP----- */
  #recruit .sec_fv {
    background: url("image/fv_doctor.png") top center no-repeat;
    background-size: auto 150px;
  }
}
/* ================================================================
   DOCTOR INTRO
   ================================================================ */
.doctor-section {
  padding-block: var(--sec-py);
}

/* セクションタイトル */
.section-title {
  text-align: center;
  margin-bottom: 58px;
}

.section-title p {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--pink);
  line-height: 1.5;
}

.doctor-name-contents {
  border-bottom: solid 1px;
  padding-bottom: 25px;
}

.doctor-name {
  color: var(--pink);
  font-size: 26px;
  line-height: 1.3;
}

.sns-icon-list {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 13px;
}
.doctor-pic {
  font-size: 20px;
}

.doctor-pic02 {
  font-size: 20px;
}

.sns-icon-img {
  width: 28px;
  height: 28px;
}

.sns-icon-img-02 {
  width: 28px;
  height: 23px;
}
/* 2カラム: テキスト + 写真 */
.doctor-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}

.doctor-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doctor-image-02 img {
  width: 340px;
  /* aspect-ratio: 3 / 4; */
  object-fit: cover;
  border-radius: var(--radius-card);
}

.sns-icon-02 {
  width: 28px;
}

/* .doctor-text > p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
} */

/* キャリアボックス */
.career-boxes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  height: 100px;
}

.career-box {
  flex: 1;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 16px 28px;
  text-align: center;
  box-shadow: 4px 4px 8px var(--pink-shadow);
}

.career-box-02 {
  display: flex;
  align-items: center;
  flex: 1;
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 16px 28px;
  text-align: center;
  box-shadow: 4px 4px 8px var(--pink-shadow);
  justify-content: center;
  height: 80%;
  line-height: 1.3;
}
.career-box-txt {
  font-size: 22px;
  font-weight: 700;
}

.doctor-pic-03 {
  font-size: 22px;
}

.career-box h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  opacity: 0.85;
}

.doctor-comment {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 3px;
}

.career-box p {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.point-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* 医師写真 */
.doctor-image {
  flex-shrink: 0;
}

.doctor-image img {
  width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* フィーチャーカード (3列) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  box-shadow: 4px 4px 8px var(--pink-shadow);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.feature-card p {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

@media screen and (max-width: 767px) {
  .doctor-pic02 {
    font-size: 15px;
  }

  .doctor-name {
    color: var(--pink);
    font-size: 18px;
    line-height: 1.3;
  }
  .doctor-pic {
    font-size: 15px;
  }

  .career-box-txt {
    font-size: 17px;
    font-weight: 700;
  }

  .career-box-02 {
    display: flex;
    align-items: center;
    flex: 1;
    background: var(--pink);
    color: var(--white);
    border-radius: var(--radius-card);
    padding: 16px 0px;
    text-align: center;
    box-shadow: 4px 4px 8px var(--pink-shadow);
    justify-content: center;
    height: 80%;
    line-height: 1.3;
    font-size: 15px;
  }

  .doctor-pic-03 {
    font-size: 20px;
  }

  .reason-text-01 h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pink);
    text-align: center;
    position: relative;
    margin-top: 30px;
  }
}

/* ================================================================
   REASON HEAD (ピンク帯)
   ================================================================ */
.reason-head {
  background: var(--pink);
  max-width: 100%; /* 帯は全幅 */
  padding: 40px var(--px);
  text-align: center;
  margin-bottom: 0;
}

.reason-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

/* ================================================================
   REASON SECTION
   ================================================================ */
.reason-section {
  padding-block: 0 var(--sec-py);
}

.reason-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 64px;
}

.reason-item:last-child {
  border-bottom: none;
}

/* 左右反転

.reason-item.reverse {
  direction: rtl;
}*/

.reason-item.reverse > * {
  direction: ltr;
}

.reason-text span {
  display: block;
  font-size: 72px;
  font-weight: 700;
  color: var(--pink);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -12px;
}

.reason-text h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink);
  text-align: center;
  position: relative;
}

.reason-text h3::before {
  content: "01";
  display: block;
  position: absolute;
  color: rgba(238, 185, 184, 0.2);
  font-size: 70px;
  top: -50px;
}

.reason-text-01 h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink);
  text-align: center;
  position: relative;
}

.reason-text-01 h3::before {
  content: "01";
  display: block;
  position: absolute;
  color: rgba(238, 185, 184, 0.2);
  font-size: 70px;
  top: -50px;
}

.reason-text-02 h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink);
  text-align: center;
  position: relative;
}

.reason-text-02 h3::before {
  content: "02";
  display: block;
  position: absolute;
  color: rgba(238, 185, 184, 0.2);
  font-size: 70px;
  top: -50px;
  right: 0;
}

.reason-text-03 h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pink);
  text-align: center;
  position: relative;
}

.reason-text-03 h3::before {
  content: "03";
  display: block;
  position: absolute;
  color: rgba(238, 185, 184, 0.2);
  font-size: 70px;
  top: -50px;
}

.reason-text p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
}

.doctor-pic-contents {
  color: var(--pink);
  font-weight: 800;
}

.reason-section img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* ================================================================
   TREATMENT SECTION
   ================================================================ */
.treatment-section {
  background: var(--pink);
  max-width: 100%; /* 帯は全幅 */
  padding: 56px var(--px);
  text-align: center;
}

.treatment-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 32px;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--max-w);
  margin-inline: auto;
}

.treatment-grid button {
  background: var(--white);
  color: var(--pink);
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font);
  padding: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.treatment-grid button:hover {
  opacity: 0.85;
}

.point-img {
  width: 5%;
}

/* ================================================================
   DETAIL SECTION (こだわり)
   ================================================================ */
.detail-section {
  padding-block: var(--sec-py);
}

.detail-item {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  padding-block: 48px;
}

.clinic-point {
  text-align: center;
  margin-bottom: 20px;
}

.clinic-point-txt {
  text-align: center;
  color: #eeb9b8;
  font-weight: 500;
  font-size: 20px;
}

.clinic-point-title {
  color: #eeb9b8;
  font-weight: 500;
  font-size: 25px;
}

.detail-item:first-child {
  border-top: none;
}

.detail-text h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pink);
}

.detail-text p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  margin-bottom: 28px;
}

.detail-text button {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

.detail-text button:hover {
  opacity: 0.85;
}

.detail-image {
  background: var(--gray);
  border-radius: var(--radius-card);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #888;
}

/* ================================================================
   MESSAGE SECTION (想い)
   ================================================================ */
.message-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;

  padding: var(--sec-py) var(--px);
  margin-bottom: var(--sec-py);
  position: relative;
}

.message-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: -270px;
  width: 100%;
  height: 100%;
  background: #eeb9b8;

  z-index: -1;
}

.message-text {
  max-width: 540px;
  margin-inline: auto 0; /* 左寄せ調整 */
}

.message-text h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.message-text p {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.9;
}

.message-image img {
  width: 360px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: -4px 4px 12px rgba(255, 255, 255, 0.5);
}

/* ================================================================
   MEDIA SECTION
   ================================================================ */
.media-section {
  padding-bottom: var(--sec-py);
}

.media-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--pink);
  text-align: center;
  margin-bottom: 32px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.media-grid img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ================================================================
   RESPONSIVE — TABLET  768px〜1024px
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --px: 28px;
    --sec-py: 64px;
  }

  /* doctor */
  .doctor-grid {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
  }

  .doctor-image {
    order: -1;
    text-align: center;
  }

  .doctor-image img {
    width: 260px;
    margin-inline: auto;
  }

  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  /* reason */
  .reason-item {
    gap: 36px;
    padding-block: 48px;
  }

  /* detail */
  .detail-item {
    grid-template-columns: 1fr;
  }

  .detail-image {
    max-width: 480px;
  }

  /* message */
  .message-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .message-text {
    max-width: 100%;
    margin-inline: 0;
  }

  .message-image img {
    width: 280px;
    margin-inline: auto;
  }

  /* media */
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .doctor-image-02 img {
    width: 100%;
    /* aspect-ratio: 3 / 4; */
    object-fit: cover;
    border-radius: var(--radius-card);
  }
}

/* ================================================================
   RESPONSIVE — SMARTPHONE  〜767px
   ================================================================ */
@media (max-width: 767px) {
  :root {
    --px: 20px;
    --sec-py: 48px;
  }

  .point-img {
    width: 20%;
  }

  /* section title */
  .section-title h2 {
    font-size: 22px;
  }

  /* career boxes */
  .career-boxes {
    flex-direction: column;
  }

  .career-box {
    width: 100%;
  }

  /* doctor image */
  .doctor-image img {
    width: 100%;
    max-width: 240px;
  }

  /* feature cards */
  .feature-cards {
    grid-template-columns: 1fr;
  }

  /* reason head */
  .reason-head h2 {
    font-size: 18px;
  }

  /* reason items */
  .reason-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 40px;
  }

  .reason-item.reverse {
    direction: ltr;
    display: flex;
    flex-direction: column-reverse;
  }

  .reason-item.reverse img {
    order: -1; /* spでは画像を上に */
  }

  .reason-text span {
    font-size: 52px;
  }

  .reason-text h3 {
    font-size: 20px;
  }

  /* treatment */
  .treatment-section h2 {
    font-size: 18px;
  }

  .treatment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .treatment-grid button {
    font-size: 17px;
    padding: 16px;
  }

  /* detail */
  .detail-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .detail-text h3 {
    font-size: 20px;
  }

  .detail-text button {
    display: block;
    text-align: center;
    width: 100%;
  }

  /* message */
  .message-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .message-text h2 {
    font-size: 20px;
  }

  .message-image img {
    width: 100%;
    max-width: 240px;
  }

  /* media */
  .media-section h2 {
    font-size: 22px;
  }

  .media-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .detail-text h3 {
    font-size: 20px;
    text-align: center;
  }

  .message-section {
    grid-template-columns: 1fr;
    gap: 32px;
    display: flex;
    flex-direction: column-reverse;
  }

  .message-section::before {
    content: "";
    position: absolute;
    top: 200px;
    left: 0;
    width: 100%;
    height: 70%;
    background: #eeb9b8;
    z-index: -1;
  }

  .reason-text-02 h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pink);
    text-align: center;
    position: relative;
  }

  .reason-text-03 h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pink);
    text-align: center;
    position: relative;
  }
}
