:root {
  --ivory: #f0f2f5;
  --soft: #e8ecf1;
  --stone: #8a93a0;
  --taupe: #6b7585;
  --charcoal: #1e242b;
  --ink: #12161c;
  --steel: #4a6fa5;
  --slate: #3d4f66;
  --muted: #5c6573;
  --header-h: 72px;
  --line: rgba(30, 36, 43, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(240, 242, 245, 0.95), transparent 28%),
    var(--soft);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.site-header {
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(240, 242, 245, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(10px);
}

.nav-link {
  position: relative;
  color: var(--charcoal);
  opacity: 0.7;
}

.nav-link:hover,
.nav-link.is-active {
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: 0.25s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-icon::before {
  top: -5px;
}

.menu-icon::after {
  top: 5px;
}

#menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

#menu-toggle[aria-expanded="true"] .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

#menu-toggle[aria-expanded="true"] .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu,
#mobile-menu {
  width: 100%;
  max-width: 100%;
  left: auto;
  right: 0;
  transition: transform 0.35s ease;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

/* Desktop (toggle visible below 2xl): side panel only — not full width */
@media (min-width: 768px) {
  .mobile-menu,
  #mobile-menu {
    width: 20vw !important;
    max-width: 20vw !important;
    min-width: 0 !important;
    left: auto !important;
    right: 0 !important;
  }

  #mobile-menu .font-serif.text-2xl {
    font-size: 1.15rem;
    line-height: 1.4;
  }
}

.display-title {
  font-family: "Libre Baskerville", "Noto Serif JP", serif;
  font-size: clamp(1.9rem, 4.6vw, 3.75rem);
  line-height: 1.3;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--steel);
}

.btn-primary,
.btn-secondary,
.btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  border-radius: 0;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--ink);
}

.btn-secondary {
  border: 1px solid rgba(30, 36, 43, 0.28);
  color: var(--charcoal);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-light {
  background: var(--ivory);
  color: var(--charcoal);
}

.btn-light:hover {
  background: #fff;
}

/* Split editorial hero */
.split-hero {
  display: grid;
  min-height: clamp(520px, 88svh, 900px);
  background: var(--ivory);
}

@media (min-width: 980px) {
  .split-hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.split-hero__main {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.split-hero__main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}

.swiper-slide-active .split-hero__main > img {
  transform: scale(1);
}

.split-hero__side {
  display: grid;
  grid-template-rows: 1fr auto;
  border-left: 1px solid var(--line);
}

.split-hero__detail {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.split-hero__detail > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.split-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem 2.5rem;
  background: var(--soft);
}

@media (min-width: 980px) {
  .split-hero__copy {
    padding: 2.5rem 2.25rem 3rem;
  }
}

.hero-progress {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--taupe);
}

.media-zoom {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #d5dbe3;
}

.media-zoom > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.group:hover .media-zoom > img,
.media-zoom:hover > img {
  transform: scale(1.045);
}

.discover-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.discover-tab {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  transition: 0.2s ease;
}

.discover-tab[aria-selected="true"],
.discover-tab:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.detail-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
  }

  .detail-grid .detail-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .detail-grid .detail-item:nth-child(4) {
    grid-column: span 2;
  }
}

.detail-item {
  position: relative;
  overflow: hidden;
  background: #d5dbe3;
}

.detail-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.detail-item:hover img {
  transform: scale(1.05);
}

.detail-item .cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.mw-split {
  display: grid;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 900px) {
  .mw-split {
    grid-template-columns: 1fr 1fr;
  }
}

.mw-panel {
  position: relative;
  min-height: 480px;
  background: var(--soft);
  overflow: hidden;
}

.mw-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.mw-panel__copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(18, 22, 28, 0.72));
  color: #fff;
}

