@charset "UTF-8";
/* ============================================================
   Ukrainavi — Design System
   出典: Ukrainavi_Brand_Editorial_ja_v1.0 / 04章・05章
   規定値（変更はガイドライン改訂を伴う）:
     本文18px・最小16px / 行間 和1.85 欧1.65
     H1 PC40px・SP30px / H2 PC28px・SP24px
     サイト最大1200px / 記事本文最大760px
     余白8px刻み / 角丸8px以下 / 影は原則なし
   ============================================================ */

:root {
  /* --- Color（ガイドライン指定値。追加・改変不可） --- */
  --navy:      #073B53;
  --blue:      #007EA8;
  --link-blue: #006D93;
  --cyan:      #22C6DC;
  --yellow:    #FFDF00;
  --muted:     #526570;
  --fog:       #F3F7F9;
  --white:     #FFFFFF;

  /* --- 派生（原色の透過のみ。新しい色相を作らない） --- */
  --rule:        rgba(7, 59, 83, 0.14);
  --rule-strong: rgba(7, 59, 83, 0.28);
  --fog-deep:    #E7EFF3;
  --shade:       rgba(7, 59, 83, 0.16);  /* 横スクロールの影（UX P2） */

  /* --- Type --- */
  --font-ja: "Noto Sans JP", sans-serif;
  --font-latin: "Noto Sans", sans-serif;

  /* --- Space（8px刻み） --- */
  --s1: 8px;   --s2: 16px;  --s3: 24px;  --s4: 32px;
  --s5: 40px;  --s6: 56px;  --s7: 72px;  --s8: 96px;  --s9: 128px;

  /* --- Layout --- */
  --max-site: 1200px;
  --max-read: 760px;
  --gutter: 20px;          /* スマホ左右余白の規定値 */

  /* --- Radius: 8px以下の規定。4pxを採用 --- */
  --radius: 4px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--navy);
  background: var(--white);
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link-blue); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.45; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; color: inherit; }

/* 見えるフォーカス（ガイドライン05章 受入条件） */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ラテン文字は行間1.65（ガイドライン規定） */
[lang="en"], [lang="uk"], .is-latin {
  font-family: var(--font-latin);
  line-height: 1.65;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--max-site);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.read { max-width: var(--max-read); }

.section { padding-block: var(--s8); }
.section--fog { background: var(--fog); }
.section--tight { padding-block: var(--s6); }

/* セクション見出し ── 折り面の罫を頭に置く */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding-bottom: var(--s2);
  margin-bottom: var(--s5);
  border-bottom: 1px solid var(--rule-strong);
}
.section-head h2 {
  font-size: 28px;
  letter-spacing: .02em;
}
.section-head .more {
  flex: none;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--link-blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.section-head .more:hover { color: var(--navy); }

/* ============================================================
   Utility bar ── タグライン + 言語切替
   言語は国旗で選ばせない（ガイドライン05章）
   ============================================================ */
.utility {
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  line-height: 1.6;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 44px;
}
.utility__tagline {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: .04em;
}
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.lang a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-radius: var(--radius);
  letter-spacing: .02em;
}
.lang a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.lang a[aria-current="true"] {
  color: var(--navy);
  background: var(--yellow);   /* Navy/Yellow = 8.98:1 */
  font-weight: 700;
}

/* ============================================================
   Masthead
   ロゴは白地に原画のまま。透過・反転・単色化はしない（03章）
   ============================================================ */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: var(--s4);
  min-height: 80px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  flex: none;
}
.brand__mark {
  /* 原画は正方形。可視マーク幅48px以上を満たすため枠は64px */
  width: 64px; height: 64px;
  flex: none;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-latin);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1;
}

.nav {
  margin-left: auto;
  min-width: 0;                  /* flexアイテムの既定 min-width:auto を解除 */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;              /* タップ領域44px（05章） */
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
  white-space: nowrap;
}
.nav a:hover { background: var(--fog); }

/* 編集とビジネスの区分を視覚化する（11章 独立性） */
.nav .nav__divide {
  width: 1px;
  height: 24px;
  background: var(--rule-strong);
  margin-inline: 10px;
}
.nav a.is-business { color: var(--muted); }
.nav a.is-business:hover { color: var(--navy); }

/* スマホのメニューボタン。PCでは出さない */
.nav-toggle { display: none; }

/* ============================================================
   折り面プレースホルダ
   写真が未調達の記事に使う暫定アイキャッチ。
   ロゴの折り紙の面構成（鋭角の面が斜めに重なり、白い隙間で分かれる）を
   CSSの多角形に翻訳したもの。生成画像ではない（15章 AI方針に抵触しない）
   面と面の間は座標を離すことで下地の色が覗き、折りの「隙間」になる
   ============================================================ */
.facet {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--fog);
  overflow: hidden;
  border-radius: var(--radius);
}
.facet::before,
.facet::after,
.facet__edge {
  content: "";
  position: absolute;
  inset: 0;
}

/* 面1 ── 左下から右上へ流れる主面（翼） */
.facet::before {
  background: var(--navy);
  clip-path: polygon(0 100%, 44% 0, 68% 40%, 24% 100%);
}
/* 面2 ── 右へ折り返す面 */
.facet::after {
  background: var(--blue);
  clip-path: polygon(30% 100%, 73% 44%, 100% 16%, 100% 100%);
}
/* 面3 ── 手前の小面 */
.facet__edge {
  background: var(--cyan);
  clip-path: polygon(0 100%, 15% 58%, 27% 100%);
}

/* カテゴリごとに折りの角度と面の色を変える */
.facet--culture::before { background: var(--navy); clip-path: polygon(0 100%, 38% 6%, 64% 36%, 20% 100%); }
.facet--culture::after  { background: var(--blue); clip-path: polygon(26% 100%, 69% 40%, 100% 22%, 100% 100%); }
.facet--culture .facet__edge { background: var(--yellow); clip-path: polygon(0 100%, 13% 52%, 24% 100%); }

.facet--people::before  { background: var(--blue); clip-path: polygon(0 100%, 48% 4%, 72% 46%, 28% 100%); }
.facet--people::after   { background: var(--navy); clip-path: polygon(34% 100%, 77% 50%, 100% 24%, 100% 100%); }
.facet--people .facet__edge { background: var(--cyan); clip-path: polygon(0 100%, 17% 62%, 30% 100%); }

.facet--society::before { background: var(--navy); clip-path: polygon(0 100%, 52% 2%, 74% 32%, 30% 100%); }
.facet--society::after  { background: var(--link-blue); clip-path: polygon(36% 100%, 79% 38%, 100% 10%, 100% 100%); }
.facet--society .facet__edge { background: var(--blue); clip-path: polygon(0 100%, 19% 54%, 32% 100%); }

.facet--business::before { background: var(--link-blue); clip-path: polygon(0 100%, 40% 8%, 66% 50%, 22% 100%); }
.facet--business::after  { background: var(--blue); clip-path: polygon(28% 100%, 71% 54%, 100% 28%, 100% 100%); }
.facet--business .facet__edge { background: var(--cyan); clip-path: polygon(0 100%, 14% 66%, 26% 100%); }

.facet--japan::before   { background: var(--blue); clip-path: polygon(0 100%, 42% 0, 70% 42%, 26% 100%); }
.facet--japan::after    { background: var(--navy); clip-path: polygon(32% 100%, 75% 46%, 100% 18%, 100% 100%); }
.facet--japan .facet__edge { background: var(--yellow); clip-path: polygon(0 100%, 16% 56%, 28% 100%); }

/* ============================================================
   記事カード
   16:9写真・カテゴリ・記事種別・見出し・公開日（05章 記事カード要件）
   さらに最終確認日を出す（13章 verified_at）
   ============================================================ */
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__media { position: relative; }
.card__media img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.card__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .01em;
}
.card:hover .card__title { color: var(--link-blue); }
/* 写真が無い記事は図版ごと出さない。
   折り面プレースホルダは5種類しかなく、並べると記事の違いが伝わらないため。 */
.card--nomedia { gap: 0; }
.card__excerpt {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* メタ行 ── カテゴリ・記事種別 */
.meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--muted);
}
.meta__cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--navy);
  font-weight: 700;
}
/* カテゴリの識別は文字で行い、色は極小面積の印にとどめる */
.meta__cat::before {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  background: var(--navy);
}
.meta__cat--culture::before  { background: var(--yellow); }
.meta__cat--people::before   { background: var(--cyan); }
.meta__cat--society::before  { background: var(--navy); }
.meta__cat--business::before { background: var(--blue); }
.meta__cat--japan::before    { background: var(--link-blue); }

.meta__sep { color: var(--rule-strong); }
.meta__type {
  font-weight: 500;
  color: var(--muted);
}

/* 日付行 ── 公開日と最終確認日 */
.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12.5px;
  line-height: 1.6;
  letter-spacing: .03em;
  color: var(--muted);
}
.dates time { font-family: var(--font-latin); }
.dates .verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dates .verified::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
  flex: none;
}

/* ============================================================
   リード（トップの主記事）
   ============================================================ */
