:root {
  --cream: #f6f1ea;
  --soft: #fbf8f4;
  --beige: #e8dfd3;
  --bark: #6b5748;
  --sage: #8fa38a;
  --charcoal: #2f2a26;
  --coral: #c98b7b;
  --muted: #7a6e64;
  --header-h: 76px;
  --radius-organic: 40% 60% 55% 45% / 55% 40% 60% 45%;
}

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

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

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(143, 163, 138, 0.12), transparent 42%),
    radial-gradient(ellipse at 90% 20%, rgba(201, 139, 123, 0.08), transparent 36%),
    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(--sage);
  outline-offset: 3px;
}

.site-header {
  background: transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 244, 0.92);
  border-bottom: 1px solid rgba(47, 42, 38, 0.08);
  backdrop-filter: blur(12px);
}

.brand-mark {
  position: relative;
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--sage);
  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);
}

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

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

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

.btn-primary,
.btn-secondary,
.btn-light {
  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.12em;
  border-radius: 999px;
  transition: 0.25s ease;
}

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

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

.btn-secondary {
  border: 1px solid rgba(47, 42, 38, 0.22);
  color: var(--charcoal);
  background: transparent;
}

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

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

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

.hero-swiper {
  overflow: hidden;
}

.hero-slide {
  position: relative;
  height: clamp(460px, 88svh, 860px);
  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.05);
  transition: transform 7s ease;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(47, 42, 38, 0.62) 0%, rgba(47, 42, 38, 0.28) 48%, rgba(47, 42, 38, 0.12) 100%),
    radial-gradient(circle at 80% 20%, rgba(143, 163, 138, 0.18), transparent 40%);
}

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

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

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

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.scroll-indicator span {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
  animation: scrollPulse 1.8s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

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

.media-zoom.is-organic {
  border-radius: var(--radius-organic);
}

.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 {
  transform: scale(1.04);
}

.pet-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .pet-split {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: stretch;
  }
}

.pet-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  background: #fff;
  border: 1px solid rgba(47, 42, 38, 0.06);
}

.pet-panel--dog {
  min-height: 420px;
}

.pet-panel--cat {
  min-height: 420px;
}

.pet-panel > .media-zoom {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  height: 100%;
  aspect-ratio: auto;
}

.routine-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.routine-tab {
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 42, 38, 0.14);
  background: #fff;
  font-size: 0.85rem;
  transition: 0.2s ease;
}

.routine-tab[aria-selected="true"],
.routine-tab:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

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

.care-asymmetric {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .care-asymmetric {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

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

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

.care-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  background: #fff;
}

.checklist {
  display: grid;
  gap: 0.75rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  min-height: 56px;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(47, 42, 38, 0.12);
  background: #fff;
  transition: 0.2s ease;
}

.check-item.is-done {
  background: rgba(143, 163, 138, 0.16);
  border-color: rgba(143, 163, 138, 0.45);
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(47, 42, 38, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-item.is-done .check-box {
  background: var(--sage);
  border-color: var(--sage);
  color: #fff;
}

.checklist-status {
  min-height: 1.5rem;
  color: var(--sage);
  font-size: 0.9rem;
}

.page-banner {
  position: relative;
  width: 100%;
  height: clamp(360px, 58vh, 620px);
  overflow: hidden;
  background: var(--beige);
}

.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(120deg, rgba(47, 42, 38, 0.58), rgba(47, 42, 38, 0.22));
}

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

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

.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(47, 42, 38, 0.52);
}

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

.form-field {
  width: 100%;
  border: 1px solid rgba(47, 42, 38, 0.16);
  background: #fff;
  padding: 0.9rem 1rem;
  font: inherit;
  border-radius: 0.85rem;
}

.form-field:focus {
  outline: 2px solid rgba(143, 163, 138, 0.55);
  outline-offset: 1px;
}

.filter-chip {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(47, 42, 38, 0.14);
  background: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.filter-chip.is-active {
  background: var(--charcoal);
  color: var(--cream);
  border-color: var(--charcoal);
}

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

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

.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;
}

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

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

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

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

.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(--sage) !important;
}

.organic-blob {
  position: absolute;
  border-radius: var(--radius-organic);
  background: rgba(143, 163, 138, 0.14);
  pointer-events: none;
  max-width: 40vw;
}

.bg-charcoal .section-label {
  color: rgba(246, 241, 234, 0.55);
}

.bg-charcoal a:not(.btn-light):not(.btn-secondary):not(.btn-primary) {
  color: rgba(246, 241, 234, 0.88);
}

.bg-charcoal .text-muted,
.bg-charcoal .text-bark,
.bg-charcoal .text-cream\/55 {
  color: rgba(246, 241, 234, 0.62);
}

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

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

  .hero-overlay {
    background: linear-gradient(180deg, rgba(47, 42, 38, 0.22) 0%, rgba(47, 42, 38, 0.68) 100%);
  }

  .hero-content {
    padding-bottom: 4.5rem;
  }

  main > section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pet-split,
  .care-asymmetric,
  .routine-tabs + .grid,
  .checklist {
    grid-template-columns: 1fr;
  }

  .organic-blob {
    right: -20% !important;
    width: min(12rem, 45vw) !important;
    height: min(12rem, 45vw) !important;
  }
}

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

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

  .hero-slide > img,
  .media-zoom > 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;
}
