/* ======== メインビジュアル(PC) ======== */
.mv {
  position: relative;
  height: 700px;
  background: url("../images/mv-bg.png") no-repeat center / cover;
  overflow: hidden;
}

.mv__inner {
  position: relative;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-right: 40px; /* 右円が左円と重ならない調整 */
}

/* 左の白円（PC） */
.mv__text {
  position: absolute;
  top: 100px;
  left: 0;

  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;
}

.mv__body {
  width: 388px; /* ロゴ幅に揃える */
  text-align: left;
}

.mv__body .mv__logo {
  width: 388px;
  height: auto;
  display: block;
  margin: 0 0 20px;
}

.mv__body .mv__line {
  width: 388px;
  height: 1px;
  background: #2b7bb2;
  margin: 0 0 20px;
}

.mv__body .mv__copy {
  font-weight: 700;
  font-size: 29px;
  line-height: 1.4;
  color: #2b7bb2;
  height: auto;
  margin: 0;
  text-align: left;
}

.mv__copy-line {
  display: block;
}

/* 1行目を途中で割らせない（PCだけ） */
.mv__copy-line--1 {
  white-space: nowrap;
}

/* 右の円（PC） */
.mv__image {
  position: absolute;
  right: 0;
  bottom: 0;
  top: auto;
  transform: none;
  width: 740px;
  height: 740px;
  border-radius: 50%;
  overflow: hidden;

  z-index: 1;
}

.mv__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ======== 当院について(PC) ======== */
.about {
  position: relative;
  padding: 0 20px 120px;
  background: #fff;
}

/* コンテンツ幅 */
.about__inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ロゴ */
.about__logo {
  width: 388px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 48px;
}

/* テキスト */
.about__text {
  max-width: 940px;
  margin: 0 auto 56px;

  font-size: 19px;
  font-weight: 600;
  color: #2b7bb2;
  line-height: 2;

  text-wrap: balance;
}

.about__text.u-tb,
.about__text.u-sp {
  display: none;
}

/* 背景の円 */
.about::before {
  content: "";
  position: absolute;

  width: 200px;
  height: 200px;
  border-radius: 50%;

  background: #fff;

  top: -42px;
  left: 50%;
  transform: translateX(-50%);
}

/* ======== 院長あいさつ(PC) ======== */
.greeting {
  background: #e3fdfd;
  padding: 120px 20px 100px;
}

.greeting__inner {
  max-width: 880px;
  margin: 0 auto;
}

.greeting__head {
  text-align: center;
  margin-bottom: 36px;
}

.greeting__box {
  background: #fff;
  border-radius: 10px;
  padding: 36px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  align-items: start;
}

.greeting__media {
  overflow: hidden;
}

.greeting__media img {
  width: 100%;
  height: auto;
  display: block;
}

.greeting__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  margin: 0 0 24px;
}

.greeting__text--pc {
  margin-bottom: 4px;
}

.greeting__sign {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  margin-top: 32px;
  opacity: 0.9;
}

.greeting__cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.greeting__readmore:hover {
  opacity: 0.85;
}

/* PCでは非表示 */
.greeting__text--sp {
  display: none;
}

/* ======== 診療案内(PC) ======== */
:root {
  --c-primary: #2b7bb2;
  --c-accent: #e3fdfd;
  --c-panel: #78cdd2;
  --radius-panel: 14px;
  --radius-card: 16px;
}

.medical {
  padding: 72px 0 80px;
}

.medical__inner {
  max-width: 880px;
  margin: 0 auto;
}

/* 見出し */
.medical__head {
  margin-bottom: 24px;
  text-align: center;
}

/* 帯（大きい背景） */
.medical__panel {
  background: var(--c-panel);
  border-radius: var(--radius-panel);
  padding: 40px 24px;
}

/* カードリスト */
.medical__list {
  list-style: none;
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

/* カード */
.medical-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px 18px;
  aspect-ratio: 1 / 1;

  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/*アイコン枠 */
.medical-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: block;
}

.medical-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 文言 */
.medical-card__jp {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 17px;
  color: #333333;
  line-height: 1.2;
  text-align: center;
}

.medical-card__en {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--c-primary);
  text-align: center;
}