.lead {
  padding-block: var(--s7) var(--s8);
}
.lead__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.lead__main .card__title {
  font-size: 40px;                /* H1規定 PC40px */
  line-height: 1.4;
  letter-spacing: .005em;
  margin-top: 4px;
}
.lead__main .card__excerpt {
  font-size: 16px;
  -webkit-line-clamp: 3;
  max-width: 62ch;
}
.lead__main .card { gap: 24px; }
.lead__main .card__body { gap: 14px; }
.lead__main .dates { margin-top: 2px; }

.lead__side {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  border-left: 1px solid var(--rule);
  padding-left: var(--s5);
}
.lead__side .card {
  flex-direction: row;
  gap: 18px;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.lead__side .card:last-child { border-bottom: 0; padding-bottom: 0; }
.lead__side .card__media { flex: none; width: 128px; }
.lead__side .card__title { font-size: 16px; line-height: 1.6; }
.lead__side .card__excerpt { display: none; }
.lead__side .card__body { display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   媒体の約束（19章）
   記事の区画のあとに置く。長い編集方針を記事より先に読ませない。
   ============================================================ */
.pledge {
  border-block: 1px solid var(--rule);
}
.pledge .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s3);
}
.pledge p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 72ch;
}
.pledge strong { font-weight: 700; color: var(--navy); }
.pledge a {
  flex: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--link-blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* ============================================================
   記事グリッド
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6) var(--s5);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   記事の一覧（行）
   カードの羅列にせず、見出し・要旨・日付の行で並べる。
   ============================================================ */
.stories { display: flex; flex-direction: column; }
.stories > li { border-top: 1px solid var(--rule); }
.stories > li:last-child { border-bottom: 1px solid var(--rule); }
.card--row {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s3);
  padding-block: var(--s3);
}
.card--row .card__media { flex: none; width: 168px; }
.card--row .card__body { gap: 8px; }
.card--row .card__title { font-size: 18px; line-height: 1.6; }
.card--row .card__excerpt { font-size: 14.5px; -webkit-line-clamp: 2; }

/* ============================================================
   分野から探す ── 5本柱
   カテゴリー名と件数だけでは、どんな記事があるかが分からない。
   分野ごとに記事の見出しを並べる。カードは使わない。
   ============================================================ */
.pillar-rows { border-top: 1px solid var(--rule); }
.pillar-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--s5);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--rule);
}
.pillar-row__head { position: relative; padding-left: var(--s2); }
.pillar-row__head::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 3px;
  background: var(--navy);
}
.pillar-row--culture  .pillar-row__head::before { background: var(--yellow); }
.pillar-row--people   .pillar-row__head::before { background: var(--cyan); }
.pillar-row--society  .pillar-row__head::before { background: var(--navy); }
.pillar-row--business .pillar-row__head::before { background: var(--blue); }
.pillar-row--japan    .pillar-row__head::before { background: var(--link-blue); }
.pillar-row__name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--navy);
  text-decoration: none;
}
.pillar-row__name:hover { color: var(--link-blue); text-decoration: underline; }
.pillar-row__desc { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.pillar-row__count { font-size: 13px; color: var(--muted); margin-top: 6px; }
.pillar-row__body { display: flex; flex-direction: column; align-items: flex-start; }
.pillar-row__list { align-self: stretch; }
.pillar-row__list li + li { border-top: 1px solid var(--rule); }
.pillar-row__list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}
.pillar-row__list a:hover { color: var(--link-blue); text-decoration: underline; }
.pillar-row__more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--s1);
  font-size: 14px;
  color: var(--link-blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ============================================================
   Business ── 編集面と明確に区分する（11章）
   ============================================================ */
.business {
  background: var(--navy);
  color: var(--white);
}
.business .section-head { border-bottom-color: rgba(255,255,255,.24); }
.business .section-head h2 { color: var(--white); }
.business__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--navy);
  background: var(--yellow);      /* Navy/Yellow 8.98:1 */
  padding: 5px 10px;
  border-radius: var(--radius);
  margin-bottom: var(--s2);
}
.business__intro {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  max-width: 68ch;
  margin-bottom: var(--s6);
}
.business__intro a { color: var(--cyan); }
/* 各サービスの説明はBusinessページに置く。トップでは名称だけを並べる。 */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  margin-bottom: var(--s5);
}
.service {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 var(--s5);
  background: var(--yellow);
  color: var(--navy);             /* 8.98:1 */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
}
.cta:hover { background: #FFE94D; }
.cta--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.5);
}
.cta--ghost:hover { background: rgba(255,255,255,.1); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.cta-note {
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(255,255,255,.7);
  margin-top: var(--s3);
  max-width: 70ch;
}

/* ============================================================
   ニュースレター
   ============================================================ */
.news__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.news h2 { font-size: 28px; margin-bottom: var(--s2); }
.news p { font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.form-row { display: flex; gap: var(--s1); flex-wrap: wrap; margin-top: var(--s3); }
.form-row input[type="email"] {
  flex: 1 1 260px;
  min-height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.form-row input::placeholder { color: var(--muted); }
.form-row button {
  min-height: 56px;
  padding: 0 var(--s4);
  background: var(--navy);
  color: var(--white);            /* 11.94:1 */
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.form-row button:hover { background: #0A4B69; }
.lang-choice {
  display: flex;
  gap: var(--s3);
  margin-top: var(--s2);
  font-size: 14px;
  color: var(--muted);
}
.lang-choice label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  font-size: 14.5px;
  line-height: 1.85;
  padding-block: var(--s8) var(--s6);
}
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s6) var(--s5);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s2); }
.footer__brand img {
  width: 56px; height: 56px;
  background: var(--white);       /* 暗い画面では白い保護面に置く（03章） */
  border-radius: var(--radius);
  padding: 2px;
}
.footer__brand span {
  font-family: var(--font-latin);
  font-size: 23px;
  font-weight: 700;
  color: var(--white);
}
.footer h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: var(--s2);
}
.footer li { margin-bottom: 6px; }
.footer__operator {
  margin-top: var(--s5);
  font-size: 13.5px;
  color: rgba(255,255,255,.66);
  max-width: 80ch;
}
.footer__operator strong { color: rgba(255,255,255,.9); font-weight: 500; }
.footer__bottom {
  padding-top: var(--s4);
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* ============================================================
   Responsive
   受入条件: 200%拡大と320px幅で本文が横にはみ出さない（05章）
   ============================================================ */
@media (max-width: 1024px) {
  .lead__grid { grid-template-columns: 1fr; gap: var(--s6); }
  .lead__side { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s5); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-row { grid-template-columns: 240px 1fr; gap: var(--s4); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .news__grid { grid-template-columns: 1fr; gap: var(--s4); }
}

@media (max-width: 767px) {
  body { font-size: 17px; }
  .section { padding-block: var(--s6); }
  .lead { padding-block: var(--s5) var(--s6); }

  /* H1 SP30px / H2 SP24px（ガイドライン規定） */
  .lead__main .card__title { font-size: 30px; line-height: 1.45; }
  .section-head h2, .news h2 { font-size: 24px; }

  .masthead .wrap { min-height: 64px; gap: var(--s2); }
  .brand__mark { width: 52px; height: 52px; }
  .brand__name { font-size: 22px; }

  /* JSなし：ナビは横スクロール。固定高でテキストを切り落とさない */
  .nav { margin-left: 0; }

  /* JSあり：メニューボタンで開閉する縦並びのパネル */
  .has-nav-toggle .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-height: 44px;
    padding: 0 12px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    background: none;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .has-nav-toggle .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .has-nav-toggle .nav.is-open { display: block; }
  .has-nav-toggle .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s2) 16px var(--s3);
  }
  .has-nav-toggle .nav a { display: flex; white-space: normal; }
  .has-nav-toggle .nav .nav__divide {
    display: block;
    width: auto;
    height: 1px;
    margin: var(--s2) 14px;
  }

  .utility .wrap { gap: var(--s2); }
  .utility__tagline { display: none; }
  .lang { margin-left: auto; }
  /* タグラインを隠すと空になる帯は出さない */
  .utility:not(:has(.lang)) { display: none; }

  .grid { grid-template-columns: 1fr; }
  .pillar-row { grid-template-columns: 1fr; gap: var(--s2); padding-block: var(--s3); }
  .card--row { flex-direction: column; gap: var(--s2); }
  .card--row .card__media { width: 100%; }
  .pledge .wrap { flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .lead__side .card__media { width: 104px; }
}

@media (max-width: 400px) {
  .lead__side .card { flex-direction: column; }
  .lead__side .card__media { width: 100%; }
}

/* 動きを減らす設定を尊重 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 印刷 */
@media print {
  .utility, .nav, .business, .news, .footer { display: none; }
}

/* スクリーンリーダー専用テキスト */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   タップ領域の確保
   ガイドライン05章「タップ領域は原則44×44px以上を媒体内の設計目標とする」
   テキストリンクは行の見た目を変えずに、当たり判定だけを広げる
   ============================================================ */
.lang a { min-height: 44px; }

.footer li { margin-bottom: 0; }
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 見た目の行位置を保ったまま当たり判定を広げる */
.pledge a,
.section-head .more,
.footer__bottom a,
.business__intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* 下線位置が下がりすぎないよう、罫は擬似要素で引く */
.pledge a,
.section-head .more {
  border-bottom: 0;
  position: relative;
}
.pledge a::after,
.section-head .more::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  border-bottom: 1px solid currentColor;
}

