/* ============================================
   HP Renewal - Shared Components
   BEM naming with hp- prefix
   ============================================ */

/* --- Skip Link (Accessibility) --- */
.hp-skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 24px;
  background: var(--hp-primary);
  color: #fff;
  z-index: 9999;
  border-radius: var(--hp-radius-md);
  font-weight: var(--hp-font-weight-bold);
  text-decoration: none;
  transition: top 0.2s ease;
}

.hp-skip-link:focus {
  top: 8px;
}

/* --- Reset & Base --- */
.hp-wrap *,
.hp-wrap *::before,
.hp-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.hp-wrap {
  font-family: var(--hp-font-primary);
  font-size: var(--hp-font-size-base);
  line-height: var(--hp-line-height);
  color: var(--hp-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 74px;
}

/* --- Container --- */
.hp-container {
  max-width: var(--hp-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--hp-container-padding);
  padding-right: var(--hp-container-padding);
}

.hp-container--narrow {
  max-width: var(--hp-container-narrow);
}

.hp-container--wide {
  max-width: var(--hp-container-wide);
}

/* --- Section --- */
.hp-section {
  padding-top: var(--hp-space-3xl);
  padding-bottom: var(--hp-space-3xl);
}

.hp-section--light {
  background-color: var(--hp-bg-light);
}

.hp-section--warm {
  background-color: var(--hp-bg-warm);
}

.hp-section--green {
  background-color: var(--hp-bg-green);
}

.hp-section__title {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-2xl);
  font-weight: var(--hp-font-weight-bold);
  text-align: center;
  margin-bottom: var(--hp-space-sm);
  line-height: var(--hp-line-height-heading);
  color: var(--hp-primary-dark);
}

.hp-section__subtitle {
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-muted);
  text-align: center;
  margin-bottom: var(--hp-space-2xl);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hp-section__lead {
  font-size: var(--hp-font-size-md);
  color: var(--hp-text-light);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--hp-space-2xl);
}

/* --- Buttons --- */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hp-space-sm);
  padding: 0.875rem 2rem;
  font-family: var(--hp-font-primary);
  font-size: var(--hp-font-size-base);
  font-weight: var(--hp-font-weight-bold);
  text-decoration: none;
  border: none;
  border-radius: var(--hp-radius-md);
  cursor: pointer;
  transition: all var(--hp-transition-normal);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.hp-btn--primary {
  background-color: var(--hp-primary);
  color: #ffffff;
}
.hp-btn--primary:hover {
  background-color: var(--hp-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--accent {
  background-color: var(--hp-accent);
  color: #ffffff;
}
.hp-btn--accent:hover {
  background-color: var(--hp-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--beauty {
  background: var(--hp-beauty-gradient);
  color: #ffffff;
}
.hp-btn--beauty:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--contact {
  background: linear-gradient(135deg, #173246 0%, #25536d 100%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(23, 50, 70, 0.2);
}

.hp-btn--contact:hover {
  background: linear-gradient(135deg, #1d425a 0%, #2f6485 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--diet {
  background-color: var(--hp-diet);
  color: #ffffff;
}
.hp-btn--diet:hover {
  background-color: var(--hp-diet-light);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--line {
  background-color: #06c755;
  color: #ffffff;
}
.hp-btn--line:hover {
  background-color: #05b04b;
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--outline {
  background-color: transparent;
  color: var(--hp-primary);
  border: 2px solid var(--hp-primary);
}
.hp-btn--outline:hover {
  background-color: var(--hp-primary);
  color: #ffffff;
}

.hp-btn--white {
  background-color: #ffffff;
  color: var(--hp-primary);
}
.hp-btn--white:hover {
  background-color: var(--hp-bg-light);
  transform: translateY(-2px);
  box-shadow: var(--hp-shadow-md);
}

.hp-btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--hp-font-size-lg);
  border-radius: var(--hp-radius-lg);
}

.hp-btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--hp-font-size-sm);
}

.hp-btn--full {
  width: 100%;
}

.hp-btn--round {
  border-radius: var(--hp-radius-full);
}

/* --- Cards --- */
.hp-card {
  background-color: var(--hp-bg);
  border-radius: var(--hp-radius-lg);
  box-shadow: var(--hp-shadow-sm);
  overflow: hidden;
  transition: all var(--hp-transition-normal);
}

.hp-card:hover {
  box-shadow: var(--hp-shadow-lg);
  transform: translateY(-4px);
}

.hp-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hp-card__body {
  padding: var(--hp-space-lg);
}

.hp-card__title {
  font-size: var(--hp-font-size-lg);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-sm);
  color: var(--hp-text);
}

.hp-card__text {
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
  line-height: var(--hp-line-height);
  margin-bottom: var(--hp-space-md);
}

.hp-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Grid --- */
.hp-grid {
  display: grid;
  gap: var(--hp-space-lg);
}

.hp-grid > *,
.hp-branch > *,
.hp-dept-grid > *,
.hp-articles > * {
  min-width: 0;
}

.hp-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.hp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.hp-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* --- Branch Cards (Top page 3-branch) --- */
.hp-branch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hp-space-lg);
}

.hp-branch__card {
  text-align: center;
  padding: var(--hp-space-2xl) var(--hp-space-lg);
  border-radius: var(--hp-radius-xl);
  text-decoration: none;
  color: #ffffff;
  transition: all var(--hp-transition-normal);
  position: relative;
  overflow: hidden;
}

.hp-branch__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity var(--hp-transition-normal);
}

