/* 森の読書ジャーナル — 雑誌レイアウト・2カラム */
:root {
  --bg: #F5F0E6;              /* クリーム */
  --bg-paper: #FAF6EC;        /* 紙色 */
  --text: #2D2A24;
  --accent: #3D5C3A;          /* 深緑 */
  --accent-dark: #2A4028;
  --accent-light: #DDE8D9;
  --warn: #B85F18;             /* 落葉オレンジ */
  --gold: #C19A3B;
  --border: #C9BFA8;
  --muted: #6B6450;
  --card: #FFFFFF;
  --line: #B5AD96;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  background: var(--bg) repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(61,92,58,0.015) 12px, rgba(61,92,58,0.015) 24px);
  color: var(--text);
  line-height: 1.95;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--warn); }

/* === 上部キャプション === */
.topbar {
  background: var(--accent-dark);
  color: var(--bg-paper);
  padding: 12px 24px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-style: italic;
}

/* === マガジンヘッダー === */
header {
  background: var(--bg-paper);
  border-bottom: 3px double var(--accent);
  padding: 32px 24px 20px;
  text-align: center;
}
.header-inner { max-width: 1100px; margin: 0 auto; }
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  gap: 12px;
}
.logo img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(61,92,58,0.18);
}
.logo-text {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 8px;
}
nav {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 0;
}
nav a {
  color: var(--accent-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 6px 22px;
  border-right: 1px solid var(--line);
}
nav a:last-child { border-right: none; }
nav a:hover { color: var(--warn); }

/* === 2カラムレイアウト === */
.mag-layout {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) { .mag-layout { grid-template-columns: 1fr; gap: 32px; } }

/* === メインカラム === */
main { min-width: 0; }
article.post {
  background: var(--bg-paper);
  padding: 48px 56px;
  border: 1px solid var(--border);
  position: relative;
}
article.post::before {
  content: "❦";
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--accent);
  padding: 0 16px;
  font-size: 24px;
}
@media (max-width: 720px) { article.post { padding: 28px 22px; } }

/* === PR表記 === */
.pr-notice {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 24px 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.05em;
}
.pr-notice strong { color: var(--accent-dark); font-style: normal; }

/* === 著者カード === */
.author-card {
  background: var(--bg);
  padding: 20px 24px;
  margin: 28px 0;
  border-left: 4px double var(--accent);
  display: flex;
  align-items: center;
  gap: 18px;
  font-style: italic;
}
.author-card img {
  width: 72px; height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--accent);
}
.author-card .a-meta { font-size: 13px; line-height: 1.7; }
.author-card .a-meta strong {
  display: block;
  font-size: 16px;
  color: var(--accent-dark);
  margin-bottom: 4px;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* === 見出し === */
h1 {
  font-family: "Noto Serif JP", serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.55;
  margin: 16px 0 12px;
  padding: 0;
  border: none;
  text-align: center;
  letter-spacing: 0.02em;
}
.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
  text-align: center;
  font-style: italic;
  letter-spacing: 0.1em;
}
.subtitle::before, .subtitle::after { content: " — "; }

.meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.1em;
}

/* === ドロップキャップ === */
article.post > p:first-of-type::first-letter {
  font-family: "Noto Serif JP", serif;
  font-size: 64px;
  font-weight: 900;
  float: left;
  line-height: 0.9;
  margin: 4px 12px 0 0;
  color: var(--accent);
}

h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  margin-top: 56px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  position: relative;
  text-align: center;
  letter-spacing: 0.05em;
}
h2::before {
  content: "🌿";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 16px;
  opacity: 0.7;
}
h2::after {
  content: "🌿";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 16px;
  opacity: 0.7;
  transform: scaleX(-1);
}

h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 19px;
  margin-top: 36px;
  margin-bottom: 14px;
  color: var(--accent-dark);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
  font-weight: 700;
}

p { margin: 16px 0; text-align: justify; }
strong { color: var(--accent-dark); font-weight: 700; }
ul, ol { padding-left: 28px; line-height: 2.0; }
li { margin: 6px 0; }

blockquote {
  background: transparent;
  border: none;
  border-left: 4px double var(--accent);
  border-right: 4px double var(--accent);
  margin: 36px 8%;
  padding: 24px 28px;
  font-style: italic;
  color: var(--accent-dark);
  font-size: 17px;
  text-align: center;
  position: relative;
  font-family: "Noto Serif JP", serif;
}
blockquote::before {
  content: "❝";
  position: absolute;
  top: -12px;
  left: 20px;
  font-size: 48px;
  color: var(--accent);
  background: var(--bg-paper);
  padding: 0 8px;
}
blockquote::after {
  content: "❞";
  position: absolute;
  bottom: -32px;
  right: 20px;
  font-size: 48px;
  color: var(--accent);
  background: var(--bg-paper);
  padding: 0 8px;
}

/* === 比較表（雑誌風）=== */
table.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  background: var(--card);
  font-size: 14px;
  border: 1px solid var(--accent);
  font-family: "Noto Sans JP", sans-serif;
}
table.compare th, table.compare td {
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}
table.compare th {
  background: var(--accent);
  color: var(--bg-paper);
  font-weight: 600;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--accent-dark);
}
table.compare tr:nth-child(even) td { background: var(--bg); }
table.compare .check { color: var(--accent); font-weight: 700; }
table.compare .x { color: var(--warn); }
table.compare .star { color: var(--gold); }
.rating { display: inline-block; background: var(--accent); color: var(--bg-paper); padding: 3px 12px; border-radius: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.15em; font-family: "Noto Sans JP", sans-serif; }

