/* ==========================================================
   CELLACTIVE LAB — Ultra Luxury Editorial
   Font: Cormorant Garamond (display) + Noto Serif JP (body)
   Palette: Near-black / Warm ivory / Gold (#C4A35A)
   Approach: Editorial asymmetry, generous whitespace, thin rules
========================================================== */

/* ── Variables ── */
:root {
  --black:       #0b0a08;
  --black-2:     #111009;
  --black-3:     #18160e;
  --charcoal:    #221e16;
  --ivory:       #f7f2ea;
  --ivory-2:     #ede6d7;
  --ivory-3:     #e0d5c1;
  --gold:        #c4a35a;
  --gold-2:      #d4b77a;
  --gold-3:      rgba(196,163,90,0.18);
  --gold-line:   rgba(196,163,90,0.35);
  --text-on-dark: rgba(247,242,234,0.88);
  --text-muted:   rgba(247,242,234,0.52);
  --text-on-ivory: #231e13;
  --muted-ivory:  rgba(35,30,19,0.58);
  --radius:      4px;
  --transition:  0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--text-on-dark);
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ── Typography helpers ── */
.section-tag {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-tag.light { color: var(--gold-2); }

.thin-rule {
  width: 48px;
  height: 1px;
  background: var(--gold-line);
  margin: 24px 0 32px;
}
.thin-rule.light {
  background: rgba(196,163,90,0.5);
}

.gold-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--gold);
}

/* ── Layout helpers ── */
.section { position: relative; }


/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 22px 48px;
  background: linear-gradient(to bottom, rgba(11,10,8,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-right: auto;
}

.nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--text-on-dark); }


/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(11,10,8,0.45) 0%, rgba(11,10,8,0.72) 60%, rgba(11,10,8,0.92) 100%),
    url("img/top.jpg") center 30% / cover no-repeat;
}

/* Subtle noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("img/bg.png");
  background-size: 200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 0 min(12vw, 140px);
  padding-top: 100px;
  max-width: 900px;
}

.hero-overline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.74rem;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-h1-line {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.05;
  color: var(--ivory);
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 1.1s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
.hero-h1-line--1 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); animation-delay: 0.1s; }
.hero-h1-line--2 { font-size: clamp(3.4rem, 7vw, 6.8rem); animation-delay: 0.3s; }
.hero-h1-line--2 em { color: var(--gold-2); font-style: italic; }
.hero-h1-line--3 { font-size: clamp(2.6rem, 5.5vw, 5.2rem); animation-delay: 0.5s; }

.hero-divider {
  width: 56px;
  height: 1px;
  background: var(--gold-line);
  margin: 38px 0 28px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 0.8s;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 2.0;
  color: rgba(247,242,234,0.7);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1s;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  padding: 13px 32px;
  border: 1px solid var(--gold-line);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--gold-2);
  transition: all var(--transition);
  opacity: 0;
  animation: fadeIn 0.8s ease forwards 1.15s;
}
.hero-cta:hover {
  background: rgba(196,163,90,0.1);
  border-color: rgba(196,163,90,0.6);
  gap: 20px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  left: min(12vw, 140px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.4s;
}
.hero-scroll-hint span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--gold-line), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite 2s;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}


/* ══════════════════════════════════════
   MISSION
══════════════════════════════════════ */
.mission-section {
  background: var(--black-2);
  padding: 130px 0;
}

.section-container {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 60px;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
}

.section-label-col {
  display: flex;
  justify-content: flex-end;
  padding-top: 6px;
}

.vertical-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.68rem;
  letter-spacing: 0.44em;
  color: var(--gold);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.mission-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--gold-2);
  margin-bottom: 28px;
  line-height: 1.6;
}