/* ============================================================
   記事ページ
   ガイドライン07章 標準テンプレートの①〜⑩を構造として実装する
   必須表示項目は「値が無ければDOMごと出力しない」
   （空欄の枠が並ぶ方が、無いより不誠実になるため）
   ============================================================ */
.article { padding-block: var(--s6) var(--s8); }
.article__inner { max-width: var(--max-read); margin-inline: auto; }

/* ── パンくず ── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-hidden] { color: var(--rule-strong); }

/* ── ①記事種別・カテゴリー ── */
.article__kicker { margin-bottom: var(--s2); }

/* ── ②見出し ── */
.article__title {
  font-size: 40px;                 /* H1規定 PC40px */
  line-height: 1.4;
  letter-spacing: .005em;
  margin-bottom: var(--s3);
}

/* ── ③要旨 ── */
.article__standfirst {
  font-size: 18px;
  line-height: 1.9;
  color: var(--navy);
  padding-left: var(--s3);
  border-left: 3px solid var(--blue);
  margin-bottom: var(--s5);
}

/* ── ④執筆者・編集者・翻訳者・原文言語 ── */
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--s3);
  padding-block: var(--s2);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.7;
}
.byline__item { display: inline-flex; gap: 7px; }
.byline__label { color: var(--muted); flex: none; }
.byline__value { font-weight: 500; }
.byline a { color: var(--link-blue); text-decoration: none; border-bottom: 1px solid var(--rule); }

/* ── ⑤初出日・更新日・確認日 ── */
.dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px var(--s3);
  padding-block: var(--s2);
  border-block: 1px solid var(--rule);
  border-top: 0;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: var(--s5);
}
.dateline time { font-family: var(--font-latin); }
.dateline__verified { display: inline-flex; align-items: center; gap: 6px; }
.dateline__verified::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex: none;
}

/* ── 主画像 ── */
.article__figure { margin-bottom: var(--s5); }
.article__figure .facet, .article__figure img { border-radius: var(--radius); }
.article__figure figcaption {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 10px;
}
.article__figure .credit { color: var(--muted); }
/* 主画像は切り抜かずに全体を見せる。縦長の肖像が画面を占めないよう高さだけ抑える */
.article__figure img { width: auto; max-height: 720px; margin-inline: auto; }
.article__figure .article__caption { display: block; }
.article__figure .credit { display: block; font-size: 12.5px; }
.article__figure .credit a,
.prose figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ── 目次 ── */
.toc {
  background: var(--fog);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s6);
}
.toc h2 {
  font-size: 14px;
  letter-spacing: .1em;
  margin-bottom: var(--s2);
}
.toc ol { counter-reset: toc; }
.toc li { counter-increment: toc; margin-bottom: 4px; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.6;
}
.toc a::before {
  content: counter(toc) ".";
  font-family: var(--font-latin);
  color: var(--muted);
  margin-right: 10px;
  flex: none;
}
.toc a:hover { color: var(--link-blue); }

/* ── ⑥本文 ── */
.prose { font-size: 18px; line-height: 1.95; }
.prose > * + * { margin-top: var(--s3); }
.prose h2 {
  font-size: 28px;                 /* H2規定 PC28px */
  line-height: 1.5;
  margin-top: var(--s7);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--navy);
}
.prose h3 {
  font-size: 21px;
  line-height: 1.6;
  margin-top: var(--s5);
}
.prose ul { padding-left: 1.4em; list-style: disc; }
.prose ol { padding-left: 1.4em; list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }

.prose blockquote {
  margin-inline: 0;
  padding: var(--s3) var(--s4);
  background: var(--fog);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 17px;
}
.prose blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: var(--muted);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.7;
}
.prose th, .prose td {
  padding: 12px 14px;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.prose th { background: var(--fog); font-weight: 700; }
.prose caption {
  caption-side: bottom;
  font-size: 13px;
  color: var(--muted);
  text-align: left;
  padding-top: 10px;
}

/* ============================================================
   信頼のための注記ブロック
   ============================================================ */
.note {
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: var(--s3) var(--s4);
  margin-top: var(--s5);
  font-size: 15.5px;
  line-height: 1.85;
}
.note h2, .note h3 {
  font-size: 14px;
  letter-spacing: .08em;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}
.note p + p { margin-top: 12px; }

/* 利害関係の開示 ── 記事冒頭に置く（11章 関連当事者の4条件③） */
.note--disclosure {
  background: #FFF9D6;             /* Yellow を薄めた面。文字はNavyで11.94:1相当 */
  border-color: var(--yellow);
  margin-top: 0;
  margin-bottom: var(--s5);
}
.note--disclosure h2::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--yellow);
  margin-right: 8px;
}

/* 安全・渡航に関する注記（P0対応） */
.note--safety {
  background: var(--fog);
  border-color: var(--rule-strong);
  border-left: 4px solid var(--navy);
}
.note--safety .checked {
  display: block;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* 何が未確認か／制約（07章 標準テンプレート⑦） */
.note--limits { background: var(--white); }

/* 【見出し】ごとの箇条書き（UX監査 P2-7） */
.limits-list { list-style: none; margin: 0; padding: 0; }
.limits-list li { padding-block: 10px; border-bottom: 1px solid var(--rule); }
.limits-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.limits-list li strong { display: block; margin-bottom: 4px; font-size: 14.5px; }

/* AIの利用：定型文＋「詳しく」の折りたたみ（UX監査 P2-6） */
.note__fold { margin-top: 10px; }
.note__fold > summary {
  display: inline-block;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--link-blue);
}
.note__fold > summary::-webkit-details-marker { display: none; }
.note__fold[open] > summary { margin-bottom: 10px; }
.note--limits .note__links { margin-top: 10px; font-size: 13.5px; }

/* 運営体制の開示 ── 全記事の末尾（08章・11章） */
.note--operator {
  background: var(--fog);
  border-color: var(--rule-strong);
  font-size: 14.5px;
}
.note--operator .note__links {
  margin-top: 12px;
  font-size: 13.5px;
}

/* 出典（⑧） */
.sources { margin-top: var(--s6); }
.sources h2 {
  font-size: 14px;
  letter-spacing: .08em;
  padding-bottom: 12px;
  margin-bottom: var(--s2);
  border-bottom: 1px solid var(--rule-strong);
}
.sources ol { counter-reset: src; font-size: 14.5px; line-height: 1.8; }
.sources li {
  counter-increment: src;
  display: flex;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px solid var(--rule);
}
.sources li::before {
  content: counter(src);
  font-family: var(--font-latin);
  color: var(--muted);
  flex: none;
  min-width: 1.5em;
}
.sources a { color: var(--link-blue); }
.sources .publisher { color: var(--muted); }

/* 訂正履歴（⑨） */
.corrections { margin-top: var(--s5); }
.corrections h2 {
  font-size: 14px;
  letter-spacing: .08em;
  padding-bottom: 12px;
  margin-bottom: var(--s2);
  border-bottom: 1px solid var(--rule-strong);
}
.corrections li {
  padding-block: 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.8;
}
.corrections time { font-family: var(--font-latin); color: var(--muted); margin-right: 10px; }

/* 記事末の訂正窓口（⑩） */
.report-error {
  margin-top: var(--s6);
  padding: var(--s4);
  background: var(--fog);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.85;
}
.report-error a { color: var(--link-blue); }

/* 関連記事 */
.related { margin-top: var(--s8); }
.related .grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--s4); }
.related .card__title { font-size: 16.5px; }
.related .card__excerpt { display: none; }
/* 連載の枠のすぐ後に続く関連記事は、間を詰める */
.related--series + .related { margin-top: var(--s6); }

@media (max-width: 767px) {
  .article { padding-block: var(--s4) var(--s6); }
  .article__title { font-size: 30px; }   /* H1 SP規定 */
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }         /* H2 SP規定 */
  .prose h3 { font-size: 19px; }
  .note, .toc, .report-error { padding: var(--s3); }
  .related .grid { grid-template-columns: 1fr; }
}

/* ============================================================
   固定ページ
   ============================================================ */
.page:not(body) { padding-block: var(--s6) var(--s8); }
.page__head {
  max-width: var(--max-read);
  margin: 0 auto var(--s7);
}
.page__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.page__title {
  font-size: 40px;
  line-height: 1.4;
  margin-bottom: var(--s3);
}
.page__lead {
  font-size: 19px;
  line-height: 1.95;
  color: var(--navy);
}

.page__body { max-width: var(--max-read); margin-inline: auto; }