/* === 体験談ボックス === */
.experience {
  background: var(--bg);
  border: 1px solid var(--accent);
  padding: 24px 28px;
  margin: 28px 0;
  position: relative;
}
.experience::before {
  content: "🍂  森ノブ の  体験談";
  display: block;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.25em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--accent);
}

.warning-box {
  background: rgba(193,154,59,0.08);
  border: 1px solid var(--gold);
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14px;
}
.warning-box::before {
  content: "⚠  注  記";
  display: block;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.25em;
  font-size: 12px;
}

/* === 目次 === */
.toc {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px 28px;
  margin: 28px auto;
  max-width: 80%;
}
.toc h4 {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  text-align: center;
  letter-spacing: 0.3em;
  font-family: "Noto Serif JP", serif;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.toc ol { margin: 0; padding-left: 28px; line-height: 2.0; }
.toc a { color: var(--text); text-decoration: none; font-size: 14px; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* === サイドバー === */
aside.sidebar { font-size: 14px; }
.side-box {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 24px;
}
.side-box h4 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--accent-dark);
  text-align: center;
  letter-spacing: 0.3em;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 8px;
  font-family: "Noto Serif JP", serif;
}
.side-box img.author-sm { width: 80px; height: 80px; border-radius: 50%; display: block; margin: 0 auto 12px; border: 2px solid var(--accent); }
.side-box p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 8px 0; text-align: center; font-style: italic; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.side-list li:last-child { border-bottom: none; }
.side-list a { color: var(--accent-dark); text-decoration: none; }
.side-list a:hover { color: var(--warn); }
.side-tag { display: inline-block; background: var(--accent-light); color: var(--accent-dark); padding: 4px 10px; margin: 3px; font-size: 12px; letter-spacing: 0.05em; }

/* === フッター（マガジン風）=== */
footer {
  background: var(--accent-dark);
  color: var(--bg-paper);
  padding: 48px 24px;
  margin-top: 80px;
  border-top: 4px double var(--gold);
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-inner h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 0.3em;
  font-family: "Noto Serif JP", serif;
}
.footer-inner p { font-size: 13px; line-height: 1.8; max-width: 700px; margin: 8px auto; font-style: italic; }
.footer-disclaimer {
  background: rgba(0,0,0,0.15);
  padding: 22px 28px;
  margin: 32px auto;
  text-align: left;
  max-width: 800px;
  border: 1px solid rgba(193,154,59,0.3);
}
.footer-disclaimer p { font-style: normal; font-size: 12px; color: rgba(245,240,230,0.85); }
.footer-nav { display: flex; gap: 0; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.footer-nav a { color: var(--bg-paper); text-decoration: none; font-size: 13px; padding: 6px 18px; border-right: 1px solid rgba(193,154,59,0.4); letter-spacing: 0.1em; }
.footer-nav a:last-child { border-right: none; }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-size: 11px; color: rgba(245,240,230,0.6); margin-top: 28px; letter-spacing: 0.15em; }

/* === AIで学ぶFX：AI活用ヒントボックス（森テイストに馴染む深緑罫） === */
.ai-tip {
  background: var(--bg);
  border: 1px solid var(--accent);
  border-left: 4px double var(--accent);
  padding: 22px 26px;
  margin: 28px 0;
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
}
.ai-tip::before {
  content: "🤖  AI で 学 ぶ ヒ ン ト";
  display: block;
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.25em;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--accent);
}
.ai-tip .prompt {
  display: block;
  background: var(--card);
  border: 1px dashed var(--line);
  padding: 12px 14px;
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  white-space: pre-wrap;
}

/* === ホーム：AI×FX 記事グリッド === */
.home-lead {
  background: var(--bg-paper);
  border: 1px solid var(--border);
  padding: 40px 48px;
  position: relative;
  text-align: center;
  margin-bottom: 40px;
}
.home-lead::before {
  content: "❦";
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--bg); color: var(--accent); padding: 0 16px; font-size: 24px;
}
.home-lead .eyebrow { font-size: 12px; letter-spacing: 0.4em; color: var(--accent); font-style: italic; margin: 0 0 12px; }
.home-lead h1 { font-size: 30px; margin: 0 0 16px; border: none; }
.home-lead p { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto; font-size: 15px; }
.sec-title {
  font-family: "Noto Serif JP", serif; font-size: 20px; color: var(--accent-dark);
  text-align: center; letter-spacing: 0.1em; margin: 48px 0 8px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent);
}
.sec-note { text-align: center; color: var(--muted); font-size: 13px; font-style: italic; margin: 0 0 24px; }
.cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
@media (max-width: 720px){ .cardgrid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-paper); border: 1px solid var(--border); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.card .cat { font-size: 11px; letter-spacing: 0.2em; color: var(--accent); font-family: "Noto Sans JP", sans-serif; }
.card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--border); background: var(--accent-light); margin-bottom: 4px; }
.card a.ttl { font-family: "Noto Serif JP", serif; font-size: 17px; font-weight: 700; color: var(--accent-dark); text-decoration: none; line-height: 1.5; }
.card a.ttl:hover { color: var(--warn); }
.card .ex { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }
.cta {
  background: var(--accent-light); border: 1px solid var(--accent); padding: 24px 28px; margin: 32px 0;
}
.cta .ttl { font-weight: 700; color: var(--accent-dark); font-size: 16px; margin: 0 0 6px; font-family: "Noto Serif JP", serif; }
.cta p { margin: 4px 0 0; font-size: 14px; }
.related { background: var(--bg); border: 1px solid var(--line); padding: 18px 24px; margin: 32px 0; }
.related .label { display:block; font-size: 12px; letter-spacing: 0.2em; color: var(--accent-dark); font-weight: 700; margin-bottom: 8px; font-family: "Noto Sans JP", sans-serif; }
.related ul { margin: 0; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-style: normal; text-align: justify; }
