/* ======================================== 
   index.css - BEM版 (variables.css対応)
   Persona Finder トップページ専用スタイル
   
   ⚠️ 重要: variables.css を先に読み込むこと
======================================== */

/* ========================================
   ベーススタイル
======================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  /* overflow は書かない */
}

body {
  font-family: var(--font-family);
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--text-base);
  line-height: var(--leading-normal);

  overflow-x: hidden;   /* 横スクロール禁止は body にだけ */
  overflow-y: auto;     /* 縦スクロールは body が担当 */

  min-height: 100vh;
  width: 100%;
  padding-top: var(--header-height);
}





/* ========================================
   ユーティリティ: Container
======================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

.container--narrow {
  max-width: 800px;
}

/* ========================================
   ユーティリティ: 表示制御
======================================== */
.hide-mobile {
  display: block;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* ========================================
   ユーティリティ: Section共通
======================================== */
section {
  padding: var(--space-3xl) 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
  /* overflow-x: hidden; ← 入れない */
}


section.section--visible,
section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section__title {
  text-align: center;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.section__subtitle {
  text-align: center;
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero {
  text-align: center;
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero--visible {
  opacity: 1;
  transform: none;
}

.hero__title {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-bg-medium);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: var(--font-semibold);
  color: var(--accent-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
  min-width: 80px;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: var(--font-extrabold);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: var(--font-semibold);
}

/* ========================================
   CTA(共通ボタン)
======================================== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.cta--primary {
  color: #ffffff;
  background: var(--gradient-accent);
  border: none;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
}

.cta--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.35);
}

.cta--primary:active {
  transform: translateY(0);
}

.cta__text {
  /* テキストスタイル(必要に応じて) */
}

.cta__icon {
  font-size: var(--text-2xl);
  line-height: 1;
}

/* ========================================
   特徴セクション
======================================== */
.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.features__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  box-shadow: var(--card-shadow);
}

.features__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.features__card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.features__card-desc {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  font-size: var(--text-sm);
}

/* ========================================
   認知機能セクション
======================================== */
.cognitive {
  background: var(--bg-primary);
}

.cognitive__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.cognitive__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}

.cognitive__card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
  cursor: pointer;
}

.cognitive__card:active {
  transform: translateY(-2px);
}

.cognitive__card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.cognitive__card-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.cognitive__card-name {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.cognitive__card-desc {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

/* ========================================
   16タイプセクション
======================================== */
.types {
  background: var(--bg-primary);
}

.types__group {
  margin-bottom: 4rem;
}

.types__group-title {
  position: relative;
  text-align: center;
  font-weight: var(--font-normal);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: #555;
  margin: 3.5rem 0 2.5rem;
  line-height: var(--leading-snug);
}

.types__group-title::before,
.types__group-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 36%;
  height: 1px;
  background-color: #d4d4d4;
}

.types__group-title::before {
  left: 0;
}

.types__group-title::after {
  right: 0;
}

/* グループ別カラー */
.types__group:nth-of-type(1) .types__group-title::before,
.types__group:nth-of-type(1) .types__group-title::after {
  background-color: #ff6b6b;
}

.types__group:nth-of-type(2) .types__group-title::before,
.types__group:nth-of-type(2) .types__group-title::after {
  background-color: #4a5568;
}

.types__group:nth-of-type(3) .types__group-title::before,
.types__group:nth-of-type(3) .types__group-title::after {
  background-color: #9ca3af;
}

.types__group:nth-of-type(4) .types__group-title::before,
.types__group:nth-of-type(4) .types__group-title::after {
  background-color: #ff6b6b;
}

.types__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.types__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-base);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.types__card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.types__card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.types__card-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.types__card-frequency {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: var(--font-semibold);
  color: var(--text-muted);
  background: var(--accent-bg-light);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-border);
}

