/* --------------------------------------------------
記事専用スタイル
-------------------------------------------------- */

:root {
  --article-color-primary: #35629a;
  --article-color-secondary: #87b7eb;
  --article-color-accent: #e3d0c3;
  --article-color-text: #333;
  --article-color-heading: #c2aa99;
  --article-color-background: #f8f9fa;
  --article-color-border: #e9ecef;
  --article-color-highlight: #fff3cd;
}

/* 記事本文の基本スタイル */
.article-content {
  color: var(--article-color-text);
  line-height: 1.8;
  letter-spacing: 0.08em;
}

/* --- 見出しスタイル --------------------------- */

.article-content h2 {
  font-size: 1.7em;
  font-weight: 700;
  margin: 3em 0 1.5em;
  position: relative;
  color: var(--article-color-heading);
  padding-bottom: 0.5em;
}
.article-content h2::after {
  content: "";
  display: block;
  width: 4em;
  height: 4px;
  background: linear-gradient(90deg, var(--article-color-heading), #fff3cd);
  margin-top: 0.5em;
  border-radius: 2px;
}

.article-content h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin: 2em 0 1em;
  color: var(--article-color-text);
  border-bottom: 2px solid var(--article-color-border);
  padding-bottom: 0.5em;
}

.article-content h4 {
  font-size: 1.1em;
  font-weight: 600;
  margin: 1.5em 0 0.8em;
  color: var(--article-color-text);
}

/* --- 基本テキストスタイル ----------------------- */
.article-content p {
  margin: 1.2em 0;
  line-height: 1.8;
}

.article-content a {
  color: var(--article-color-primary);
  text-decoration: none;
  font-weight: 500;
}
.article-content a:hover {
  text-decoration: underline;
  color: var(--article-color-secondary);
}

/* 強調テキスト */
strong {
  background:linear-gradient(transparent 70%, #fff3cd 0%);
}

/* リストスタイル */
.article-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 脚注リンク/出典リスト */
.article-content .article-cite {
  font-size: 0.9em;
  text-decoration: none;
  margin-left: 2px;
  color: var(--article-color-heading);
}

/* --- 画像スタイル ------------------------------ */
.article-content .article-content-image {
  margin: 2.5em 0;
  text-align: center;
}

.article-content .article-content-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.article-content figcaption {
  font-size: 0.9em;
  color: #6c757d;
  margin-top: 1em;
  font-style: italic;
  padding: 0 1em;
}

/* --- リードテキスト --------------------------- */
.article-content .article-lead-text {
  font-size: 1.1em;
  color: #495057;
  background: var(--article-color-background);
  padding: 1.5em;
  margin: 2em 0;
  /* border-left: 4px solid #0068d9; */
}

/* --- 目次 ------------------------------------ */
.article-content .article-toc {
  background: var(--article-color-background);  
  border: 1px solid #e9ecef;
  padding: 1.5em;
  margin: 2em 0;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.08); */
}

.article-content .article-toc h2 {
  margin-top: 0;
  color: var(--article-color-heading);
  text-align: center;
  padding: 0 0 0.5rem 0;
  text-align: left;
}

.article-content .article-toc h3 {
  margin-top: 0;
  color: var(--article-color-heading);
  text-align: center;
  padding: 0 0 0.5rem 0;
}

.article-content .article-toc ol,
.article-content .article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); */
  gap: 1rem;
}

.article-content .article-toc ol li,
.article-content .article-toc ul li {
  line-height: 1.5;
}

.article-content .article-toc a {
  padding: 0.8rem 1.2rem;
  /* border: 2px solid var(--article-color-primary); */
  /* border-radius: 25px; */
  font-size: 0.9rem;
  display: block;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
}
.article-content .article-toc a:hover {
  background: var(--article-color-heading);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,104,217,0.3);
}

/* --- ハイライトボックス -------------------------- */
.article-content .article-highlight-box {
  background: var(--article-color-background);
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.article-content .article-highlight-box h4 {
  margin-top: 0;
}

.article-content .article-highlight-box h4::before {
  content: "💡";
  top: 1em;
  left: 1em;
  font-size: 1.2rem;
}

/* --- ステップリスト ------------------------------ */
.article-content .article-steps-list {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 0 4px;
}

.article-content .article-steps-list li {
  counter-increment: step-counter;
  margin: 1.5em 0;
  padding: 2.5em 1em 1em;
  background: #f8f9fa;
  border: 2px solid var(--article-color-heading);
  position: relative;
}

.article-content .article-steps-list li::before {
  content: "Step " counter(step-counter);
  position: absolute;
  top: -0.8em;
  left: -6px;
  background: var(--article-color-heading);
  color: #fff;
  padding: 0.2em 1em;
  font-size: 0.8rem;
  font-weight: 600;
}

.article-content .article-steps-list li h4{
  margin-top: 0;
}

/* --- 比較テーブル ------------------------------ */
.article-content .article-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--article-color-primary);
}

