/* ==========================================================================
   BB INU STUDIO — Design tokens, reset, shared layout utilities
   ========================================================================== */
:root {
  /* Colors */
  --color-bg: #fbf9f5;
  --color-bg-alt: #f3eee5;
  --color-text: #3a2e27;
  --color-text-muted: #6e6259;
  --color-accent: #fcd4ce;
  --color-accent-dark: #b64635;
  --color-border: #e6dfd3;
  --color-card-bg: #ffffff;
  --color-overlay: rgba(43, 32, 24, 0.42);
  --color-pink: #fcd4ce;
  --color-pink-dark: #f7aca1;

  /* Type */
  --font-display:
    "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype",
    "URW Palladio L", serif;
  --font-body:
    "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype",
    "URW Palladio L", serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.3s;
  --dur-med: 0.6s;
  --dur-slow: 0.9s;

  --container-w: 1180px;
  --header-h: 88px;
}

html[lang="ja"] {
  --font-display: "Noto Serif JP", "Fraunces", Georgia, serif;
  --font-body: "Noto Serif JP", "Fraunces", Georgia, serif;
}

html[lang="ja"] .hero h1,
html[lang="ja"] .hero-sub,
html[lang="ja"] .panel-text p,
html[lang="ja"] .footer-brand p {
  max-width: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section {
  padding: var(--space-6) 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-2));
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.section-head {
  max-width: 620px;
  margin: 0 auto var(--space-5);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  :root {
    --space-5: 3rem;
    --space-6: 4rem;
  }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slow) var(--ease),
    transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
