/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent-gold: #FFD700;
  --softlight: rgba(255, 215, 0, 0.08);
}

html, body {
  background-color: #000;
  color: #fff;
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  height: auto;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 背景粒子 */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-size: 260px 260px;
  background-image: radial-gradient(
    rgba(255, 215, 0, 0.68) 1.5px,
    transparent 1px
  );
  animation: moveParticles 120s linear infinite;
  opacity: 0.25; 
}

@keyframes moveParticles {
  from { transform: translateY(0); }
  to { transform: translateY(-300px); }
}

/* メインコンテナ */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1 0 auto;
}

/* タイトル */
.title {
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 400;
  font-family: "EB Garamond", serif;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  margin-bottom: 0.5em;
  text-align: center;
  position: relative;
  display: inline-block;
  width: 100%;
}

.title::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, rgba(255,215,0,0.05) 60%, transparent 100%);
  opacity: 0.6;
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: shimmerGlow 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes shimmerGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

.subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 0;
  text-align: center;
}

/* セクション */
.section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 200px 1rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.8s ease, transform 2.2s ease;
}

.section:last-of-type {
  padding-bottom: 0; 
}



.section.visible {
  opacity: 1;
  transform: translateY(0);
}



.section.visible::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 60%);
  opacity: 0;
  animation: softGlow 8s ease-in-out forwards;
  filter: blur(25px);
  pointer-events: none;
  z-index: -1;
}

@keyframes softGlow {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
  40% { opacity: 0.25; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1.02); }
}

.section.visible > * {
  animation: breatheText 9s ease-in-out infinite;
}

@keyframes breatheText {
  0%, 100% { opacity: 0.95; text-shadow: 0 0 6px rgba(255,215,0,0.15); }
  50% { opacity: 1; text-shadow: 0 0 12px rgba(255,215,0,0.35); }
}

/* 見出し */
h1, h2 {
  font-weight: 300;
  margin-bottom: 1em;
}

h2 {
  font-size: 1.5rem;
  color: #fff;
}

h2.en {
  font-family: "EB Garamond", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

/* 段落 */
p {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  line-height: 2.1;
  margin: 0 auto 1.5em;
  max-width: 90%;
  letter-spacing: 0.02em;
  white-space: nowrap; 
  overflow-wrap: normal;
}

/* 区切り */
.divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: 4vh 0;
  opacity: 0.6;
}

/* We Speak Light 特別演出 */
.we-speak {
  position: relative;
  overflow: hidden;
}

.wespeak-head::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,0.25) 0%, rgba(255,215,0,0.05) 60%, transparent 100%);
  opacity: 0.9;
  filter: blur(12px);
  mix-blend-mode: screen;
  animation: shimmerGlow 12s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.3; }
}

/* フッター */
.footer {
  text-align: center;
  padding: 2rem 0 0;
  margin-top:200px;
}

.footer a {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(255,215,0,0.3);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.7;
}

/* レスポンシブ調整 */
@media (min-width: 768px) {
  .section p {
    max-width: 600px;
    letter-spacing: 0.05em;
  }

  h2 {
    font-size: 1.75rem;
  }
}






/* 行フェード（静かな呼吸感） */
.fade-lines span {
  opacity: 0;
  display: inline-block;
  transform: translateY(0.3px);
  filter: blur(2px);
}

/* セクションが可視化された瞬間に発火 */
.section.visible .fade-lines span {
  animation: lineFade 2.5s ease forwards;

 /* animation: glowAppear 2.5s ease-out forwards, glowBreathe 6s ease-in-out infinite 2.5s; */
}

/* 行フェードアニメーション */
@keyframes lineFade {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(1px);
  }
  100% {
    opacity: 0.98;
    filter: blur(0);
  }
}

/* 呼吸する金光（滑らかに継続） */
.section.visible > * {
  animation: breatheText 9s ease-in-out infinite;
}

@keyframes breatheText {
  0%, 100% {
    opacity: 0.95;
    text-shadow: 0 0 8px rgba(255,215,0,0.25);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(255,215,0,0.45);
  }
}

/* 背景光が浮かぶ演出 */
.section.visible::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: 250%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
  opacity: 0;
  animation: softGlow 8s ease-in-out forwards;
  filter: blur(25px);
  pointer-events: none;
  z-index: -1;
}

@keyframes softGlow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  40% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.04);
  }
  100% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.02);
  }
}


.section.visible h2 {
  animation: fadeH2 3.5s ease forwards; 
}

@keyframes fadeH2 {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0.98;
  }
}



/* Divider 光アニメーション -------------------------*/
.divider {
  text-align: center;
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin: 4vh 0;
  opacity: 0.5;
  transition: opacity 1s ease;
  text-shadow: 0 0 6px rgba(255,215,0,0.15);
}

/* 光が浮かび上がる演出 */
.divider.glow {
  animation: dividerGlow 2.6s ease-in-out;
}

@keyframes dividerGlow {
  0% {
    opacity: 0.3;
    text-shadow: 0 0 0px rgba(255,215,0,0.1);
    filter: blur(0);
  }
  40% {
    opacity: 0.9;
    text-shadow: 0 0 18px rgba(255,215,0,0.7);
    filter: blur(1px);
  }
  70% {
    opacity: 0.7;
    text-shadow: 0 0 28px rgba(255,215,0,0.4);
    filter: blur(2px);
  }
  100% {
    opacity: 0.4;
    text-shadow: 0 0 4px rgba(255,215,0,0.2);
    filter: blur(0);
  }
}

.divider.glow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,215,0,0.12) 0%, transparent 70%);
  filter: blur(25px);
  opacity: 0;
  z-index: -1;
  animation: dividerLight 2.4s ease-out;
}

@keyframes dividerLight {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8);}
  40% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05);}
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.2);}
}