/* 定義リスト（体制・用語など） */
.deflist {
  border-top: 1px solid var(--rule-strong);
  margin-top: var(--s5);
}
.deflist__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s3);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.deflist__key { font-weight: 700; font-size: 15.5px; }
.deflist__val { font-size: 16px; line-height: 1.85; }
.deflist__val .sub { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* 約束・原則のカード群 */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--s5);
}
.principle {
  background: var(--white);
  padding: var(--s4);
}
.principle h3 {
  font-size: 17px;
  margin-bottom: 10px;
  padding-left: 14px;
  border-left: 3px solid var(--blue);
}
.principle p { font-size: 15px; line-height: 1.85; color: var(--navy); }

/* サービス詳細 */
.svc {
  padding-block: var(--s6);
  border-bottom: 1px solid var(--rule);
}
.svc:last-of-type { border-bottom: 0; }
.svc__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--s6);
  align-items: start;
}
.svc__num {
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 10px;
}
.svc__name { font-size: 26px; line-height: 1.5; margin-bottom: var(--s2); }
.svc__desc { font-size: 16px; line-height: 1.9; }
.svc__points { margin-top: var(--s3); }
.svc__points li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 10px;
}
.svc__points li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 8px; height: 8px;
  background: var(--blue);
}
.svc__note {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--fog);
  border-left: 3px solid var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--navy);
}

/* 問い合わせ導線 */
.contact-band {
  background: var(--navy);
  color: var(--white);
  padding-block: var(--s8);
  margin-top: var(--s8);
}
.contact-band h2 { font-size: 30px; color: var(--white); margin-bottom: var(--s2); }
.contact-band p { color: rgba(255,255,255,.84); font-size: 16px; line-height: 1.9; max-width: 64ch; }
.contact-band .cta-row { margin-top: var(--s4); }

@media (max-width: 767px) {
  .page:not(body) { padding-block: var(--s4) var(--s6); }
  .page__title { font-size: 30px; }
  .page__lead { font-size: 17px; }
  .deflist__row { grid-template-columns: 1fr; gap: 6px; }
  .principles { grid-template-columns: 1fr; }
  .svc__grid { grid-template-columns: 1fr; gap: var(--s3); }
  .svc__name { font-size: 22px; }
  .contact-band { padding-block: var(--s6); }
  .contact-band h2 { font-size: 24px; }
}

/* ページ末尾のCTA帯は、ページ下部の余白を相殺してフッターに接する */
.page:not(body) > .contact-band:last-child { margin-bottom: calc(var(--s8) * -1); }
@media (max-width: 767px) {
  .page:not(body) > .contact-band:last-child { margin-bottom: calc(var(--s6) * -1); }
}

/* 独立した操作要素は44pxを確保する。
   文の途中に置かれたリンクは、行間に縛られるため対象外
   （WCAG 2.5.8 の inline 例外。44pxにすると日本語の行送りが壊れる） */
.crumbs a,
.byline a,
.deflist__val > a,
.toc a,
.sources a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* 高さを取る分、行の詰まりを調整する */
.crumbs { gap: 4px 8px; margin-bottom: var(--s2); }
.byline { padding-block: 6px; }
.dateline { padding-block: var(--s2); }
.deflist__val > a + a { margin-left: 4px; }

/* リンクに44pxの当たり判定を持たせた分、ラベルと値の縦位置を揃え直す */
.byline__item { align-items: center; }
.byline__label { line-height: 44px; }
.crumbs { align-items: center; }
.deflist__val { display: flex; flex-wrap: wrap; align-items: center; column-gap: 2px; }
.deflist__val .sub { flex-basis: 100%; }

/* ============================================================
   WordPress テーマで追加される要素
   ============================================================ */

/* 広告・スポンサー・運営告知のラベル
   ガイドライン11章：見出し付近・一覧・SNSのすべてに表示する */
.ad-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  border-radius: var(--radius);
  flex: none;
}
.ad-label--ad        { background: var(--yellow); color: var(--navy); }   /* 8.98:1 */
.ad-label--sponsored { background: var(--navy);   color: var(--white); }  /* 11.94:1 */
.ad-label--publisher { background: var(--fog-deep); color: var(--navy); border: 1px solid var(--rule-strong); }

/* カテゴリーをリンクにした場合、見た目は変えない */
.meta__link { text-decoration: none; color: inherit; }
.meta__link:hover .meta__cat { color: var(--link-blue); }

/* ページネーション */
.pagination {
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.pagination .page-numbers:hover { background: var(--fog); }
.pagination .page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 700;
}
.pagination .page-numbers.dots { border-color: transparent; min-width: 24px; padding: 0; }
.pagination .screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* 記事内のページ送り */
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: var(--s5);
  font-size: 15px;
}
.page-links a, .page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--navy);
}

/* 検索フォーム */
.searchform { max-width: 520px; }
.searchform input[type="search"] {
  flex: 1 1 220px;
  min-height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.searchform button {
  min-height: 56px;
  padding: 0 var(--s4);
  background: var(--navy);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.searchform button:hover { background: #0A4B69; }

/* WordPress 標準のブロック配置 */
.prose .alignleft  { float: left;  margin: 0 var(--s3) var(--s2) 0; }
.prose .alignright { float: right; margin: 0 0 var(--s2) var(--s3); }
.prose .aligncenter { margin-inline: auto; }
.prose .alignwide, .prose .alignfull { margin-inline: 0; }
.prose figure { margin-inline: 0; }
.prose figcaption {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin-top: 10px;
}
.prose .wp-block-image img { border-radius: var(--radius); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-quote { margin-inline: 0; }
.prose .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--rule-strong);
  margin-block: var(--s6);
}

/* 記事一覧のカードでのフォーカス可視化 */
.card:focus-visible { outline-offset: 4px; }

@media (max-width: 767px) {
  .prose .alignleft, .prose .alignright { float: none; margin: 0 0 var(--s2); }
}

/* ============================================================
   ウクライナ語辞典
   カナは「目安」と必ず添える。母語話者の確認状況を伏せない。
   ============================================================ */

/* --- 一覧の道具立て --- */
.lex-tools {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--rule-strong);
}
.lex-search { display: flex; gap: 8px; }
.lex-search input[type="search"] {
  min-height: 44px;
  min-width: 260px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-ja);
  font-size: 15px;
  background: var(--white);
  color: var(--navy);
}
.lex-search button {
  min-height: 44px;
  min-width: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ja);
  font-size: 15px;
  cursor: pointer;
}
.lex-filter { display: flex; flex-wrap: wrap; gap: 4px; }
.lex-filter a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 14.5px;
  text-decoration: none;
  color: var(--navy);
}
.lex-filter a.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* --- 場面・分野 --- */
.lex-topics {
  margin-bottom: var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--fog);
}
.lex-topics summary {
  min-height: 44px;
  padding: 10px var(--s2);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.lex-topics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s3) var(--s3);
  padding: var(--s1) var(--s2) var(--s3);
}
.lex-topics__head {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.lex-topics ul { list-style: none; margin: 0; padding: 0; }
.lex-topics li a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--link-blue);
  text-decoration: none;
}
.lex-topics li a:hover { text-decoration: underline; }
.lex-topics li a.is-current { color: var(--navy); font-weight: 700; }
.lex-topics__count { color: var(--muted); font-size: 12.5px; }

/* --- 一覧 --- */
.lex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.lex-item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s2);
  background: var(--white);
}
.lex-item__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
}
.lex-item__term {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}
.lex-item__uk {
  font-family: var(--font-latin);
  font-size: 17px;
  color: var(--blue);
}
.lex-item__read {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
}
.lex-item__ja {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.8;
}
.lex-item__badge { margin-top: 10px; }

/* --- 見出し（1語のページ） --- */
.lex-head {
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--rule-strong);
}
.lex-head__term {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.3;
  margin: 0;
  color: var(--navy);
}
.lex-head__uk {
  font-family: var(--font-latin);
  font-size: clamp(22px, 3.5vw, 30px);
  color: var(--blue);
  margin: 6px 0 0;
}
.lex-head__read {
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.lex-translit { font-family: var(--font-latin); }
.lex-kana__note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.lex-head__meta {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lex-pos {
  font-size: 13.5px;
  color: var(--muted);
}

/* --- 母語話者の確認バッジ --- */
.lex-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px solid var(--rule-strong);
}
.lex-badge--pending {
  background: #FFF9D6;             /* 利害開示と同じ注意の面。文字はNavy */
  border-color: var(--yellow);
  color: var(--navy);
}
.lex-badge--reviewed {
  background: var(--fog);
  color: var(--navy);
}
.lex-badge--recheck {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

/* --- 音声 --- */
.lex-audio { margin-top: var(--s2); }
.lex-audio audio { width: 100%; max-width: 420px; }
.lex-audio__note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* --- 本文ブロック --- */
.lex-block { margin-bottom: var(--s4); }
.lex-block h2 {
  font-size: 14px;
  letter-spacing: .08em;
  padding-bottom: 10px;
  margin: 0 0 var(--s2);
  border-bottom: 1px solid var(--rule);
}
.lex-block p { line-height: 1.9; }
.lex-example__uk {
  font-family: var(--font-latin);
  font-size: 18px;
  color: var(--navy);
  margin: 0;
}
.lex-example__ja {
  margin: 8px 0 0;
  color: var(--muted);
}
.lex-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--s4) 0; }
.lex-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 13.5px;
  text-decoration: none;
  color: var(--navy);
}