.occasion-tabs,
.filter-chip {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.filter-chip.is-active,
.occasion-tab[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.occasion-panel[hidden],
.guide-card[hidden] {
  display: none !important;
}

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.fav-btn.is-active {
  border-color: var(--steel);
  color: var(--steel);
}

.fav-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.fav-toast[hidden] {
  display: none !important;
}

.page-banner {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vh, 600px);
  overflow: hidden;
  background: #d5dbe3;
}

.page-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(18, 22, 28, 0.58), rgba(18, 22, 28, 0.18));
}

.page-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: calc(var(--header-h) + 2rem) 1rem 2.75rem;
}

.cta-banner {
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 540px);
  overflow: hidden;
  background: var(--ink);
}

.cta-banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.58);
}

.cta-banner__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: 3rem 1rem;
}

.form-field {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  border-radius: 0;
}

.form-field:focus {
  outline: 2px solid rgba(74, 111, 165, 0.5);
  outline-offset: 1px;
}

.page-hero {
  padding-top: calc(var(--header-h) + 3rem);
}

.prose-jp p {
  line-height: 1.9;
  color: rgba(30, 36, 43, 0.82);
}

.prose-jp h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  margin: 2rem 0 1rem;
}

.prose-jp ul {
  margin: 1rem 0 1.5rem 1.2rem;
  line-height: 1.9;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
}

.accordion-panel {
  padding: 0.85rem 0 1.2rem;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.95rem;
}

.accordion-panel[hidden] {
  display: none !important;
}

.swiper-button-prev,
.swiper-button-next {
  color: var(--charcoal) !important;
  width: 40px !important;
  height: 40px !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 0.95rem !important;
}

.swiper-pagination-bullet-active {
  background: var(--steel) !important;
}

.hairline {
  height: 1px;
  background: var(--line);
}

/* Alternating homepage bands */
.section-band--light {
  background: var(--ivory);
}

.section-band--soft {
  background: var(--soft);
}

.section-band--dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.section-band--dark .section-label,
.section-band--dark .text-steel,
.section-band--dark .text-muted {
  color: rgba(240, 242, 245, 0.55);
}

.section-band--dark .display-title,
.section-band--dark h2,
.section-band--dark h3 {
  color: var(--ivory);
}

.section-band--dark .border-charcoal\/10 {
  border-color: rgba(240, 242, 245, 0.14);
}

.section-band--dark article,
.section-band--dark .bg-white {
  background: rgba(240, 242, 245, 0.06);
  color: var(--ivory);
}

.section-band--dark .swiper-button-prev,
.section-band--dark .swiper-button-next {
  color: var(--ivory) !important;
}

.section-band--dark .swiper-pagination-bullet {
  background: rgba(240, 242, 245, 0.45);
}

.section-band--dark .swiper-pagination-bullet-active {
  background: var(--steel) !important;
}

.section-band--dark a:not(.btn-light):not(.btn-secondary):not(.btn-primary) {
  color: rgba(240, 242, 245, 0.88);
}

.section-band--dark a:not(.btn-light):not(.btn-secondary):not(.btn-primary):hover {
  color: #f0f2f5;
}

@media (max-width: 979px) {
  .split-hero {
    min-height: clamp(480px, 78svh, 720px);
  }

  .split-hero__side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .detail-grid,
  .mw-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .split-hero {
    min-height: clamp(480px, 78svh, 720px);
  }

  main > section {
    padding-top: clamp(2.5rem, 6vw, 3.5rem);
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  }

  .detail-grid,
  .mw-split {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .split-hero__main > img,
  .media-zoom > img,
  .detail-item img {
    transform: none !important;
  }
}

/* ===== AOS blank-content safety (audit fix) ===== */
body.aos-fallback [data-aos],
body.aos-fallback [data-aos].aos-animate,
html.no-js [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  visibility: visible !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos],
  [data-aos].aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
  }
}


/* === Minimal JP nav CTA (master localization) === */
.lang-badge {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
  padding: 0.35rem 0.55rem;
  border: 1px solid currentColor;
}
.nav-cta {
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  border: 1px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  background: currentColor;
  color: #fff;
}
.nav-cta-mobile {
  display: inline-flex;
  width: fit-content;
}
