@charset "UTF-8";

:root {
  --color-cream: #fff9e8;
  --color-cream-deep: #fff3d6;
  --color-primary: #f1a900;
  --color-primary-soft: #f5d18a;
  --color-orange: #ff7700;
  --color-text: #3f3f3f;
  --color-white: #fff;
  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --site-width: 1440px;
  --site-max-width: 1920px;
  --content-width: 1240px;
  --header-height: 123px;
  --z-header: 100;
  --z-menu: 200;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-cream);
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
  padding-right: var(--menu-scrollbar-width, 0px);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button {
  padding: 0;
  color: inherit;
  font: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.u-container {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: var(--z-header);
  width: 100%;
  max-width: var(--site-max-width);
  height: var(--header-height);
  background: var(--color-cream);
  transform: translateX(-50%);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 14px rgb(63 63 63 / 9%);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--site-width);
  height: 100%;
  margin-inline: auto;
  padding: 0 clamp(20px, 8vw, 116px);
}

.site-header__logo {
  flex: 0 0 auto;
  line-height: 1;
}

.site-header__logo a {
  display: block;
}

.site-header__logo img {
  width: 161px;
  height: 86px;
}

.global-nav {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  margin-left: 35px;
}

.global-nav__list {
  display: flex;
  align-items: center;
}

.global-nav__item {
  position: relative;
  padding: 0 28px;
}

.global-nav__item + .global-nav__item::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 54px;
  background: rgb(241 169 0 / 42%);
  transform: translateY(-50%);
  content: "";
}

.global-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  transition: opacity 0.2s ease;
}

.global-nav__link:hover,
.global-nav__link:focus-visible {
  opacity: 0.68;
}

.global-nav__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 54px;
}

.global-nav__icon img {
  width: auto;
  max-height: 40px;
}

.global-nav__icon--medical img,
.global-nav__icon--doctor img,
.global-nav__icon--news img,
.global-nav__icon--access img {
  width: auto;
  height: auto;
  max-height: 40px;
}

.global-nav__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  text-align: center;
}

.global-nav__label-jp {
  font-size: 16px;
  font-weight: 700;
}

