/* article.css — 記事ページ専用スタイル
 * style.css の CSS変数を継承する前提
 * 追加クラス: .article-nav, .article-hero, .toc,
 *             .article-body, .reply-example-box,
 *             .faq-item, .related-articles
 */

/* ======= パンくずナビ ======= */
.article-nav {
  background: var(--dark-light);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  font-size: 13px;
  color: var(--gray);
}

.article-nav .container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.article-nav a {
  color: var(--primary);
  text-decoration: none;
}

.article-nav a:hover {
  text-decoration: underline;
}

.article-nav .sep {
  color: var(--gray-light);
}

.article-nav .current {
  color: var(--text-body);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ======= 記事ヒーロー ======= */
.article-hero {
  background: var(--gradient-primary);
  padding: 64px 0 56px;
  color: var(--white);
}

.article-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-tags .tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.article-hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.article-lead {
  font-size: 16px;
  line-height: 1.9;
  opacity: 0.92;
  max-width: 720px;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 13px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-meta::before {
  content: "🗓";
}

/* ======= 目次 ======= */
.toc {
  padding: 40px 0;
  background: var(--dark-light);
  border-bottom: 1px solid #e2e8f0;
}

.toc-inner {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 760px;
}

.toc-inner h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-inner h2::before {
  content: "📋";
}

.toc-inner ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-inner ol li a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
}

.toc-inner ol li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ======= 記事本文 ======= */
.article-body {
  padding: 60px 0;
}

.article-body .content-wrap {
  max-width: 760px;
}

.article-body h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--text-dark);
  margin: 52px 0 20px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  line-height: 1.5;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--text-dark);
  margin: 36px 0 14px;
}

.article-body p {
  color: var(--text-body);
  line-height: 1.95;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--text-body);
}

.article-body li {
  line-height: 1.9;
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--text-dark);
  font-weight: 700;
}

/* ポイントボックス */
.point-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}

.point-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* NG例ボックス */
.ng-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0;
}

.ng-box-title {
  font-size: 15px;
  font-weight: 700;
  color: #e53e3e;
  margin-bottom: 12px;
}

/* ======= 返信例文カード ======= */
.reply-example-box {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.reply-example-header {
  background: var(--gradient-primary);
  padding: 14px 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-example-body {
  padding: 0;
}

.review-side,
.reply-side {
  padding: 20px 24px;
}

.review-side {
  background: #fff8f8;
  border-bottom: 1px dashed #e2e8f0;
}

.review-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.review-stars {
  color: #f97316;
  font-size: 18px;
  margin-bottom: 8px;
}

.review-text {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.8;
  font-style: italic;
}

.reply-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reply-text {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.9;
}

/* ======= FAQ ======= */
.article-faq {
  background: var(--dark-light);
  padding: 60px 0;
}

.article-faq .content-wrap {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.faq-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 20px 24px;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: default;
}

.faq-q::before {
  content: "Q";
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.faq-a {
  color: var(--text-body);
  padding: 0 24px 20px 60px;
  font-size: 14px;
  line-height: 1.9;
  border-top: 1px solid #f1f5f9;
}

/* ======= 関連記事 ======= */
.related-articles {
  padding: 60px 0;
}

.related-articles h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 28px;
  text-align: center;
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .article-cards {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-card-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.article-card-tag {
  background: var(--dark-light);
  color: var(--gray);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.article-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.6;
}

/* ======= CTA Section（LP同一） ======= */
.cta-section {
  background: var(--gradient-primary);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
}

.cta-subtext {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* ======= 記事フッター ======= */
.article-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
}

.article-footer img {
  height: 40px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.85;
}

/* ======= サイドバー付きレイアウト ======= */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

.article-sidebar {
  position: sticky;
  top: 24px;
}

.sidebar-cta {
  background: var(--gradient-primary);
  border-radius: 16px;
  padding: 28px 24px;
  color: var(--white);
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.7;
}

.sidebar-cta a {
  display: block;
  background: var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
}

/* ======= レスポンシブ補完 ======= */
@media (max-width: 768px) {
  .article-hero {
    padding: 48px 0 40px;
  }

  .article-body h2 {
    margin-top: 40px;
  }

  .review-side,
  .reply-side {
    padding: 16px 18px;
  }

  .faq-a {
    padding-left: 18px;
  }
}
