/* =====================================================================
   News detail (single post) - page-specific section styles.
   Shared chrome (reset, header, breadcrumb, footer) lives in main.css.
   ===================================================================== */

/* ---- article body helpers (lifted from the mockup inline <style>) ---- */
.nwd-body { font-family: 'Noto Sans JP', system-ui, sans-serif; }
    .nwd-body p { font-size: 16.5px; line-height: 1.98; margin: 0 0 22px; color: #3A3A3A; }
    .nwd-body strong { color: #1A1A1A; font-weight: 700; }
    .nwd-body ul { margin: 0 0 22px; padding-left: 4px; list-style: none; }
    .nwd-body li { position: relative; font-size: 16px; line-height: 1.9; color: #3A3A3A; padding-left: 24px; margin-bottom: 10px; }
    /* Red-dot bullet is for unordered lists only; ordered lists get numbers below. */
    .nwd-body ul > li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; background: #C8102E; border-radius: 50%; }

    /* ---- ordered list: red, weighted counters (Barlow numerals) ---- */
    .nwd-body ol { margin: 0 0 22px; padding-left: 4px; list-style: none; counter-reset: nwd-ol; }
    .nwd-body ol > li { padding-left: 34px; }
    .nwd-body ol > li::before {
      counter-increment: nwd-ol;
      content: counter(nwd-ol) ".";
      position: absolute; left: 0; top: 0;
      min-width: 24px;
      font-family: Barlow, system-ui, sans-serif;
      font-size: 15px; font-weight: 700;
      color: #C8102E;
      font-variant-numeric: tabular-nums;
    }

    /* ---- inline links ---- */
    .nwd-body a { color: #C8102E; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; transition: color .15s ease; }
    .nwd-body a:hover { color: #0C2D5E; }

    /* ---- emphasis, rule, inline code ---- */
    .nwd-body em { font-style: italic; }
    .nwd-body hr { border: 0; border-top: 1px solid #E3E7EE; margin: 36px 0; }
    .nwd-body code { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: #F4F7FC; border: 1px solid #E3E7EE; border-radius: 4px; padding: 1px 6px; }

    /* An ordered list that sets its own marker (e.g. a migrated lower-greek
       legal callout) opts out of the custom red counter and keeps its marker. */
    .nwd-body ol[style*="list-style"] { padding-left: 2em; counter-reset: none; }
    .nwd-body ol[style*="list-style"] > li { padding-left: 0; }
    .nwd-body ol[style*="list-style"] > li::before { content: none; }

    /* ---- callout / quoted excerpt (core Quote block) ------------------------
       New-site treatment: a light navy panel with a red accent bar and rounded
       corners. Reference lines are bolded navy; a list inside keeps clean a/b/c
       markers instead of the body's red counter. Matches the Topic detail. ---- */
    .nwd-body blockquote,
    .nwd-body .wp-block-quote {
      margin: 30px 0;
      padding: 22px 26px 22px 24px;
      background: #F4F7FC;
      border: 1px solid #E6EAF0;
      border-left: 4px solid #C8102E;
      border-radius: 10px;
      color: #3A4653;
    }
    .nwd-body blockquote > :first-child { margin-top: 0; }
    .nwd-body blockquote p { font-family: "Noto Sans JP", system-ui, sans-serif; font-size: 15px; line-height: 1.9; color: #3A4653; margin: 0 0 14px; }
    .nwd-body blockquote p:last-child { margin-bottom: 0; }
    .nwd-body blockquote strong { color: #0C2D5E; font-weight: 700; }
    .nwd-body blockquote em { font-style: italic; }
    .nwd-body blockquote a { color: #C8102E; }
    .nwd-body blockquote cite { display: block; margin-top: 10px; font-size: 12.5px; font-style: normal; color: #6B7280; }
    .nwd-body blockquote ol { list-style: lower-alpha; padding-left: 1.9em; counter-reset: none; margin: 0 0 14px; }
    .nwd-body blockquote ol > li { padding-left: 4px; margin-bottom: 8px; font-size: 15px; line-height: 1.9; color: #3A4653; }
    .nwd-body blockquote ol > li::before { content: none; }
    .nwd-body blockquote ol > li::marker { color: #C8102E; font-weight: 700; }

    /* ---- images / figures / captions ---- */
    .nwd-body img { max-width: 100%; height: auto; }
    .nwd-body figure:not(.wp-block-table) { margin: 0 0 26px; }
    .nwd-body figure:not(.wp-block-table) img { display: block; width: 100%; border-radius: 8px; }
    .nwd-body figcaption { margin-top: 10px; font-size: 13px; line-height: 1.7; color: #6B7280; text-align: center; }

    /* ---- table (core Table block) ------------------------------------------
       A clean editorial data table, not a spreadsheet dropped into the page:
       a calm navy header with hairline dividers, NO vertical rules in the body
       (only thin horizontal separators), roomy cells, and a soft rounded frame
       that reads as part of the article. Scoped to .nwd-body so it themes any
       editor table; the frame scrolls on narrow screens with a min-width so the
       columns never crush. ---- */
    .nwd-body .wp-block-table { margin: 32px 0; }
    .nwd-body .wp-block-table > table,
    .nwd-body > table { min-width: 560px; }
    /* A raw <table> pasted straight into the editor (not a Gutenberg table
       block) has no scroll wrapper, so its 560px min-width would push the whole
       page wide on mobile. Make the table itself scroll horizontally instead. */
    .nwd-body > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nwd-body figure.wp-block-table {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border: 1px solid #E6EAF0;
      border-radius: 12px;
      box-shadow: 0 1px 3px rgba(6, 22, 41, 0.05);
    }
    .nwd-body table {
      width: 100%;
      border-collapse: collapse;
      font-family: "Noto Sans JP", system-ui, sans-serif;
      font-size: 14px;
      color: #2E3A48;
      font-variant-numeric: tabular-nums;
    }
    /* Header - navy, calm weight, thin translucent dividers only. `border: 0`
       first resets core's block-library table borders, then we add just the
       hairlines we want. */
    .nwd-body thead th {
      background: #0C2D5E;
      color: #fff;
      font-weight: 600;
      font-size: 12.5px;
      line-height: 1.5;
      letter-spacing: 0.02em;
      text-align: center;
      padding: 13px 18px;
      border: 0;
      border-left: 1px solid rgba(255, 255, 255, 0.11);
      border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    }
    .nwd-body thead tr:first-child th:first-child { border-left: 0; }
    .nwd-body thead tr:last-child th { border-bottom: 0; }
    /* Body - horizontal hairlines only (no vertical grid), generous cells. */
    .nwd-body tbody th,
    .nwd-body tbody td {
      padding: 13px 18px;
      border: 0;
      border-top: 1px solid #EDF0F4;
      text-align: center;
      line-height: 1.6;
      color: #3A4653;
    }
    /* First column reads as a row label: left-aligned, navy, weighted. */
    .nwd-body tbody tr > :first-child { text-align: left; font-weight: 700; color: #0C2D5E; white-space: nowrap; }
    /* Whisper-quiet zebra + hover, for scanning wide numeric tables. */
    .nwd-body tbody tr:nth-child(even) { background: #FAFBFD; }
    .nwd-body tbody tr:hover { background: #F3F6FB; }
    .nwd-share { transition: transform .2s ease; }
    .nwd-share:hover { transform: translateY(-3px); }
    .nwd-back { transition: color .15s ease; }
    .nwd-back:hover { color: #C8102E; }
    .nwd-tag { transition: border-color .15s ease, color .15s ease; }
    .nwd-tag:hover { border-color: #0C2D5E; color: #0C2D5E; }
    .nwd-pn { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
    .nwd-pn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px rgba(6,22,41,0.24); }
    .nwd-pn:hover .nwd-pn__img { transform: scale(1.06); }
    .nwd-pn__img { transition: transform .8s cubic-bezier(.16,1,.3,1); }
    .nwd-pn:hover .nwd-pn__t { color: #C8102E; }
    .nwd-pn__t { transition: color .2s ease; }

/* ---------- Article (header + body) ---------- */

.article__box {
  background: rgb(255, 255, 255);
}

.article__box-2 {
  max-width: 1280px;
  margin: 0px auto;
  padding: 40px 24px 0px;
}

.article__box-3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.article__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgb(232, 238, 247);
  color: rgb(12, 45, 94);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
  border: 1px solid rgba(12, 45, 94, 0.08);
}

.article__label-2 {
  font-size: 13px;
}

.article__label-3 {
  background: rgb(200, 16, 46);
  color: rgb(255, 255, 255);
  font-family: Barlow, system-ui, sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  text-transform: uppercase;
}

/* Country chip as a link (flag + name) - matches the Industrial Park hero chip
   and the homepage card. .article__label already supplies the pill; this just
   makes the linked variant behave. */
a.article__label { text-decoration: none; transition: background .15s ease, border-color .15s ease; }
a.article__label:hover { background: rgb(224, 232, 244); border-color: rgba(12, 45, 94, 0.22); }

/* NEW badge - mirrors the homepage card's green "NEW" (.news__label-4). */
.nwd-new {
  display: inline-flex;
  align-items: center;
  background: rgb(236, 253, 245);
  color: rgb(6, 95, 70);
  font-family: Barlow, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  border: 1px solid rgba(6, 95, 70, 0.3);
}

/* Byline meta row: Published date - read time - author, grouped left of Share. */
.nwd-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nwd-readtime {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgb(107, 114, 128);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
/* Author box - profile card at the foot of the article, after the tags. */
.nwd-author-card {
  margin-top: 36px;
  padding: 28px 30px;
  background: rgb(244, 247, 252);
  border: 1px solid rgb(230, 234, 240);
  border-radius: 12px;
}
.nwd-author-card__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgb(227, 231, 238);
}
.nwd-author-card__label {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgb(107, 114, 128);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nwd-author-card__name {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: rgb(12, 45, 94);
  letter-spacing: 0.01em;
}
.nwd-author-card__row {
  display: flex;
  align-items: flex-start;
  gap: 26px;
}
.nwd-author-card__media {
  flex: 0 0 auto;
  width: 150px;
}
.nwd-author-card__media img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: rgb(232, 238, 247);
}
.nwd-author-card__bio {
  flex: 1 1 0%;
  min-width: 0;
}
.nwd-author-card__bio p {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.95;
  color: #3A3A3A;
  margin: 0 0 14px;
}
.nwd-author-card__bio p:last-child { margin-bottom: 0; }
.nwd-author-card__bio strong { font-weight: 700; color: #1A1A1A; }
.nwd-author-card__bio a { color: #C8102E; text-decoration: underline; text-underline-offset: 2px; }

/* Reprint / copyright notice at the foot of the article body. */
.nwd-copyright {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgb(227, 231, 238);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 12.5px;
  line-height: 1.9;
  color: rgb(107, 114, 128);
  text-align: center;
}

.article__title {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  font-size: 40px;
  color: rgb(6, 22, 41);
  margin: 0px;
  line-height: 1.24;
  letter-spacing: 0.01em;
}

.article__text {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 400;
  color: rgb(58, 58, 58);
  line-height: 1.9;
  margin: 20px 0px 0px;
  max-width: 1000px;
}

.article__box-4 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 22px 0px 26px;
}

.article__label-4 {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.article__label-5 {
  width: 3px;
  height: 13px;
  background: rgb(200, 16, 46);
}

.article__label-6 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgb(58, 58, 58);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.article__box-5 {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.article__label-7 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: rgb(107, 114, 128);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article__box-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.article__link {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article__link-2 {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgb(24, 119, 242);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article__link-3 {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgb(10, 102, 194);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article__link-4 {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgb(6, 199, 85);
  color: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article__box-7 {
  max-width: 1280px;
  margin: 0px auto;
  padding: 0px 24px;
}

.article__box-8 {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(6, 22, 41);
}

.article__box-9 {
  max-width: 1000px;
  margin: 0px auto;
  padding: 44px 24px 24px;
}

.article__box-10 {
  margin: 40px 0px 20px;
}

.article__box-11 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
}

.article__label-8 {
  width: 22px;
  height: 2px;
  background: rgb(200, 16, 46);
}

.article__label-9 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(200, 16, 46);
}

.article__heading {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: rgb(6, 22, 41);
  margin: 0px;
  letter-spacing: 0.01em;
  line-height: 1.36;
}

.article__box-12 {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgb(227, 231, 238);
}

.article__box-13 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: rgb(107, 114, 128);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.article__box-14 {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.article__link-5 {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(58, 58, 58);
  border: 1px solid rgb(227, 231, 238);
  border-radius: 100px;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.article__box-15 {
  height: 44px;
}

/* ---------- More updates ---------- */

.more__label {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  color: rgb(107, 114, 128);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Japanese in a label slot built for English small caps - same treatment the
   other detail pages use (.article__label--ja). */
.more__label--ja {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: none;
}

.more__img {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article__box-8 > .more__img {
  position: static;
  height: auto;
  max-height: 540px;
}

.more__section {
  background: rgb(244, 247, 252);
  border-top: 1px solid rgb(227, 231, 238);
}

.more__box {
  max-width: 1000px;
  margin: 0px auto;
  padding: 40px 24px 48px;
}

.more__box-2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.more__label-2 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(200, 16, 46);
}

.more__box-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.more__link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(227, 231, 238);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  cursor: pointer;
  flex-direction: row;
}

.more__box-4 {
  position: relative;
  width: 100px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 5px;
  background: rgb(6, 22, 41);
}

.more__box-5 {
  flex: 1 1 0%;
  min-width: 0px;
  text-align: left;
}

.more__box-6 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-direction: row;
}

.more__icon {
  transform: none;
}

.more__card-title {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: rgb(26, 26, 26);
  margin: 0px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.more__box-7 {
  font-family: Barlow, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgb(107, 114, 128);
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.more__link-2 {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(227, 231, 238);
  border-radius: 8px;
  padding: 16px 18px;
  text-decoration: none;
  cursor: pointer;
  flex-direction: row-reverse;
}

.more__box-8 {
  flex: 1 1 0%;
  min-width: 0px;
  text-align: right;
}

.more__box-9 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  flex-direction: row-reverse;
}

.more__icon-2 {
  transform: none;
}

/* =====================================================================
   MOBILE / RESPONSIVE
   ===================================================================== */
@media (max-width: 768px) {
  .article__title { font-size: clamp(24px, 7vw, 40px); }
  .more__box-3 { grid-template-columns: 1fr; }
  .nwd-body table { font-size: 13.5px; }
  .nwd-body thead th,
  .nwd-body tbody th,
  .nwd-body tbody td { padding: 11px 13px; }
  .nwd-author-card { padding: 22px 20px; }
  .nwd-author-card__row { flex-direction: column; align-items: center; text-align: left; gap: 18px; }
  .nwd-author-card__media,
  .nwd-author-card__media img { width: 120px; height: 120px; }
}
