/*
 * denki-mouhu-hizakake-erabikata / style.css
 * Article-specific styles — additive only.
 * Base design system is loaded via ../../style.css (must be linked first in HTML).
 */

/* ── Article meta & typography ─────────────────────────────── */
.article-meta {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule-soft);
}

.article-lead {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--ink);
  margin: 0 0 2.75rem;
}

.article-h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 3.5rem 0 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-soft);
}

.article-h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 2.4rem 0 1rem;
}

.article p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--ink-muted);
  margin: 0 0 1.4rem;
}

.article p strong { color: var(--ink); font-weight: 600; }

/* ── Pullquote ──────────────────────────────────────────────── */
.article .pullquote {
  margin: 2.5rem 0;
  padding: 1.5rem 1.6rem;
  background: var(--paper-shade);
  border-left: 2px solid var(--clay, #c98a5e);
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-muted);
}
.article .pullquote p:last-child { margin-bottom: 0; }

/* ── Bare list (—-prefixed) ─────────────────────────────────── */
.article ul.bare {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.article ul.bare li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-muted);
}
.article ul.bare li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--clay, #c98a5e);
}

/* ── Notes ──────────────────────────────────────────────────── */
.article .ad-note {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}
.article .search-note {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
}
.article .ref-note {
  margin: 3rem 0 0;
  padding: 1.2rem 1.4rem;
  border: 1px dashed var(--rule);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ── Related links ──────────────────────────────────────────── */
.article .related-link {
  margin-top: 1rem;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.article .related-link:hover {
  background: var(--clay-deep, #a3623a);
  color: var(--paper, #fff);
  border-color: var(--clay-deep, #a3623a);
}

/* ── Product image frame (⭐ lazy-fix: width/height/object-fit triple) ── */
.frame-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-shade, #f5f0eb);
  border-radius: 4px;
  margin-bottom: 1rem;
}

.frame-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ── Scene matrix ───────────────────────────────────────────── */
.matrix-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.scene-matrix-wrap {
  overflow-x: auto;
  margin: 0 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.scene-matrix {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}

.scene-matrix th,
.scene-matrix td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--rule-soft, rgba(0,0,0,0.1));
  vertical-align: middle;
  text-align: center;
}

.scene-matrix th {
  font-family: var(--font-sans);
  font-weight: 600;
  background: var(--paper-shade, #f5f0eb);
  color: var(--ink);
  text-align: center;
}

.scene-matrix td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.scene-matrix tbody tr:nth-child(even) {
  background: rgba(0,0,0,0.015);
}
