/* ==========================================================================
   Header 2026 (全ページ共通ヘッダー)
   標準は紺グラデーション背景 + 白文字。トップページ用の白背景ライトテーマは
   ファイル末尾付近の「トップページ用ライトテーマ」ブロックを参照
   ========================================================================== */

.header-2026 {
  position: relative;
  z-index: 100;
  background: linear-gradient(135deg, #0c1a49 0%, #3a7bd5 100%);
}

/* ── スクロール追従（下スクロールで隠し、上スクロールで出す） ─────────────
   ページ最上部では通常フローのまま＝いままでの見た目。一定量スクロールした
   ところで header-2026.js が .is-fixed を付ける。

   ・position:sticky は使えない。.header-title-2026 の overflow:hidden が
     sticky を無効化するうえ、sticky は親の箱を出たところで流れてしまう。
   ・セレクタを .header-title-2026 .header-2026.is-fixed にしているのは、
     header-title-bg-2026.css の .header-title-2026 .header-2026 が
     position と background を持っており、後読みで勝ってしまうため。
   ・抜けた高さは .header-2026__spacer が埋める（JS が高さを入れる）。 */
.header-title-2026 .header-2026.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  /* 追従中は本文の上に重なるので不透明にする。動く背景(--base-2 / --base-3)に
     帯の紺15%を重ねた見え方に合わせた近似色 */
  background: linear-gradient(135deg, #0f1b98 0%, #074a9d 100%);
  box-shadow: 0 4px 16px rgba(10, 20, 64, 0.25);
  transition: transform 0.25s ease;
}

.header-title-2026 .header-2026.is-fixed .header-2026__subnav {
  /* 追従中の帯は単色グラデの上に重ねるため、動く背景前提の15%より少し濃くする */
  background: rgba(10, 20, 64, 0.22);
}

.header-title-2026 .header-2026.is-fixed.is-hidden {
  transform: translateY(-100%);
}

.header-2026__spacer {
  height: 0;
}

/* 追従の transform は「動きを減らす」設定では無効にし、隠さず出したままにする */
@media (prefers-reduced-motion: reduce) {
  .header-title-2026 .header-2026.is-fixed {
    transition: none;
  }

  .header-title-2026 .header-2026.is-fixed.is-hidden {
    transform: none;
  }
}

.header-2026__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  /* ロゴ(48px) + 会期・会場行 を縦に積むため、72px では上下の余白がほぼ無くなる */
  min-height: 80px;
  /* ロゴ画像(logo-basic-*-2026.svg)は視覚要素の左側に約10pxの余白を内包しているため、
     他コンテンツ(.top-*__inner 等、左右40px)と視覚的な左端を揃えるべく左側だけ10px差し引く */
  padding: 0 40px 0 30px;
  gap: 24px;
}

/* ロゴと会期・会場を縦に積む。inner が align-items:stretch のため
   アンカーは帯の高さいっぱいになる。justify-content で中身を上下中央に置く */
.header-2026__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.header-2026__logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* ロゴ直下の会期・会場。ロゴ画像が左に約10pxの余白を内包しているぶん、
   文字の左端をロゴの視覚的な左端に合わせる */
.header-2026__logo-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: #fff;
}
.header-2026__logo-meta time {
  font-size: 11px;
  font-weight: 700;
}

.header-2026__logo-venue {
  font-weight: 700;
}

/* 折り返さず1行を維持し、幅が足りなくなったらナビ内だけを横スクロールさせる。
   min-width:0 が無いと flex アイテムが内容幅未満に縮まず、ヘッダー全体がはみ出す */
.header-2026__nav {
  display: flex;
  align-items: stretch;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  /* 72pxのヘッダー内に横スクロールバーが出ると帯が潰れるため非表示にし、
     項目の見切れをスクロール可能のヒントとする */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-2026__nav::-webkit-scrollbar {
  display: none;
}

/* スクロールできる方向の端をフェードさせ、続きがあることを示す。
   フェード幅は header-2026.js が .is-scroll-start / .is-scroll-end で切り替える。
   既定は 0px なので、スクロール不要な幅では見た目が変わらない */
.header-2026__nav,
.header-2026__subnav-inner {
  --nav-fade-left: 0px;
  --nav-fade-right: 0px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--nav-fade-left),
    #000 calc(100% - var(--nav-fade-right)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--nav-fade-left),
    #000 calc(100% - var(--nav-fade-right)),
    transparent 100%
  );
}

