:root {
  --brand-900: #014b84;
  --brand-700: #0168b7;
  --brand-500: #189fe3;
  --accent: #f49600;
  --text: #38474c;
  --white: #fff;
  --surface: #f5fbfe;
  --container: 1080px;
  --gutter: clamp(30px, 5vw, 72px);
  --header-height: 80px;
  --font-mincho: "Zen Old Mincho", serif;
  --font-gothic: "Zen Kaku Gothic Antique", sans-serif;
  --hover-duration: 260ms;
  --hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:where(main, section)[id] {
  scroll-margin-top: var(--header-height);
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--text);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.6;
}

body[data-menu-open] {
  position: fixed;
  inset: calc(-1 * var(--menu-scroll-y, 0px)) 0 auto;
  width: 100%;
  overflow: hidden;
}

:root:has(body[data-menu-open]) {
  overflow: hidden;
}

:root[data-menu-scrollbar] {
  scrollbar-gutter: stable;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--hover-duration) var(--hover-ease),
    background-color var(--hover-duration) var(--hover-ease),
    border-color var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease),
    filter var(--hover-duration) var(--hover-ease),
    opacity var(--hover-duration) var(--hover-ease);
}

a:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 4px;
}

button {
  color: inherit;
  font: inherit;
}

.l-container {
  width: min(calc(100% - var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  background: var(--white);
}

body.admin-bar .site-header {
  top: 32px;
}

body.admin-bar :where(main, section)[id] {
  scroll-margin-top: calc(var(--header-height) + 32px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding-inline: 32px;
}

.site-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 0 1 auto;
}

.site-brand__mark {
  width: 52px;
  height: 47px;
  overflow: hidden;
  flex: 0 0 auto;
}

.site-brand__mark img {
  width: auto;
  max-width: none;
  height: 48px;
}

.site-brand__copy {
  display: grid;
  gap: 8px;
  width: auto;
  max-width: 288px;
  font-family: var(--font-mincho);
  line-height: 1;
}

.site-brand__location {
  color: var(--brand-700);
  font-size: 14px;
}

.site-brand__name {
  color: var(--brand-900);
  font-size: 24px;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.36;
}

.primary-nav__list > li > a {
  display: inline-flex;
  padding-block: 12px;
}

.primary-nav__list > li:first-child > a {
  color: var(--brand-700);
}

.menu-toggle {
  display: none;
}

.mobile-menu__extras {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(650px, 56.881vw, 777px);
  overflow: hidden;
}

.hero__media,
.hero__content {
  grid-area: 1 / 1;
}

.hero__media {
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  align-self: start;
  width: min(calc(100% - clamp(132px, 14.348vw, 196px)), 1170px);
  margin-inline: auto;
  padding-top: clamp(56px, 5.857vw, 80px);
}

.hero__title-group {
  container: hero-title / inline-size;
  width: min(562px, 50vw);
  font-family: var(--font-mincho);
  color: var(--brand-700);
}

.hero__eyebrow {
  display: grid;
  width: fit-content;
  margin: 0 0 0 15px;
  font-size: clamp(34px, 2.928vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.07em;
}

.hero__eyebrow::after {
  width: min(480px, 100%);
  height: 2px;
  margin-top: 21px;
  background: linear-gradient(90deg, var(--brand-700) 0 41.25%, var(--accent) 41.25% 100%);
  content: "";
}

.hero__title {
  margin: 0;
  padding-top: 7px;
  font-size: clamp(84px, 7.687vw, 105px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 7.35px;
}

.hero__title-large {
  font-size: clamp(84px, 7.687vw, 105px);
}

.hero__title-small {
  font-size: clamp(64px, 5.857vw, 80px);
}

.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__ribbon {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 62px;
  margin: 6px 0 0 clamp(-13px, -0.95vw, -8px);
  filter: drop-shadow(3px 4px 4px rgb(0 0 0 / 20%));
  color: var(--brand-700);
  font-size: clamp(40px, 3.514vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 3.36px;
}

.hero__ribbon-copy {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  min-width: 0;
  flex: 0 1 auto;
  place-items: center;
  min-height: 62px;
  padding-inline: 34px;
  background: var(--white);
  white-space: nowrap;
}

.hero__ribbon-tail {
  letter-spacing: -0.025em;
}

.hero__ribbon-edge {
  flex: 0 0 auto;
  width: 14px;
  height: 62px;
}

.hero__ribbon-edge--end {
  transform: rotate(180deg);
}

.hero__description {
  width: 100%;
  max-width: 562px;
  margin: 18px 0 0 4px;
  font-family: var(--font-mincho);
  font-size: clamp(16px, 1.318vw, 18px);
  font-weight: 500;
  line-height: 2;
}

.hero__actions {
  position: fixed;
  right: 0;
  bottom: 40px;
  z-index: 40;
  width: 390px;
}

.action-bar {
  display: grid;
  grid-template-columns: minmax(0, 174fr) minmax(0, 152fr) 64px;
  min-height: 64px;
  font-family: var(--font-mincho);
}

.action-bar a {
  display: flex;
  min-width: 0;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
}

.action-bar__phone {
  padding-inline: 8px;
  background: #f49600;
}

.action-bar__web {
  padding-inline: 8px;
  background: #c07701;
}

.action-bar a > span {
  display: grid;
  gap: 4px;
  justify-items: center;
  line-height: 1;
}

.action-bar small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.action-bar strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.action-bar__phone > img {
  width: 24px;
  height: 24px;
}

.action-bar__web > img {
  width: 24px;
  height: 24px;
  padding: 3px;
}

.action-bar .action-bar__arrow {
  display: block;
  min-height: 64px;
  background: transparent;
}

.action-bar__arrow img {
  width: 64px;
  height: 64px;
}

.about-intro {
  position: relative;
  padding-block: 44px 74px;
  color: var(--white);
  background:
    linear-gradient(rgb(65 154 223 / 90%), rgb(1 104 183 / 90%)),
    url("../images/about-background.jpg") center / cover no-repeat;
}

.about-intro::before,
.about-intro::after {
  position: absolute;
  z-index: 0;
  width: clamp(109px, calc(65.84px + 11.07vw), 217px);
  aspect-ratio: 217 / 242;
  background: url("../images/director-decoration.png") 0 0 / 342.86% 319.83% no-repeat;
  content: "";
  pointer-events: none;
}

.about-intro::before {
  inset: 0 auto auto 0;
}

.about-intro::after {
  inset: auto 0 0 auto;
  transform: rotate(180deg);
}

.about-intro > * {
  position: relative;
  z-index: 1;
}

.section-heading {
  width: min(480px, calc(100% - 60px));
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-mincho);
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.section-heading h2 > span {
  white-space: nowrap;
}

.section-heading p {
  display: grid;
  justify-items: center;
  margin-top: 16px;
  color: var(--brand-700);
  font-family: "Cinzel", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 2px;
}

.section-heading p::after {
  width: 100%;
  height: 16px;
  margin-top: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
    linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 198px 2px no-repeat;
  content: "";
}

.about-intro__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  margin-top: 49px;
}

.about-intro__media {
  aspect-ratio: 520 / 368;
  margin: 0;
  overflow: hidden;
}

.about-intro__media img {
  width: 127.885%;
  max-width: none;
  height: auto;
  margin: -14.23% 0 0 -19.423%;
}

.about-intro__copy {
  display: grid;
  gap: 24px;
}

.about-intro__copy h3,
.about-intro__text p {
  margin: 0;
}

.about-intro__copy h3 {
  font-family: var(--font-mincho);
  font-size: clamp(34px, 2.928vw, 40px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: wrap;
}

.about-intro__copy h3 > span {
  display: block;
}

.about-intro__text {
  display: grid;
  gap: 26px;
}

.about-intro__text p {
  font-size: 16px;
  line-height: 26px;
}

.section-heading--brand {
  color: var(--brand-700);
}

.section-heading--brand h2 {
  color: var(--brand-900);
}

.section-heading--light p {
  color: var(--white);
}

.section-heading--light p::after {
  background:
    linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
    linear-gradient(var(--white), var(--white)) bottom center / 198px 2px no-repeat;
}

.visit-guide {
  padding-block: 70px 44px;
  background: var(--white);
}

.visit-guide .section-heading {
  width: min(480px, calc(100% - 60px));
}

.visit-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 47px;
}

.guide-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 24px 24px 32px;
  background: var(--white);
  box-shadow: 0 0 8px rgb(51 51 51 / 8%);
}

.guide-card__heading {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.guide-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f3fbfe;
}

.guide-card__heading img {
  margin-inline: auto;
}

.guide-card p,
.guide-card h3 {
  margin: 0;
}

.guide-card__heading p {
  color: var(--brand-700);
  font-family: "Cinzel", serif;
  font-size: 14px;
  line-height: 1;
}

.guide-card h3 {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.guide-card > p {
  color: #566d76;
  font-size: 16px;
  line-height: 26px;
}

.features {
  padding-block: 70px 87px;
  background: var(--white) url("../images/features-background.png") center / cover no-repeat;
}

.features__list {
  display: grid;
  gap: 25px;
  margin-top: 35px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
}

.feature-row--reverse .feature-row__copy {
  order: 2;
}

.feature-row--reverse .feature-row__media {
  order: 1;
}

.feature-row__copy {
  display: grid;
  align-content: center;
  gap: 24px;
}

.feature-row__copy p,
.feature-row__copy h3 {
  margin: 0;
}

.feature-row__number {
  color: #82b6dd;
  font-family: "Cinzel", serif;
  font-size: 36px;
  line-height: 58px;
}

.feature-row__heading {
  display: grid;
  gap: 8px;
}

.feature-row__copy h3 {
  color: var(--brand-700);
  font-family: var(--font-mincho);
  font-size: clamp(34px, 2.928vw, 40px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: wrap;
}

.feature-row__copy > p:last-child {
  font-size: 18px;
  line-height: 29px;
}

.feature-row:nth-child(3) .feature-row__copy h3 {
  line-height: 54px;
}

.feature-row__media {
  display: grid;
  aspect-ratio: 520 / 368;
  margin: 0;
  overflow: hidden;
}

.feature-row__media > img,
.feature-row__tags {
  grid-area: 1 / 1;
}

.feature-row__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row__tags {
  z-index: 2;
  display: flex;
  align-self: end;
  justify-self: end;
  gap: 6px;
  padding: 0 0 0;
  color: var(--white);
}

.feature-row__tags span {
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #82b6dd;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.28;
}

.feature-row__tags span:nth-child(2) {
  background: #82d1dd;
}

.feature-row__tags span:nth-child(3) {
  background: #82ddce;
}

.clinic-menu {
  padding: 0 0 80px;
  background: var(--white);
}

.clinic-menu > .section-heading {
  padding: 0;
}

.clinic-menu__group-title {
  display: grid;
  min-height: 60px;
  place-items: center;
  margin: 0;
  color: var(--white);
  text-align: center;
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 4.8px;
}

.clinic-menu__group-title--insurance {
  margin-top: 45px;
  background: var(--accent);
}

.clinic-menu__group-title--private {
  min-height: 52px;
  margin-top: 21px;
  background: #3581bb;
}

.clinic-menu__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.menu-card {
  display: grid;
  min-width: 0;
  aspect-ratio: 341.5 / 240;
  overflow: hidden;
  color: var(--brand-900);
}

.menu-card::after,
.menu-card img,
.menu-card > span {
  grid-area: 1 / 1;
}

.menu-card::after {
  z-index: 1;
  background: linear-gradient(180deg, #f2f7fa 0, rgb(151 219 250 / 20%) 100%);
  content: "";
}

.menu-card img {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.clinic-menu__group-title--insurance + .clinic-menu__grid .menu-card:nth-child(2) img {
  width: 112.281%;
  max-width: none;
  height: 106.667%;
  place-self: start center;
  margin-top: -2.34%;
  transform: scaleX(-1);
}

.clinic-menu__group-title--insurance + .clinic-menu__grid .menu-card:nth-child(3) img {
  width: 142.544%;
  max-width: none;
  height: 135.417%;
  place-self: start;
  margin: -3.81% 0 0 -21.053%;
}

.menu-card > span {
  z-index: 2;
}

.menu-card > span {
  display: flex;
  align-self: start;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  margin: 32px;
}

.menu-card__copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 8px;
  color: #011d28;
  font-family: var(--font-mincho);
  font-size: 32px;
  line-height: 1.25;
}

.menu-card__copy strong {
  font-weight: 400;
}

.menu-card small {
  display: block;
  color: var(--accent);
  font-family: "Cinzel", serif;
  font-size: 32px;
  line-height: 1;
}

.menu-card__arrow {
  display: grid;
  width: 32px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: var(--white);
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1;
}

.clinic-menu__group-title--private + .clinic-menu__grid .menu-card small,
.clinic-menu__group-title--private + .clinic-menu__grid .menu-card__arrow {
  color: var(--brand-900);
}

.director {
  position: relative;
  min-height: 898px;
  padding-block: 47px 90px;
  color: var(--white);
  background:
    linear-gradient(rgb(65 154 223 / 90%), rgb(1 104 183 / 90%)) 0 0 / 100% 100%,
    url("../images/director-background.jpg") -332px -445px / 2012px 1342px no-repeat;
}

.director::before,
.director::after {
  position: absolute;
  z-index: 0;
  width: 217px;
  aspect-ratio: 217 / 242;
  background: url("../images/director-decoration.png") 0 0 / 744px 774px no-repeat;
  content: "";
  pointer-events: none;
}

.director::before {
  inset: -7px auto auto 0;
}

.director::after {
  inset: auto 0 0 auto;
  transform: rotate(180deg);
}

.director > * {
  position: relative;
  z-index: 1;
}

.director__body {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 537px);
  align-items: start;
  gap: 50px;
  width: min(calc(100% - 182px), 1184px);
  margin-top: 41px;
}

.director__portrait {
  margin: 0;
}

.director__portrait-media {
  height: auto;
  aspect-ratio: 520 / 534;
  overflow: hidden;
}

.director__portrait img {
  width: 180.385%;
  max-width: none;
  margin: -19.615% 0 0 -17.115%;
}

.director__portrait figcaption {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 1;
}

.director__portrait strong {
  margin-left: 10px;
  font-size: 32px;
  font-weight: 400;
}

.director__copy {
  display: grid;
  gap: 0;
}

.director__copy h3,
.director__message p,
.director__copy dl {
  margin: 0;
}

.director__copy h3 {
  font-family: var(--font-mincho);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 400;
  line-height: 1.6;
  text-wrap: wrap;
}

.director__copy p,
.director__history {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.director__message {
  margin-top: 27px;
}

.director__copy .director__history {
  display: block;
  margin-top: 1.6em;
}

.director__history dt::after {
  content: "｜";
}

.director__history dd {
  margin: 0;
}

.news {
  position: relative;
  z-index: 2;
  padding-block: 80px 0;
  background: transparent;
}

.news__panel {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 40px;
  padding: 56px 64px;
  background: var(--white);
  box-shadow: 0 0 8px rgb(51 51 51 / 8%);
}

.news__heading p,
.news__heading h2 {
  margin: 0;
}

.news__heading p {
  color: var(--brand-700);
  font-family: "Cinzel", serif;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  white-space: nowrap;
}

.news__heading h2 {
  margin-top: 8px;
  color: var(--text);
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.news__heading a {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid #3770a6;
  color: #3770a6;
  font-size: 14px;
  line-height: 1.28;
}

.news__list {
  display: grid;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news__list li {
  display: grid;
  grid-template-columns: 74px max-content minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-block: 16.5px 17.5px;
  border-bottom: 1px solid #f8f9fa;
  font-size: 15px;
  line-height: 1.28;
}

.news__list li:first-child {
  border-top: 1px solid #f8f9fa;
  padding-block: 16px 17px;
}

.news__list time {
  color: #197fd5;
  font-size: 14px;
  font-weight: 500;
}

.news__list span {
  justify-self: start;
  padding: 3px 11px;
  border: 1px solid #74a0c6;
  color: #74a0c6;
  font-size: 12px;
}

.facilities {
  min-height: 1067px;
  margin-top: -149px;
  padding-block: 229px 0;
  overflow: hidden;
  background:
    url("../images/facilities-plus-large.svg") calc(50% - 224px) 0 / 287px 287px no-repeat,
    url("../images/facilities-plus-small.svg") 0 287px / 173px 173px no-repeat,
    var(--surface);
}

.facilities__intro {
  margin: 26px auto 26px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

.facilities__rail {
  display: flex;
  gap: 24px;
  width: 1222px;
  margin-left: max(30px, calc((100% - 1080px) / 2));
  overflow: visible;
}

.facilities__rail figure {
  display: grid;
  width: 400px;
  height: 300px;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
}

.facilities__rail img,
.facilities__rail figcaption {
  grid-area: 1 / 1;
}

.facilities__rail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facilities__rail figcaption {
  z-index: 1;
  align-self: end;
  justify-self: start;
  margin: 0;
  padding: 7px 8px 8px;
  color: var(--white);
  background: var(--brand-700);
  font-size: 14px;
  line-height: 1;
}

.facilities__rail:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 4px;
}

.facilities > .section-heading {
  display: flex;
  flex-direction: column;
}

.facilities > .section-heading p {
  order: 1;
  margin-top: 0;
}

.facilities > .section-heading h2 {
  order: 2;
  margin-top: 16px;
}

.facilities > .section-heading p::after {
  display: none;
}

.facilities > .section-heading::after {
  order: 3;
  width: 100%;
  height: 16px;
  margin-top: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
    linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 198px 2px no-repeat;
  content: "";
}

.contact-panel {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 142px), 1224px);
  min-height: 443px;
  margin-inline: auto;
  padding: 0;
  background: #fdfcfb url("../images/contact-background.png") center / cover no-repeat;
}

.sp-only-break {
  display: none;
}

.contact-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 267fr) minmax(0, 440fr) minmax(220px, 306fr);
  align-items: start;
  gap: clamp(24px, 2.928vw, 40px);
  width: min(calc(100% - 80px), 1093px);
  margin-inline: auto;
  padding-top: 72px;
}

.contact-panel__heading h2,
.contact-panel__heading p,
.contact-panel__heading > span {
  margin: 0;
}

.contact-panel__heading {
  container-type: inline-size;
}

.contact-panel__heading h2 {
  color: var(--brand-900);
  font-family: var(--font-mincho);
  font-size: clamp(30px, 16cqi, 40px);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-panel__heading p {
  display: grid;
  justify-items: center;
  width: min(240px, 100%);
  margin-top: 16px;
  color: var(--brand-700);
  font-family: "Cinzel", serif;
  font-size: 32px;
  line-height: 1;
  letter-spacing: 2px;
}

.contact-panel__heading p::after {
  width: min(240px, 100%);
  height: 16px;
  margin-top: 16px;
  background:
    linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
    linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 99px 2px no-repeat;
  content: "";
}

.contact-panel__heading > span {
  display: block;
  margin-top: 28px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-panel__actions {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-button {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: clamp(16px, calc(3vw - 17px), 24px);
  padding: 22px clamp(18px, calc(2.26vw - 6.86px), 24px);
  color: var(--white);
  text-align: center;
}

.contact-button img {
  width: clamp(56px, 5.564vw, 76px);
  flex: 0 0 auto;
}

.contact-button span {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 8px;
  font-family: var(--font-mincho);
  font-weight: 500;
  white-space: nowrap;
}

.contact-button small {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.8px;
}

.contact-button strong {
  font-size: clamp(30px, 2.928vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 1.6px;
}

.contact-button--phone {
  background: var(--accent);
}

.contact-button--web {
  background: #c07701;
}

.contact-panel__app {
  display: block;
  width: min(306px, 100%);
  aspect-ratio: 600 / 500;
  margin-top: 24px;
  padding: 10px;
  background: var(--white);
}

.contact-panel__app img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access {
  min-height: 758px;
  padding-block: 75px 80px;
  background: var(--white);
}

.access__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 58px;
}

.access__media {
  margin: 0;
}

.access__media img {
  width: 100%;
  aspect-ratio: 520 / 425;
  object-fit: cover;
}

.access__details {
  display: grid;
  align-content: start;
  gap: 0;
  font-size: 16px;
  line-height: 24px;
}

.access__details dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.access__details dl > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
}

.access__details dt {
  color: var(--brand-700);
  font-weight: 500;
}

.access__details dd {
  margin: 0;
}

.access__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 8px;
  padding: 6px 10px 6px 14px;
  color: var(--white);
  background: var(--brand-700);
  line-height: 24px;
}

.access__external-icon {
  width: 14px;
  aspect-ratio: 1;
  background: url("../images/external-link.svg") center / contain no-repeat;
  flex: 0 0 auto;
}

.hours-table {
  position: relative;
  display: grid;
  margin-top: 80px;
  font-size: 18px;
}

.hours-table::before {
  position: absolute;
  inset: -40px 0 auto;
  height: 1px;
  background: #82b6dd;
  content: "";
}

.hours-table [role="row"] {
  display: grid;
  grid-template-columns: 171.5px repeat(8, 1fr);
  text-align: center;
}

.hours-table [role="row"] > span {
  padding: 12.33px 3px;
  border-bottom: 1px solid #dceaf1;
}

.hours-table [role="row"] > span:not(:first-child) {
  color: var(--brand-700);
}

.hours-table [role="row"]:first-child > span {
  color: #38474c;
}

.access__note {
  margin: 10px 0 0;
  font-family: var(--font-mincho);
  font-size: 14px;
  line-height: 1;
}

.mobile-actions {
  display: none;
}

.site-footer {
  display: flow-root;
  padding-block: 0 42px;
  background: var(--surface);
}

.partner-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: -40px;
}

.partner-links a {
  display: grid;
  height: 80px;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 8px rgb(51 51 51 / 8%);
}

.partner-links img {
  max-width: none;
  height: auto;
}

.partner-links__mealtime img {
  width: 100%;
}

.partner-links__oxidative img {
  width: 88.269%;
}

.partner-links__infusion {
  display: flex !important;
  gap: 3.846%;
  justify-content: center;
}

.partner-links__infusion-mark,
.partner-links__infusion-name {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
}

.partner-links__infusion-mark {
  width: 18.269%;
  aspect-ratio: 38 / 39;
}

.partner-links__infusion-name {
  width: 53.846%;
  aspect-ratio: 7;
}

.partner-links__infusion-mark img {
  position: absolute;
  top: -23.5%;
  left: -65.79%;
  width: 231.58%;
  height: 188.03%;
}

.partner-links__infusion-name img {
  position: absolute;
  top: -639.58%;
  left: -28.57%;
  width: 157.14%;
  height: 916.67%;
}

.partner-links__blog {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: var(--brand-900);
  font-family: Cinzel, serif;
  font-size: 40px;
  letter-spacing: 2px;
  line-height: 1;
}

.partner-links__blog span {
  color: var(--brand-700);
}

.partner-links__melmo img {
  width: 67.788%;
}

.site-footer__inner {
  display: block;
  margin-top: 64px;
}

.site-footer p {
  margin: 0;
}

.site-footer__brand .site-brand__copy {
  width: auto;
}

.footer-nav {
  margin-top: 44px;
}

.footer-nav__groups {
  display: grid;
  grid-template-columns: repeat(3, 240px);
  gap: 40px;
	margin-bottom:140px;
}

.footer-nav ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.28;
}

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav a::before {
  color: var(--brand-700);
  content: "→";
}

.site-footer__copyright {
  margin-top: 39px !important;
  color: #566d76;
  font-size: 10px;
  line-height: 1.28;
}

.lower-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 71px;
  min-height: 315px;
  padding: 48px var(--gutter);
  color: #011d28;
  background: #384c52;
}

.lower-hero h1 {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.lower-hero__icon {
  width: 48px;
  aspect-ratio: 1;
}

.template-page__body {
  margin-bottom: -40px;
  padding-bottom: 40px;
  background: linear-gradient(to bottom, var(--white), #f3fbfe);
}

.template-page__content {
  display: grid;
  gap: 80px;
  padding-block: 80px 120px;
}

/* 自由診療ページ上部：各メニューへのショートカット */
.jiyu-page-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jiyu-page-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 88px;
  padding: 18px 16px 18px 20px;
  border: 1px solid var(--brand-700);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-900);
  font-family: var(--font-mincho);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color var(--hover-duration) var(--hover-ease),
    background-color var(--hover-duration) var(--hover-ease),
    box-shadow var(--hover-duration) var(--hover-ease);
}

.jiyu-page-nav__arrow {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  place-items: center;
  background: var(--brand-700);
  color: var(--white);
  font-family: var(--font-gothic);
  font-size: 14px;
  line-height: 1;
  transition: transform var(--hover-duration) var(--hover-ease);
}

.jiyu-page-nav a:focus-visible {
  outline: 3px solid rgb(1 104 183 / 28%);
  outline-offset: 3px;
}

.template-page section h2,
.template-page section h3,
.template-page section h4,
.template-page section p {
  margin-top: 0;
}

.template-heading,
.template-text-block > h2 {
  position: relative;
  min-height: 58px;
  margin-bottom: 42px;
  color: #34484e;
  font-family: var(--font-mincho);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.template-heading::after {
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 16px;
  background: var(--brand-700);
  content: "";
}

.template-placeholder {
  display: grid;
  min-width: 0;
  place-items: center;
  border: 1px solid #789099;
  background: #dce7eb;
  color: #384c52;
}

.template-media-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}

.template-media-block > .template-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.template-media-block > .template-placeholder {
  aspect-ratio: 520 / 384;
  border: 0;
  border-radius: 8px;
}

.template-copy h3,
.template-text-block h3 {
  font-family: var(--font-gothic);
  font-weight: 500;
}

.template-copy {
  display: grid;
  align-content: start;
  gap: 20px;
}

.template-copy h3,
.template-copy p {
  margin-bottom: 0;
}

.template-copy h3 {
  font-size: 17px;
  line-height: 1.9;
}

.template-copy p,
.template-text-block p {
  line-height: 1.9;
}

.template-text-block {
  display: grid;
}

.template-text-block > .template-heading {
  margin-bottom: 32px;
}

.template-text-block h3 {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.9;
}

.template-text-block p {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.9;
}

.template-feature-list {
  display: grid;
  gap: 32px;
}

.template-feature-list .template-heading {
  margin-bottom: 8px;
}

.template-feature-list article {
  min-height: 190px;
  padding: 40px;
  background: #f0f9fd;
}

.template-feature-list article h3 {
  margin-bottom: 20px;
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.template-feature-list article p {
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.9;
}

.template-cta {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 48px;
  background: var(--white);
  box-shadow: 0 7px 26px rgb(1 75 132 / 6%);
}

.template-cta h2 {
  width: 100%;
  margin-bottom: 0;
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.template-cta p {
  width: 100%;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.9;
}

.template-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(362px, 100%);
  min-height: 56px;
  margin: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-700);
}

.template-symptoms {
  display: grid;
  grid-template-columns: minmax(0, 504px) minmax(0, 368px);
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding-block: 59px;
  border: 1px solid var(--white);
  border-radius: 4px;
  background: #f4f6f7;
}

.template-symptoms__list {
  display: grid;
  gap: 20px;
  min-height: 443px;
  padding: 39px;
  border: 1px solid #789099;
  border-radius: 4px;
  background: var(--white);
}

.template-symptoms__list h2 {
  margin-bottom: 0;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--brand-700);
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.template-symptoms__list ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-symptoms__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
}

.template-symptoms__list li::before {
  width: 20px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 1px solid #38474c;
  border-radius: 50%;
  content: "";
}

.template-symptoms > .template-placeholder {
  aspect-ratio: 368 / 375;
  border-radius: 4px;
}

.template-two-images {
  display: grid;
  gap: 24px;
  justify-items: center;
  padding: 40px;
  text-align: center;
  background: #f2fbff;
}

.template-two-images h2 {
  margin-bottom: 0;
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.template-two-images > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  width: 100%;
}

.template-two-images .template-placeholder {
  aspect-ratio: 4 / 3;
  border: 0;
  background: #384c52;
}

.template-two-images > p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.template-band-heading {
  display: grid;
  min-height: 88px;
  margin-bottom: 80px;
  padding: 12px 24px;
  place-items: center;
  color: var(--white);
  background: var(--brand-700);
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.template-benefits__body {
  display: grid;
  gap: 40px;
}

.template-benefits__body > .template-heading,
.template-benefits__body > p {
  margin-bottom: 0;
}

.template-benefits__body > p {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
}

.template-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 0;
}

.template-benefits__grid article {
  display: grid;
  align-content: start;
  gap: 20px;
  min-height: 309px;
  padding: 32px;
  background: #f4f6f7;
}

.template-benefits__grid article > h3 {
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  color: var(--white);
  background: var(--accent);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.template-benefits__grid article:last-child > h3 {
  background: var(--brand-700);
}

.template-benefits__grid h4 {
  margin-bottom: 0;
  font-family: var(--font-mincho);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}

.template-benefits__grid ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.template-benefits__grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.template-benefits__grid li::before {
  display: grid;
  width: 20px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  content: "✓";
  font-size: 12px;
}

.template-benefits__grid article:last-child li::before {
  border-color: #38474c;
  color: #38474c;
}

.template-flow {
  display: grid;
  gap: 40px;
}

.template-flow > .template-heading {
  margin-bottom: 0;
}

.template-flow__steps {
  display: grid;
  gap: 24px;
}

.template-flow article {
  display: grid;
  gap: 32px;
  padding: 40px;
  border-radius: 4px;
  background: var(--white);
}

.template-flow__number {
  width: fit-content;
  margin-bottom: 0;
  padding: 8px 40px;
  border-radius: 4px;
  color: var(--white);
  background: var(--brand-700);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.template-flow__content {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 40px;
}

.template-flow__content .template-placeholder {
  aspect-ratio: 5 / 3;
  border-radius: 4px;
}

.template-flow__copy {
  display: grid;
  align-content: start;
  gap: 16px;
}

.template-flow__copy h3 {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--brand-700);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.template-flow__copy p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.template-flow__arrow {
  display: grid;
  min-height: 40px;
  place-items: center;
  justify-self: center;
}

.template-pricing {
  display: grid;
  gap: 20px;
}

.template-pricing > .template-heading,
.template-pricing > p {
  margin-bottom: 0;
}

.template-pricing > p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.template-pricing__table {
  display: grid;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
}

.template-pricing__table [role="row"] {
  display: grid;
  grid-template-columns: 420px 220px minmax(0, 1fr);
  align-items: center;
  min-height: 64px;
  padding-inline: 18px;
}

.template-pricing__table [role="row"]:first-child {
  min-height: 52px;
  color: var(--white);
  background: var(--brand-700);
  font-family: var(--font-mincho);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.template-pricing__table [role="row"]:nth-child(odd):not(:first-child) {
  background: #f0f2f3;
}

.template-pricing__table span {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.template-pricing__table [role="row"]:not(:first-child) span:last-child {
  color: #38474c;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .template-text-block {
    min-height: 265px;
  }

  .template-cta {
    min-height: 295px;
  }

  .template-two-images {
    min-height: 551px;
  }

  .template-benefits__body {
    min-height: 512px;
  }

  .template-flow article {
    min-height: 325px;
  }

  .template-page__content {
    padding-bottom: 80px;
  }

  .visit-guide {
    padding-block: 70px 44px;
  }

  .about-intro {
    padding-block: 44px 74px;
  }

  .features {
    padding-block: 70px 87px;
  }

  .feature-row:nth-child(2) {
    margin-top: 10px;
  }

  .clinic-menu {
    margin-top: 70px;
  }

  .clinic-menu > .section-heading {
    padding: 0;
  }

  .news {
    margin-top: 0;
    padding-block: 80px 0;
  }

  .facilities {
    margin-top: -149px;
    padding-block: 229px 0;
  }

  .contact-panel {
    margin-top: -231px;
    background-position: center -50px;
    background-size: 1224px 689px;
  }

  .access {
    margin-top: 0;
    padding-block: 75px 80px;
  }

  .access__media {
    overflow: hidden;
  }

  .access__media img {
    width: 122.581%;
    max-width: none;
    height: auto;
    aspect-ratio: 637.422 / 425;
    margin-left: -22.115%;
  }

  .access__details {
    gap: 0;
  }

  .access__details dl {
    gap: 16px;
  }

  .access__details dl > div {
    grid-template-columns: 98px minmax(0, 1fr);
    gap: 30px;
  }

  .site-footer {
    margin-top: 40px;
    min-height: 490px;
    padding-bottom: 0;
  }

  .site-footer__copyright {
    margin-top: 45px !important;
  }

}

@media (max-width: 899px) {
  :root {
    --header-height: 64px;
  }

  .site-header__inner {
    min-height: var(--header-height);
    padding: 0 0 0 14px;
  }

  .site-brand {
    align-items: center;
    gap: 10.723px;
  }

  .site-brand__mark {
    width: 39.83px;
    height: 36px;
  }

  .site-brand__mark img {
    height: 36.82px;
  }

  .site-brand__copy {
    gap: 6.128px;
    width: 220.596px;
  }

  .site-brand__location {
    font-size: 10px;
  }

  .site-brand__name {
    font-size: 16px;
  }

  .menu-toggle {
    display: grid;
    justify-items: center;
    width: 64px;
    height: 64px;
    padding: 21px 16px;
    border: 0;
    color: var(--brand-700);
    background: transparent;
  }

  .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .menu-toggle__lines,
  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    width: 32px;
    height: 2px;
    background: currentcolor;
  }

  .menu-toggle__lines {
    position: relative;
  }

  .menu-toggle__lines::before,
  .menu-toggle__lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle__lines::before {
    top: -10px;
  }

  .menu-toggle__lines::after {
    top: 10px;
  }

  .primary-nav {
    position: fixed;
    z-index: 25;
    inset: var(--header-height) 0 0;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 40px 30px 62px;
    background:
      linear-gradient(var(--white) 0 422px, var(--surface) 422px 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-24px);
    pointer-events: none;
    transition:
      opacity 220ms ease,
      transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 320ms;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .primary-nav__list {
    display: grid;
    gap: 32px;
    font-size: 20px;
    line-height: 20.4px;
  }

  .primary-nav li {
    border: 0;
  }

  .primary-nav__list > li > a {
    display: flex;
    min-height: 20.4px;
    padding-block: 0;
  }

  .primary-nav .mobile-menu__extras {
    display: block;
  }

  .primary-nav .mobile-menu__partners {
    width: min(330px, 100%);
    margin: 67.6px 0 0;
  }

  .mobile-menu__footer {
    margin-top: 64px;
  }

  .mobile-menu__footer > .site-brand {
    width: min(271.149px, 100%);
  }

  .mobile-menu__footer .footer-nav {
    margin-top: 32px;
  }

  .mobile-menu__footer .site-footer__copyright {
    margin: 41.5px 0 0 !important;
  }

  body[data-menu-open] .mobile-actions {
    display: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar :where(main, section)[id] {
    scroll-margin-top: calc(var(--header-height) + 46px);
  }

  body.admin-bar .primary-nav {
    top: calc(var(--header-height) + 46px);
  }
}

@media (min-width: 783px) and (max-width: 899px) {
  body.admin-bar .primary-nav {
    top: calc(var(--header-height) + 32px);
  }
}

@media (max-width: 899px) and (prefers-reduced-motion: reduce) {
  .primary-nav,
  .primary-nav[data-open] {
    transform: none;
    transition-duration: 0.01ms;
  }
}

@media (max-width: 899px) {
  .facilities {
    background: var(--surface);
  }

  .hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .hero__media {
    height: auto;
    overflow: hidden;
    background: var(--white);
  }

  .hero__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
  }

  .hero__content {
    width: 100%;
    margin: 0;
    padding: 24px 30px 51px;
  }

  .hero__title-group {
    width: 100%;
  }

  .hero__eyebrow {
    width: 100%;
    margin: 0;
    font-size: 32px;
    letter-spacing: 0.04em;
  }

  .hero__eyebrow::after {
    width: 100%;
    margin-top: 16px;
    background: linear-gradient(90deg, var(--brand-700) 0 46.97%, var(--accent) 46.97% 100%);
  }

  .hero__title {
    padding-top: 7px;
    font-size: 62px;
    line-height: 1.24;
    letter-spacing: 4.96px;
  }

  .hero__title-large {
    font-size: 62px;
  }

  .hero__title-small {
    font-size: 48px;
  }

  .hero__ribbon {
    width: fit-content;
    max-width: 100%;
    min-height: 52px;
    margin: 11px 0 0;
    font-size: 32px;
    line-height: 1;
    letter-spacing: 0.05em;
  }

  .hero__ribbon-copy {
    min-height: 52px;
    padding-inline: 11px 10px;
  }

  .hero__ribbon-tail {
    letter-spacing: -0.040625em;
  }

  .hero__ribbon-edge {
    width: 12px;
    height: 52px;
  }

  .hero__description {
    width: auto;
    margin: 24px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero__actions {
    display: none;
  }

  .pc-only {
    display: none;
  }
}

@media (max-width: 899px) {
  .about-intro {
    padding-block: 48px 56px;
  }

  .section-heading h2 {
    font-size: clamp(28px, 9.25vw, 36px);
    line-height: 1.28;
    letter-spacing: 1.44px;
  }

  .section-heading,
  .visit-guide .section-heading {
    width: min(480px, calc(100% - clamp(32px, calc(32.56vw - 66.98px), 60px)));
  }

  .section-heading p {
    margin-top: 14px;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 2px;
  }

  .section-heading p::after {
    width: 100%;
    height: 16px;
    margin-top: 24px;
    background:
      linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
      linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 150px 2px no-repeat;
  }

  .section-heading--light p::after {
    background:
      linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
      linear-gradient(var(--white), var(--white)) bottom center / 150px 2px no-repeat;
  }

  .heading-sp-line {
    display: block;
  }

  .about-intro__body {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .about-intro__media {
    aspect-ratio: 330 / 240;
  }

  .about-intro__media img {
    width: 108.788%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: left top;
  }

  .about-intro__copy {
    gap: 8px;
  }

  .about-intro__copy h3 {
    font-size: 32px;
    line-height: 1.44;
  }

  .about-intro__text {
    gap: 0;
  }

  .about-intro__text p {
    font-size: 16px;
    line-height: 26px;
  }

  .visit-guide {
    padding-block: 48px 56px;
  }

  .visit-guide__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .guide-card {
    padding: 24px 24px 32px;
  }

  .features {
    padding-block: 48px 56px;
    background-size: auto 100%;
  }

  .features__list {
    gap: 48px;
    margin-top: 48px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-row--reverse .feature-row__copy,
  .feature-row--reverse .feature-row__media {
    order: initial;
  }

  .feature-row__copy {
    gap: 16px;
  }

  .feature-row__heading {
    gap: 0;
  }

  .feature-row__number {
    font-size: 20px;
    line-height: 32px;
  }

  .feature-row__copy h3 {
    font-size: 32px;
    line-height: 51px;
  }

  .feature-row:nth-child(3) .feature-row__copy h3 {
    line-height: 51px;
  }

  .feature-row__copy > p:last-child {
    font-size: 16px;
    line-height: 26px;
  }

  .feature-row__media {
    aspect-ratio: 330 / 234;
  }

  .feature-row__tags span {
    width: 72px;
    font-size: 14px;
  }

  .feature-row__tags {
    justify-self: center;
  }

  .feature-row:nth-child(2) {
    margin-top: 0;
  }

  .clinic-menu > .section-heading {
    padding: 64px 0 0;
  }

  .clinic-menu__group-title {
    width: calc(100% - 60px);
    min-height: 60px;
    margin-inline: auto;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 3.6px;
  }

  .clinic-menu__group-title--insurance {
    margin-top: 32px;
  }

  .clinic-menu__group-title--private {
    margin-top: 0;
  }

  .clinic-menu__grid {
    grid-template-columns: 1fr;
    width: calc(100% - 60px);
    margin-inline: auto;
  }

  .menu-card {
    aspect-ratio: 330 / 200;
  }

  .menu-card > span {
    padding: 0;
  }

  .menu-card > span {
    gap: 10px;
    margin: 24px;
  }

  .menu-card__copy {
    width: 240px;
    flex: 0 0 240px;
    gap: 4px;
    font-size: 28px;
  }

  .menu-card small {
    font-size: 20px;
  }

  .clinic-menu {
    padding-bottom: 64px;
  }

  .director {
    min-height: 1324px;
    padding-block: 48px 56px;
    background:
      linear-gradient(rgb(65 154 223 / 90%), rgb(1 104 183 / 90%)) 0 0 / 100% 100%,
      url("../images/director-background.jpg") -1290px -641px / 2944px 1964px no-repeat;
  }

  .director::before,
  .director::after {
    width: 100px;
    background-size: 343px 358.4px;
  }

  .director::before {
    inset-block-start: 0;
  }

  .director__body {
    grid-template-columns: 1fr;
    gap: 24px;
    width: calc(100% - 60px);
    margin-top: 32px;
  }

  .director__portrait-media {
    aspect-ratio: 330 / 240;
  }

  .director__portrait img {
    width: 139.091%;
    margin: -20% 0 0 -2.121%;
  }

  .director__portrait figcaption {
    align-items: end;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    font-size: 16px;
  }

  .director__portrait strong {
    font-size: 24px;
  }

  .director__copy h3 {
    font-size: 32px;
    line-height: 1.44;
  }

  .director__copy p,
  .director__history {
    font-size: 16px;
    line-height: 1.6;
  }

  .director__message {
    margin-top: 8px;
  }

  .news {
    padding-block: 40px 0;
  }

  .news__panel {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px;
  }

  .news__heading {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .news__heading p {
    grid-column: 1 / -1;
  }

  .news__heading h2 {
    grid-column: 1;
    grid-row: 2;
  }

  .news__heading a {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    margin-top: 0;
  }

  .news__list li {
    width: 100%;
    min-width: 0;
    grid-template-columns: 60px max-content;
    gap: 14px 20px;
    padding-block: 16.5px 17.5px;
  }

  .news__list li a {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    overflow: visible;
    white-space: normal;
  }

  .news__list {
    width: 100%;
    min-width: 0;
  }

  .facilities {
    min-height: 1241px;
    margin-top: -206px;
    padding-block: 270px 0;
  }

  .facilities > .section-heading h2 {
    order: 1;
    margin-top: 0;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .facilities > .section-heading p {
    order: 2;
    margin-top: 14px;
  }

  .facilities > .section-heading::after {
    margin-top: 24px;
    background:
      linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
      linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 150px 2px no-repeat;
  }

  .facilities__intro {
    width: calc(100% - 60px);
    margin: 32px auto 24px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
  }

  .facilities__intro br {
    display: none;
  }

  .facilities__intro .sp-only-break {
    display: inline;
  }

  .facilities__intro .sp-only-break br {
    display: block;
  }

  .facilities__rail {
    display: flex;
    gap: 12px;
    width: calc(100% - 30px);
    margin-left: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .facilities__rail figure {
    width: 200px;
    height: 150px;
    scroll-snap-align: start;
  }

  .facilities__rail figcaption {
    padding: 3.5px 4px 4px;
  }

  .contact-panel {
    width: 330px;
    min-height: 803px;
    margin-top: -477px;
  }

  .contact-panel__body {
    grid-template-columns: 1fr;
    gap: 0;
    width: auto;
    padding: 40px 24px;
  }

  .contact-panel__heading {
    text-align: center;
  }

  .contact-panel__heading h2 {
    font-size: 36px;
    line-height: 1.28;
    letter-spacing: 1.44px;
  }

  .contact-panel__heading p {
    width: 282px;
    margin-top: 14px;
    font-size: 20px;
  }

  .contact-panel__heading p::after {
    width: 282px;
    height: 16px;
    margin-top: 24px;
    background:
      linear-gradient(var(--accent), var(--accent)) top / 100% 2px no-repeat,
      linear-gradient(var(--brand-500), var(--brand-500)) bottom center / 150px 2px no-repeat;
  }

  .contact-panel__heading > span {
    margin-top: 32px;
    text-align: left;
    font-size: 18px;
    line-height: 1.8;
  }

  .contact-panel__actions {
    gap: 8px;
    margin-top: 16px;
  }

  .contact-button {
    min-height: 76px;
    gap: 0;
    justify-content: space-between;
    padding: 14px 16px;
  }

  .contact-button img {
    width: 48px;
  }

  .contact-button span {
    width: 202px;
    gap: 4px;
  }

  .contact-button small {
    font-size: 12px;
    letter-spacing: 0.48px;
  }

  .contact-button strong {
    font-size: 24px;
    letter-spacing: 0.96px;
  }

  .contact-panel__app {
    width: 260px;
    margin: 24px auto 0;
  }

  .access {
    min-height: 1029px;
    padding-block: 64px;
  }

  .access > .section-heading h2 {
    white-space: nowrap;
    letter-spacing: 0;
  }

  .access__body {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .access__media img {
    aspect-ratio: 330 / 240;
  }

  .access__details dl > div {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .access__details {
    gap: 0;
  }

  .access__details dl {
    gap: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .hours-table {
    margin-top: 48px;
    font-size: 18px;
  }

  .hours-table::before {
    inset-block-start: -24px;
  }

  .hours-table [role="row"] {
    grid-template-columns: 120px repeat(8, 1fr);
  }

  .hours-table [role="row"] > span {
    padding: 12.33px 0;
  }

  .access__note {
    font-size: 14px;
  }

  .mobile-actions {
    position: fixed;
    z-index: 30;
    inset: auto 0 0;
    display: grid;
    width: auto;
    min-height: 64px;
    margin-inline: 0;
    box-shadow: 0 -4px 18px rgb(0 0 0 / 12%);
  }

  .mobile-actions a {
    padding: 0;
  }

  .site-footer__inner {
    display: block;
    margin-top: 64px;
  }

  .partner-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: calc((214px - 20px) / 3);
    height: 214px;
    margin-top: 0;
  }

  .partner-links a {
    height: auto;
  }

  .partner-links a:last-child {
    grid-column: 1;
  }

  .footer-nav {
    margin-top: 32px;
  }

  .footer-nav__groups {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-nav ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .facilities {
    padding-block: 270px 0;
  }

  .contact-panel {
    padding-block: 0;
  }

  .access {
    padding-block: 64px;
  }

  .site-footer {
    margin-top: 0;
    min-height: 884px;
    padding-bottom: 0;
    background:
      linear-gradient(transparent 0 32px, var(--surface) 32px 100%);
  }

  .site-footer__copyright {
    margin-top: 40px !important;
  }

  .partner-links {
    margin-top: 0;
  }

  .lower-hero {
    gap: 24px;
    min-height: 220px;
  }

  .lower-hero h1 {
    font-size: 32px;
  }

  .template-page__content {
    gap: 56px;
    padding-block: 56px 80px;
  }

  .template-page__content > * {
    min-width: 0;
  }

  .template-media-block,
  .template-symptoms,
  .template-benefits__grid,
  .template-two-images > div {
    grid-template-columns: 1fr;
  }

  .template-media-block > .template-heading {
    grid-column: auto;
  }

  .template-symptoms,
  .template-cta,
  .template-feature-list article {
    padding: 28px 24px;
  }

  .template-benefits__grid {
    gap: 24px;
  }

  .template-band-heading {
    margin-bottom: 56px;
  }

  .template-flow article {
    gap: 24px;
    padding: 28px 24px;
  }

  .template-flow__content {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .template-flow__copy {
    min-width: 0;
  }

  .template-pricing__table {
    gap: 12px;
    overflow: visible;
  }

  .template-pricing__table [role="row"] {
    grid-template-columns: 1fr;
    min-width: 0;
    border: 1px solid #dceaf1;
  }

  .template-pricing__table [role="row"]:first-child {
    display: none;
  }

  .template-pricing__table [role="row"] span:nth-child(2) {
    color: var(--brand-700);
    font-weight: 500;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .about-intro__body,
  .visit-guide__grid,
  .features__list,
  .clinic-menu__group-title,
  .clinic-menu__grid,
  .director__body,
  .news__panel,
  .access__body,
  .site-footer__inner {
    width: min(calc(100% - 60px), 760px);
    margin-inline: auto;
  }

  .contact-panel {
    width: min(calc(100% - 60px), 760px);
  }
}

@media (min-width: 900px) {
  body.home .site-footer {
    padding-bottom: 105px;
  }
}

@media (min-width: 900px) and (max-width: 1099px) {
  .site-header__inner {
    padding-inline: clamp(12px, 2vw, 24px);
  }

  .site-brand {
    gap: clamp(8px, 1vw, 12px);
  }

  .site-brand__mark {
    width: clamp(40px, 4.4vw, 48px);
    height: clamp(36px, 4vw, 44px);
  }

  .site-brand__mark img {
    height: clamp(37px, 4.1vw, 45px);
  }

  .site-brand__copy {
    gap: clamp(5px, 0.7vw, 8px);
    max-width: clamp(190px, 22vw, 242px);
  }

  .site-brand__location {
    font-size: clamp(10px, 1.1vw, 12px);
  }

  .site-brand__name {
    font-size: clamp(16px, 1.8vw, 20px);
    white-space: nowrap;
  }

  .primary-nav__list {
    gap: clamp(8px, 1.25vw, 16px);
    font-size: clamp(12px, 1.2vw, 14px);
    white-space: nowrap;
  }

  .hero {
    min-height: clamp(620px, 56.881vw, 777px);
  }

  .hero__content {
    width: calc(100% - clamp(72px, 9vw, 120px));
    padding-top: clamp(46px, 5vw, 64px);
  }

  .hero__title-group {
    width: min(562px, 51vw);
  }

  .hero__eyebrow {
    margin-left: clamp(8px, 1.1vw, 15px);
    font-size: clamp(27px, 3vw, 34px);
  }

  .hero__eyebrow::after {
    margin-top: clamp(14px, 1.7vw, 21px);
  }

  .hero__title,
  .hero__title-large {
    font-size: clamp(66px, 7.4vw, 84px);
    letter-spacing: clamp(4px, 0.55vw, 6px);
  }

  .hero__title-small {
    font-size: clamp(50px, 5.7vw, 64px);
  }

  .hero__ribbon {
    min-height: clamp(52px, 5.6vw, 62px);
    font-size: clamp(31px, 3.5vw, 40px);
    letter-spacing: clamp(2px, 0.25vw, 3px);
  }

  .hero__ribbon-copy {
    min-height: clamp(52px, 5.6vw, 62px);
    padding-inline: clamp(18px, 2.3vw, 28px);
  }

  .hero__ribbon-edge {
    width: clamp(12px, 1.2vw, 14px);
    height: clamp(52px, 5.6vw, 62px);
  }

  .hero__description {
    max-width: min(562px, 51vw);
    font-size: clamp(14px, 1.45vw, 16px);
    line-height: 1.8;
  }

  .hero__actions {
    width: 390px;
  }

  .guide-card h3 {
    font-size: clamp(19px, 2vw, 22px);
  }

  .guide-card {
    gap: 12px;
    padding: clamp(18px, 2vw, 22px);
  }

  .guide-card__heading {
    grid-template-columns: clamp(52px, 6vw, 60px) minmax(0, 1fr);
    gap: 10px;
  }

  .guide-card__icon {
    width: clamp(52px, 6vw, 60px);
  }

  .about-intro__copy h3 {
    font-size: clamp(28px, 3.1vw, 34px);
  }

  .about-intro__body,
  .feature-row,
  .access__body {
    gap: clamp(24px, 3vw, 34px);
  }

  .feature-row__copy h3 {
    font-size: clamp(28px, 3.1vw, 34px);
  }

  .feature-row__tags span {
    width: clamp(64px, 7.8vw, 86px);
    font-size: clamp(11px, 1.35vw, 15px);
  }

  .menu-card > span {
    gap: clamp(8px, 1.2vw, 16px);
    margin: clamp(12px, 1.8vw, 20px);
  }

  .menu-card__copy {
    gap: 4px;
    font-size: clamp(18px, 2.2vw, 24px);
  }

  .menu-card small {
    font-size: clamp(14px, 1.8vw, 20px);
  }

  .menu-card__arrow {
    width: clamp(24px, 2.8vw, 32px);
    font-size: clamp(12px, 1.35vw, 16px);
  }

  .director__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 34px);
    width: min(calc(100% - 90px), 1184px);
  }

  .director__copy h3 {
    font-size: clamp(26px, 2.6vw, 32px);
  }

  .director__copy p,
  .director__history {
    font-size: clamp(14px, 1.55vw, 17px);
  }

  .contact-panel {
    width: min(calc(100% - 60px), 1224px);
    margin-top: clamp(-231px, calc(105.8px - 30.64vw), -170px);
    background-position: center;
    background-size: cover;
  }

  .contact-panel__body {
    grid-template-columns: minmax(160px, 267fr) minmax(270px, 440fr) minmax(150px, 306fr);
    gap: clamp(12px, 1.5vw, 20px);
    width: calc(100% - 40px);
    padding-top: clamp(48px, 6vw, 64px);
  }

  .contact-panel__heading h2 {
    font-size: clamp(22px, 2.5vw, 30px);
  }

  .contact-panel__heading > span {
    font-size: clamp(14px, 1.55vw, 17px);
  }

  .contact-button {
    min-height: clamp(92px, 10vw, 112px);
    gap: clamp(8px, 1.2vw, 14px);
    padding: clamp(14px, 1.7vw, 20px);
  }

  .contact-button img {
    width: clamp(42px, 4.8vw, 54px);
  }

  .contact-button small {
    font-size: clamp(13px, 1.45vw, 16px);
  }

  .contact-button strong {
    font-size: clamp(24px, 2.6vw, 30px);
  }

  .facilities {
    margin-top: clamp(-149px, calc(121.58px - 24.62vw), -100px);
    padding-top: clamp(180px, calc(-41.58px + 24.62vw), 229px);
  }

  .footer-nav__groups {
    grid-template-columns: repeat(3, minmax(0, 240px));
    gap: clamp(24px, 3vw, 40px);
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .primary-nav {
    min-height: calc(100dvh - 64px);
    padding-inline: clamp(32px, 8vw, 80px);
    background: var(--surface);
  }

  .primary-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px clamp(32px, 6vw, 64px);
    width: min(100%, 760px);
  }

  .primary-nav .mobile-menu__partners,
  .mobile-menu__footer {
    width: min(100%, 760px);
  }

  .primary-nav .mobile-menu__partners {
    margin-top: 48px;
  }
}

@media (min-width: 1100px) and (max-width: 1365px) {
  .menu-card > span {
    gap: clamp(13.2px, calc(4.81vw - 39.71px), 26px);
    margin: clamp(20px, calc(4.51vw - 29.62px), 32px);
  }

  .menu-card__copy {
    font-size: clamp(24px, calc(3.01vw - 9.11px), 32px);
  }

  .menu-card small {
    font-size: clamp(20px, calc(4.51vw - 29.62px), 32px);
  }

  .menu-card__arrow {
    width: clamp(30px, calc(0.75vw + 21.75px), 32px);
    font-size: clamp(14px, calc(0.75vw + 5.75px), 16px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .jiyu-page-nav a:hover {
    border-color: var(--brand-500);
    background: #f0f9fd;
    box-shadow: 0 6px 18px rgb(1 75 132 / 12%);
    opacity: 1;
  }

  .jiyu-page-nav a:hover .jiyu-page-nav__arrow {
    transform: translateX(3px);
  }
}

@media (min-width: 900px) and (max-width: 1200px) {
  .lower-hero {
    min-height: 260px;
  }

  .template-page__content {
    gap: 64px;
    padding-block: 64px 80px;
  }

  .jiyu-page-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-media-block,
  .template-benefits__grid,
  .template-two-images > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .template-media-block > .template-heading {
    grid-column: 1 / -1;
  }

  .template-symptoms {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 32px;
    padding: 32px;
  }

  .template-cta,
  .template-feature-list article {
    padding: 32px;
  }

  .template-flow article {
    gap: 28px;
    padding: 32px;
  }

  .template-flow__content {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 32px;
  }

  .template-pricing__table {
    gap: 0;
    overflow: hidden;
  }

  .template-pricing__table [role="row"] {
    grid-template-columns: minmax(0, 1.9fr) minmax(150px, 1fr) minmax(0, 1.8fr);
    min-height: 64px;
    border: 0;
  }

  .template-pricing__table [role="row"]:first-child {
    display: grid;
  }
}

@media (max-width: 899px) {
  .lower-hero {
    gap: 16px;
    min-height: 176px;
    padding: 32px 20px;
  }

  .lower-hero__icon {
    width: 40px;
  }

  .lower-hero h1 {
    font-size: 26px;
  }

  .template-page__content {
    width: calc(100% - 40px);
    gap: 48px;
    padding-block: 48px 64px;
  }

  .jiyu-page-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jiyu-page-nav a {
    min-height: 80px;
  }

  .template-heading,
  .template-text-block > h2 {
    min-height: 0;
    margin-bottom: 28px;
    font-size: 26px;
  }

  .template-heading::after {
    width: 64px;
    margin-top: 12px;
  }

  .template-media-block {
    gap: 24px;
  }

  .template-copy {
    gap: 16px;
  }

  .template-text-block > .template-heading {
    margin-bottom: 24px;
  }

  .template-feature-list {
    gap: 20px;
  }

  .template-feature-list .template-heading {
    margin-bottom: 4px;
  }

  .template-feature-list article,
  .template-cta,
  .template-symptoms {
    padding: 24px 20px;
  }

  .template-feature-list article h3,
  .template-symptoms__list h2 {
    font-size: 22px;
  }

  .template-cta {
    gap: 20px;
  }

  .template-cta h2 {
    font-size: 24px;
  }

  .template-cta a {
    min-height: 52px;
  }

  .template-symptoms {
    gap: 24px;
  }

  .template-symptoms__list {
    gap: 16px;
    min-height: 0;
    padding: 24px 20px;
  }

  .template-symptoms__list h2 {
    padding-bottom: 16px;
  }

  .template-two-images {
    gap: 20px;
    padding: 28px 20px;
  }

  .template-two-images h2 {
    font-size: 22px;
  }

  .template-two-images > div {
    gap: 16px;
  }

  .template-band-heading {
    min-height: 72px;
    margin-bottom: 40px;
    font-size: 26px;
  }

  .template-benefits__body {
    gap: 28px;
  }

  .template-benefits__grid {
    gap: 20px;
  }

  .template-benefits__grid article {
    gap: 16px;
    min-height: 0;
    padding: 24px 20px;
  }

  .template-flow {
    gap: 28px;
  }

  .template-flow__steps {
    gap: 16px;
  }

  .template-flow article {
    gap: 20px;
    padding: 24px 20px;
  }

  .template-flow__number {
    padding-inline: 24px;
  }

  .template-flow__content {
    gap: 20px;
  }

  .template-flow__copy {
    gap: 12px;
  }

  .template-flow__arrow {
    min-height: 32px;
  }

  .template-pricing {
    gap: 16px;
  }

  .template-pricing__table {
    gap: 8px;
  }

  .template-pricing__table [role="row"] {
    min-height: 0;
    padding: 12px 16px;
  }
}

@media (max-width: 390px) {
  .hero__media {
    height: auto;
    aspect-ratio: 390 / 452;
  }

  .hero__media img {
    width: 204.1%;
    max-width: none;
    height: 100%;
    margin-left: -94.36%;
  }
}

@media (max-width: 639px) {
  .news__list li a {
    overflow: visible;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 391px) and (max-width: 899px) {
  .hero__media {
    height: clamp(452px, calc(23.5vw + 360px), 560px);
    aspect-ratio: auto;
  }

  .hero__content {
    width: min(100%, 820px);
    margin-inline: auto;
    padding: 24px 30px 51px;
  }

  .hero__title-group {
    width: min(100%, 330px);
  }

  .hero__eyebrow {
    font-size: 30px;
  }

  .hero__title,
  .hero__title-large {
    font-size: 61px;
    letter-spacing: 4px;
  }

  .hero__title-small {
    font-size: 44px;
  }
}

@media (min-width: 391px) and (max-width: 639px) {
  .hero__media img {
    width: max(100%, calc(1039.36px - 62.4vw));
    margin-left: min(0px, calc(147.2vw - 942.08px));
  }
}

@media (max-width: 389px) {
  :root {
    --gutter: 16px;
  }

  .site-header__inner {
    padding-left: 8px;
  }

  .site-brand {
    gap: 8px;
  }

  .site-brand__mark {
    width: 36px;
  }

  .site-brand__copy {
    width: min(190px, calc(100vw - 118px));
  }

  .site-brand__location {
    font-size: 9px;
  }

  .site-brand__name {
    font-size: 14px;
  }

  .guide-card h3 {
    font-size: clamp(20px, 6.15vw, 24px);
  }

  .clinic-menu__group-title,
  .clinic-menu__grid,
  .director__body {
    width: calc(100% - 32px);
  }

  .menu-card__copy {
    width: auto;
    flex: 1 1 auto;
  }

  .news__list li {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .facilities__intro {
    width: calc(100% - 32px);
  }

  .facilities__rail {
    width: calc(100% - 16px);
    margin-left: 16px;
  }

  .contact-panel {
    width: calc(100% - 32px);
    margin-inline: auto;
  }

  .contact-panel__heading h2 {
    font-size: 30px;
  }

  .contact-panel__heading,
  .contact-panel__actions,
  .contact-button {
    width: 100%;
    min-width: 0;
  }

  .contact-panel__heading p,
  .contact-panel__heading p::after {
    width: 100%;
  }

  .access > .section-heading h2 {
    font-size: 28px;
  }
}

@media (max-width: 509px) {
  .jiyu-page-nav ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jiyu-page-nav a {
    min-height: 68px;
    padding: 14px 16px 14px 18px;
    font-size: 16px;
  }

  .jiyu-page-nav a br {
    display: none;
  }

  .about-intro__copy h3 {
    font-size: clamp(26px, calc(7.714px + 5.714vw), 30px);
    line-height: 1.5;
  }

  .about-intro__copy h3 > span:last-child > span {
    display: block;
  }
}

@media (max-width: 390px) {
  .about-intro__copy h3 {
    font-size: clamp(26px, calc(12.286px + 4.286vw), 29px);
  }

  .feature-row:first-child .feature-row__copy h3 {
    font-size: clamp(27px, calc(13.286px + 4.286vw), 30px);
  }

  .hero__content {
    padding-inline: clamp(16px, calc(20vw - 48px), 30px);
  }

  .hero__title,
  .hero__title-large {
    font-size: clamp(46px, calc(25.86cqi - 24.34px), 61px);
    letter-spacing: clamp(2.4px, calc(2.76cqi - 5.1px), 4px);
  }

  .hero__title-small {
    font-size: clamp(38px, calc(13.8cqi - 1.54px), 44px);
  }

  .hero__eyebrow {
    font-size: clamp(27px, calc(5.17cqi + 12.93px), 30px);
  }

  .hero__ribbon {
    font-size: clamp(24px, calc(10.35cqi - 2.15px), 32px);
  }

  .hero__ribbon-copy {
    padding-inline: clamp(6px, calc(5.23vw - 9.9px), 10.5px);
  }
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    opacity: 0.72;
  }

  :is(.action-bar a, .contact-button, .template-cta a, .guide-card, .menu-card, .partner-links a, .contact-panel__app):hover {
    filter: brightness(1.04);
    opacity: 1;
  }

  :is(.action-bar a, .contact-button, .template-cta a):hover {
    filter: brightness(1.08) saturate(1.06);
    box-shadow: 0 6px 18px rgb(1 75 132 / 18%);
  }

  .guide-card:hover {
    box-shadow: 0 8px 24px rgb(1 75 132 / 14%);
  }

  .menu-card:hover {
    filter: brightness(1.04) saturate(1.04);
  }

  .partner-links a:hover {
    box-shadow: 0 8px 20px rgb(1 75 132 / 14%);
  }

  :is(.menu-card__arrow, .footer-nav a::before, .template-cta a span, .action-bar__arrow img) {
    transition:
      color var(--hover-duration) var(--hover-ease),
      background-color var(--hover-duration) var(--hover-ease),
      transform var(--hover-duration) var(--hover-ease);
  }

  .menu-card:hover .menu-card__arrow,
  .footer-nav a:hover::before,
  .template-cta a:hover span {
    transform: translateX(4px);
  }

  .action-bar__arrow:hover img {
    transform: translateY(-3px);
  }

  .menu-card:hover .menu-card__arrow {
    color: var(--white);
    background: var(--accent);
  }

  .clinic-menu__group-title--private + .clinic-menu__grid .menu-card:hover .menu-card__arrow {
    background: var(--brand-900);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  :is(.menu-card__arrow, .footer-nav a::before, .template-cta a span, .action-bar__arrow img) {
    transition-duration: 0.01ms;
  }

  .menu-card:hover .menu-card__arrow,
  .footer-nav a:hover::before,
  .template-cta a:hover span,
  .action-bar__arrow:hover img {
    transform: none;
  }
}

/* ---------------------------------------------------------------
   下層ページ：撮影写真の適用（2026-07 撮影分）
   - .lower-hero に外観写真を敷き、文字可読性のため暗いスクリムを重ねる
   - 画像枠 .template-placeholder を <img> で使う場合の調整
   --------------------------------------------------------------- */
.lower-hero {
  color: var(--white);
  background-image:
    linear-gradient(rgb(21 42 49 / 62%), rgb(21 42 49 / 62%)),
    url("../images/hero-lower.webp");
  background-position: center;
  background-size: cover;
}

img.template-placeholder {
  border: 0;
  background: none;
  object-fit: cover;
}

/* ナビ項目が7つになり 1100〜1279px で余裕がゼロになるため、この範囲だけ間隔を詰める
   （1099px以下はテーマ側の流動縮小が効いている） */
@media (min-width: 1100px) and (max-width: 1279px) {
  .primary-nav__list {
    gap: 20px;
  }
}

/* ---------------------------------------------------------------
   グローバルナビ「診療科目」のドロップダウン
   - PCはホバー／キーボードフォーカス（:focus-within）で開く
   - display/visibility ではなく opacity + pointer-events で隠すため、
     Tabキーで submenu 内リンクに入れる（:focus-within が効く）
   - SP（ハンバーガー内）は入れ子リストとして常時表示
   --------------------------------------------------------------- */
.primary-nav__list > li {
  position: relative;
}

.primary-nav__sub {
  position: absolute;
  z-index: 60;
  top: 100%;
  left: 50%;
  display: grid;
  width: max-content;
  min-width: 220px;
  margin: 0;
  padding: 10px 0;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 10px 28px rgb(1 75 132 / 14%);
  list-style: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  pointer-events: none;
  transition:
    opacity 200ms ease,
    transform 240ms var(--hover-ease);
}

.primary-nav__list > li:hover > .primary-nav__sub,
.primary-nav__list > li:focus-within > .primary-nav__sub {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.primary-nav__sub a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.primary-nav__sub a:hover {
  color: var(--brand-700);
  background: var(--surface);
}

@media (max-width: 899px) {
  .primary-nav__sub {
    position: static;
    gap: 18px;
    width: auto;
    min-width: 0;
    margin-top: 20px;
    padding: 0 0 0 16px;
    border-left: 2px solid var(--surface);
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .primary-nav__sub a {
    padding: 0;
    font-size: 16px;
    white-space: normal;
  }
}

/* ---------------------------------------------------------------
   Contact Form 7（お問い合わせフォーム）
   プラグイン既定のスタイルをテーマの見た目に合わせる。
   `.contact-form` で囲った範囲だけに適用する。
   --------------------------------------------------------------- */
.contact-form .wpcf7-form {
  display: grid;
  gap: 24px;
  margin-top: 4px;
}

/* CF7 既定マークアップ（<p> 区切り）でも崩れないようにする */
.contact-form .wpcf7-form > p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 8px;
}

.contact-form .contact-form__row {
  display: grid;
  gap: 8px;
}

.contact-form .contact-form__label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-form .contact-form__required {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  color: var(--white);
  background: var(--accent);
  font-size: 12px;
  font-weight: 400;
}

.contact-form :is(
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
  input[type="number"], input[type="date"], select, textarea
) {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #789099;
  border-radius: 4px;
  color: var(--text);
  background: var(--white);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.contact-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

/* ラジオ（性別）は横並び */
.contact-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.contact-form .wpcf7-list-item {
  margin: 0;
}

.contact-form .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 同意チェックとプライバシーポリシーへの導線 */
.contact-form .contact-form__consent {
  padding: 20px;
  border-radius: 4px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.8;
}

.contact-form .contact-form__consent a {
  color: var(--brand-700);
  text-decoration: underline;
}

/* 送信ボタン（template-cta のボタンに合わせる） */
.contact-form .wpcf7-submit {
  display: block;
  width: min(362px, 100%);
  min-height: 56px;
  margin: 8px auto 0;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-700);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--hover-duration) var(--hover-ease);
}

.contact-form .wpcf7-submit:hover {
  opacity: 0.85;
}

.contact-form .wpcf7-spinner {
  margin: 12px auto 0;
}

/* CF7 の確認画面系プラグイン未導入で [confirm] 等が素通しされた場合、
   本文にショートコードがそのまま出てしまう。CSSでは消せないため
   フォームタグ側の修正が必要（_docs/お問い合わせフォーム_CF7.md 参照）。 */

/* バリデーションメッセージ */
.contact-form .wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 14px;
}

.contact-form :is(.wpcf7-response-output) {
  margin: 0;
  padding: 14px 16px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 899px) {
  .contact-form .wpcf7-form {
    gap: 20px;
  }

  .contact-form textarea {
    min-height: 140px;
  }
}

/* ---------------------------------------------------------------
   お問い合わせフォーム（Contact Form 7 ＋ CF7 add confirm / wpcf7c）
   フォームタグ側のマークアップ（.wrap_contact / .inquiryFormTable / .step_list）を
   テーマの見た目に合わせる。フォームタグは _docs/お問い合わせフォーム_CF7.md を参照。
   --------------------------------------------------------------- */

/* ステップ表示（1ご入力 → 2ご確認 → 3送信完了） */
.contact-form .step_list {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.contact-form .step_list li {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #789099;
  background: var(--surface);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.contact-form .step_list li > span {
  display: grid;
  width: 22px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #c3d3da;
  font-size: 13px;
}

.contact-form .step_list li.current {
  color: var(--white);
  background: var(--brand-700);
}

.contact-form .step_list li.current > span {
  color: var(--brand-700);
  background: var(--white);
}

.contact-form .step_catch {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.9;
}

/* 入力項目（dl / dt / dd） */
.contact-form .inquiryFormTable dl {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 8px 24px;
  margin: 0;
  padding-block: 20px;
  border-bottom: 1px solid #dceaf1;
}

.contact-form .inquiryFormTable dl:first-child {
  padding-top: 0;
}

.contact-form .inquiryFormTable dt {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
}

.contact-form .inquiryFormTable dd {
  display: grid;
  gap: 8px;
  margin: 0;
}

/* 必須マーク（※・赤） */
.contact-form .required {
  margin-left: 6px;
  color: #c0392b;
  font-weight: 700;
}

/* 入力欄の下の補足文 */
.contact-form .comment {
  font-size: 14px;
  line-height: 1.7;
  color: #5a6b72;
}

/* 確認画面で読み取り専用になった入力欄 */
.contact-form .wpcf7c-conf {
  border-color: transparent;
  background: var(--surface);
}

/* ボタン列（入力内容を確認する／編集画面に戻る／送信する） */
.contact-form .btBox {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.contact-form .btBox :is(input[type="submit"], input[type="button"], button) {
  width: min(320px, 100%);
  min-height: 56px;
  padding-inline: 24px;
  border: 0;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-700);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--hover-duration) var(--hover-ease);
}

/* 「編集画面に戻る」はサブ扱い。
   上の :is(input[type="submit"]…) が詳細度(0,3,1)になるため、
   属性＋クラスで確実に上書きする。 */
.contact-form .btBox input[type="button"].wpcf7c-btn-back {
  color: var(--brand-700);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--brand-700);
}

.contact-form .btBox :is(input[type="submit"], input[type="button"], button):hover {
  opacity: 0.85;
}

/* 完了画面の「ホームへ戻る」 */
.contact-form .btn {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.contact-form .btn_inner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 6px;
  color: var(--white);
  background: var(--brand-700);
  font-size: 16px;
  font-weight: 500;
}

@media (max-width: 899px) {
  .contact-form .inquiryFormTable dl {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 16px;
  }

  .contact-form .step_list {
    gap: 4px;
  }

  .contact-form .step_list li {
    flex-direction: column;
    gap: 4px;
    min-height: 56px;
    font-size: 12px;
  }

  .contact-form .btBox :is(input[type="submit"], input[type="button"], button),
  .contact-form .btn_inner a {
    width: 100%;
  }
}

/* 1枚のカードに見出しを複数置く場合（アクセス＋診療時間・休診日のマージ）、
   2つめ以降の見出しの手前に余白を足す（カード内の gap 20px だけでは詰まるため） */
.template-symptoms__list > h2:not(:first-child) {
  margin-top: 20px;
}

/* アクセス：Googleマップの埋め込み（横幅いっぱい・16:7） */
.access-map {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 4px;
}

.access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 899px) {
  .access-map {
    aspect-ratio: 4 / 3;
  }
}

/* 診療科目トップ：TOPの clinic-menu を下層で流用する際の調整。
   TOPでは前のセクションとの間隔用に margin-top:70px が付くが、FVの直後では不要
   （帯見出し側の margin-top 45px / 21px がそのまま余白になる）。 */
.lower-hero + .clinic-menu {
  margin-top: 0;
}

/* ---------------------------------------------------------------
   template-symptoms：右の画像を外し、リストカードだけを使う
   （元は 504px＋368px の2カラム＋グレー地の外枠）
   画像を持たない場合だけ、外枠の背景・余白を外してカードを80%幅で中央寄せ。
   画像を持つ場合（page-clinic.php の経歴など）は従来のまま。
   --------------------------------------------------------------- */
.template-symptoms:not(:has(> .template-placeholder)) {
  grid-template-columns: minmax(0, 80%);
  padding-block: 0;
  border: 0;
  background: none;
}

.template-symptoms:not(:has(> .template-placeholder)) .template-symptoms__list {
  min-height: 0;
}

@media (max-width: 899px) {
  /* SPは80%だと窮屈なので全幅に戻す。外枠の余白も不要。 */
  .template-symptoms:not(:has(> .template-placeholder)) {
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
  }
}

/* ---------------------------------------------------------------
   02 当院について 最下部：隣接施設「やまぐち接骨院・鍼灸院」のご紹介
   テンプレートに該当部品がないため新規。青帯は既存 .template-band-heading を流用。
   --------------------------------------------------------------- */
.partner-clinic .template-benefits__body {
  gap: 24px;
}

/* .template-copy h3（17px）より詳細度を上げる必要があるため要素＋クラス指定 */
.partner-clinic h3.partner-clinic__name {
  margin-bottom: 0;
  font-family: var(--font-gothic);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.partner-clinic__meta {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.8;
}

.partner-clinic__figure {
  margin: 0;
}

.partner-clinic__figure img,
.partner-clinic__photos img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.partner-clinic__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 899px) {
  .partner-clinic h3.partner-clinic__name {
    font-size: 22px;
  }

  .partner-clinic__photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------------------------------------------------------------
   template-flow：文字サイズの拡大＋写真なしステップの1カラム化
   - 番号（Flow 01）と本文は 05 治療の流れ／07 検査・処方の流れ 共通で拡大
   - 写真を持たないステップ（07）だけ1カラム＆min-height解除
   --------------------------------------------------------------- */
.template-flow__number {
  padding: 10px 44px;
  font-size: 16px;
}

.template-flow__copy {
  gap: 20px;
}

.template-flow__copy h3 {
  padding-bottom: 18px;
  font-family: var(--font-gothic);
  font-size: 20px;
  line-height: 1.5;
}

.template-flow__copy p {
  font-size: 16px;
  line-height: 1.9;
}

.template-flow__content:has(> .template-flow__copy:only-child) {
  grid-template-columns: 1fr;
}

.template-flow article:has(.template-flow__copy:only-child) {
  min-height: 0;
}

/* 写真なしのフローはPCで横一列に並べる（矢印は右向きに回転） */
@media (min-width: 900px) {
  .template-flow__steps:not(:has(img.template-placeholder)) {
    display: flex;
    align-items: stretch;
    gap: 12px;
  }

  .template-flow__steps:not(:has(img.template-placeholder)) > article {
    flex: 1 1 0;
    min-width: 0;
    padding: 28px 20px;
    /* カードを同じ高さに揃えると grid の行が伸びて番号バッジが縦長になるため上詰めにする */
    align-content: start;
    gap: 20px;
  }

  .template-flow__steps:not(:has(img.template-placeholder)) .template-flow__number {
    padding: 8px 20px;
  }

  .template-flow__steps:not(:has(img.template-placeholder)) .template-flow__arrow {
    flex: 0 0 auto;
    align-self: center;
    min-height: 0;
  }

  .template-flow__steps:not(:has(img.template-placeholder)) .template-flow__arrow img {
    transform: rotate(-90deg);
  }
}

@media (max-width: 899px) {
  .template-flow__copy h3 {
    font-size: 18px;
  }
}

/* 02 当院について「医療機器・設備」：設備カードに写真を添える（写真＋テキストの2カラム）。
   :has(> img) で限定しているため、写真のない他の feature-list カードは従来どおり。 */
.template-feature-list article:has(> img) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
}

/* 写真は右カラム、本文は左カラム（DOM順は画像が先のままCSSで入れ替え） */
.template-feature-list article:has(> img) > img {
  grid-row: 1;
  grid-column: 2;
}

.template-feature-list article:has(> img) > .template-copy {
  grid-row: 1;
  grid-column: 1;
}

.template-feature-list article > img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.template-feature-list article:has(> img) h3 {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .template-feature-list article:has(> img) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .template-feature-list article:has(> img) > img,
  .template-feature-list article:has(> img) > .template-copy {
    grid-row: auto;
    grid-column: auto;
  }
}

/* 09 スタッフ紹介：右カラムに「院長ポートレート → 経歴カード」を隙間なく積む。
   本文は左カラムで2行ぶんにまたがらせ、写真の直下に経歴が来るようにする。 */
.template-media-block:has(> .template-symptoms__list) > .template-copy {
  grid-row: 2 / span 2;
}

.template-media-block:has(> .template-symptoms__list) > .template-placeholder {
  grid-row: 2;
  grid-column: 2;
  align-self: start;
}

.template-media-block > .template-symptoms__list {
  grid-row: 3;
  grid-column: 2;
  align-self: start;
  min-height: 0;
  padding: 24px 28px;
}

@media (max-width: 899px) {
  .template-media-block:has(> .template-symptoms__list) > .template-copy,
  .template-media-block:has(> .template-symptoms__list) > .template-placeholder,
  .template-media-block > .template-symptoms__list {
    grid-row: auto;
    grid-column: auto;
  }
}

/* ------------------------------------------------------------------
   募集要項テーブル（お問い合わせ・求人）
   旧サイト /contact/ の「ラベル／内容」表組みを、当サイトの配色で再現。
   .template-symptoms__list の中で使う。
   ------------------------------------------------------------------ */
.recruit-table {
  display: grid;
  margin: 0;
  border-top: 1px solid #dceaf1;
}

.recruit-table > div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border-bottom: 1px solid #dceaf1;
}

.recruit-table dt {
  padding: 18px 20px;
  background: var(--surface);
  color: var(--brand-900);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.recruit-table dd {
  margin: 0;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.7;
}

/* 勤務時間の3パターン。.template-symptoms__list li の20px丸マーカーは
   時刻の羅列には重いので、小さめの塗り丸に差し替える。 */
.recruit-table dd ul {
  margin-top: 8px;
  gap: 4px;
}

.recruit-table dd li {
  gap: 10px;
  font-size: 15px;
}

.recruit-table dd li::before {
  width: 5px;
  border: 0;
  background: var(--brand-500);
}

@media (max-width: 899px) {
  .recruit-table > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .recruit-table dt {
    padding: 10px 16px;
  }

  .recruit-table dd {
    padding: 14px 16px;
  }
}

/* ------------------------------------------------------------------
   お知らせ（投稿）一覧ページ・詳細ページ
   行のマークアップ（.news__list）はTOPと共用。
   ------------------------------------------------------------------ */

/* カテゴリー未設定の記事では枠だけが残るので消す。 */
.news__list span:empty {
  padding: 0;
  border: 0;
}

/* カテゴリーは複数付く場合があるため、バッジをひとつのグリッドセルに包む。
   包む側は枠なし・中の span だけがバッジになる。 */
.news__list .news__cats {
  display: flex;
  flex-wrap: wrap;
  justify-self: start;
  gap: 6px;
  padding: 0;
  border: 0;
}

.news-archive .news__list {
  margin-bottom: 40px;
}

/* TOPは白パネル上なので #f8f9fa の罫線で足りるが、
   下層は薄水色の地の上なので見えない。罫線を一段濃くする。 */
.news-archive .news__list li {
  border-color: #dceaf1;
}

.news-archive__pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-archive__pagination a,
.news-archive__pagination span {
  display: grid;
  min-width: 40px;
  height: 40px;
  padding-inline: 12px;
  border: 1px solid #789099;
  border-radius: 4px;
  place-items: center;
  color: var(--brand-700);
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background var(--hover-duration) var(--hover-ease);
}

.news-archive__pagination a:hover,
.news-archive__pagination a:focus-visible {
  background: var(--surface);
}

.news-archive__pagination .current {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: var(--white);
}

.news-archive__pagination .dots {
  border: 0;
}

/* 詳細ページ。見出しは lower-hero の h1 が担当する。 */
.news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1;
}

.news-single__meta time {
  color: var(--brand-700);
  font-weight: 500;
}

.news-single__meta span {
  padding: 6px 12px;
  border: 1px solid var(--brand-500);
  border-radius: 2px;
  color: var(--brand-700);
  font-size: 14px;
}

/* 投稿本文は管理画面から自由に書かれるため、主要な要素に最低限の体裁を当てる。 */
.news-single__body :is(h2, h3, h4) {
  margin-top: 40px;
  margin-bottom: 12px;
  font-family: var(--font-mincho);
  font-weight: 600;
  line-height: 1.4;
}

.news-single__body h2 {
  font-size: 24px;
}

.news-single__body h3 {
  font-size: 20px;
}

.news-single__body h4 {
  font-size: 17px;
}

.news-single__body :is(ul, ol) {
  margin: 0 0 20px;
  padding-left: 1.4em;
}

.news-single__body li {
  margin-top: 6px;
}

.news-single__body img {
  height: auto;
  max-width: 100%;
}

.news-single__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.news-single__body :is(th, td) {
  padding: 12px 16px;
  border: 1px solid #dceaf1;
  text-align: left;
}

.news-single__body th {
  background: var(--surface);
}

.news-single__body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--brand-500);
  background: var(--surface);
}

.news-single__back {
  margin: 40px 0 0;
  text-align: center;
}

.news-single__back a {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid #3770a6;
  color: #3770a6;
  font-size: 15px;
}

@media (max-width: 899px) {
  .news-archive .news__list {
    margin-bottom: 28px;
  }

  .news-single__meta {
    gap: 12px;
    margin-bottom: 20px;
  }

  .news-single__body h2 {
    font-size: 21px;
  }

  .news-single__body h3 {
    font-size: 18px;
  }
}

/* ------------------------------------------------------------------
   しげクリ通心 一覧（page-shigecli.php）
   本文の冒頭数行＋「詳しくはこちら」で詳細ページへ送る。
   ------------------------------------------------------------------ */
.column-list {
  display: grid;
  gap: 32px;
}

.column-list__item {
  padding: 32px 36px;
  border: 1px solid #789099;
  border-radius: 4px;
  background: var(--white);
}

.column-list__meta {
  margin: 0 0 10px;
  color: var(--brand-700);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}

.column-list__title {
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--brand-700);
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.column-list__title a {
  color: var(--text);
  text-decoration: none;
}

.column-list__title a:hover,
.column-list__title a:focus-visible {
  color: var(--brand-700);
}

/* 冒頭3行だけ見せる。行数が足りない記事はそのまま全部出る。 */
.column-list__excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 15px;
  line-height: 1.8;
}

.column-list__more {
  margin: 20px 0 0;
  text-align: right;
}

.column-list__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #3770a6;
  color: #3770a6;
  font-size: 15px;
  text-decoration: none;
}

.column-list__more a:hover span,
.column-list__more a:focus-visible span {
  transform: translateX(3px);
}

.column-list__more span {
  transition: transform var(--hover-duration) var(--hover-ease);
}

.column-list .news-archive__pagination {
  margin-top: 8px;
}

@media (max-width: 899px) {
  .column-list {
    gap: 20px;
  }

  .column-list__item {
    padding: 24px 20px;
  }

  .column-list__title {
    margin-bottom: 12px;
    padding-bottom: 12px;
    font-size: 19px;
  }

  .column-list__more {
    margin-top: 16px;
  }
}

/* ------------------------------------------------------------------
   AIチャット（nomoca AI）の呼び出しバナー
   旧サイトの .fixbnr / #open-chatbot を踏襲。左下に固定。
   SPでは下部の追従バー（.mobile-actions＝高さ64px）に重ならないよう持ち上げる。
   ------------------------------------------------------------------ */
.ai-chat-banner {
  position: fixed;
  z-index: 29; /* .mobile-actions（30）より下。重なっても追従バーを隠さない。 */
  inset: auto auto 24px 24px;
  line-height: 0;
}

.ai-chat-banner button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 10px rgb(0 0 0 / 18%));
  transition: transform var(--hover-duration) var(--hover-ease);
}

.ai-chat-banner button:hover,
.ai-chat-banner button:focus-visible {
  transform: translateY(-2px);
}

.ai-chat-banner img {
  width: 240px;
  height: auto;
}

/* メニューを開いている間は隠す（.mobile-actions と同じ挙動）。 */
body[data-menu-open] .ai-chat-banner {
  display: none;
}

@media (max-width: 899px) {
  .ai-chat-banner {
    /* 追従バー（min-height 64px）の上に置く。 */
    inset: auto auto 76px 12px;
  }

  .ai-chat-banner img {
    width: 208px;
  }
}

@media (max-width: 389px) {
  .ai-chat-banner img {
    width: 176px;
  }
}

/* ------------------------------------------------------------------
   お知らせ・しげクリ通心系ページのCTA
   TOPと同じ .contact-panel を .template-page__body の直下に置く。
   （.l-container の内側に入れると横幅が二重に絞られるため外に出している）
   ------------------------------------------------------------------ */

/* 本文側の下余白（120px）とパネルが重なって空きすぎるので詰める。 */
.template-page__body > .template-page__content:has(+ .contact-panel) {
  padding-bottom: 40px;
}

/* TOPでは前のセクションに意図的に重ねるため margin-top が負（-231px / SP -477px）。
   下層ではその重なりが本文に被るので打ち消す。
   あわせてページ最後の要素になるため、フッターとの間隔を確保する。 */
.template-page__body > .contact-panel {
  margin-top: 0;
  margin-bottom: 80px;
}

@media (max-width: 899px) {
  .template-page__body > .template-page__content:has(+ .contact-panel) {
    padding-bottom: 24px;
  }

  .template-page__body > .contact-panel {
    margin-bottom: 48px;
  }
}

/* ------------------------------------------------------------------
   院内・設備ギャラリー：横に流れ続けるマーキー
   同じ並びを2組出力し、1組分（画像幅＋隙間）×枚数 だけ移動させて繰り返す。
   移動量を「2組の50%」ではなく実寸から算出しているのは、
   flex の gap がある場合 50% では継ぎ目がずれるため。
   ------------------------------------------------------------------ */
.facilities__rail {
  --facilities-item: 400px;
  --facilities-gap: 24px;
  --facilities-count: 4; /* 1組の枚数。front-page.php の $facility_photos と合わせる */
  --facilities-duration: 40s;

  width: 100%;
  margin-left: 0;
  overflow: hidden;
}

.facilities__track {
  display: flex;
  width: max-content;
  gap: var(--facilities-gap);
  animation: facilities-marquee var(--facilities-duration) linear infinite;
  will-change: transform;
}

@keyframes facilities-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--facilities-count) * (var(--facilities-item) + var(--facilities-gap))));
  }
}

/* 読んでいる間は止められるように。 */
.facilities__rail:hover .facilities__track,
.facilities__rail:focus-within .facilities__track {
  animation-play-state: paused;
}

.facilities__rail figure {
  width: var(--facilities-item);
}

@media (max-width: 899px) {
  .facilities__rail {
    --facilities-item: 200px;
    --facilities-gap: 12px;
    --facilities-duration: 28s;

    /* 自動で流れるため、手動スクロールとスナップは解除する。 */
    width: 100%;
    margin-left: 0;
    overflow: hidden;
    scroll-snap-type: none;
  }

  .facilities__rail figure {
    scroll-snap-align: none;
  }
}

@media (max-width: 389px) {
  .facilities__rail {
    width: 100%;
    margin-left: 0;
  }
}

/* 動きを減らす設定の場合は止めて、手動で横スクロールできるようにする。 */
@media (prefers-reduced-motion: reduce) {
  .facilities__track {
    animation: none;
  }

  .facilities__rail {
    overflow-x: auto;
  }
}

/* ------------------------------------------------------------------
   サイトマップ
   グループ見出し＋リンク一覧。子ページは入れ子で1段下げる。
   ------------------------------------------------------------------ */
/* グリッドだと項目数の差でカラムの片側に大きな空白が出るため段組みで流す。
   グループが列をまたいで割れないよう break-inside を止める。 */
.sitemap {
  columns: 2;
  column-gap: 60px;
}

.sitemap__group {
  margin-bottom: 44px;
  break-inside: avoid;
}

.sitemap__group:last-child {
  margin-bottom: 0;
}

.sitemap__group h2 {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--brand-700);
  color: var(--brand-900);
  font-family: var(--font-mincho);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.sitemap__group ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 子リスト（診療科目の内訳など）は1段下げて罫線で親との関係を示す。 */
.sitemap__group li ul {
  margin: 2px 0 8px;
  padding-left: 18px;
  border-left: 1px solid #dceaf1;
}

.sitemap__group a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

.sitemap__group a::before {
  color: var(--brand-500);
  content: "→";
  transition: transform var(--hover-duration) var(--hover-ease);
}

.sitemap__group li ul a {
  padding: 7px 0;
  font-size: 15px;
}

.sitemap__external {
  color: var(--brand-700);
  font-size: 13px;
}

@media (hover: hover) and (pointer: fine) {
  .sitemap__group a:hover,
  .sitemap__group a:focus-visible {
    color: var(--brand-700);
  }

  .sitemap__group a:hover::before,
  .sitemap__group a:focus-visible::before {
    transform: translateX(3px);
  }
}

@media (max-width: 899px) {
  .sitemap {
    columns: 1;
  }

  .sitemap__group {
    margin-bottom: 30px;
  }

  .sitemap__group h2 {
    margin-bottom: 14px;
    padding-bottom: 10px;
    font-size: 19px;
  }

  .sitemap__group a {
    font-size: 15px;
  }
}

/* ------------------------------------------------------------------
   TOP：当院について と 当院の特徴 の間の3導線ボタン（2026-08-18 修正依頼②）
   色・書体はサイト既存の .template-cta a と揃えた。
   ------------------------------------------------------------------ */
.top-links {
  padding-block: 56px 0;
}

.top-links__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.top-links__item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-height: 104px;
  padding: 20px 44px 20px 24px;
  position: relative;
  border-radius: 6px;
  background: var(--brand-700);
  color: var(--white);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 7px 26px rgb(1 75 132 / 10%);
  transition:
    transform var(--hover-duration) var(--hover-ease),
    background var(--hover-duration) var(--hover-ease);
}

.top-links__label {
  font-family: var(--font-mincho);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.top-links__sub {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.9;
}

.top-links__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  translate: 0 -50%;
  font-size: 16px;
  transition: translate var(--hover-duration) var(--hover-ease);
}

@media (hover: hover) and (pointer: fine) {
  .top-links__item:hover,
  .top-links__item:focus-visible {
    background: var(--brand-900);
    transform: translateY(-3px);
  }

  .top-links__item:hover .top-links__arrow,
  .top-links__item:focus-visible .top-links__arrow {
    translate: 4px -50%;
  }
}

@media (max-width: 899px) {
  .top-links {
    padding-block: 36px 0;
  }

  .top-links__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: calc(100% - 60px);
    margin-inline: auto;
  }

  .top-links__item {
    min-height: 76px;
    padding: 16px 40px 16px 20px;
  }

  .top-links__label {
    font-size: 20px;
  }
}

/* ------------------------------------------------------------------
   TOP「ご来院・ご予約について」内に移したお知らせ欄（2026-08-25 修正依頼）
   PC：ガイド3枚の右（4列目）。SP：グリッドが1列になるので自動的に一番下。
   記事が0件のときは .news__panel が出力されないので :has() で3列に戻す。
   ------------------------------------------------------------------ */
.visit-guide__grid:has(.news__panel) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.12fr);
  align-items: start;
}

