@charset "utf-8";

/* 医院紹介下層 — design_review_clinic-intro.md + docs/design/02_医院紹介.md 準拠 */

.clinic-page {
  scroll-behavior: smooth;
}



.clinic-inpage-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinic-inpage-nav a {
  font-size: 1.15rem;
  line-height: 2.0125rem;
  color: #4e505d;
  text-decoration: none;
  font-weight: 400;
}

.clinic-inpage-nav a:hover,
.clinic-inpage-nav a:focus-visible {
  color: #32504a;
}

/* 診療理念ブロック内ナビ — 02_body-01.png：各項目の先頭に矢印 */
.clinic-inpage-nav--philosophy {
  gap: clamp(2rem, 5.5vw, 4.25rem);
}

.clinic-inpage-nav--philosophy a::before {
  content: "→";
  margin-right: 0.35em;
  font-weight: 400;
  opacity: 0.88;
}

.clinic-philosophy__nav-row {
  position: relative;
  z-index: 1;
  padding-top: clamp(0.5rem, 1.5vw, 1rem);
  margin-bottom: clamp(2.25rem, 5.5vw, 3.5rem);
}

.clinic-philosophy__nav-row .clinic-inpage-nav {
  justify-content: flex-start;
}

/* ----- 診療理念（docs/design/clinic-section/02_body-01.png） ----- */
.clinic-philosophy {
  position: relative;
  background-color: #ffffff;
  background-image: url("../images/sub/bg_rinen.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
  background-origin: border-box;
  overflow: hidden;
  padding-bottom: 6rem;
}

/* 装飾スパークル（背景レイヤー） */
.clinic-philosophy__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.clinic-philosophy__spark {
  position: absolute;
  box-sizing: border-box;
  /* 4光子風：菱形＋回転で近似 */
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.clinic-philosophy__spark--mr-a {
  width: clamp(0.6875rem, 1.7vw, 0.9375rem);
  height: clamp(0.6875rem, 1.7vw, 0.9375rem);
  right: clamp(10%, 14vw, 16%);
  top: clamp(36%, 20vw, 44%);
  background: linear-gradient(180deg, #8b7ab8, #5c4d8a);
  transform: rotate(22deg);
  opacity: 0.72;
}

.clinic-philosophy__spark--mr-b {
  width: clamp(0.5rem, 1.2vw, 0.6875rem);
  height: clamp(0.5rem, 1.2vw, 0.6875rem);
  right: clamp(12%, 16vw, 19%);
  top: clamp(42%, 24vw, 50%);
  background: linear-gradient(200deg, #b4a8d6, #6e5fa3);
  transform: rotate(-15deg);
  opacity: 0.65;
}

.clinic-philosophy__inner {
  position: relative;
  z-index: 1;
  /* キャッチ2行ぶんの実効幅を確保（中間改行で「し、」「婦人科」だけが落ちないように） */
  max-width: min(65rem, 100%);
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.clinic-section-heading--philosophy {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  font-size: 1.625rem;
  line-height: 2.84375rem;
  font-weight: 700;
  color: #4e505d;
  text-align: center;
}

.clinic-philosophy__catch {
  margin: 0 auto clamp(1.5rem, 3.5vw, 2.25rem);
  max-width: 100%;
  font-size: clamp(1.375rem, 3.6vw, 2.75rem);
  line-height: 1.65;
  font-weight: 400;
  color: #4e505d;
  text-align: center;
  letter-spacing: 0.02em;
}

/* デザイン指定の改行位置のまま、行内では単語途中で切れない */
.clinic-philosophy__catch-line {
  display: inline-block;
  white-space: nowrap;
}

.clinic-philosophy__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75rem;
  color: #4e505d;
  text-align: center;
  max-width: 36em;
  margin-inline: auto;
  opacity: 0.98;
}

.clinic-philosophy__pillars-wrap {
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 7vw, 4.75rem);
}

.clinic-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 57.5rem;
  margin-inline: auto;
}

.clinic-pillars__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  text-align: center;
}

/* 02_body-01：カラム間はライトグレーの縦線（コンテンツ高さに対し中央寄せ） */
.clinic-pillars__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 8rem;
  background: #e0e2ea;
}

.clinic-pillars__label {
  margin: 0 0 clamp(0.65rem, 1.5vw, 1rem);
  font-size: 2rem;
  line-height: 3.5rem;
  font-weight: 500;
  color: #4e505d;
}

.clinic-pillars__desc {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.75rem;
  color: #4e505d;
  max-width: 17.5rem;
}

/* ----- 医師紹介（ミント背景フルブリード） ----- */
.clinic-doctors {
  position: relative;
  isolation: isolate;
  padding-block: clamp(3.5rem, 8vw, 5rem);
}

.clinic-doctors::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  background: #f3faf7;
}

.clinic-doctors>.container {
  position: relative;
  z-index: 1;
}

.clinic-section-heading--teal {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: 1.625rem;
  line-height: 2.84375rem;
  font-weight: 700;
  color: #32504a;
  scroll-margin-top: 7rem;
}

.clinic-subheading {
  margin: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  font-size: 1.625rem;
  line-height: 2.84375rem;
  font-weight: 500;
  color: #32504a;
}

