:root {
  --shared-header-height: 64px;
  --shared-header-primary: hsl(200 85% 36%);
  --shared-header-foreground: hsl(210 25% 20%);
  --shared-header-muted: hsl(210 15% 40%);
}

body.has-shared-site-header {
  padding-top: var(--shared-header-height);
}

.shared-site-header,
.shared-site-header *,
.shared-global-menu,
.shared-global-menu * {
  box-sizing: border-box;
}

.shared-site-header {
  position: fixed;
  z-index: 70;
  inset: 0 0 auto;
  height: var(--shared-header-height);
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--shared-header-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

.shared-site-header a {
  color: inherit;
  text-decoration: none;
}

.shared-site-header__inner {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
}

.shared-site-header__brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.shared-site-header__logo {
  display: flex;
  height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.shared-site-header__logo img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
}

.shared-site-header__brand-text {
  display: block;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

.shared-site-header__brand-text strong {
  display: block;
  color: var(--shared-header-foreground);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", ui-serif, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.shared-site-header__brand-text small {
  display: none;
  color: var(--shared-header-muted);
  font-size: 12px;
  line-height: 1rem;
}

.shared-site-header__desktop-nav,
.shared-site-header__desktop-cta {
  display: none;
}

.shared-site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.shared-site-header__social,
.shared-site-header__menu-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--shared-header-foreground);
  cursor: pointer;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.shared-site-header__social:hover {
  opacity: 0.8;
}

.shared-site-header__menu-button:hover {
  background: hsl(195 35% 94%);
}

.shared-site-header__social svg {
  width: 28px;
  height: 28px;
}

.shared-site-header__menu-button svg {
  width: 24px;
  height: 24px;
}

.shared-site-header a:focus-visible,
.shared-site-header button:focus-visible,
.shared-global-menu a:focus-visible,
.shared-global-menu button:focus-visible,
.special-site-menu-button:focus-visible {
  outline: 2px solid var(--shared-header-primary);
  outline-offset: 2px;
}

.shared-site-header__desktop-dropdown {
  position: relative;
}

.shared-site-header__desktop-dropdown > button {
  display: flex;
  padding: 8px 0;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.shared-site-header__desktop-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  width: 480px;
  margin-top: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  visibility: hidden;
  border: 1px solid hsl(210 20% 88%);
  border-radius: 12px;
  background: white;
  opacity: 0;
  box-shadow: 0 20px 35px rgba(20, 35, 45, 0.16);
  transform: translateY(-8px);
  transition: 180ms ease;
}

.shared-site-header__desktop-dropdown:hover .shared-site-header__desktop-dropdown-panel,
.shared-site-header__desktop-dropdown:focus-within .shared-site-header__desktop-dropdown-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.shared-site-header__desktop-dropdown-panel a {
  display: flex;
  min-height: 60px;
  padding: 12px 16px;
  align-items: center;
  gap: 12px;
  border-right: 1px solid hsl(210 20% 91%);
  border-bottom: 1px solid hsl(210 20% 91%);
  font-size: 14px;
  font-weight: 500;
}

.shared-site-header__desktop-dropdown-panel a:hover {
  background: hsl(200 70% 97%);
}

.shared-site-header__desktop-dropdown-panel img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.shared-site-header__phone,
.shared-site-header__reservation {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.shared-site-header__phone {
  width: 40px;
  border: 2px solid hsl(210 20% 84%);
}

.shared-site-header__reservation {
  padding: 0 12px;
  gap: 8px;
  background: var(--shared-header-primary);
  color: white !important;
  box-shadow: 0 4px 8px rgba(17, 153, 221, 0.2);
}

.shared-site-header__phone svg,
.shared-site-header__reservation svg {
  width: 16px;
  height: 16px;
}

.shared-global-menu[hidden] {
  display: none;
}

.shared-global-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--shared-header-foreground);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, -apple-system, sans-serif;
}

.shared-global-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  touch-action: none;
}

.shared-global-menu__drawer {
  position: absolute;
  inset: 0 0 0 auto;
  display: flex;
  width: min(100%, 384px);
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  overflow: hidden;
  background: white;
  box-shadow: -20px 0 48px rgba(15, 35, 48, 0.22);
}

.shared-global-menu__head {
  display: flex;
  min-height: 56px;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--shared-header-primary);
  color: white;
}

