/* A generous event masthead: centered identity, persistent dates and one action. */
html:has(.site-shell) {
  scroll-padding-top: 180px;
}
.site-shell {
  --masthead-progress: 0;
  --masthead-height: calc(88px + 76px * var(--masthead-progress));
}
.site-shell .hd,
.site-shell .hd.is-solid {
  height: var(--masthead-height);
  padding: 0 4.2%;
  border: 0;
}
.site-shell .hd:before {
  background: #091f38f7;
}
.site-shell .hd__logo,
.site-shell .is-solid .hd__logo {
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
}
.site-shell .brand-official,
.site-shell .is-solid .brand-official {
  width: 200px;
  height: auto;
}
.travelling-logo {
  filter: brightness(calc(1 + 0.55 * var(--masthead-progress))) drop-shadow(0 3px 8px #020c19);
}
.header-date {
  position: absolute;
  left: calc(4.2% + 70px);
  top: 50%;
  transform: translateY(-50%);
  color: #f1f7fc;
  opacity: var(--masthead-progress);
  line-height: 1.5;
  white-space: nowrap;
}
.header-date__place {
  display: block;
  font: 10px var(--f-en);
  letter-spacing: 0.21em;
  margin-bottom: 10px;
  color: #b5ccde;
}
.header-date__days {
  font: 600 21px/1.4 var(--f-en);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.035em;
}
.header-date__days small {
  font: 500 10px var(--f-en);
  letter-spacing: 0.05em;
  margin-left: 4px;
}
.header-date__year {
  font: 500 12px var(--f-en);
  letter-spacing: 0.08em;
  margin-right: 10px;
}
.site-shell .menu-toggle {
  position: absolute;
  left: 4.2%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 3px;
  background: #ffffff10;
  cursor: pointer;
  color: white;
}
.site-shell .menu-toggle span {
  width: 25px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s;
}
.site-shell .menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.site-shell .menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}
.site-shell .hd__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  gap: 32px;
  padding: 30px 6%;
  background: #091f38fa;
  box-shadow: 0 12px 20px #04142622;
  color: white;
  border: 0;
  max-height: calc(100svh - var(--masthead-height));
  overflow: auto;
}
.site-shell .hd__nav.is-open {
  display: flex;
  justify-content: center;
  flex-direction: row;
}
.site-shell .hd__nav a {
  padding: 12px;
  font-size: 14px;
}
.site-shell .hd__cta,
.site-shell .is-solid .hd__cta {
  position: relative;
  font: 600 13px var(--f-ja);
  letter-spacing: 0.06em;
  padding: 15px 22px;
  min-height: 48px;
  gap: 20px;
  margin-left: auto;
  color: #153956;
  background: #f1f7fb;
}
.site-shell .hd__cta span {
  display: inline;
  font-size: 17px;
  font-weight: 400;
}
.site-shell .motion-toggle {
  top: calc(24px + 38px * var(--masthead-progress));
  right: calc(4.2% + 190px);
  left: auto;
  font-size: 10px;
  width: auto;
  padding: 9px 13px;
  background: #102b46d9;
  border: 1px solid #ffffff45;
}
.site-shell .way {
  scroll-margin-top: 16px;
}
.site-shell .plan {
  scroll-margin-top: 16px;
}
@media (max-width: 1100px) {
  html:has(.site-shell) {
    scroll-padding-top: 158px;
  }
  .site-shell {
    --masthead-height: calc(76px + 68px * var(--masthead-progress));
  }
  .site-shell .hd,
  .site-shell .hd.is-solid {
    padding: 0 20px;
  }
  .site-shell .hd__logo,
  .site-shell .is-solid .hd__logo {
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
  }
  .site-shell .brand-official,
  .site-shell .is-solid .brand-official {
    width: 148px;
  }
  .header-date {
    left: 50%;
    top: 108px;
    transform: translateX(-50%);
    text-align: center;
    line-height: 1.2;
  }
  .header-date__place {
    display: none;
  }
  .header-date__days {
    font-size: 19px;
    letter-spacing: 0.055em;
  }
  .header-date__days small {
    font-size: 9px;
    margin-left: 3px;
  }
  .header-date__year {
    font-size: 10px;
    margin-right: 7px;
  }
  .site-shell .menu-toggle {
    left: 20px;
    top: 22px;
    transform: none;
    width: 36px;
    height: 36px;
  }
  .site-shell .hd__cta,
  .site-shell .is-solid .hd__cta {
    position: absolute;
    right: 20px;
    top: 22px;
    padding: 10px 12px;
    font-size: 11px;
    min-height: 38px;
    gap: 8px;
  }
  .site-shell .hd__cta span {
    font-size: 13px;
  }
  .site-shell .motion-toggle {
    left: 21px;
    right: auto;
    top: 84px;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    opacity: calc(0.35 + 0.65 * var(--masthead-progress));
  }
  .site-shell .motion-toggle span {
    font-size: 16px;
  }
  .site-shell .hd__nav.is-open {
    flex-direction: column;
    gap: 4px;
    padding: 20px 28px;
  }
}
@media (max-width: 400px) {
  .site-shell .hd__cta,
  .site-shell .is-solid .hd__cta {
    right: 13px;
    padding: 10px 9px;
    font-size: 10px;
    gap: 4px;
  }
  .site-shell .menu-toggle {
    left: 13px;
  }
  .site-shell .motion-toggle {
    left: 14px;
  }
  .site-shell .brand-official,
  .site-shell .is-solid .brand-official {
    width: 138px;
  }
  .header-date__days {
    font-size: 18px;
  }
}
.site-shell.nav-open {
  --masthead-progress: 1 !important;
}
.site-shell.nav-open .hd:before {
  opacity: 1;
}
.site-shell.nav-open .travelling-logo {
  visibility: hidden;
}
.site-shell.nav-open .brand-official {
  opacity: 1;
  filter: brightness(1.55);
}
@media (max-width: 360px) {
  .site-shell .brand-official,
  .site-shell .is-solid .brand-official {
    width: 108px;
  }
  .site-shell .hd__cta,
  .site-shell .is-solid .hd__cta {
    font-size: 9px;
    padding: 9px 7px;
  }
  .header-date__days {
    font-size: 17px;
  }
  .header-date__year {
    font-size: 9px;
  }
}

