/* Live theme uses span.border as a hover accent. Tailwind's .border utility
   otherwise paints a 1px currentColor (black) outline on every item. */
header #gmenu ul li span.border {
  border: 0;
  background: transparent;
}

/* Sticky nav: layout_en.css sets z-index:2, which is too low — content
   covers it. Bump so the bar stays on top when scrolled. */
header #gmenu.fixed {
  z-index: 100;
}

.wrap_contents .contents {
  display: block !important;
}

.jp-ad-slot {
  min-height: 90px;
  background: #eee;
}

.overlay.is-hidden,
.overlay.hide:not(.is-open) {
  display: none;
}

/* ARAB NEWS editions dropdown: collapsed link_box must not intercept clicks */
.header_arab .link_box,
.header_lang .link_box {
  pointer-events: none;
}
.header_arab .link_box.active,
.header_lang .link_box.active {
  pointer-events: auto;
}

.more a,
.more button,
#js-listItem-more a {
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

.wrap_contents.category #js-listItem-more,
.wrap_contents.category .category_list .more,
.wrap_contents.category .page-load-status {
  clear: both;
  float: none;
  display: block;
  width: 100%;
}

.wrap_contents.category .page-load-status {
  padding: 30px 0 50px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.detail_body .body p {
  margin: 0 0 30px;
}

.detail_photo img {
  width: 100%;
  height: auto;
}

.detail_photo .embed-container {
  margin-bottom: 5px;
}

.detail_photo video {
  display: block;
  width: 100%;
  height: auto;
}

.detail_photo .jw-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 5px;
}

.detail_photo .jw-wrap > div,
.detail_photo .jw-wrap .jwplayer {
  width: 100%;
  height: 100%;
}

.detail_photo .jw-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.article_box .photo .images,
.thum_block .photo {
  position: relative;
}

.media-label-video {
  position: absolute;
  left: 8px;
  bottom: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  pointer-events: none;
}

.media-label-video::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.media-label-video-compact {
  left: 6px;
  bottom: 6px;
  padding: 4px 6px;
  font-size: 10px;
  gap: 5px;
}

.media-label-video-compact::before {
  border-width: 4px 0 4px 6px;
}

.detail_photo.has-slider .images {
  position: relative;
}

.photo-slider-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.photo-slider-arrow::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: 12px auto 0;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
}

.photo-slider-prev {
  left: 8px;
}

.photo-slider-prev::before {
  margin-left: 14px;
  transform: rotate(-135deg);
}

.photo-slider-next {
  right: 8px;
}

.photo-slider-next::before {
  margin-left: 8px;
  transform: rotate(45deg);
}

.photo-slider-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
}

.photo-slider-counter span {
  color: #f5a623;
}

.wrap_contents.detail .side .entry_archive .block_title div {
  font-family: "Playfair Display", serif;
}

.wrap_contents.detail .side .thum_block .photo img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}

.search-field,
.search-submit {
  font: inherit;
}

.article-autoload .detail_wrap {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #ddd;
}

.article-autoload .page-load-status {
  padding: 30px 0 50px;
  text-align: center;
  color: #888;
  font-size: 13px;
}

.article-autoload .more {
  clear: both;
  padding: 20px 0 50px;
  text-align: center;
}

.article-autoload .more a {
  font-size: 14px;
}

.detail_tags {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 24px 0;
  font-size: 14px;
}

.detail_tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail_tags a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #ccc;
  color: inherit;
  text-decoration: none;
}

/* Inline-block icons wrap once the footer column narrows; keep the row intact
   and let the icons shrink instead. */
footer .sns ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

footer .sns ul li {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}

footer .sns ul li img {
  max-width: 100%;
}

footer .box.sns ul {
  justify-content: center;
}

/* Live site ships these in js/appearsScroll/appearsScroll_pagetop.css. */
.pagetop {
  display: none;
  position: fixed;
  right: 30px;
  bottom: 5%;
  z-index: 99;
  margin: 0;
}

.pagetop.is-visible {
  display: block;
}

.pagetop a {
  display: block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s linear;
}

.pagetop a:hover {
  opacity: 0.8;
}

.pagetop a img {
  width: 100%;
  height: auto;
}

@media only screen and (max-width: 415px) {
  .pagetop {
    right: 1%;
  }
}

/* ── Self-hosted Google Fonts (next/font) ─────────────────────────────
   Legacy CSS references font names directly. These overrides map CSS custom
   properties set by next/font on <html> to the elements that need them,
   replacing the render-blocking external Google Fonts stylesheet. ──── */

body {
  font-family: var(--font-noto-sans-jp), sans-serif, "ヒラギノ角ゴ Pro W3",
    Hiragino Kaku Gothic Pro, "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック",
    "MS PGothic";
}

/* Noto Serif JP — headings, titles, kickers */
#header h1,
.detail .detail_title h1,
.category_list .label_wrap h2,
.thum_block .title,
.wrap_contents.top_roadto2030 .box .title,
footer h2 {
  font-family: var(--font-noto-serif-jp), serif;
}

/* Playfair Display — article body accents (EN edition inherits these selectors) */
.wrap_contents.detail .side .entry_archive .block_title div,
.detail_body .body p.author a,
.detail_body .body ul {
  font-family: var(--font-playfair-display), serif;
}

/* Open Sans — spotlight, photos modules */
.wrap_contents.top_spotlight h2,
.wrap_contents.top_spotlight .spotlight_entry .text .more a,
.wrap_contents.top_photos h2,
.top_photos .more a {
  font-family: var(--font-open-sans), sans-serif;
}
