/* ============================================================
   top.css — TOP ページ専用追加スタイル
   Kinetic Bento TOP 版固有: section__more-link（glass + magnetic）
   ============================================================ */

/* ============================================================
   詳細ページへの誘導リンク（glass + magnetic ボタン）
   各セクション末尾に配置する「〇〇詳細 →」CTA
   ============================================================ */
.section__more-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-8);
}

.section__more-link-wrap--center {
  justify-content: center;
}

.section__more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.85em 2em;
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--text-primary);

  /* glass card スタイル */
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);

  /* グロー効果 */
  box-shadow:
    0 0 0 1px transparent,
    0 4px 16px rgba(59, 130, 246, 0.08);

  /* transition */
  transition:
    transform var(--duration-normal) var(--easing-spring),
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    color var(--duration-normal) var(--easing-standard),
    font-weight var(--duration-normal) var(--easing-standard);

  /* magnetic 対応 */
  position: relative;
  cursor: pointer;
}

/* アクセントライン（左端の縦ライン） */
.section__more-link::before {
  content: '';
  display: block;
  width: 2px;
  height: 1em;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-cyan));
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: height var(--duration-normal) var(--easing-spring);
}

/* 矢印アイコン */
.section__more-link-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 1.1em;
  transition:
    transform var(--duration-normal) var(--easing-spring),
    color var(--duration-fast) var(--easing-standard);
  color: var(--text-muted);
}

/* Hover 状態 */
.section__more-link:hover {
  color: var(--accent-blue-light);
  border-color: var(--accent-blue);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 0 28px rgba(59, 130, 246, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.2);
  /* variable font weight でわずかに太く */
  font-variation-settings: "wght" 600;
}

.section__more-link:hover::before {
  height: 1.4em;
}

.section__more-link:hover .section__more-link-arrow {
  transform: translateX(4px);
  color: var(--accent-blue);
}

/* マゼンタバリアント（サポートセクション用） */
.section__more-link--magenta:hover {
  color: var(--accent-magenta);
  border-color: var(--accent-magenta);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.3),
    0 0 28px rgba(236, 72, 153, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.section__more-link--magenta::before {
  background: linear-gradient(to bottom, var(--accent-magenta), var(--accent-violet));
}

.section__more-link--magenta:hover .section__more-link-arrow {
  color: var(--accent-magenta);
}

/* シアンバリアント（ニュースセクション用） */
.section__more-link--cyan:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.3),
    0 0 28px rgba(6, 182, 212, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.section__more-link--cyan::before {
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue));
}

.section__more-link--cyan:hover .section__more-link-arrow {
  color: var(--accent-cyan);
}

/* フォーカス状態（a11y） */
.section__more-link:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .section__more-link,
  .section__more-link::before,
  .section__more-link-arrow {
    transition: none;
  }
}

/* ライトモード調整 */
[data-theme="light"] .section__more-link {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
}

[data-theme="light"] .section__more-link:hover {
  background: rgba(255, 255, 255, 0.97);
}

/* ============================================================
   TOP ページ専用: About Bento 詳細リンク行
   ============================================================ */
.about-bento__link-row {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-6);
}

@media (min-width: 768px) {
  .about-bento__link-row {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   TOP ページ: courses Bento の「講座一覧 →」リンク
   CTA カード内の詳細リンク調整
   ============================================================ */
.courses-more-link-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
}

/* ============================================================
   TOP ページ: Support セクション（3ステップ版）の余白調整
   ============================================================ */
.support-pin-wrapper--top {
  min-height: 150vh;
}

/* ============================================================
   TOP ページ: FAQ セクション（3件版）
   ============================================================ */
.faq-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

/* ============================================================
   HERO-ACTIONS — primary / secondary CTA（分岐ボタン直下）
   ============================================================ */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
  align-items: center;
}

/* primary CTA: cyan-magenta グラデ + glassmorphism + glow */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 2em;
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 50%, var(--accent-magenta) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 0 24px rgba(59, 130, 246, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-position var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-spring);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.primary-cta:hover {
  background-position: 100% 50%;
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.5),
    0 0 20px rgba(6, 182, 212, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.primary-cta:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* secondary CTA: outline スタイル */
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.75em;
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition:
    color var(--duration-normal) var(--easing-standard),
    border-color var(--duration-normal) var(--easing-standard),
    background var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-spring);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-cta:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.secondary-cta:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* ライトモード調整 */