.hp-branch__card:hover::before {
  opacity: 1;
}

.hp-branch__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hp-shadow-xl);
}

.hp-branch__card--medical {
  background: linear-gradient(135deg, #002745 0%, #2D8C46 100%);
}

.hp-branch__card--beauty {
  background: linear-gradient(135deg, #FF1A6F 0%, #ff5192 100%);
}

.hp-branch__card--kaigo {
  background: linear-gradient(135deg, #2c3e50 0%, #4a6274 100%);
}

.hp-branch__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--hp-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--hp-radius-full);
}

.hp-branch__icon svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.hp-branch__title {
  font-size: var(--hp-font-size-xl);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-sm);
}

.hp-branch__desc {
  font-size: var(--hp-font-size-sm);
  opacity: 0.9;
  margin-bottom: var(--hp-space-lg);
  line-height: var(--hp-line-height);
}

.hp-branch__arrow {
  font-size: var(--hp-font-size-sm);
  opacity: 0.8;
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-xs);
}

/* --- Info Bar (clinic hours, reservation) --- */
.hp-infobar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hp-space-lg);
  padding: var(--hp-space-md) var(--hp-space-lg);
  background-color: var(--hp-primary);
  color: #ffffff;
  flex-wrap: wrap;
}

.hp-infobar__tel {
  font-size: var(--hp-font-size-xl);
  font-weight: var(--hp-font-weight-bold);
  text-decoration: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: var(--hp-space-sm);
}

/* --- Clinic Hours Table --- */
.hp-hours {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--hp-font-size-sm);
  text-align: center;
}

.hp-hours th,
.hp-hours td {
  padding: var(--hp-space-sm) var(--hp-space-md);
  border: 1px solid var(--hp-border);
}

.hp-hours thead th {
  background-color: var(--hp-primary);
  color: #ffffff;
  font-weight: var(--hp-font-weight-medium);
}

.hp-hours tbody th {
  background-color: var(--hp-bg-light);
  text-align: left;
  font-weight: var(--hp-font-weight-medium);
}

.hp-hours__mark {
  color: var(--hp-primary);
  font-weight: var(--hp-font-weight-bold);
}

.hp-hours__closed {
  color: var(--hp-text-muted);
}

/* --- Department Icons Grid --- */
.hp-dept-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--hp-space-md);
}

.hp-dept-item {
  text-align: center;
  padding: var(--hp-space-md);
  border-radius: var(--hp-radius-md);
  text-decoration: none;
  color: var(--hp-text);
  transition: all var(--hp-transition-normal);
  border: 1px solid var(--hp-border-light);
}

.hp-dept-item:hover {
  border-color: var(--hp-primary-light);
  box-shadow: var(--hp-shadow-sm);
  transform: translateY(-2px);
}

.hp-dept-item--highlight {
  border-color: var(--hp-beauty);
  background-color: var(--hp-bg-warm);
}

.hp-dept-item__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--hp-space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hp-radius-full);
  background-color: var(--hp-bg-light);
}

.hp-dept-item__name {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
}

/* --- Article Cards --- */
.hp-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--hp-space-lg);
}

.hp-article-card {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--hp-radius-md);
  overflow: hidden;
  border: 1px solid var(--hp-border-light);
  transition: all var(--hp-transition-normal);
}

.hp-article-card:hover {
  box-shadow: var(--hp-shadow-md);
  transform: translateY(-2px);
}

.hp-article-card__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background-color: var(--hp-bg-light);
}

.hp-article-card__body {
  padding: var(--hp-space-md);
}

.hp-article-card__date {
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
  margin-bottom: var(--hp-space-xs);
}

.hp-article-card__title {
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-medium);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- CTA Banner --- */
.hp-cta-banner {
  text-align: center;
  padding: var(--hp-space-2xl) var(--hp-space-lg);
  border-radius: var(--hp-radius-xl);
  color: #ffffff;
}

.hp-cta-banner--beauty {
  background: var(--hp-beauty-gradient);
}

.hp-cta-banner--diet {
  background: linear-gradient(135deg, #27ae60 0%, #1a8a4a 100%);
}

.hp-cta-banner__title {
  font-size: var(--hp-font-size-2xl);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-sm);
}

.hp-cta-banner__text {
  font-size: var(--hp-font-size-md);
  opacity: 0.9;
  margin-bottom: var(--hp-space-lg);
}

/* --- Fixed CTA Bar (Mobile) --- */
.hp-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 160;
  background-color: #ffffff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  padding: var(--hp-space-sm) var(--hp-space-md);
  display: none;
}

.hp-fixed-cta__inner {
  display: flex;
  gap: var(--hp-space-sm);
  max-width: var(--hp-container-max);
  margin: 0 auto;
}

.hp-fixed-cta__btn {
  flex: 1;
  padding: 0.75rem;
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: var(--hp-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--hp-space-xs);
}

.hp-fixed-cta__btn svg {
  fill: #fff;
}

.hp-fixed-cta__btn--tel {
  background-color: var(--hp-primary);
  color: #ffffff;
}

.hp-fixed-cta__btn--line {
  background-color: #06c755;
  color: #ffffff;
}

