.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="after-next-read"],.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="after-events"]{min-height:250px;margin:2em 0}.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="after-next-read"]:has(ins.adsbygoogle[data-ad-status="unfilled"]),.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="after-events"]:has(ins.adsbygoogle[data-ad-status="unfilled"]){min-height:0;margin:0}
.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="mid-article"]{min-height:250px;margin:2em 0}.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="mid-article"][hidden]{display:none}.single-post .codex-hm-ad-reserve[data-codex-hm-ad-reserve="mid-article"]:has(ins.adsbygoogle[data-ad-status="unfilled"]){min-height:0;margin:0}

/* Readability floor 2026-10-07: legible small UI text and 32px minimum tap rows. */
@media (max-width: 959px) {
  body .p-breadcrumb__text, body .p-breadcrumb__text span { font-size: 12px !important; }
  body .p-articleMetas .c-categoryList__link { font-size: 12px !important; }
  body .p-pnLinks__title { font-size: 13px !important; line-height: 1.5 !important; }
  body .l-footer__nav a { font-size: 13px !important; }
}
body .reader-nav--footer li > a,
body .reader-nav--sidebar li > a,
body .l-footer__nav a { display: inline-flex !important; align-items: center; min-height: 32px; }

body .hm-hg-note, body .hm-hg-note a, body .hm-hg-lead, body .hm-hg-volume,
body .hm-footer-pr__caption, body .footer-area-map__source,
body .footer-area-map__panel h3 span { font-size: 12px !important; }


/* Top page legibility (excludes native-owned calendar and time-dependent cards). */
body .hm-hero .hm-eyebrow, body .hm-head .hm-eyebrow, body .hm-quick > span,
body .hm-guide-label { font-size: 12px !important; }
body .hm-guide-body > em, body .hm-guide-body > b,
body .hm-footer-pr__section-note, body .hm-footer-pr__intro-cta { font-size: 12.5px !important; }


/* Japanese headings: break lines between phrases (Chrome/Edge auto-phrase), not mid-word.
   Tripled #body_wrap so existing site design rules with !important do not cancel it. */
html #body_wrap#body_wrap#body_wrap :is(h1, .c-postTitle__ttl, .post_content h2, .post_content h3, .post_content h4,
  .p-postList__title, .p-pnLinks__title, .p-blogCard__title, .p-toc__list a, .c-widget__title, .l-articleBottom__title) {
  word-break: auto-phrase !important;
  overflow-wrap: break-word !important;
}
body .hm-basic-calendar-cta__sub { font-size: 12px !important; }


/* Undo phrase breaks on 2-line clamped list titles: they would hide more of the title. */
html #body_wrap#body_wrap#body_wrap#body_wrap .p-postList__title { word-break: normal !important; overflow-wrap: anywhere !important; }


/* Desktop: 12px breadcrumb/category labels; larger invisible hit area for header icon links (no layout change). */
@media (min-width: 960px) {
  body .p-breadcrumb__text, body .p-breadcrumb__text span, body .p-articleMetas .c-categoryList__link { font-size: 12px !important; }
}
body .c-iconList__link { position: relative; z-index: 2; }
body .c-iconList__link::after { content: ""; position: absolute; inset: -8px -6px; }
body .codex-preferred-source-widget p a { display: inline-block; padding: 5px 0; }


/* Sidebar PR block: stack heading above the buttons so the heading is not squeezed to ~1 char per line (seen at 800-1024px). */
body #sidebar .hm-footer-pr__head { flex-direction: column !important; align-items: stretch !important; gap: 10px; }
body #sidebar .hm-footer-pr__head > * { width: auto !important; max-width: none !important; flex: 0 0 auto !important; }


/* Reading-text floor 2026-10-09: captions, notes and mobile table text inside articles at 14px or more (raises only; body paragraphs are already 16px+). */
body .post_content figcaption, body .post_content figcaption a, body .post_content p small,
body .post_content p[style*="font-size:12px"], body .post_content p[style*="font-size:13px"],
body .post_content .codex-mobile-table-caption, body .post_content .codex-mobile-table-scroll-caption { font-size: 14px !important; line-height: 1.6; }
@media (max-width: 959px) {
  body .post_content .codex-mobile-table-cell-value, body .post_content .codex-mobile-table-wrap th, body .post_content .codex-mobile-table-wrap td { font-size: 14px !important; }
}
/* Harimap: hub body text 16px on mobile, hub notes and home lead readable. */
body .post_content .hm-hub-section > p { font-size: 16px !important; }
body .post_content .hm-hub-row-note { font-size: 14px !important; }
body .post_content p.hm-lead { font-size: 15px !important; }
body .post_content .hm-head > p.hm-sub { font-size: 14px !important; }

#body_wrap .codex-preferred-source-widget :is(p,a,span,small){font-size:14px !important}.p-breadcrumb .p-breadcrumb__text{font-size:14px !important}#body_wrap .p-postList :is(.c-postThumb__cat,.c-postTimes__posted,.c-postTimes__modified){font-size:14px !important}

