/* =========================================================
   DALUMAX HD — Corporate Site
   Design System / Global Styles
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — Variant A (Trust & Craft): Deep Navy × Off-white × Gold */
  --a-ink: #0B1B33;
  --a-ink-2: #14294a;
  --a-paper: #F7F5EF;
  --a-paper-2: #EEEAE0;
  --a-line: #E0DBCE;
  --a-accent: #B48A3C;      /* muted gold */
  --a-muted: #6B6E76;

  /* Active palette */
  --ink: var(--a-ink);
  --ink-2: var(--a-ink-2);
  --paper: var(--a-paper);
  --paper-2: var(--a-paper-2);
  --line: var(--a-line);
  --accent: var(--a-accent);
  --muted: var(--a-muted);

  /* フォームのエラー表示。CF7 既定の青系はサイトのトーンに合わないため独自に持つ */
  --error: #A8322B;

  /* Type scale */
  --font-jp: "Noto Sans JP", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Inter", "Helvetica Neue", -apple-system, sans-serif;
  --font-serif: "Noto Serif JP", "Yu Mincho", serif;

  /* Layout */
  --container: 1360px;
  --gutter: clamp(24px, 4vw, 72px);
  --header-h: 84px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Layering — 数値を直書きせず、ここで前後関係を一元管理する */
  --z-overlay: 200;
  --z-header: 300;   /* ヘッダーはメニューより前面。開閉ボタンが常に見える */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-jp);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity .2s var(--ease), color .2s var(--ease); }
a:hover { opacity: .7; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0; font-weight: 500; letter-spacing: .01em; }
p { margin: 0; }
ul { list-style: none; padding: 0; margin: 0; }

/* ---------- Type helpers ---------- */
.en { font-family: var(--font-en); letter-spacing: .04em; }
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent);
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: var(--z-header);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
/* メニューを開いている間は、オーバーレイと地続きに見せるため下線を消す */
.site-header.is-menu-open { border-bottom-color: transparent; }
/* 背景が透明な初期状態(トップページのヒーロー上)だけ、文字を白系にする。
   .mark と .nav-primary a は自前の color を持たないので、ここからの継承で決まる。
   スクロール後(.is-scrolled)と下層ページ(.is-solid)には効かない。
   メニューを開いている間(.is-menu-open)も、paper のオーバーレイが背後に
   来るため ink に戻す。 */
.site-header:not(.is-scrolled):not(.is-solid):not(.is-menu-open) {
  color: var(--paper);
}
.site-header:not(.is-scrolled):not(.is-solid):not(.is-menu-open) .btn-contact {
  border-color: var(--paper);
}
/* ヘッダー内の余白は 1205px〜1050px の区間で滑らかに詰める。
   中身の実体幅(ロゴ212.9 + ナビ文字386.4 + JP/ENとボタン245.2 = 844.5px)は
   縮まないため、gapを詰めることでナビを出せる下限を1205px→1050pxまで下げている。
   1050pxで下限に達し、それ以下はハンバーガーメニューに切り替える。
   --gutter は各セクションと共用でロゴと本文の左端が揃うため、ここでは触らない。 */
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, calc(14px + (100vw - 1050px) * 18 / 155), 32px);
}
/* ロゴは font-size を基準に組み、中身をすべて em で持たせる。
   狭い画面では基準サイズだけを縮め、2語の比率・間隔・字間は変えない。
   上限20pxには画面幅435pxで到達するため、それより広い画面では従来と同一。 */
.brand {
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(16px, 4.6vw, 20px);
  gap: .5em;
  font-weight: 600;
  letter-spacing: .06em;
}
.brand .mark {
  font-family: var(--font-en);
  font-size: 1em;
  font-weight: 700;
  letter-spacing: .12em;
}
.brand .mark em {
  font-style: normal;
  color: var(--accent);
}
.brand .sub {
  font-size: .55em;
  color: var(--muted);
  letter-spacing: .3em;
}

.nav-primary {
  display: flex;
  align-items: center;
  gap: clamp(16px, calc(16px + (100vw - 1050px) * 20 / 155), 36px);
}
.nav-primary a {
  font-size: 13px;
  letter-spacing: .12em;
  font-weight: 500;
  position: relative;
}
.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-primary a:hover::after,
.nav-primary a.is-current::after { right: 0; }