.hp-fixed-cta__btn--reserve {
  background-color: var(--hp-accent);
  color: #ffffff;
}

.hp-fixed-cta__btn--beauty {
  background: linear-gradient(135deg, #d8742f 0%, #ef9a4d 100%);
  color: #ffffff;
}

/* --- FAQ Accordion --- */
.hp-faq__item {
  border-bottom: 1px solid var(--hp-border);
}

.hp-faq__question {
  width: 100%;
  padding: var(--hp-space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--hp-font-primary);
  font-size: var(--hp-font-size-base);
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-text);
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--hp-space-md);
}

.hp-faq__question::before {
  content: "Q";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: var(--hp-primary);
  color: #ffffff;
  border-radius: var(--hp-radius-full);
  font-size: var(--hp-font-size-sm);
  font-weight: var(--hp-font-weight-bold);
}

.hp-faq__question::after {
  content: "+";
  margin-left: auto;
  font-size: var(--hp-font-size-xl);
  color: var(--hp-text-muted);
  transition: transform var(--hp-transition-fast);
}

.hp-faq__item.is-open .hp-faq__question::after {
  transform: rotate(45deg);
}

.hp-faq__answer {
  display: none;
  padding: 0 0 var(--hp-space-lg) 48px;
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
  line-height: var(--hp-line-height);
}

.hp-faq__item.is-open .hp-faq__answer {
  display: block;
}

/* --- Flow Steps --- */
.hp-flow {
  display: flex;
  flex-direction: column;
  gap: var(--hp-space-lg);
  position: relative;
  padding-left: 48px;
}

.hp-flow::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--hp-border);
}

.hp-flow__step {
  position: relative;
}

.hp-flow__num {
  position: absolute;
  left: -48px;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--hp-primary);
  color: #ffffff;
  border-radius: var(--hp-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--hp-font-weight-bold);
  font-size: var(--hp-font-size-sm);
  z-index: var(--hp-z-base);
}

.hp-flow__title {
  font-size: var(--hp-font-size-lg);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-xs);
}

.hp-flow__text {
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
}

/* --- Doctor Card --- */
.hp-doctor {
  display: flex;
  gap: var(--hp-space-2xl);
  align-items: flex-start;
}

.hp-doctor__photo {
  width: 200px;
  min-width: 200px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--hp-radius-lg);
}

.hp-doctor__info {
  flex: 1;
}

.hp-doctor__name {
  font-family: var(--hp-font-heading);
  font-size: var(--hp-font-size-2xl);
  font-weight: var(--hp-font-weight-bold);
  margin-bottom: var(--hp-space-xs);
}

.hp-doctor__title {
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-muted);
  margin-bottom: var(--hp-space-md);
}

.hp-doctor__bio {
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
  line-height: var(--hp-line-height);
}

/* --- Concern List (empathy section) --- */
.hp-concerns {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hp-space-md);
}

.hp-concerns__item {
  display: flex;
  align-items: center;
  gap: var(--hp-space-md);
  padding: var(--hp-space-md) var(--hp-space-lg);
  background-color: var(--hp-bg);
  border-radius: var(--hp-radius-md);
  border-left: 4px solid var(--hp-primary);
  font-size: var(--hp-font-size-sm);
}

.hp-concerns__item::before {
  content: "\2713";
  color: var(--hp-primary);
  font-weight: var(--hp-font-weight-bold);
}

/* --- Price Table --- */
.hp-price-table {
  width: 100%;
  border-collapse: collapse;
}

.hp-price-table th,
.hp-price-table td {
  padding: var(--hp-space-md) var(--hp-space-lg);
  border-bottom: 1px solid var(--hp-border);
  text-align: left;
}

.hp-price-table thead th {
  background-color: var(--hp-bg-light);
  font-weight: var(--hp-font-weight-medium);
  font-size: var(--hp-font-size-sm);
  color: var(--hp-text-light);
}

.hp-price-table td:last-child {
  text-align: right;
  font-weight: var(--hp-font-weight-bold);
  color: var(--hp-primary);
}

/* --- Badge --- */
.hp-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--hp-font-size-xs);
  font-weight: var(--hp-font-weight-bold);
  border-radius: var(--hp-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hp-badge--new {
  background-color: var(--hp-accent);
  color: #ffffff;
}

.hp-badge--beauty {
  background-color: var(--hp-beauty);
  color: #ffffff;
}

/* --- Utility --- */
.hp-text-center { text-align: center; }
.hp-text-left { text-align: left; }
.hp-mt-0 { margin-top: 0; }
.hp-mt-md { margin-top: var(--hp-space-md); }
.hp-mt-lg { margin-top: var(--hp-space-lg); }
.hp-mt-xl { margin-top: var(--hp-space-xl); }
.hp-mb-0 { margin-bottom: 0; }
.hp-mb-md { margin-bottom: var(--hp-space-md); }
.hp-mb-lg { margin-bottom: var(--hp-space-lg); }
.hp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   HEADER — Shared across all pages
   White sticky bar with fixed nav items.
   ============================================ */
.hp-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 240;
  background: #fff;
  border-bottom: 1px solid rgba(15, 33, 55, 0.08);
  box-shadow: 0 10px 26px rgba(14, 32, 54, 0.08);
}

.hp-header__container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 78px;
  gap: 16px;
}

