/* =============================================================
   WellCon Theme - Main CSS
   Tailwind CSS はfunctions.phpでCDN読み込み済み
   CSS変数・カスタムスタイルのみここで定義
============================================================= */

/* ---- CSS Variables ---- */
:root {
  --color-orange: #ff6600;
  --color-orange-dark: #e55500;
  --color-orange-light: #fff3eb;
  --color-orange-mid: #ffd6b3;
  --color-brand-dark: #1a1a1a;
  --color-brand-gray: #555555;
  --color-brand-gray-light: #f5f5f5;

  --font-sans: "Noto Sans JP", sans-serif;
  --font-display: "Oswald", sans-serif;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-brand-dark);
  line-height: 1.7;
}

/* ---- FAQ Accordion ---- */
.faq-answer {
  display: none;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* ---- Program Tabs ---- */
[data-tab-btn].active {
  background-color: #ff6600;
  color: #ffffff;
}

/* ---- Utility ---- */
.font-display {
  font-family: var(--font-display);
}

/* ---- Contact Form 7 スタイル上書き ---- */
/* 親のtext-whiteを打ち消すため最大限の詳細度で指定 */
body .wpcf7 input[type="text"],
body .wpcf7 input[type="email"],
body .wpcf7 input[type="tel"],
body .wpcf7 input[type="number"],
body .wpcf7 input[type="url"],
body .wpcf7 select,
body .wpcf7 textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  color: #1a1a1a !important;
  background-color: #ffffff !important;
  -webkit-text-fill-color: #1a1a1a !important;
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #ff6600;
}
.wpcf7-form input[type="submit"] {
  width: 100%;
  background-color: #ff6600 !important;
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.875rem 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: background-color 0.2s;
  box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
}
.wpcf7-form input[type="submit"]:hover {
  background-color: #e55500 !important;
}
.wpcf7-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.375rem;
}
.wpcf7-form .wpcf7-not-valid-tip {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.wpcf7-form .wpcf7-response-output {
  border: none !important;
  font-size: 0.8rem;
  margin: 0.5rem 0 0 !important;
  padding: 0.5rem !important;
  border-radius: 0.5rem;
}

/* ---- Blog prose-like styles ---- */
/* プラグイン上書き対策：詳細度を最大化して!importantで強制適用 */
body .blog-content h2,
body .entry-content h2,
body .post-content h2 {
  font-size: 1.2rem !important;
  font-weight: 900 !important;
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  color: #1a1a1a !important;
  border-left: 4px solid #ff6600 !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  background: #fff3eb !important;
  padding: 0.65rem 1rem !important;
  border-radius: 0 0.375rem 0.375rem 0 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  counter-reset: none !important;
}
body .blog-content h2::before,
body .entry-content h2::before,
body .blog-content h2::after,
body .entry-content h2::after {
  display: none !important;
  content: none !important;
}
body .blog-content h3,
body .entry-content h3,
body .post-content h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  color: #1a1a1a !important;
  border-left: 3px solid #ffd6b3 !important;
  border-bottom: none !important;
  border-top: none !important;
  border-right: none !important;
  background: transparent !important;
  padding: 0.25rem 0 0.25rem 0.75rem !important;
  border-radius: 0 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
}
body .blog-content h3::before,
body .entry-content h3::before,
body .blog-content h3::after,
body .entry-content h3::after {
  display: none !important;
  content: none !important;
}
.blog-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.blog-content strong {
  color: #1a1a1a;
  font-weight: 700;
}
.blog-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}
.blog-content ol {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}
.blog-content li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
}
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}
.blog-content th,
.blog-content td {
  border: 1px solid #e5e7eb;
  padding: 0.6rem 0.75rem;
  text-align: left;
}
.blog-content th {
  background: #f5f5f5;
  font-weight: 700;
  color: #1a1a1a;
}

/* ---- Table of Contents プラグイン スタイル上書き ---- */
/* Table of Contents Plus (#toc_container) */
#toc_container,
/* Easy Table of Contents */
.ez-toc-container,
div.ez-toc-v2_0_37,
/* LuckyWP Table of Contents */
.luckywp-tableofcontents,
/* Rank Math TOC */
.rank-math-toc {
  background: #fff3eb !important;
  border: none !important;
  border-left: 4px solid #ff6600 !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
  padding: 1.25rem 1.5rem !important;
  margin: 2rem 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
  font-family: "Noto Sans JP", sans-serif !important;
}

