/* ===================================================
   section-03-anxiety.css
   Section 3: 3つの不安（共感）
   =================================================== */

.anxiety {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(
    180deg,
    #FAFBFC 0%,
    #EBF5FF 50%,
    #F1F4F8 100%
  );
  overflow: hidden;
}

/* 背景の装飾：大きなぼかし円 */
.anxiety::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 164, 217, 0.2) 0%,
    rgba(91, 164, 217, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.anxiety::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(46, 122, 184, 0.15) 0%,
    rgba(46, 122, 184, 0) 70%
  );
  pointer-events: none;
  z-index: 0;
}

.anxiety__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- 導入文 --- */
.anxiety__lead {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue-5);
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  position: relative;
  display: inline-block;
  width: 100%;
}

.anxiety__lead::before,
.anxiety__lead::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-blue-4));
  vertical-align: middle;
  margin: 0 16px;
}

.anxiety__lead::after {
  background: linear-gradient(90deg, var(--color-blue-4), transparent);
}

.anxiety.is-visible .anxiety__lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* --- カード並び --- */
.anxiety__cards {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 56px;
}

/* --- カード本体 --- */
.anxiety__card {
  position: relative;
  background: linear-gradient(
    135deg,
    #FFFFFF 0%,
    #F0F9FF 100%
  );
  border-radius: 24px;
  padding: 48px 24px 32px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(30, 111, 160, 0.12),
    0 8px 20px rgba(30, 111, 160, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  border: 1px solid rgba(184, 216, 242, 0.6);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  overflow: visible;
}

/* カードの上部に青いアクセントバー */
.anxiety__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-blue-3), var(--color-blue-4));
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(46, 122, 184, 0.3);
}

/* カード番号（大きく装飾的に） */
.anxiety__card-number {
  position: absolute;
  top: -20px;
  right: 24px;
  font-family: var(--font-decorative);
  font-style: italic;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(46, 122, 184, 0.4);
  background: linear-gradient(
    135deg,
    rgba(91, 164, 217, 0.15) 0%,
    rgba(46, 122, 184, 0.1) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
}

/* カードのフェードイン（時差） */
.anxiety.is-visible .anxiety__card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.anxiety.is-visible .anxiety__card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.anxiety.is-visible .anxiety__card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.7s;
}

/* カードホバー効果 */
.anxiety__card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 30px 60px rgba(30, 111, 160, 0.18),
    0 12px 30px rgba(30, 111, 160, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* --- カード内画像 --- */
.anxiety__card-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 15px 30px rgba(30, 111, 160, 0.25));
  animation: cloudFloat 4s ease-in-out infinite;
}

.anxiety__card:nth-child(2) .anxiety__card-image {
  animation-delay: 1s;
}

.anxiety__card:nth-child(3) .anxiety__card-image {
  animation-delay: 2s;
}

@keyframes cloudFloat {
  0%, 100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* --- カード内タイトル --- */
.anxiety__card-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--color-blue-5);
  line-height: 1.5;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* タイトルの下に短い装飾線 */
.anxiety__card-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blue-3), var(--color-blue-4));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* --- 締め文 --- */
.anxiety__closing {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue-5);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  padding: 24px 32px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(235, 245, 255, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(184, 216, 242, 0.5);
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(30, 111, 160, 0.08);
}

.anxiety.is-visible .anxiety__closing {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 1s;
}

/* ===================================================
   PC（768px〜）
   =================================================== */
@media (min-width: 768px) {
  .anxiety {
    padding: 140px 48px;
  }

  .anxiety::before {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
  }

  .anxiety::after {
    width: 700px;
    height: 700px;
    bottom: -250px;
    left: -250px;
  }

  .anxiety__lead {
    font-size: 24px;
    margin-bottom: 72px;
  }

  .anxiety__lead::before,
  .anxiety__lead::after {
    width: 60px;
  }

  .anxiety__cards {
    flex-direction: row;
    gap: 32px;
    margin-bottom: 72px;
  }

  .anxiety__card {
    flex: 1;
    padding: 56px 32px 40px;
  }

  .anxiety__card-number {
    font-size: 96px;
    top: -28px;
    right: 32px;
  }

  .anxiety__card-image {
    width: 200px;
    height: 200px;
    margin-bottom: 28px;
  }

  .anxiety__card-title {
    font-size: 22px;
  }

  .anxiety__closing {
    font-size: 22px;
    padding: 32px 48px;
  }
}