/* =========================================
   Perfect Is Not Needed Page Styles
   ========================================= */

.perfect-header {
  text-align: left;
  margin-bottom: 2rem;
}

.perfect-header-title {
  color: #10b981; /* Green */
  font-size: 2.5rem;
  font-weight: bold;
}

.perfect-path-line {
  margin: 0.5rem 0;
  width: 100px;
  height: 3px;
  background: #86efac;
}

.perfect-subtitle {
  margin-top: 0.5rem;
  color: #64748b;
  font-weight: bold;
}

.perfect-hero {
  background: linear-gradient(
    135deg,
    #ecfdf5 0%,
    #ffffff 100%
  ); /* Green-ish tint */
  border: 1px solid #86efac;
}

.perfect-box {
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
}

.perfect-box h3 {
  color: #059669;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perfect-box i {
  font-size: 1.5rem;
}

.highlight-green {
  color: #059669;
  border-bottom: 2px solid #86efac;
}

.perfect-quote-highlight {
  font-weight: bold;
  color: #10b981;
}

/* Engagement Animations */
/* Engagement Animations */
.marker-highlight {
  /* 手書き風マーカー: 蛍光ペンでサッと引いた感じ */
  background-image: linear-gradient(to right, rgba(253, 224, 71, 0.5), rgba(253, 224, 71, 0.3));
  background-position: 0% 88%; /* 文字の下の方 */
  background-size: 0% 35%;    /* 太めのライン */
  background-repeat: no-repeat;
  transition: background-size 1.2s cubic-bezier(0.22, 0.61, 0.36, 1); /* スッと引く */
  border-radius: 2px;
  padding-bottom: 2px;
}

.marker-highlight.visible {
  background-size: 100% 35%;
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.floating-icon {
  animation: float-gentle 3s ease-in-out infinite;
  display: inline-block;
  color: #fbbf24; /* Amber-400 */
}

/* Breathing Animation */
@keyframes breathe-calm {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.95;
  }
}

.sidebar-advice {
  animation: breathe-calm 6s ease-in-out infinite;
  margin-bottom: 2rem;
}

/* Override Perfect Hero with Organic Shape */
.perfect-hero {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  border: none;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.2);
  padding: 3rem;
}

/* =========================================
   Image Switcher Component
   ========================================= */
.image-switcher {
  width: 100%;
  max-width: 400px;
  height: 200px;
  margin: 2rem auto;
  border-radius: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.switcher-state {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.5s ease;
}

.state-negative {
  background: linear-gradient(
    135deg,
    #94a3b8 0%,
    #cbd5e1 100%
  ); /* Gray/Cloudy */
  color: #475569;
  opacity: 1;
  transform: translateY(0);
}

.state-positive {
  background: linear-gradient(
    135deg,
    #fbbf24 0%,
    #f59e0b 100%
  ); /* Amber/Sunny */
  color: #fff;
  opacity: 0;
  transform: translateY(100%);
}

.switcher-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

/* Active State (Positive) */
.image-switcher.active .state-negative {
  opacity: 0;
  transform: translateY(-100%);
}

.image-switcher.active .state-positive {
  opacity: 1;
  transform: translateY(0);
}

.image-switcher.active .state-positive .switcher-icon {
  animation: spin-shine 3s linear infinite;
}

@keyframes spin-shine {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.switcher-hint {
  font-size: 0.9rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

/* Win Hero Quote Adjustment */
.win-hero-quote {
  position: relative;
  z-index: 1;
}