/* タイトル */
#toc_container p.toc_title,
.ez-toc-title,
.ez-toc-title-container,
.luckywp-tableofcontents__heading,
.rank-math-toc h5 {
  color: #ff6600 !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

/* リスト全体 */
#toc_container ul.toc_list,
.ez-toc-list,
.luckywp-tableofcontents__list,
.rank-math-toc ul {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* リストアイテム */
#toc_container ul.toc_list li,
#toc_container ul.toc_list ul li,
.ez-toc-list li,
.ez-toc-list ul li,
.luckywp-tableofcontents__list li,
.rank-math-toc ul li {
  margin: 0.35rem 0 !important;
  padding: 0 !important;
  list-style: none !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

/* ネストリスト（h3など） */
#toc_container ul.toc_list ul,
.ez-toc-list ul,
.luckywp-tableofcontents__list ul,
.rank-math-toc ul ul {
  margin: 0.25rem 0 0.25rem 1rem !important;
  padding: 0 !important;
}

/* リンク */
#toc_container ul.toc_list a,
.ez-toc-list a,
.luckywp-tableofcontents__list a,
.rank-math-toc ul a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s !important;
}
#toc_container ul.toc_list a:hover,
.ez-toc-list a:hover,
.luckywp-tableofcontents__list a:hover,
.rank-math-toc ul a:hover {
  color: #ff6600 !important;
  text-decoration: underline !important;
}

/* TOC番号スタイル */
#toc_container .toc_number,
.ez-toc-list-item-number {
  color: #ff6600 !important;
  font-weight: 700 !important;
  margin-right: 0.25rem !important;
}

/* ===== 著者byline ===== */
.author-byline {
  font-size: 0.8rem;
  color: #888;
  margin: 0.25rem 0 1rem;
}
.author-byline a {
  color: #ff6600;
  text-decoration: none;
  font-weight: 600;
}
.author-byline a:hover {
  text-decoration: underline;
}

/* ===== この記事でわかること（CTR・AIO向け） ===== */
.article-points {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.article-points strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.6rem;
}
.article-points ul {
  margin: 0;
  padding-left: 1.2rem;
}
.article-points ul li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0.2rem;
}
.article-points ul li::marker {
  color: #ff6600;
}

/* ===== 記事内 比較テーブル ===== */
.entry-content table,
article.post table,
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.entry-content table th,
article.post table th,
.post-content table th {
  background: #ff6600;
  color: #fff;
  font-weight: 700;
  padding: 0.6rem 0.8rem;
  text-align: left;
}
.entry-content table td,
article.post table td,
.post-content table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #eee;
  color: #333;
  vertical-align: top;
}
.entry-content table tr:nth-child(even) td,
article.post table tr:nth-child(even) td,
.post-content table tr:nth-child(even) td {
  background: #fdf6f0;
}

/* ===== Summary Box（AIO・AI Overview向け答え先行ボックス） ===== */
.summary-box {
  background: #fff8f3;
  border-left: 4px solid #ff6600;
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  border-radius: 0 6px 6px 0;
}
.summary-box strong {
  display: block;
  color: #ff6600;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.summary-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

/* ===== FAQ DL スタイル（FAQPage Schema対応・AIO引用最適化） ===== */
.entry-content dl,
article.post dl,
.post-content dl {
  border: 1px solid #ffe4cc;
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}
.entry-content dl dt,
article.post dl dt,
.post-content dl dt {
  background: #fff3eb;
  color: #cc4400;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid #ffe4cc;
  margin: 0;
}
.entry-content dl dt:first-of-type,
article.post dl dt:first-of-type,
.post-content dl dt:first-of-type {
  border-top: none;
}
.entry-content dl dd,
article.post dl dd,
.post-content dl dd {
  padding: 0.65rem 1rem 0.9rem;
  margin: 0;
  line-height: 1.75;
  color: #444;
  font-size: 0.95rem;
  border-top: 1px solid #fff0e6;
  background: #fff;
}
