@import url("./style.css");
@import url("./hifu-cta.css");
body.page-doctor {
  padding-top: 88px;
  background: #fff;
}

.page-doctor .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.page-doctor .btn-header {
  padding: 13px 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
}

.page-doctor .global-nav a.is-active {
  position: relative;
  color: var(--navy);
}

.page-doctor .global-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 72%;
  height: 2px;
  background: var(--gold);
  transform: translateX(-50%);
}

/* Breadcrumb */
.breadcrumb {
  position: absolute;
  top: 0;
  padding: 16px 0 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 8px; color: #ccc; }

/* Hero */
.doctor-hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  min-height: clamp(420px, 44vw, 560px);
}

.doctor-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 18px 0 34px;
}

.doctor-hero-copy {
  position: relative;
  z-index: 2;
  flex: 0 0 48%;
  max-width: 560px;
  padding: 18px 32px 0 0;
  align-self: center;
}

.doctor-title {
  margin: 14px 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(44px, 5.2vw, 66px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: 0.08em;
}

.doctor-title small {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.doctor-lead {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 2;
  color: #3a4558;
}

.doctor-hero-visual {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  right: calc(50% - 50vw);
  z-index: 1;
  overflow: hidden;
}

.doctor-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.9) 40%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.doctor-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Sections */
.doctor-section {
  padding: 56px 0;
}

.doctor-section--instagram {
  background: #f9f9f9;
  padding-top: 48px;
  padding-bottom: 48px;
}

.doctor-section--staff {
  padding-bottom: 64px;
}

.doctor-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-align: center;
}

.doctor-section-crown {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(52%) sepia(28%) saturate(838%) hue-rotate(6deg) brightness(92%) contrast(88%);
}

.card {
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(14, 35, 70, 0.08);
}

/* Director card */
.director-card {
  display: grid;
  grid-template-columns: minmax(200px, 260px) 1fr minmax(200px, 280px);
  gap: 32px 36px;
  align-items: start;
  padding: 36px 40px;
}

.director-card + .director-card {
  margin-top: 28px;
}

.director-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}

/* 院長カード：左カラムの写真をカード全体の高さまで拡大 */
#nakanishi.director-card {
  align-items: stretch;
}

#nakanishi .director-photo {
  display: flex;
  overflow: hidden;
  border-radius: 6px;
}

#nakanishi .director-photo img {
  flex: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: 0;
}

