.top-private-care {
  padding: 6px 0 62px;
  background-color: #f9fbfb;
  background-image:
    radial-gradient(circle at 7% 18%, rgba(238, 213, 166, .28) 0 110px, transparent 111px),
    radial-gradient(circle at 94% 78%, rgba(115, 195, 220, .16) 0 180px, transparent 181px),
    linear-gradient(145deg, #fffdf8 0%, #f9fbfb 48%, #eef8fd 100%);
}

/* 自由診療へ続く余白を詰め、前セクションとの間延びを防ぐ */
#specialty { padding-bottom: 28px !important; }

/* 連続する4セクションは、同じ青系のトーンを保ちながら背景表現を変える */
#symptom-guide.top-symptom-guide {
  background-color: #effaf9;
  background-image:
    radial-gradient(ellipse at -8% 22%, rgba(151, 225, 216, .3) 0 19%, transparent 43%),
    radial-gradient(ellipse at 108% 84%, rgba(144, 205, 235, .22) 0 21%, transparent 44%),
    linear-gradient(180deg, #f8fdfc 0%, #ecf9fa 100%);
}

.top-contact-feature--refresh {
  background-color: #edf6fd !important;
  background-image:
    repeating-linear-gradient(135deg, rgba(31, 139, 196, .045) 0 1px, transparent 1px 24px),
    linear-gradient(150deg, #f7fbff 0%, #e7f3fc 52%, #edf8fd 100%) !important;
}

#director.top-director {
  background-color: #eef5fb;
  background-image:
    radial-gradient(ellipse at 22% 38%, rgba(255, 255, 255, .96) 0 18%, transparent 48%),
    radial-gradient(circle at 88% 12%, rgba(172, 209, 235, .24) 0 150px, transparent 151px),
    linear-gradient(125deg, #f8fbfe 0%, #edf4fa 58%, #e8f2fa 100%);
}

#director.top-director::before {
  background-image: linear-gradient(90deg, rgba(119, 174, 209, .12) 1px, transparent 1px);
  background-size: 88px 100%;
  opacity: .38;
}

.top-care-directory {
  display: grid;
  grid-template-columns: 1.6fr .8fr .8fr;
  gap: 18px;
  margin: 10px 0 42px;
  border: 1px solid #d5eaf5;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(17, 110, 153, .06);
}
.top-specialty__cards + .top-care-directory {
  margin: 42px 0 0;
}
.top-care-directory__group {
  min-width: 0;
  border-right: 1px solid #dcecf4;
  padding-right: 18px;
}
.top-care-directory__group:last-child { border-right: 0; padding-right: 0; }
.top-care-directory__group h3 {
  margin: 0 0 13px;
  color: #086b9a;
  font-size: 1.12rem;
  line-height: 1.5;
}
.top-care-directory__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 8px;
}
.top-care-directory__group:not(:first-child) .top-care-directory__links { grid-template-columns: 1fr; }
.top-care-directory__links a {
  position: relative;
  display: block;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f8fcfe;
  padding: 7px 9px 7px 31px;
  color: #294f65;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.55;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.top-care-directory__links a::before {
  content: "›";
  position: absolute;
  top: 50%;
  left: 9px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border-radius: 50%;
  background: #dff3fb;
  color: #168fc3;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}
@media (hover: hover) {
  .top-care-directory__links a:hover {
    transform: translateX(3px);
    border-color: #9ed5ea;
    background: #eaf7fc;
    box-shadow: 0 6px 14px rgba(14, 112, 157, .1);
    color: #006f9f;
  }
}
.top-care-directory__links a:focus-visible {
  outline: 3px solid rgba(24, 148, 199, .25);
  outline-offset: 2px;
}

.top-specialty-focus-head {
  position: relative;
  overflow: hidden;
  margin: 0 0 22px;
  padding: 36px 16px;
  text-align: center;
}
.top-specialty-focus-head::before {
  content: "SPECIALTY";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  color: rgba(20, 124, 174, .075);
  font-size: clamp(5rem, 11vw, 9.5rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: .06em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.top-specialty-focus-head > * { position: relative; z-index: 1; }
#specialty > .news-02 > .news-03 > .news-04 { display: none !important; }
.top-specialty-focus-head > span {
  display: block;
  color: #66b9de;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
}
.top-specialty-focus-head h2 {
  margin: 6px 0;
  color: #075c89;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  line-height: 1.4;
}
.top-specialty-focus-head p {
  margin: 0;
  color: #587080;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.7;
}

.top-private-care__inner {
  width: min(calc(100% - 48px), 1280px);
  margin-inline: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 10px clamp(28px, 4vw, 50px) clamp(28px, 4vw, 50px);
  box-shadow: none;
}

.top-private-care__head { text-align: center; }
.top-private-care__head > span {
  display: block;
  color: #66b9de;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .2em;
}
.top-private-care__head h2 {
  margin: 7px 0 8px;
  color: #075c89;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.35;
}
.top-private-care__head p {
  margin: 0;
  color: #496477;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.8;
}

.top-private-care__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
  margin-top: 34px;
}
.top-private-care__card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 450px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid #c4e1ee;
  border-radius: 20px;
  background: linear-gradient(155deg, #fbfeff 0%, #f2f9fc 100%);
  box-shadow: 0 14px 36px rgba(28, 103, 135, .07);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.top-private-care__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #eaf5f9;
}
.top-private-care__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 65, 91, .03), transparent 58%, rgba(10, 65, 91, .08));
  pointer-events: none;
}
.top-private-care__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .45s ease;
}
.top-private-care__body {
  width: 100%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 26px 25px;
}
.top-private-care__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  border: 1px solid #87c9e6;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  padding: 5px 11px;
  color: #147eae;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 5px 14px rgba(14, 94, 128, .1);
}
.top-private-care__icon {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #1194ca;
  box-shadow: 0 6px 18px rgba(14, 94, 128, .12);
}
.top-private-care__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top-private-care__card h3 {
  margin: 0 0 10px;
  color: #076b9e;
  font-size: clamp(1.25rem, 1.75vw, 1.55rem);
  line-height: 1.42;
  letter-spacing: .025em;
}
.top-private-care__card p {
  margin: 0;
  color: #3f596a;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.7;
}
.top-private-care__card a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
  color: #087eb6;
  font-size: .9rem;
  font-weight: 900;
  text-decoration: none;
  transition: gap .2s ease, color .2s ease;
}
@media (hover: hover) {
  .top-private-care__card:hover {
    transform: translateY(-4px);
    border-color: #96cfe5;
    box-shadow: 0 22px 46px rgba(28, 103, 135, .13);
  }
  .top-private-care__card:hover .top-private-care__media img { transform: scale(1.025); }
  .top-private-care__card a:hover { gap: 13px; color: #005c8b; }
}
.top-private-care__notice {
  margin: 20px 0 0;
  color: #678091;
  font-size: .78rem;
  line-height: 1.7;
  text-align: center;
}

/* 4つの専門診療カード：要点は表示し、補足欄を省いて情報量と高さを両立 */
#specialty .top-specialty-card__note { display: none !important; }

@media (min-width: 768px) {
  #specialty .top-specialty-card { padding: 24px; }
  #specialty .top-specialty-card h3 { margin: 10px 0 18px; }
  #specialty .top-specialty-card__photo img { height: clamp(170px, 12vw, 210px); }
  #specialty .top-specialty-card__data {
    display: block !important;
    margin-top: 14px;
    border-color: #c9e3f1;
    border-radius: 10px;
  }
  #specialty .top-specialty-card__data div { grid-template-columns: 116px minmax(0, 1fr); }
  #specialty .top-specialty-card__data dt {
    gap: 7px;
    padding: 9px 10px;
    font-size: .78rem;
  }
  #specialty .top-specialty-card__data dt svg { width: 16px; height: 16px; padding: 3px; }
  #specialty .top-specialty-card__data dd {
    padding: 9px 11px;
    font-size: .8rem;
    line-height: 1.55;
  }
  #specialty .top-specialty-card__text { margin-top: 14px; line-height: 1.75; }
  #specialty .top-specialty-card__button { margin-top: 17px; padding: 13px 20px; }
}

