/* =============================================================
   ORCA Archive 案E デザインCSS(2026-07-08 ゼロから書き直し)
   元: デザイン案_2026-07-07/e-top.html + e-article.html(承認済みモック)
   方針: モバイル対応・!important不使用・Cocoon CSSはdequeue済み前提
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --header-bg: #3a2b1d;
  --bg: #f5efe3;
  --panel: #faf5ea;
  --panel-border: #e0d5bd;
  --text: #1a1a1a;
  --text2: #5a4f3e;
  --gold: #b8862e;
  --gold-light: #d8b269;
  /* 2026-07-11: 見出しの明朝(Noto Serif)を廃止し本文と同じゴシックに統一(哲平さん指示。
     やさしい文体v3と合わせ、Forbes/hitodeblog同様に見出し・本文を同系フォントで揃える。
     変数名は互換のため--serifのまま。英字装飾のCinzel(--deco)はブランドアクセントとして維持) */
  --serif: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --deco: 'Cinzel', serif;
}
html[data-theme="dark"] {
  --bg: #1c1610; --panel: #262019; --panel-border: #3d3426;
  --text: #ece5d6; --text2: #b0a48d;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans);
  line-height: 1.9; -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }

/* ── ヘッダー ── */
.site-header {
  background: var(--header-bg);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: .7rem 2rem; gap: 1rem;
  border-bottom: 1px solid rgba(216,178,105,0.25);
}
.logo a { display: inline-flex; }
.logo img { height: 64px; width: auto; filter: invert(1); mix-blend-mode: screen; }
.nav { display: flex; justify-content: center; gap: 1.8rem; }
.nav a { color: #d9cfc0; text-decoration: none; font-size: 14px; font-weight: 500; padding: .35rem .2rem; border-bottom: 2px solid transparent; }
.nav a.current, .nav a:hover { color: #fff; border-bottom-color: var(--gold-light); }
.header-right { display: flex; justify-content: flex-end; }
.mode-btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  background: rgba(255,255,255,0.08); color: #d9cfc0;
  border: 1px solid rgba(217,207,192,0.4); border-radius: 999px;
  padding: .3rem 1rem; font-size: 12.5px; font-family: var(--sans);
}
.mode-btn:hover { color: #fff; border-color: #fff; }
.mode-btn svg { width: 13px; height: 13px; fill: currentColor; }

/* ── ヒーロー(トップ・横長フルブリード) ── */
.hero { position: relative; overflow: hidden; background: #241b10; }
.hero img.bg { display: block; width: 100%; height: clamp(380px, 42vw, 620px); object-fit: cover; object-position: center 30%; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,14,8,0.72) 0%, rgba(20,14,8,0.35) 34%, transparent 55%);
}
.hero-inner { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-text { padding: 0 4vw; max-width: 620px; }
.hero-eyebrow { font-family: var(--deco); font-size: clamp(10px, 1.1vw, 13px); letter-spacing: .38em; color: #e6d3a8; margin-bottom: 1.3rem; }
.hero-title { font-family: var(--serif); font-weight: 700; color: #fff; font-size: clamp(1.7rem, 4.2vw, 3.1rem); line-height: 1.55; letter-spacing: .04em; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }
.hero-sub { margin-top: 1rem; color: #e8e0d2; font-size: clamp(.85rem, 1.4vw, 1rem); text-shadow: 0 1px 8px rgba(0,0,0,0.55); }
.cta {
  display: inline-block; margin-top: 1.8rem;
  background: linear-gradient(180deg, #d8b269, #b8862e);
  color: #241b10; font-weight: 700; font-size: .95rem; text-decoration: none;
  border-radius: 999px; padding: .75rem 2.1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.cta:hover { filter: brightness(1.06); }

/* ── 検索バー ── */
.search-band { background: var(--header-bg); padding: 1.1rem 1.4rem 1.3rem; border-top: 1px solid rgba(216,178,105,0.2); }
.search-box { position: relative; max-width: 560px; margin: 0 auto; }
.search-box input {
  width: 100%; font-family: var(--sans); font-size: 14.5px;
  background: #f2ead8; color: #1a1a1a; border: 1px solid #c9b98f; border-radius: 6px;
  padding: .7rem 2.6rem .7rem 1rem; outline: none;
}
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,46,0.25); }
.search-btn { position: absolute; right: 0; top: 0; bottom: 0; width: 2.6rem; background: none; border: none; cursor: pointer; display: grid; place-items: center; }
.search-icon { width: 17px; height: 17px; fill: none; stroke: #6b5a35; stroke-width: 2; }
.suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  background: #fffdf6; border: 1px solid #c9b98f; border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25); overflow: hidden; display: none;
}
.suggest.open { display: block; }
.suggest a { display: flex; align-items: center; gap: .8rem; padding: .6rem .9rem; text-decoration: none; color: #1a1a1a; font-size: 13.5px; border-bottom: 1px solid #efe6d2; }
.suggest a:last-child { border-bottom: none; }
.suggest a:hover { background: #f5edda; }
.suggest .code { font-family: var(--deco); font-size: 12px; color: var(--gold); min-width: 44px; }
.suggest .cat { margin-left: auto; font-size: 11px; color: #8a7c60; }

/* ── コンテナ ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.4rem 4rem; }
.container--narrow { max-width: 860px; }

/* ── セクション見出し ── */
.sec-head { display: flex; align-items: baseline; gap: .9rem; margin: 3.2rem 0 1.6rem; border-bottom: 1px solid var(--panel-border); padding-bottom: .7rem; }
.sec-head .num { font-family: var(--deco); font-size: 13px; color: var(--gold); letter-spacing: .2em; }
.sec-head .ttl { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; }
.sec-head .en { font-family: var(--deco); font-size: 11px; letter-spacing: .26em; color: var(--text2); }
.sec-head .more { margin-left: auto; font-size: 13px; color: var(--gold); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; }

/* ── 今週の経済ポイント ── */
.discovery {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 1.6rem 1.9rem; margin-top: 2.6rem;
  box-shadow: 0 2px 10px rgba(90,66,38,0.08);
}
.discovery .label { font-family: var(--deco); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.discovery .ttl { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: .3rem 0 1rem; }
.discovery ul { list-style: none; }
.discovery li { padding: .55rem 0 .55rem 1.3rem; position: relative; font-size: .92rem; color: var(--text); border-bottom: 1px dashed var(--panel-border); }
.discovery li:last-child { border-bottom: none; }
.discovery li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ── 企業ストーリーカード ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: 0 2px 10px rgba(90,66,38,0.08);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(90,66,38,0.18); }
.card-thumb { aspect-ratio: 4/3; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb-ph {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #46331f, #2c2013);
  display: grid; place-items: center;
  font-family: var(--deco); font-size: 14px; letter-spacing: .3em; color: var(--gold-light);
}
.card-body { padding: 1rem 1.2rem 1.1rem; }
.card-code { font-family: var(--deco); font-size: 12px; letter-spacing: .12em; color: var(--gold); }
.card-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: .25rem 0 .4rem; line-height: 1.6; }
.card-ex { font-size: .85rem; color: var(--text2); }

/* ── ニュースリスト(サムネイル付き行) ── */
.news-list { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; overflow: hidden; }
.news-row { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 1.4rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--panel-border); }
.news-row:last-child { border-bottom: none; }
.news-row:hover { background: rgba(184,134,46,0.06); }
.news-thumb {
  flex-shrink: 0; width: 128px; aspect-ratio: 16/9; border-radius: 6px;
  background: linear-gradient(135deg, #46331f, #2c2013);
  border: 1px solid var(--panel-border);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--deco); font-size: 13px; letter-spacing: .28em; color: var(--gold-light);
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-main { min-width: 0; }
.news-main .t { display: block; font-size: .95rem; font-weight: 700; line-height: 1.6; }
.news-main .ex {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: .8rem; color: var(--text2); margin-top: .25rem;
}
.news-main .date { display: block; font-family: var(--deco); font-size: 11px; color: var(--text2); margin-top: .35rem; }
.empty-panel { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 1.6rem; text-align: center; color: var(--text2); font-size: .92rem; }

/* ── ニュース2列グリッド(TOP用・2026-07-11哲平さん指定: 横2枚×縦3枚・見出しのみ) ── */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.news-grid .news-row {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  box-shadow: 0 2px 10px rgba(90,66,38,0.08);
}
.news-grid .news-row:hover { border-color: var(--gold); }
.news-grid .t { font-size: 1.08rem; } /* 見出しを大きく(本文抜粋なしの分) */

/* ── 発掘ノート4列カード(TOP用・2026-07-11哲平さん指定: 横4枚×縦2枚) ── */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--4 .card-thumb { aspect-ratio: 16/10; }
.cards--4 .card-title { font-size: 1rem; }
.cards--4 .card-ex {
  font-size: .8rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── 記事ページ ── */
.breadcrumb { font-size: 12px; color: var(--text2); padding: 1.2rem 0 .4rem; }
.breadcrumb a { color: var(--text2); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }

.eyecatch { border-radius: 10px; overflow: hidden; margin: .8rem 0 1.6rem; box-shadow: 0 4px 16px rgba(90,66,38,0.18); }
.eyecatch img { display: block; width: 100%; height: auto; }
.meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 12.5px; color: var(--text2); }
.meta-row .code { font-family: var(--deco); color: var(--gold); letter-spacing: .1em; }
.meta-row .sep { color: var(--panel-border); }
.article-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 4.4vw, 2.3rem); letter-spacing: .05em; margin: .5rem 0 .3rem; line-height: 1.6; }
.subtitle { font-family: var(--serif); font-weight: 700; font-size: 1rem; color: var(--text2); }

/* 記事本文コンテンツ(wp:htmlブロック内の部品) */
.article-body { font-size: 1.0625rem; } /* 2026-07-11: 16px→17px(「まだ小さい」指摘対応。Forbes水準) */
/* 記事内リンクは黒+下線(金色リンクは見づらいとの指摘 2026-07-11。ホバーで金) */
.article-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--gold); }
.article-body .lead { margin: 1.6rem 0 0; font-size: 1.1rem; font-family: var(--serif); border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.article-body .sec-head { margin: 3.2rem 0 1.6rem; }
.article-body .sec-head .ttl { font-size: 1.3rem; }
.article-body p { margin-bottom: 1rem; }
.article-body h2:not(.ttl), .article-body h3 { font-family: var(--serif); font-weight: 700; margin: 2rem 0 .8rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-body table { border-collapse: collapse; width: 100%; margin-bottom: 1.2rem; font-size: .9rem; }
.article-body th, .article-body td { border: 1px solid var(--panel-border); padding: .5rem .8rem; }
.article-body th { background: var(--panel); font-family: var(--serif); }
.article-body blockquote { border-left: 3px solid var(--panel-border); padding-left: 1rem; color: var(--text2); margin-bottom: 1rem; }

/* Cocoon親の自動目次が万一出力されても隠す(保険) */
.article-body #toc, .article-body .toc-container { display: none; }

/* ── 記事の自前目次(orca.jsが生成) ── */
.orca-toc {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 1.2rem 1.5rem 1.3rem; margin: 1.8rem 0 0;
}
.orca-toc-head { display: flex; align-items: baseline; gap: .8rem; border-bottom: 1px solid var(--panel-border); padding-bottom: .5rem; margin-bottom: .6rem; }
.orca-toc-ttl { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; }
.orca-toc-en { font-family: var(--deco); font-size: 10.5px; letter-spacing: .26em; color: var(--gold); }
.orca-toc ol { list-style: none; padding-left: 0; margin: 0; counter-reset: orca-toc; }
.orca-toc ol li { counter-increment: orca-toc; padding: .3rem 0; font-size: .9rem; line-height: 1.6; }
.orca-toc ol li::before {
  content: counter(orca-toc, decimal-leading-zero);
  font-family: var(--deco); font-size: 11px; color: var(--gold);
  letter-spacing: .1em; margin-right: .7rem;
}
.orca-toc a { color: var(--text); text-decoration: none; }
.orca-toc a:hover { color: var(--gold); }
.orca-toc-sub { font-family: var(--deco); font-size: 10.5px; letter-spacing: .26em; color: var(--gold); margin: .9rem 0 .1rem; }
.orca-toc .orca-toc-list--deep li { font-size: .86rem; }

/* タイムライン */
.timeline { border-left: 1px solid var(--gold-light); margin-left: .5rem; padding-left: 1.8rem; }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before { content: ""; position: absolute; left: calc(-1.8rem - 5.5px); top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tl-item:nth-child(odd)::before { background: var(--gold); }
.tl-year { font-family: var(--deco); font-size: .92rem; color: var(--gold); letter-spacing: .12em; }
.tl-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; margin: .25rem 0 .45rem; }
.tl-body { font-size: 1rem; color: var(--text); } /* 2026-07-12: 本文が小さい指摘対応で.92rem→1rem */

/* 事業の構造 */
.biz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.biz-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 1.2rem 1.2rem 1.3rem; box-shadow: 0 2px 8px rgba(90,66,38,0.08); }
.biz-num { font-family: var(--deco); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.biz-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; margin: .4rem 0 .5rem; }
.biz-desc { font-size: .92rem; color: var(--text2); } /* 2026-07-12: 本文が小さい指摘対応で.84rem→.92rem */

/* 投資指標タイル */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.metric { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: .9rem 1.1rem; }
.metric-label { font-size: 12px; color: var(--text2); }
.metric-value { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; margin: .1rem 0; }
.metric-note { font-size: 10.5px; color: var(--text2); }

/* 投資家目線のポイント */
.point {
  margin-top: 1.6rem; background: linear-gradient(135deg, rgba(216,178,105,0.16), rgba(184,134,46,0.08));
  border: 1px solid rgba(184,134,46,0.35); border-radius: 10px; padding: 1.3rem 1.6rem;
}
.point h3 { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--gold); margin: 0 0 .5rem; letter-spacing: .08em; } /* margin-top 0必須: .article-body h3の2remを打ち消す */
.point p { font-size: 1rem; margin-bottom: 0; } /* 2026-07-12: 本文が小さい指摘対応で.92rem→1rem */

/* 話し手画像つきポイント(.point.with-face > .point-face + .point-body) */
.point.with-face { display: flex; gap: 1.3rem; align-items: flex-start; }
.point-face { width: 92px; height: auto; border-radius: 10px; border: 1px solid var(--panel-border); flex-shrink: 0; }
.point-body { min-width: 0; }
.point-body p + p { margin-top: .6rem; } /* investor_viewが複数ポイントの場合の行間 */

/* ── 挫折と再起(setbacks)— render_article.py出力用(2026-07-10追加) ── */
.setbacks { display: flex; flex-direction: column; gap: 1.4rem; }
.sb-item {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  border-left: 3px solid var(--gold); padding: 1.3rem 1.6rem;
  box-shadow: 0 2px 8px rgba(90,66,38,0.08);
}
.sb-year { font-family: var(--deco); font-size: .92rem; color: var(--gold); letter-spacing: .12em; }
.sb-title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: .25rem 0 .6rem; }
.sb-body { font-size: 1rem; color: var(--text); margin-bottom: .9rem; } /* 2026-07-12: 本文が小さい指摘対応で.92rem→1rem */
.sb-impact, .sb-recovery { font-size: .95rem; color: var(--text2); margin-top: .4rem; line-height: 1.7; } /* 2026-07-12: .88rem→.95rem */
.sb-label {
  display: inline-block; font-family: var(--deco); font-size: 10.5px; letter-spacing: .12em;
  color: var(--gold); background: rgba(184,134,46,0.12); border-radius: 999px;
  padding: .15rem .6rem; margin-right: .6rem; vertical-align: middle;
}

/* ── この会社は何をしているのか(what_they_do)— render_article.py出力用(2026-07-10追加) ── */
.wtd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.wtd-item {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px;
  padding: 1.1rem 1.3rem; box-shadow: 0 2px 8px rgba(90,66,38,0.08);
}
.wtd-item.wtd-hidden {
  border-color: var(--gold-light);
  background: linear-gradient(135deg, rgba(216,178,105,0.16), rgba(184,134,46,0.08));
}
.wtd-label { font-family: var(--deco); font-size: 11px; letter-spacing: .18em; color: var(--gold); margin-bottom: .5rem; }
.wtd-body { font-size: 1rem; color: var(--text); } /* 2026-07-12: 本文が小さい指摘対応で.9rem→1rem */

/* DEEP DIVE(3行ティザー+クリック展開) */
.deep { margin-top: 3rem; }
.deep-bar {
  width: 100%; cursor: pointer; text-align: left;
  background: linear-gradient(135deg, #a97e2c, #8a6524); color: #fff;
  border: none; border-radius: 10px; padding: 1.1rem 1.5rem;
  display: flex; align-items: center; gap: 1.2rem;
  font-family: var(--sans);
}
.deep-bar .en { font-family: var(--deco); font-size: 11px; letter-spacing: .3em; opacity: .85; }
.deep-bar .t { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; letter-spacing: .04em; }
.deep-bar .chev { margin-left: auto; width: 30px; height: 30px; border: 1.5px solid rgba(255,255,255,0.6); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: transform .3s; }
.deep-bar .chev svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.2; }
.deep.open .deep-bar .chev { transform: rotate(180deg); }
.deep-body { background: var(--panel); border: 1px solid var(--panel-border); border-top: none; border-radius: 0 0 10px 10px; padding: 1.8rem 2rem 2rem; margin: 0 .4rem; }
.deep-body h3 { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; margin: 2rem 0 .8rem; padding-left: .9rem; border-left: 3px solid var(--gold); }
.deep-body h3:first-child { margin-top: 0; }
.deep-body p { font-size: 1rem; margin-bottom: 1rem; } /* 2026-07-12: 本文が小さい指摘対応で.93rem→1rem */
.deep .deep-body { max-height: 150px; overflow: hidden; position: relative; }
.deep .deep-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(transparent, var(--panel)); }
.deep.open .deep-body { max-height: none; }
.deep.open .deep-body::after { display: none; }
.deep-more { display: block; margin: .8rem auto 0; background: none; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: .45rem 1.6rem; font-size: 13px; cursor: pointer; font-family: var(--sans); }
.deep-more:hover { background: rgba(184,134,46,0.1); }
.deep.open .deep-more { display: none; }

/* トレ助のコメント */
.tresuke { margin-top: 3rem; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: 1.5rem 1.7rem; display: flex; gap: 1.3rem; align-items: flex-start; box-shadow: 0 2px 8px rgba(90,66,38,0.08); }
.tresuke img { width: 92px; height: auto; border-radius: 10px; border: 1px solid var(--panel-border); flex-shrink: 0; }
.tresuke .ttl { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; color: var(--gold); margin-bottom: .5rem; letter-spacing: .06em; }
.tresuke p { font-size: 1rem; margin-bottom: .7rem; } /* 2026-07-12: 本文が小さい指摘対応で.92rem→1rem */
.tresuke p:last-child { margin-bottom: 0; }

/* 関連記事(最新記事)・更新日 */
.related { margin-top: 2.8rem; }
.rel-row { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--text); background: var(--panel); border: 1px solid var(--panel-border); border-radius: 10px; padding: .9rem 1.3rem; margin-bottom: .7rem; }
.rel-row:hover { border-color: var(--gold); }
.rel-row .code { font-family: var(--deco); font-size: 12px; color: var(--gold); white-space: nowrap; }
.rel-row .t { font-size: .93rem; font-weight: 500; }
.rel-thumb {
  flex-shrink: 0; width: 96px; aspect-ratio: 16/9; border-radius: 6px;
  background: linear-gradient(135deg, #46331f, #2c2013);
  border: 1px solid var(--panel-border);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--deco); font-size: 11px; letter-spacing: .24em; color: var(--gold-light);
}
.rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rel-main { min-width: 0; }
.rel-main .code { display: block; margin-bottom: .1rem; }
.rel-main .t { display: block; line-height: 1.6; }
/* 2026-07-12: 関連記事(最新記事)を横長rel-rowから小さめ縦カード3列に変更(右余白が不格好との指摘対応)。
   front-page.php発掘ノート欄と同じ.cards/.card構造を再利用し、専用サイズだけ上書きする */
.rel-cards { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rel-cards .card-title { font-size: .95rem; }
.rel-cards .card-thumb { aspect-ratio: 16/10; }

.updated { margin-top: 2rem; text-align: right; font-size: 11.5px; color: var(--text2); }
.backlink { display: inline-block; margin-top: 1.4rem; color: var(--gold); text-decoration: none; font-size: 13.5px; }

/* 2026-07-13: 発掘ノートの「主な参考資料」— 閉じた折りたたみ・出典(.updated)と同じ小ささ */
.src-details { margin-top: 2rem; font-size: 11.5px; color: var(--text2); }
.src-details summary { cursor: pointer; text-align: right; }
.src-details ul { margin: .6rem 0 0; padding-left: 1.4em; }
.src-details li { margin: .25em 0; }
.src-details a { color: inherit; }

/* 2026-07-13: 記事本文中の画像(YAMLのimage項目から出力) */
.article-body figure.fig { margin: 1.8rem 0; }
.article-body figure.fig img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
.article-body figure.fig figcaption { margin-top: .5rem; font-size: 12px; color: var(--text2); text-align: center; }

/* ── アーカイブ・検索結果 ── */
.archive-head { margin-top: 2.4rem; }
.archive-desc { font-size: .9rem; color: var(--text2); margin: -0.8rem 0 1.6rem; }
.pagination { margin-top: 2.4rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: .5rem; }
.pagination .page-numbers {
  display: inline-block; min-width: 2.2rem; padding: .35rem .6rem;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 6px;
  color: var(--text); text-decoration: none; font-size: .9rem;
}
.pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--gold); }