.hp-header__branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}

.hp-header__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.hp-header__reserve-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 61, 141, 0.24);
  background: #fff7fb;
  color: #ff3d8d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 61, 141, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hp-header__reserve-shortcut:hover {
  background: #fff1f7;
  border-color: rgba(255, 61, 141, 0.36);
  transform: translateY(-1px);
}

.hp-header__logo:hover {
  opacity: 0.85;
}

.hp-header__nav {
  position: fixed;
  top: 90px;
  left: 16px;
  right: 16px;
  z-index: 241;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 106px);
  padding: 18px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 33, 55, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(8, 28, 48, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hp-header__nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hp-header__nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 33, 55, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #1e2c3a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-header__nav-link:hover {
  border-color: rgba(0, 39, 69, 0.16);
  background: #f8fafc;
  color: #002745;
}

.hp-header__nav-link.is-active {
  background: #002745;
  border-color: #002745;
  color: #fff;
}

.hp-header__nav-link.is-reserve {
  color: #ff3d8d;
  border-color: rgba(255, 61, 141, 0.22);
  font-weight: 700;
}

.hp-header__nav-link.is-reserve:hover {
  background: rgba(255, 61, 141, 0.05);
  border-color: rgba(255, 61, 141, 0.34);
  color: #ff3d8d;
}

.hp-header__nav-label {
  display: inline-block;
  width: auto;
  line-height: 1.45;
}

.hp-header__nav-line {
  display: inline;
}

.hp-header__mobile-cta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 33, 55, 0.08);
}

.hp-header__mobile-cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 10px 8px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  gap: 2px;
}

.hp-header__mobile-cta-link--tel {
  background: #2D8C46;
}

.hp-header__mobile-cta-link--reserve {
  background: var(--hp-accent);
}

.hp-header__mobile-cta-link--line {
  background: #06c755;
}

.hp-header__mobile-cta-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-header__mobile-cta-label {
  font-size: 13px;
  font-weight: 700;
}

.hp-header__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(15, 33, 55, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(14, 32, 54, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.hp-header__hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #002745;
  transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
}

.hp-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hp-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hp-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 230;
  border: 0;
  background: rgba(7, 24, 39, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hp-header__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .hp-fixed-cta {
  transform: translateY(140%) !important;
  opacity: 0 !important;
  pointer-events: none;
}

body.is-menu-open .hp-side-reception {
  opacity: 0;
  pointer-events: none;
}

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

body.admin-bar .hp-wrap {
  padding-top: 106px;
}

body.admin-bar .hp-header__nav {
  top: 122px;
  max-height: calc(100vh - 138px);
}

body.admin-bar .hp-side-reception {
  top: clamp(204px, 37vh, 442px);
}

@media (min-width: 1100px) {
  .hp-wrap {
    padding-top: 104px;
  }

  body.admin-bar .hp-wrap {
    padding-top: 136px;
  }

  .hp-header__container {
    display: grid;
    grid-template-columns: minmax(250px, max-content) minmax(0, 1fr);
    padding: 0 clamp(22px, 2.8vw, 42px);
    min-height: 104px;
    gap: 18px;
    justify-content: initial;
  }

  .hp-header__branding {
    align-self: center;
  }

  .hp-header__nav {
    position: static;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    margin-left: auto;
    max-height: none;
    min-width: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    width: auto;
  }

  .hp-header__nav-link {
    justify-content: center;
    flex: 0 0 84px;
    width: 84px;
    min-height: 104px;
    min-width: 0;
    padding: 16px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 1.3;
  }

  .hp-header__nav-link:hover {
    background: #002745;
    color: #fff;
  }

  .hp-header__nav-link.is-reserve {
    flex-basis: 90px;
    width: 90px;
    background: transparent;
    color: #ff3d8d;
  }

  .hp-header__nav-link.is-reserve:hover {
    background: rgba(255, 61, 141, 0.06);
    color: #ff3d8d;
  }

  .hp-header__nav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2.8em;
    line-height: 1.22;
  }

  .hp-header__nav-line {
    display: block;
  }

  .hp-header__nav-link--reserve .hp-header__nav-label,
  .hp-header__nav-link--beauty .hp-header__nav-label,
  .hp-header__nav-link--access .hp-header__nav-label {
    min-height: auto;
  }

  .hp-header__nav-link--medical,
  .hp-header__nav-link--nursing-service {
    flex-basis: 102px;
    width: 102px;
  }

  .hp-header__nav-link--facility,
  .hp-header__nav-link--articles,
  .hp-header__nav-link--contact {
    flex-basis: 92px;
    width: 92px;
  }

  .hp-header__nav-link--access {
    flex-basis: 78px;
    width: 78px;
  }

  .hp-header__reserve-shortcut {
    display: none;
  }

  .hp-header__mobile-cta,
  .hp-header__hamburger,
  .hp-header__overlay {
    display: none !important;
  }
}

.hp-care-directory__lead {
  max-width: 760px;
  margin: 0 auto 26px;
  color: #5a6370;
  font-size: 15px;
  line-height: 1.95;
  text-align: center;
}

.hp-care-directory__quicklinks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.hp-care-directory__quicklink {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 158px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  border: 1px solid rgba(61, 81, 100, 0.14);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 247, 250, 0.96) 100%);
  box-shadow: 0 18px 40px rgba(14, 32, 54, 0.08);
  color: #1e2c3a;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hp-care-directory__quicklink:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(14, 32, 54, 0.12);
  border-color: rgba(45, 140, 70, 0.24);
  color: #1e2c3a;
}