[data-theme="light"] .primary-cta {
  color: #fff;
}

[data-theme="light"] .secondary-cta {
  color: var(--text-secondary);
  border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .secondary-cta:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.04);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .primary-cta,
  .secondary-cta {
    transition: none;
  }
}

/* ============================================================
   BENTO METRICS — 仮値ラベルと強調スタイル
   ============================================================ */
.bento-provisional {
  display: block;
  font-size: 0.65rem;
  font-weight: var(--font-weight-medium);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
  opacity: 0.8;
}

/* メトリクスラベル強調 */
.bento-metric-label {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.12em;
  font-size: var(--font-size-xs);
}

/* ============================================================
   SITE INDEX セクション — FV 直下のサイト全体入口ナビ
   ============================================================ */
.site-index {
  padding: clamp(80px, 10vw, 128px) 0;
  position: relative;
}

/* ヘッダーエリア */
.site-index__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* SITE INDEX キッカー（section-kicker） */
.section-kicker {
  display: inline-block;
  font-family: var(--font-family-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow:
    0 0 12px rgba(6, 182, 212, 0.7),
    0 0 24px rgba(236, 72, 153, 0.35);
  margin-bottom: var(--space-4);
  position: relative;
}

.section-kicker::before,
.section-kicker::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-cyan));
  vertical-align: middle;
  margin-right: var(--space-3);
}

.section-kicker::after {
  background: linear-gradient(to left, transparent, var(--accent-magenta));
  margin-right: 0;
  margin-left: var(--space-3);
}

.site-index__header h2 {
  font-family: var(--font-family-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.site-index__header p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
}

/* グリッド: 3カラム (1024+) / 2カラム (768-1023) / 1カラム (SP) */
.site-index__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 2vw, 20px);
}

@media (min-width: 640px) {
  .site-index__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-index__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* INDEX CARD — glassmorphism */
.index-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-spring),
    background var(--duration-normal) var(--easing-standard);
}

/* サブタイルなグラデ下地 */
.index-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 120% 80% at 50% 0%,
    rgba(59, 130, 246, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--easing-standard);
  opacity: 0;
}

/* 番号 */
.index-card__num {
  font-family: var(--font-family-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

/* h3 */
.index-card h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-heading);
  margin: 0;
  line-height: 1.3;
}

/* p */
.index-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* 矢印 — 右下に絶対配置 */
.index-card__arrow {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition:
    transform var(--duration-normal) var(--easing-spring),
    color var(--duration-fast) var(--easing-standard);
}

/* HOVER 状態 */
.index-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.2),
    0 0 32px rgba(59, 130, 246, 0.15),
    0 12px 40px rgba(0, 0, 0, 0.35);
  transform: perspective(800px) translateY(-4px) rotateX(1deg);
}

.index-card:hover::before {
  opacity: 1;
}

.index-card:hover .index-card__arrow {
  transform: translateX(5px);
  color: var(--accent-cyan);
}

/* フォーカス */
.index-card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* 偶数カード: magenta グロー変形 */
.index-card:nth-child(even):hover {
  border-color: rgba(236, 72, 153, 0.3);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.15),
    0 0 28px rgba(236, 72, 153, 0.12),
    0 12px 40px rgba(0, 0, 0, 0.35);
}

/* ライトモード */
[data-theme="light"] .index-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .index-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.2),
    0 0 24px rgba(37, 99, 235, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .site-index__header h2 {
  color: var(--text-heading);
}

[data-theme="light"] .section-kicker {
  text-shadow: none;
  color: var(--accent-blue);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .index-card,
  .index-card::before,
  .index-card__arrow {
    transition: none;
    transform: none !important;
  }
}

/* ============================================================
   section__more-link--magnetic
   各セクション末尾 "詳細ページへ" 誘導 CTA
   glass card 風 + glow + magnetic cursor 連動
   ============================================================ */
.section__more-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-8);
}

.section__more-wrap--center {
  justify-content: center;
}

