/* =====================================================
   LLM Insight — article.css
   front-matter 型記事（layouts/article.njk・guides/index.html）の本文専用スタイル。
   base.njk が articleStyles フラグのページでのみ読み込む。
   新デザイン（style.css / components.css）のCSS変数に調和させて移植。
   ここでは記事固有クラス（article-/toc-/faq-/related-/cta- 等）のみ定義し、
   :root 変数・body・グローバルセレクタの再定義は行わない。
   ===================================================== */

/* ---------- 記事用ボタン（新デザインの .btn 系とは別の旧記事クラス） ---------- */
.article-hero .cta-button,
.cta-section .cta-button,
.article-hero .secondary-button,
.cta-section .secondary-button,
.article-cta .cta-button-white,
.cta-section .cta-button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.article-hero .cta-button,
.cta-section .cta-button {
  background: var(--brand);
  color: #fff;
  padding: 13px 28px;
  font-size: 15px;
}
.article-hero .cta-button:hover,
.cta-section .cta-button:hover {
  background: var(--brand-700);
  box-shadow: 0 6px 18px rgba(13, 37, 70, 0.18);
}

.article-hero .secondary-button {
  background: var(--white);
  color: var(--brand);
  padding: 13px 28px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.article-hero .secondary-button:hover {
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

.cta-button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--brand-900);
  padding: 14px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.cta-button-white:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13, 37, 70, 0.2);
}

/* ---------- 記事ヒーロー（.hero ベースは components.css を継承し上書き） ---------- */
.hero.article-hero {
  padding: 64px 0 56px;
}
.hero.article-hero .hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.hero.article-hero .hero-text h1 {
  font-size: 36px;
  line-height: 1.42;
  color: var(--brand-900);
}
.hero.article-hero .hero-subtitle,
.hero.article-hero .hero-text p {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-700);
  line-height: 1.85;
}
.hero.article-hero .hero-subtitle strong,
.hero.article-hero .hero-text p strong {
  color: var(--brand-900);
  font-weight: 700;
}
.hero.article-hero .hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.breadcrumbs {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.breadcrumbs a {
  color: var(--ink-500);
  font-weight: 600;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--brand);
}

.article-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--ink-500);
  font-size: 13.5px;
}

.article-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 12.5px;
  border: 1px solid var(--brand-line);
}

/* ---------- 本文セクション ---------- */
.article {
  padding: 72px 0;
  background: var(--white);
}
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

