/* =========================================================
   AIの窓口 — 記事ページ専用スタイル（読みやすさ最優先）
   ========================================================= */

.article-page {
  min-height: 100vh;
}

.article-main {
  padding-top: var(--header-h);
  max-width: 780px;
  margin: 0 auto;
  padding-left: max(20px, 4vw);
  padding-right: max(20px, 4vw);
  padding-bottom: 80px;
}

.article-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  padding: 60px clamp(28px, 5vw, 56px);
  box-shadow: 0 14px 40px rgba(180, 200, 220, 0.18);
  margin-top: 40px;
}

/* ─── ヘッダー ─── */
.article-header {
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px dashed rgba(180, 200, 220, 0.4);
  position: relative;
}

.article-eyebrow {
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0.06em;
  color: var(--deep-sky);
  line-height: 1.55;
  margin-bottom: 24px;
}

.article-title-em {
  background: linear-gradient(135deg, var(--deep-sky) 0%, var(--gold-deep) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.article-meta {
  font-family: var(--serif-jp);
  font-size: 13px;
  color: var(--whisper);
  letter-spacing: 0.05em;
}

.article-sora {
  margin-top: 24px;
}

.article-sora img {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 8px 22px rgba(244, 211, 94, 0.4));
  animation: floatY 7s ease-in-out infinite;
}

/* ─── 目次 ─── */
.article-toc {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(244, 211, 94, 0.08));
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 32px 0;
}

.article-toc-title {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-sky);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.article-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.article-toc ol li {
  counter-increment: toc-counter;
  font-family: var(--serif-jp);
  font-size: 14px;
  line-height: 1.85;
  color: var(--deep-sky);
  letter-spacing: 0.04em;
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
}

.article-toc ol li::before {
  content: counter(toc-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--deep-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif-lat);
  font-size: 11px;
  font-weight: 700;
}

.article-toc ol li a {
  color: var(--deep-sky);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.25s ease;
}

.article-toc ol li a:hover {
  border-bottom-color: var(--gold-deep);
}

/* ─── 本文 ─── */
.article-section {
  margin-bottom: 48px;
}

.article-section h2 {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--deep-sky);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.article-section h3 {
  font-family: var(--serif-jp);
  font-weight: 700;
  font-size: 18px;
  color: var(--deep-sky);
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.article-section p {
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 2.05;
  color: var(--deep-sky);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.article-section p strong {
  color: var(--deep-sky);
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.35) 60%);
  font-weight: 700;
}

.article-lead {
  font-size: 16px !important;
  font-weight: 500;
  color: var(--deep-sky);
  background: rgba(244, 211, 94, 0.06);
  padding: 18px 22px;
  border-radius: 14px;
  border-left: 3px solid var(--gold);
}

/* リスト */
.article-section ul,
.article-section ol {
  padding-left: 24px;
  margin: 16px 0 20px;
}

.article-section ul li,
.article-section ol li {
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--deep-sky);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.article-section ul li strong,
.article-section ol li strong {
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.3) 60%);
  font-weight: 700;
}

/* ─── 強調・コールアウト ─── */
.article-emphasis {
  font-size: 17px !important;
  text-align: center;
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.12), rgba(252, 213, 206, 0.12));
  padding: 24px 28px;
  border-radius: 18px;
  margin: 24px 0;
  border: 1.5px solid rgba(244, 211, 94, 0.5);
  line-height: 1.95 !important;
}

.article-callout {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 14px;
}

.article-callout-warning {
  background: rgba(244, 162, 97, 0.1);
  border-left: 4px solid #f4a261;
}

.article-callout-emphasis {
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.12), rgba(252, 213, 206, 0.1));
  border-left: 4px solid var(--gold);
}

.article-callout-title {
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 700;
  color: var(--deep-sky);
  letter-spacing: 0.06em;
  margin-bottom: 10px !important;
}

.article-callout p {
  font-size: 14.5px !important;
  line-height: 1.95 !important;
  margin-bottom: 0 !important;
}

/* チェックリスト */
.article-checklist {
  margin: 24px 0;
}

.article-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid rgba(180, 200, 220, 0.3);
}

.article-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--deep-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.article-check-item p {
  flex: 1;
  font-size: 14px !important;
  line-height: 1.85 !important;
  margin: 0 !important;
}

/* ─── 記事内CTA ─── */
.article-cta {
  margin: 48px 0;
  padding: 40px 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(244, 211, 94, 0.12));
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(244, 211, 94, 0.2);
}

.article-cta-text {
  font-family: var(--serif-jp);
  font-size: 16px !important;
  line-height: 2 !important;
  color: var(--deep-sky);
  letter-spacing: 0.04em;
  margin-bottom: 14px !important;
}

.article-cta-text strong {
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.4) 60%);
  font-weight: 700;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  margin: 18px 0;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--deep-sky);
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--serif-jp);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(244, 211, 94, 0.4);
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(244, 211, 94, 0.55);
}

.article-cta-btn .arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.article-cta-btn:hover .arrow {
  transform: translateX(4px);
}

.article-cta-note {
  font-size: 13px !important;
  color: var(--whisper);
  letter-spacing: 0.04em;
  line-height: 1.85 !important;
  margin-top: 14px !important;
}

/* ─── 関連記事 ─── */
.article-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px dashed rgba(180, 200, 220, 0.4);
}

.article-related h2 {
  font-family: var(--serif-jp);
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-sky);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}

.article-related p {
  font-family: var(--serif-jp);
  font-size: 14px;
  line-height: 2;
  color: var(--soft-ink);
  letter-spacing: 0.04em;
}

/* ─── レスポンシブ ─── */
@media (max-width: 600px) {
  .article-content {
    padding: 36px 24px;
    border-radius: 18px;
  }

  .article-cta {
    padding: 32px 22px;
  }
}