.article-content .article-comparison-table th,
.article-content .article-comparison-table td {
  padding: 1em;
  text-align: left;
  border: 1px solid var(--article-color-primary);
}

.article-content .article-comparison-table th {
  background: var(--article-color-primary);
  border-right: 1px solid var(--article-color-border);
  color: #fff;
  font-weight: 600;
}
.article-content .article-comparison-table th:last-child {
  border-right: 1px solid var(--article-color-primary);
}

.article-content .article-comparison-table tr:hover {
  background: #f8f9fa;
}

/* --- FAQセクション ------------------------------ */
.article-content .article-faq-section {
  padding: 0 ;
  margin: 0;
}

.article-content .article-faq-section h2 {
  margin-top: 0;
  text-align: center;
}

/* FAQ section内のh3（質問）のスタイル */
.article-content .article-faq-section h3.article-faq-question {
  font-weight: 600;
  margin-bottom: 0;
  font-size: 1.1em;
  cursor: pointer;
  padding: 1.2em;
  background: #f8f9fa;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  margin-top: 1em;
}

.article-content .article-faq-section h3.article-faq-question:first-child {
  margin-top: 1rem;
}

.article-content .article-faq-section h3.article-faq-question:hover {
  background: #e9ecef;
}

.article-content .article-faq-section h3.article-faq-question::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.article-content .article-faq-section h3.article-faq-question.active::after {
  content: "−";
  transform: translateY(-50%) rotate(0deg);
}

/* FAQ section内のp（回答）のスタイル */
.article-content .article-faq-section p.article-faq-answer {
  color: #495057;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.article-content .article-faq-section p.article-faq-answer.active {
  max-height: 500px;
  opacity: 1;
  padding: 1.2rem;
}

/* --- まとめセクション ------------------------------ */
.article-content .article-summary-section {
  background: var(--article-color-background);
  padding: 1.5em;
  margin: 3em 0;
}

.article-content .article-summary-section h2 {
  margin-top: 0;
  color: var(--article-color-heading);
  text-align: center;
}

/* --- CTAセクション ------------------------------ */
.article-content .article-cta-section {
  background: var(--article-color-primary);
  color: #fff;
  padding: 1.5em;
  margin: 2.5em 0;
  text-align: center;
}

.article-content .article-cta-section h2 {
  color: #fff;
  margin-top: 0;
}

.article-content .article-cta-section h2::after {
  display: none;
}