/* 「もっと詳しく」 */
.medical__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ======== アクセス(PC) ======== */
.access {
  background: #e3fdfd;
  padding: 120px 20px;
}

.access__inner {
  max-width: 980px;
  margin: 0 auto;
}

/* 見出し（News/Greeting/Medicalと統一） */
.access__head {
  text-align: center;
  margin-bottom: 36px;
}

/* レイアウト：左地図／右テキスト */
.access__layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}

.access__layout > * {
  align-self: stretch;
}

/* 地図 */
.access__map {
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  background: #fff;
  position: relative;
}

.access__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  filter: grayscale(12%) saturate(85%) contrast(95%);
}

/* 右側情報 */
.access__name {
  font-size: 18px;
  font-weight: 700;
  color: #2b7bb2;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.access__info {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  padding: 20px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.access__dl {
  margin: 0;
}

.access__row {
  padding: 16px 0;
  border-bottom: 1px solid rgba(43, 123, 178, 0.25);
}

.access__row:first-child {
  padding-top: 0;
}

.access__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.access__dt {
  font-size: 16px;
  font-weight: 700;
  color: #2b7bb2;
  margin: 0 0 8px;
}

.access__dd {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.access__cta {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

/* ======== btn-more(PC) ======== */

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 16px;

  text-decoration: none;
  color: var(--c-primary);
  background: #fff;

  border: 1px solid rgba(43, 123, 178, 0.55);
  padding: 18px 34px;

  border-radius: 0;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.btn-more:hover {
  background: rgba(227, 253, 253, 0.55);
  transform: translateY(-1px);
}

.btn-more__text {
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn-more__arrow {
  font-size: 18px;
  line-height: 1;
}

/* =========================
  SP
========================= */

@media (max-width: 767px) {
  /* ======== メインビジュアル(SP) ======== */
  .mv {
    height: 500px;
    margin-top: 40px;
    background: url("../images/mv-bg.png") no-repeat center / cover;
  }

  .mv__inner {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  /* PCのabsoluteを無効化 */
  .mv__text,
  .mv__image {
    position: static;
    transform: none;
  }

  /* 女の子：上に Rectangle 375×300、下だけ角丸160 */
  .mv__image {
    order: 1;
    width: 100%;
    height: 300px;
    overflow: hidden;

    border-radius: 0;
    border-bottom-left-radius: 160px;
    border-bottom-right-radius: 160px;
  }

  .mv__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  /* 白円はSPで不要 */
  .mv__text {
    order: 2;
    width: 100%;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: block;
  }

  /* ロゴ＋ライン＋コピー：233px幅で左端揃え */
  .mv__body {
    max-width: 233px;
    width: calc(100% - 40px);
    margin: 20px auto 0;
  }

  .mv__body .mv__logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 10px;
  }

  .mv__body .mv__line {
    width: 100%;
  }

  .mv__body .mv__copy {
    text-align: left;
  }

  .mv__copy-line {
    display: block;
    font-size: 17px;
  }

  .mv__copy-line--1 {
    white-space: nowrap;
  }

  /* ======== 当院について(SP) ======== */

  .about {
    margin-top: -40px;
    padding: 64px 28px 64px;
  }

  .about__logo {
    display: none;
  }

  /* 背景の円を非表示 */
  .about::before {
    content: none;
  }

  .about__text {
    max-width: 100%;
    margin: 0 auto 24px;

    font-size: 15px;
    line-height: 1.9;
    letter-spacing: 0.01em;

    text-wrap: initial;
    text-align: start;
  }

  .about__text.u-pc,
  .about__text.u-tb {
    display: none;
  }

  .about__text.u-sp {
    display: block;
    margin-bottom: 40px;
    text-align: center;
  }

  /* ======== 院長あいさつ(SP) ======== */
  .greeting {
    padding: 56px 16px 72px;
  }

  .greeting__inner {
    max-width: 100%;
  }

  .greeting__head {
    margin-bottom: 24px;
  }

  /* 白カード：縦積みに */
  .greeting__box {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
    border-radius: 10px;
  }

  /* 写真：横長トリミング */
  .greeting__media {
    height: 280px;
    border-radius: 8px;
    overflow: hidden;
  }

  .greeting__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 1%; /* 顔が上にあるなら 20% が効く */
    display: block;
  }

  /* 本文 */
  .greeting__text--pc {
    display: none;
  }

  .greeting__text--sp {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
  }

  .greeting__readmore {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;
    color: #2b7bb2;
    opacity: 0.95;

    margin-top: 0;
    margin-bottom: 14px;
  }

  .greeting__readmore::after {
    content: "";
    width: 14px;
    height: 14px;
    background: url("../images/icon-arrow.svg") no-repeat center / contain;
    display: inline-block;
    transition: transform 0.25s;
  }

  .greeting__readmore:hover::after {
    transform: translateX(4px);
  }

  /* 署名 */
  .greeting__sign {
    font-size: 13px;
    text-align: right;
    margin-top: 0px;
  }

  /* ボタン */
  .greeting__cta {
    margin-top: 28px;
  }

  /* ======== 診療案内(SP) ======== */
  .medical {
    padding: 56px 28px 64px;
  }

  .medical__inner {
    max-width: 100%;
  }

  .medical__panel {
    padding: 24px 16px;
    border-radius: 12px;
  }

  /* 4列 → 2列 */
  .medical__list {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .medical-card {
    padding: 18px 12px;
    box-sizing: border-box;
  }

  .medical-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
  }

  .medical-card__jp {
    font-size: 16px;
  }

  .medical-card__en {
    font-size: 12px;
    margin-top: 6px;
    min-height: 2.8em;
  }

  .medical__more {
    margin-top: 24px;
  }

  /* ======== アクセス(SP) ======== */
  .access {
    padding: 56px 16px 70px;
  }

  .access__map {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-width: 0;
    height: 300px;
    overflow: hidden;
    line-height: 0;
  }

  .access__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .access__inner {
    max-width: 100%;
  }

  .access__head {
    margin-bottom: 24px;
  }

  .access__layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .access__info {
    padding: 20px 18px;
  }

  .access__dt {
    font-size: 16px;
  }

  .access__dd {
    font-size: 16px;
  }

  .access__cta {
    margin-top: 18px;
    width: 100%;
  }

  .access__cta .btn-more {
    justify-content: center;
    padding: 16px 0;
  }

  /* ======== btn-more(SP) ======== */
  .btn-more {
    width: 100%;
    justify-content: center;
    padding: 16px 0;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* タブレットだけ適用 */

  /* ======== メインビジュアル(PC) ======== */
  .mv {
    max-width: 980px;
    height: 600px;
  }

  .mv__inner {
    height: 100%;
    max-width: 100%;
    padding: 0 20px;
  }

  /* 左の白円（PC） */
  .mv__text {
    width: 380px;
    height: 380px;
  }

  .mv__body {
    width: 272px; /* ロゴ幅に揃える */
  }

  .mv__body .mv__logo {
    width: 272px;
  }

  .mv__body .mv__line {
    width: 272px;
    margin: 0 0 14px;
  }

  .mv__body .mv__copy {
    font-weight: 600;
    font-size: 21px;
    line-height: 1.3;
  }

  /* 1,2行目を途中で割らせない */
  .mv__copy-line--1,
  .mv__copy-line--2 {
    white-space: nowrap;
  }

  /* 右の円（PC） */
  .mv__image {
    top: 0;
    width: 560px;
    height: 560px;
  }

  /* ======== 当院について(PC) ======== */

  /* コンテンツ幅 */
  .about__inner {
    max-width: 980px;
  }

  /* ロゴ */
  .about__logo {
    width: 280px;
  }

  /* テキスト */
  .about__text {
    width: 100%;
    margin: 0 20px 56px;
    font-size: 18px;
  }

  .about__text.u-pc,
  .about__text.u-sp {
    display: none;
  }

  .about__text.u-tb {
    display: block;
  }

  /* 背景の円 */
  .about::before {
    content: "";
    position: absolute;

    width: 200px;
    height: 200px;
    border-radius: 50%;

    background: #fff;

    top: -42px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* ======== 診療案内(TB) ======== */

  .medical {
    padding: 72px 20px 80px;
  }

  .medical__list {
    gap: 16px;
  }

  .medical-card__icon {
    width: 52px;
    height: 52px;
  }

  .medical-card__en {
    min-height: 2.8em;
  }
}