.hp-care-directory__quicklink-eyebrow {
  color: #2D8C46;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.hp-care-directory__quicklink-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.hp-care-directory__quicklink-desc {
  color: #5a6370;
  font-size: 14px;
  line-height: 1.85;
}

.hp-care-directory__quicklink-arrow {
  margin-top: auto;
  color: #002745;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hp-care-directory__quicklinks {
    grid-template-columns: 1fr;
  }

  .hp-care-directory__quicklink {
    min-height: auto;
  }
}

@media (max-width: 1099px) {
  .hp-header__container {
    padding: 0 16px;
    min-height: 74px;
  }

  .hp-header__reserve-shortcut {
    display: none;
  }
}

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

  body.admin-bar .hp-wrap {
    padding-top: 120px;
  }

  body.admin-bar .hp-header__nav {
    top: 136px;
    max-height: calc(100vh - 152px);
  }
}

/* ============================================
   FOOTER — Shared across all pages
   ============================================ */
.hp-footer {
  background: #EEF8F8;
  color: #444;
  padding: 44px 0 0;
  position: relative;
}

.hp-footer a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-footer a:hover {
  color: #2D8C46;
}

.hp-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid #ddd;
}

.hp-footer__name {
  font-family: var(--hp-font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #002745;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.hp-footer__address {
  font-size: 13px;
  margin-bottom: 2px;
}

.hp-footer__tel {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hp-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 12.5px;
}

.hp-footer__sns {
  display: flex;
  gap: 10px;
}

.hp-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 39, 69, 0.08);
  transition: background 0.25s ease, transform 0.2s ease;
}

.hp-footer__sns a:hover {
  background: rgba(0, 39, 69, 0.16);
  transform: translateY(-2px);
}

.hp-footer__copy {
  text-align: center;
  font-size: 11.5px;
  color: #999;
  padding: 18px 0;
  letter-spacing: 0.02em;
}

/* ============================================
   PAGE TOP BUTTON — Shared
   ============================================ */
.hp-pagetop {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: var(--hp-z-sticky);
  width: 44px;
  height: 44px;
  background: #002745;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease,
              visibility 0.35s ease,
              transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              background 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.hp-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hp-pagetop:hover {
  background: #2D8C46;
}

.hp-pagetop svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   BREADCRUMB — Shared
   ============================================ */
.hp-breadcrumb {
  padding: var(--hp-space-md) 0;
  max-width: var(--hp-container-max);
  margin: 0 auto;
  padding-left: var(--hp-container-padding);
  padding-right: var(--hp-container-padding);
}

.hp-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  font-size: var(--hp-font-size-xs);
  color: var(--hp-text-muted);
}

.hp-breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.hp-breadcrumb li + li::before {
  content: ">";
  margin: 0 0.5em;
  color: var(--hp-border);
}

.hp-breadcrumb a {
  color: #2D8C46;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-breadcrumb a:hover {
  color: #002745;
  text-decoration: underline;
}

/* ============================================
   PILL BUTTONS — /maru/ style
   ============================================ */
.hp-btn--pill {
  display: inline-block;
  border-radius: 10rem;
  padding: 12px 32px;
  font-weight: 500;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  line-height: 1.5;
}
.hp-btn--pill-dark {
  background: transparent;
  color: #4D4D4D;
  border: 1px solid #4D4D4D;
}
.hp-btn--pill-dark:hover {
  background: #4D4D4D;
  color: #fff;
}
.hp-btn--pill-green {
  background: transparent;
  color: #2D8C46;
  border: 1px solid #2D8C46;
}
.hp-btn--pill-green:hover {
  background: #2D8C46;
  color: #fff;
}
.hp-btn--pill-pink {
  background: transparent;
  color: #FF5192;
  border: 1px solid #FF5192;
}
.hp-btn--pill-pink:hover {
  background: #FF5192;
  color: #fff;
}
.hp-btn--pill-navy {
  background: transparent;
  color: #002745;
  border: 1px solid #002745;
}
.hp-btn--pill-navy:hover {
  background: #002745;
  color: #fff;
}

/* ============================================
   HEADER LOGO IMAGE
   ============================================ */
.hp-header__logo-img {
  height: 50px;
  width: auto;
  display: block;
}

/* ============================================
   FOOTER — Clinic info + 3-column sitemap
   ============================================ */
.hp-footer__clinic {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;
}

.hp-footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 10px;
}

.hp-footer__sitemap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.hp-footer__sitemap-title {
  font-size: 14px;
  font-weight: 700;
  color: #002745;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.hp-footer__sitemap-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hp-footer__sitemap-nav a {
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
}

.hp-footer__sitemap-nav a:hover {
  color: #2D8C46;
}

@media (min-width: 768px) {
  .hp-footer__sitemap {
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 32px;
  }

  .hp-footer__clinic {
    text-align: left;
  }
}

/* ============================================
   SIDE RECEPTION TIME PANEL — /maru/ faithful
   ============================================ */