.article-content .article-cta-button {
  display: inline-block;
  background: #fff;
  color: var(--article-color-primary);
  padding: 1.2em 2.5em;
  border-radius: 30px;
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.article-content .article-cta-button:hover {
  transform: translateY(2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* --- 参考資料セクション ------------------------------ */
.article-content .article-reference-section {
  background: #f8f9fa;
  border-left: 4px solid var(--article-color-heading);
  padding: 1.5em;
  margin: 3em 0;
}

.article-content .article-reference-section h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.article-content .article-reference-section ul {
  margin: 1.5em 0 0;
  padding-left: 2em;
}

.article-content .article-reference-section li {
  margin-bottom: 0.8em;
}

/* 著者情報 */
.article-content .article-author-info {
  background: #f8f9fa;
  padding: 1.5em;
  margin: 3em 0;
  text-align: center;
}

.article-content .article-author-info h3 {
  margin-top: 0;
  color: var(--article-color-heading);
}

.article-content .article-author-info p {
  font-size: 0.9rem;
  color: #6c757d;
  margin: 0.5rem 0;
}

/* --- 信頼性情報 ------------------------------ */
.article-content .article-reliability-info {
  background: var(--article-color-background);
  border: 1px solid var(--article-color-border);
  padding: 0 1.5em;
  margin: 2em 0;
}

.article-content .article-reliability-info h3 {
  color: var(--article-color-heading);
  margin-top: 0;
  font-size: 1.2em;
}

.article-content .article-reliability-info ul,
.article-content .article-reliability-info ol {
  margin: 1em 0 0;
  padding-left: 1.5em;
}

.article-content .article-reliability-info li {
  margin-bottom: 0.5em;
}

.article-content .article-citations {
  margin: 1em 0 0 1.25em;
  padding-left: 1.25em;
}

.article-content .article-citations li {
  margin: 0.4em 0;
}

.article-content .article-reliability-info li br {
  display: none;
}

.article-content .article-citations .fn-back {
  margin-left: 0.5em;
  font-size: 0.9em;
  text-decoration: none;
}

.article-content .article-citations .fn-back:hover {
  text-decoration: underline;
}

/* --- 引用ブロック ------------------------------ */
.article-content .article-quote {
  background: #f8f9fa;
  border-left: 4px solid var(--article-color-heading);
  padding: 1em 1.25em;
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
}

.article-content .article-quote p {
  margin: 0.5em 0;
}

.article-content .article-quote .quote-source {
  display: block;
  color: var(--article-color-text);
  font-size: 0.9em;
  margin-top: 0.25em;
}

/* --- 著者情報セクション（single.php用） ------------------------------ */
.article-author-section {
  margin: 0;
}

.article-author-card {
  background: var(--article-color-background);
  border: 1px solid var(--article-color-border);
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0,104,217,0.1);
}

.article-author-card .author-info {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.article-author-card .name {
  font-weight: 700;
  color: var(--article-color-heading);
  font-size: 1.2em;
  margin-bottom: 0.5em;
}

.article-author-card .role {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.4;
}

.article-author-card .awards {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--article-color-border);
}

.article-author-card .awards h4 {
  color: var(--article-color-heading);
  font-size: 1em;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}

.article-author-card .awards ul {
  margin: 0;
  padding-left: 1.25em;
}

.article-author-card .awards li {
  color: #495057;
  font-size: 0.9em;
  margin-bottom: 0.25em;
  line-height: 1.4;
}

/* --- 最終更新日 ------------------------------ */
.article-content .article-last-updated {
  text-align: right;
  font-size: 0.9rem;
  color: #6c757d;
  margin: 1rem 0;
  font-style: italic;
}

/* --- 専門家バッジ❌ ------------------------------ */
.article-content .article-expert-badge {
  background: #f0f7ff;
  border: 1px solid var(--article-color-highlight);
  padding: 1em;
  margin: 1.5em 0;
  text-align: center;
}

.article-content .article-expert-badge p {
  margin: 0;
  color: var(--article-color-heading);
  font-weight: 500;
}

/* --------------------------------------------------
ブログカード関連スタイル
-------------------------------------------------- */

/* 関連記事セクション */
.article-content .article-related-section {
  background: #f8f9fa;
  padding: 1.5em;
  margin: 3em 0;
}

.article-content .article-related-section h2 {
  margin-top: 0;
  text-align: center;
  color: var(--article-color-heading);
}

/* ブログカード基本スタイル */
.article-content .article-blog-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 2rem 0;
}

.article-content .article-blog-card:hover {
  border-color: var(--article-color-primary);
  box-shadow: 0 2px 8px rgba(0,104,217,0.1);
}

/* ブログカードリンク */
.article-content .blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.article-content .blog-card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* PC用レイアウト */
.article-content .blog-card-pc-layout {
  display: none;
  align-items: stretch;
  gap: 0;
}

/* モバイル用レイアウト */
.article-content .blog-card-mobile-layout {
  display: none;
}

/* ブログカード画像 */
.article-content .blog-card-image {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  flex-shrink: 0;
}

.article-content .blog-card-pc-layout .blog-card-image {
  width: 25%;
}

.article-content .blog-card-mobile-layout .blog-card-image {
  width: 30%;
}

.article-content .blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-content .article-blog-card:hover .blog-card-image img {
  transform: scale(1.02);
}

/* ブログカードコンテンツ */
.article-content .blog-card-content {
  flex: 1;
  padding: 0.5em;
}

/* ブログカードタイトル */
.article-content .blog-card-title {
  font-size: 1em;
  font-weight: 700;
  color: var(--article-color-heading);
  margin: 0;
  line-height: 1.3;
  padding: 0;
}

.article-content .article-blog-card:hover .blog-card-title {
  color: var(--article-color-primary);
}

/* ブログカード抜粋 */
.article-content .blog-card-excerpt {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
  margin: 0.5em 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* URL表示 */
.article-content .blog-card-url {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.5rem;
  word-break: break-all;
}

/* レスポンシブ対応 - 改善版 */
@media (max-width: 768px) {

  /* ブログカード レスポンシブ対応 */
  .article-content .article-related-section {
    padding: 2rem;
    margin: 2.5rem 0;
  }

  /* モバイル時は全体的に文字を小さく */
  .article-content .article-blog-card {
    font-size: 0.8em;
  }

  /* PC用レイアウトを非表示 */
  .article-content .blog-card-pc-layout {
    display: none;
  }

  /* モバイル用レイアウトを表示 */
  .article-content .blog-card-mobile-layout {
    display: block;
  }

  .article-content .blog-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
  }

  .article-content .blog-card-title {
    font-size: 1.1em;
    flex: 1;
    padding: 0.5em;
    margin: 0 auto;
  }

  .article-content .blog-card-body {
    width: 100%;
    padding: 0.5em;
  }

  .article-content .blog-card-excerpt {
    font-size: 0.85em;
    margin-bottom: 0.8rem;
  }

  .article-content .blog-card-url {
    font-size: 0.7em;
  }
}

/* 中画面対応（768px〜1024px） */
@media (min-width: 769px) {
  PC用レイアウトを表示
  .article-content .blog-card-pc-layout {
    display: flex;
  }

  /* モバイル用レイアウトを非表示 */
  .article-content .blog-card-mobile-layout {
    display: none;
  }
}

/* 大画面対応 */
@media (min-width: 1025px) {
  .article-content {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .article-content .article-toc ul {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* PC用レイアウトを表示 */
  .article-content .blog-card-pc-layout {
    display: flex;
  }

  /* モバイル用レイアウトを非表示 */
  .article-content .blog-card-mobile-layout {
    display: none;
  }
}

 