/* ============================================
   POWER OF DREAM - 城之内信吾 公式サイト
   Modern, editorial, cinematic
   ============================================ */

/* ============ CSS VARIABLES ============ */
:root {
  --bg-primary:      #fafaf7;
  --bg-secondary:    #ffffff;
  --bg-warm:         #f5f1ea;
  --bg-dark:         #1a1a1a;

  --text-primary:    #1a1a1a;
  --text-secondary:  #4a4a4a;
  --text-tertiary:   #8a8a8a;
  --text-on-dark:    #f5f1ea;

  --accent-gold:     #b8860b;
  --accent-amber:    #d4a017;
  --accent-amber-glow: rgba(212, 160, 23, 0.55);
  --accent-red:      #e60012;
  --accent-line:     #1a1a1a;

  --border-soft:     #e5e2dc;
  --border-form:     #d4d0c8;

  --font-display:    'Cinzel', 'Shippori Mincho', serif;
  --font-jp-display: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-jp-body:    'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-jp-deco:    'Reggae One', 'Noto Sans JP', cursive;

  --container:       min(1200px, 92vw);
  --container-wide:  min(1400px, 94vw);
  --section-py:      clamp(5rem, 10vw, 9rem);

  --shadow-soft:     0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-mid:      0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-strong:   0 24px 64px rgba(0, 0, 0, 0.20);

  --ease-out:        cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-jp-body);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

ul { list-style: none; }


/* ============ NAVIGATION ============ */
#mainnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: transparent;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

#mainnav.scrolled {
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.nav-container {
  width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: #fff;
  transition: color 0.4s var(--ease-out);
}
#mainnav.scrolled .nav-brand { color: var(--text-primary); }

.brand-en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.18em;
}
.brand-jp {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 0.2rem;
  opacity: 0.85;
}

.nav-list {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
}
.nav-list a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  padding: 0.5rem 0;
  transition: color 0.3s var(--ease-out);
}
#mainnav.scrolled .nav-list a {
  color: var(--text-primary);
  text-shadow: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out), left 0.4s var(--ease-out);
}
.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
  left: 0;
}

#menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  position: relative;
  z-index: 110;
}
#menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform 0.4s var(--ease-out), opacity 0.3s, background 0.4s;
}
#mainnav.scrolled #menu-toggle span { background: var(--text-primary); }
#menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.open span:nth-child(2) { opacity: 0; }
#menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================
   HERO (preserved from yesterday + small additions)
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background: url('../images/mainImg.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.30) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.20) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: absolute;
  z-index: 2;
  color: #ffffff;
  font-family: var(--font-jp-body);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0.04em;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow:
    -3px -3px 0 #000, 3px -3px 0 #000,
    -3px  3px 0 #000, 3px  3px 0 #000,
    -3px  0   0 #000, 3px  0   0 #000,
     0   -3px 0 #000, 0    3px 0 #000,
     0 0 18px rgba(0, 0, 0, 0.55);
  opacity: 0;
  will-change: opacity, transform, filter;
}