.mission-body p {
  font-size: 0.96rem;
  line-height: 2.1;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.mission-body p:last-child { margin-bottom: 0; }

.mission-image-wrap {
  width: min(1200px, calc(100% - 80px));
  margin: 64px auto 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 28px;
  padding-right: 0;
}

.mission-image {
  width: 58%;
  height: 460px;
  background:
    linear-gradient(180deg, rgba(11,10,8,0.05) 0%, rgba(11,10,8,0.3) 100%),
    url("img/top.jpg") center 40% / cover no-repeat;
  border: 1px solid rgba(196,163,90,0.14);
}

.mission-image-caption {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}


/* ══════════════════════════════════════
   CONCEPT
══════════════════════════════════════ */
.concept-section {
  background: var(--ivory);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}

.concept-image-block {
  position: relative;
  overflow: hidden;
}

.concept-img-1 {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(35,30,19,0.12) 0%, rgba(35,30,19,0.05) 100%),
    url("img/road.jpg") center center / cover no-repeat;
  transition: transform 0.8s ease;
}
.concept-image-block:hover .concept-img-1 {
  transform: scale(1.03);
}

.concept-text-block {
  padding: min(10vw, 100px) min(7vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.concept-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-on-ivory);
  letter-spacing: 0.04em;
}

.section-tag { }
.concept-text-block .section-tag { color: #9c7b45; }
.concept-text-block .thin-rule { background: rgba(156,123,69,0.4); }

.concept-body {
  font-size: 0.92rem;
  line-height: 2.15;
  color: var(--muted-ivory);
  margin-bottom: 20px;
}
.concept-body:last-child { margin-bottom: 0; }


/* ══════════════════════════════════════
   THEORY
══════════════════════════════════════ */
.theory-section {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196,163,90,0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--black-3) 0%, var(--black) 100%);
  padding: 0;
}

.theory-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 660px;
}

.theory-text {
  padding: min(10vw, 110px) min(7vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.theory-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 0;
}

.theory-body {
  font-size: 0.93rem;
  line-height: 2.1;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.theory-body:last-child { margin-bottom: 0; }

.theory-image-block {
  position: relative;
  overflow: hidden;
}

.theory-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,10,8,0.4) 0%, rgba(11,10,8,0.05) 40%),
    url("img/fase.png") center center / cover no-repeat;
}


/* ══════════════════════════════════════
   FOR YOU
══════════════════════════════════════ */
.foryou-section {
  background: var(--black-2);
  padding: 120px 0;
}

.foryou-header {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto 56px;
}

.foryou-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ivory);
  margin-top: 10px;
}

.foryou-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  border: 1px solid rgba(196,163,90,0.12);
}

.foryou-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(196,163,90,0.12);
  overflow: hidden;
  transition: background var(--transition);
}
.foryou-item:last-child { border-right: none; }
.foryou-item:hover { background: rgba(196,163,90,0.04); }

.foryou-img {
  height: 280px;
  transition: transform 0.7s ease;
}
.foryou-item:hover .foryou-img { transform: scale(1.04); }

.foryou-img-1 {
  background: url("img/yoga.jpg") center center / cover no-repeat;
  filter: brightness(0.88) saturate(0.85);
}
.foryou-img-2 {
  background: url("img/sunset.jpg") center center / cover no-repeat;
  filter: brightness(0.82) saturate(0.8);
}
.foryou-img-3 {
  background: url("img/smile.jpg") center center / cover no-repeat;
  filter: brightness(0.88) saturate(0.75);
}
.foryou-img-4 {
  background: url("img/heart.jpg") center center / cover no-repeat;
  filter: brightness(0.82) saturate(0.8);
}

.foryou-text {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.foryou-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.foryou-text p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-on-dark);
}


/* ══════════════════════════════════════
   SERVICE
══════════════════════════════════════ */
.service-section {
  background:
    linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  padding: 120px 0;
}

.service-header {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto 64px;
}

.service-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--ivory);
  margin: 10px 0;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(196,163,90,0.12);
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  border: 1px solid rgba(196,163,90,0.12);
}