/* 120×4px バーは見出しテキストの上（DOM 順: rule → 文言） */
.clinic-subheading__rule {
  display: block;
  width: 7.5rem;
  height: 0.25rem;
  margin-bottom: 0.65rem;
  background: #32504a;
}

.clinic-doctors__greet {}

.clinic-doctors__greet-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16.25rem, 18rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.clinic-doctors__letter {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1a1a1a;
  max-width: 39rem;
}

.clinic-doctors__letter p {
  margin: 0 0 1em;
}

.clinic-doctors__letter p:last-child {
  margin-bottom: 0;
}

.clinic-doctors__commitments {
  margin: 1em 0 1em 0.5em;
  padding: 0;
  list-style: none;
}

.clinic-doctors__commitments li {
  position: relative;
  padding-left: calc(0.875rem + 0.65em);
  margin-bottom: 0.15em;
}

.clinic-doctors__commitments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.875rem;
  height: 0.875rem;
  background: url("../images/sub/icon_kirakira.png") no-repeat center / contain;
}

.clinic-doctors__quote {
  margin: 1em 0;
  font-weight: 500;
  color: #32504a;
}

.clinic-doctors__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.clinic-doctors__photo {
  margin: 0;
  width: 15rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.75rem 2.5rem rgb(50 80 74 / 0.12);
}

.clinic-doctors__photo img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.clinic-doctors__name {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clinic-doctors__name-ja {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5rem;
  font-weight: 400;
  color: #1a1a1a;
}

.clinic-doctors__name-en {
  margin: 0.15em 0 0;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.75rem;
  color: #277e64;
}

.clinic-doctors__creds {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 1em 0.5em;
}

  .clinic-doctors__creds > dl > dt{
    font-weight: 500;
    margin-bottom: 0.3em;
    padding-left: 1.2em;
    position: relative;
  }

  .clinic-doctors__creds > dl > dt::before{
    font-family: FontAwesome;
    content:"\f111";
    display: inline-block;
    position: absolute;
    top: -0.1em;
    left: 0;
    color: #277e64;
    font-weight: normal;
  }

  .ryakureki dl{
    display: flex;
    flex-wrap: wrap;
  }

  .ryakureki dl dt{
    width: 7em;
    margin-bottom: 0.4em;
  }

  .ryakureki dl dd{
    width: calc(100% - 7em);
    margin-bottom: 0.4em;
  }

  .shikaku dd ul li{
    margin-bottom: 0.4em;
  }

  .shikaku dd ul li:last-child{
    margin-bottom: 0;
  }

.clinic-honorary {
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgb(50 80 74 / 0.12);
  margin-bottom: 3rem;
}

.clinic-honorary__grid {
  display: grid;
  grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.clinic-honorary__name-ja {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5rem;
  color: #1a1a1a;
}

.clinic-honorary__name-en {
  margin: 0.35em 0 0;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1.75rem;
  color: #277e64;
}

.clinic-honorary__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1a1a1a;
}

/* ----- 院内・設備紹介 ----- */
.clinic-facility {
  padding-block: clamp(3.5rem, 8vw, 5rem);
  background: #ffffff;
}

.clinic-facility__lead {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  max-width: 60rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #1a1a1a;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.clinic-gallery__cell {
  margin: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0f2f7;
}

.clinic-gallery__cell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- フッター手前の波状装飾 ----- */
.clinic-page-wave {
  display: block;
  width: 100%;
  line-height: 0;
  color: #e8e6f0;
  background: #ffffff;
}

.clinic-page-wave svg {
  display: block;
  width: 100%;
  height: clamp(3.0rem, 8vw, 4.5rem);
}

/*1280px以下*/
@media screen and (min-width:1px) and (max-width:1280px){

}


/*1180px以下*/
@media screen and (min-width:1px) and (max-width:1180px){

    
}

/*1080px以下*/
@media screen and (min-width:1px) and (max-width:1080px){

}

/*ipad*/
@media screen and (min-width:1px) and (max-width:1024px){

}

/* ##########SP########## */
@media screen and (min-width:1px) and (max-width:575px) {
  .clinic-section-heading--teal{
    font-size: 1.4rem;
    margin-bottom: 0.5em;
  }

  .clinic-subheading{
    font-size: 1.2rem;
    margin-bottom: 0;
  }


  .clinic-philosophy {
    background-size: 15% auto;
    padding-bottom: 3rem;
  }

  .clinic-pillars{
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .clinic-pillars__item:not(:last-child)::after{
    content: none;
  }

  .clinic-pillars__item{
    border-bottom: 1px solid #e0e2ea;
    padding-bottom: 1rem;
  }

  .clinic-pillars__item:last-child{
    border-bottom: none;
    padding-bottom: 0;
  }

  .clinic-doctors{
    padding-bottom: 1rem;
  }

  .clinic-doctors>.container{
    padding: 0;
  }

  .clinic-doctors__greet-grid{
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .clinic-doctors__aside{
    width: 100%;
    flex-direction: row-reverse;
    justify-content: flex-start;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .clinic-doctors__photo{
    width: 20vw;
  }

  .clinic-facility{
    padding: 3rem 0;
  }

  .clinic-facility .container{
    padding: 0;
  }

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