/* --- 記事本文からの参照 --- */
.lex-ref {
  border-bottom: 1px dotted var(--link-blue);
  text-decoration: none;
}

@media (max-width: 767px) {
  .lex-tools { flex-direction: column; align-items: stretch; }
  .lex-search input[type="search"] { min-width: 0; width: 100%; }
  .lex-list { grid-template-columns: 1fr; }
}

/* 運営各社の公式サイトへのリンク */
.company-link { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.company-link:hover { color: var(--link-blue); }
.footer__operator .company-link { border-bottom-color: rgba(255,255,255,.45); }

/* --- 辞典：まず覚えたい8つの言葉（2026-09-24） --- */
.lex-featured {
  margin: 0 0 var(--s4);
  padding: var(--s3);
  border-radius: var(--radius);
  background: var(--fog);
  border-left: 4px solid var(--yellow);
}
.lex-featured__title {
  margin: 0 0 var(--s2);
  font-size: 18px;
  color: var(--navy);
}
.lex-featured__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s1);
}
.lex-featured__item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  color: var(--navy);
}
.lex-featured__item a:hover { border-color: var(--blue); }
.lex-featured__uk { font-family: var(--font-latin); font-size: 20px; font-weight: 700; }
.lex-featured__kana { font-size: 13px; color: var(--muted); }
.lex-featured__ja { font-size: 14px; }
.lex-featured__note { margin: var(--s1) 0 0; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .lex-featured__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- 3言語化（en / uk）2026-09-24 --- */
/* body に和文書体が直接指定されているため、html[lang] だけでは本文の書体が変わらない。
   Noto Sans JP はウクライナ語の і ї є ґ を持たず、その4字だけ別書体に落ちるため必ず入れる */
:root:lang(en) body, :root:lang(uk) body {
  font-family: var(--font-latin);
  line-height: 1.65;
  font-feature-settings: normal; /* palt は和文用 */
}
:root:lang(en) [lang="ja"], :root:lang(uk) [lang="ja"] { font-family: var(--font-ja); }

/* 翻訳の案内枠（.note に準じる。影なし・角丸4px） */
.note--translation {
  background: var(--fog);
  border-color: var(--rule-strong);
  border-radius: 4px;
  margin-top: var(--s3);
  margin-bottom: var(--s4);
  font-size: 14.5px;
}
.note--translation p + p { margin-top: 8px; }
.note--translation .note__stale { font-weight: 700; }
.note__ai-translation { margin-top: 12px; }

/* ============================================================
   案内役オリュカ（inc/oriuka.php）2026-09-24
   設定書 v2.0 §06・§10：台詞はHTML文字、画像は alt=""、全身は 96px 未満にしない。
   吹き出しは「記事の余白の折り目」。右上を折った淡色の紙に、黄色いしおりを1本だけ差す。
   黄色は面積の小さいアクセントに限り、文字色には使わない（DESIGN_TOKENS 1章）。
   サイトにダークモードは無いため、この部品も明色のみ（色はすべて既存トークン）。
   ============================================================ */
.oriuka {
  --oriuka-fold: 14px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 var(--s5);
  max-width: var(--max-read);
}
.oriuka__figure { flex: none; width: 112px; }
.oriuka--h2 .oriuka__figure,
.oriuka--page .oriuka__figure,
.oriuka--lexicon .oriuka__figure { width: 96px; }
.oriuka-pic img,
.oriuka__figure img { width: 100%; height: auto; }

.oriuka__bubble {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 18px;               /* 鳥の胸の高さに吹き出しの尾を合わせる */
  padding: 14px 22px 16px 22px;
  /* 右上の角を折る：切り欠きを背景で作り、折り返しの三角を ::after で重ねる */
  background: linear-gradient(225deg, transparent var(--oriuka-fold), var(--fog) var(--oriuka-fold));
  border-radius: var(--radius);
}
.oriuka__bubble::after {           /* 折り返した紙の裏 */
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: calc(var(--oriuka-fold) * 1.414);
  height: calc(var(--oriuka-fold) * 1.414);
  background: linear-gradient(45deg, var(--fog-deep) 50%, transparent 50%);
  border-bottom-left-radius: 2px;
}
.oriuka__bubble::before {          /* 吹き出しの尾（鳥の方へ） */
  content: "";
  position: absolute;
  left: -9px;
  bottom: 18px;
  border-style: solid;
  border-width: 7px 10px 7px 0;
  border-color: transparent var(--fog) transparent transparent;
}
.oriuka__label {
  display: inline-block;
  margin-bottom: 4px;
  padding-bottom: 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--muted);
  /* 黄色いしおり：見出しの下に短い一本だけ */
  background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 1.6em 3px no-repeat;
}
.oriuka__label a { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; }
.oriuka__line {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--navy);
}
.oriuka__action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oriuka__action::after { content: "→"; margin-left: .35em; }

/* 本文中（h2 の直前）：h2 の上の大きな余白を部品が受け持ち、h2 は部品に寄せる */
.prose > .oriuka { margin-top: var(--s7); margin-bottom: 0; }
.prose > .oriuka + h2 { margin-top: var(--s3); }
/* ページ（404・検索0件）と辞典の見出し */
.page__body .prose > .oriuka:first-child { margin-top: 0; margin-bottom: var(--s5); }
.prose > .oriuka--page:last-child { margin-top: var(--s5); }
.oriuka--lexicon { margin: var(--s4) 0 0; }
.oriuka--lexicon .oriuka__line,
.oriuka--h2 .oriuka__line { font-size: 16px; }

/* 関連記事の見出しの横（pose 12） */
.section-head--oriuka { align-items: flex-end; flex-wrap: wrap; row-gap: 0; }
.oriuka-next {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: -24px 0 -8px auto;         /* 鳥の上の余白を罫の上に逃がし、見出しの高さを増やしすぎない */
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.oriuka-next__figure { flex: none; width: 96px; }
.oriuka-next__figure img { width: 96px; height: auto; }
.oriuka-next__text { max-width: 12em; }

/* トップ：案内役の紹介枠（分野から探す の後） */
.oriuka-card {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-top: var(--s6);
  padding: var(--s3) var(--s4);
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  max-width: var(--max-read);
}
.oriuka-card__figure { flex: none; width: 112px; }
.oriuka-card__figure img { width: 112px; height: auto; }
.oriuka-card__kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.oriuka-card__title { font-size: 21px; line-height: 1.5; margin: 2px 0 6px; }
.oriuka-card__latin {
  margin-left: .6em;
  font-family: var(--font-latin);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
}
.oriuka-card__text { font-size: 15.5px; line-height: 1.85; }
.oriuka-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--link-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.oriuka-card__link::after { content: "→"; margin-left: .35em; }

/* フッター：顔のアバター（紺の上なので白い保護面に置く） */
.footer__oriuka {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: var(--s2);
  font-size: 13.5px;
}
.footer__oriuka img {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
}

/* 紹介ページ */
.oriuka-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.oriuka-hero__text { flex: 1 1 auto; min-width: 0; }
.oriuka-hero__figure { flex: none; width: 200px; margin-bottom: -8px; }
.oriuka-hero__figure img { width: 200px; height: auto; }
.oriuka-page .oriuka-lead {
  font-size: 18px;
  line-height: 1.95;
  padding: var(--s3) var(--s4);
  background: var(--fog);
  border-radius: var(--radius);
}
.oriuka-page .oriuka-profile th { width: 9em; }
.oriuka-page .oriuka-undecided { color: var(--muted); }
.oriuka-page .oriuka-swatches,
.oriuka-page .oriuka-gallery { padding-left: 0; list-style: none; }
.oriuka-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--s2);
}
.oriuka-swatches li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.5; }
.oriuka-swatches .chip {
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: var(--sw);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.oriuka-swatches code { display: block; font-family: var(--font-latin); font-size: 12.5px; color: var(--muted); }
.oriuka-inline { display: block; width: fit-content; margin-inline: auto; }
.oriuka-inline img { width: 160px; height: auto; }
.oriuka-concept { margin: var(--s4) 0 0; }
.oriuka-concept img { width: 100%; height: auto; aspect-ratio: 1672 / 941; border-radius: var(--radius); }
.oriuka-concept figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.oriuka-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s3) var(--s2);
}
.oriuka-gallery__item { margin: 0; padding: var(--s2); border: 1px solid var(--rule); border-radius: var(--radius); }
.oriuka-gallery__img { width: 128px; margin: 0 auto 8px; }
.oriuka-gallery__img img { width: 128px; height: auto; }
.oriuka-gallery__name { font-size: 15.5px; font-weight: 700; line-height: 1.5; }
.oriuka-gallery__id {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  font-family: var(--font-latin);
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: var(--fog-deep);
  border-radius: 2px;
}
.oriuka-gallery__use { margin-top: 4px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.oriuka-page .oriuka-note {
  margin-top: var(--s5);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 15.5px;
}
.oriuka-page .oriuka-note h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: 15px;
  letter-spacing: .08em;
}
.oriuka-page .oriuka-note p + p { margin-top: 12px; }

