/* ============================================
   S00_FV.CSS
   Section 00: First View
   ============================================ */

/* --------------------------------------------
   1. Section Base
   -------------------------------------------- */
.fv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-dark);
  overflow: hidden;
  padding-block: var(--space-32) var(--space-24);
}

/* --------------------------------------------
   2. Background Layers
   -------------------------------------------- */
.fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.fv__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 60% 40%,
      rgba(200, 146, 42, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 80% at 10% 80%,
      rgba(45, 90, 64, 0.4) 0%,
      transparent 50%
    );
}

.fv__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.02) 60px,
      rgba(255,255,255,0.02) 61px
    );
}

/* --------------------------------------------
   3. Inner Layout
   -------------------------------------------- */
.fv__inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  width: 100%;
}

/* --------------------------------------------
   4. Content（左カラム）
   -------------------------------------------- */
.fv__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.fv__label .section-label {
  color: var(--color-accent-light);
  font-size: var(--text-sm);
}

.fv__headline {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text-inverse);
}

.fv__headline-accent {
  color: var(--color-accent-light);
  position: relative;
  display: inline;
}

.fv__lead {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

/* --------------------------------------------
   5. CTA
   -------------------------------------------- */
.fv__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

/* --------------------------------------------
   6. Badges
   -------------------------------------------- */
.fv__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fv__badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.fv__badge-icon {
  color: var(--color-accent);
  font-size: 0.6rem;
}

/* --------------------------------------------
   7. Visual（右カラム）
   -------------------------------------------- */
.fv__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fv__device-card {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.fv__device-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* デバイスプレースホルダー */
.fv__device-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  width: 100%;
  height: 100%;
}

.fv__device-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 146, 42, 0.2);
  animation: pulseRing 3s ease-in-out infinite;
}

.fv__device-circle--1 {
  width: 200px;
  height: 200px;
  animation-delay: 0s;
}

.fv__device-circle--2 {
  width: 280px;
  height: 280px;
  animation-delay: 0.6s;
}

.fv__device-circle--3 {
  width: 360px;
  height: 360px;
  animation-delay: 1.2s;
}

.fv__device-icon {
  position: relative;
  z-index: 1;
  animation: floatIcon 4s ease-in-out infinite;
}

.fv__device-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: var(--tracking-wide);
}

/* --------------------------------------------
   8. Floating Badges
   -------------------------------------------- */
.fv__floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.fv__floating-badge--top {
  top: -16px;
  left: -24px;
  animation: floatBadge 3s ease-in-out infinite;
}

.fv__floating-badge--bottom {
  bottom: 24px;
  right: -24px;
  animation: floatBadge 3s ease-in-out infinite 1.5s;
}

.fv__floating-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: pulseDot 1.5s ease-in-out infinite;
}

/* --------------------------------------------
   9. Scroll Hint
   -------------------------------------------- */
.fv__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
}

.fv__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(200, 146, 42, 0.6),
    transparent
  );
  animation: scrollLine 2s ease-in-out infinite;
}

/* --------------------------------------------
   10. Keyframes
   -------------------------------------------- */
@keyframes pulseRing {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(1.03); }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* --------------------------------------------
   11. Responsive
   -------------------------------------------- */
@media (max-width: 767px) {
  .fv {
    padding-block: var(--space-24) var(--space-20);
    align-items: flex-start;
    padding-top: calc(var(--space-24) + 60px);
  }

  .fv__inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .fv__visual {
    order: -1;
  }

  .fv__device-card {
    max-width: 280px;
  }

  .fv__device-img {
    aspect-ratio: 1 / 1;
  }

  .fv__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .fv__cta .btn {
    text-align: center;
    justify-content: center;
  }

  .fv__floating-badge--top {
    left: 0;
    top: -12px;
    font-size: var(--text-xs);
  }

  .fv__floating-badge--bottom {
    right: 0;
    font-size: var(--text-xs);
  }

  .fv__scroll-hint {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .fv__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-10);
  }
}

.pc-only {
  display: inline;
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }
}
