/* ==========================================================
   Story English コラム・メディア専用スタイル (column.css)
   読了率・スキャナビリティ・Core Web Vitals 最適化版
   ========================================================== */

/* 最上部 3px 読書進捗プログレスバー（目標勾配効果） */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
  z-index: 10001;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

.column-page {
  background-color: #f8fafc;
  color: #262626;
  line-height: 1.8;
  letter-spacing: 0.035em;
  -webkit-font-smoothing: antialiased;
}

/* 固定ヘッダーとの重なりを防止 ＆ 本文実効幅680px（1行約40文字）の黄金律 */
.article-container {
  max-width: 780px;
  margin: 104px auto 80px;
  padding: 0 1.25rem;
}

.column-index-container {
  max-width: 1000px;
  margin: 104px auto 80px;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .column-page {
    line-height: 1.75;
    letter-spacing: 0.025em;
  }
  .article-container,
  .column-index-container {
    margin-top: 82px;
    margin-bottom: 50px;
    padding: 0 0.875rem;
  }
}

/* ヘッダーロゴのCLS防止 */
.logo-icon {
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
}

/* パンくずリスト（知的なミニマルデザイン） */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}
.breadcrumb a {
  color: #475569;
  text-decoration: none;
  padding: 0.2rem 0;
}
.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #cbd5e1;
}

/* 記事カード（1行38〜42文字を実現する余白設計） */
.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.75rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

@media (max-width: 768px) {
  .article-card {
    padding: 1.5rem 1.125rem;
    border-radius: 12px;
  }
}

/* PR表記・免責（ファーストビューを圧迫しないスリム設計） */
.pr-badge-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  color: #64748b;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}
.pr-tag {
  background: #475569;
  color: #fff;
  font-weight: 700;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* 記事ヘッダー（グローバル header との衝突を完全に防止） */
.article-header {
  position: static !important;
  width: auto !important;
  padding: 0 0 1.35rem 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
  margin-bottom: 1.5rem;
}

/* カテゴリラベル（知的な左アクセントライン） */
.article-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

/* 記事タイトル（H1: PC 30px / SP 23px） */
.article-title {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.42;
  color: #0f172a;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .article-title {
    font-size: 1.42rem;
    line-height: 1.42;
  }
}

/* メタ情報（公開日・更新日・著者・読了時間：13px） */
.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  font-size: 0.8125rem;
  color: #64748b;
}
.article-meta span,
.article-meta time {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.meta-author-badge {
  font-weight: 600;
  color: #475569;
}

/* リード文（箱ノイズをなくし、逆ピラミッド型でスッと読めるプレーン導入文） */
.article-lead {
  font-size: 1.03125rem;
  line-height: 1.82;
  color: #262626;
  background: transparent;
  border-left: none;
  padding: 0;
  margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
  .article-lead {
    font-size: 0.96875rem;
    line-height: 1.75;
  }
}

/* 目次（Thumb Zone対応：タップターゲット最小40〜44px） */
.toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.65rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.toc-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
  border-bottom: 1px dashed rgba(203, 213, 225, 0.5);
}
.toc-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.toc-list li a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.25rem;
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, padding-left 0.15s ease;
  line-height: 1.45;
}
.toc-list li a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}

/* ==========================================================
   本文タイポグラフィ ＆ 見出し階層（レイヤードケーキ走査＆近接の原理）
   ========================================================== */