.types__card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.types__card-catch {
  font-size: var(--text-lg);
  font-weight: var(--font-extrabold);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  line-height: var(--leading-tight);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.types__card-tagline {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-style: italic;
  font-weight: var(--font-medium);
  margin-top: 2px;
  margin-bottom: 10px;
  line-height: var(--leading-snug);
}

.types__card-stack {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.types__card-stack li {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

.types__card-stack li strong {
  color: var(--accent-primary);
  font-weight: var(--font-bold);
}

/* ========================================
   透明性セクション
======================================== */
.transparency {
  background: var(--bg-secondary);
}

.transparency__list {
  margin: var(--space-lg) 0;
  text-align: left;
}

.transparency__list-term {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-xl);
}

.transparency__list-term:first-child {
  margin-top: 0;
}

.transparency__list-desc {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-left: 0;
  padding-left: var(--space-lg);
  position: relative;
}

.transparency__list-desc::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.transparency__heading {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--accent-primary);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  text-align: left;
}

.transparency__block {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-left: 0;
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-lg);
}

.transparency__block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.transparency__block p {
  margin-bottom: var(--space-md);
}

.transparency__block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.transparency__block-list li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  line-height: var(--leading-snug);
}

.transparency__block-list li::before {
  content: '• ';
  color: var(--accent-primary);
  font-weight: var(--font-bold);
  margin-right: var(--space-xs);
}

.transparency__block strong {
  color: var(--accent-primary);
  font-weight: var(--font-semibold);
  font-style: normal;
}

.transparency__list-desc strong,
.transparency__list-desc em {
  color: var(--accent-primary);
  font-weight: var(--font-semibold);
  font-style: normal;
}

.transparency__quote {
  background: var(--card-bg);
  border: 1px solid var(--accent-border);
  padding: var(--space-2xl);
  margin: var(--space-2xl) 0;
  font-style: italic;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
}

.transparency__quote:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
}

.transparency__quote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 80px;
  font-weight: var(--font-extrabold);
  color: rgba(255, 107, 107, 0.08);
  font-family: var(--font-mono);
  line-height: 1;
  pointer-events: none;
}

.transparency__quote::after {
  content: '"';
  position: absolute;
  bottom: -30px;
  right: 0;
  font-size: 80px;
  font-weight: var(--font-extrabold);
  color: rgba(255, 107, 107, 0.08);
  font-family: var(--font-mono);
  line-height: 1;
  pointer-events: none;
}

.transparency__quote-text {
  font-size: var(--text-base);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-xs);
}

.transparency__quote-author {
  font-size: var(--text-sm);
  text-align: right;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-weight: var(--font-semibold);
}

/* ========================================
   挑戦的な問いセクション
======================================== */
.controversy {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.03), rgba(74, 85, 104, 0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.controversy::before {
  content: '?';
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  font-weight: var(--font-extrabold);
  color: rgba(74, 85, 104, 0.05);
  font-family: var(--font-mono);
  pointer-events: none;
  z-index: 0;
}

.controversy__content {
  text-align: left;
  position: relative;
  z-index: 1;
}

.controversy__content p {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: var(--space-lg) 0;
  font-size: var(--text-base);
}

.controversy__content p:first-child {
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-weight: var(--font-medium);
}

.controversy__content strong {
  color: var(--accent-primary);
  font-weight: var(--font-semibold);
}

.controversy__final {
  margin-top: var(--space-xl) !important;
  padding-top: var(--space-lg);
  border-top: 2px solid var(--accent-border);
  text-align: center !important;
  font-size: 17px !important;
  line-height: 2 !important;
}

/* ========================================
   プロセスセクション
======================================== */
.process {
  background: var(--bg-primary);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.process__step {
  text-align: center;
  padding: var(--space-lg);
}

.process__step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: var(--font-extrabold);
  font-family: var(--font-mono);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.25);
}

.process__step-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.process__step-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ========================================
   FAQセクション