.nav-utility {
  display: flex;
  align-items: center;
  gap: clamp(10px, calc(10px + (100vw - 1050px) * 10 / 155), 20px);
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch a {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: .16em;
  font-family: var(--font-en);
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-switch a.is-active {
  background: var(--ink);
  color: var(--paper);
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  font-size: 12px;
  letter-spacing: .16em;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .3s var(--ease);
}
.btn-contact:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}
.btn-contact .arrow { font-family: var(--font-en); }

/* ---------- ハンバーガーボタン ---------- */
/* 1049px以下でのみ表示する(表示指定はメディアクエリ側)。
   線の色は currentColor なので、ヘッダーの文字色にそのまま追従する。 */
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  width: 22px;
  height: 1px;
  background: currentColor;
}
.nav-toggle .bar {
  display: block;
  transition: background .2s var(--ease);
}
.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 11px;
  transition: transform .3s var(--ease);
}
.nav-toggle .bar::before { top: 15px; }
.nav-toggle .bar::after  { top: 29px; }
/* 開いている間は中央の線を消し、上下の線を中央で交差させて × にする */
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- メニューオーバーレイ ---------- */
/* .site-header の内側には置けない。.is-scrolled / .is-solid の backdrop-filter が
   position: fixed の包含ブロックを作ってしまい、画面全面に広がらなくなるため。 */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--paper);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.menu-overlay.is-open { opacity: 1; }
.menu-overlay ul {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.menu-overlay li { border-bottom: 1px solid var(--line); }
/* 文字サイズは狭い画面を基準に組み、広い画面で1段上げる。
   お問い合わせは .btn-contact の12pxのままだとリンクに対して弱く、
   タップ領域も40px弱しかないため、オーバーレイ内では一回り大きくする。 */
.menu-overlay li a {
  display: block;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .1em;
}
.menu-overlay li a:hover { color: var(--accent); opacity: 1; }
.menu-overlay .menu-contact {
  margin-top: 40px;
  padding: 14px 26px;
  font-size: 13px;
}
@media (min-width: 481px) {
  .menu-overlay li a { padding: 22px 4px; font-size: 17px; }
  .menu-overlay .menu-contact { padding: 15px 30px; font-size: 14px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  color: var(--paper);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}
.hero .hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero .hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,27,51,.45) 0%, rgba(11,27,51,.10) 30%, rgba(11,27,51,.65) 100%),
    linear-gradient(90deg, rgba(11,27,51,.55) 0%, rgba(11,27,51,0) 60%);
}
.hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-body {
  /* 幅の制約は h1 側に持たせる。ここで固定pxを掛けると、文字サイズが
     clamp() で変わったときに追従できず2行目が折り返す。 */
  max-width: none;
}
.hero .eyebrow { color: #E8D9AC; }

.hero h1 {
  margin: 28px 0 0;
  /* 下限は最小対応幅375pxで2行目「未来へ価値をつなぐ。」が折り返さない値。
     40pxだと「ぐ。」が3行目に落ちる(境界は35px、余裕をみて34px)。
     6.4vwが34pxを超える531px以上では、この下限は効かない。 */
  font-size: clamp(34px, 6.4vw, 92px);
  line-height: 1.12;
  letter-spacing: .02em;
  font-weight: 500;
  /* 2行目を折り返さない幅。日本語10文字+字間で10.2em、英語は11.17em
     必要なため、広いほうに合わせている。emなので文字サイズに追従する。 */
  max-width: 11.5em;
}
.hero h1 .en-line {
  display: block;
  margin-top: 24px;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: clamp(28px, 3.4vw, 48px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
}
.hero-sub {
  margin-top: 40px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 2;
  color: rgba(255,255,255,.85);
  max-width: 640px;
}
.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 12px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll::before {
  content: "";
  width: 1px; height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0));
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%   { transform: translateY(-20px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

/* ---------- Sections ---------- */
/* ページ直下のセクションのみを対象にする。
   要素セレクタ（section）にすると記事内の入れ子セクションにも効いてしまうため。 */
main > section {
  padding: clamp(80px, 10vw, 160px) 0;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: 72px;
}
.section-head .lede h2 {
  margin-top: 20px;
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .02em;
}
.section-head .lede h2 em {
  font-style: normal;
  color: var(--accent);
}
.section-head .lede h2 .serif-accent {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
}
.section-head .meta {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  max-width: 520px;
}
/* 見出しの右側にボタンを並べる場合 */
.section-head .lede.is-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

/* Alt background */
.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-ink .eyebrow { color: #E8D9AC; }
.bg-ink .section-head .meta { color: rgba(255,255,255,.7); }

/* ---------- About stripe (message + numbers) ---------- */
.about-stripe {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--gutter);
  align-items: center;
}
.about-copy h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.5;
  font-weight: 500;
  margin-top: 24px;
}
.about-copy p {
  margin-top: 32px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
  max-width: 560px;
}
.about-copy .btn-contact { margin-top: 40px; }
.about-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}

/* ---------- Business cards ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.biz-card {
  background: var(--paper);
  padding: 40px 36px 44px;
  min-height: 480px;
  display: flex; flex-direction: column;
  transition: background .3s var(--ease), color .3s var(--ease);
  position: relative;
}
.biz-card:hover {
  background: var(--ink);
  color: var(--paper);
}
.biz-card:hover .biz-num,
.biz-card:hover .biz-more { color: var(--accent); }
.biz-card:hover .biz-thumb { opacity: 0.85; }
.biz-num {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .24em;
  color: var(--accent);
  font-weight: 500;
}
.biz-thumb {
  margin-top: 24px;
  aspect-ratio: 4/3;
  overflow: hidden;
  transition: opacity .3s var(--ease);
}
.biz-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.biz-card:hover .biz-thumb img { transform: scale(1.05); }
.biz-card h3 {
  margin-top: 24px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.biz-card h3 .en {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .28em;
  font-weight: 500;
  text-transform: uppercase;
}
.biz-card:hover h3 .en { color: rgba(255,255,255,.6); }
.biz-card p {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.biz-card:hover p { color: rgba(255,255,255,.75); }
.biz-more {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- Business detail (事業領域ページ) ---------- */
.biz-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: center;
  padding: clamp(60px, 8vw, 120px) 0;
  border-bottom: 1px solid var(--line);
}
.biz-detail:nth-child(even) .biz-detail-media { order: -1; }
.biz-detail-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.biz-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.biz-detail-media::after {
  content: ""; position: absolute; inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}