/* H2見出し：PC 25px / 上52px : 下22px (比率 2.36:1) / 左端4px縦線＋極薄背景座布団 */
.article-body h2,
.article-faq-section {
  scroll-margin-top: 92px;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.45;
  color: #0f172a;
  margin-top: 3.25rem;
  margin-bottom: 1.375rem;
  padding: 0.75rem 1.1rem;
  background: linear-gradient(90deg, #f0f7ff 0%, #f8fafc 100%);
  border-left: 4px solid var(--primary, #2563eb);
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
  letter-spacing: 0.02em;
}

/* H3見出し：PC 20.5px / 上38px : 下16px (比率 2.37:1) / 2トーン下部ボーダー線 */
.article-body h3 {
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1e293b;
  margin-top: 2.375rem;
  margin-bottom: 1rem;
  padding-left: 0;
  padding-bottom: 0.45rem;
  border-left: none;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}
.article-body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--primary, #2563eb);
}

/* H4見出し：PC 17.5px / 上28px : 下12px (比率 2.33:1) */
.article-body h4 {
  font-size: 1.09rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1e293b;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

/* 本文段落・箇条書き（オフブラック #262626、文字間 0.035em、行送り 1.82） */
.article-body p {
  font-size: 1.03125rem;
  line-height: 1.82;
  letter-spacing: 0.035em;
  margin-bottom: 1.5rem;
  color: #262626;
}
.article-body strong {
  color: #0f172a;
  font-weight: 700;
}
.article-body ul, .article-body ol {
  font-size: 1.015rem;
  line-height: 1.68;
  letter-spacing: 0.03em;
  margin-bottom: 1.75rem;
  padding-left: 1.5rem;
  color: #262626;
}
.article-body li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .article-body h2 {
    font-size: 1.25rem;
    margin-top: 2.375rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
  }
  .article-body h3 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
  }
  .article-body h4 {
    font-size: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.65rem;
  }
  .article-body p {
    font-size: 0.96875rem;
    line-height: 1.76;
    letter-spacing: 0.025em;
    margin-bottom: 1.35rem;
  }
  .article-body ul, .article-body ol {
    font-size: 0.95rem;
    line-height: 1.65;
    letter-spacing: 0.02em;
  }
}

/* コールアウトボックス（明度95%以上の極薄背景＋左3.5pxボーダー） */
.point-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
  margin: 2rem 0;
}
.point-box-header {
  font-weight: 700;
  font-size: 0.98rem;
  color: #0f172a;
  margin-bottom: 0.65rem;
}
.point-box p:last-child,
.point-box ul:last-child {
  margin-bottom: 0;
}

/* メリット・デメリットボックス */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 640px) {
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
}
.pros-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 1.25rem;
}
.pros-title {
  font-weight: 700;
  color: #166534;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}
.cons-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1.25rem;
}
.cons-title {
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}
.pros-cons-grid ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ==========================================================
   モバイル対応データテーブル（左端列 sticky 固定 ＆ 横スクロール示唆）
   ========================================================== */
.table-scroll-hint {
  display: none;
  font-size: 0.75rem;
  color: #64748b;
  text-align: right;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .table-scroll-hint {
    display: block;
  }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.5rem 0 2.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #fff;
  position: relative;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  text-align: left;
}
.comparison-table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  padding: 0.9rem 0.85rem;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}
.comparison-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: #262626;
  background: #ffffff;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

/* 左端列（サービス名・アプリ名）を横スクロール時に固定 */
.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 135px;
  border-right: 1px solid #e2e8f0;
  box-shadow: 3px 0 6px -2px rgba(15, 23, 42, 0.06);
}
.comparison-table th:first-child {
  z-index: 3;
  background: #f8fafc;
}
.highlight-row td {
  background: #eff6ff !important;
  font-weight: 600;
}
.highlight-badge {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
}

/* アフィリエイトカード（タップターゲット最小48px確保） */
.affiliate-link-card {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  margin: 1.75rem 0 2.25rem;
  text-align: center;
}
.affiliate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}
.affiliate-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.affiliate-subtext {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.5rem;
}

/* 自社アプリ専用インラインCTAカード（記事内・タップターゲット48px以上） */
.official-app-card {
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  margin: 1.75rem 0 2.25rem;
  text-align: center;
}
.official-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.5rem;
  background: #2563eb;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  margin-top: 0.5rem;
}
.official-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
.official-subtext {
  display: block;
  font-size: 0.75rem;
  color: #1e40af;
  margin-top: 0.5rem;
}

/* ==========================================================
   クリーン・ライト基調の自社アプリCTAバナー（上部リード＋スリム構成）
   ========================================================== */
.app-cta-banner {
  background: linear-gradient(145deg, #f0f7ff 0%, #ffffff 55%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 2.75rem 2.5rem;
  margin: 4.5rem 0 1.5rem;
  box-shadow: 0 12px 35px -5px rgba(37, 99, 235, 0.09), 0 4px 12px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
}

/* 上部：コンセプト＆リード文（横幅いっぱいにすっきり配置） */
.app-cta-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.25rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.75rem;
}
.app-cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
  border: 2px solid #ffffff;
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}
.app-cta-banner:hover .app-cta-icon {
  transform: scale(1.05);
}
.app-cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
  border: none !important;
  border-left: none !important;
  padding-left: 0 !important;
  text-align: center;
}
.app-cta-lead {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0 auto;
}