.section__more-link--magnetic {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1em 2.4em;
  font-family: var(--font-family-display);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  color: var(--text-primary);

  /* glassmorphism */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);

  /* subtle glow */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(59, 130, 246, 0.1);

  position: relative;
  cursor: pointer;
  overflow: hidden;

  transition:
    transform var(--duration-normal) var(--easing-spring),
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    color var(--duration-normal) var(--easing-standard),
    background var(--duration-normal) var(--easing-standard);
}

/* シマーライン（右 slide で現れる下線） */
.section__more-link--magnetic::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-magenta));
  transition: left var(--duration-normal) var(--easing-out-expo);
}

/* 矢印 span */
.section__more-link--magnetic span {
  display: inline-flex;
  align-items: center;
  font-size: 1.15em;
  color: var(--text-muted);
  transition:
    transform var(--duration-normal) var(--easing-spring),
    color var(--duration-fast) var(--easing-standard);
}

/* hover */
.section__more-link--magnetic:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(59, 130, 246, 0.3),
    0 0 36px rgba(59, 130, 246, 0.25),
    0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.section__more-link--magnetic:hover::after {
  left: 0;
}

.section__more-link--magnetic:hover span {
  transform: translateX(6px);
  color: var(--accent-cyan);
}

/* フォーカス */
.section__more-link--magnetic:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* マゼンタバリアント */
.section__more-link--magnetic-magenta:hover {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(236, 72, 153, 0.25),
    0 0 32px rgba(236, 72, 153, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.25);
}

.section__more-link--magnetic-magenta:hover span {
  color: var(--accent-magenta);
}

/* シアンバリアント */
.section__more-link--magnetic-cyan:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(6, 182, 212, 0.25),
    0 0 32px rgba(6, 182, 212, 0.22),
    0 8px 32px rgba(0, 0, 0, 0.25);
}

.section__more-link--magnetic-cyan:hover span {
  color: var(--accent-cyan);
}

/* ライトモード */
[data-theme="light"] .section__more-link--magnetic {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--text-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .section__more-link--magnetic:hover {
  background: rgba(255, 255, 255, 0.97);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.2),
    0 0 24px rgba(37, 99, 235, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .section__more-link--magnetic span {
  color: var(--text-muted);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .section__more-link--magnetic,
  .section__more-link--magnetic::after,
  .section__more-link--magnetic span {
    transition: none;
    transform: none !important;
  }
}

/* ============================================================
   SECTION HEADING sub テキスト（problems / solution 用）
   ============================================================ */
.section-heading__sub {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-top: var(--space-4);
  line-height: 1.8;
}

/* section-kicker マゼンタバリアント */
.section-kicker--magenta {
  color: var(--accent-magenta);
  text-shadow:
    0 0 12px rgba(236, 72, 153, 0.7),
    0 0 24px rgba(59, 130, 246, 0.3);
}

.section-kicker--magenta::before {
  background: linear-gradient(to right, transparent, var(--accent-magenta));
}

.section-kicker--magenta::after {
  background: linear-gradient(to left, transparent, var(--accent-cyan));
}

[data-theme="light"] .section-kicker--magenta {
  color: #be185d;
  text-shadow: none;
}

/* ============================================================
   PROBLEMS SECTION
   ============================================================ */
.section--problems {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}

.section--problems .section-heading {
  margin-bottom: clamp(40px, 6vw, 60px);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
}

@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .problems-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.problem-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-spring),
    background var(--duration-normal) var(--easing-standard);
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 140% 100% at 50% 0%,
    rgba(236, 72, 153, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.problem-card:hover {
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.07);
  box-shadow:
    0 0 0 1px rgba(236, 72, 153, 0.15),
    0 0 28px rgba(236, 72, 153, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.problem-card__num {
  display: block;
  font-family: var(--font-family-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-magenta), var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-4);
  text-shadow: none;
  /* glow via filter (text-fill-color makes text-shadow inactive) */
  filter: drop-shadow(0 0 12px rgba(236, 72, 153, 0.5));
}

.problem-card h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.problem-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ライトモード */
[data-theme="light"] .problem-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .problem-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(190, 24, 93, 0.3);
  box-shadow:
    0 0 0 1px rgba(190, 24, 93, 0.15),
    0 0 20px rgba(190, 24, 93, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.08);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .problem-card {
    transition: none;
    transform: none !important;
  }
}

/* ============================================================
   SOLUTION SECTION
   ============================================================ */
.section--solution {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}

.section--solution .section-heading {
  margin-bottom: clamp(40px, 6vw, 60px);
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 20px);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solution-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.solution-card {
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color var(--duration-normal) var(--easing-standard),
    box-shadow var(--duration-normal) var(--easing-standard),
    transform var(--duration-normal) var(--easing-spring),
    background var(--duration-normal) var(--easing-standard);
}

.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 140% 100% at 50% 0%,
    rgba(6, 182, 212, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.solution-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.07);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.15),
    0 0 28px rgba(6, 182, 212, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.solution-card__num {
  display: block;
  font-family: var(--font-family-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-4);
  text-shadow: none;
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5));
}

