:root {
  --paper: #fbf7ef;
  --ink: #1e1d1a;
  --muted: #6e675c;
  --rule: #d9cec0;
  --accent: #9d2f2f;
  --navy: #18324a;
  --green: #2f4f45;
  --gold: #d7a839;
  --sky: #dce8ed;
  --white: #fffdf8;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 0;
}

.date-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand {
  display: grid;
  gap: 2px;
  padding: 24px 0 18px;
  text-align: center;
  text-decoration: none;
  border-bottom: 3px double var(--ink);
}

.brand-title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.9rem;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--accent);
}

main {
  padding: 26px 0 40px;
}

.front-page {
  display: grid;
  gap: 28px;
}

.mobile-news-head {
  display: none;
}

.issue-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 7px 0;
  text-transform: uppercase;
}

.issue-ribbon span:nth-child(2) {
  color: var(--paper);
  background: var(--accent);
  padding: 4px 12px;
}

.issue-ribbon span:last-child {
  text-align: right;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: start;
}

.home-feed {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.lead-card {
  border: 1px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--rule);
  overflow: clip;
}

.lead-card-image {
  display: block;
  background: var(--rule);
  text-decoration: none;
}

.lead-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lead-card-body {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 24px 28px 28px;
  min-width: 0;
}

.lead-card h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(1.85rem, 3.9vw, 3.3rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap: balance;
}

.lead-card h1 a {
  text-decoration: none;
}

.lead-card h1 a:hover {
  color: var(--accent);
}

.lead-card-lower {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.lead-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.lead-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.beginner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.82rem;
}

.beginner-points span {
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--green);
  padding: 6px 10px;
}

.beginner-points span:nth-child(2) {
  color: var(--navy);
}

.beginner-points span:nth-child(3) {
  color: var(--accent);
}

.quick-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lane {
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 13px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.lane:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.lane span,
.lane small {
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.lane span {
  width: fit-content;
  border-bottom: 2px solid currentColor;
  font-size: 0.8rem;
  font-weight: 700;
}

.lane strong {
  font-size: 1.12rem;
  line-height: 1.25;
}

.lane small {
  color: var(--muted);
  font-size: 0.8rem;
}

.lane-red {
  background: #fff6f2;
  color: var(--accent);
}

.lane-green {
  background: #f1f7f1;
  color: var(--green);
}

.lane-navy {
  background: var(--sky);
  color: var(--navy);
}

.latest-section {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.home-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 18px;
}

.sidebar-panel {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.sidebar-panel h2 {
  margin: 6px 0 10px;
  font-size: 1.45rem;
  line-height: 1.25;
}

.sidebar-panel p {
  margin: 0;
  color: var(--muted);
}

.start-panel {
  border: 1px solid var(--ink);
  background:
    linear-gradient(180deg, rgba(220, 232, 237, 0.72), transparent 55%),
    var(--white);
  padding: 18px;
  box-shadow: 6px 6px 0 var(--rule);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud a {
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--green);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.84rem;
  padding: 6px 9px;
  text-decoration: none;
}

.recent-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-list li {
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
}

.recent-list a {
  display: block;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.recent-list a:hover {
  color: var(--accent);
}

.recent-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--muted);
  padding: 12px;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.86rem;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(157, 47, 47, 0.08);
}

.search-box span:last-child {
  background: #eef5e9;
  color: var(--green);
  font-weight: 700;
  padding: 5px 8px;
}

.sidebar-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sidebar-search-results a {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--rule);
  padding-top: 9px;
  text-decoration: none;
}

.sidebar-search-results a:hover strong {
  color: var(--accent);
}

.sidebar-search-results span,
.sidebar-search-results small {
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.72rem;
}

.sidebar-search-results strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.sidebar-search-results p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section-label,
.kicker {
  color: var(--accent);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-link {
  width: fit-content;
  color: var(--accent);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}

.column-grid > section:first-child {
  border-right: 1px solid var(--rule);
  padding-right: 28px;
}

.card-list,
.archive-grid {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.article-card {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
  min-width: 0;
  position: relative;
}

.article-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  background: var(--gold);
  margin-bottom: 10px;
}

.column-grid > section:nth-child(2) .article-card::before {
  background: var(--sky);
}

.card-image {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--ink);
  background: var(--white);
  overflow: hidden;
  text-decoration: none;
}

.card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 180ms ease;
}

.card-image:hover img {
  transform: scale(1.03);
}

.article-card h3 {
  margin: 4px 0 8px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
  line-break: strict;
}

.article-card h3 a {
  text-decoration: none;
}

.article-card h3 a:hover {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.meta-row,
.article-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--green);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
}

.meta-row span,
.article-meta span,
.article-meta time {
  border: 1px solid var(--rule);
  padding: 2px 8px;
  background: var(--white);
}

.weekly,
.start-here,
.archive-page,
.regions-page,
.about-page {
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 28px;
}

.weekly ul {
  columns: 2;
  margin: 12px 0 0;
  padding-left: 20px;
}