.text-1 {
  top: 14%;
  right: 5%;
  text-align: right;
  font-size: clamp(1.3rem, 2.9vw, 2.6rem);
  animation: text1Cycle 19.5s ease-in-out infinite;
}
.text-2 {
  bottom: 13%;
  left: 5%;
  text-align: left;
  font-size: clamp(1.4rem, 3.1vw, 2.8rem);
  color: #ffe9e9;
  text-shadow:
    -3px -3px 0 #000, 3px -3px 0 #000,
    -3px  3px 0 #000, 3px  3px 0 #000,
    -3px  0   0 #000, 3px  0   0 #000,
     0   -3px 0 #000, 0    3px 0 #000,
     0 0 22px rgba(220, 0, 0, 0.75);
  animation: text2Cycle 19.5s ease-in-out infinite;
}
.text-3 {
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.7rem);
  animation: text3Cycle 19.5s ease-in-out infinite;
}
.text-4 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  animation: text4Cycle 19.5s var(--ease-out) infinite;
  text-shadow: none;
  -webkit-text-stroke: 0;
}
.text-4 .prefix {
  display: block;
  font-size: clamp(1.4rem, 3.0vw, 2.6rem);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 0.5em;
  -webkit-text-stroke: 1px #000;
  paint-order: stroke fill;
  text-shadow:
    -3px -3px 0 #000, 3px -3px 0 #000,
    -3px  3px 0 #000, 3px  3px 0 #000,
    -3px  0   0 #000, 3px  0   0 #000,
     0   -3px 0 #000, 0    3px 0 #000,
     0 4px 16px rgba(0,0,0,0.5);
}
.text-4 .title {
  display: inline-block;
  font-family: var(--font-jp-deco);
  color: var(--accent-red);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.8vw, 5.4rem);
  letter-spacing: -0.01em;
  line-height: 1;
  animation: titleWiggle 3.5s ease-in-out infinite;
  transform-origin: center;
}
.text-4 .title .ch {
  display: inline-block;
  text-shadow:
    -3px -3px 0 #fff,  3px -3px 0 #fff,
    -3px  3px 0 #fff,  3px  3px 0 #fff,
    -3px  0   0 #fff,  3px  0   0 #fff,
     0   -3px 0 #fff,  0    3px 0 #fff,
    -6px -6px 0 #000,  6px -6px 0 #000,
    -6px  6px 0 #000,  6px  6px 0 #000,
    -6px  0   0 #000,  6px  0   0 #000,
     0   -6px 0 #000,  0    6px 0 #000,
    -6px -3px 0 #000,  6px  3px 0 #000,
    -3px -6px 0 #000,  3px  6px 0 #000,
     0 10px 24px rgba(0, 0, 0, 0.55);
}
.text-4 .title .ch:nth-child(1) { transform: rotate(-5deg) translateY(2px); }
.text-4 .title .ch:nth-child(2) { transform: rotate(3deg)  translateY(-4px); }
.text-4 .title .ch:nth-child(3) { transform: rotate(-3deg) translateY(3px); }
.text-4 .title .ch:nth-child(4) {
  transform: rotate(10deg) translateY(-6px);
  font-size: 0.7em;
  margin: 0 -0.02em;
}
.text-4 .title .ch:nth-child(5) { transform: rotate(-4deg) translateY(-2px); }
.text-4 .title .ch:nth-child(6) { transform: rotate(5deg)  translateY(3px); }
.text-4 .title .ch:nth-child(7) { transform: rotate(-2deg) translateY(-1px); }

@keyframes titleWiggle {
  0%, 100% { transform: rotate(-1deg) scale(1); }
  50%      { transform: rotate(1deg)  scale(1.015); }
}

@keyframes text1Cycle {
  0%, 3.08%   { opacity: 0; filter: blur(14px); transform: translateY(8px); }
  14.36%      { opacity: 1; filter: blur(0);    transform: translateY(0); }
  90.26%      { opacity: 1; filter: blur(0);    transform: translateY(0); }
  94.87%, 100% { opacity: 0; filter: blur(8px); transform: translateY(8px); }
}
@keyframes text2Cycle {
  0%, 17.44%   { opacity: 0; filter: blur(2px) brightness(2.5); }
  18.46%       { opacity: 1; filter: blur(0)   brightness(2.5); }
  19.49%       { opacity: 0; filter: blur(0)   brightness(2.5); }
  21.54%       { opacity: 1; filter: blur(0)   brightness(2.5); }
  22.56%       { opacity: 0; filter: blur(6px) brightness(2); }
  29.74%       { opacity: 1; filter: blur(0)   brightness(1); }
  90.26%       { opacity: 1; filter: blur(0)   brightness(1); }
  94.87%, 100% { opacity: 0; filter: blur(8px) brightness(1); }
}
@keyframes text3Cycle {
  0%, 31.79%   { opacity: 0; filter: blur(14px); transform: translate(-50%, -48%); }
  43.08%       { opacity: 1; filter: blur(0);    transform: translate(-50%, -50%); }
  58.46%       { opacity: 1; filter: blur(0);    transform: translate(-50%, -50%); }
  62.56%, 100% { opacity: 0; filter: blur(8px);  transform: translate(-50%, -54%); }
}
@keyframes text4Cycle {
  0%, 61.54%   { opacity: 0; filter: blur(20px); transform: translate(-50%, -50%) scale(0.82); }
  74.87%       { opacity: 1; filter: blur(0);    transform: translate(-50%, -50%) scale(1); }
  90.26%       { opacity: 1; filter: blur(0);    transform: translate(-50%, -50%) scale(1); }
  94.87%, 100% { opacity: 0; filter: blur(10px); transform: translate(-50%, -50%) scale(0.92); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.scroll-hint-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 60%, rgba(255,255,255,0) 100%);
  background-size: 100% 200%;
  animation: scrollLine 2.4s ease-in-out infinite;
}
.scroll-hint-label {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
@keyframes scrollLine {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0 100%; }
}


