/**
 * Header, footer, sections, page shells.
 *
 * @package LiberteOriginal
 */

/* ----- Header（クリニック風：ロゴ＋ナビ＋2CTA） ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 250, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-primary-light), var(--color-primary));
  box-shadow: var(--shadow-soft);
  position: relative;
  flex-shrink: 0;
}

.site-brand__mark::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 11px;
  border-radius: 2px;
  background: var(--color-warm);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-logo-main {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

.site-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 600;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-cta__btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.header-cta__btn--line {
  background: var(--color-primary-light);
  color: #fff;
  border: 1px solid transparent;
}

.header-cta__btn--line:hover {
  background: var(--color-primary);
  color: #fff;
}

.header-cta__btn--tel {
  background: var(--color-accent-dark);
  color: #fff;
  border: 1px solid transparent;
}

.header-cta__btn--tel:hover {
  filter: brightness(1.05);
  color: #fff;
}

.nav-toggle {
  display: none;
  order: 4;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-heading);
}

body.nav-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.menu-list {
  display: flex;
  gap: 2px 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-item a {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

.menu-item a:hover {
  text-decoration: none;
  background: rgba(45, 125, 107, 0.1);
  color: var(--color-heading);
}

.menu-item--contact a {
  background: var(--color-primary);
  color: #fff;
}

.menu-item--contact a:hover {
  background: var(--color-primary-deep);
  color: #fff;
}

.site-main {
  min-height: 35vh;
}

/* Sections */
.section {
  padding: clamp(64px, 10vw, 96px) 0;
}

.section-muted {
  background: var(--color-section-tint);
}

.section-head {
  margin-bottom: 32px;
}

.section-head--center {
  text-align: center;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 + p,
.section-head__lead {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 1.03rem;
  line-height: 1.88;
  max-width: 46em;
}

.section-head--center .section-head__lead,
.section-head--center h2 + p {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 0.03em;
}

.section-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label--center {
  text-align: center;
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
  background: linear-gradient(165deg, var(--color-mint-soft) 0%, var(--color-bg) 50%, #eef6f3 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 92% -5%, rgba(94, 158, 139, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 45% at -5% 105%, rgba(212, 200, 175, 0.18), transparent 50%);
}

.page-hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-hero__blob--yellow {
  width: min(42vw, 280px);
  height: min(42vw, 280px);
  top: -8%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 220, 170, 0.4) 0%, transparent 68%);
}

.page-hero__blob--blue {
  width: min(36vw, 240px);
  height: min(36vw, 240px);
  bottom: -5%;
  left: -3%;
  background: radial-gradient(circle, rgba(180, 210, 230, 0.35) 0%, transparent 70%);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("../images/decor-grid.svg");
  background-size: 320px;
  pointer-events: none;
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: none;
}

.page-hero h1,
.page-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--color-heading);
}

.page-hero-lead {
  margin: 12px 0 0;
  max-width: 40em;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

/* Footer clinic */
.site-footer--clinic {
  margin-top: 0;
  background: linear-gradient(180deg, var(--color-mint-soft) 0%, #dceae6 100%);
  border-top: 1px solid var(--color-border);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 20px 32px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand__mark--footer {
  width: 44px;
  height: 44px;
}

.site-footer__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-heading);
}

.site-footer__tag {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.site-footer__copy {
  margin: 0;
}

.site-footer__copy small {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
}

@media (max-width: 960px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    order: 5;
    flex: none;
    width: 100%;
    flex-basis: 100%;
    justify-content: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .site-nav.is-open {
    max-height: 420px;
    overflow-y: auto;
  }

  .menu-list {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 8px;
  }

  .menu-item a {
    padding: 12px 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 48px 0;
  }
}