.biz-detail-body .n {
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: .28em; color: var(--accent);
}
.biz-detail-body h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.4;
}
.biz-detail-body .en-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-size: 20px; color: var(--accent);
  display: block; margin-top: 8px;
}
.biz-detail-body p {
  margin-top: 24px;
  font-size: 15px; line-height: 2; color: var(--muted);
  max-width: 520px;
}
.biz-detail-body ul.services {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  max-width: 540px;
}
.biz-detail-body ul.services li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  display: flex; align-items: baseline; gap: 12px;
}
.biz-detail-body ul.services li::before {
  content: "→"; color: var(--accent); font-family: var(--font-en); font-size: 12px;
}
.biz-detail:last-child { border-bottom: none; }

/* ---------- Numbers ---------- */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.number {
  background: var(--paper);
  padding: 48px 32px;
  text-align: left;
}
.bg-ink .numbers { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.bg-ink .number { background: transparent; }
.number .n-label {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
}
.bg-ink .number .n-label { color: rgba(255,255,255,.55); }
.number .n-value {
  margin-top: 20px;
  font-family: var(--font-en);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1;
}
.number .n-value .unit {
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
  font-weight: 400;
}
.bg-ink .number .n-value .unit { color: rgba(255,255,255,.5); }
.number .n-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.bg-ink .number .n-note { color: rgba(255,255,255,.55); }

/* ---------- News list ---------- */
.news-list {
  border-top: 1px solid var(--line);
}
.news-item {
  display: grid;
  grid-template-columns: 140px 140px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: padding-left .3s var(--ease);
}
.news-item:hover { padding-left: 12px; }
/* 日付とカテゴリーは一覧(.news-item)と投稿詳細(.post-meta)で見た目を揃える */
:is(.news-item, .post-meta) .date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .05em;
}
:is(.news-item, .post-meta) .cat {
  font-size: 11px;
  letter-spacing: .2em;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  justify-self: start;
}
:is(.news-item, .post-meta) .cat[data-type="ir"] { border-color: var(--accent); color: var(--accent); }
:is(.news-item, .post-meta) .cat[data-type="press"] { border-color: var(--ink); color: var(--ink); }
.news-item :is(h2, h3) {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.news-item .arrow {
  font-family: var(--font-en);
  color: var(--muted);
  font-size: 14px;
}
.news-item:hover .arrow { color: var(--accent); }
/* カテゴリー絞り込み（WPではカテゴリーアーカイブへのリンク） */
.news-filter {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.news-filter .is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
/* ページャー（WP-PageNavi）。プラグイン既定のCSSは読み込まず、ここで全て当てる。
   すぐ上の .news-filter が枠付きピルなので、こちらは枠を持たせずに役割を分ける。
   .wp-pagenavi は要素側にクラスが無いため、子の a / span をまとめて拾う。 */
.wp-pagenavi {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 60px;
}
.wp-pagenavi > :is(a, span) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--muted);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.wp-pagenavi > a:hover { color: var(--accent); }
.wp-pagenavi .current {
  background: var(--ink);
  color: var(--paper);
}
/* 省略記号はリンクではないので、hover も当たり判定も持たせない */
.wp-pagenavi .extend {
  min-width: 0;
  letter-spacing: .1em;
}
/* 前後の矢印は一覧の .news-item .arrow と同じ 14px。共通指定のままで揃うので個別指定は持たない */

/* ---------- Group brands ---------- */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.brand-cell {
  background: var(--paper);
  padding: 48px 40px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand-cell .b-name {
  margin-top: 16px;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .04em;
}
.brand-cell .b-jp {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .14em;
}
.brand-cell .b-desc {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.brand-cell .b-tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--accent);
  text-transform: uppercase;
}
.brands-action { margin-top: 32px; text-align: right; }

/* ---------- Org chart / company table (グループページ) ---------- */
.org-chart { margin-top: 60px; }
.org-node {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.org-node .n-name {
  font-family: var(--font-en);
  font-size: 20px; font-weight: 600; letter-spacing: .04em;
}
.org-node .n-jp { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: .14em; }
.org-node .n-tag {
  font-family: var(--font-en); font-size: 11px; letter-spacing: .24em;
  color: var(--accent); text-transform: uppercase;
}
.org-parent { max-width: 520px; margin: 0 auto; }
.org-parent .org-node { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.org-parent .org-node .n-jp { color: rgba(255,255,255,.6); }
.org-parent .org-node .n-tag { color: #E8D9AC; }
.org-child .n-name { margin-top: 16px; }
.org-connector {
  display: flex; justify-content: center;
  padding: 24px 0;
}
.org-connector::before {
  content: ""; width: 1px; height: 48px;
  background: var(--line);
}
.org-children {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.org-child .org-node { min-height: 120px; align-items: flex-start; flex-direction: column; }
.company-table {
  width: 100%; margin-top: 32px; border-collapse: collapse;
  font-size: 14px;
}
.company-table th, .company-table td {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}
.company-table th {
  width: 200px;
  color: var(--muted);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
}
.cta-band .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gutter);
  align-items: end;
}
.cta-band h2 {
  margin-top: 24px;
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
}
.cta-band h2 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.cta-band .cta-links {
  display: flex; flex-direction: column;
  gap: 16px;
}
.cta-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 15px;
  letter-spacing: .04em;
  transition: padding-left .3s var(--ease);
}
.cta-link:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.cta-link:hover { padding-left: 12px; opacity: 1; }
.cta-link .arrow { color: var(--accent); font-family: var(--font-en); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 80px 0 40px;
  background: var(--ink);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand .mark {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--paper);
}
.footer-brand .mark em { color: var(--accent); font-style: normal; }
.footer-brand p {
  margin-top: 20px;
  line-height: 1.9;
  font-size: 12px;
}
.footer-col h3 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  font-weight: 500;
}
.footer-col ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 13px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  font-family: var(--font-en);
}
/* もともと文字色が落としてあるため、hover は明るくする(既定の opacity 低下では逆になる) */
.footer-bottom a:hover { color: var(--paper); opacity: 1; }