.scard {
  background: var(--black-2);
  overflow: hidden;
  transition: background var(--transition);
}
.scard:hover { background: var(--black-3); }

.scard-img {
  height: 260px;
  transition: transform 0.7s ease;
  overflow: hidden;
}
.scard:hover .scard-img { transform: scale(1.04); }

.scard-img-1 {
  background:
    linear-gradient(rgba(11,10,8,0.08), rgba(11,10,8,0.22)),
    url("img/hand.png") center center / cover no-repeat;
}
.scard-img-2 {
  background:
    linear-gradient(rgba(11,10,8,0.08), rgba(11,10,8,0.22)),
    url("img/life.png") center center / cover no-repeat;
}
.scard-img-3 {
  background:
    linear-gradient(rgba(11,10,8,0.08), rgba(11,10,8,0.22)),
    url("img/pc.jpg") center center / cover no-repeat;
}

.scard-body {
  padding: 36px 32px 40px;
}

.scard-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  color: var(--gold);
  margin-bottom: 14px;
}

.scard-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ivory);
  margin-bottom: 16px;
}

.scard-body p {
  font-size: 0.88rem;
  line-height: 2.0;
  color: var(--text-muted);
}

.scard-body small {
  font-size: 0.76rem;
  opacity: 0.7;
}


/* ══════════════════════════════════════
   FINALE
══════════════════════════════════════ */
.finale-section {
  position: relative;
  overflow: hidden;
}

.finale-inner {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finale-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(196,163,90,0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--black) 0%, #0d0b07 50%, var(--black) 100%),
    url("img/top.jpg") center center / cover no-repeat;
  filter: brightness(0.12) saturate(0.6);
}

.finale-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 40px;
  max-width: 780px;
}

.finale-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ivory);
  margin-bottom: 0;
}
.finale-heading em {
  font-style: italic;
  color: var(--gold-2);
}

.finale-content .thin-rule {
  margin: 28px auto 32px;
}

.finale-body {
  font-size: 0.96rem;
  line-height: 2.2;
  color: var(--text-muted);
}


/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: #080706;
  border-top: 1px solid rgba(196,163,90,0.1);
  padding: 40px 0;
}

.footer-inner {
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  color: var(--gold);
  line-height: 1.8;
}

.footer-copy {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}


/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1080px) {
  .foryou-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .foryou-item:nth-child(2) { border-right: none; }
  .foryou-item:nth-child(3) { border-top: 1px solid rgba(196,163,90,0.12); }
  .foryou-item:nth-child(4) { border-top: 1px solid rgba(196,163,90,0.12); }
}

@media (max-width: 860px) {
  .concept-section,
  .theory-inner {
    grid-template-columns: 1fr;
  }

  .concept-image-block { min-height: 360px; }
  .concept-img-1 { position: relative; min-height: 360px; height: auto; }

  .theory-image-block { min-height: 360px; order: -1; }
  .theory-img { position: absolute; }

  .service-cards {
    grid-template-columns: 1fr;
  }

  .section-container {
    grid-template-columns: 1fr;
  }
  .section-label-col {
    justify-content: flex-start;
    margin-bottom: -8px;
  }
  .vertical-label {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 0.68rem;
  }

  .hero-content {
    padding-left: 32px;
    padding-right: 32px;
  }
  .hero-scroll-hint { left: 32px; }

  .mission-image-wrap {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  .mission-image { width: 100%; height: 300px; }
}

@media (max-width: 600px) {
  .site-nav {
    padding: 18px 24px;
    gap: 22px;
  }
  .nav-link { display: none; }

  .hero-content {
    padding: 80px 24px 0;
  }

  .foryou-grid {
    grid-template-columns: 1fr;
  }
  .foryou-item { border-right: none; border-bottom: 1px solid rgba(196,163,90,0.12); }
  .foryou-item:nth-child(3),
  .foryou-item:nth-child(4) { border-top: none; }
}