@media (max-width: 767px) {
  .oriuka-hero__figure { width: 128px; }
  .oriuka-hero__figure img { width: 128px; }
  .oriuka-card { padding: var(--s3); }
  .oriuka-next__text { display: none; } /* 狭い画面では鳥だけ（見出しを折り返させない） */
  .oriuka-next { margin-top: -32px; }
}
/* 320〜480px：全身は縮めず、吹き出しを鳥の下に回す（設定書 §10） */
/* 375px 前後でも鳥（96px）と吹き出しは横に並べる。縦積みは 340px 未満だけ（縦に間延びさせない） */
@media (max-width: 480px) {
  .oriuka { gap: 8px; align-items: flex-end; }
  .oriuka__figure { width: 96px; flex: 0 0 96px; }
  .oriuka__bubble { font-size: .9375rem; }
  .oriuka-card { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .oriuka-hero { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  .oriuka-hero__figure { margin-bottom: var(--s1); }
}
@media (max-width: 339px) {
  .oriuka { flex-direction: column; align-items: flex-start; gap: 0; }
  .oriuka__figure { width: 96px; }
  .oriuka__bubble { width: 100%; margin-bottom: 0; margin-top: 10px; }
  .oriuka__bubble::before {
    left: 40px; top: -9px; bottom: auto;
    border-width: 0 7px 10px 7px;
    border-color: transparent transparent var(--fog) transparent;
  }
  .oriuka-card { flex-direction: column; align-items: flex-start; gap: var(--s1); }
  .oriuka-hero { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
  .oriuka-hero__figure { margin-bottom: var(--s1); }
}
/* 強制カラー（Windows のハイコントラスト）では背景が消えるので枠を出す */
@media (forced-colors: active) {
  .oriuka__bubble, .oriuka-card { border: 1px solid CanvasText; }
  .oriuka__bubble::before, .oriuka__bubble::after { display: none; }
}
/* 印刷：記事の本文と出典を優先し、キャラクターは出さない */
@media print {
  .oriuka, .oriuka-next, .oriuka-card, .oriuka-hero__figure { display: none !important; }
}

/* ==========================================================================
   お問い合わせフォーム（Contact Form 7 / ukr-form）2026-09-24
   表組みをやめ、ラベルを入力欄の上に置く1〜2列のフォームに。ガイドラインの色と角丸4pxのみ使う。
   ========================================================================== */
.ukr-form { margin-top: var(--s4); }
.ukr-form__lead { color: var(--navy); margin: 0 0 var(--s2); }
.ukr-form__legend { color: var(--muted); font-size: .875rem; margin: 0 0 var(--s3); }
.ukr-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3) var(--s3);
  padding: var(--s4);
  background: var(--fog);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}
.ukr-field { display: flex; flex-direction: column; gap: var(--s1); min-width: 0; }
.ukr-field--wide { grid-column: 1 / -1; }
.ukr-field__label {
  display: flex; align-items: center; gap: var(--s1);
  font-weight: 700; font-size: .9375rem; color: var(--navy); line-height: 1.4;
}
.ukr-req, .ukr-opt {
  display: inline-block; flex: none;
  padding: 1px 7px; border-radius: 2px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em; line-height: 1.6;
}
.ukr-req { background: var(--navy); color: var(--white); }
.ukr-opt { background: transparent; color: var(--muted); border: 1px solid var(--rule-strong); }
.ukr-form__legend .ukr-req { vertical-align: 1px; }
.ukr-form .wpcf7-form-control-wrap { display: block; }
.ukr-form input[type="text"],
.ukr-form input[type="email"],
.ukr-form input[type="tel"],
.ukr-form select,
.ukr-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 12px 14px;
  font: inherit; font-size: 1rem; line-height: 1.5; color: var(--navy);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ukr-form textarea { min-height: 200px; resize: vertical; }
.ukr-form select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.ukr-form ::placeholder { color: var(--muted); opacity: .75; }
.ukr-form input:hover, .ukr-form select:hover, .ukr-form textarea:hover { border-color: var(--link-blue); }
.ukr-form input:focus, .ukr-form select:focus, .ukr-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 126, 168, .18);
}
.ukr-form .wpcf7-not-valid { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--yellow); }
.ukr-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 700; color: var(--navy); }
.ukr-form .wpcf7-not-valid-tip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--yellow); vertical-align: 1px; }

.ukr-form__consent { margin: var(--s3) 0 0; font-size: .9375rem; color: var(--navy); }
.ukr-form__consent .wpcf7-list-item { margin: 0; }
.ukr-form__consent label { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ukr-form__consent input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }

.ukr-form__actions { margin-top: var(--s3); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.ukr-form .ukr-form__submit {
  min-width: 240px; padding: 16px 32px;
  font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: .04em;
  color: var(--white); background: var(--navy);
  border: 0; border-bottom: 3px solid var(--yellow); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s ease;
}
.ukr-form .ukr-form__submit:hover { background: var(--blue); }
.ukr-form .ukr-form__submit:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.ukr-form .ukr-form__submit:disabled { opacity: .45; cursor: not-allowed; } /* 同意のチェック前。色は変えず薄くするだけ */
.ukr-form .wpcf7-spinner { margin: 0; }

.ukr-form__recaptcha { margin-top: var(--s3); font-size: .75rem; line-height: 1.6; color: var(--muted); }
.ukr-form__recaptcha a { color: var(--muted); }

/* 送信結果のメッセージ */
.wpcf7 form .wpcf7-response-output {
  margin: var(--s3) 0 0; padding: var(--s2) var(--s3);
  border: 1px solid var(--rule-strong); border-left: 4px solid var(--navy); border-radius: var(--radius);
  background: var(--white); color: var(--navy); font-size: .9375rem;
}
.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--blue); background: var(--fog); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-left-color: var(--yellow); }

@media (max-width: 640px) {
  .ukr-form__grid { grid-template-columns: 1fr; padding: var(--s3) var(--s2); gap: var(--s3); }
  .ukr-form .ukr-form__submit { width: 100%; min-width: 0; }
}

/* ============================================================
   サイト内検索（ヘッダー）
   PC：ナビの右の虫眼鏡ボタンで、ヘッダーの下に検索欄を開く（JS が動いたときだけボタンを出す）
   スマホ：メニューを開いたときの先頭に検索欄
   ============================================================ */
.search-toggle { display: none; }
.has-search-toggle .search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px; height: 44px;              /* タップ領域44px（05章） */
  margin-left: calc(var(--s1) * -1);
  padding: 0;
  color: var(--navy);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}
.has-search-toggle .search-toggle:hover { background: var(--fog); }
.search-toggle[aria-expanded="true"] {
  background: var(--fog);
  border-color: var(--rule-strong);
}
.search-toggle__icon { width: 20px; height: 20px; }

.site-search[hidden] { display: none; }
.site-search {
  background: var(--fog);
  border-top: 1px solid var(--rule);
}
.site-search .wrap {
  display: flex;
  justify-content: flex-end;
  padding-block: var(--s2);
}
.searchform--header { margin: 0; width: 100%; max-width: 640px; }
.searchform--header input[type="search"],
.searchform--header button { min-height: 48px; }
.searchform--header input[type="search"] { font-size: 16px; }

/* メニュー内の検索欄。PC と JS なしでは出さない */
.nav__search { display: none; }

/* 検索結果ページの検索欄 */
.searchform--page { margin-top: var(--s3); }

/* 検索結果：辞典の項目（記事の行と同じ骨組み・図版なし） */
.meta__cat--lexicon::before { background: var(--blue); }
.card__title .card__uk {
  margin-left: 10px;
  font-family: var(--font-latin);
  font-size: .9em;
  font-weight: 500;
  color: var(--blue);
}

/* 検索結果0件：分野から探す */
.search-empty__pillars { margin-top: var(--s4); }
.search-empty__pillars h2 { font-size: 18px; margin-bottom: var(--s2); }
.search-empty__pillars ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.search-empty__pillars a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.search-empty__pillars a:hover { background: var(--fog); }

@media (max-width: 767px) {
  /* スマホは虫眼鏡を出さず、メニューの先頭に検索欄 */
  .has-nav-toggle .search-toggle,
  .has-nav-toggle .site-search { display: none; }
  .has-nav-toggle .nav .nav__search {
    display: block;
    padding: var(--s2) 16px 0;
  }
  .searchform--menu { margin: 0; max-width: none; }
  .searchform--menu input[type="search"],
  .searchform--menu button { min-height: 48px; }
  .searchform--menu input[type="search"] { flex: 1 1 160px; min-width: 0; }
  .searchform--menu button { padding: 0 var(--s3); }
}

@media print {
  .search-toggle, .site-search { display: none; }
}

/* ============================================================
   テーマ（タグ）
   記事末の「この記事のテーマ」・タグ一覧・「テーマから探す」（page-themes.php）
   日本語ページだけに出る（inc/tags.php）。色は :root のトークンだけ。
   ============================================================ */