/* 元の .news セクション（白パネル＋大きな余白）ではなく、
   ガイドカードと並ぶ1枚のカードとして見せる。 */
.visit-guide .news__panel {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  padding: 24px;
  align-content: start;
}

.visit-guide .news__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 12px;
}

.visit-guide .news__heading p {
  grid-column: 1;
}

.visit-guide .news__heading h2 {
  grid-column: 1;
  font-size: 26px;
}

.visit-guide .news__heading a {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-top: 0;
  align-self: end;
  font-size: 13px;
  white-space: nowrap;
}

/* 幅が狭いので、日付＋カテゴリーを1行目、タイトルを2行目に折り返す。 */
.visit-guide .news__list li {
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 6px 14px;
  padding-block: 12px;
  font-size: 14px;
}

.visit-guide .news__list li > a {
  grid-column: 1 / -1;
  line-height: 1.5;
}

@media (max-width: 899px) {
  /* SPはグリッドが1列。お知らせは最後の要素なので一番下に来る。 */
  .visit-guide__grid:has(.news__panel) {
    grid-template-columns: minmax(0, 1fr);
  }

  .visit-guide .news__panel {
    height: auto;
  }

  .visit-guide .news__heading h2 {
    font-size: 24px;
  }
}
@media screen and (min-width:767px){
	.div-alinker{margin-top:3%;}
.alinker{background:#0168b7;width:50%;color:white;padding: 2% 10% 2% 10%;;border-radius:10px;margin-top:5%;text-align: center;}
.alinker-2{background:#0168b7;width:50%;color:white;padding: 2% 10% 2% 10%;;border-radius:10px;margin-top:5%;text-align: center;}
}
@media screen and (max-width:767px){
		.div-alinker{margin-top:8%;}
.alinker{background:#0168b7;width:100%;color:white;padding:4% 20% 4% 20%;;border-radius:10px;margin-top: 2%;text-align: center;}
.alinker-2{background:#0168b7;width:100%;color:white;padding:4% 15% 4% 15%;;;border-radius:10px;margin-top: 2%;text-align: center;}
}

/* ------------------------------------------------------------------
   タブレット縦（700〜899px）のTOPヒーロー
   iPad mini 縦（744px／旧機種768px）で、SPの「画像＋テキスト縦積み」ではなく
   PCと同じ「画像に文字を重ねる」レイアウトにする。
   上の (max-width: 899px) 系のSP指定を打ち消すため、必ずそれらより後ろに置くこと。
   値は (min-width: 900px) and (max-width: 1099px) のPC狭幅指定に揃えている。
   ------------------------------------------------------------------ */
@media (min-width: 700px) and (max-width: 899px) {
  .hero {
    display: grid;
    min-height: clamp(620px, 56.881vw, 777px);
  }

  .hero__media {
    height: 100%;
    aspect-ratio: auto;
    background: none;
  }

  /* PC幅より画像の可視範囲が狭くなるぶん被写体を右に寄せ、
     左側のテキスト用スペース（空・壁の明るい部分）を確保する。 */
  .hero__media img {
    object-position: 25% center;
  }

  .hero__content {
    align-self: start;
    width: calc(100% - clamp(72px, 9vw, 120px));
    margin: 0 auto;
    padding: clamp(46px, 5vw, 64px) 0 0;
  }

  .hero__title-group {
    width: min(562px, 51vw);
  }

  .hero__eyebrow {
    width: fit-content;
    margin: 0 0 0 clamp(8px, 1.1vw, 15px);
    font-size: clamp(27px, 3vw, 34px);
    letter-spacing: 0.07em;
  }

  .hero__eyebrow::after {
    width: min(480px, 100%);
    margin-top: clamp(14px, 1.7vw, 21px);
    background: linear-gradient(90deg, var(--brand-700) 0 41.25%, var(--accent) 41.25% 100%);
  }

  .hero__title,
  .hero__title-large {
    font-size: clamp(66px, 7.4vw, 84px);
    letter-spacing: clamp(4px, 0.55vw, 6px);
  }

  .hero__title {
    padding-top: 7px;
    line-height: 1;
  }

  .hero__title-small {
    font-size: clamp(50px, 5.7vw, 64px);
  }

  .hero__ribbon {
    min-height: clamp(52px, 5.6vw, 62px);
    margin: 6px 0 0 clamp(-13px, -0.95vw, -8px);
    font-size: clamp(31px, 3.5vw, 40px);
    line-height: 1;
    letter-spacing: clamp(2px, 0.25vw, 3px);
  }

  .hero__ribbon-copy {
    min-height: clamp(52px, 5.6vw, 62px);
    padding-inline: clamp(18px, 2.3vw, 28px);
  }

  .hero__ribbon-tail {
    letter-spacing: -0.025em;
  }

  .hero__ribbon-edge {
    width: clamp(12px, 1.2vw, 14px);
    height: clamp(52px, 5.6vw, 62px);
  }

  /* 430px＝PC用の <br class="pc-only"> で区切った最長行（実測約420px）が
     折り返さない幅。ここを狭めると行末が崩れる。 */
  .hero__description {
    width: 100%;
    max-width: 430px;
    margin: 18px 0 0 4px;
    font-size: clamp(14px, 1.45vw, 16px);
    line-height: 1.8;
  }

  /* ヒーロー内だけPC用の改行を有効化（他セクションの .pc-only は非表示のまま）。 */
  .hero .pc-only {
    display: revert;
  }
}