@media (min-width: 1200px) {
  .site-footer__nav {
    grid-template-columns: 1fr 1fr 1.35fr 1fr 1fr;
    gap: clamp(24px, 3vw, 48px);
  }
}

@media (max-width: 767px) {
  .top-care-directory { grid-template-columns: 1fr; gap: 17px; margin-bottom: 30px; padding: 19px 17px; }
  .top-care-directory__group { border-right: 0; border-bottom: 1px solid #dcecf4; padding: 0 0 16px; }
  .top-care-directory__group:last-child { border-bottom: 0; padding-bottom: 0; }
  .top-care-directory__links,
  .top-care-directory__group:not(:first-child) .top-care-directory__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-care-directory__links a { padding: 7px 7px 7px 27px; font-size: .86rem; }
  .top-care-directory__links a::before { left: 7px; }
  .top-specialty-focus-head { margin-bottom: 17px; padding: 28px 8px; }
  .top-specialty-focus-head::before { font-size: 4.6rem; }
  #specialty { padding-bottom: 18px !important; }
  .top-private-care { padding: 6px 0 42px; }
  .top-private-care__inner { width: calc(100% - 24px); border-radius: 0; padding: 10px 16px 26px; }
  .top-private-care__cards { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
  .top-private-care__card { min-height: 0; border-radius: 17px; }
  .top-private-care__body { padding: 20px 19px 21px; }
  .top-private-care__card h3 { margin-top: 0; }
  .top-private-care__card p { font-size: .84rem; }
  .top-private-care__card a { padding-top: 18px; }
  .top-private-care__head p { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .top-private-care__card,
  .top-private-care__media img { transition: none; }
}