/* ============================================
   POWER OF DREAM SECTION (signature animation)
   ============================================ */
.power-of-dream {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
  overflow: hidden;
  text-align: center;
}

.pod-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center,
    rgba(212, 160, 23, 0.10) 0%,
    rgba(212, 160, 23, 0.03) 30%,
    rgba(212, 160, 23, 0) 65%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease-out;
}
.power-of-dream.pod-active .pod-glow {
  opacity: 1;
  animation: glowBreath 4s ease-in-out 2s infinite;
}
@keyframes glowBreath {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

.pod-container {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}

.pod-eyebrow {
  font-family: var(--font-jp-display);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.45em;
  color: var(--accent-gold);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pod-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 8rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: var(--text-primary);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(0.5rem, 2vw, 1.8rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.pod-word {
  display: inline-flex;
  position: relative;
}
.pod-word.pod-of {
  font-size: 0.55em;
  font-weight: 500;
  font-style: italic;
  color: var(--accent-gold);
  align-self: center;
  transform: translateY(-0.1em);
}

.pod-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) scale(0.94);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-spring),
    filter 0.9s var(--ease-out);
}

/* When .pod-active, reveal each letter with stagger */
.power-of-dream.pod-active .pod-word span {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* Stagger via inline custom property in JS (--i), fallback per element */
.power-of-dream.pod-active .pod-word:nth-child(1) span:nth-child(1) { transition-delay: 0.10s; }
.power-of-dream.pod-active .pod-word:nth-child(1) span:nth-child(2) { transition-delay: 0.18s; }
.power-of-dream.pod-active .pod-word:nth-child(1) span:nth-child(3) { transition-delay: 0.26s; }
.power-of-dream.pod-active .pod-word:nth-child(1) span:nth-child(4) { transition-delay: 0.34s; }
.power-of-dream.pod-active .pod-word:nth-child(1) span:nth-child(5) { transition-delay: 0.42s; }
.power-of-dream.pod-active .pod-word:nth-child(2) span:nth-child(1) { transition-delay: 0.62s; }
.power-of-dream.pod-active .pod-word:nth-child(2) span:nth-child(2) { transition-delay: 0.70s; }
.power-of-dream.pod-active .pod-word:nth-child(3) span:nth-child(1) { transition-delay: 0.92s; }
.power-of-dream.pod-active .pod-word:nth-child(3) span:nth-child(2) { transition-delay: 1.00s; }
.power-of-dream.pod-active .pod-word:nth-child(3) span:nth-child(3) { transition-delay: 1.08s; }
.power-of-dream.pod-active .pod-word:nth-child(3) span:nth-child(4) { transition-delay: 1.16s; }
.power-of-dream.pod-active .pod-word:nth-child(3) span:nth-child(5) { transition-delay: 1.24s; }

/* Heartbeat pulse on the title — starts after full reveal */
.power-of-dream.pod-active .pod-title {
  animation: heartbeat 2.6s ease-in-out 2.2s infinite;
}
@keyframes heartbeat {
  0%, 100% {
    text-shadow:
      0 0 0 rgba(212, 160, 23, 0),
      0 0 28px rgba(212, 160, 23, 0);
  }
  18% {
    text-shadow:
      0 0 12px rgba(212, 160, 23, 0.4),
      0 0 48px rgba(212, 160, 23, 0.25);
  }
  36% {
    text-shadow:
      0 0 0 rgba(212, 160, 23, 0),
      0 0 28px rgba(212, 160, 23, 0);
  }
  54% {
    text-shadow:
      0 0 16px rgba(212, 160, 23, 0.5),
      0 0 60px rgba(212, 160, 23, 0.35);
  }
}

/* Decorative divider */
.pod-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  max-width: 480px;
  opacity: 0;
  transition: opacity 1s var(--ease-out) 1.6s;
}
.power-of-dream.pod-active .pod-divider { opacity: 1; }