.shared-global-menu__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shared-global-menu__identity > span {
  display: flex;
  width: 32px;
  height: 32px;
  padding: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.shared-global-menu__identity img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.shared-global-menu__identity h2,
.shared-global-menu__identity p {
  margin: 0;
}

.shared-global-menu__identity h2 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.shared-global-menu__identity p {
  font-size: 11px;
  line-height: 1.25;
  opacity: 0.9;
}

.shared-global-menu__head > button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.shared-global-menu__nav {
  min-height: 0;
  padding: 12px 16px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.shared-global-menu__group + .shared-global-menu__group {
  margin-top: 6px;
}

.shared-global-menu__group h3 {
  margin: 0 0 4px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgb(6, 182, 212);
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.shared-global-menu__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.shared-global-menu__links.is-clinic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shared-global-menu__links a {
  display: flex;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  border-radius: 8px;
  color: var(--shared-header-foreground);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
}

.shared-global-menu__links.is-clinic a {
  padding-inline: 8px;
  justify-content: center;
  text-align: center;
  font-size: 13px;
}

.shared-global-menu__links.is-treatment a {
  gap: 8px;
}

.shared-global-menu__links a:hover {
  background: hsl(200 70% 97%);
}

.shared-global-menu__links img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.shared-global-menu__footer {
  padding: 12px 16px calc(env(safe-area-inset-bottom) + 12px);
  flex: 0 0 auto;
  border-top: 1px solid hsl(210 20% 90%);
  background: white;
}

.shared-global-menu__socials,
.shared-global-menu__ctas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shared-global-menu__ctas {
  margin-top: 8px;
}

.shared-global-menu__socials a,
.shared-global-menu__ctas a {
  display: flex;
  min-height: 44px;
  padding: 4px 8px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: #00b900;
  color: white;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.shared-global-menu__socials a.is-instagram {
  background: linear-gradient(135deg, #facc15, #ec4899, #9333ea);
}

.shared-global-menu__ctas a {
  background: var(--shared-header-primary);
}

.shared-global-menu__ctas a.is-phone {
  border: 2px solid hsl(210 20% 82%);
  background: white;
  color: var(--shared-header-foreground);
}

.shared-global-menu__socials svg,
.shared-global-menu__ctas svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

html.global-menu-open,
body.global-menu-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.global-menu-open .special-site-menu-button,
body.global-menu-open .fixed-cta {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.special-site-menu-button {
  position: fixed;
  z-index: 80;
  top: calc(env(safe-area-inset-top) + 88px);
  right: 16px;
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8a06a;
  border-radius: 14px;
  background: #1f3445;
  color: white;
  box-shadow: 0 4px 14px rgba(31, 52, 69, 0.18);
  cursor: pointer;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.special-site-menu-button:hover {
  background: #253d50;
}

.special-site-menu-button > span:last-child {
  display: grid;
  gap: 5px;
}

.special-site-menu-button i {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.has-shared-site-header .lp-menu {
  z-index: 90;
}

.has-shared-site-header .lp-menu__backdrop {
  background: rgba(31, 52, 69, 0.22);
}

.has-shared-site-header .lp-menu__panel {
  width: min(88vw, 380px);
  border-left-color: #d8c7ab;
  background: #fffdf9;
}

.has-shared-site-header .lp-menu__title {
  color: #9b7a35;
}

body.is-menu-open .shared-site-header__menu-button {
  pointer-events: none;
}

@media (min-width: 768px) {
  :root {
    --shared-header-height: 80px;
  }

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

  .shared-site-header__logo {
    height: 40px;
  }

  .shared-site-header__brand-text strong {
    font-size: 20px;
  }

  .shared-site-header__brand-text small {
    display: block;
  }

  .special-site-menu-button {
    top: calc(env(safe-area-inset-top) + 96px);
  }
}

@media (min-width: 1024px) {
  .shared-site-header__desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 16px;
    font-weight: 500;
  }

  .shared-site-header__desktop-nav > a:hover,
  .shared-site-header__desktop-dropdown > button:hover {
    color: var(--shared-header-primary);
  }

  .shared-site-header__desktop-cta {
    display: flex;
    margin-left: 8px;
    align-items: center;
    gap: 12px;
  }
}
