/* ========================================
   EVER UNION — LP Stylesheet
   ======================================== */

:root {
  /* Colors */
  --color-bg: #F5F0E8;
  --color-bg-dark: #2C2420;
  --color-bg-mid: #E8E2D8;
  --color-text: #2C2420;
  --color-text-light: #F5F0E8;
  --color-text-muted: #8A7E72;
  --color-accent: #C4A882;
  --color-border: rgba(44, 36, 32, 0.1);

  /* Typography */
  --font-heading: 'Cormorant', 'Cormorant Garamond', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-py: 96px;
  --section-py-mobile: 64px;
  --container-max: 1200px;
  --container-px: 24px;
}

/* ----------------------------------------
   Base
   ---------------------------------------- */

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.04em;
  line-height: 1.9;
}

::selection {
  background: rgba(196, 168, 130, 0.25);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  box-sizing: border-box;
}

/* ----------------------------------------
   Typography
   ---------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.1em;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.35;
}

h2 {
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  line-height: 1.5;
}

h3 {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.4;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* ----------------------------------------
   Sections
   ---------------------------------------- */

.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark .section-label {
  color: var(--color-accent);
}

.section--mid {
  background: var(--color-bg-mid);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-py-mobile) 0;
  }
}

/* ----------------------------------------
   Hero
   ---------------------------------------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg picture,
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0.45);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 var(--container-px);
}

.hero__logo {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 7vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  letter-spacing: 0.22em;
  opacity: 0.75;
  margin-bottom: 36px;
}

.hero__cta {
  display: inline-block;
  padding: 12px 40px;
  border: 1px solid rgba(245, 240, 232, 0.5);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 300ms ease-out, color 300ms ease-out;
}

.hero__cta:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

.hero__lottie-top {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

/* ----------------------------------------
   Brand Story
   ---------------------------------------- */

.brand-story {
  max-width: 680px;
  margin: 0 auto;
}

.brand-story h2 {
  margin-bottom: 32px;
}

.brand-story p {
  margin-bottom: 20px;
  line-height: 2.1;
  font-size: 0.88rem;
}

.brand-story__lottie {
  max-width: 300px;
  margin: 48px auto 0;
}

/* ----------------------------------------
   Materials
   ---------------------------------------- */

.materials {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.materials__image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.materials__text h2 {
  margin-bottom: 24px;
}

.materials__text p {
  margin-bottom: 16px;
}

.materials__features {
  margin-top: 32px;
}

.materials__features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

/* ----------------------------------------
   Collection
   ---------------------------------------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.collection-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

.collection-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  margin-bottom: 16px;
}

.collection-item h3 {
  font-size: 0.88rem;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.collection-item .price {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

@media (max-width: 480px) {
  .collection-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----------------------------------------
   Voices
   ---------------------------------------- */

.voices-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 48px;
}

.voice-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}

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

.voice-card__quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.voice-card__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2.4rem;
  color: var(--color-accent);
  font-style: normal;
}

.voice-card__name {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}


/* ----------------------------------------
   Events
   ---------------------------------------- */

.events-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 48px;
}

.events-content img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.event-card {
  padding: 32px;
  border: 1px solid var(--color-border);
}

.event-card__date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.event-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.event-card__location {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


/* ----------------------------------------
   CTA
   ---------------------------------------- */

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn {
  display: inline-block;
  padding: 16px 56px;
  background: var(--color-text-light);
  color: var(--color-bg-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-text-light);
  transition: background-color 300ms ease-out, color 300ms ease-out;
  position: relative;
  overflow: hidden;
}

.cta-btn:hover {
  background: transparent;
  color: var(--color-text-light);
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */

.footer {
  padding: 48px 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__links a {
  transition: color 200ms ease;
}

.footer__links a:hover {
  color: var(--color-text);
}

/* ----------------------------------------
   3-Column Layout (PC)
   ---------------------------------------- */

/* SP: サイドバー非表示、メインフルワイド */
.l-sidebar-left,
.l-sidebar-right {
  display: none;
}

.l-main-wrapper {
  width: 100%;
  min-width: 0;
}

/* PC: 3カラム — サイドバーは fixed、メインは中央マージン */
@media (min-width: 1024px) {
  .c-header,
  .c-drawer {
    display: none !important;
  }

  .l-sidebar-left {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc((100vw - 520px) * 0.58);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    z-index: 10;
  }

  .l-sidebar-right {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc((100vw - 520px) * 0.42);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
    color: var(--color-text-light);
    z-index: 10;
  }

  .l-main-wrapper {
    width: 520px;
    margin-left: calc((100vw - 520px) * 0.58);
    margin-right: calc((100vw - 520px) * 0.42);
  }

  .sidebar-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    letter-spacing: 0.2em;
    text-align: center;
    line-height: 1.4;
    margin-bottom: 32px;
  }

  .sidebar-cta {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 28px;
    border: 1px solid rgba(245, 240, 232, 0.4);
    transition: background-color 250ms ease-out, color 250ms ease-out;
  }

  .sidebar-cta:hover {
    background: var(--color-text-light);
    color: var(--color-bg-dark);
  }

  .sidebar-nav {
    text-align: left;
  }

  .sidebar-nav li {
    margin-bottom: 20px;
  }

  .sidebar-nav a {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    opacity: 0.7;
    transition: opacity 200ms ease;
  }

  .sidebar-nav a:hover {
    opacity: 1;
  }

  .c-header,
  .c-drawer {
    display: none !important;
  }

  .hero { height: 100vh; }
  .container { padding: 0 24px; }
}

/* ----------------------------------------
   SP Header + Hamburger
   ---------------------------------------- */

.c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  transition: background-color 300ms ease;
}

.c-header.is-scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.c-header__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--color-text-light);
  transition: color 300ms ease;
}