======================================== */
.faq {
  background: var(--bg-secondary);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: all var(--transition-base);
  box-shadow: var(--card-shadow);
}

.faq__item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.faq__item-question {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.faq__item-answer {
  color: var(--text-secondary);
  line-height: var(--leading-snug);
  font-size: var(--text-sm);
  margin: 0;
}

.faq__item-answer strong {
  color: var(--accent-primary);
  font-weight: var(--font-semibold);
}

/* ========================================
   最終CTAセクション
======================================== */
.cta-section {
  background: var(--bg-primary);
  text-align: center;
  padding: var(--space-4xl) 0;
}

.cta-section__title {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.cta-section__text {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: var(--leading-snug);
}

/* ========================================
   モードセレクター(診断選択カード)
======================================== */
.mode-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 48px 0;
}

.mode-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.mode-card:hover {
  transform: translateY(-6px);
  border: 2px solid transparent;
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.25);
  background: 
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(135deg, rgba(255, 107, 107, 0.08), rgba(74, 85, 104, 0.08)) border-box,
    linear-gradient(135deg, #ff6b6b, #4a5568) border-box;
}

.mode-card--recommended {
  /* 初期状態は他のカードと同じ */
}

.mode-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mode-card__icon {
  font-size: 32px;
}

.mode-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.mode-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.mode-card__meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.mode-card__questions,
.mode-card__time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mode-card__questions::before {
  content: "📋";
}

.mode-card__time::before {
  content: "⏱️";
}

.mode-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.mode-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

/* ========================================
   モード比較テーブル
======================================== */
.mode-comparison {
  margin-top: 24px;
}

.mode-comparison__details {
  /* detailsタグのデフォルトスタイルをリセット */
}

.mode-comparison__summary {
  cursor: pointer;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  list-style: none;
  user-select: none;
  transition: all var(--transition-base);
}

.mode-comparison__summary:hover {
  background: var(--accent-bg-light);
}

.mode-comparison__table {
  margin-top: 16px;
  overflow-x: auto;
}

.mode-comparison__table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.mode-comparison__table th,
.mode-comparison__table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mode-comparison__table th {
  background: var(--accent-bg-light);
  font-weight: 700;
  font-size: 13px;
}

.mode-comparison__table td {
  font-size: 14px;
}

.mode-comparison__table .highlighted {
  background: rgba(255, 107, 107, 0.1);
}

/* ========================================
   CTA Buttons(最終セクション)
======================================== */
.cta-section__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.cta-section__buttons .cta {
  background: var(--card-bg);
  border: 2px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--card-shadow);
}

.cta-section__buttons .cta:hover {
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ff6b6b, #4a5568);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(255, 107, 107, 0.35);
}

.cta-section__buttons .cta--secondary {
  /* 初期状態は同じ */
}

.cta-section__buttons .cta--primary {
  /* 初期状態は同じ */
}

.cta__meta {
  font-size: 12px;
  opacity: 0.8;
  margin-left: 8px;
}