.hp-side-reception {
  position: fixed;
  top: clamp(172px, 33vh, 408px);
  right: 0;
  z-index: 190;
  width: 84px;
  transition: opacity 0.2s ease;
  display: none; /* Hidden on mobile — inline hours used instead */
}

.hp-side-reception__toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 220px;
  width: 84px;
  padding: 24px 12px;
  border: 0;
  border-radius: 28px 0 0 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(8, 28, 48, 0.16);
  color: #ff4b9d;
  cursor: pointer;
}

.hp-side-reception__toggle-icon {
  font-size: 18px;
  line-height: 1;
}

.hp-side-reception__toggle-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  font-size: 18px;
  font-weight: 700;
}

.hp-side-reception__inner {
  position: absolute;
  top: 0;
  right: 84px;
  width: min(540px, calc(100vw - 136px));
  max-height: calc(100vh - 170px);
  padding: 28px 28px 28px 22px;
  border-radius: 28px 0 0 28px;
  background-color: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(8, 28, 48, 0.16);
  transform: translateX(calc(100% + 22px));
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.35s ease;
  overflow-x: hidden;
  overflow-y: auto;
}

.hp-side-reception:hover .hp-side-reception__inner,
.hp-side-reception.is-open .hp-side-reception__inner {
  transform: translateX(0);
  box-shadow: 0 18px 42px rgba(8, 28, 48, 0.18);
}

.hp-side-reception__header {
  margin-bottom: 18px;
}

.hp-side-reception__eyebrow {
  color: #2D8C46;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.hp-side-reception__title {
  color: #002745;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-side-reception__table-wrap {
  width: 100%;
  overflow-x: auto;
}

.hp-side-reception__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hp-side-reception__table th,
.hp-side-reception__table td {
  padding: 12px 2px;
  border-bottom: solid 1px #666;
  text-align: center;
  vertical-align: middle;
}

.hp-side-reception__table th:first-child {
  padding-left: 8px;
  padding-right: 8px;
}

.hp-side-reception__table th:not(:first-child) {
  width: 44px;
}

.hp-side-reception__heading th {
  font-size: 86%;
}

.hp-side-reception__dept {
  text-align: left !important;
  font-weight: normal;
  font-size: 90%;
  line-height: 1.4;
}

/* Green dot marker — hide the text ○, show CSS circle only */
.hp-side-reception__check {
  font-size: 0;
  color: transparent;
  line-height: 0;
}

.hp-side-reception__check::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-right: auto;
  margin-left: auto;
  border-radius: 50%;
  background-color: #2D8C46;
}

/* Triangle marker — hide raw text, use CSS triangle */
.hp-side-reception__triangle {
  font-size: 0;
  color: transparent;
  line-height: 0;
}

.hp-side-reception__triangle::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0 auto;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid #2D8C46;
}