.director-role {
  margin: 0 0 6px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.director-name {
  margin: 0 0 10px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.director-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.director-school {
  margin: 0 0 16px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  color: #3a4558;
}

.director-tagline {
  margin: 0 0 4px;
  font-family: "Noto Serif JP", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.director-tagline--sub {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 14px;
}

.director-bio {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  line-height: 2;
  color: #3a4558;
}

.director-bio p {
  margin: 0 0 4px;
}

.director-bio p:last-child {
  margin-bottom: 0;
}

.btn-director-detail {
  min-width: 200px;
  padding: 12px 28px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  font-weight: 500;
  border-color: rgba(7, 31, 72, 0.35);
}

.btn-director-detail:hover {
  background: rgba(255, 255, 255, 0.85);
}

.director-credentials h4 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ebe6df;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.director-credentials-group + .director-credentials-group {
  margin-top: 22px;
}

.director-credentials-group p {
  margin: 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: #3a4558;
}

.director-credentials ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.director-credentials li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.7;
  color: #3a4558;
}

.director-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Instagram */
.doctor-insta-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 24px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.06em;
}

.doctor-insta-icon {
  color: var(--navy);
  flex-shrink: 0;
}

.doctor-insta-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.doctor-insta-thumb {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #eee;
  aspect-ratio: 1 / 1;
}

.doctor-insta-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.doctor-insta-thumb:hover img {
  transform: scale(1.04);
}

.btn-block-center {
  display: flex;
  width: min(520px, 100%);
  margin: 0 auto;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  font-weight: 500;
  border-color: rgba(7, 31, 72, 0.35);
  letter-spacing: 0.04em;
}

.btn-block-center:hover {
  background: #fff;
}

/* Staff grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

.staff-card {
  background: #fff;
  border: 1px solid #ebe6df;
  border-radius: 8px;
  padding: 0 0 20px;
  box-shadow: 0 8px 22px rgba(14, 35, 70, 0.06);
  overflow: hidden;
}

.staff-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.staff-role {
  margin: 14px 16px 4px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.staff-name {
  margin: 0 16px 10px;
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.staff-name-en {
  display: block;
  margin-top: 4px;
  font-family: "Petit Formal Script", cursive;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
}

.staff-bio {
  margin: 0 16px 14px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  line-height: 1.85;
  color: #3a4558;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.staff-specialties {
  margin: 0 16px;
  padding-top: 12px;
  border-top: 1px solid #f0ebe4;
}

.staff-specialties-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 11px;
  color: var(--muted);
}

.staff-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.staff-tags span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f1ee;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 10px;
  color: #5a6578;
  line-height: 1.4;
}

/* CTA */
.hifu-cta h2 {
  margin: 0 0 8px;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hifu-cta p {
  margin: 0 0 22px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 13px;
  opacity: 0.9;
}

.hifu-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hifu-cta-actions .btn-hero {
  min-width: 320px;
  padding: 14px 22px;
  border-radius: 4px;
}

.hifu-cta .btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hifu-cta .btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hifu-cta .btn-cta-gold {
  background: linear-gradient(135deg, #b07a32 0%, #d4a85f 50%, #c3934c 100%);
  color: #fff;
  border: 1px solid transparent;
}

.hifu-cta .btn-cta-gold:hover {
  opacity: 0.92;
}

/* Footer */
.page-doctor .site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 34px 0 18px;
  position: relative;
}

.page-doctor .footer-main {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.5fr;
  gap: 34px;
  align-items: start;
}

.page-doctor .footer-logo img {
  width: 170px;
  height: auto;
}

.page-doctor .footer-lead {
  margin: 12px 0 0;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.page-doctor .footer-address {
  margin: 0 0 8px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

.page-doctor .footer-tel {
  margin: 0 0 16px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.06em;
}

.page-doctor .footer-tel span {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.75);
}

.page-doctor .footer-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-doctor .footer-buttons .btn-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 4px;
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  min-height: 38px;
  min-width: 168px;
}

.page-doctor .footer-buttons .btn-footer-line {
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
}

.page-doctor .footer-buttons .btn-footer-line:hover {
  background: rgba(255, 255, 255, 0.08);
}

.page-doctor .footer-buttons .btn-footer-counsel {
  background: linear-gradient(135deg, #b07a32 0%, #d4a85f 50%, #c3934c 100%);
  border: 1px solid transparent;
  color: #fff;
}

.page-doctor .footer-buttons .btn-footer-counsel:hover {
  opacity: 0.92;
}

.page-doctor .footer-navs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.page-doctor .footer-nav-col {
  display: grid;
  gap: 10px;
}

.page-doctor .footer-nav-col a {
  font-family: var(--gb-sans, "Noto Sans JP", sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.page-doctor .footer-nav-col a:hover {
  color: #fff;
}

.page-doctor .footer-bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-doctor .footer-bottom .copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-size: 12px;
}

.page-doctor .back-to-top {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  text-decoration: none;
  line-height: 1;
}

.page-doctor .back-to-top:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 1100px) {
  .director-card {
    grid-template-columns: 220px 1fr;
  }

  .director-credentials {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid #f0ebe4;
  }

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

/* —— SP: doctor page —— */
@media (max-width: 900px) {
  .doctor-lead br {
    display: none;
  }

  .doctor-section {
    padding: 40px 0;
  }

  .doctor-section--instagram {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .doctor-section-heading {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .doctor-title small {
    font-size: clamp(14px, 3.8vw, 18px);
  }

  .director-card + .director-card {
    margin-top: 20px;
  }

  .director-card {
    gap: 24px 28px;
    padding: 28px 24px;
  }

  .director-name {
    margin-bottom: 14px;
    font-size: clamp(22px, 5.5vw, 28px);
  }

  .director-bio {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.85;
  }

  .director-school {
    font-size: 12px;
    margin-bottom: 12px;
  }

  .director-tagline {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .director-tagline--sub {
    font-size: 12px;
  }

  .btn-director-detail {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .doctor-insta-heading {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .doctor-insta-gallery {
    gap: 10px;
    margin-bottom: 22px;
  }

  .btn-block-center {
    width: 100%;
    max-width: none;
    min-height: 44px;
    font-size: 12px;
  }

  .page-doctor .hifu-cta-actions .btn-hero {
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .doctor-section {
    padding: 32px 0;
  }

  .doctor-section > .container {
    width: min(1312px, 92vw);
  }

  .doctor-section--instagram {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .doctor-section-heading {
    margin-bottom: 20px;
    font-size: 18px;
    gap: 8px;
  }

  .doctor-section-crown {
    width: 24px;
    height: 24px;
  }

  .director-card {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    gap: 16px;
  }

  .director-photo {
    max-width: min(280px, 72vw);
    margin: 0 auto;
    width: 100%;
  }

  #nakanishi.director-card {
    align-items: start;
  }

  #nakanishi .director-photo img {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .director-main {
    text-align: center;
  }

  .director-role {
    font-size: 13px;
  }

  .director-bio br {
    display: none;
  }

  .director-credentials {
    padding-top: 12px;
    text-align: left;
  }

  .director-credentials h4 {
    font-size: 13px;
  }

  .director-credentials li {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .doctor-insta-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .staff-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .doctor-section {
    padding: 28px 0;
  }

  .doctor-section-heading {
    font-size: 17px;
  }

  .director-card {
    padding: 16px 14px;
  }

  .director-card + .director-card {
    margin-top: 16px;
  }

  .director-photo {
    max-width: 100%;
  }

  .director-name {
    font-size: 22px;
  }

  .director-bio {
    font-size: 11px;
  }

  .btn-director-detail {
    padding: 11px 20px;
    font-size: 12px;
  }

  .doctor-insta-heading {
    font-size: 15px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .doctor-insta-gallery {
    gap: 6px;
    margin-bottom: 18px;
  }

  .btn-block-center {
    min-height: 42px;
    padding: 11px 16px;
    font-size: 11px;
  }

  .doctor-hero-visual::after{background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .9) 7%, transparent 28%);width: 100%;}
  .doctor-hero-visual{left:0;right:0;}
  .doctor-hero-visual img{object-position: 32% center;}
  .doctor-title{margin: 156px 0 10px;}
  .doctor-hero-inner .breadcrumb{top:4px; left:0;}
  .doctor-lead{font-size:12px;}
}