/* Shared appearance follows the responsive geometry above. */
.site-shell .hd,
.site-shell .hd.is-solid {
  background: transparent;
  color: #fff;
  backdrop-filter: none;
  isolation: isolate;
}
/* Fade the tint and the backdrop blur together, so neither has a hard lower edge. */
.site-shell .hd:before {
  content: '';
  position: absolute;
  inset: 0 0 -56px;
  background: linear-gradient(
    180deg,
    rgba(9, 31, 56, 0.88) 0%,
    rgba(9, 31, 56, 0.78) 48%,
    rgba(9, 31, 56, 0.58) 72%,
    rgba(9, 31, 56, 0) 100%
  );
  -webkit-backdrop-filter: blur(22px) saturate(115%);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  opacity: var(--header-reveal, 1);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 760px) {
  .site-shell .hd:before {
    bottom: -40px;
    -webkit-backdrop-filter: blur(18px) saturate(115%);
    backdrop-filter: blur(18px) saturate(115%);
  }
}
.site-shell.snow-lp .hd:before {
  opacity: var(--header-reveal, 0);
}
.site-shell.nav-open .hd:before {
  opacity: 1;
}
.site-shell .hd__logo,
.site-shell .is-solid .hd__logo {
  position: absolute;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
}
.site-shell:not(.snow-lp) .brand-official {
  filter: brightness(1.55);
}
.site-shell .hd__cta {
  display: flex;
  align-items: center;
  border-radius: 2px;
}
.site-shell .hd__cta span {
  border: 0;
  padding-left: 0;
}
.site-shell .hd__nav {
  font-weight: 500;
  letter-spacing: 0.06em;
}
.site-shell .hd__nav a {
  position: relative;
}
.site-shell .hd__nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 7px;
}