/* ---------- Interior page hero ---------- */
.page-hero {
  padding: calc(var(--header-h) + 100px) 0 100px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .02em;
}
.page-hero h1 em {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.page-hero .lede {
  margin-top: 32px;
  max-width: 680px;
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
}
.crumbs {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--muted);
  text-transform: uppercase;
  /* 折り返しを許すのは投稿詳細のため。現在地に記事タイトルが入り1行に収まらない */
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 40px;
}
.crumbs a { color: var(--muted); }
.crumbs .sep { color: var(--line); }
/* 現在地は投稿詳細だと長くなるので字間を詰める(他ページの現在地は短いので影響しない) */
.crumbs .current {
  letter-spacing: .08em;
  text-transform: none;
}

/* Two-column article */
.article-two-col {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--gutter);
  padding: clamp(80px, 10vw, 140px) 0;
}
.article-two-col .col-nav {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
}
.article-two-col .col-nav h2 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.article-two-col .col-nav ul { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.article-two-col .col-nav a { font-size: 14px; color: var(--muted); }

/* 記事内のセクション（aboutページ）。余白はここで明示的に指定する */
.prose > section {
  padding: clamp(80px, 10vw, 160px) 0;
}
.prose > section + section {
  margin-top: 100px;
}

.prose h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.4;
  font-weight: 500;
  margin-top: 80px;
  margin-bottom: 32px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.5;
}
.prose p {
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 24px;
}
.prose p.muted { color: var(--muted); }
.prose h2 em {
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
}
.prose .signature {
  margin-top: 48px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 24px;
  color: var(--accent);
}
.prose .signature .en { font-family: "Cormorant Garamond", serif; }