/* 下部：アクション（左） ＋ 実写スマホ2連画面（右） */
.app-cta-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.app-cta-action {
  flex: 1;
  text-align: left;
}
.app-cta-free-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}
.free-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}
.app-cta-badges {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.app-cta-badge-link img {
  height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 8px;
}
.app-cta-badge-link:hover img {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* 実写アプリ画面（2画面の立体オーバーラップ：下端基準で下部ボックスへのめり込みを完全防止＆上部へ立体的に配置） */
.app-cta-visual {
  flex: 0 0 285px;
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-screen-mockup {
  position: absolute;
  width: 145px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transition: transform 0.3s ease;
  overflow: hidden;
  background: #ffffff;
}
.cta-screen-mockup img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}
.cta-screen-mockup .screen-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 4px;
}
/* 1枚目：多読ストーリー（左奥・やや上へ立体配置） */
.cta-screen-reading {
  left: 6px;
  bottom: 16px;
  top: auto;
  transform: rotate(-5deg);
  z-index: 1;
}
/* 2枚目：AIトーク画面（右手前・下端ロック） */
.cta-screen-chat {
  right: 8px;
  bottom: 4px;
  top: auto;
  transform: rotate(4deg);
  z-index: 2;
  border-color: #2563eb;
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.25), 0 8px 16px rgba(15, 23, 42, 0.12);
}
.app-cta-banner:hover .cta-screen-reading {
  transform: rotate(-2deg) translateY(-3px);
}
.app-cta-banner:hover .cta-screen-chat {
  transform: rotate(1deg) translateY(-5px);
}

@media (max-width: 768px) {
  .app-cta-banner {
    padding: 2rem 1.25rem;
  }
  .app-cta-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
  }
  .app-cta-title {
    font-size: 1.4rem;
  }
  .app-cta-body {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }
  .app-cta-action {
    text-align: center;
    width: 100%;
  }
  .app-cta-free-note {
    justify-content: center;
    text-align: left;
    font-size: 0.82rem;
  }
  .app-cta-badges {
    justify-content: center;
  }
  .app-cta-visual {
    flex: 0 0 auto;
    width: 260px;
    height: 255px;
    margin: 0.25rem auto 0;
  }
  .cta-screen-mockup {
    width: 132px;
  }
}

/* ==========================================================
   コラム一覧ページ（index.html）の専用スタイル
   ========================================================== */

.media-header {
  position: static !important;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: auto !important;
  text-align: center;
  margin-bottom: 3.5rem;
}
.media-header-sub {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.media-header-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
@media (max-width: 768px) {
  .media-header-title {
    font-size: 1.65rem;
  }
}
.media-header-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* コラム一覧グリッド */
.column-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .column-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.column-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}
.column-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.column-card-thumb {
  margin: -1.5rem -1.5rem 1.15rem -1.5rem;
  height: 190px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #e2e8f0;
}
.column-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
  transition: transform 0.35s ease;
}
.column-card:hover .column-card-thumb img {
  transform: scale(1.04);
}

/* 記事本文内の2連ビジュアル図解・スクリーンショット枠（400〜600字ごとの視覚的ブレイク） */
.article-visual-showcase {
  margin: 2rem 0 2.25rem;
  background: linear-gradient(145deg, #f8fafc 0%, #f0f7ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 1.35rem 1.25rem 1.1rem;
}
.article-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto;
}
.article-visual-item {
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(37, 99, 235, 0.2);
}
.article-visual-item img {
  width: 100%;
  height: auto;
  display: block;
}
.article-visual-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .article-visual-showcase {
    padding: 1rem 0.85rem 0.85rem;
  }
  .article-visual-grid {
    gap: 0.65rem;
  }
  .article-visual-caption {
    font-size: 0.76rem;
  }
}
.column-card-cat {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 2px solid var(--primary);
  padding-left: 0.4rem;
  margin-bottom: 0.6rem;
}
.column-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 0.75rem;
}
.column-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.column-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}


/* ==========================================================
   インタラクティブ診断ウィジェット専用スタイル (.quiz-widget)
   ネイティブアプリ風の直感的・高速な診断UI
   ========================================================== */
.quiz-widget {
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.08);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .quiz-widget {
    padding: 1.5rem 1.15rem;
    border-radius: 16px;
    margin: 2rem 0;
  }
}

.quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.quiz-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.quiz-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 1.5rem;
}

/* プログレスバー */
.quiz-progress-wrap {
  margin-bottom: 1.75rem;
}
.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6366f1;
  margin-bottom: 0.4rem;
}
.quiz-progress-track {
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #6366f1, #3b82f6);
  border-radius: 9999px;
  transition: width 0.35s ease;
}

/* 設問カード */
.quiz-step {
  display: none;
  animation: quizFadeIn 0.3s ease forwards;
}
.quiz-step.active {
  display: block;
}

@keyframes quizFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-q-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* 選択肢ボタン */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
}

.quiz-opt-btn:hover {
  background: #eef2ff;
  border-color: #818cf8;
  color: #1e1b4b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.quiz-opt-btn:active {
  transform: scale(0.99);
}

.quiz-opt-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.quiz-opt-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.quiz-opt-sub {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 400;
  line-height: 1.45;
}

.quiz-opt-btn:hover .quiz-opt-title {
  color: #4f46e5;
}

.quiz-opt-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.quiz-opt-btn:hover .quiz-opt-arrow {
  transform: translateX(3px);
  color: #6366f1;
}

/* 診断中ローディング */
.quiz-loading {
  display: none;
  text-align: center;
  padding: 2.5rem 1rem;
}
.quiz-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e0e7ff;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.quiz-loading-text {
  font-size: 1rem;
  font-weight: 700;
  color: #1e1b4b;
}

/* 診断結果コンテナ */
.quiz-result {
  display: none;
  animation: quizFadeIn 0.4s ease forwards;
}

.quiz-result-header {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.quiz-result-type-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4f46e5;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.quiz-result-type-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 0.5rem;
}
.quiz-result-summary {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
}

.quiz-result-recommendation {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.quiz-restart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: transparent;
  border: 1px dashed #94a3b8;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-restart-btn:hover {
  background: #f8fafc;
  color: #1e3a8a;
  border-color: #64748b;
}

/* ==========================================
   AI検索（LLMO）＆ 読者向け 冒頭要約ボックス
   ========================================== */
.article-quick-summary {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  border-left: 4px solid var(--primary, #2563eb);
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  margin: 1.25rem 0 1.75rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.04);
}

.article-quick-summary-header,
.summary-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.94rem;
  color: #1e3a8a;
  margin-bottom: 0.65rem;
}

.article-quick-summary-header svg {
  color: var(--primary, #2563eb);
  flex-shrink: 0;
}

.article-quick-summary-list,
.summary-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.article-quick-summary-list li,
.summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #262626;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

.article-quick-summary-list li::before,
.summary-list li::before {
  content: "✔";
  color: #2563eb;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================
   FAQ セクション（LLMO / FAQPage 対応）
   ========================================== */
.article-faq-section {
  margin: 3.25rem 0 2rem;
  padding: 1.75rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.article-faq-title,
.faq-section-title {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 1.25rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-faq-list,
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.article-faq-item,
.faq-item {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
}

.article-faq-q,
.faq-question {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 0.45rem !important;
  padding: 0 !important;
  border: none !important;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.faq-question::after {
  display: none !important;
}

.article-faq-q::before {
  content: "Q.";
  color: #2563eb;
  font-weight: 800;
  flex-shrink: 0;
}

.article-faq-a,
.faq-answer p {
  font-size: 0.92rem !important;
  color: #334155 !important;
  line-height: 1.68 !important;
  padding-left: 1.4rem;
  margin: 0 !important;
}

/* ==========================================
   記事下 E-E-A-T：執筆・監修プロフィール枠
   ========================================== */
.article-author-box {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  margin: 2.75rem 0 2.5rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  aspect-ratio: 1 / 1;
}

.author-info {
  flex: 1;
}

.author-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.author-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.author-bio {
  font-size: 0.84rem !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

@media (max-width: 640px) {
  .article-author-box {
    padding: 1.15rem;
    gap: 0.9rem;
  }
  .author-avatar {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================
   記事下回遊：次に読むべき関連記事（カード型UI）
   ========================================== */
.related-articles-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.related-articles-heading {
  font-size: 1.18rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-top: 0 !important;
  margin-bottom: 1.15rem !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related-articles-heading::after {
  display: none !important;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .related-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 48px;
}

.related-card:hover {
  border-color: var(--primary, #2563eb);
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.related-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.4rem;
}

.related-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.related-card-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