.pod-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}
.pod-divider-mark {
  width: 8px;
  height: 8px;
  background: var(--accent-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Tagline */
.pod-tagline {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 1.7vw, 1.25rem);
  line-height: 2.1;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

/* data-reveal default state (for non-pod) */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   STORY SECTIONS (alternating layout)
   ============================================ */
.story-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--bg-primary);
}

.story-row {
  width: var(--container-wide);
  margin: 0 auto clamp(4rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.story-row:last-child { margin-bottom: 0; }
.story-row.reverse {
  grid-template-columns: 1fr 1.15fr;
}
.story-row.reverse .story-image { order: 2; }
.story-row.reverse .story-content { order: 1; }

.story-image {
  position: relative;
  overflow: hidden;
}
.story-image img {
  width: 100%;
  height: auto;
  transition: transform 1.5s var(--ease-out);
}
.story-row.is-visible .story-image img {
  animation: kenBurns 18s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -1%); }
}

.story-content {
  padding: 1rem 0;
}

.story-chapter {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--accent-gold);
  margin-bottom: 1.2rem;
}

.story-title {
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
  position: relative;
  padding-bottom: 1.4rem;
}
.story-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-line);
  transition: width 1s var(--ease-out) 0.6s;
}
.story-row.is-visible .story-title::after {
  width: 120px;
}

.story-text {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}
.story-text + .story-text {
  margin-top: 1.1em;
}

/* ---- Read-more (続きを読む) ---- */
.story-more {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.5s ease, margin-top 0.5s ease;
}
.story-more.is-open {
  opacity: 1;
  margin-top: 1.1em;
}
.story-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin-top: 1.6em;
  padding: 0.55em 0.2em;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Cinzel', 'Shippori Mincho', serif;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  transition: color 0.3s ease;
}
.story-toggle:hover {
  color: var(--accent-amber);
}
.story-toggle-icon {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.12em);
  transition: transform 0.35s ease;
}
.story-toggle[aria-expanded="true"] .story-toggle-icon {
  transform: rotate(-135deg) translateY(-0.12em);
}


/* ============================================
   SECTION HEADER (shared)
   ============================================ */
.section-header {
  width: var(--container);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}
.section-lead {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}


/* ============================================
   FAMILY SECTION (3 circles)
   ============================================ */
.family-section {
  padding: var(--section-py) 0;
  background: var(--bg-warm);
}

.family-grid {
  width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.family-card {
  text-align: center;
}
.family-title {
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  letter-spacing: 0.5em;
  color: var(--text-primary);
  margin-bottom: 1.8rem;
}
.family-image {
  position: relative;
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  margin: 0 auto 1.8rem;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.family-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.family-card:hover .family-image {
  transform: translateY(-8px);
  box-shadow: var(--shadow-mid);
}
.family-card:hover .family-image img {
  transform: scale(1.06);
}
.family-text {
  text-align: left;
  font-size: 0.92rem;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 auto;
}


/* ============================================
   BOOKS SECTION
   ============================================ */
.books-section {
  position: relative;
  padding: var(--section-py) 0;
  background-color: #5a4a3a;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-on-dark);
  overflow: hidden;
}
.books-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(58, 47, 38, 0.92) 0%,
    rgba(58, 47, 38, 0.78) 38%,
    rgba(58, 47, 38, 0.30) 60%,
    rgba(58, 47, 38, 0) 100%);
  pointer-events: none;
}

.books-container {
  position: relative;
  z-index: 2;
  width: var(--container-wide);
  margin: 0 auto;
}

.books-content {
  max-width: 580px;
}

.books-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--accent-amber);
  margin-bottom: 1rem;
}
.books-title {
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.books-subtitle {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  color: rgba(245, 241, 234, 0.75);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(245, 241, 234, 0.18);
}
.books-description {
  font-size: 0.95rem;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 234, 0.85);
  margin-bottom: 2.5rem;
}