/* ---------- 記事カード（本文ブロック・目次・サマリーに使用） ---------- */
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
}
.article-card h2,
.article-card h3 {
  color: var(--brand-900);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.5;
}
.article-card h2 {
  font-size: 24px;
  margin-top: 28px;
}
.article-card h3 {
  font-size: 19px;
  margin-top: 28px;
}
.article-card > h2:first-child,
.article-card > h3:first-child {
  margin-top: 0;
}
.article-card p {
  color: var(--ink-700);
  margin: 12px 0;
  font-size: 15.5px;
  line-height: 1.95;
}
.article-card ul,
.article-card ol {
  padding-left: 22px;
  margin: 14px 0;
  color: var(--ink-700);
  display: grid;
  gap: 8px;
}
.article-card li {
  line-height: 1.9;
  font-size: 15.5px;
}
.article-card strong {
  color: var(--brand-900);
  font-weight: 700;
}
.article-card a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 目次 ---------- */
.toc {
  border-left: 3px solid var(--brand);
  background: var(--tint-2);
  padding: 22px 24px 22px 26px;
  border-radius: var(--radius-sm);
  box-shadow: none;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toc-title {
  font-weight: 800;
  color: var(--brand-900);
  margin-bottom: 12px;
}
.toc ol,
.toc ul {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.toc a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.toc a:hover {
  text-decoration: underline;
}

/* ---------- コールアウト ---------- */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  color: var(--ink-700);
  line-height: 1.85;
}
.callout strong {
  color: var(--brand-900);
}

/* ---------- 本文テーブル ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin: 18px 0;
  -webkit-overflow-scrolling: touch;
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: var(--white);
  font-size: 13.5px;
  line-height: 1.7;
}
.article-table th,
.article-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: normal;
  color: var(--ink-700);
}
.article-table th {
  background: var(--tint-2);
  color: var(--brand-900);
  font-weight: 700;
}
.article-table tr:last-child td {
  border-bottom: none;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 26px 0;
}
.inline-kpi {
  display: inline-block;
  background: #fff8e1;
  border: 1px solid #ffe3a3;
  color: var(--warn);
  padding: 1px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9em;
}

/* ---------- 記事内CTAカード ---------- */
.article-cta {
  background: linear-gradient(160deg, var(--brand-900), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.article-cta h3 {
  color: #fff;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}
.article-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  line-height: 1.85;
}
.article-cta .cta-button-white {
  margin-right: 12px;
}

/* ---------- FAQ（article.njk：回答は常時表示。collapse は使わない） ---------- */
.faq-section {
  padding: 72px 0;
  background: var(--tint-2);
}
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 32px;
}
.faq-section .section-title {
  text-align: center;
  margin-bottom: 32px;
}
.faq-section .faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: visible;
  margin-bottom: 12px;
  padding: 22px 26px;
}
.faq-question {
  font-weight: 700;
  color: var(--brand-900);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.faq-answer {
  color: var(--ink-700);
  line-height: 1.9;
  font-size: 14.5px;
}
.faq-answer p {
  color: var(--ink-700);
  line-height: 1.9;
  margin: 0 0 10px;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- CTAセクション（記事末尾） ---------- */
.cta-section {
  padding: 80px 32px;
  background: linear-gradient(165deg, var(--brand-900), var(--brand) 130%);
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 32px;
  margin-bottom: 14px;
  font-weight: 900;
}
.cta-section p {
  font-size: 16px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.85);
}
.cta-section .cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-section .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  transition: background 0.12s ease;
}
.cta-section .secondary-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- 関連記事 ---------- */
.related-articles-section {
  background: var(--tint-2);
  padding: 64px 32px;
}
.related-articles-container {
  max-width: 1000px;
  margin: 0 auto;
}
.related-articles-title {
  font-size: 26px;
  color: var(--brand-900);
  font-weight: 800;
  margin-bottom: 28px;
  text-align: center;
}
.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-article-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.related-article-card:hover {
  box-shadow: var(--shadow-pop);
  transform: translateY(-3px);
}
.related-article-category {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-article-card h3 {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  color: var(--brand-900);
  font-weight: 700;
}
.related-article-card p {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.7;
  margin: 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 980px) {
  .hero.article-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .hero.article-hero {
    padding: 48px 0 40px;
  }
  .hero.article-hero .hero-content,
  .article-container,
  .faq-container {
    padding: 0 20px;
  }
  .hero.article-hero .hero-text h1 {
    font-size: 27px;
  }
  .article {
    padding: 52px 0;
  }
  .article-card {
    padding: 22px 20px;
  }
  .cta-section h2 {
    font-size: 25px;
  }
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   プレスリリース風レイアウト（news.njk 専用）
   ===================================================== */
.press {
  background: var(--white);
  padding: 56px 0 72px;
}
.press-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- ヘッダー ---------- */
.press-header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.press-header .breadcrumbs {
  font-size: 13px;
  color: var(--ink-500, var(--ink-700));
  margin-bottom: 18px;
}
.press-header .breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}
.press-date {
  display: block;
  font-size: 13.5px;
  color: var(--ink-700);
  letter-spacing: 0.02em;
}
.press-title {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--brand-900);
}
.press-badges {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.press-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: var(--accent-soft);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 4px 12px;
}
.press-lead {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-700);
}

/* ---------- 本文（カード装飾を打ち消してフラットに） ---------- */
.press-body .article-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 32px;
}
.press-body .article-card h2 {
  font-size: 21px;
  margin-top: 0;
}
.press-body .article-card p,
.press-body .article-card li {
  font-size: 15.5px;
}

/* ---------- 末尾CTA（小） ---------- */
.press-cta {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--tint-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.press-cta p {
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.8;
  margin-bottom: 12px;
}
.press-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}
.press-cta-link:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .press {
    padding: 40px 0 56px;
  }
  .press-container {
    padding: 0 20px;
  }
  .press-title {
    font-size: 24px;
  }
}
