:root {
  --ink: #211e1d;
  --paper: #eee8dc;
  --white: #fff;
  --blue: #263866;
}

* { box-sizing: border-box; }
html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
}

#confetti {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.welcome {
  position: relative;
  display: flex;
  width: min(100%, 760px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(82px, 12vh, 136px) 22px 46px;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
}

.welcome-copy { position: relative; z-index: 3; }

.eyebrow {
  margin: 0 0 11px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
}

h1 {
  margin: 0;
  font-family: Arial, "Noto Sans JP", sans-serif;
  font-size: clamp(62px, 15.5vw, 110px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.06em;
}

.message {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: clamp(15px, 3.3vw, 22px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: .04em;
}

.people {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(530px, 92vw);
  height: clamp(305px, 62vw, 460px);
  margin: 26px auto -280px;
  align-items: flex-start;
  justify-content: center;
}

.person {
  position: relative;
  width: 50%;
  height: 100%;
}

.person-image {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  transform: translateX(-50%);
}

.person-image--standing { animation: standing 5.2s ease-in-out infinite; }
.person-image--bowing { opacity: 0; animation: bowing 5.2s ease-in-out infinite; }

.menu-card {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 34px clamp(18px, 6vw, 54px) 40px;
  border-radius: 30px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(54, 45, 32, .1);
}

.menu-label {
  margin: 0 0 24px;
  color: #8d857a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .23em;
}

.menu-links { display: grid; gap: 13px; }

.menu-link {
  display: grid;
  min-height: 80px;
  padding: 12px 24px;
  border: 1px solid rgba(126, 112, 94, .2);
  border-radius: 999px;
  align-items: center;
  grid-template-columns: 42px 1fr 24px;
  gap: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, .58);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.menu-link:hover,
.menu-link:focus-visible {
  border-color: var(--accent);
  outline: none;
  background: color-mix(in srgb, var(--accent) 12%, white);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--accent) 20%, transparent);
  transform: translateY(-2px);
}

.menu-link:hover .menu-icon,
.menu-link:focus-visible .menu-icon {
  color: #fff;
  background: var(--accent);
}

.menu-link:hover .menu-arrow,
.menu-link:focus-visible .menu-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.share-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  padding: 10px 22px;
  border: 1px solid #e7e0d5;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #766e65;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
  outline: none;
  background: #faf8f4;
  transform: translateY(-2px);
}

.share-icon { display: grid; width: 22px; height: 22px; place-items: center; }
.share-icon svg { width: 20px; height: 20px; fill: currentColor; }

.menu-icon {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, white);
}

.menu-icon svg { width: 21px; height: 21px; fill: currentColor; }
.menu-text strong { display: block; font-size: clamp(15px, 4vw, 18px); font-weight: 700; }
.menu-text small { display: block; margin-top: 2px; color: #aaa197; font-size: 8px; font-weight: 700; letter-spacing: .11em; }
.menu-arrow { color: #9f978e; font-size: 20px; text-align: right; transition: color .25s ease, transform .25s ease; }

.footer-note {
  margin: 34px 0 0;
  color: #888076;
  font-family: "DM Serif Display", serif;
  font-size: 13px;
  letter-spacing: .08em;
}

@keyframes standing {
  0%, 26% { opacity: 1; }
  40%, 72% { opacity: 0; }
  86%, 100% { opacity: 1; }
}

@keyframes bowing {
  0%, 26% { opacity: 0; }
  40%, 72% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

@media (max-width: 520px) {
  .welcome { min-height: 1000px; padding: 76px 15px 38px; }
  .message { max-width: 340px; margin-top: 17px; font-size: 15px; line-height: 1.75; }
  .people { width: 100%; height: 390px; margin-top: 24px; margin-bottom: -245px; transform: translateX(-4vw); }
  .menu-card { padding: 29px 15px 31px; border-radius: 27px; }
  .menu-label { margin-bottom: 19px; }
  .menu-link { min-height: 72px; padding: 10px 19px; grid-template-columns: 38px 1fr 20px; gap: 10px; }
  .menu-icon { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .person-image--standing { opacity: 0; }
  .person-image--bowing { opacity: 1; }
  #confetti { display: none; }
}
