:root {
  --ivory: #f7f3ee;
  --beige: #e8dfd4;
  --soft: #faf8f5;
  --charcoal: #2c2926;
  --warm: #6b5e52;
  --olive: #7a7a5a;
  --burgundy: #6b3a3a;
  --header-h: 72px;
}

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* =========================================================
   STANDARD IMAGE SYSTEM
   Fixed balanced containers — images always cover the box
   ========================================================= */
.img-box {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--beige);
}

.img-box > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Hero / banner — fixed responsive heights */
.img-hero {
  height: clamp(420px, 78svh, 820px);
}

.img-page-hero {
  height: clamp(380px, 62vh, 640px);
}

.img-banner {
  height: clamp(300px, 50vh, 560px);
}

/* Content cards — fixed aspect ratios for grid balance */
.img-portrait {
  aspect-ratio: 3 / 4;
}

.img-card {
  aspect-ratio: 4 / 5;
}

.img-landscape {
  aspect-ratio: 16 / 10;
}

.img-wide {
  aspect-ratio: 4 / 3;
}

.img-feature {
  aspect-ratio: 5 / 4;
}

.img-square {
  aspect-ratio: 1 / 1;
}

.img-story {
  aspect-ratio: 21 / 9;
}

/* Equal-height cards inside grids */
.img-grid-card {
  aspect-ratio: 4 / 5;
}

.img-grid-thumb {
  aspect-ratio: 4 / 3;
}

@media (max-width: 767px) {
  .img-hero {
    height: clamp(360px, 70vh, 560px);
  }

  .img-page-hero {
    height: clamp(320px, 56vh, 480px);
  }

  .img-banner {
    height: clamp(260px, 42vh, 400px);
  }

  .img-story {
    aspect-ratio: 16 / 10;
  }
}

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

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

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

.site-header {
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.94);
  border-bottom: 1px solid rgba(44, 41, 38, 0.08);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled .nav-link,
.site-header.is-scrolled a {
  color: var(--charcoal);
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: currentColor;
  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 {
  transition: transform 0.35s ease;
}

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

.display-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  transition: 0.25s ease;
}

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

.btn-primary:hover {
  background: #1c1a18;
}

.btn-secondary {
  border: 1px solid rgba(44, 41, 38, 0.25);
  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;
}

.hero-swiper,
.season-swiper,
.lookbook-swiper,
.journal-swiper {
  overflow: hidden;
}

.season-swiper .swiper-slide {
  height: auto;
}

.season-swiper .swiper-wrapper {
  align-items: stretch;
}

.hero-slide {
  position: relative;
  height: clamp(420px, 78svh, 820px);
  min-height: 70svh;
}

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

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

@media (max-width: 767px) {
  .hero-slide {
    height: clamp(360px, 70svh, 560px);
    min-height: 70svh;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44, 41, 38, 0.55) 0%, rgba(44, 41, 38, 0.18) 55%, rgba(44, 41, 38, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 1.25rem 4rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 5rem;
  }
}

.hero-copy {
  max-width: 34rem;
  color: #fff;
}

.hero-progress {
  position: absolute;
  right: 1.25rem;
  bottom: 2rem;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.media-zoom {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--beige);
}

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

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

.category-card {
  position: relative;
  display: block;
}

.category-card .arrow {
  transition: transform 0.3s ease;
}

.category-card:hover .arrow {
  transform: translateX(6px);
}

.style-option {
  border: 1px solid rgba(44, 41, 38, 0.15);
  background: #fff;
  min-height: 48px;
  padding: 0.75rem 1rem;
  transition: 0.2s ease;
}

.style-option.is-selected,
.style-option:hover {
  border-color: var(--charcoal);
  background: var(--ivory);
}

.style-result {
  display: none;
}

.style-result.is-visible {
  display: block;
}

.editorial-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
  }
}

.lookbook-tile {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--beige);
}

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

.lookbook-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 45%, rgba(44, 41, 38, 0.55));
  pointer-events: none;
}

.lookbook-tile .caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  color: #fff;
}

/* Page section heroes — full-bleed fixed height */
.page-banner {
  position: relative;
  width: 100%;
  height: clamp(380px, 62vh, 640px);
  overflow: hidden;
  background: var(--beige);
}

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

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 41, 38, 0.48);
}

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

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

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

.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 41, 38, 0.55);
}

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

@media (min-width: 768px) {
  .page-banner__content,
  .cta-banner__content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .page-banner__content,
  .cta-banner__content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.form-field {
  width: 100%;
  border: 1px solid rgba(44, 41, 38, 0.18);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
}

.form-field:focus {
  outline: 2px solid rgba(44, 41, 38, 0.35);
  outline-offset: 1px;
}

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

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

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

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

.prose-jp p {
  line-height: 1.9;
  color: rgba(44, 41, 38, 0.82);
}

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

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

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

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

  .hero-slide > img,
  .media-zoom > img,
  .img-box > img {
    transform: none !important;
  }
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(180deg, rgba(44, 41, 38, 0.25) 0%, rgba(44, 41, 38, 0.62) 100%);
  }
}

/* ===== 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;
  }
}

/* ===== Editorial rhythm + responsive layout ===== */
.bg-charcoal .section-label,
.bg-charcoal a:not(.btn-light):not(.btn-secondary) {
  color: rgba(247, 243, 238, 0.72);
}

.bg-charcoal a:not(.btn-light):not(.btn-secondary):hover {
  color: #f7f3ee;
}

.bg-charcoal .text-warm {
  color: rgba(247, 243, 238, 0.68);
}

.bg-charcoal .swiper-pagination-bullet {
  background: rgba(247, 243, 238, 0.45);
}

.bg-charcoal .swiper-pagination-bullet-active {
  background: #f7f3ee;
}

@media (max-width: 767px) {
  main > section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .editorial-grid,
  .pet-split,
  .grid.lg\:grid-cols-12,
  .grid.lg\:grid-cols-3,
  .grid.md\:grid-cols-6 {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-slide {
    height: clamp(360px, 72svh, 560px);
    min-height: 70svh;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  main > section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}


/* === 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;
}