/* 本文中のリスト。グローバルの ul { list-style: none; padding: 0 } を .prose 配下で戻す。
   ブロックエディタは ul / ol に .wp-block-list を付けるが、要素セレクタで受ける。 */
.prose ul,
.prose ol {
  max-width: 720px;
  margin: 0 0 24px;
  padding-left: 1.6em;
  font-size: 16px;
  line-height: 2;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose li > ul,
.prose li > ol { margin: 8px 0 0; }

/* 本文中のリンク。グローバルの a { color: inherit; text-decoration: none } を打ち消す。
   本文と地続きにならないよう、色と下線の両方で示す。 */
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

/* 画像。ブロックエディタは figure.wp-block-image + img (+ figcaption) を吐く */
.prose figure {
  max-width: 720px;
  margin: 48px 0;
}
.prose figure img { width: 100%; }
.prose figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* 1カラムで読ませる記事(投稿詳細・法的文書)。
   about ページは左にサイドナビがあるため左寄せで成立するが、
   単独の記事では右が大きく空くので、記事全体を中央に置いて幅を持たせる。 */
.prose.is-post,
.prose.is-legal {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
/* 幅は記事側で持つため、要素ごとの max-width(720px)は解除する */
.prose:is(.is-post, .is-legal) :is(p, ul, ol, figure) { max-width: none; }
/* about ページ向けの h2(最大44px)は、見出しが何度も出る文書には大きすぎる */
.prose:is(.is-post, .is-legal) h2 {
  font-size: clamp(20px, 2vw, 28px);
  margin-top: 56px;
  margin-bottom: 20px;
}
.prose:is(.is-post, .is-legal) h3 {
  font-size: 17px;
  margin-top: 32px;
}

/* 代表メッセージ（本文＋写真） */
.message-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 32px;
}
.message-two-col .about-img { aspect-ratio: 3/4; }

/* MVV block */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.mvv-cell {
  background: var(--paper);
  padding: 56px 40px;
  min-height: 340px;
  display: flex; flex-direction: column;
}
.mvv-cell .mvv-num {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .28em;
  color: var(--accent);
}
.mvv-cell h3 {
  margin-top: 24px;
  font-family: "Cormorant Garamond", serif;
  font-size: 40px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: .02em;
}
.mvv-cell h3 .jp {
  display: block;
  margin-top: 6px;
  font-family: var(--font-jp);
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .16em;
}
.mvv-cell p {
  margin-top: 32px;
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
}

/* History timeline */
.timeline {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.timeline .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.timeline .row .year {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--accent);
  font-weight: 500;
}
.timeline .row .events { display: flex; flex-direction: column; gap: 12px; }
.timeline .row .event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  font-size: 14px;
  line-height: 1.9;
}
.timeline .row .event .m {
  color: var(--muted);
  font-family: var(--font-en);
}

/* Career highlights */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.job-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px;
  min-height: 260px;
  display: flex; flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.job-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.job-card .tag {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--accent);
  text-transform: uppercase;
}
.job-card h3 {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.job-card p {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.job-card .more {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--ink);
}

/* Cert / CSR cards */
.cert-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 40px;
}
.cert-cell {
  background: var(--paper);
  padding: 36px 32px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}
