.locale-chooser { flex: none; }
.locale-chooser summary {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 5px 9px;
  border: 1px solid #b9d5e6;
  border-radius: 6px;
  color: #075481;
  font-size: .79rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.locale-chooser summary::-webkit-details-marker { display: none; }
.locale-chooser[open] summary { background: #eaf5fb; }
.locale-chooser ul {
  position: absolute;
  z-index: 6;
  top: 100%;
  right: max(12px, 4vw);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 8px;
  width: min(480px, calc(100% - 24px));
  max-height: 65vh;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border: 1px solid #b9d5e6;
  border-radius: 7px;
  background: white;
  box-shadow: 0 5px 12px #17395135;
  list-style: none;
}
.locale-chooser a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px;
  border-bottom: 1px solid #dcebf4;
  color: #075481;
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.25;
}
.locale-chooser a:hover, .locale-chooser a[aria-current="page"] { background: #eff8fb; }
@media (max-width: 880px) {
  .locale-chooser { margin-inline-start: auto; }
}
@media (max-width: 520px) {
  .locale-chooser summary {
    grid-auto-flow: row;
    min-width: 66px;
    gap: 0;
    padding: 3px 5px;
    font-size: .69rem;
    line-height: 1.16;
    text-align: center;
  }
  .locale-chooser summary :is(.locale-icon,.locale-divider) { display: none; }
  .locale-chooser ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .monthly-home .main-nav:has(.locale-chooser) { width: calc(100% - 20px); gap: 6px; }
  .monthly-home .main-nav:has(.locale-chooser) .brand { flex-shrink: 1; min-width: 0; }
  .monthly-home .main-nav:has(.locale-chooser) .brand strong { font-size: clamp(1.18rem, 5.2vw, 1.55rem); }
  .monthly-home .main-nav:has(.locale-chooser) .brand > span { font-size: clamp(.48rem, 2vw, .62rem); letter-spacing: .05em; }
}

.niseko-localized { --ink: #17384d; --body: #294a5f; --paper: #fff; --green: #075481; --line: #cddfe9; }
.local-section { padding-block: clamp(27px, 5vw, 64px); }
.local-section h2 { width: fit-content; margin-bottom: 12px; padding-bottom: 4px; border-bottom: 3px solid #2193ac; font-weight: 850; }
.local-note { font-size: .94rem; }
.local-cars, .local-route { display: grid; gap: 13px; }
.local-cars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.local-car, .local-route article {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #b9d5e6;
  border-radius: 9px;
  background: white;
}
.local-car { display: flex; flex-direction: column; }
.local-car > img { width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.local-car > div { display: grid; justify-items: start; align-content: start; flex: 1; padding: 12px; }
.local-car h3 { font-size: 1rem; margin: 0 0 4px; font-weight: 800; }
.local-car p { color: #075481; font-size: 1.32rem; margin: 0 0 5px; }
.niseko-localized button.niseko-secondary { border: 1px solid #b9d5e6; line-height: 1.25; text-align: left; }
.local-cars + p, .local-route + p { margin: 9px 0 0; }
.local-tint { background: #eff8fb; }
.local-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.local-route article { padding: 13px 16px; border-top: 4px solid #006faa; }
.local-route article :is(h3,p) { margin: 0; }
.local-route article strong { font-size: 1.65rem; color: #075481; }
.local-form-section { max-width: 960px; }
.local-form { display: grid; gap: 12px; padding: clamp(11px, 2.5vw, 25px); border: 1px solid #b9d5e6; border-radius: 10px; background: white; }
.local-form > button { justify-self: start; }
.local-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.local-field { display: grid; min-width: 0; gap: 4px; align-content: start; }
.local-field label, #enquiry-output > label { color: #17384d; font-weight: 760; }
.local-field :is(input,select,textarea), #enquiry-text {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #b9d5e6;
  border-radius: 6px;
  background: #fff;
  color: #172934;
  font: inherit;
}
.local-equipment { padding: 0 10px 8px; border: 1px solid #b9d5e6; border-radius: 7px; }
.local-equipment summary { padding-block: 8px; cursor: pointer; font-weight: 800; }
.local-equipment p { margin: 0 0 7px; font-size: .86rem; }
.local-check { display: flex; align-items: center; gap: 7px; min-height: 44px; }
.local-check input { width: 17px; height: 17px; flex: none; }
.local-check label { cursor: pointer; }
.local-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.local-form .estimate-result { margin: 0; padding: 12px; border-radius: 7px; background: #eff8fb; }
.local-form .estimate-result > :last-child { margin-bottom: 0; }
.local-form .estimate-row { align-items: start; }
.local-mobile-line { display: none; }
@media (max-width: 850px) {
  .local-cars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .local-fields, .local-route { grid-template-columns: 1fr; }
  .local-field :is(input,select,textarea) { font-size: 16px; }
  .niseko-localized { padding-bottom: calc(55px + env(safe-area-inset-bottom)); }
  .local-mobile-line {
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    padding: 5px 10px calc(5px + env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid #b9d5e6;
  }
  .local-mobile-line a { width: min(100%, 440px); border-radius: 28px; }
}

/* Allow translated labels to wrap inside the same Japanese components. */
.niseko-main:not(:lang(ja)) :is(.hero-offer,.hero-points,.plan-links a,.route-options a) { overflow-wrap: anywhere; }
.niseko-main:not(:lang(ja)) .hero h1 > span { text-wrap: balance; }
.niseko-main:not(:lang(ja)) .hero-fare > span { max-width: 14ch; }
.niseko-main:not(:lang(ja)) .quick-links a { overflow-wrap: anywhere; }
.niseko-main:not(:lang(ja)) .section-head h2 { text-wrap: balance; }
.hero-action--contact-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-action--contact-options .hero-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(310px, 100%);
  min-height: 58px;
  padding: 10px 16px;
  border: 2px solid #b9d5e6;
  border-radius: 99px;
  color: #075481;
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.hero-action--contact-options .hero-email:hover,
.hero-action--contact-options .hero-email:focus-visible { background: #eaf5fb; }
@media (max-width: 880px) {
  .hero-action--contact-options .hero-email { width: min(500px, 100%); }
}
@media (max-width: 520px) {
  .niseko-main:not(:lang(ja)) .locale-chooser summary { width: 75px; min-width: 0; padding-inline: 4px; overflow-wrap: anywhere; white-space: normal; }
  .niseko-main:not(:lang(ja)) .hero-fare > span { font-size: .91rem; }
}