.c-header.is-scrolled .c-header__logo {
  color: var(--color-text);
}

.c-header__burger span {
  background: var(--color-text-light);
  transition: transform 250ms ease-out, opacity 150ms ease, background-color 300ms ease;
}

.c-header.is-scrolled .c-header__burger span {
  background: var(--color-text);
}

.c-header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.c-header__burger span {
  display: block;
  height: 2px;
  transform-origin: center;
}

.c-header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.c-header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.c-header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ----------------------------------------
   SP Drawer
   ---------------------------------------- */

.c-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  visibility: hidden;
}

.c-drawer[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}

.c-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 32, 0);
  transition: background-color 300ms ease-out;
}

.c-drawer[aria-hidden="false"] .c-drawer__overlay {
  background: rgba(44, 36, 32, 0.6);
}

.c-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: var(--color-bg);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.c-drawer[aria-hidden="false"] .c-drawer__panel {
  transform: translateX(0);
}

.c-drawer__nav li {
  margin-bottom: 24px;
}

.c-drawer__nav a {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.c-drawer__cta {
  margin-top: auto;
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ----------------------------------------
   Footer Legal Links
   ---------------------------------------- */

.footer__legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.footer__legal a {
  border-bottom: 1px solid var(--color-border);
  transition: color 200ms ease;
}

.footer__legal a:hover {
  color: var(--color-text);
}

.footer__copy {
  font-size: 0.75rem;
}

/* ----------------------------------------
   Animations
   ---------------------------------------- */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

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

.stagger-1 { transition-delay: 0ms; }
.stagger-2 { transition-delay: 150ms; }
.stagger-3 { transition-delay: 300ms; }

/* ----------------------------------------
   SVG Line Draw Animations
   ---------------------------------------- */

/* 共通: SVG 線描画 */
.anim-line line,
.anim-line path {
  stroke: rgba(245, 240, 232, 0.4);
  stroke-width: 0.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: lineDraw 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-delay-05 line,
.anim-delay-05 path { animation-delay: 0.5s; }

@keyframes lineDraw {
  to { stroke-dashoffset: 0; }
}

/* ヒーロー上部の線 */
.hero__line-top {
  width: 60px;
  margin: 0 auto 20px;
  display: block;
}

/* ヒーロー下部の線 */
.hero__line-bottom {
  width: 100px;
  margin: 12px auto 20px;
  display: block;
}

/* テキスト reveal */
.anim-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.6s; }
.anim-delay-2 { animation-delay: 1.0s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

/* スクロール誘導の矢印 */
.scroll-arrow {
  display: block;
}

.scroll-arrow path {
  stroke: rgba(245, 240, 232, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: lineDraw 1s ease-out 1.4s forwards;
}

/* ヒーロー scroll hint の上下バウンス */
.hero__scroll-hint {
  animation: gentleBounce 2.5s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* セクション区切り線 */
.section-divider {
  margin-top: 36px;
}

.divider-line {
  display: block;
  width: 140px;
  margin: 0 auto;
}

.divider-line line {
  stroke: var(--color-accent);
  stroke-width: 0.5;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.section-divider.is-visible .divider-line line {
  animation: lineDraw 1.2s ease-out forwards;
}

/* CTA パルス — ごく控えめ */
.cta-pulse {
  position: relative;
}

.cta-pulse::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid rgba(245, 240, 232, 0.3);
  opacity: 0;
  animation: ctaPulse 4s ease-in-out 2s infinite;
}

@keyframes ctaPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.03); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .collection-item,
  .voice-card,
  .anim-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }

  .anim-line line,
  .anim-line path,
  .scroll-arrow path,
  .divider-line line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .hero__scroll-hint {
    animation: none;
  }

  .cta-pulse::before {
    animation: none;
  }
}