/* チップ：タップ領域44px（05章）。色面は使わず、罫で区切る */
.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--s2);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
}
.topic-chip:hover { background: var(--fog); border-color: var(--navy); }
.topic-chip__count {
  font-family: var(--font-latin);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--muted);
}
.topic-chip[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.topic-chip[aria-current="page"] .topic-chip__count { color: var(--white); }

/* 記事末：この記事のテーマ（関連記事の直前） */
.post-topics {
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 1px solid var(--rule-strong);
}
.post-topics h2 {
  font-size: 14px;
  letter-spacing: .08em;
  margin-bottom: var(--s2);
}
.post-topics__all {
  margin-top: var(--s2);
  font-size: 14px;
}
.post-topics__all a { color: var(--link-blue); }
.post-topics + .related { margin-top: var(--s6); }

/* タグ一覧 */
.page--topic .page__head { margin-bottom: var(--s5); }
.page--topic .crumbs { margin-bottom: var(--s4); }
.topic-count {
  margin-top: var(--s2);
  font-size: 13.5px;
  color: var(--muted);
}
.topic-siblings { margin-top: var(--s7); }
.topic-siblings .section-head { margin-bottom: var(--s3); }
.topic-siblings .section-head h2 { font-size: 22px; }

/* テーマから探す */
.page--themes .page__head { margin-bottom: var(--s6); }
.page--themes .page__lead p + p { margin-top: 12px; }
.themes-jump { margin-top: var(--s4); }
.themes-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s3);
}
.themes-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--link-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.themes-jump a:hover { color: var(--navy); border-bottom-color: currentColor; }

.theme-groups { border-top: 1px solid var(--rule-strong); }
.theme-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s5);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: var(--s3);
}
.theme-group__head { position: relative; padding-left: var(--s2); }
.theme-group__head::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 0;
  width: 3px;
  background: var(--blue);
}
.theme-group__head h2 { font-size: 22px; letter-spacing: .02em; }
.theme-group__meta { margin-top: 4px; font-size: 13px; color: var(--muted); }

.theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  column-gap: var(--s4);
}
.theme-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 48px;
  padding-block: 11px;
  border-bottom: 1px solid var(--rule);
  color: var(--navy);
  text-decoration: none;
}
.theme-list__name { font-size: 16px; font-weight: 500; line-height: 1.6; }
.theme-list__count {
  flex: none;
  font-family: var(--font-latin);
  font-size: 13px;
  color: var(--muted);
}
.theme-list a:hover .theme-list__name { color: var(--link-blue); text-decoration: underline; }

.theme-picks {
  margin-top: var(--s3);
  padding: var(--s2) var(--s3);
  background: var(--fog);
  border-radius: var(--radius);
}
.theme-picks__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
}
.theme-picks li + li { border-top: 1px solid var(--rule); }
.theme-picks a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--navy);
  text-decoration: none;
}
.theme-picks a:hover { color: var(--link-blue); text-decoration: underline; }

.themes-pillars { margin-top: var(--s6); }
.themes-pillars h2 { font-size: 18px; margin-bottom: var(--s2); }

@media (max-width: 1024px) {
  .theme-group { grid-template-columns: 200px 1fr; gap: var(--s4); }
}
@media (max-width: 767px) {
  .theme-group { grid-template-columns: 1fr; gap: var(--s2); padding-block: var(--s4); }
  .theme-list { grid-template-columns: 1fr; }
  .theme-picks { padding: var(--s1) var(--s2); }
  .topic-siblings { margin-top: var(--s6); }
  .topic-siblings .section-head { flex-wrap: wrap; }
}
@media print {
  .post-topics, .topic-siblings, .themes-jump, .theme-picks, .themes-pillars { display: none; }
}

/* トップ：新着の上のオリュカのひとこと（表示のたびに記事が変わる） */
.oriuka-front-random { margin: 0 0 var(--s4); }
.oriuka-front-random .oriuka { margin: 0; }

/* ============================================================
   UX点検 2026-09-24 P1（inc/ux.php・nav.js と対になる）
   ============================================================ */

/* ── P1-2 ヘッダーのナビ：切れたまま隠さない ──
   JS なし：横スクロールをやめ、折り返して全項目を見せる
   JS あり：入り切らないときは、まず詰める（is-nav-tight）→ それでも入らなければメニューボタンに畳む（is-nav-compact）
   判定は nav.js が実際の幅で行う（言語や項目数でブレークポイントを決め打ちしない） */
html:not(.has-nav-toggle) .nav { overflow: visible; }
html:not(.has-nav-toggle) .nav ul { flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }

.is-nav-tight .nav a { padding-inline: 9px; font-size: 14.5px; }
.is-nav-tight .nav .nav__divide { margin-inline: 4px; }
.is-nav-tight .masthead .wrap { gap: var(--s3); }

@media (min-width: 768px) {
  .has-nav-toggle.is-nav-compact .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    min-height: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    background: none;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    cursor: pointer;
  }
  .has-nav-toggle.is-nav-compact .nav-toggle:hover { background: var(--fog); }
  .is-nav-compact .nav-toggle__bars,
  .is-nav-compact .nav-toggle__bars::before,
  .is-nav-compact .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
  }
  .is-nav-compact .nav-toggle__bars { position: relative; }
  .is-nav-compact .nav-toggle__bars::before,
  .is-nav-compact .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .is-nav-compact .nav-toggle__bars::before { top: -6px; }
  .is-nav-compact .nav-toggle__bars::after { top: 6px; }
  .is-nav-compact .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .is-nav-compact .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
  .is-nav-compact .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

  .has-nav-toggle.is-nav-compact .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: auto;
    width: min(360px, calc(100% - 2 * var(--gutter)));
    max-height: calc(100vh - 81px);
    overflow-y: auto;
    margin: 0;
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }
  .has-nav-toggle.is-nav-compact .nav.is-open { display: block; }
  .has-nav-toggle.is-nav-compact .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: var(--s2);
  }
  .has-nav-toggle.is-nav-compact .nav a { display: flex; white-space: normal; padding-inline: 14px; font-size: 15px; }
  .has-nav-toggle.is-nav-compact .nav .nav__divide {
    display: block;
    width: auto;
    height: 1px;
    margin: var(--s1) 14px;
  }
  .has-nav-toggle.is-nav-compact .search-toggle { margin-left: 0; }
}

/* ── P1-8 スマホでも標語を出す（言語切替の下に1段。トップでは見出しに全文があるので出さない） ── */
@media (max-width: 767px) {
  .utility .wrap { flex-wrap: wrap; gap: 0 var(--s1); }
  .utility__tagline {
    display: block;
    order: 2;
    flex: 1 1 100%;
    font-size: 12px;
    line-height: 1.55;
    letter-spacing: .02em;
    padding-bottom: 8px;
  }
  body:has(.intro) .utility__tagline { display: none; }
}

/* ── P1-8 トップの導入 ── */
.intro {
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s5);
}
.intro__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: var(--s6);
  align-items: start;
}
.intro__grid--solo { grid-template-columns: 1fr; }
.intro__title { margin: 0 0 var(--s2); line-height: 1.3; }
.intro__name {
  display: block;
  font-family: var(--font-latin);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--s1);
}
.intro__tagline {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  max-width: 24em;
}
.intro__lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--navy);
  max-width: 44em;
}
.intro__lead + .intro__lead { margin-top: 4px; color: var(--muted); font-size: 15px; }
.intro__start {
  border-left: 1px solid var(--rule);
  padding-left: var(--s5);
}
.intro__start-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
  margin: 0 0 var(--s1);
}
.intro__list { counter-reset: start; margin: 0; padding: 0; list-style: none; }
.intro__list li { counter-increment: start; border-bottom: 1px solid var(--rule); }
.intro__list li:last-child { border-bottom: 0; }
.intro__list a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 44px;
  padding-block: 10px;
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
}
.intro__list a::before {
  content: counter(start, decimal-leading-zero);
  flex: none;
  font-family: var(--font-latin);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
}
.intro__list a:hover { color: var(--link-blue); text-decoration: underline; text-underline-offset: 3px; }
.intro + .lead { padding-top: var(--s5); }

@media (max-width: 1024px) {
  .intro__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .intro__start { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: var(--s3); }
}
@media (max-width: 767px) {
  .intro { padding-block: var(--s4); }
  .intro__tagline { font-size: 24px; }
  .intro__lead { font-size: 15px; }
  .intro + .lead { padding-top: var(--s4); }
}

/* ── P1-6 目次（H2 が4本以上の記事） ── */
.toc-auto { margin: 0 0 var(--s5); }
.toc-auto__fold {
  background: var(--fog);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.toc-auto__fold > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 var(--s3);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}