/* ── フッター ── */
.site-footer { margin-top: 4rem; background: var(--header-bg); color: #cfc4b2; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 2.2rem 1.4rem 1.6rem; text-align: center; }
.footer-inner img { height: 52px; width: auto; filter: invert(1); mix-blend-mode: screen; opacity: .9; }
.footer-nav { display: flex; justify-content: center; gap: 1.6rem; margin: 1rem 0 .9rem; flex-wrap: wrap; }
.footer-nav a { color: #cfc4b2; text-decoration: none; font-size: 12.5px; }
.footer-nav a:hover { color: #fff; }
.footer-inner p { font-size: 11px; color: #9d9078; }

/* ── WordPress汎用 ── */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; overflow: hidden; position: absolute;
}
#wpadminbar { transition: none; }

/* ── モバイル ── */
@media (max-width: 800px) {
  .site-header { grid-template-columns: auto 1fr; padding: .7rem 1rem; }
  .logo img { height: 44px; }
  .nav { grid-column: 1 / -1; order: 3; gap: 1.1rem; flex-wrap: wrap; }
  .header-right { grid-column: 2; grid-row: 1; }
  .hero img.bg { height: auto; aspect-ratio: 16 / 10; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,14,8,0.78) 0%, rgba(20,14,8,0.42) 55%, transparent 80%); }
  .hero-text { padding: 0 5vw; }
  .hero-eyebrow { margin-bottom: .7rem; }
  .hero-title { font-size: clamp(1.3rem, 5.4vw, 2rem); line-height: 1.5; }
  .hero-sub { margin-top: .6rem; font-size: .82rem; }
  .cta { margin-top: 1.1rem; padding: .6rem 1.7rem; font-size: .88rem; }
  .container { padding: 0 1rem 3rem; }
  /* 見出し行: 「すべて見る」リンクを2行目へ回し、タイトルの1文字縦折れを防ぐ */
  .sec-head { flex-wrap: wrap; row-gap: .1rem; }
  .sec-head .num, .sec-head .ttl, .sec-head .en { white-space: nowrap; }
  .sec-head .more { flex-basis: 100%; margin-left: 0; text-align: right; }
  .biz { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .rel-cards { grid-template-columns: 1fr 1fr; } /* 2026-07-12 */
  .deep-body { padding: 1.4rem 1.2rem 1.6rem; }
  .tresuke { flex-direction: column; }
  .wtd { grid-template-columns: 1fr; }
  .sb-item { padding: 1.1rem 1.2rem; }
}
@media (max-width: 560px) {
  /* スマホ縦は2列表示: 一目で複数の企業が見えるようにする(2026-07-11) */
  .cards { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card-body { padding: .7rem .8rem .8rem; }
  .card-code { font-size: 10.5px; }
  .card-title { font-size: .98rem; margin: .2rem 0 .3rem; }
  .card-ex {
    font-size: .78rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .news-row { gap: .9rem; padding: .85rem 1rem; }
  .news-thumb { width: 96px; }
  .news-main .t { font-size: .9rem; }
  .news-main .ex { font-size: .78rem; }
  .point.with-face { flex-direction: column; }
}
