/* ===============================================
   記事ページ専用スタイル - 統一版
   =============================================== */

/* ===============================
   グローバル設定
   =============================== */
:root {
  /* メンズ脱毛向けカラー */
  --primary-color: #1e40af; /* ダークブルー */
  --secondary-color: #0284c7; /* ライトブルー */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --bg-gray: #f8fafc;
}

.article-page {
  background: var(--bg-gray);
  padding: 0;
  margin: 0;
}

/* ===============================
   ヘッダー - 統一
   =============================== */
.article-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-logo a {
  color: white;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 20px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.header-nav a:hover {
  opacity: 0.8;
}

/* ===============================
   パンくずリスト - 統一
   =============================== */
.breadcrumb {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.breadcrumb span {
  color: #333;
  font-weight: 500;
}

.breadcrumb li::after {
  content: ">";
  margin: 0 8px;
  color: #999;
}

.breadcrumb li:last-child::after {
  content: "";
}

/* ===============================
   メインコンテンツ - 統一
   =============================== */
.article-main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-content {
  background: white;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===============================
   記事タイトル・メタ情報 - 統一
   =============================== */
.article-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===============================
   導入文 - 統一
   =============================== */
.article-intro {
  background: #f3f4f6;
  border-left: 4px solid var(--primary-color);
  padding: 24px;
  margin-bottom: 40px;
  border-radius: 8px;
  line-height: 1.8;
}

.article-intro p {
  margin-bottom: 12px;
  color: var(--text-primary);
}

.article-intro p:last-child {
  margin-bottom: 0;
}

/* ===============================
   診断ツールCTA - 統一
   =============================== */
.diagnostic-cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.diagnostic-cta h3 {
  color: white;
  margin-bottom: 12px;
  margin-top: 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.diagnostic-cta p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.btn-diagnostic {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 16px 48px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-diagnostic:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===============================
   目次 - 統一
   =============================== */
.toc {
  background: #fef3c7;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 48px;
}

.toc-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  color: var(--text-primary);
}

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

.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  padding-left: 0;
}

.toc ol li::before {
  content: counter(toc-counter) ". ";
  font-weight: 700;
  color: var(--primary-color);
}

.toc a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

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

/* ===============================
   セクション - 統一
   =============================== */
.article-section {
  margin-bottom: 56px;
}

.article-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
}

.article-section h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
}

.article-section p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-section ul,
.article-section ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-section li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* ===============================
   テーブル - 統一
   =============================== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--bg-gray);
}

/* ===============================
   ボックス系 - 統一
   =============================== */
.info-box {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.info-box h3,
.info-box h4 {
  margin-top: 0;
  color: var(--text-primary);
}

.info-box p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box ul,
.info-box ol {
  margin-bottom: 0;
}

.warning-box {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.warning-box h3,
.warning-box h4 {
  margin-top: 0;
  color: var(--text-primary);
}

.warning-box p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

.warning-box ul,
.warning-box ol {
  margin-bottom: 0;
}

.success-box {
  background: #d1fae5;
  border-left: 4px solid #10b981;
  padding: 20px 24px;
  border-radius: 8px;
  margin: 24px 0;
}

.success-box h3,
.success-box h4 {
  margin-top: 0;
  color: var(--text-primary);
}

.success-box p {
  margin-bottom: 12px;
  line-height: 1.8;
}

.success-box p:last-child {
  margin-bottom: 0;
}

.success-box ul,
.success-box ol {
  margin-bottom: 0;
}

/* ===============================
   FAQ - 統一
   =============================== */
.faq-section {
  margin-top: 56px;
}

.faq-item {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
}

.faq-item h3::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.faq-item p {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  line-height: 1.8;
}

.faq-item p:first-of-type strong {
  color: var(--success-color);
}

/* ===============================
   関連記事 - 統一
   =============================== */
.related-articles {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 2px solid var(--border-color);
}

.related-articles h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.related-articles ul {
  list-style: none;
  padding-left: 0;
}

.related-articles li {
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
}

.related-articles li::before {
  content: "📄";
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.related-articles a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.related-articles a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===============================
   フッター - 統一
   =============================== */
.article-footer {
  background: #1f2937;
  color: white;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.copyright {
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ===============================
   レスポンシブ対応
   =============================== */
@media (max-width: 768px) {
  .article-content {
    padding: 24px 20px;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .article-section h2 {
    font-size: 1.4rem;
  }

  .article-section h3 {
    font-size: 1.2rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 12px;
  }

  .header-nav {
    gap: 16px;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  .diagnostic-cta {
    padding: 24px 20px;
  }

  .diagnostic-cta h3 {
    font-size: 1.3rem;
  }

  .btn-diagnostic {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===============================
   関連記事セクション
   =============================== */
.related-articles {
  background: #fff;
  padding: 48px 0;
  margin: 48px 0;
  border-top: 3px solid var(--primary-color);
}

.related-articles h2 {
  text-align: center;
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.related-articles-grid {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.related-article-card {
  display: block;
  background: #fff;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.related-article-card:hover {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
  border-left-width: 6px;
}

.related-article-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-article-card:hover h3 {
  text-decoration: underline;
}

.related-article-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 最後の診断CTA */
.final-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  margin: 48px 0;
  padding: 48px 32px;
}

.final-cta h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.cta-features {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 24px 0;
  flex-wrap: wrap;
}

.cta-feature {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
}

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

  .related-article-card {
    padding: 20px;
  }

  .final-cta {
    padding: 32px 20px;
  }

  .final-cta h3 {
    font-size: 1.4rem;
  }

  .cta-features {
    gap: 12px;
  }
}
