/* Shared interface layer for every page in new-design. Page styles keep control of each page's layout. */
:root {
  --site-pink: #f3268b;
  --site-yellow: #ffe34c;
  --site-mint: #c7f1e4;
  --site-ink: #171716;
  --site-paper: #fffefa;
  --desktop-hero-height-ratio: 2170 / 725;
}

.site-component-error {
  margin: 8px 16px;
  padding: 10px 14px;
  border: 1px solid #f0b6cb;
  border-radius: 12px;
  color: #a52059;
  background: #fff1f6;
  font-size: 13px;
  line-height: 1.5;
}

/* One shared header design for every page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 34px;
  height: 78px;
  min-height: 78px;
  padding: 0 max(5.2vw, 32px);
  border-bottom: 1px solid #f4f0e9;
  background: rgba(255, 254, 250, .97);
  box-shadow: 0 2px 12px #40341a08;
}

.site-header .brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--site-ink);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: .035em;
  white-space: nowrap;
}

.site-header .brand-mark {
  display: flex;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffe64a;
  color: var(--site-ink);
  line-height: 1;
  box-shadow: inset 0 0 0 1px #f2d93d;
}

.site-header .brand-mark b { font-size: 17px; font-weight: 900; letter-spacing: -.08em; }
.site-header .brand-mark small { margin-top: 1px; font-size: 5px; font-weight: 900; letter-spacing: .08em; }

.site-header .desktop-nav {
  display: flex;
  gap: 38px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.site-header .instagram {
  display: flex;
  flex: 0 0 33px;
  align-items: center;
  justify-content: center;
  width: 33px;
  color: var(--site-pink);
}

.site-header .instagram svg { display: block; width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 2; }
.site-header .instagram .dot { fill: currentColor; stroke: none; }

.site-header .menu-toggle {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 28px;
  padding: 8px 19px;
  background: var(--site-pink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.site-header .menu-icon { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 3px; }
.site-header .menu-icon i,
.site-header .menu-icon::after { display: block; flex: 0 0 2px; width: 14px; height: 2px; border-radius: 999px; background: #fff; }
.site-header .menu-icon::after { content: ""; }

.site-header .mobile-nav {
  position: absolute;
  top: 70px;
  right: max(5.2vw, 32px);
  width: min(340px, 90vw);
  padding: 14px;
  border: 1px solid #f4d9e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 35px #47102a1b;
}

.site-header .mobile-nav[hidden] { display: none !important; }
.site-header .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-bottom: 1px solid #f7eaf0; font-weight: 800; }
.site-header .mobile-nav a:last-child { border-bottom: 0; }
.site-header .mobile-nav span { color: #8e8588; font-size: 11px; font-weight: 500; }
.site-header .desktop-nav a.current,
.site-header .mobile-nav a[aria-current="page"] { color: var(--site-pink); }
.site-header .desktop-nav a:hover,
.site-header .mobile-nav a:hover { color: var(--site-pink); }
.site-header a:focus-visible,
.site-header button:focus-visible { outline: 3px solid var(--site-pink); outline-offset: 4px; }

@media (max-width: 850px) {
  .site-header { height: 70px; min-height: 70px; gap: 18px; padding-inline: 5%; }
  .site-header .brand { font-size: 21px; }
  .site-header .brand-mark { flex-basis: 36px; width: 36px; height: 36px; }
  .site-header .brand-mark b { font-size: 15px; }
  .site-header .desktop-nav { gap: 18px; }
}

@media (max-width: 760px) {
  .site-header .desktop-nav { display: none; }
  .site-header .instagram { margin-left: auto; }
}

@media (max-width: 600px) {
  .site-header { height: 48px; min-height: 48px; gap: 0; justify-content: space-between; padding-inline: 16px; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; gap: 6px; font-size: 14px; }
  .site-header .brand-mark { flex: 0 0 26px; width: 26px; height: 26px; }
  .site-header .brand-mark b { font-size: 11px; }
  .site-header .brand-mark small { font-size: 3px; }
  .site-header .instagram { flex: 0 0 28px; width: 28px; margin-left: auto; margin-right: 16px; }
  .site-header .instagram svg { width: 24px; height: 24px; }
  .site-header .menu-toggle { height: 26px; min-height: 26px; gap: 7px; padding: 0 14px; font-size: 13px; line-height: 1; }
  .site-header .menu-icon { gap: 2px; }
  .site-header .menu-icon i,
  .site-header .menu-icon::after { width: 12px; }
  .site-header .mobile-nav { top: 42px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .desktop-nav a,
  .site-header .mobile-nav a { transition: none; }
}

/* Shared footer, matching the homepage layout on every page. */
html body footer.site-footer {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 28px;
  min-height: 150px;
  padding: 35px max(6%, calc((100% - 1180px) / 2));
  overflow: hidden;
  border: 0;
  background: linear-gradient(180deg, #fffefa, #fff9df);
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  text-align: center;
}

html body footer.site-footer::before,
html body footer.site-footer::after {
  position: absolute;
  z-index: -1;
  left: -5%;
  width: 110%;
  height: 42px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, #fff1ad, #dbf5e9 52%, #fff4c0);
}

html body footer.site-footer::before {
  top: -27px;
  border-radius: 0 0 50% 50% / 0 0 85% 85%;
}

html body footer.site-footer::after {
  bottom: -28px;
  border-radius: 50% 50% 0 0 / 85% 85% 0 0;
  transform: rotate(180deg);
}

html body footer.site-footer > .brand { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; color: #171716; font-size: 18px; font-weight: 900; letter-spacing: .035em; white-space: nowrap; }
html body footer.site-footer .footer-tagline { grid-column: 1; grid-row: 2; align-self: start; margin: 0; color: #171716; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
html body footer.site-footer .footer-nav {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
}

html body footer.site-footer .footer-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 17px;
  border: 1px solid #f3268b;
  border-radius: 999px;
  background: #fff;
  color: #f3268b;
  transition: background .2s, color .2s, transform .2s;
}

html body footer.site-footer .footer-nav a:hover { transform: translateY(-1px); background: #f3268b; color: #fff; }
html body footer.site-footer > small { grid-column: 3; grid-row: 1 / 3; align-self: end; color: #827b79; font-size: 10px; white-space: nowrap; }
html body footer.site-footer .footer-brand-mark { display: flex; flex: 0 0 29px; flex-direction: column; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: #ffe64a; color: #171716; line-height: 1; box-shadow: inset 0 0 0 1px #f2d93d; }
html body footer.site-footer .footer-brand-mark b { font-size: 13px; font-weight: 900; letter-spacing: -.08em; }
html body footer.site-footer .footer-brand-mark small { margin-top: 1px; font-size: 4px; font-weight: 900; letter-spacing: .08em; }

@media (max-width: 600px) {
  html body footer.site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 9px 8px;
    min-height: 0;
    padding: 35px 16px;
  }
  html body footer.site-footer > .brand { grid-column: 1; grid-row: 1; gap: 7px; font-size: 14px; }
  html body footer.site-footer .footer-brand-mark { flex-basis: 26px; width: 26px; height: 26px; }
  html body footer.site-footer .footer-brand-mark b { font-size: 11px; }
  html body footer.site-footer .footer-tagline { grid-column: 2; grid-row: 1; align-self: center; font-size: 7px; letter-spacing: .1em; text-align: right; }
  html body footer.site-footer .footer-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; width: 100%; font-size: 11px; }
  html body footer.site-footer .footer-nav a { min-width: 0; min-height: 36px; padding: 6px 8px; }
  html body footer.site-footer > small { grid-column: 1 / -1; grid-row: 3; align-self: auto; font-size: 8px; text-align: center; }
}

/* Shared desktop hero height, based on the home page's image ratio. */
@media (min-width: 1024px) {
  .hero,
  .menu-page .menu-hero,
  .about-page .about-hero,
  .schedule-page .schedule-hero {
    width:100%;
    height:auto;
    min-height:0;
    aspect-ratio:var(--desktop-hero-height-ratio);
    overflow:hidden;
  }
  .hero .hero-image {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
  }
  .menu-page .menu-hero .menu-hero-desktop-image,
  .about-page .about-hero .about-hero-desktop-image {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
  .schedule-page .schedule-hero .schedule-hero-image {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
  }
}