.toc-auto__fold > summary::-webkit-details-marker { display: none; }
.toc-auto__fold > summary::after {
  content: "";
  width: 8px; height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s;
}
.toc-auto__fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.toc-auto__count { font-family: var(--font-latin); font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.toc-auto__list {
  counter-reset: toc;
  margin: 0;
  padding: 0 var(--s3) var(--s2);
  list-style: none;
  columns: 2;
  column-gap: var(--s4);
}
.toc-auto__list li { counter-increment: toc; break-inside: avoid; }
.toc-auto__list a {
  display: flex;
  gap: 10px;
  min-height: 44px;
  align-items: center;
  padding-block: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  text-decoration: none;
  border-radius: var(--radius);
}
.toc-auto__list a::before {
  content: counter(toc);
  flex: none;
  min-width: 1.4em;
  font-family: var(--font-latin);
  color: var(--muted);
}
.toc-auto__list a:hover { color: var(--link-blue); }
.toc-auto__list a[aria-current="true"] { color: var(--link-blue); font-weight: 700; }
.toc-auto__list a[aria-current="true"]::before { color: var(--link-blue); }
.prose h2[id] { scroll-margin-top: 96px; }
@media (max-width: 767px) {
  .toc-auto__list { columns: 1; padding-inline: var(--s2); }
  .toc-auto__fold > summary { padding-inline: var(--s2); }
  .prose h2[id] { scroll-margin-top: 80px; }
}

/* ── P1-5 出典：資料名と確認メモを分ける ── */
.sources li > span { min-width: 0; }
/* 確認メモ（ブロック）の直後の改行は、空行になるので出さない */
.sources .sources__what + br { display: none; }
.sources .sources__what {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── P2-8 辞典の項目：出典の「資料を見る」が縦に折れないようにする ── */
.sources__cta { white-space: nowrap; }

/* ── P1-7 次に読む ── */
.next-read { margin-top: var(--s6); }
.next-read__link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--navy);
  text-decoration: none;
}
.next-read__link:hover { background: var(--fog); }
.next-read__media { flex: none; width: 176px; }
.next-read__media img, .next-read__media .facet {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
}
.next-read__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.next-read__label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
}
.next-read__title { font-size: 19px; font-weight: 700; line-height: 1.55; }
.next-read__excerpt {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.next-read__arrow { flex: none; font-size: 22px; color: var(--blue); transition: transform .15s; }
.next-read__link:hover .next-read__arrow { transform: translateX(3px); }
@media (max-width: 767px) {
  .next-read__link { padding: var(--s2); gap: var(--s2); align-items: flex-start; }
  .next-read__media { width: 96px; margin-top: 4px; }
  .next-read__title { font-size: 17px; }
  .next-read__arrow { display: none; }
}

/* ── P1-7 本文後の注記の折りたたみ ── */
.notes-fold {
  margin-top: var(--s5);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
}
.notes-fold > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  min-height: 56px;
  padding: 12px 48px 12px var(--s3);
  position: relative;
  cursor: pointer;
  list-style: none;
}
.notes-fold > summary::-webkit-details-marker { display: none; }
.notes-fold > summary::after {
  content: "";
  position: absolute;
  right: var(--s3);
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s;
}
.notes-fold[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.notes-fold > summary:hover { background: var(--fog); }
.notes-fold__title { font-size: 15px; font-weight: 700; }
.notes-fold__meta { font-size: 13.5px; color: var(--muted); }
.notes-fold__body { padding: 0 var(--s3) var(--s3); border-top: 1px solid var(--rule); }
.notes-fold__body > :first-child { margin-top: var(--s3); }
@media (max-width: 767px) {
  .notes-fold > summary { padding-left: var(--s2); }
  .notes-fold__body { padding: 0 var(--s2) var(--s2); }
}

/* ── P1-9 ご依頼ページ：本文のリスト・見出しの既定を外す ── */
.prose .svc__points { list-style: none; padding-left: 0; }
.prose .svc__name { margin-top: 0; padding-bottom: 0; border-bottom: 0; font-size: 26px; line-height: 1.5; }
@media (max-width: 767px) { .prose .svc__name { font-size: 22px; } }

@media (prefers-reduced-motion: reduce) {
  .toc-auto__fold > summary::after, .notes-fold > summary::after, .next-read__arrow { transition: none; }
}
@media print {
  .toc-auto, .next-read { display: none; }
  .notes-fold > summary::after { display: none; }
}


/* ============================================================
   UX 改善 第2弾（UX 監査 2026-09-24 P2。inc/ux2.php）
   ============================================================ */

/* ── P2-1 一覧の行：小さな図版と要旨 ──
   アイキャッチは 16:9 の縮小版を object-fit で収める（画像ファイルは切り抜かない）。
   アイキャッチの無い記事は分野の折り面。 */
.card--row .card__media { width: 200px; }
.card--row .card__media img,
.card--row .card__media .facet {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--fog);
}
.card--row .card__body { flex: 1 1 auto; min-width: 0; }
.card--row .card__media img { transition: opacity .15s; }
.card--row:hover .card__media img { opacity: .88; }
.stories .card__excerpt { max-width: 46em; }

/* 関連記事：行の一覧（画像と要旨つき） */
.related .stories .card--row { padding-block: var(--s2); }
.related .stories > li:first-child { border-top: 0; }
.related .section-head + .stories { margin-top: calc(-1 * var(--s1)); }
.related .stories .card__media { width: 168px; }
.related .stories .card__title { font-size: 17px; }
.related .stories .card__excerpt { display: -webkit-box; font-size: 14px; }

@media (max-width: 767px) {
  /* スマホでも行のまま。図版は右に小さく（見出しから読ませる） */
  .card--row { flex-direction: row; gap: var(--s2); padding-block: var(--s2); }
  .card--row .card__media,
  .related .stories .card__media { width: 112px; order: 2; margin-top: 4px; }
  .card--row .card__title,
  .related .stories .card__title { font-size: 16.5px; line-height: 1.55; }
  .card--row .card__excerpt { font-size: 14px; line-height: 1.7; }
}
@media (max-width: 359px) {
  .card--row .card__media,
  .related .stories .card__media { width: 88px; }
  .card--row .card__excerpt { display: none; }
}

/* ── P2-2 分野一覧：記事の種類のチップ ── */
.type-filter { margin: calc(-1 * var(--s2)) 0 var(--s4); }
.type-filter .topic-chip[aria-current="page"] .topic-chip__count { color: var(--white); opacity: .8; }

/* ── P2-4 読了時間（日付の行の右端） ── */
.dateline__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.dateline__read::before {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) 50% 25% / 1.5px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 62% 50% / 30% 1.5px no-repeat;
}
@media (max-width: 767px) {
  .dateline__read { margin-left: 0; }
}

/* ── P2-5 本文の表：横スクロールの枠 ──
   スクロールできる向きに影を出す（is-more-left / is-more-right は nav.js が付ける） */
.prose .wp-block-table { overflow: visible; }
.table-wrap { position: relative; margin-block: var(--s4); }
.prose .wp-block-table > .table-wrap { margin-block: 0; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.table-scroll table { margin: 0; }
.table-wrap::before,
.table-wrap::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  width: 28px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.table-wrap::before { left: 0;  background: linear-gradient(to right, var(--shade), transparent); }
.table-wrap::after  { right: 0; background: linear-gradient(to left,  var(--shade), transparent); }
.table-wrap.is-more-left::before,
.table-wrap.is-more-right::after { opacity: 1; }
@media (max-width: 767px) {
  /* 3列以上の表は縮めない（日付が縦に4行へ折れるのを防ぐ） */
  .table-wrap--wide table { min-width: 36em; }
}
.table-wrap.is-short-first tr > :first-child { white-space: nowrap; }

/* ── P2-8 辞典：頭文字から引く・日本語から引く ── */
.lex-letters,
.lex-reverse { margin-block: var(--s3); }
.lex-letters__head,
.lex-reverse__head {
  margin-bottom: var(--s1);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}
.lex-letters ul { display: flex; flex-wrap: wrap; gap: 4px; }
.lex-letters a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-family: var(--font-latin);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  text-decoration: none;
}
.lex-letters a:hover { background: var(--fog); border-color: var(--navy); }
.lex-letters a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.lex-letters li:first-child a { font-family: var(--font-ja); font-size: 14.5px; }
.lex-reverse {
  padding: var(--s3);
  background: var(--fog);
  border-radius: var(--radius);
}
.lex-reverse__lead { margin-bottom: var(--s2); font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.lex-reverse ul { display: flex; flex-wrap: wrap; gap: var(--s1); }
.lex-reverse a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  background: var(--white);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--navy);
  text-decoration: none;
}
.lex-reverse a:hover { border-color: var(--navy); color: var(--link-blue); }
@media (max-width: 767px) {
  .lex-letters a { min-width: 40px; padding: 0 6px; font-size: 16px; }
  .lex-reverse { padding: var(--s2); }
}

/* ── P2-8 辞典の項目：この言葉が出てくる記事・前後の項目 ── */
.lex-refs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lex-refs__list li { font-size: 14.5px; }
.lex-refs__list a { color: var(--link-blue); }

.lex-adjacent {
  display: flex;
  gap: var(--s3);
  margin: var(--s5) 0;
  padding-block: var(--s3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.lex-adjacent__prev, .lex-adjacent__next {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  max-width: 48%;
  text-decoration: none;
}
.lex-adjacent__next { margin-left: auto; text-align: right; }
.lex-adjacent__label { font-size: 12.5px; color: var(--muted); }
.lex-adjacent__title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .lex-adjacent__title { white-space: normal; }
}

@media print {
  .type-filter, .lex-letters, .lex-reverse, .lex-adjacent, .table-wrap::before, .table-wrap::after { display: none !important; }
}