.hp-side-reception__time {
  margin: 18px 0 10px;
  color: #2D8C46;
  line-height: 1.65;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.hp-side-reception__time-note {
  margin: 0 0 10px;
  background: #2D8C46;
  color: #fff;
  font-size: 14px;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  line-height: 1.7;
}

.hp-side-reception__time-triangle {
  color: #2D8C46;
  line-height: 1.5;
  font-size: 15px;
  margin-top: 8px;
}

.hp-side-reception__tel {
  width: 100%;
  margin: 16px 0 0;
  text-align: left;
}

.hp-side-reception__tel img {
  max-width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  .hp-side-reception {
    display: block; /* Show on desktop */
  }
}

@media (max-width: 1099px) and (min-width: 900px) {
  .hp-side-reception {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
  }

  .hp-side-reception__toggle {
    width: 60px;
    min-height: 170px;
    padding: 16px 8px;
    border-radius: 22px 0 0 22px;
  }

  .hp-side-reception__toggle-icon {
    font-size: 14px;
  }

  .hp-side-reception__toggle-label {
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .hp-side-reception__inner {
    right: 60px;
    width: min(340px, calc(100vw - 78px));
    max-height: calc(100vh - 172px);
    padding: 22px 22px 22px 18px;
    transform: translateX(calc(100% + 16px));
  }

  .hp-side-reception__title {
    font-size: 22px;
  }

  .hp-side-reception__table {
    font-size: 12px;
  }

  .hp-side-reception__table th:not(:first-child) {
    width: 34px;
  }

  .hp-side-reception__time {
    font-size: 15px;
  }

  .hp-side-reception__time-note,
  .hp-side-reception__time-triangle {
    font-size: 12px;
  }
}

@media (max-width: 899px) {
  .hp-side-reception {
    display: none !important; /* Use inline hours on mobile/tablet */
  }
}

@media (max-width: 767px) {
  .hp-side-reception-legacy-hidden {
    top: 47%;
    width: 56px;
  }

  .hp-side-reception__toggle {
    width: 56px;
    min-height: 156px;
    padding: 14px 7px;
    border-radius: 20px 0 0 20px;
    gap: 10px;
  }

  .hp-side-reception__toggle-label {
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .hp-side-reception__inner {
    right: 56px;
    width: min(320px, calc(100vw - 70px));
    max-height: calc(100vh - 196px);
    padding: 18px 18px 18px 14px;
    border-radius: 22px 0 0 22px;
  }

  .hp-side-reception__table {
    font-size: 11px;
  }

  .hp-side-reception__table th,
  .hp-side-reception__table td {
    padding: 10px 2px;
  }

  .hp-side-reception__table th:not(:first-child) {
    width: 30px;
  }
}

/* ============================================
   FADE-UP / HP-ANIMATE — Shared scroll animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-d1 { transition-delay: 0.08s; }
.fade-up-d2 { transition-delay: 0.16s; }
.fade-up-d3 { transition-delay: 0.24s; }
.fade-up-d4 { transition-delay: 0.32s; }

.hp-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hp-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hp-animate--delay-1 { transition-delay: 0.1s; }
.hp-animate--delay-2 { transition-delay: 0.2s; }
.hp-animate--delay-3 { transition-delay: 0.3s; }
.hp-animate--delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE — Header/Footer/Common
   ============================================ */
@media (max-width: 767px) {
  .hp-header__logo-img {
    height: 42px;
  }

  .hp-fixed-cta {
    display: block;
    padding: 10px 12px;
  }

  .hp-fixed-cta__inner {
    gap: 8px;
  }

  .hp-fixed-cta__btn {
    min-width: 0;
    padding: 0.72rem 0.4rem;
    font-size: 12px;
  }

  .hp-footer {
    padding: 32px 0 0;
    padding-bottom: 84px;
  }

  .hp-footer__clinic {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .hp-footer__address {
    font-size: 12px;
  }

  .hp-footer__tel {
    font-size: 12px;
  }

  .hp-footer__copy {
    font-size: 10px;
    padding: 14px 0;
  }

  .hp-pagetop {
    right: 14px;
    bottom: 92px;
  }
}

@media (min-width: 768px) {
  .hp-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: flex-start;
  }

  .hp-footer__nav {
    justify-content: flex-end;
  }

  .hp-fixed-cta {
    display: none !important;
  }
}

@media (min-width: 1100px) {
  .hp-container {
    padding: 0 28px;
  }
}

/* ============================================
   PRINT — Shared
   ============================================ */
@media print {
  .hp-header,
  .hp-header__overlay,
  .hp-fixed-cta,
  .hp-pagetop,
  .hp-side-reception {
    display: none;
  }

  .fade-up,
  .hp-animate {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   FINAL POLISH OVERRIDES
   ============================================ */
.hp-header__mobile-cta-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 28px rgba(15, 33, 55, 0.18);
}

.hp-header__mobile-cta-kicker {
  opacity: 0.82;
}

.hp-footer {
  background: linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
  border-top: 1px solid rgba(45, 140, 70, 0.12);
}

.hp-footer .hp-container {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(28px, 5vw, 48px);
}

.hp-footer__clinic {
  max-width: 360px;
  margin-bottom: 28px;
}

.hp-footer__address,
.hp-footer__tel {
  line-height: 1.8;
}

.hp-footer__sitemap--rich {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.hp-footer__sitemap-col {
  min-width: 0;
}

.hp-footer__sitemap-title {
  margin-bottom: 12px;
  font-size: 15px;
}

.hp-footer__sitemap-nav {
  gap: 6px;
}

.hp-footer__sitemap-nav a {
  color: #4a5a62;
  line-height: 1.6;
}

.hp-footer__utility {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  margin-bottom: 20px;
}

.hp-footer__utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 1px solid rgba(45, 140, 70, 0.2);
  border-radius: 999px;
  color: var(--hp-primary);
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.72);
}

.hp-footer__utility-link:hover {
  background: #ffffff;
  border-color: rgba(45, 140, 70, 0.36);
}

@media (min-width: 900px) {
  .hp-footer__sitemap--rich {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .hp-footer__sitemap--rich {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 767px) {
  .hp-footer__sitemap--rich {
    grid-template-columns: 1fr;
  }

  .hp-footer__utility {
    justify-content: stretch;
  }

  .hp-footer__utility-link {
    width: 100%;
  }
}

/* ============================================
   FINAL SHELL REFINEMENTS
   ============================================ */
.hp-header__meta {
  display: none;
}

.hp-header__nav-desktop {
  display: none;
}

.hp-header__mobile-groups {
  display: grid;
  gap: 16px;
}

.hp-header__mobile-group {
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(248, 251, 249, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(26, 58, 74, 0.08);
}

.hp-header__mobile-heading {
  margin-bottom: 10px;
  color: #1A3A4A;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hp-header__mobile-links {
  display: grid;
  gap: 10px;
}

.hp-header__mobile-link {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(26, 58, 74, 0.08);
  color: #1e2c3a;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hp-header__mobile-link:hover {
  transform: translateY(-1px);
  border-color: rgba(45, 140, 70, 0.2);
  box-shadow: 0 12px 20px rgba(10, 29, 49, 0.06);
}

.hp-header__mobile-link-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.hp-header__mobile-link-summary {
  color: #60717a;
  font-size: 0.8rem;
  line-height: 1.7;
}

.hp-header__mobile-cta-link--tel {
  background: linear-gradient(135deg, #2D7D6A 0%, #3f9c87 100%);
}

.hp-header__mobile-cta-link--reserve {
  background: linear-gradient(135deg, #E8712A 0%, #F0903C 100%);
}

.hp-header__mobile-cta-link--beauty {
  background: linear-gradient(135deg, #E85B8A 0%, #f38faf 100%);
}

.hp-fixed-cta__btn--tel {
  background: linear-gradient(135deg, #2D7D6A 0%, #3f9c87 100%);
  color: #fff;
}

.hp-fixed-cta__btn--reserve {
  background: linear-gradient(135deg, #E8712A 0%, #F0903C 100%);
  color: #fff;
}

.hp-fixed-cta__btn--beauty {
  background: linear-gradient(135deg, #E85B8A 0%, #f38faf 100%);
  color: #fff;
}

.hp-prefooter-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding: 0 var(--hp-container-padding);
}

.hp-prefooter-cta__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(26, 58, 74, 0.97) 0%, rgba(38, 90, 83, 0.98) 55%, rgba(34, 92, 77, 0.98) 100%);
  box-shadow: 0 28px 60px rgba(9, 28, 41, 0.18);
  display: grid;
  gap: 20px;
  align-items: center;
}

.hp-prefooter-cta__copy {
  color: #ffffff;
}

.hp-prefooter-cta__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hp-prefooter-cta__title {
  margin: 0;
  color: #ffffff;
  font-family: var(--hp-font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.3;
}

.hp-prefooter-cta__text {
  margin: 0.9rem 0 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.9;
}

.hp-prefooter-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hp-prefooter-cta__tel,
.hp-btn--pill-orange,
.hp-btn--outline-light,
.hp-btn--contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hp-prefooter-cta__tel {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hp-btn--pill-orange {
  color: #ffffff;
  background: linear-gradient(135deg, #E8712A 0%, #F0903C 100%);
  box-shadow: 0 12px 28px rgba(232, 113, 42, 0.3);
}

.hp-btn--outline-light {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.hp-prefooter-cta .hp-btn--contact {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hp-prefooter-cta__tel:hover,
.hp-btn--pill-orange:hover,
.hp-btn--outline-light:hover,
.hp-btn--contact:hover {
  transform: translateY(-1px);
}

.hp-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hp-error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.hp-error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: #1A3A4A;
  background: #ffffff;
  border: 1px solid rgba(26, 58, 74, 0.12);
}

figure figcaption,
.wp-caption-text {
  writing-mode: horizontal-tb;
}

@media (min-width: 1100px) {
  .hp-header__container {
    grid-template-columns: minmax(220px, max-content) auto minmax(0, 1fr);
    gap: 14px;
  }

  .hp-header__meta {
    display: flex;
    align-items: center;
  }

  .hp-header__meta-phones {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hp-header__meta-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    color: #1A3A4A;
    background: rgba(244, 248, 246, 0.92);
    border: 1px solid rgba(26, 58, 74, 0.08);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .hp-header__meta-tel-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #65757e;
    letter-spacing: 0.02em;
  }

  .hp-header__meta-tel-number {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1A3A4A;
  }

  .hp-header__nav {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .hp-header__nav-desktop {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }

  .hp-header__nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
  }

  .hp-header__nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 92px;
    min-height: 78px;
    padding: 18px 14px;
    border-radius: 22px;
    color: #1A3A4A;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-align: center;
  }

  .hp-header__nav-item.is-active > .hp-header__nav-link {
    background: #1A3A4A;
    color: #ffffff;
    box-shadow: 0 20px 36px rgba(26, 58, 74, 0.16);
  }

  .hp-header__nav-item:not(.is-active) > .hp-header__nav-link:hover {
    background: rgba(26, 58, 74, 0.05);
    color: #1A3A4A;
  }

  .hp-header__nav-link--cta {
    min-width: 118px;
    background: transparent;
    color: #E85B8A;
  }

  .hp-header__nav-item.is-cta > .hp-header__nav-link:hover {
    background: rgba(232, 91, 138, 0.08);
    color: #E85B8A;
  }

  .hp-header__nav-text {
    display: block;
    min-height: 0;
    line-height: 1.34;
  }

  .hp-header__nav-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.6;
  }

  .hp-header__dropdown {
    position: absolute;
    top: calc(100% - 12px);
    left: 0;
    min-width: 340px;
    padding-top: 16px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .hp-header__nav-item.has-children:hover .hp-header__dropdown,
  .hp-header__nav-item.has-children:focus-within .hp-header__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hp-header__dropdown-grid {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(26, 58, 74, 0.08);
    box-shadow: 0 24px 48px rgba(9, 28, 41, 0.14);
    backdrop-filter: blur(10px);
  }

  .hp-header__dropdown-link {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    text-decoration: none;
    color: #1A3A4A;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hp-header__dropdown-link:hover {
    background: rgba(45, 125, 106, 0.08);
    transform: translateX(2px);
  }

  .hp-header__dropdown-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.45;
  }

  .hp-header__dropdown-summary {
    color: #65757e;
    font-size: 0.78rem;
    line-height: 1.7;
  }

  .hp-header__mobile-groups,
  .hp-header__mobile-cta {
    display: none;
  }
}

@media (max-width: 1099px) {
  .hp-wrap {
    padding-top: 92px;
  }

  .hp-header__container {
    min-height: 92px;
    justify-content: space-between;
  }

  .hp-header__logo-img {
    width: clamp(180px, 44vw, 280px);
    height: auto;
  }

  .hp-header__mobile-cta-link {
    min-height: 72px;
  }

  .hp-prefooter-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hp-prefooter-cta__tel,
  .hp-btn--pill-orange,
  .hp-btn--outline-light {
    width: 100%;
  }
}