/* ========================================
   レスポンシブ: タブレット (1024px以下)
======================================== */
@media (max-width: 1024px) {
  .cognitive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .types__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   レスポンシブ: モバイル (768px以下)
======================================== */
@media (max-width: 768px) {
  section {
    padding: var(--space-2xl) 0;
  }

  .hero::before {
    width: 400px;
    height: 400px;
  }

  .hero__stats {
    gap: var(--space-lg);
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .cognitive__grid {
    grid-template-columns: 1fr;
  }

  .types__grid {
    grid-template-columns: 1fr;
  }

  .process__steps {
    grid-template-columns: 1fr;
  }

  .types__group-title::before,
  .types__group-title::after {
    width: 28%;
  }

  .types__card {
    padding: var(--space-lg);
  }

  .types__card-code {
    font-size: var(--text-xl);
  }

  .mode-selector {
    grid-template-columns: 1fr;
  }

  .cta-section__buttons {
    flex-direction: column;
  }

  .cta-section__buttons .cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ========================================
   レスポンシブ: 小型モバイル (480px以下)
======================================== */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-xl);
  }

  .hero::before {
    width: 300px;
    height: 300px;
  }

  .hero__badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .hero__stats {
    gap: var(--space-md);
  }

  .hero__stat-value {
    font-size: 32px;
  }

  .hero__stat-label {
    font-size: var(--text-xs);
  }

  .cta--primary {
    width: 100%;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
  }

  .features__card,
  .cognitive__card {
    padding: var(--space-xl);
  }

  .cognitive__card-code {
    font-size: var(--text-xl);
  }

  .cognitive__card-name {
    font-size: var(--text-xs);
  }

  .cognitive__card-desc {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
  }

  .process__step-number {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .faq__item {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
  }

  .faq__item-question {
    font-size: 15px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
  }

  .faq__item-answer {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }

  .transparency__quote {
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
  }

  .transparency__quote-text {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
  }

  .transparency__quote-author {
    font-size: var(--text-xs);
  }

  .cta-section__title {
    font-size: 22px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-lg);
  }

  .cta-section__text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
  }
  
  .transparency__list-term {
    font-size: 15px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
    margin-top: var(--space-2xl);
  }

  .transparency__list-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    padding-left: var(--space-lg);
  }
  
  .transparency__heading {
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
  }

  .transparency__block-list li {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
  }

  .transparency__block p,
  .controversy__content p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }

  .controversy__content p {
    margin: var(--space-xl) 0;
  }

  .controversy__content p:first-child {
    font-size: 15px;
  }

  .controversy__final {
    font-size: var(--text-sm) !important;
    line-height: 1.9 !important;
    margin-top: var(--space-2xl) !important;
    padding-top: var(--space-xl);
  }

  .section__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: var(--space-md);
  }

  .section__subtitle {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2xl);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .types__grid {
    gap: var(--space-sm);
  }

  .types__card {
    padding: var(--space-md);
  }

  .types__card-code {
    font-size: var(--text-base);
  }

  .types__card-frequency {
    font-size: 9px;
    padding: 2px 5px;
  }

  .types__card-catch {
    font-size: 15px;
  }

  .types__card-tagline {
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .types__card-stack li {
    font-size: 11px;
  }

  .types__group-title {
    font-size: 1rem;
    margin: 2.5rem 0 2rem;
  }

  .types__group-title::before,
  .types__group-title::after {
    width: 28%;
  }
}