.header-2026__nav.is-scroll-start,
.header-2026__subnav-inner.is-scroll-start {
  --nav-fade-left: 28px;
}

.header-2026__nav.is-scroll-end,
.header-2026__subnav-inner.is-scroll-end {
  --nav-fade-right: 28px;
}

.header-2026__nav li {
  display: flex;
  flex-shrink: 0;
}

.header-2026__nav a {
  position: relative;
  display: flex;
  align-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.header-2026__nav a:hover {
  opacity: 0.85;
}

.header-2026__nav li.is-active a {
  color: #ffe100;
}

.header-2026__nav li.is-active a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ffe100;
}

.header-2026__utility {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-2026__util-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-2026__util-links a {
  color: #e5ecfb;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}

.header-2026__util-links a:hover {
  color: #fff;
}

.header-2026__lang {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
}

.header-2026__lang a {
  display: block;
  padding: 4px 12px;
  color: #cfe0ff;
  text-decoration: none;
}

.header-2026__lang a.is-current {
  background: #fff;
  color: #0c1a49;
}

.header-2026__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.header-2026__cta--primary {
  background: linear-gradient(90deg, #2f6ae0 0%, #1f4bc4 100%);
  color: #fff;
}

.header-2026__cta--login {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}

.header-2026__cta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.header-2026__cta:hover {
  filter: brightness(1.06);
}

/* サブナビゲーション（アクティブなセクションの子リンク） */
.header-2026__subnav {
  background: linear-gradient(90deg, #2a4a7a 0%, #16305e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* サブナビも折り返さず1行を維持し、収まらない幅では横スクロールへ切り替える。
   スクロールコンテナで justify-content:center を使うと左側にはみ出した分へ
   スクロールできなくなるため、first/last の auto マージンで中央寄せを再現する
   (余白が無いときは auto マージンが 0 に潰れて左端から並ぶ) */
.header-2026__subnav-inner {
  display: flex;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  padding: 0 40px;
  list-style: none;
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.header-2026__subnav-inner::-webkit-scrollbar {
  display: none;
}

.header-2026__subnav-inner li {
  display: flex;
  flex-shrink: 0;
}

.header-2026__subnav-inner li:first-child {
  margin-left: auto;
}

.header-2026__subnav-inner li:last-child {
  margin-right: auto;
}

/* NOTE: 上下 padding がそのままクリック領域の高さになる（font-size 13px + line-height 1）。
   8px だと 29px しかなく押しづらかったため 14px（= 41px）まで広げている */
.header-2026__subnav-inner a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 14px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-2026__subnav-inner a.is-current {
  color: #ffe100;
  font-weight: 800;
}

.header-2026__subnav-inner a:hover {
  color: #fff;
}

/* リンク未公開項目（テキストのみ残し、リンクなしを明示） */
.header-2026__subnav-inner .is-comingsoon {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 14px 0;   /* リンク項目と行の高さを揃える */
  color: rgba(215, 226, 247, 0.4);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
}

/* ==========================================================================
   メニューボタン（1119px以下で表示）
   ========================================================================== */

.header-2026__menubtn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  width: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.header-2026__menubtn-bars,
.header-2026__menubtn-bars::before,
.header-2026__menubtn-bars::after {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ::before / ::after は absolute のため、上下 7px 分を margin で確保してラベルとの重なりを防ぐ */
.header-2026__menubtn-bars {
  position: relative;
  margin: 7px 0;
}

.header-2026__menubtn-bars::before,
.header-2026__menubtn-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.header-2026__menubtn-bars::before {
  top: -7px;
}

.header-2026__menubtn-bars::after {
  top: 7px;
}

.header-2026__menubtn-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.header-2026__menubtn.is-open .header-2026__menubtn-bars {
  background: transparent;
}

.header-2026__menubtn.is-open .header-2026__menubtn-bars::before {
  transform: translateY(7px) rotate(45deg);
}

.header-2026__menubtn.is-open .header-2026__menubtn-bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   ドロワーメニュー（1119px以下）
   ========================================================================== */

.header-drawer-2026 {
  display: none;
}

.header-drawer-2026__overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 44, 0.6);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.header-drawer-2026__panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 86vw);
  padding: 16px 24px 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(160deg, #0c1a49 0%, #16307a 60%, #123a86 100%);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overscroll-behavior: contain;
}

.header-drawer-2026.is-open .header-drawer-2026__overlay {
  opacity: 1;
}

.header-drawer-2026.is-open .header-drawer-2026__panel {
  transform: translateX(0);
}

.header-drawer-2026__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.header-drawer-2026__close {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.header-drawer-2026__close::before,
.header-drawer-2026__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.header-drawer-2026__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.header-drawer-2026__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.header-drawer-2026__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-drawer-2026__nav > li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.header-drawer-2026__section {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.header-drawer-2026__nav > li.is-active .header-drawer-2026__section {
  color: #ffe100;
}

.header-drawer-2026__children {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.header-drawer-2026__children li + li {
  margin-top: 4px;
}

.header-drawer-2026__children a {
  position: relative;
  display: block;
  padding: 8px 0 8px 16px;
  color: #cfdcf5;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.header-drawer-2026__children a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
}

.header-drawer-2026__children a:hover {
  color: #fff;
}

.header-drawer-2026__children a.is-current {
  color: #ffe100;
  font-weight: 700;
}

.header-drawer-2026__children a.is-current::before {
  background: #ffe100;
}

/* リンク未公開項目（テキストのみ残し、リンクなしを明示） */
.header-drawer-2026__children .is-comingsoon {
  box-sizing: border-box;
  position: relative;
  display: block;
  padding: 8px 0 8px 16px;
  color: rgba(207, 220, 245, 0.4);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}

.header-drawer-2026__children .is-comingsoon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

.header-drawer-2026__util {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.header-drawer-2026__util a {
  color: #cfdcf5;
  font-size: 13px;
  text-decoration: underline;
}

.header-drawer-2026__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.header-drawer-2026__cta .header-2026__cta {
  justify-content: center;
  padding: 12px 20px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   来場事前登録CTAのアイコン
   アイコン本体は ja/faq/ 等の本文ボタンと同じ add.css の .btn_registration::before
   (Material Icons Round の app_registration リガチャ) をそのまま流用する。
   ただし add.css 側は本文用ボタンの想定なので、ヘッダーでは以下を打ち消す:
     - width:100% / max-width:648px / margin:auto  → ヘッダー内で全幅化してしまう
     - position 未指定                              → 本文側は .btn の position:relative
                                                       に依存しているが、ヘッダーは .btn を
                                                       使わないためここで持たせる
     - padding-left:48px・アイコン22px              → ヘッダーのボタンサイズに合わせて縮小
   ドロワー側の padding ショートハンドに勝つため、必ず上の
   .header-drawer-2026__cta .header-2026__cta より後ろに置くこと。
   -------------------------------------------------------------------------- */
.header-2026__cta.btn_registration {
  position: relative;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 42px;
}

.header-2026__cta.btn_registration::before {
  left: 16px;
  font-size: 18px;
}

/* ヘッダーのCTAボタンは本文ボタンより小さいため、一時停止中の
   「Coming soon」オーバーレイ文字サイズを縮小して収める */
.header-2026__cta.btn_registration::after {
  font-size: 10px;
}

/* ドロワー展開中は背面をスクロールさせない */
body.header-drawer-open {
  overflow: hidden;
}

/* ==========================================================================
   トップページ用ライトテーマ（白背景ヘッダー）
   header.php に $header_theme = 'light' を渡すと .header-title-2026--light /
   .header-2026--light が付与される。ドロワーメニューは共通(紺)のまま流用する。
   背景色そのものの上書きは header-title-bg-2026.css 側（詳細度が同じ既存ルールの直後）で行う
   ========================================================================== */

.header-title-2026--light .header-title-2026__bg {
  display: none;
}

.header-2026--light {
  box-shadow: 0 1px 0 rgba(12, 26, 73, 0.08);
}

.header-2026--light .header-2026__logo-meta {
  color: #0c1a49;
}

/* 追従中の不透明背景。ライトテーマは白のまま影だけ強める */
.header-title-2026 .header-2026--light.is-fixed {
  background: #fff;
  box-shadow: 0 4px 16px rgba(12, 26, 73, 0.12);
}

.header-2026--light .header-2026__nav a {
  color: #0c1a49;
}

.header-2026--light .header-2026__nav li.is-active a {
  color: #e51083;
}

.header-2026--light .header-2026__nav li.is-active a::before {
  background: #e51083;
}

.header-2026--light .header-2026__util-links a {
  color: #5a6a8a;
}

.header-2026--light .header-2026__util-links a:hover {
  color: #0c1a49;
}

.header-2026--light .header-2026__lang {
  border-color: rgba(12, 26, 73, 0.3);
}

.header-2026--light .header-2026__lang a {
  color: #5a6a8a;
}

.header-2026--light .header-2026__lang a.is-current {
  background: #0c1a49;
  color: #fff;
}

.header-2026--light .header-2026__menubtn {
  color: #0c1a49;
}

.header-2026--light .header-2026__menubtn-bars,
.header-2026--light .header-2026__menubtn-bars::before,
.header-2026--light .header-2026__menubtn-bars::after {
  background: #0c1a49;
}

.header-2026--light .header-2026__cta--login {
  border-color: #1f4bc4;
  color: #1f4bc4;
}

/* ==========================================================================
   グローバルナビのホバードロップダウン（1120px以上のみ）
   1119px以下はドロワー側で子階層を展開済みなので出さない。

   DOM 上は .header-title-2026 の外（ドロワーの直前）に置いてある。
   .header-title-2026 の overflow:hidden、.header-2026__nav の overflow-x:auto の
   どちらの中に置いても切られてしまうため。position:fixed の top は
   header-2026.js がヘッダー下端に合わせて毎回入れ直す。
   ========================================================================== */

.header-dropdown-2026 {
  display: none;
}

@media screen and (min-width: 1120px) {
  .header-dropdown-2026 {
    display: block;
    position: fixed;
    top: 0; /* JS が更新 */
    left: 0;
    right: 0;
    /* .header-title-2026 が z-index:100 の重ね合わせ文脈を作るので、その上に出す。
       追従中のヘッダー(110)より下、ドロワー(200)・モーダル(300)より下 */
    z-index: 105;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    /* 配色・文字サイズ・余白は既存のサブナビ帯(.header-2026__subnav)に完全に合わせる */
    background: linear-gradient(90deg, #2a4a7a 0%, #16305e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(10, 20, 64, 0.28);
  }

  /* ヘッダー追従中(.is-fixed)はサブナビ帯と同じ配色に切り替える。
     サブナビ帯は .header-2026.is-fixed の内側にいるので、その不透明な
     グラデーション地の上に半透明の紺(rgba(10,20,64,.22))が乗って見える。
     ドロップダウンは本文の上に浮く別要素（本文が透けてしまう）なので、
     同じ見た目を2枚の背景レイヤーで再現する：下地に追従中ヘッダーと同じ
     グラデーションを敷き、その上に同じ半透明の紺を重ねる */
  .header-title-2026:has(.header-2026.is-fixed) + .header-dropdown-2026 {
    background:
      linear-gradient(rgba(10, 20, 64, 0.22), rgba(10, 20, 64, 0.22)),
      linear-gradient(135deg, #0f1b98 0%, #074a9d 100%);
  }

  .header-dropdown-2026.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header-dropdown-2026__panel {
    display: none;
  }

  .header-dropdown-2026__panel.is-active {
    display: block;
  }

  /* 並びはサブナビ帯と同じ（gap 28px・左右 40px・中央寄せ）。
     あちらは横スクロールコンテナなので first/last の auto マージンで中央寄せを
     作っているが、こちらは折り返す前提なので justify-content で足りる */
  .header-dropdown-2026__list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0 28px;
    width: 100%;
    padding: 0 40px;
    list-style: none;
  }

  .header-dropdown-2026__list li {
    display: flex;
    flex-shrink: 0;
  }

  /* NOTE: 上下 padding がそのままクリック領域の高さになる。
     サブナビ帯と揃えて 14px（font-size 13px + line-height 1 で 41px） */
  .header-dropdown-2026__list a,
  .header-dropdown-2026__list .is-comingsoon {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 14px 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
  }

  .header-dropdown-2026__list a {
    color: #fff;
    text-decoration: none;
  }

  .header-dropdown-2026__list a.is-current {
    color: #ffe100;
    font-weight: 800;
  }

  /* 未公開ページ。サブナビ帯の is-comingsoon と同じ扱い */
  .header-dropdown-2026__list .is-comingsoon {
    color: rgba(215, 226, 247, 0.4);
    cursor: default;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-dropdown-2026 {
    transition: none;
    transform: none;
  }
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* 1120px以上(1119px以下はドロワーへ切り替え)で1行に収める詰め幅。
   .header-2026__inner は横幅100%(上限なし)のため広い画面ほど余裕は出るが、
   1120px付近の詰まりを解消するのが目的なので上限は設けず1120px以上に一律適用する */
@media screen and (min-width: 1120px) {
  .header-2026__inner {
    gap: 16px;
  }

  .header-2026__nav {
    gap: 20px;
  }

  .header-2026__nav a {
    font-size: 14px;
  }

  .header-2026__utility {
    gap: 8px;
  }

  .header-2026__util-links {
    gap: 8px;
  }

  .header-2026__util-links a {
    font-size: 11px;
  }

  .header-2026__lang a {
    padding: 4px 8px;
  }

  .header-2026__cta {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 1119px) {
  /* ロゴ行にグローバルナビを並べると幅が足りず潰れるため、inner を折り返して
     ナビだけを2行目へ落とす(order + flex-basis:100%)。HTML の順序は変えない */
  .header-2026__inner {
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    padding-right: 16px;
    gap: 12px;
  }

  .header-2026__logo {
    order: 1;
  }

  .header-2026__utility {
    order: 2;
    margin-left: auto;
    gap: 8px;
  }

  .header-2026__menubtn {
    order: 3;
  }

  /* 2行目のグローバルナビ。ドロワーへ隠さず、横スクロールで全項目に到達できる */
  .header-2026__nav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    gap: 20px;
    /* inner の左paddingはロゴの内包余白ぶん10px削ってあるので、
       サブナビ(左40px)と文字の左端を揃えるためナビ側で10px戻す */
    padding: 0 0 10px 10px;
  }

  .header-2026__nav a {
    font-size: 14px;
  }

  /* is-active の下線はナビ行の下端に付くため、行内で見えるよう位置を上げる */
  .header-2026__nav li.is-active a::before {
    bottom: -4px;
  }

  /* ユーティリティリンクはドロワーへ集約 */
  .header-2026__util-links {
    display: none;
  }

  .header-2026__menubtn {
    display: inline-flex;
  }

  .header-drawer-2026 {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    pointer-events: none;
  }

  .header-drawer-2026.is-open {
    visibility: visible;
    pointer-events: auto;
  }
}

@media screen and (max-width: 767px) {
  .header-2026__inner {
    min-height: 56px;
    /* コンテンツ側(.top-*__inner 等)の左右20pxに合わせ、左側はロゴの内包余白(24px時 約8px)を差し引く */
    padding: 0 20px 0 12px;
    gap: 8px;
  }

  .header-2026__logo {
    gap: 2px;
  }

  .header-2026__logo img {
    height: 24px;
  }

  /* SP のロゴは 24px。内包余白も約 8px に縮むので左寄せ量を合わせる */
  .header-2026__logo-meta {
    gap: 6px;
    padding-left: 5px;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .header-2026__cta {
    padding: 8px 16px;
    font-size: 12px;
  }

  .header-2026__cta-icon {
    width: 16px;
    height: 16px;
  }

  /* ログインはドロワー内に用意しているためバーからは省く */
  .header-2026__cta--login {
    display: none;
  }

  /* サブナビ(左16px)と文字の左端を揃える。inner の左paddingが12pxのため+4px */
  .header-2026__nav {
    gap: 16px;
    padding: 0 0 8px 4px;
  }

  .header-2026__nav a {
    font-size: 13px;
  }

  /* 横スクロール化はベース側で共通適用済み。ここでは詰め幅のみ調整する。
     上下の余白は a 側の padding(14px) が持つので、ここでは 0 にしてバーが
     必要以上に高くならないようにする（余白を足すとクリック領域の外側が増えるだけ） */
  .header-2026__subnav-inner {
    padding: 0 16px;
    gap: 16px;
  }
}

@media screen and (max-width: 479px) {
  .header-2026__utility {
    gap: 8px;
  }

  /* 言語切替もドロワー内にあるため、狭い画面ではバーから省いて溢れを防ぐ。
     ドロワー内の .header-2026__lang まで消さないよう __utility 配下に限定する */
  .header-2026__utility .header-2026__lang {
    display: none;
  }

  .header-2026__cta--primary {
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-2026__menubtn {
    width: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-drawer-2026__overlay,
  .header-drawer-2026__panel,
  .header-2026__menubtn-bars,
  .header-2026__menubtn-bars::before,
  .header-2026__menubtn-bars::after {
    transition: none;
  }
}