.books-cta-wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.books-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: var(--accent-amber);
  color: #1a1a1a;
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.books-cta:hover {
  background: #e6b332;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 160, 23, 0.4);
}
.books-cta-secondary {
  font-family: var(--font-jp-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 234, 0.8);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.books-cta-secondary:hover {
  color: var(--accent-amber);
  border-bottom-color: var(--accent-amber);
  transform: translateX(4px);
}


/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: var(--section-py) 0;
  background: var(--bg-primary);
}

.contact-form {
  width: min(820px, 92vw);
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-full {
  margin-bottom: 0.8rem;
}

.form-group label {
  font-family: var(--font-jp-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.required, .optional {
  display: inline-block;
  font-family: var(--font-jp-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.15em 0.5em;
  border-radius: 2px;
}
.required { background: var(--accent-red); color: #fff; }
.optional { background: #c8c4bd; color: #fff; }

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-form);
  border-radius: 2px;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
}
.form-group textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.18);
}

.form-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin: 1.5rem 0 2rem;
  letter-spacing: 0.05em;
}

.form-submit-wrap {
  text-align: center;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 3.5rem;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-jp-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2em;
  border-radius: 2px;
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.form-submit::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s var(--ease-out);
}
.form-submit:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-mid);
}
.form-submit:hover::before { left: 100%; }
.form-submit-arrow {
  transition: transform 0.4s var(--ease-out);
}
.form-submit:hover .form-submit-arrow {
  transform: translateX(6px);
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 3.5rem 0 2.5rem;
}
.footer-inner {
  width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.footer-brand-en {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 1.1rem;
  color: var(--accent-amber);
}
.footer-brand-jp {
  font-family: var(--font-jp-display);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.footer-copy {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}


/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 52px;
  height: 52px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s, visibility 0.4s, transform 0.4s, background 0.4s;
  box-shadow: var(--shadow-mid);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent-gold);
}
#back-to-top span {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  margin-top: 4px;
}
#back-to-top svg {
  width: 14px;
  height: 14px;
  margin-top: -4px;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .nav-list {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
  }
  .nav-list.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-list a {
    color: #fff !important;
    font-size: 1.1rem;
    text-shadow: none;
  }
  #menu-toggle { display: block; }

  .story-row,
  .story-row.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .story-row.reverse .story-image { order: 0; }
  .story-row.reverse .story-content { order: 1; }

  .family-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 3.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .books-section {
    background-attachment: scroll;
  }
  .books-overlay {
    background: rgba(58, 47, 38, 0.85);
  }
}

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .text-1   { top: 8%;   right: 4%; font-size: 1.05rem; }
  .text-2   { bottom: 8%; left: 4%;  font-size: 1.1rem; }
  .text-3   { font-size: 1.1rem; }
  .text-4 .prefix { font-size: 0.95rem; }
  .text-4 .title  { font-size: 2.0rem; }
  .text-4 .title .ch {
    text-shadow:
      -2px -2px 0 #fff,  2px -2px 0 #fff,
      -2px  2px 0 #fff,  2px  2px 0 #fff,
      -2px  0   0 #fff,  2px  0   0 #fff,
       0   -2px 0 #fff,  0    2px 0 #fff,
      -4px -4px 0 #000,  4px -4px 0 #000,
      -4px  4px 0 #000,  4px  4px 0 #000,
      -4px  0   0 #000,  4px  0   0 #000,
       0   -4px 0 #000,  0    4px 0 #000,
       0 6px 16px rgba(0,0,0,0.5);
  }
  .hero-text {
    text-shadow:
      -2px -2px 0 #000, 2px -2px 0 #000,
      -2px  2px 0 #000, 2px  2px 0 #000,
      -2px  0   0 #000, 2px  0   0 #000,
       0   -2px 0 #000, 0    2px 0 #000;
  }
  .scroll-hint { display: none; }

  .pod-title { font-size: 2.4rem; gap: 0.4rem; }
  .pod-word.pod-of { font-size: 0.6em; }

  #back-to-top {
    width: 44px; height: 44px;
    right: 1rem; bottom: 1rem;
  }
  #back-to-top span { display: none; }
  #back-to-top svg { margin-top: 0; width: 16px; height: 16px; }
}


/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-text { opacity: 1; filter: none; }
  .text-3, .text-4 { transform: translate(-50%, -50%); }
  [data-reveal] { opacity: 1; transform: none; }
  .pod-word span { opacity: 1; transform: none; filter: none; }
}