/* ========================================
   レスポンシブ: 超小型モバイル (375px以下)
======================================== */
@media (max-width: 375px) {
  body {
    font-size: 15px;
    line-height: var(--leading-snug);
  }

  .container {
    padding: 0 var(--space-3);
  }

  .hero__title {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: var(--space-xl);
  }

  .hero__stats {
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  .hero__stat {
    width: 100%;
  }

  .cta--primary {
    font-size: 15px;
    padding: 14px 20px;
  }

  .features__card-title,
  .process__step-title {
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
  }

  .features__card-desc,
  .process__step-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
  }

  .features__card,
  .cognitive__card {
    padding: var(--space-xl);
  }

  .cognitive__card-code {
    font-size: var(--text-xl);
  }

  .cognitive__card-name {
    font-size: var(--text-xs);
  }

  .cognitive__card-desc {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
  }

  .process__step-number {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .faq__item {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
  }

  .faq__item-question {
    font-size: 15px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
  }

  .faq__item-answer {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }

  .transparency__quote {
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
  }

  .transparency__quote-text {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
  }

  .transparency__quote-author {
    font-size: var(--text-xs);
  }

  .cta-section__title {
    font-size: 22px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-lg);
  }

  .cta-section__text {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
  }
  
  .transparency__list-term {
    font-size: 15px;
    line-height: var(--leading-snug);
    margin-bottom: var(--space-md);
    margin-top: var(--space-2xl);
  }

  .transparency__list-desc {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    padding-left: var(--space-lg);
  }
  
  .transparency__heading {
    font-size: var(--text-base);
    line-height: var(--leading-snug);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
  }

  .transparency__block-list li {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-md);
  }

  .transparency__block p,
  .controversy__content p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }

  .controversy__content p {
    margin: var(--space-xl) 0;
  }

  .controversy__content p:first-child {
    font-size: 15px;
  }

  .controversy__final {
    font-size: var(--text-sm) !important;
    line-height: 1.9 !important;
    margin-top: var(--space-2xl) !important;
    padding-top: var(--space-xl);
  }

  .section__title {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: var(--space-md);
  }

  .section__subtitle {
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    margin-bottom: var(--space-2xl);
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .types__grid {
    gap: var(--space-sm);
  }

  .types__card {
    padding: var(--space-md);
  }

  .types__card-code {
    font-size: var(--text-base);
  }

  .types__card-frequency {
    font-size: 9px;
    padding: 2px 5px;
  }

  .types__card-catch {
    font-size: 15px;
  }

  .types__card-tagline {
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .types__card-stack li {
    font-size: 11px;
  }

  .types__group-title {
    font-size: 1rem;
    margin: 2.5rem 0 2rem;
  }

  .types__group-title::before,
  .types__group-title::after {
    width: 22%;
    top: 65%;
  }
}


/* ========================================
   アクセシビリティ: モーション削減対応
======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  section {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   モバイル用カルーセル + 3Dスライダー用スタイル
   （クイック/スタンダード/詳細 ＋ 認知機能 ＋ 16タイプ）
======================================== */
@media (max-width: 768px) {
  /* 共通: 横スクロール＋スナップ（スクロールバー非表示） */
  .mode-selector,
  .cognitive__grid,
  .types__grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox: hide scrollbar */
  }

  .mode-selector::-webkit-scrollbar,
  .cognitive__grid::-webkit-scrollbar,
  .types__grid::-webkit-scrollbar {
    display: none; /* Chrome / Safari: hide scrollbar */
  }

  .mode-card,
  .cognitive__card,
  .types__card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: center;
  }

  /* 3Dスライダー用: JS が付与するクラス */
  .pf-slider {
    perspective: 1200px;
  }

  .pf-slider__item {
    transform-origin: center center;
    transform-style: preserve-3d;
    transition: transform 0.35s ease, opacity 0.35s ease;
    will-change: transform, opacity;
  }

  /* ヒーロー直下の3モードだけ少しだけ目立たせる（高さ暴れ防止） */
  .mode-card {
    min-height: 0; /* Safari 対策 */
  }
}
/* ========================================
   ホバー効果の制御
   - マウスありの環境だけ hover を有効
   - タッチ環境(スマホ/タブレット)では hover で浮かないようにする
======================================== */

/* マウスあり（PCなど）：今までの hover を有効化するエリア */
@media (hover: hover) and (pointer: fine) {
  /* 何もしなくてOK。既存の :hover スタイルがそのまま効く。 */
}

/* タッチ主体（スマホ・タブレット）：hover で浮き上がり無効 */
@media (hover: none), (pointer: coarse) {
  .mode-card,
  .mode-card:hover,
  .cognitive__card,
  .cognitive__card:hover,
  .types__card,
  .types__card:hover,
  .features__card,
  .features__card:hover,
  .faq__item,
  .faq__item:hover,
  .transparency__quote,
  .transparency__quote:hover,
  .cta-section__buttons .cta,
  .cta-section__buttons .cta:hover {
    transform: none !important;
    box-shadow: var(--card-shadow) !important;
    border-color: var(--border) !important;
  }
}

/* ========================================
   印刷用スタイル
======================================== */
@media print {
  .cta {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  body {
    background: white;
  }
}