/* =========================================================
   通貨の裏側 — モックアップ共通スタイル
   配色: 深い青緑系の寒色 / 見出し明朝・本文ゴシック
   ========================================================= */

:root {
  --ink:        #16302f;   /* 本文の基本色（極暗い青緑チャコール） */
  --deep:       #0d3b3a;   /* ブランドの深い青緑 */
  --deep-2:     #092a29;   /* ヘッダー/フッターの濃い面 */
  --accent:     #2f8f84;   /* リンク・アクセント（くすんだ青緑） */
  --accent-dk:  #1f6f66;
  --gold:       #b3884e;   /* ごく控えめな温色アクセント（小物のみ） */
  --bg:         #f5f8f7;   /* ページ背景（緑みのオフホワイト） */
  --surface:    #ffffff;
  --line:       #e1e9e7;   /* 罫線 */
  --muted:      #5d6f6c;   /* メタ情報のグレー */
  --maxw:       1080px;    /* サイト全体の最大幅 */
  --readw:      720px;     /* 本文カラムの読みやすい幅 */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-dk); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

img { max-width: 100%; display: block; }

.serif {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
}

/* ---------- レイアウト枠 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 42, 41, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand a { color: #fff; text-decoration: none; }
.brand .brand-name {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem; font-weight: 600; letter-spacing: 0.08em;
}
.brand .brand-tag {
  font-size: 0.7rem; color: #9fc4bf; letter-spacing: 0.18em; margin-top: 2px;
}
.header-nav { display: flex; gap: 26px; align-items: center; }
.header-nav a {
  color: #d6e6e3; font-size: 0.9rem; letter-spacing: 0.04em;
  text-decoration: none; transition: color .2s;
}
.header-nav a:hover { color: #fff; }
.nav-x {
  border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
  padding: 6px 14px; font-size: 0.8rem !important;
}
.nav-x:hover { background: rgba(255,255,255,0.1); }

/* ---------- ヒーロー（コンセプト） ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47,143,132,0.35), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: #eaf4f2;
  position: relative; overflow: hidden;
}
.hero::after {
  /* 控えめな等高線風テクスチャ */
  content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 22px);
}
.hero-inner { position: relative; padding: 76px 0 84px; max-width: 760px; }
.hero .eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; color: #84c3bb;
  text-transform: uppercase; margin: 0 0 18px;
}
.hero h1 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 600;
  line-height: 1.5; margin: 0 0 20px; letter-spacing: 0.02em;
}
.hero p { font-size: 1.02rem; color: #cfe4e0; margin: 0; max-width: 640px; }

/* ---------- セクション見出し ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 30px;
  border-bottom: 2px solid var(--deep); padding-bottom: 12px;
}
.section-head h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.5rem; font-weight: 600; margin: 0; color: var(--deep);
  letter-spacing: 0.04em;
}
.section-head .en {
  font-size: 0.72rem; letter-spacing: 0.28em; color: var(--accent);
  text-transform: uppercase;
}

/* ---------- トップ：本文＋サイド 2カラム ---------- */
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; }