.solution-card h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
  line-height: 1.4;
}

.solution-card p {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ライトモード */
[data-theme="light"] .solution-card {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .solution-card:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(8, 145, 178, 0.3);
  box-shadow:
    0 0 0 1px rgba(8, 145, 178, 0.15),
    0 0 20px rgba(8, 145, 178, 0.1),
    0 6px 20px rgba(0, 0, 0, 0.08);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .solution-card {
    transition: none;
    transform: none !important;
  }
}

/* ============================================================
   FOOTER — サイトマップ型（強化版）
   ============================================================ */

/* 背景：最暗 + glassmorphism 帯 */
.site-footer {
  background: #020410;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: clamp(64px, 8vw, 96px) clamp(32px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

/* 微細なグロー帯 */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(6, 182, 212, 0.35),
    rgba(236, 72, 153, 0.25),
    transparent
  );
  pointer-events: none;
}

/* TOP エリア: brand + nav */
.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  margin-bottom: clamp(48px, 6vw, 72px);
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    align-items: flex-start;
    gap: clamp(48px, 8vw, 96px);
  }
}

/* ブランド列 */
.site-footer__brand {
  flex-shrink: 0;
  min-width: 200px;
}

.site-footer__logo {
  display: inline-block;
  font-family: var(--font-family-display);
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.site-footer__logo span {
  color: var(--accent-blue);
}

.site-footer__tagline {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.site-footer__tel {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.site-footer__tel a {
  font-family: var(--font-family-display);
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: var(--letter-spacing-tight);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

.site-footer__tel a:hover {
  color: var(--accent-cyan);
}

.site-footer__tel small {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* サイトマップ nav */
.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 40px);
  flex: 1;
}

@media (min-width: 640px) {
  .site-footer__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* nav カラム */
.footer-nav-col h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
  margin-bottom: var(--space-4);
}

.footer-nav-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav-col li a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition:
    color var(--duration-fast) var(--easing-standard),
    text-shadow var(--duration-fast) var(--easing-standard);
  line-height: 1.4;
}

.footer-nav-col li a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.25);
}

.footer-nav-col li a:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* BOTTOM エリア */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: space-between;
  }
}

.site-footer__company {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
}

.site-footer__company strong {
  color: rgba(255, 255, 255, 0.6);
  font-weight: var(--font-weight-semibold);
  margin-right: var(--space-2);
}

.site-footer__company small {
  display: block;
  margin-top: 2px;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.25);
}

.site-footer__legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.site-footer__legal li a {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-standard);
}

.site-footer__legal li a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer__copy {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: var(--letter-spacing-wide);
  margin: 0;
}

/* ライトモード */
[data-theme="light"] .site-footer {
  background: #f0f4ff;
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .site-footer::before {
  background: linear-gradient(90deg,
    transparent,
    rgba(37, 99, 235, 0.2),
    rgba(190, 24, 93, 0.15),
    transparent
  );
}

[data-theme="light"] .site-footer__logo {
  color: var(--text-primary);
}

[data-theme="light"] .footer-nav-col h4 {
  color: var(--accent-blue);
  text-shadow: none;
}

[data-theme="light"] .footer-nav-col li a {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .footer-nav-col li a:hover {
  color: var(--accent-blue);
  text-shadow: none;
}

[data-theme="light"] .site-footer__tel a {
  color: var(--text-primary);
}

[data-theme="light"] .site-footer__bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .site-footer__company {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .site-footer__company strong {
  color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .site-footer__company small {
  color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .site-footer__legal li a {
  color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .site-footer__legal li a:hover {
  color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .site-footer__copy {
  color: rgba(0, 0, 0, 0.25);
}