#body_wrap .hm-latest-tabs{min-width:0}
#body_wrap .hm-latest-tabs__hint{font-size:.88rem;color:#526577;margin:0 0 .75rem;line-height:1.6}
#body_wrap .hm-latest-tabs__rail{position:relative;min-width:0;border-bottom:1px solid #d7e0df;background:linear-gradient(to left,#fff,transparent 25px)}
#body_wrap .hm-latest-tabs__tablist{display:flex;gap:.4rem;overflow-x:auto;overscroll-behavior-x:contain;padding:.2rem .15rem .65rem;scrollbar-width:thin;scroll-padding-inline:.25rem}
#body_wrap .hm-latest-tabs__tab{flex:0 0 auto;min-height:44px;padding:.5rem .9rem;border:1px solid #cbd8d4;border-radius:999px;background:#f4f8f6;color:#264b43;font-size:.9rem;font-weight:600;line-height:1.4;white-space:nowrap;cursor:pointer}
#body_wrap .hm-latest-tabs__tab[aria-selected="true"]{background:#04384c;color:#fff;border-color:#04384c;box-shadow:inset 0 -3px 0 #72bd9b}
#body_wrap .hm-latest-tabs__tab:focus-visible,#body_wrap .hm-latest-tabs__more:focus-visible,#body_wrap .hm-latest-tabs__panel:focus-visible{outline:3px solid #9a4d20;outline-offset:3px}
#body_wrap .hm-latest-tabs__scroll-hint{font-size:.75rem;color:#526577;margin:.35rem 0 .65rem;line-height:1.5}
#body_wrap .hm-latest-tabs__panel[hidden]{display:none!important}
#body_wrap .hm-latest-tabs__panel .p-postList{display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:0!important;padding:0!important}
#body_wrap .hm-latest-tabs__panel .p-postList__body{min-width:0;width:100%!important}
#body_wrap .hm-latest-tabs__date{display:block;color:#526577;font-size:.75rem;line-height:1.4;margin-bottom:.25rem}
#body_wrap .hm-latest-tabs__panel .p-postList__title{display:block}
#body_wrap .hm-latest-tabs__more{display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;margin-top:.8rem;padding:.65rem .8rem;border:1px solid #cbd8d4;border-radius:8px;color:#04384c;background:#f4f8f6;font-size:.9rem;font-weight:600;text-decoration:none}
#body_wrap .hm-latest-tabs__empty{padding:1.5rem 0;color:#526577}
/* hm-footer-latest-layout-v2: override the theme's flex widths inside this grid. */
@media(max-width:600px){
#body_wrap.codex-harimap-v4 .hm-footer-section[data-hm-footer-type="new"] .hm-latest-tabs__panel .p-postList__link{grid-template-columns:6rem minmax(0,1fr)}
#body_wrap.codex-harimap-v4 .hm-footer-section[data-hm-footer-type="new"] .hm-latest-tabs__panel .p-postList__thumb{width:6rem}
}


  /* Labels placed on saturated guide-card colors need a stable foreground. */
  #body_wrap .hm-guide-card.is-featured .hm-guide-label {
    color:#fff!important;
  }
  #body_wrap .hm-guide-card:not(.is-featured) .hm-guide-label {
    color:#7c2d12!important;
  }
  /* Muted supporting copy: retain hierarchy while meeting normal-text contrast. */
  #body_wrap .hm-traffic-alert em,
  #body_wrap .hm-fr-head small,
  #body_wrap .hm-fr-body small,
  #body_wrap.single .hm-v5-calendar-summary small,
  #body_wrap.single :where(.c-postTimes__modified,.c-postTimes__posted),
  #body_wrap.single .post_content :where(figcaption,.wp-element-caption) {
    color:#475569!important;
    opacity:1!important;
  }
  #body_wrap .p-breadcrumb__text {
    color:#475569!important;
    opacity:1!important;
  }
  /* Text links remain recognizable without relying on color alone. */
  #body_wrap .p-termHead__desc a,
  #body_wrap.single .post_content :where(figcaption,.wp-element-caption) a,
  #body_wrap .codex-preferred-source-widget p > a {
    color:#0b63b6!important;
    text-decoration:underline!important;
    text-decoration-thickness:1px!important;
    text-underline-offset:2px!important;
  }
  /* Desktop header icons were 26x22 with effectively smaller safe spacing. */
  /* Date metadata is softened again by the design layer, so start darker. */
  #body_wrap.single :where(.c-postTimes__modified,.c-postTimes__posted) {
    color:#334155!important;
  }
  /* Inactive pagination used white on #dedede (1.34:1). */
  #body_wrap :where(.pagination,.c-pagination) .page-numbers {
    background:#475569!important;
    color:#fff!important;
  }
  @media (min-width:960px) {
    #body_wrap .l-header__bar .c-iconList .c-iconList__link {
      box-sizing:border-box!important;
      display:inline-flex!important;
      align-items:center!important;
      justify-content:center!important;
      min-width:28px!important;
      min-height:28px!important;
      padding:4px 7px!important;
    }
  }