/* 注目記事（フィーチャー） */
.feature {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; margin-bottom: 34px;
  text-decoration: none; color: inherit; transition: box-shadow .25s, transform .25s;
}
.feature:hover { box-shadow: 0 14px 36px rgba(13,59,58,0.13); transform: translateY(-2px); text-decoration: none; }
.feature .thumb {
  height: 220px;
  background: linear-gradient(135deg, #0d3b3a, #2f8f84);
  position: relative;
}
.feature .thumb::after {
  content: "ZAR / JPY"; position: absolute; right: 22px; bottom: 16px;
  font-family: "Noto Serif JP", serif; color: rgba(255,255,255,0.5);
  font-size: 1.6rem; letter-spacing: 0.2em;
}
.feature .body { padding: 26px 28px 30px; }
.badge {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em;
  background: #e7f1ef; color: var(--accent-dk);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.feature h3 {
  font-family: "Noto Serif JP", serif; font-size: 1.4rem; line-height: 1.55;
  margin: 0 0 12px; color: var(--ink);
}
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* 記事リスト */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item {
  display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line);
}
.post-item:first-child { border-top: none; }
.post-item .pthumb {
  flex: 0 0 130px; height: 86px; border-radius: 8px;
  background: linear-gradient(135deg, #14403e, #357c73);
}
.post-item .pbody { flex: 1; }
.post-item .meta { font-size: 0.76rem; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.post-item h3 {
  font-family: "Noto Serif JP", serif; font-size: 1.08rem; line-height: 1.6;
  margin: 0 0 6px;
}
.post-item h3 a { color: var(--ink); }
.post-item h3 a:hover { color: var(--accent-dk); text-decoration: none; }
.post-item .excerpt { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- サイドバー ---------- */
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.side-block h4 {
  font-family: "Noto Serif JP", serif; font-size: 1.05rem; margin: 0 0 16px;
  color: var(--deep); padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.profile-mini { text-align: center; }
.profile-mini .pavatar {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, #0d3b3a, #2f8f84);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: "Noto Serif JP", serif; font-size: 1.6rem;
}
.profile-mini .pname { font-family: "Noto Serif JP", serif; font-size: 1.1rem; font-weight: 600; }
.profile-mini .prole { font-size: 0.78rem; color: var(--muted); margin: 4px 0 14px; }
.profile-mini p { font-size: 0.84rem; color: var(--muted); text-align: left; line-height: 1.8; margin: 0 0 16px; }

.cat-tree { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.cat-tree > li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cat-tree ul { list-style: none; padding-left: 16px; margin: 6px 0 0; }
.cat-tree ul li { padding: 5px 0; font-size: 0.86rem; }
.cat-tree .count { color: var(--muted); font-size: 0.78rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  font-size: 0.8rem; background: #eef4f2; color: var(--accent-dk);
  padding: 5px 12px; border-radius: 6px;
}
.tag-cloud a:hover { background: var(--accent); color: #fff; text-decoration: none; }

.btn-x {
  display: inline-block; width: 100%; text-align: center; box-sizing: border-box;
  background: var(--deep); color: #fff; padding: 10px; border-radius: 8px;
  font-size: 0.85rem; letter-spacing: 0.04em;
}
.btn-x:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }

/* =========================================================
   記事個別ページ
   ========================================================= */
.article-wrap { background: var(--surface); }
.crumbs { font-size: 0.78rem; color: var(--muted); padding: 22px 0 0; letter-spacing: 0.03em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-dk); }

.article-header { max-width: var(--readw); margin: 0 auto; padding: 18px 24px 0; }
.article-header .badge { margin-bottom: 18px; }
.article-header h1 {
  font-family: "Noto Serif JP", serif; font-weight: 600;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem); line-height: 1.6;
  margin: 0 0 22px; letter-spacing: 0.01em; color: var(--ink);
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-size: 0.82rem; color: var(--muted);
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 0;
}
.article-meta .by { display: flex; align-items: center; gap: 8px; }
.article-meta .by .dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #0d3b3a, #2f8f84); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size:0.75rem;
  font-family:"Noto Serif JP",serif;
}

/* 本文 */
.article-body { max-width: var(--readw); margin: 0 auto; padding: 38px 24px 10px; }
.article-body p { font-size: 1.02rem; line-height: 1.95; margin: 0 0 1.6em; }
.article-body .lead {
  font-size: 1.1rem; color: #25403e; line-height: 1.95;
  border-left: 3px solid var(--accent); padding-left: 18px; margin-bottom: 2em;
}
.article-body h2 {
  font-family: "Noto Serif JP", serif; font-size: 1.5rem; font-weight: 600;
  line-height: 1.55; color: var(--deep); margin: 2.4em 0 0.9em;
  padding-bottom: 10px; border-bottom: 2px solid var(--deep);
}
.article-body h3 {
  font-family: "Noto Serif JP", serif; font-size: 1.18rem; font-weight: 600;
  color: var(--ink); margin: 2em 0 0.7em; padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.article-body ul, .article-body ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.article-body li { margin-bottom: 0.55em; line-height: 1.85; }
.article-body strong { color: var(--deep); font-weight: 700; }
.article-body a { border-bottom: 1px solid currentColor; }

/* 用語解説などのコールアウト（辞典型の核） */
.callout {
  background: #eef5f3; border: 1px solid #d3e6e2; border-left: 4px solid var(--accent);
  border-radius: 8px; padding: 20px 24px; margin: 2em 0;
}
.callout .ctitle {
  font-family: "Noto Serif JP", serif; font-weight: 600; color: var(--accent-dk);
  font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.callout .ctitle::before { content: "用語"; font-size: 0.66rem; background: var(--accent); color:#fff; padding: 2px 7px; border-radius: 4px; letter-spacing: 0.1em; }
.callout p { font-size: 0.95rem !important; margin: 0 !important; line-height: 1.85; color: #2a423f; }

blockquote {
  margin: 2em 0; padding: 14px 24px; color: #3a4f4c;
  border-left: 3px solid var(--gold); background: #faf7f1; font-style: italic;
}
blockquote p { margin: 0 !important; }

/* 表 */
.article-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.article-body th { background: var(--deep); color: #fff; font-weight: 500; letter-spacing: 0.03em; }
.article-body tbody tr:nth-child(even) { background: #f4f8f7; }

/* 記事末：免責ボックス */
.disclaimer-box {
  max-width: var(--readw); margin: 36px auto 0; padding: 22px 24px;
  background: #f3f5f5; border: 1px solid var(--line); border-radius: 8px;
  font-size: 0.82rem; color: var(--muted); line-height: 1.8;
}
.disclaimer-box strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 0.85rem; }

/* 著者ボックス */
.author-box {
  max-width: var(--readw); margin: 30px auto 0; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  display: flex; gap: 20px; align-items: flex-start;
}
.author-box .aav {
  flex: 0 0 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #0d3b3a, #2f8f84); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:"Noto Serif JP",serif; font-size:1.5rem;
}
.author-box .aname { font-family:"Noto Serif JP",serif; font-weight:600; font-size:1.1rem; }
.author-box .arole { font-size:0.78rem; color: var(--muted); margin: 2px 0 10px; }
.author-box p { font-size: 0.88rem; color: var(--muted); margin: 0 0 10px; line-height: 1.8; }

/* 関連記事 */
.related { max-width: var(--readw); margin: 46px auto 0; }
.related h2 {
  font-family:"Noto Serif JP",serif; font-size:1.25rem; color: var(--deep);
  border-bottom: 2px solid var(--deep); padding-bottom: 10px; margin: 0 0 8px;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--deep-2); color: #bcd4d0; margin-top: 72px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 48px 0 32px; }
.footer-brand .fname { font-family:"Noto Serif JP",serif; font-size:1.25rem; color:#fff; letter-spacing:0.08em; }
.footer-brand p { font-size: 0.82rem; color:#8fb6b1; margin: 10px 0 0; max-width: 360px; line-height: 1.8; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links .col h5 { font-size: 0.8rem; color:#fff; letter-spacing:0.12em; margin:0 0 14px; }
.footer-links .col a { display:block; color:#9fc0bb; font-size:0.84rem; margin-bottom:10px; }
.footer-links .col a:hover { color:#fff; text-decoration:none; }
.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0;
  font-size: 0.74rem; color:#7ba39e; line-height: 1.8;
}
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; font-size: 0.74rem; color:#6f978f; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 680px) {
  .header-nav { gap: 16px; }
  .header-nav a:not(.nav-x) { display: none; } /* モックなのでスマホは簡略化 */
  .hero-inner { padding: 56px 0 60px; }
  .post-item { flex-direction: column; gap: 12px; }
  .post-item .pthumb { flex: none; width: 100%; height: 150px; }
  .footer-top { flex-direction: column; gap: 28px; }
}

/* ============================================================
   WordPress テーマ用 追記
   ============================================================ */
.header-nav ul.nav-menu { list-style:none; display:flex; gap:26px; margin:0; padding:0; align-items:center; }
.header-nav ul.nav-menu a { color:#d6e6e3; font-size:0.9rem; letter-spacing:0.04em; text-decoration:none; transition:color .2s; }
.header-nav ul.nav-menu a:hover { color:#fff; text-decoration:none; }
.header-nav ul.nav-menu .current-menu-item > a { color:#fff; }

.feature .thumb img { width:100%; height:100%; object-fit:cover; }
.feature .thumb.has-img::after { content:none; }
.post-item .pthumb img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.post-item .pthumb { overflow:hidden; }

.article-body img { height:auto; border-radius:8px; margin:1.6em auto; }
.article-body figure { margin:1.8em 0; }
.article-body figure img { margin:0 auto; }
.article-body figcaption { font-size:0.8rem; color:var(--muted); text-align:center; margin-top:8px; }
.article-body .wp-block-image { margin:1.8em 0; }
.aligncenter { margin-left:auto; margin-right:auto; }
.alignright { float:right; margin:0 0 1em 1.5em; }
.alignleft { float:left; margin:0 1.5em 1em 0; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* 固定ページ・アーカイブ */
.page-hero { background:linear-gradient(160deg,var(--deep),var(--deep-2)); color:#eaf4f2; padding:54px 0; }
.page-hero h1 { font-family:"Noto Serif JP",serif; font-weight:600; margin:0; font-size:clamp(1.5rem,3.5vw,2rem); letter-spacing:0.03em; }
.page-hero p { color:#bcd9d4; margin:10px 0 0; font-size:0.95rem; }
.page-body { max-width:var(--readw); margin:0 auto; padding:48px 24px; }
.page-body h2 { font-family:"Noto Serif JP",serif; color:var(--deep); border-bottom:2px solid var(--deep); padding-bottom:10px; margin:2em 0 .9em; font-size:1.4rem; }
.page-body h3 { font-family:"Noto Serif JP",serif; color:var(--ink); border-left:4px solid var(--accent); padding-left:12px; margin:1.8em 0 .7em; font-size:1.12rem; }
.page-body p { line-height:1.95; margin:0 0 1.5em; }
.page-body ul, .page-body ol { margin:0 0 1.5em; padding-left:1.5em; }
.page-body li { margin-bottom:.5em; line-height:1.85; }

.pagination { display:flex; justify-content:center; gap:8px; margin-top:48px; flex-wrap:wrap; }
.pagination .page-numbers { padding:8px 14px; border:1px solid var(--line); border-radius:6px; color:var(--accent-dk); background:#fff; font-size:0.9rem; }
.pagination .page-numbers.current { background:var(--deep); color:#fff; border-color:var(--deep); }
.pagination a.page-numbers:hover { background:var(--accent); color:#fff; text-decoration:none; }
