/* ==========================================================
   悩みスイッチ — オウンドメディア共通CSS
   案件ごとにアクセントカラーを変えて使う
   ========================================================== */

:root {
  /* 共通カラー */
  --bg: #FAFAFA;
  --bg-white: #FFFFFF;
  --text: #1a1a2e;
  --text-light: #4a5568;
  --text-muted: #94a3b8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  /* LP連動アクセント（ネイビー系） */
  --accent: #243352;
  --accent-light: #E8EDF5;
  --accent-dark: #1a2744;

  /* CTA（LP連動 — 暖色レッド） */
  --cta: #c0392b;
  --cta-hover: #a93226;

  /* LP連動 追加カラー */
  --gold: #d4a020;
  --warning-red: #c0392b;
  --point-teal: #2a8c82;

  /* タイポ */
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

/* ── リセット ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── レイアウト ── */
.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── ヘッダー ── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.site-logo:hover { text-decoration: none; }
.site-nav { display: flex; gap: 20px; font-size: 0.875rem; }
.site-nav a { color: var(--text-light); }

/* ── パンくず ── */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { margin: 0 6px; }

/* ── PR表記 ── */
.pr-notice {
  background: var(--border-light);
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-radius: 4px;
  margin-bottom: 24px;
}

/* ── 記事メタ ── */
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.article-tag {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ── 記事タイトル ── */
.article-title {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 32px;
  font-family: var(--font-serif);
}
@media (max-width: 768px) {
  .article-title { font-size: 1.4rem; }
}

/* ── 目次 ── */
.article-toc {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.article-toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}
.article-toc li {
  counter-increment: toc;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.article-toc li::before {
  content: counter(toc) ". ";
  color: var(--accent);
  font-weight: 700;
}
.article-toc li a { color: var(--text); }
.article-toc li a:hover { color: var(--accent); }
.toc-sub { padding-left: 20px; margin-top: 4px; }
.toc-sub li { font-size: 0.85rem; }
.toc-sub li::before { content: "- "; color: var(--text-muted); font-weight: 400; }

/* ── 記事本文 ── */
.article-body { margin-bottom: 48px; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--accent);
  font-family: var(--font-serif);
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-light);
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px 24px;
}
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--text); }
.article-body blockquote {
  background: var(--border-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-light);
}

/* ── ポイントボックス ── */
.point-box {
  background: var(--accent-light);
  border-left: 4px solid var(--point-teal);
  border-radius: 0 8px 8px 0;
  padding: 20px 20px 20px 20px;
  margin: 24px 0;
}
.point-box-title {
  font-weight: 700;
  color: var(--point-teal);
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.point-box-title::before {
  content: "\1F4A1"; /* 💡 */
  font-size: 1.1em;
}

.warning-box {
  background: #FEF2F2;
  border-left: 4px solid var(--warning-red);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.warning-box-title {
  font-weight: 700;
  color: var(--warning-red);
  margin-bottom: 8px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.warning-box-title::before {
  content: "\26A0\FE0F"; /* ⚠️ */
  font-size: 1.1em;
}

/* ── キャラコメント（ミサキの声） ── */
.chara-comment {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 32px 0;
  padding: 24px 20px;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: 16px;
  position: relative;
}
.chara-comment--accent {
  border-color: var(--accent);
  background: linear-gradient(135deg, #f8faff, var(--bg-white));
}
.chara-comment--warm {
  border-color: #d4a880;
  background: linear-gradient(135deg, #fdf8f4, var(--bg-white));
}
.chara-comment--alert {
  border-color: var(--warning-red);
  background: linear-gradient(135deg, #fef8f8, var(--bg-white));
}
.chara-comment-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 3px 14px;
  border-radius: 12px;
  color: #fff;
  white-space: nowrap;
  background: var(--accent);
}
.chara-comment--warm .chara-comment-label { background: #d4a880; }
.chara-comment--alert .chara-comment-label { background: var(--warning-red); }
.chara-comment-img {
  flex: 0 0 56px;
  width: 56px;
}
.chara-comment-img img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}
.chara-comment-body {
  flex: 1;
  padding-top: 4px;
}
.chara-comment-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.chara-comment--warm .chara-comment-name { color: #8b5e3c; }
.chara-comment--alert .chara-comment-name { color: var(--warning-red); }
.chara-comment-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}
.chara-comment-text strong {
  color: var(--accent-dark);
}
@media (max-width: 480px) {
  .chara-comment-img { flex: 0 0 48px; width: 48px; }
  .chara-comment { padding: 20px 16px; gap: 12px; }
}

/* ── 比較テーブル ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
}
.comparison-table th,
.comparison-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.comparison-table th {
  background: var(--accent-dark);
  color: #e8e8e8;
  font-weight: 700;
}
.comparison-table tr:nth-child(even) { background: var(--border-light); }

/* ── CTA ── */
.article-cta {
  background: linear-gradient(135deg, #f0e6dc, #f8ece4);
  border: 2px solid var(--cta);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  margin: 48px 0;
}
.article-cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.article-cta-text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.cta-button {
  display: inline-block;
  background: var(--cta);
  color: white;
  padding: 14px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s;
}
.cta-button:hover {
  background: var(--cta-hover);
  text-decoration: none;
}

/* ── 関連記事 ── */
.related-articles {
  margin: 48px 0;
}
.related-articles-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.related-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.related-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-decoration: none;
}
.related-card-body { flex: 1; }
.related-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.related-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── フッター ── */
.site-footer {
  background: var(--accent-dark);
  color: #e8e8e8;
  padding: 40px 0 24px;
  margin-top: 60px;
  font-size: 0.85rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: #fff; }
.footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
}

/* ── カードグリッド（メディアトップ用） ── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (min-width: 768px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .article-grid { grid-template-columns: repeat(3, 1fr); }
}
.article-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
}
.article-card-thumb {
  aspect-ratio: 16/9;
  background: var(--border-light);
  overflow: hidden;
}
.article-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-card-body { padding: 16px; }
.article-card-tag {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
.article-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}
.article-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── タグフィルター ── */
.tag-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.tag-filter-btn {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tag-filter-btn:hover,
.tag-filter-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
