/* NoL Renewal D — 記事ページ・固定ページ共通 */

section { padding-top: clamp(2.6rem, 5vw, 4rem); }

/* ---------- 記事ヘッダー ---------- */
.art-head { padding-top: clamp(1.8rem, 4vw, 3rem); }
.art-head h1 {
  font-weight: 900;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin: 0.9rem 0 0;
  word-break: keep-all; overflow-wrap: anywhere;
}
.art-meta {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  margin-top: 1.1rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  color: var(--muted);
}
.art-meta b { color: var(--text); font-weight: 400; }

/* ---------- アイキャッチ ---------- */
.eyecatch {
  position: relative; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #242e42 0%, #161b26 70%);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  margin: clamp(1.4rem, 3vw, 2rem) 0 0;
}
.eyecatch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eyecatch::after {
  content: attr(data-mark);
  position: absolute; right: -0.06em; bottom: -0.32em;
  font-family: var(--font-en); font-style: italic; font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 7rem); line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: rgba(201, 167, 94, 0.13);
}
.eyecatch .t-tag {
  position: absolute; left: 0.9rem; top: 0.9rem; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  color: var(--bg); background: var(--gold); border-radius: 3px;
  padding: 0.15rem 0.6rem;
}

/* ---------- 冒頭おすすめバナー ---------- */
.promo-links { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.9rem; }
.promo-row {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  min-height: 92px; padding: 1.5rem 1.3rem 1.1rem;
  background: linear-gradient(120deg, #2b3549 0%, #161b26 70%);
  border: 1px solid rgba(201, 167, 94, 0.4); border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.promo-row::before {
  content: '/PICKUP';
  position: absolute; left: 0; top: 0; z-index: 2;
  font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.12em;
  color: var(--bg); background: var(--gold);
  padding: 0.14rem 0.55rem; border-radius: 0 0 3px 0;
}
.promo-row::after {
  content: attr(data-mark);
  position: absolute; right: -0.05em; bottom: -0.34em; z-index: 0;
  font-family: var(--font-en); font-style: italic; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4rem); line-height: 1;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: rgba(201, 167, 94, 0.13);
  transition: color 0.3s var(--ease);
}
.promo-row:hover { border-color: var(--gold); }
.promo-row:hover::after { color: rgba(201, 167, 94, 0.24); }
.promo-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.promo-text b { font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 1.5; transition: color 0.3s var(--ease); }
.promo-text b i { font-style: normal; color: var(--gold); margin-right: 0.5rem; }
.promo-row:hover .promo-text b { color: var(--gold); }
.promo-text small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); }
.promo-arrow {
  position: relative; z-index: 1;
  font-family: var(--font-mono); color: var(--muted);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.promo-row:hover .promo-arrow { color: var(--gold); transform: translateX(3px); }

/* ---------- 目次 ---------- */
.toc {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  margin: clamp(1.8rem, 3.5vw, 2.6rem) 0;
}
.toc-head {
  display: flex; align-items: baseline; gap: 0.7rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.toc-head b { font-weight: 900; font-size: 0.9rem; }
.toc-head span { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.toc ol { list-style: none; padding: 0.5rem 0; margin: 0; }
.toc ol a {
  display: grid; grid-template-columns: 44px 1fr; gap: 0.8rem; align-items: baseline;
  padding: 0.55rem 1.2rem;
  font-weight: 700; font-size: 0.85rem;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.toc ol a:hover { background: var(--panel-2); color: var(--gold); }
.toc ol i { font-style: italic; font-family: var(--font-en); font-weight: 800; font-size: 0.78rem; color: var(--gold); }

/* ---------- 記事本文 ---------- */
.article { font-size: 0.95rem; }
.article > p { margin: 1.3em 0; }
.article .lead { color: var(--muted); }
.article a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201, 167, 94, 0.5); }
.article a:hover { text-decoration-color: var(--gold); }
.article h2 {
  display: flex; align-items: baseline; gap: 0.9rem;
  font-weight: 900; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.5;
  margin: 2.8em 0 1em;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  word-break: keep-all; overflow-wrap: anywhere;
  scroll-margin-top: 76px;
}
.article h2::before { content: ''; flex: none; width: 4px; height: 1.05em; background: var(--gold); border-radius: 2px; align-self: center; }
.article h3 {
  font-weight: 900; font-size: 1.05rem;
  margin: 2.2em 0 0.8em;
  word-break: keep-all; overflow-wrap: anywhere;
}
.article h3::before { content: '/'; font-family: var(--font-mono); font-weight: 400; color: var(--gold); margin-right: 0.5em; }
.article ul, .article ol { margin: 1.3em 0; padding-left: 1.4em; }
.article li { margin: 0.4em 0; }
.article li::marker { color: var(--gold); }
.article strong { color: var(--gold); font-weight: 700; }
.article blockquote {
  margin: 1.6em 0;
  padding: 1.1rem 1.4rem;
  background: var(--panel); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-size: 0.9rem;
}
.article blockquote cite { display: block; margin-top: 0.6em; font-family: var(--font-mono); font-style: normal; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--gold); }
.article table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.article th {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); background: var(--panel);
  text-align: left; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
.article td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.article tr:last-child td { border-bottom: none; }
.article figure { margin: 1.8em 0; }
.article figcaption { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.6rem; }
.article img { border-radius: var(--radius); }

/* ---------- シェア ---------- */
.share {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding: 1.2rem 1.3rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.share b { font-family: var(--font-mono); font-weight: 400; font-size: 0.64rem; letter-spacing: 0.15em; color: var(--gold); margin-right: auto; }
.share a, .share button {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  background: none; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted);
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.share a:hover, .share button:hover { border-color: var(--gold); color: var(--gold); }
.share .share-x {
  background: var(--gold); border-color: var(--gold); color: var(--bg);
  font-weight: 700; padding: 0.6rem 1.5rem;
  transition: filter 0.3s var(--ease);
}
.share .share-x:hover { filter: brightness(1.12); color: var(--bg); }

/* ---------- 前後記事 ---------- */
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: clamp(2.2rem, 4vw, 3rem); }
.pn-link {
  display: block;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pn-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.pn-link:hover .pn-title { color: var(--gold); }
.pn-link.next { text-align: right; }
.pn-dir { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.15em; color: var(--gold); }
.pn-title { display: block; font-weight: 700; font-size: 0.85rem; line-height: 1.55; margin-top: 0.5rem; transition: color 0.3s var(--ease); }

/* ---------- 関連記事 ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }

/* ---------- 既存SWELLブロックのダークテーマ可読性補正 ---------- */
/* 装飾セル（アイコン・背景付き）はライトテーマ前提の配色なので薄色地＋黒文字に固定 */
.article td[data-has-cell-bg],
.article th[data-has-cell-bg] {
  background: var(--swl-color_pale-01, #fdf3ec);
  color: #333;
  text-shadow: none;
}
/* SWELLボタン・コアボタンには .article a のリンク装飾（金色＋下線）を適用しない */
.article .swl-inline-btn a,
.article .wp-block-button a,
.article .swell-block-button__link {
  color: #fff;
  text-decoration: none;
}

/* ---------- mobile ---------- */
@media (max-width: 768px) {
  .ad-inart { height: 250px; }
  .art-meta { gap: 0.8rem; }
  .rel-grid { grid-template-columns: 1fr; }
  .pn-nav { grid-template-columns: 1fr; }
}
