/* ============================================================
   SpatialGenerator — animations.css
   GSAP 連携・初期状態定義
   ============================================================ */

/* ---------- Split Text chars ---------- */
.split-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

/* ---------- Stagger items ---------- */
/* opacity / transform は GSAP 側で制御するため CSS 初期値は設定しない */

/* ---------- Fade in from sides ---------- */
/* GSAP gsap.from() で opacity:0 / translateX を設定するため CSS 側は空 */

/* ---------- Scale in ---------- */
/* GSAP gsap.from() で制御 */

/* ---------- Line draw (SVG or hr) ---------- */
.line-draw {
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Float decoration circles ---------- */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---------- Magnetic button wrapper ---------- */
.magnetic-wrap {
  display: inline-block;
  position: relative;
}

/* ---------- Page transition ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  z-index: 9990;
  transform: scaleY(0);
  transform-origin: bottom;
}

/* ---------- Highlight underline animation ---------- */
.highlight {
  position: relative;
  display: inline;
}
.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0;
  width: 100%; height: 8px;
  background: linear-gradient(90deg, var(--c-spatial), var(--c-tracking));
  opacity: 0.3;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-smooth);
}
.highlight.is-visible::after { transform: scaleX(1); }

/* ---------- Counter (数字カウントアップ) ---------- */
.counter-num {
  font-family: var(--font-en);
  font-variant-numeric: tabular-nums;
}

/* ---------- Wave animation (decorative) ---------- */
@keyframes waveFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-18px) rotate(2deg); }
  66%       { transform: translateY(10px) rotate(-1deg); }
}
.wave-float {
  animation: waveFloat 6s ease-in-out infinite;
}
.wave-float-slow {
  animation: waveFloat 9s ease-in-out infinite reverse;
}

/* ---------- Pulse ring (audio visual cue) ---------- */
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c-spatial);
  animation: pulseRing 2.5s ease-out infinite;
}
.pulse-ring:nth-child(2) { animation-delay: 0.8s; }
.pulse-ring:nth-child(3) { animation-delay: 1.6s; }

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(120deg, var(--c-spatial), var(--c-tracking), var(--c-waveform));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Tag color variants ---------- */
.tag--spatial     { background: rgba(93,201,138,0.15);  color: #3aab6b; }
.tag--tracking    { background: rgba(91,159,237,0.15);  color: #3a84d4; }
.tag--waveform    { background: rgba(149,128,221,0.15); color: #7b61c8; }
.tag--fluctuation { background: rgba(230,208,88,0.15);  color: #b89c1a; }
.tag--background  { background: rgba(255,160,86,0.15);  color: #d4721e; }
.tag--timer       { background: rgba(229,112,136,0.15); color: #c04565; }

/* ---------- Horizontal scroll track (testimonials) ---------- */
.testimonials__track {
  will-change: transform;
  user-select: none;
}

/* ---------- Section number (editorial) ---------- */
.section-number {
  display: none;
  font-family: var(--font-en);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  line-height: 1;
  color: rgba(44,42,40,0.04);
  pointer-events: none;
  position: absolute;
  top: -0.1em;
  right: var(--container-px);
  letter-spacing: -0.04em;
}

/* ---------- Color dot list ---------- */
.color-dot-list {}
.color-dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44,42,40,0.08);
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.7;
}
.color-dot-list li:last-child { border-bottom: none; }
.color-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  border-bottom: 1.5px solid rgba(44,42,40,0.1);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  gap: 16px;
}
.accordion-trigger .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(44,42,40,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-smooth), background 0.3s, border-color 0.3s;
  font-size: 14px;
  line-height: 1;
}
.accordion-trigger.is-open .icon {
  transform: rotate(45deg);
  background: var(--c-spatial);
  border-color: var(--c-spatial);
  color: white;
}
.accordion-body {
  height: 0;
  overflow: hidden;
}
.accordion-body-inner {
  padding-bottom: 28px;
  font-size: 15px;
  color: var(--text-sub);
  line-height: 1.85;
  max-width: 800px;
}
.accordion-body-inner p + p { margin-top: 12px; }
.accordion-body-inner ul {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.accordion-body-inner li {
  padding-left: 1.4em;
  position: relative;
  font-size: 14px;
}
.accordion-body-inner li::before {
  content: '・';
  position: absolute;
  left: 0;
}