.global-nav__label-en {
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.global-nav__caret {
  font-size: 10px;
}

.global-nav__sub-list {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 10;
  width: 286px;
  padding: 10px 16px;
  background: var(--color-cream);
  border: 1px solid rgb(241 169 0 / 28%);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgb(63 63 63 / 12%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.global-nav__item--has-submenu:hover .global-nav__sub-list,
.global-nav__item--has-submenu:focus-within .global-nav__sub-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.global-nav__sub-link {
  display: block;
  padding: 8px 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  border-bottom: 1px solid rgb(241 169 0 / 18%);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.global-nav__sub-list li:last-child .global-nav__sub-link {
  border-bottom: 0;
}

.global-nav__sub-link::before {
  margin-right: 7px;
  color: var(--color-primary);
  content: "→";
}

.global-nav__sub-link:hover,
.global-nav__sub-link:focus-visible,
.global-nav__sub-link[aria-current="page"] {
  padding-left: 8px;
  color: var(--color-primary);
}

.hamburger {
  position: relative;
  z-index: calc(var(--z-menu) + 1);
  display: none;
  width: 44px;
  height: 44px;
}

.hamburger span {
  position: absolute;
  left: 8px;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 20px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

.hamburger.is-open span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.sp-menu {
  position: fixed;
  top: 0;
  right: min(-88vw, -360px);
  z-index: var(--z-menu);
  width: min(88vw, 360px);
  height: 100dvh;
  padding: 94px 26px 40px;
  background: var(--color-cream);
  overflow-y: auto;
  transition: right 0.3s ease;
}

.sp-menu.is-open {
  right: 0;
}

.sp-menu__close {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(241 169 0 / 18%);
}

.sp-menu__close span {
  position: absolute;
  top: 20px;
  left: 12px;
  width: 20px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 999px;
}

.sp-menu__close span:nth-child(1) {
  transform: rotate(45deg);
}

.sp-menu__close span:nth-child(2) {
  transform: rotate(-45deg);
}

.sp-menu__list {
  display: grid;
}

.sp-menu__link {
  display: block;
  padding: 15px 8px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid rgb(241 169 0 / 28%);
}

.sp-menu__sub-list {
  padding: 2px 0 8px 16px;
}

.sp-menu__sub-link {
  display: block;
  padding: 9px 8px;
  font-size: 14px;
}

.sp-menu__sub-link::before {
  margin-right: 7px;
  color: var(--color-primary);
  content: "→";
}

.sp-menu__sub-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

.sp-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-menu) - 1);
  background: rgb(0 0 0 / 34%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sp-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.side-actions {
  position: fixed;
  top: 20%;
  right: 0;
  z-index: calc(var(--z-header) - 1);
  display: grid;
  gap: 4px;
  width: 110px;
}

.side-actions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 99px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  gap: 4px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 10%);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.side-actions__item:hover,
.side-actions__item:focus-visible {
  transform: translateX(-4px);
  filter: brightness(1.05);
}

.side-actions__item[aria-disabled="true"] {
  background: #b8b8b8;
  cursor: default;
}

.side-actions__item[aria-disabled="true"]:hover {
  transform: none;
  filter: none;
}

.side-actions__item > span {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: center;
}

.side-actions__item small {
  display: block;
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.7;
}

.side-actions__item--phone {
  background: #ffc53d;
}

.side-actions__item--reserve {
  background: #ff805d;
}

.side-actions__item--hours {
  background: #7ec051;
}

.side-actions__item img {
  flex: 0 0 auto;
  width: 40px;
  height: auto;
  margin-bottom: 0;
  object-fit: contain;
}

.side-actions__item--phone img {
  width: 40px;
  height: auto;
  margin-bottom: 0;
}

.side-actions__item--reserve img {
  width: 40px;
  height: auto;
  margin-bottom: 0;
}

.side-actions__item--hours img {
  width: 40px;
  height: auto;
  margin-bottom: 0;
}

main {
  padding-top: var(--header-height);
}

.site-footer {
  position: relative;
  padding: clamp(50px, 6vw, 80px) 0 0;
  background-color: var(--color-white);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: normal;
  overflow: hidden;
}

.site-footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
  margin-bottom: 0;
}

.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.site-footer__logo {
  width: clamp(170px, 16vw, 220px);
}

.site-footer__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer__addr {
  margin: 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.site-footer__zip {
  display: inline-block;
  margin-right: 8px;
}

.site-footer__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--color-primary);
}

.site-footer__tel-icon {
  width: 22px;
  height: 22px;
}

.site-footer__tel-num {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.site-footer__nav {
  padding-top: 6px;
}

.site-footer__nav-list {
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 0 36px;
  align-items: start;
  justify-content: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav-list > li {
  font-size: 16px;
}

.site-footer__nav-link {
  display: inline-block;
  padding: 4px 0;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.site-footer__nav-link:hover,
.site-footer__nav-link:focus-visible {
  color: var(--color-primary);
}

.site-footer__sub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__sub-link {
  position: relative;
  display: inline-block;
  padding-left: 20px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-footer__sub-link::before {
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  content: "→";
}

.site-footer__sub-link:hover,
.site-footer__sub-link:focus-visible {
  color: var(--color-primary);
}

.site-footer__illust {
  width: 100vw;
  height: clamp(128px, 22vw, 320px);
  margin: clamp(4px, 1vw, 16px) 0 0 50%;
  line-height: 0;
  overflow: hidden;
  transform: translateX(-50%);
}

.site-footer__illust img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-66%);
}

.site-footer__copyright {
  position: relative;
  z-index: 0;
  margin: 0;
  padding: 16px 0 20px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.04em;
}

.site-footer__copyright::before {
  position: absolute;
  inset: 0 auto 0 50%;
  z-index: -1;
  width: 100vw;
  background: var(--color-cream);
  transform: translateX(-50%);
  content: "";
}

/* 下層ページ共通：メインビジュアルのタイトル・説明文を覆う白背景 */
body .pediatrics-hero__veil,
body .allergy-hero__veil,
body .checkup-hero__veil,
body .vaccination-hero__veil,
body .neonatology-hero__veil,
body .headache-hero__veil,
body .doctor-hero__veil {
  width: min(960px, 82vw);
  height: 190px;
  background: rgb(255 255 255 / 96%);
  filter: blur(24px);
}

@media (max-width: 1199px) {
  .global-nav__item {
    padding-inline: 16px;
  }

  .global-nav__label-jp {
    font-size: 14px;
  }

  .global-nav__label-en {
    font-size: 10px;
  }

}

@media (max-width: 1023px) {
  :root {
    --header-height: 96px;
  }

  .global-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .site-header__inner {
    padding-inline: 24px;
  }

  .site-header__logo img {
    width: 130px;
    height: auto;
  }

  .side-actions {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: var(--z-header);
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
  }

  .side-actions__item,
  .side-actions__item:hover,
  .side-actions__item:focus-visible,
  .side-actions__item[aria-disabled="true"]:hover {
    width: 100%;
    height: 60px;
    border-radius: 0;
    transform: none;
  }

  .side-actions__item img {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
  }

  .side-actions__item--hours img {
    width: 22px;
    height: 22px;
    margin-bottom: 0;
  }

  .side-actions__item {
    flex-direction: row;
    gap: 6px;
    font-size: 14px;
  }

  body:has(.side-actions) {
    padding-bottom: 60px;
  }

  body:has(.side-actions) .site-footer__copyright {
    padding-bottom: 20px;
  }

}

@media (max-width: 1023px) {
  .site-footer__inner {
    padding: 0 32px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
    text-align: center;
  }

  .site-footer__info {
    align-items: center;
  }

  .site-footer__nav-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    text-align: left;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 72px;
  }

  .u-container {
    width: min(calc(100% - 36px), var(--content-width));
  }

  .site-header__inner {
    padding-inline: 16px;
  }

  .site-header__logo img {
    width: 110px;
  }

  .site-footer {
    padding-top: 40px;
  }

  .site-footer__inner {
    padding: 0 16px;
  }

  .site-footer__logo {
    width: 150px;
  }

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

  .site-footer__tel-num {
    font-size: 22px;
  }

  .site-footer__nav-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px 10px;
    width: 100%;
    max-width: 420px;
  }

  .site-footer__nav-link {
    font-size: 16px;
  }

  .site-footer__sub-link {
    font-size: 14px;
  }

  .site-footer__copyright {
    padding: 12px 16px 16px;
    font-size: 12px;
  }

  body .pediatrics-hero__veil,
  body .allergy-hero__veil,
  body .checkup-hero__veil,
  body .vaccination-hero__veil,
  body .neonatology-hero__veil,
  body .headache-hero__veil,
  body .doctor-hero__veil {
    width: 96vw;
    height: 170px;
    filter: blur(22px);
  }

  /* 下層ページ共通：数字の余分な行高を除き、横のタイトルと中央を揃える */
  body .numbered-heading {
    align-items: center;
  }

  body .numbered-heading__number {
    line-height: 1;
  }

  /* 下層ページ共通：丸印を独立した列に置き、本文1行目の中央へ揃える */
  body .condition-card__list li,
  body .neonatology-about__list li,
  body .orthostatic__list li,
  body .symptoms__grid li,
  body .precautions__list li,
  body .info-card__list li {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    column-gap: 8px;
    align-items: start;
    padding-left: 0;
  }

  body .condition-card__list li::before,
  body .neonatology-about__list li::before,
  body .orthostatic__list li::before,
  body .symptoms__grid li::before,
  body .precautions__list li::before,
  body .info-card__list li::before {
    position: static;
    display: block;
    width: 7px;
    height: 7px;
    margin-top: 9px;
    background: var(--color-primary);
    border-radius: 50%;
    content: "";
  }
}

@media (max-width: 535px) {
  .site-footer__illust {
    height: 24vw;
    margin-top: 0;
  }

  .site-footer__illust img {
    transform: translateY(-66%);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
