/* ===========================================
   CSR Value — 3つの価値（Heroの直下、Instagram広告経由のCSR担当者向け第一訴求）
   - 海外支援 / 企業ロゴ掲示 / 報告書活用 の3カード
   - csr.css の .csr__step を踏襲、ライム色を主軸に
   =========================================== */

.csr-value {
  background-color: var(--color-bg-soft);
  position: relative;
  overflow-x: clip;
}

/* 背景：柔らかい光ブロブ（ライム + スカイ） */
.csr-value::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -6%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 210, 53, 0.14) 0%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: csrBlobFloat 24s ease-in-out infinite;
}

.csr-value::after {
  content: '';
  position: absolute;
  bottom: 12%;
  right: -6%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 190, 240, 0.10) 0%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
  animation: csrBlobFloat 30s ease-in-out infinite -6s;
}

.csr-value > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   3カードグリッド
   ============================================================ */
.csr-value__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: csr-value-step;
}

@media (min-width: 768px) {
  .csr-value__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 1024px) {
  .csr-value__cards {
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
}

/* 個別カード */
.csr-value__card {
  position: relative;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: linear-gradient(160deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(245, 250, 252, 0.92) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(179, 210, 53, 0.28);
  box-shadow:
    0 4px 18px rgba(0, 99, 138, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition:
    transform 0.5s var(--ease-out),
    box-shadow 0.5s var(--ease-out),
    border-color 0.3s var(--ease-out);
  overflow: hidden;
}

/* カード右上のライム色のアクセント光 */
.csr-value__card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(179, 210, 53, 0.30) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.6s var(--ease-out), opacity 0.4s var(--ease-out);
  opacity: 0.6;
}

.csr-value__card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 56px rgba(0, 99, 138, 0.18),
    0 8px 20px rgba(179, 210, 53, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  border-color: rgba(179, 210, 53, 0.55);
}

.csr-value__card:hover::before {
  transform: scale(1.6);
  opacity: 1;
}

/* アイコン */
.csr-value__icon {
  width: 68px;
  height: 68px;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(179, 210, 53, 0.22) 0%,
    rgba(34, 190, 240, 0.12) 100%);
  border-radius: 20px;
  color: var(--color-text);
  position: relative;
  transition:
    transform 0.5s var(--ease-out),
    background 0.3s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  animation: csrIconFloat 6s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(179, 210, 53, 0.14);
}

.csr-value__card:nth-child(2) .csr-value__icon {
  animation-delay: -2s;
}

.csr-value__card:nth-child(3) .csr-value__icon {
  animation-delay: -4s;
}

.csr-value__card:hover .csr-value__icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg,
    rgba(179, 210, 53, 0.36) 0%,
    rgba(34, 190, 240, 0.20) 100%);
  box-shadow: 0 12px 28px rgba(179, 210, 53, 0.28);
}

.csr-value__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-text);
  transition: stroke 0.3s var(--ease-out);
}

.csr-value__card:hover .csr-value__icon svg {
  stroke: var(--color-accent-lime-hover);
}

/* 番号バッジ（右上、ライム色） */
.csr-value__num {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-lime) 0%, var(--color-accent-lime-hover) 100%);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 12px rgba(179, 210, 53, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
  z-index: 3;
}

.csr-value__num::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(179, 210, 53, 0.55);
  animation: csrPulse 2.6s ease-out infinite;
  pointer-events: none;
}

.csr-value__card:nth-child(2) .csr-value__num::before {
  animation-delay: -0.9s;
}

.csr-value__card:nth-child(3) .csr-value__num::before {
  animation-delay: -1.7s;
}

/* タイトル */
.csr-value__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 0 0.625rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .csr-value__title {
    font-size: 1.1875rem;
  }
}

/* 本文 */
.csr-value__text {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  margin: 0;
}

@media (min-width: 768px) {
  .csr-value__text {
    font-size: 0.9375rem;
  }
}

/* 強調語（数字や金額） */
.csr-value__text strong {
  color: var(--color-text);
  font-weight: 700;
}

/* ============================================================
   下部 CTA（資料請求への導線）
   ============================================================ */
.csr-value__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .csr-value__cta {
    margin-top: var(--space-8);
  }
}

/* CTA 直下のベネフィット記述（PPT 同梱） */
.csr-value__cta-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  margin: var(--space-3) auto 0;
  padding: 0.625rem 1.125rem;
  background: linear-gradient(135deg, rgba(0, 99, 138, 0.06) 0%, rgba(179, 210, 53, 0.20) 100%);
  border: 1.5px solid var(--color-accent-lime);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 4px 14px rgba(179, 210, 53, 0.25);
  white-space: nowrap;
}

.csr-value__cta-note > span {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.csr-value__cta-note svg {
  flex-shrink: 0;
  color: var(--color-accent-lime-hover);
  stroke-width: 2.4;
}

.csr-value__cta-note strong {
  font-weight: 700;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .csr-value__cta-note {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
}

/* スマホでも1行を死守：font-size とアイコン/paddingを圧縮 */
@media (max-width: 767px) {
  .csr-value__cta-note {
    font-size: clamp(0.6875rem, 2.6vw, 0.8125rem);
    padding: 0.5rem 0.875rem;
    gap: 0.4rem;
  }
  .csr-value__cta-note svg {
    width: 12px;
    height: 12px;
  }
}

/* 380px以下：さらに密に */
@media (max-width: 379px) {
  .csr-value__cta-note {
    font-size: 0.625rem;
    padding: 0.45rem 0.7rem;
    gap: 0.3rem;
    letter-spacing: -0.01em;
  }
  .csr-value__cta-note svg {
    width: 11px;
    height: 11px;
  }
}