.cert-cell .badge {
  width: 60px; height: 60px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  text-align: center;
  line-height: 1.2;
}
.cert-cell h3 { font-size: 16px; font-weight: 600; }
.cert-cell p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.9; }

/* Contact form */
.form-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gutter);
}
.form-info h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 16px;
}
.form-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.form-info .info-block { margin-top: 40px; }
.form-info .info-block h3 {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form-consent {
  display: flex;
  align-items: center;
  margin: 8px 0 32px;
  font-size: 13px;
  color: var(--muted);
}
/* CF7 の [acceptance] は
   span.wpcf7-form-control-wrap > span.wpcf7-acceptance > span.wpcf7-list-item > label > input + span
   という入れ子で出る。チェックボックスと文言を並べるのは、いちばん内側の label の仕事。 */
.form-consent label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.form-consent .wpcf7-list-item { margin: 0; }   /* CF7 既定の margin-left: 1em を消す */
.form-consent input[type="checkbox"] { width: 16px; height: 16px; flex: none; }
.form-consent a { color: var(--accent); text-decoration: underline; }
.field {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
  /* start が要る。.field-grid の同じ行にある2つの .field は高さが揃えられるため、
     片方にエラー文が出ると余った高さが行トラックに分配され、
     エラーの無いほうのラベルと入力欄が下へずれて下線の位置が合わなくなる（実測14.5px）。 */
  align-content: start;
}
.field label {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input,
.field textarea,
.field select {
  /* width は必須。CF7 は各コントロールを span.wpcf7-form-control-wrap で包むため、
     .field のグリッドアイテムは span のほうになる。コントロール自身は伸びず、
     size="40" / cols="40" 由来の既定幅（実測 330px / 336px）に落ちる。 */
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 12px 0;
  font: inherit;
  color: var(--ink);
  transition: border-color .3s var(--ease);
}
/* 手がかりは下線の色変化のみ。:focus-visible で輪郭を出すことも検討したが、
   テキスト入力欄は「マウスでクリックしただけでも」:focus-visible が立つ仕様のため、
   キーボードのときだけ出し分けることはCSSではできない。クリックのたびに枠が出るのを
   避けるため、輪郭は出さないと判断した（2026-08-23）。
   チェックボックス・送信ボタン・リンクにはブラウザ標準のフォーカスリングが残る。 */
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
/* height も指定する。CF7 の [textarea] は rows="10" を出すため、
   これを打ち消さないと変更前の 140px から 305px に伸びる（実測）。 */
.field textarea { height: 140px; min-height: 140px; resize: vertical; }

/* 送信ボタン。CF7 の [submit] は <input type="submit"> を出すため、
   リセットの button { font: inherit; border: none; cursor: pointer } が当たらない。
   打ち消しをこちら側で持つ。 */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-submit {
  padding: 18px 40px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  letter-spacing: .2em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;   /* iOS Safari の既定の見た目を止める */
  transition: background .25s var(--ease);
}
.btn-submit:hover { background: var(--accent); opacity: 1; }
.form-actions .wpcf7-spinner { margin: 0; }   /* CF7 既定の margin: 0 24px を消す */

/* ---------- CF7 のバリデーション表示 ---------- */
/* 不正な欄。下線を赤に振る */
.field :is(input, textarea, select).wpcf7-not-valid { border-bottom-color: var(--error); }

/* 各欄の下に出るエラー文。CF7 は span で出すのでブロック化する */
.wpcf7-not-valid-tip {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--error);
}

/* フォーム下部の結果メッセージ（.wpcf7-response-output）には手を入れない。
   WP組み込み時に CF7 のCSSを読み込むため、枠・余白・状態別の色はそちらの既定に任せる
   （送信前・送信中に空枠を隠す指定も CF7 側が持っている）。
   そのぶん、CF7のCSSを読み込まない静的HTMLでは枠が付かず素のテキストで出る。 */

/* ---------- 1カラム文書のヒーロー(投稿詳細・法的文書) ---------- */
/* 下層7ページのヒーローは「eyebrow + 大見出し + リード文」で1つの塊をなすが、
   こちらはタイトル1行のみ。見出しを小さくし、下側の余白も詰める。
   パンくずより上は他ページと揃えたいので、上側の余白は触らない。 */
.page-hero:is(.is-post, .is-doc) h1 {
  margin-top: 24px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.5;
}
.page-hero:is(.is-post, .is-doc) { padding-bottom: 56px; }
/* 直後の本文はヒーローの続きであり、ページを区切る 128px は要らない */
.page-hero:is(.is-post, .is-doc) + section { padding-top: 72px; }

/* 日付・カテゴリー・タイトルを本文(800px)と揃える。
   パンくずは全ページでコンテナ左端に置くため、ここには含めない。 */
.page-hero:is(.is-post, .is-doc) :is(.post-meta, h1) {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 投稿詳細 ---------- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* 一覧では行全体がリンクなので span のまま。詳細ではカテゴリー単体がリンクになる */
.post-meta a.cat:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
/* 幅と中央寄せは .prose.is-post 側で持たせている。ここは本文に続く帯 */
.post-footer {
  max-width: 800px;
  margin: 80px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------- 404 ---------- */
/* 下層ページのヒーロー(.page-hero)をそのまま使い、中央寄せだけを足す。
   パンくず・eyebrow を持たないため h1 の上余白は打ち消す。 */
.page-hero.is-center { text-align: center; }
.page-hero.is-center h1 { margin-top: 0; }
.page-hero.is-center .lede { margin-left: auto; margin-right: auto; }
/* 日英併記。言語ごとに本文とボタンを1ブロックにまとめ、罫線で切り分ける。
   幅は .lede と揃えて罫線の長さを本文に合わせる */
.error-lang {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.error-lang + .error-lang {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.error-lang .btn-contact { margin-top: 40px; }

/* Responsive */
/* ヘッダーの中身は実体幅844.5pxあり、1050px未満では横一列に収まらない。
   ここから下はハンバーガーメニューが担当する。 */
@media (max-width: 1049px) {
  .nav-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  /* ヘッダーのボタンのみ。本文中の .btn-contact は残す */
  .site-header .btn-contact { display: none; }
}
@media (min-width: 1050px) {
  /* JSが無効なままでもオーバーレイが露出しないようにする */
  .menu-overlay { display: none; }
}
@media (max-width: 1000px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .brands-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-stripe { grid-template-columns: 1fr; }
  .cta-band .container { grid-template-columns: 1fr; }
  .article-two-col { grid-template-columns: 1fr; }
  .article-two-col .col-nav { position: static; }
  .mvv-grid { grid-template-columns: 1fr; }
  .jobs-grid { grid-template-columns: 1fr; }
  .cert-list { grid-template-columns: 1fr; }
  .form-shell { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 100px 100px 1fr; }
  .news-item .arrow { display: none; }
  .biz-detail { grid-template-columns: 1fr; gap: 32px; }
  .biz-detail:nth-child(even) .biz-detail-media { order: 0; }
  .biz-detail-body ul.services { grid-template-columns: 1fr; }
  .org-children { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  /* gap を 0 にするのは、.field 自身の margin-bottom: 28px と二重にかかるため。
     1カラムになった時点で行間は margin 側に任せ、他の欄と間隔を揃える */
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .biz-grid { grid-template-columns: 1fr; }
  .numbers { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline .row { grid-template-columns: 1fr; gap: 12px; }
  .org-children { grid-template-columns: 1fr; }
  .company-table th { display: block; width: auto; padding-bottom: 4px; border: none; }
  .company-table td { display: block; padding-top: 0; }
  /* 40px × 8個 + gap では 375px の内側(327px)に収まらないため、この帯だけ詰める */
  .wp-pagenavi { gap: 2px; }
  .wp-pagenavi > :is(a, span) { min-width: 34px; height: 34px; padding: 0 4px; font-size: 13px; }
}
/* 375pxでロゴ・JP/EN・ハンバーガーを収めるため、この帯だけ余白を詰める */
@media (max-width: 480px) {
  .lang-switch a { padding: 5px 10px; font-size: 10px; }
  .site-header .container { gap: 10px; }
}

/* Fade-in on scroll — progressive enhancement.
   Defaults to visible. When JS marks a reveal element as "pending" it fades in on activation. */
.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-pending {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* OSの「視差効果を減らす」設定を尊重し、動きを止める */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .reveal.is-pending { opacity: 1; transform: none; }
  .hero-scroll::before { animation: none; }
  .menu-overlay { transition: none; }
  .nav-toggle .bar,
  .nav-toggle .bar::before,
  .nav-toggle .bar::after { transition: none; }
}

/* メニューを開いている間、背後のページをスクロールさせない */
body.is-menu-open { overflow: hidden; }