.start-here p,
.archive-page p,
.regions-page p,
.about-page p {
  width: min(760px, 100%);
  color: var(--muted);
}

.archive-page h1,
.regions-page h1,
.about-page h1,
.article-page h1 {
  margin: 6px 0 10px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
  line-break: strict;
}

.archive-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.article-page {
  width: min(780px, 100%);
  margin: 0 auto;
}

.article-description {
  color: var(--muted);
  font-size: 1.12rem;
}

.article-image {
  margin: 26px 0 30px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.article-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-image figcaption {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.inline-map {
  margin: 22px 0 26px;
  border: 1px solid var(--ink);
  background: var(--white);
}

.inline-map img {
  display: block;
  width: 100%;
  height: auto;
}

.inline-map figcaption {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.78rem;
  padding: 7px 10px;
}

.article-page h2 {
  border-top: 1px solid var(--rule);
  margin-top: 32px;
  padding-top: 18px;
  font-size: 1.5rem;
}

.article-page h3 {
  color: var(--navy);
}

.article-page p,
.article-page li {
  font-size: 1.04rem;
}

.map-placeholder {
  height: 320px;
  margin: 24px 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 49%, rgba(30, 29, 26, 0.1) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(30, 29, 26, 0.1) 50%, transparent 51%),
    var(--white);
  background-size: 48px 48px;
  color: var(--muted);
  font-size: 1.2rem;
}

.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.region-list a {
  border: 1px solid var(--rule);
  background: var(--white);
  padding: 8px 12px;
  text-decoration: none;
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.9rem;
}

.site-footer {
  border-top: 3px double var(--ink);
  padding: 20px 0 36px;
  color: var(--muted);
  font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 760px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max-width), calc(100% - 40px));
  }

  .date-line {
    justify-content: center;
  }

  .date-line span {
    display: none;
  }

  .column-grid,
  .home-layout,
  .lead-card-lower,
  .quick-lanes,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .issue-ribbon {
    display: none;
  }

  .mobile-news-head {
    display: grid;
    gap: 10px;
  }

  .mobile-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-title-row h2 {
    margin: 0;
    font-family: Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
    font-size: 2rem;
    line-height: 1;
  }

  .mobile-title-row a {
    display: none;
  }

  .lead-card {
    box-shadow: 5px 5px 0 var(--rule);
    background: #eef3fb;
    border-color: #d6e0ef;
  }

  .lead-card-image img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .lead-card-body {
    display: flex;
    flex-direction: column;
    padding: 18px;
  }

  .lead-card .section-label {
    order: 1;
  }

  .lead-card h1 {
    order: 3;
  }

  .lead-card-lower {
    display: contents;
  }

  .lead-card-image {
    order: 2;
    margin: 10px 0 14px;
    border: 1px solid #d6e0ef;
  }

  .lead-summary {
    display: contents;
  }

  .lead-card p {
    display: none;
  }

  .beginner-points {
    order: 4;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.76rem;
  }

  .beginner-points span {
    display: grid;
    place-items: center;
    min-height: 36px;
    padding: 4px 6px;
    text-align: center;
    background: #dbe8f7;
    border: 0;
  }

  .lead-card .text-link {
    order: 5;
  }

  .lead-summary,
  .lead-card p,
  .sidebar-panel p,
  .article-card p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .lead-card p {
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .home-sidebar {
    display: none;
  }

  .column-grid > section:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding-right: 0;
    padding-bottom: 28px;
  }

  .weekly ul {
    columns: 1;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 0;
    overflow: visible;
    padding: 8px 0;
  }

  .nav a {
    min-width: 0;
    justify-content: center;
    padding: 0 6px;
    text-align: center;
    font-size: 0.78rem;
    overflow: hidden;
    white-space: nowrap;
  }

  .nav a:nth-child(n + 4) {
    display: none;
  }

  .nav a:nth-child(2),
  .nav a:nth-child(3) {
    font-size: 0;
  }

  .nav a:nth-child(2)::after {
    content: "World";
    font-size: 0.78rem;
  }

  .nav a:nth-child(3)::after {
    content: "English";
    font-size: 0.78rem;
  }

  .lead-card h1,
  .archive-page h1,
  .regions-page h1,
  .about-page h1,
  .article-page h1 {
    font-size: 1.85rem;
    word-break: break-all;
  }

  .article-card h3 {
    font-size: 0.98rem;
    line-height: 1.35;
    word-break: break-all;
  }

  .article-card {
    padding-top: 10px;
  }

  .article-card::before {
    width: 34px;
    height: 4px;
    margin-bottom: 8px;
  }

  .card-image {
    margin-bottom: 8px;
  }

  .article-card p {
    display: -webkit-box;
    font-size: 0.82rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .article-card .kicker {
    font-size: 0.66rem;
    letter-spacing: 0.04em;
  }

  .article-card .meta-row {
    gap: 5px;
    margin-top: 8px;
  }

  .article-card .meta-row span {
    font-size: 0.68rem;
    padding: 3px 5px;
  }

}
