/* ============================================================
   英語ページ（/en/）専用の追加CSS
   トークン・部品は design-system.css をそのまま使う。ここは差分だけ。

   日本語版との違い:
   ・見出しと本文は英語なので DotGothic16（日本語ドット絵書体）を本文に使わない。
     見出しの「ドット絵らしさ」は Pixelify Sans が受け持つ。
   ・行長を欧文の読みやすさ（およそ70文字）に寄せる。
   ============================================================ */

/* 本文の書体を欧文向けに。design-system.css は日本語書体が先頭なので上書きする */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

/* ---- 記事ヘッダー ---- */
.nw-art-head h1 {
  font-family: "Pixelify Sans", "DotGothic16", sans-serif;
  font-size: clamp(22px, 4.2vw, 34px);
  letter-spacing: .02em;
  line-height: 1.3;
  max-width: 20em;
  margin-left: auto;
  margin-right: auto;
}
.nw-art-head .desc {
  font-family: "Pixelify Sans", sans-serif;
  letter-spacing: .08em;
  margin-bottom: 40px;
}

/* ---- 記事本文 ---- */
.nw-article {
  max-width: 44em;      /* 欧文は1行70文字前後が読みやすい */
  margin-left: auto;
  margin-right: auto;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink, #2b2b2b);
}
.nw-article > *:first-child { margin-top: 0; }
.nw-article p { margin: 0 0 1.5em; }

.nw-article h2 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 21px;
  letter-spacing: .01em;
  color: var(--wine-deep);
  margin: 2.2em 0 .8em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--paper-line);
}
.nw-article h3 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 17.5px;
  color: var(--night);
  margin: 1.8em 0 .6em;
}
.nw-article a { color: var(--wine); text-decoration: underline; }
.nw-article a:hover { color: var(--wine-bright); }

/* 導入の一行（日本語版の .nw-lead と同じ役目） */
.nw-article .nw-lead {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--wine-deep);
  border-left: 5px solid var(--wine);
  padding-left: 16px;
  margin-bottom: 1.8em;
}

.nw-article blockquote {
  margin: 1.8em 0;
  padding: 16px 20px;
  background: #fdf3dc;
  border: 2px solid var(--moon-deep);
  border-left-width: 6px;
  border-radius: 2px;
  box-shadow: var(--shadow-hard-sm);
  font-size: 16.5px;
}
.nw-article blockquote p:last-child { margin-bottom: 0; }

.nw-article ul, .nw-article ol { margin: 0 0 1.5em 1.3em; }
.nw-article li { margin-bottom: .55em; }

.nw-article figure { margin: 1.8em 0; }
.nw-article img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--night-deep);
  box-shadow: var(--shadow-hard);
}
.nw-article figcaption {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 8px;
  line-height: 1.6;
}

/* テロワール表・仕様表 */
.nw-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 14px;
}
.nw-article th, .nw-article td {
  border: 2px solid var(--paper-line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}
.nw-article th {
  background: #f6eee0;
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 500;
  color: var(--wine-deep);
  white-space: nowrap;
}
.nw-table-wrap { overflow-x: auto; }

/* 注記・出典 */
.nw-article .nw-note,
.nw-article .nw-source {
  font-size: 12.5px;
  color: var(--sub);
  line-height: 1.75;
}
.nw-article .nw-source {
  margin-top: 2.4em;
  padding-top: 14px;
  border-top: 2px dashed var(--paper-line);
}
.nw-article .nw-jp-note {
  font-size: 12.5px;
  color: var(--sub);
  margin-top: 1.6em;
}
.nw-article .nw-maplink {
  display: inline-block;
  font-family: "Pixelify Sans", sans-serif;
  letter-spacing: .04em;
}
.nw-article .nw-back { margin-top: 1.4em; margin-bottom: 0; }

/* ---- 英語トップの記事一覧 ---- */
.article-list { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.nw-en-list h3 {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 17px;
  line-height: 1.35;
  color: var(--wine-deep);
  margin-top: 6px;
}
.nw-en-list p { font-size: 13.5px; color: var(--sub); margin-top: 6px; line-height: 1.7; }
.nw-en-list .nw-date {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 12px;
  letter-spacing: .06em;
  opacity: .8;
  margin-top: 8px;
}
.nw-en-list .tag {
  display: inline-block;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--night-deep);
  background: var(--moon);
  border: 1px solid var(--moon-deep);
  border-radius: 2px;
  padding: 1px 8px;
}
.nw-more { margin-top: var(--s3); display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- ナビの言語ボタン ---- */
.site-nav a.item.nw-lang {
  margin-left: auto;
  color: var(--moon);
  border: 1.5px solid var(--moon-deep);
  border-radius: 2px;
  padding: 2px 9px;
}
.site-nav a.item.nw-lang:hover { background: var(--moon); color: var(--night-deep); }

@media (max-width: 640px) {
  .nw-article { font-size: 15.5px; }
  .site-nav a.item.nw-lang { margin-left: 0; }
}

/* ---- リンク集（/en/links/） ----
   日本語版 site/index.html の同名クラスと同じ作り。英語向けに書体だけ差し替える */
.toolbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
  padding: 12px 0; border-bottom: 2px solid var(--paper-line); margin-top: 8px;
}
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip, .toolbar .input { font-family: "Pixelify Sans", sans-serif; }
.link-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .link-grid { grid-template-columns: 1fr; } }
.link-grid a { display: block; height: 100%; }
.link-grid .name {
  display: block; font-family: "Pixelify Sans", sans-serif;
  font-size: 15px; color: var(--wine-deep);
}
.link-grid .name::after { content: " ↗"; font-size: 11px; color: var(--wine-bright); }
.link-grid .desc { display: block; font-size: 12.5px; color: var(--sub); margin-top: 4px; line-height: 1.6; }
.link-grid li.hidden { display: none; }
.sec-sub { font-family: "Pixelify Sans", sans-serif; }
.badge-jp {
  display: inline-block; font-family: "Pixelify Sans", sans-serif; font-size: 10px;
  letter-spacing: .06em; color: var(--night-deep); background: var(--moon);
  border: 1px solid var(--moon-deep); border-radius: 2px; padding: 0 6px;
  margin-left: 6px; vertical-align: 2px;
}
.links-note { font-size: 11.5px; color: var(--sub); margin-top: 30px; padding-top: 12px; border-top: 2px dashed var(--paper-line); }

/* 星（影響力・知名度の目安）。カードの右下に小さく置く。
   クラス名は link-stars。design-system.css の .stars は夜空の星なので別物 */
.link-grid .card { position: relative; padding-bottom: 28px; }
.link-stars {
  position: absolute; right: 12px; bottom: 8px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--moon-deep); white-space: nowrap;
}
.link-stars .dim { color: var(--paper-line); }
.link-stars.s3 { color: var(--wine); }