/* Full-viewport menu: the shared masthead stays above an opaque winter-blue canvas. */
html.menu-open,
html.menu-open body {
  overflow: hidden;
  overscroll-behavior: none;
}
.site-shell.nav-open .hd {
  z-index: 80;
}
.site-shell.nav-open .hd:before {
  position: fixed;
  inset: 0;
  background: #0b2744;
  opacity: 1;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: none;
  -webkit-mask-image: none;
}
.site-shell .hd__nav.is-open {
  position: fixed;
  inset: var(--masthead-height) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 50px;
  padding: clamp(28px, 5vh, 60px) 8% 48px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: radial-gradient(ellipse at 80% 95%, #244e6a66, transparent 65%), #0b2744;
  box-shadow: none;
  scrollbar-color: #7297b0 #0b2744;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5%;
  width: min(100%, 1200px);
  margin: 0 auto;
}
.menu-heading {
  color: #a8cfe5;
  font: italic 36px/1.2 var(--serif);
  letter-spacing: 0.02em;
  margin-bottom: 23px;
}
.site-shell .menu-group a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 10px 0;
  font: 500 clamp(22px, 2vw, 30px)/1.6 var(--f-ja);
  letter-spacing: 0.06em;
  transition:
    color 0.2s,
    transform 0.2s;
}
.site-shell .menu-group a:hover {
  color: #b7dff5;
  transform: translateX(5px);
}
/* A single editorial banner gives the snow fund a clear destination. */
.site-shell .hd__nav a.menu-fund {
  display: grid;
  grid-template-columns: 34% 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  width: min(100%, 1200px);
  margin: auto auto 0;
  padding: 0 42px 0 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #edf6fa;
  color: #183e5b;
  text-decoration: none;
  text-align: left;
  transition: background 0.2s;
}
.site-shell .hd__nav a.menu-fund:hover {
  background: #fff;
}
.site-shell .hd__nav a.menu-fund:focus-visible {
  outline: 3px solid #b7dff5;
  outline-offset: 6px;
}
.menu-fund > img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 50% 46%;
}
.menu-fund__body {
  display: grid;
  gap: 10px;
  padding: 26px 0;
}
.menu-fund__label {
  font: 500 12px/1.5 var(--f-en);
  letter-spacing: 0.16em;
}
.menu-fund__title {
  font: 500 32px/1.4 var(--f-ja);
  letter-spacing: 0.08em;
}
.menu-fund__copy {
  font: 400 17px/1.8 var(--f-ja);
  letter-spacing: 0.04em;
}
.menu-fund__arrow {
  font: 300 38px/1 var(--f-ja);
}
@media (max-width: 760px) {
  .site-shell .hd__nav.is-open {
    padding: 26px 28px 36px;
    gap: 30px;
  }
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .menu-heading {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .site-shell .menu-group a {
    font-size: 20px;
    padding: 8px 0;
    letter-spacing: 0.03em;
  }
  .site-shell .hd__nav a.menu-fund {
    grid-template-columns: 30% 1fr;
    gap: 16px;
    padding-right: 16px;
  }
  .menu-fund > img {
    height: 100%;
    min-height: 190px;
  }
  .menu-fund__body {
    gap: 8px;
    padding: 22px 0;
  }
  .menu-fund__label {
    font-size: 10px;
  }
  .menu-fund__title {
    font-size: 25px;
  }
  .menu-fund__copy {
    font-size: 13px;
  }
  .menu-fund__arrow {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell .menu-group a {
    transition: none;
  }
  .site-shell .menu-group a:hover {
    transform: none;
  }
}

/* Official social account, shared with the footer. */
.menu-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 1200px);
  margin: -22px auto 0;
  flex-shrink: 0;
}
.menu-social__label {
  color: #a8cfe5;
  font: italic 26px/1.3 var(--serif);
}
.site-shell .hd__nav .menu-social a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 0;
  color: #edf6fa;
  font: 500 16px/1.5 var(--f-ja);
  letter-spacing: 0.04em;
}
.menu-social a small {
  margin-left: 12px;
  font-size: 11px;
  color: #b4cddd;
}
.menu-social a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 760px) {
  .menu-social {
    margin-top: -12px;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .menu-social__label {
    font-size: 23px;
  }
  .site-shell .hd__nav .menu-social a {
    font-size: 15px;
  }
  .menu-social a small {
    display: block;
    margin-left: 0;
    font-size: 10px;
  }
}

/* Mobile calendar action: retain the accessible name and the existing destination. */
.site-shell .hd__calendar-icon {
  display: none;
  flex-shrink: 0;
}
.site-shell .hd__cta .hd__cta-label {
  font: inherit;
}
@media (max-width: 760px) {
  .site-shell .hd__cta,
  .site-shell .is-solid .hd__cta {
    top: 18px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    --button-radius: 50%;
    border-radius: 50%;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .site-shell .hd__cta .hd__cta-label,
  .site-shell .hd__cta .hd__cta-arrow {
    display: none;
  }
  .site-shell .hd__calendar-icon {
    display: block;
    width: 24px;
    height: 24px;
  }
}

/* Instagram entry beside the calendar action: always visible, no menu needed. */
.site-shell .hd__insta {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 57px;
  padding: 0 20px 0 13px;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid #f1f7fbaa;
  border-radius: 2px;
  background: #f1f7fb1f;
  backdrop-filter: blur(6px);
  color: #f6fafd;
  font: 600 13px var(--f-en);
  letter-spacing: 0.06em;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.site-shell .hd__insta:hover {
  background: #f1f7fb38;
  transform: translateY(-1px);
}
.site-shell .hd__insta-badge {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: #fff;
  box-shadow: 0 2px 8px #00000033;
}
.site-shell .hd__insta svg {
  width: 20px;
  height: 20px;
}
.site-shell .hd__insta + .hd__cta {
  margin-left: -14px;
}
@media (min-width: 1101px) {
  .site-shell .motion-toggle {
    right: calc(4.2% + 336px);
  }
}
@media (max-width: 1100px) {
  .site-shell .hd__insta {
    position: absolute;
    top: 22px;
    right: 146px;
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    justify-content: center;
    border: 0;
    background: none;
    backdrop-filter: none;
  }
  .site-shell .hd__insta-label {
    display: none;
  }
  .site-shell .hd__insta-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
}
@media (max-width: 760px) {
  .site-shell .hd__insta {
    top: 18px;
    right: 70px;
    width: 44px;
    height: 44px;
  }
  .site-shell .hd__insta-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }
  .site-shell .hd__insta svg {
    width: 22px;
    height: 22px;
  }
}
@media (max-width: 400px) {
  .site-shell .hd__insta {
    right: 61px;
    width: 40px;
    height: 40px;
    top: 20px;
  }
  .site-shell .hd__insta-badge {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-shell .hd__insta {
    transition: none;
  }
  .site-shell .hd__insta:hover {
    transform: none;
  }
}

/* A second account sits beside the first in the menu. */
.menu-social a + a {
  margin-left: -8px;
}
@media (min-width: 761px) {
  .menu-social {
    justify-content: flex-start;
    gap: 32px;
  }
  .menu-social__label {
    margin-right: auto;
  }
}

/* スマホ・タブレットでは予定ボタンとインスタボタンを右端基準で固定する（PC用の詰めマージンを持ち込まない。iOS WebKitで左に飛ぶのを防ぐ） */
@media (max-width: 1100px) {
  .site-shell .hd__insta + .hd__cta,
  .site-shell .is-solid .hd__insta + .hd__cta {
    margin: 0;
    left: auto;
  }
  .site-shell .hd__insta {
    left: auto;
  }
}

/* スマホ：スクロール中はメニューボタンだけ。ロゴ・日付・ボタン・背景は隠して画面を広く使う */
@media (max-width: 760px) {
  .site-shell .header-date__days {
    white-space: nowrap;
  }
  .site-shell.hd-compact:not(.nav-open) .hd {
    pointer-events: none;
  }
  .site-shell.hd-compact:not(.nav-open) .hd:before {
    opacity: 0 !important;
  }
  .site-shell.hd-compact:not(.nav-open) .hd__logo,
  .site-shell.hd-compact:not(.nav-open) .header-date,
  .site-shell.hd-compact:not(.nav-open) .hd__insta,
  .site-shell.hd-compact:not(.nav-open) .hd__cta,
  .site-shell.hd-compact:not(.nav-open) .travelling-logo {
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.25s,
      visibility 0.25s;
  }
  .site-shell.hd-compact:not(.nav-open) .menu-toggle {
    pointer-events: auto;
    background: #0b2744e0;
    box-shadow: 0 2px 10px #0003;
  }
}
