/* Japan: shared WDO white surfaces and type, with a readable phone layout. */
.country-main-japan { background: var(--ivory); }
.country-main-japan .country-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
.country-main-japan .country-companies .country-section-heading h2 { font-size: 36px; }
.country-main-japan .country-company-table { background: #fff; }
.country-main-japan .country-company-table th,
.country-main-japan .country-company-table td { padding: 22px 20px; }
.country-main-japan .country-company-table thead th:nth-child(1) { width: 38%; }
.country-main-japan .country-company-table thead th:nth-child(2) { width: 30%; }
.country-main-japan .country-company-table thead th:nth-child(3) { width: 32%; }
.country-main-japan .country-jump { gap: 10px; }
.country-main-japan .country-jump a {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 650;
}
.country-main-japan .country-jump a:hover { background: #f8fafb; }
.country-main-japan .country-section-intro { font-size: 14px; }
.country-main-japan .country-company-count { font-size: 13px; }
.country-main-japan .country-company-table thead th { font-size: 13px; }
.country-main-japan .country-company-table tbody th { font-size: 24px; }
.country-main-japan .country-brand-cell { font-size: 18px; }
.country-main-japan .country-brand-website,
.country-main-japan .country-company-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  white-space: normal;
}
.country-main-japan .country-brand-website { display: flex; margin-top: 2px; }
.country-main-japan .country-company-links { gap: 2px 12px; }
.country-main-japan .country-mobile-label { display: none; }
.country-main-japan .country-company-bottom { font-size: 15px; }
.country-main-japan .country-company-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.country-main-japan .country-stories { padding: 32px 0 0; border-left: 0; border-top: 1px solid var(--line); }
.country-main-japan .country-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.country-main-japan .country-news-more { margin: 24px 0 0; }
.country-main-japan .country-news-more a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 3px; background: var(--teal); color: #fff; font-size: 16px; font-weight: 650; text-decoration: none; }
.country-main-japan .country-news-more a:hover { background: var(--teal-dark); }
.country-main-japan.country-news-view .country-stories { padding-top: 0; border-top: 0; }
.country-main-japan .country-news-item {
  margin-bottom: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--country-accent);
  border-radius: 4px;
  background: #fff;
}
.country-main-japan .country-news-list > .country-news-item:first-child { padding-top: 22px; }
.country-main-japan .country-news-item h3 { font-size: 24px; }
.country-main-japan .country-news-date { font-size: 13px; }
.country-main-japan .country-news-date time { color: var(--navy-soft); }
.country-main-japan .country-news-excerpt { font-size: 15px; line-height: 1.8; }
.country-main-japan .country-read-story {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-dark);
  font-size: 15px;
}
.country-main-japan .country-more-news { margin-top: 0; }
.country-main-japan .country-more-news summary { min-height: 48px; padding: 12px 0; font-size: 15px; }
.country-main-japan .story-pagination { font-size: 15px; }
.country-main-japan .page-numbers:not(.dots) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
@media (min-width: 801px) and (max-width: 1050px) {
  .country-main-japan .country-news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .country-main-japan .country-layout { gap: 32px; }
  .country-main-japan .country-news-list { grid-template-columns: 1fr; gap: 16px; }
  .country-main-japan .country-companies .country-section-heading h2 { font-size: 28px; }
  .country-main-japan .country-section-heading { flex-wrap: wrap; gap: 10px; }
  .country-main-japan .country-section-heading h2 { font-size: 28px; }
  .country-main-japan .archive-description { font-size: 16px; line-height: 1.8; }
  .country-main-japan .country-section-intro { font-size: 15px; line-height: 1.8; }
  /* Explicit table roles in the template retain its meaning when rows stack. */
  .country-main-japan .country-company-table,
  .country-main-japan .country-company-table tbody { display: block; width: 100%; }
  .country-main-japan .country-company-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .country-main-japan .country-company-table tbody tr {
    display: block;
    margin-bottom: 16px;
    padding: 16px 20px 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--country-accent);
    border-radius: 4px;
    background: #fff;
  }
  .country-main-japan .country-company-table tbody tr:hover { background: #fff; }
  .country-main-japan .country-company-table tbody th,
  .country-main-japan .country-company-table tbody td { display: block; width: auto; padding: 0; border: 0; }
  .country-main-japan .country-company-table tbody th { font-size: 23px; line-height: 1.4; }
  .country-main-japan .country-company-table tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
  .country-main-japan .country-company-table .country-brand-cell { margin-top: 12px; font-size: 18px; line-height: 1.6; }
  .country-main-japan .country-mobile-label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 14px; }
  .country-main-japan .country-brand-website { margin-top: 7px; font-size: 16px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
  .country-main-japan .country-company-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
  .country-main-japan .country-company-links a { justify-content: center; min-height: 48px; padding: 10px; border: 1px solid #cbd5da; border-radius: 3px; color: var(--teal-dark); font-size: 16px; font-weight: 650; line-height: 1.5; text-align: center; }
  .country-main-japan .country-company-links a:hover { background: #f8fafb; }
  .country-main-japan .country-stories { padding: 28px 0 0; }
  .country-main-japan .country-news-item { padding: 20px; }
  .country-main-japan .country-news-list > .country-news-item:first-child { padding-top: 20px; }
  .country-main-japan .country-news-item h3 { font-size: 24px; }
  .country-main-japan .country-news-date { font-size: 14px; }
  .country-main-japan .country-news-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
  .country-main-japan .country-read-story,
  .country-main-japan .country-more-news summary { font-size: 16px; }
  .country-main-japan .country-explore-label { font-size: 17px; }
}
@media (max-width: 360px) {
  .country-main-japan .country-company-table tbody tr { padding-inline: 16px; }
  .country-main-japan .country-company-links { grid-template-columns: 1fr; }
  .country-main-japan .country-jump a { padding-inline: 11px; }
}

/* Preserve Japan's existing larger names and controls; lift only small copy. */
@media (max-width: 620px) {
  .country-main-japan .country-jump a { font-size: 16px; line-height: 1.5; }
  .country-main-japan .country-section-intro { font-size: 16px; }
  .country-main-japan .country-company-count,
  .country-main-japan .country-company-table thead th { font-size: 14px; line-height: 1.5; }
  .country-main-japan .country-company-bottom { font-size: 16px; line-height: 1.6; }
  .country-main-japan .country-news-item h3 { font-size: 24px; }
  .country-main-japan .country-explore-label { font-size: 17px; }
}

/* Keep Japan's larger company and brand names while lifting desktop supporting copy. */
@media (min-width: 621px) {
  .country-main-japan .country-jump a { font-size: 16px; line-height: 1.5; }
  .country-main-japan .country-section-intro { font-size: 16px; line-height: 1.65; }
  .country-main-japan .country-company-count,
  .country-main-japan .country-company-table thead th { font-size: 14px; line-height: 1.5; }
  .country-main-japan .country-brand-cell { font-size: 18px; line-height: 1.6; }
  .country-main-japan .country-brand-website,
  .country-main-japan .country-company-links a { font-size: 16px; line-height: 1.55; }
  .country-main-japan .country-news-date { font-size: 14px; line-height: 1.6; }
  .country-main-japan .country-news-excerpt { font-size: 16px; line-height: 1.75; }
  .country-main-japan .country-read-story,
  .country-main-japan .country-more-news summary { font-size: 16px; line-height: 1.55; }
}
/* Selected concept 05: Japan's directory only; the full-news view retains its layout. */
.country-main-japan.country-japan-cards { background: #fff; }
.country-japan-cards .country-hero { border-bottom: 0; }
.country-japan-cards .country-hero > .eyebrow { padding-top: 28px; border-top: 4px solid var(--country-accent); color: #8e5151; }
.country-japan-cards .country-jump a:first-child { border-color: var(--country-accent); }
.country-japan-cards .country-title { display: flex; align-items: center; gap: 18px; font-size: clamp(48px, 5vw, 64px); }
.country-japan-cards .country-japan-flag { position: relative; flex: 0 0 auto; width: 54px; height: 36px; border: 1px solid #ccd6dd; background: #fff; }
.country-japan-cards .country-japan-flag::after { position: absolute; content: ""; width: 18px; height: 18px; top: 50%; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: #bc293c; }
.country-japan-cards .country-company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.country-japan-cards .country-company-card { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px; border: 1px solid #ccd6dd; border-top: 3px solid var(--country-accent); background: #fff; }
.country-japan-cards .country-company-card h3 { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.35; overflow-wrap: anywhere; }
.country-japan-cards .country-company-card h3 a { color: var(--navy); text-decoration: none; }
.country-japan-cards .country-company-card h3 a:hover { color: var(--teal-dark); text-decoration: underline; }
.country-japan-cards .country-card-brand { margin: 8px 0 10px; color: var(--navy-soft); font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.country-japan-cards .country-card-brand-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 14px; }
.country-japan-cards .country-card-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: auto; }
.country-japan-cards .country-card-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-dark); font-size: 16px; font-weight: 700; line-height: 1.5; text-underline-offset: 4px; }
.country-japan-cards .country-news-list { gap: 0 22px; }
.country-japan-cards .country-news-item { padding: 22px 0; border: 0; border-bottom: 1px solid #ccd6dd; border-radius: 0; }
.country-japan-cards .country-news-list > .country-news-item:first-child { padding-top: 22px; }
@media (max-width: 800px) {
  .country-japan-cards .country-company-grid { grid-template-columns: 1fr; }
  .country-japan-cards .country-company-card { padding: 18px 20px; }
}
