/* ==========================================================
   ELS-Series トップページ専用スタイル (els-index.css)
   - トップページ・各製品ページの全ページが読み込みます（旧 els-common.css の後継）
   - クラス名はすべて「ei-」で始まります
   ========================================================== */

.ei-page {
  /* ブランドカラー（ロゴ画像から取得） */
  --navy: #000136;      /* ELS-Series ロゴの濃紺 */
  --sky: #AAC4E0;       /* ELS-Series ロゴの水色 */
  --green: #005D3C;     /* ELECTORI ロゴの緑 */
  /* 補助色 */
  --panel: #070B47;
  --sky-pale: #E8EFF8;
  --paper: #F3F5F9;
  --ink: #13172B;
  --muted: #566075;
  --line: #D2D9E4;
  --led: #6FF2B2;

  font-family: "Montserrat", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.ei-page *, .ei-page *::before, .ei-page *::after { box-sizing: border-box; }
.ei-page img { max-width: 100%; }
.ei-page a:focus-visible { outline: 3px solid #2F6FE0; outline-offset: 2px; }
.ei-hero a:focus-visible, .ei-pbanner a:focus-visible, .ei-foot a:focus-visible { outline-color: var(--sky); }
html { scroll-behavior: smooth; }
.ei-page [id] { scroll-margin-top: 16px; }

.ei-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.ei-head { position: static !important; background: #fff; border-bottom: 1px solid var(--line); }
.ei-head-in {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 32px; max-width: 1160px; margin: 0 auto; padding: 12px 24px;
}
.ei-logo { display: block; line-height: 0; }
.ei-logo img { display: block; height: 44px; width: auto; }
.ei-nav { display: block; }
.ei-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.ei-nav a {
  display: block; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 2px solid transparent;
}
.ei-nav a:hover { border-bottom-color: var(--navy); }
.ei-nav .ei-nav-cta {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: var(--navy); color: #fff; border-radius: 4px; border-bottom: 0;
}
.ei-nav .ei-nav-cta:hover { background: var(--panel); border-bottom: 0; }

/* ---------- ヒーロー ---------- */
.ei-hero, .ei-pbanner {
  position: relative; overflow: hidden; color: #fff; padding: 72px 0 80px;
  background-color: var(--navy);
  background-image:
    url("img/hero-network.svg"),
    radial-gradient(ellipse 60% 90% at 82% 25%, rgba(58, 104, 255, .42), rgba(58, 104, 255, 0) 70%),
    radial-gradient(ellipse 50% 70% at 5% 100%, rgba(0, 150, 140, .22), rgba(0, 150, 140, 0) 70%),
    linear-gradient(135deg, #000136 0%, #050C5C 100%);
  background-size: cover, auto, auto, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
}
.ei-hero-in {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px; align-items: center;
}
.ei-h1 { margin: 0; font-weight: 700; }
.ei-h1-logo { display: block; width: min(320px, 80%); height: auto; margin: -8px 0 16px -6px; filter: drop-shadow(0 10px 24px rgba(0, 0, 30, .5)); }
.ei-h1-line { display: block; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.5; letter-spacing: .02em; }
.ei-lead { max-width: 34em; margin: 20px 0 32px; font-size: 16px; color: #C9D6E7; }
.ei-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ei-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 4px;
  font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none;
}
.ei-btn-primary { background: var(--sky); color: var(--navy); }
.ei-btn-primary:hover { background: #C4D7EC; }
.ei-btn-ghost { border: 1.5px solid var(--sky); color: #fff; }
.ei-btn-ghost:hover { background: rgba(170, 196, 224, .15); }

/* ヒーロー右：ELS-Series 全ラインナップ（背景の上に直接配置） */
.ei-hv { position: relative; padding: 8% 0 20%; }
.ei-hv::before { /* 暗い機器が背景から浮き上がるよう、背後に淡い光を置く */
  content: ""; position: absolute; inset: -10% -8% -4% -8%; pointer-events: none;
  background: radial-gradient(closest-side at 50% 46%, rgba(170, 196, 224, .5), rgba(170, 196, 224, .16) 60%, rgba(170, 196, 224, 0) 100%);
}
.ei-hv-stack { position: relative; display: block; }
.ei-hv-stack picture, .ei-hv-stack img { display: block; width: 100%; height: auto; }
.ei-hv-stack img { filter: drop-shadow(0 22px 26px rgba(0, 0, 25, .55)); }
.ei-hv-cpi { position: absolute; right: 3%; bottom: 0; display: block; width: 32%; }
.ei-hv-cpi img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(0, 0, 25, .6)); }

/* ---------- セクション共通 ---------- */
.ei-sec { padding: 72px 0 0; }
.ei-sec-last { padding-bottom: 72px; }
.ei-sec-head { margin-bottom: 28px; }
.ei-h2 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.4; letter-spacing: .01em; }
.ei-sec-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); }

/* ---------- 用途から選ぶ ---------- */
.ei-find { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ei-find-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr);
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden;
}
.ei-find-item:hover { border-color: var(--navy); }
.ei-find-visual {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--sky-pale) 55%, #CFDCEC 100%);
  border-right: 1.5px solid var(--line);
}
.ei-find-visual a { display: block; min-width: 0; }
.ei-find-visual img { display: block; width: 100%; max-height: 110px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0, 1, 54, .25)); }
.ei-find-visual-stack { flex-direction: column; gap: 6px; padding: 18px 28px; }
.ei-find-visual-stack img { max-height: 54px; }
.ei-find-visual-pair { flex-direction: column; gap: 10px; }
.ei-find-visual-pair img { max-height: 70px; mix-blend-mode: multiply; filter: none; } /* 白背景の金具画像を、背景になじませる */
.ei-find-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px; }
.ei-ph { display: inline-block; }
.ei-find-q { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.ei-find-a { text-wrap: pretty; margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--muted); flex: 1; }
.ei-find-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ei-chip-link {
  padding: 7px 11px; border: 1.5px solid var(--navy); border-radius: 4px;
  font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--navy); text-decoration: none;
}
.ei-chip-link:hover { background: var(--navy); color: #fff; }

/* ---------- 製品ラインナップ ---------- */
.ei-group { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.ei-group-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px;
  padding: 12px 20px; background: var(--sky-pale); border-bottom: 1px solid var(--line);
}
.ei-group-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); }
.ei-group-note { margin: 0; font-size: 13px; color: var(--muted); }
.ei-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 20px; align-items: center; gap: 20px;
  padding: 14px 20px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.ei-row:last-child { border-bottom: 0; }
.ei-row:hover { background: var(--sky-pale); }
.ei-row-img { display: flex; align-items: center; justify-content: center; width: 96px; height: 64px; }
.ei-row-img img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ei-row-model { display: block; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.ei-row-name { display: block; font-size: 14px; color: var(--ink); }
.ei-specs { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.ei-spec {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 3px;
  background: var(--sky-pale); font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--navy);
}
.ei-row:hover .ei-spec { background: #fff; }
.ei-spec img { display: block; height: 14px; width: auto; }
.ei-new { background: var(--green); color: #fff; }
.ei-row:hover .ei-new { background: var(--green); }
.ei-row-arrow { color: var(--navy); }
.ei-ico { display: block; width: 20px; height: 20px; }

/* ---------- 資料 ---------- */
.ei-dl-sec { margin-top: 72px; padding: 56px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ei-dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ei-dl {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  border: 1.5px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none;
}
.ei-dl:hover { border-color: var(--navy); background: var(--sky-pale); }
.ei-dl .ei-ico { flex: none; width: 28px; height: 28px; margin-top: 2px; color: var(--navy); }
.ei-dl-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.5; }
.ei-dl-desc { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }

/* ---------- お知らせ ---------- */
.ei-news-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ei-news-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 8px 24px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.ei-news-date { font-size: 14px; font-weight: 600; color: var(--muted); }
.ei-news-body { font-size: 15px; }
.ei-news-body a { margin-left: 12px; font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.ei-news-body a:hover { text-decoration-thickness: 2px; }

/* ---------- ブランド（ELECTORI） ---------- */
.ei-trust { background: #fff; border-top: 5px solid var(--green); padding: 64px 0; }
.ei-trust-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
.ei-trust-logo { display: block; width: 100%; max-width: 300px; height: auto; }
.ei-trust-text { margin: 12px 0 0; font-size: 15.5px; }
.ei-phase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.ei-phase li { padding-top: 12px; border-top: 3px solid var(--green); }
.ei-phase strong { display: block; margin-bottom: 2px; font-size: 16px; }
.ei-phase span { display: block; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- フッター ---------- */
.ei-foot { background: var(--navy); color: #C9D6E7; padding: 48px 0 32px; }
.ei-foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.ei-foot-logo { display: block; height: 40px; width: auto; margin-bottom: 14px; }
.ei-foot p { margin: 0; font-size: 14px; line-height: 1.8; }
.ei-foot-title { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #fff; }
.ei-foot-links { display: flex; flex-direction: column; gap: 4px; }
.ei-foot-links a { font-size: 14px; color: #C9D6E7; text-decoration: none; }
.ei-foot-links a:hover { color: #fff; text-decoration: underline; }
.ei-foot-notes { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(170, 196, 224, .3); font-size: 12.5px; line-height: 1.9; color: #9FB1C8; }

/* ---------- タブレット ---------- */
@media (max-width: 1023px) {
  .ei-hero { padding: 56px 0 64px; }
  .ei-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .ei-find { grid-template-columns: 1fr; }
  .ei-dl-grid { grid-template-columns: 1fr; }
  .ei-trust-in { grid-template-columns: 1fr; gap: 28px; }
  .ei-trust-logo { max-width: 240px; }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 640px) {
  .ei-wrap, .ei-head-in { padding-left: 16px; padding-right: 16px; }
  .ei-nav ul { gap: 0 20px; }
  .ei-nav a { font-size: 14px; }
  .ei-hero { padding: 40px 0 48px; }
  .ei-sec { padding-top: 48px; }
  .ei-sec-last { padding-bottom: 48px; }
  .ei-dl-sec { margin-top: 48px; padding: 40px 0; }
  .ei-h2 { font-size: 24px; }
  .ei-find-item { grid-template-columns: 1fr; }
  .ei-find-visual { border-right: 0; border-bottom: 1.5px solid var(--line); }
  .ei-find-visual-stack, .ei-find-visual-pair { flex-direction: row; padding: 20px; }
  .ei-find-visual-stack img, .ei-find-visual-pair img { max-height: 64px; }
  .ei-find-body { padding: 20px; }
  .ei-row {
    grid-template-columns: 72px minmax(0, 1fr) 20px;
    grid-template-areas: "img main arrow" "specs specs specs";
    gap: 10px 14px; padding: 14px 16px;
  }
  .ei-row-img { grid-area: img; width: 72px; height: 52px; }
  .ei-row-main { grid-area: main; }
  .ei-specs { grid-area: specs; justify-content: flex-start; }
  .ei-row-arrow { grid-area: arrow; }
  .ei-news-item { grid-template-columns: 1fr; gap: 2px; }
  .ei-news-body a { margin-left: 0; margin-right: 12px; display: inline-block; }
  .ei-phase { grid-template-columns: 1fr; gap: 16px; }
  .ei-foot-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* =========================================================
   製品ページ
   ========================================================= */
.ei-pbanner { padding: 32px 0 52px; }
.ei-crumb { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: baseline; gap: 4px 8px; margin: 0 0 28px; padding: 0; font-size: 13px; line-height: 1.6; color: #9FB1C8; }
.ei-crumb a, .ei-crumb span { margin: 0; padding: 0; font-size: inherit; font-weight: 400; }
.ei-crumb a { color: var(--sky); text-decoration: none; }
.ei-crumb a:hover { text-decoration: underline; }
.ei-ptags { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.ei-ptag { padding: 3px 12px; border: 1px solid rgba(170, 196, 224, .65); border-radius: 3px; font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--sky); }
.ei-pdante img { display: block; height: 30px; width: auto; }
.ei-pnew { padding: 3px 10px; border-radius: 3px; background: var(--green); font-size: 12.5px; font-weight: 700; line-height: 1.6; color: #fff; }
.ei-pmodel { margin: 0; font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.ei-pname { margin: 10px 0 0; font-size: clamp(16px, 1.8vw, 20px); font-weight: 500; line-height: 1.6; color: #C9D6E7; }
.ei-pmeta { display: flex; flex-wrap: wrap; gap: 6px 32px; margin: 22px 0 0; padding: 0; }
.ei-pmeta > div { display: flex; align-items: baseline; gap: 10px; }
.ei-pmeta dt { font-size: 13px; color: #9FB1C8; }
.ei-pmeta dd { margin: 0; font-size: 15px; font-weight: 700; }

.ei-pb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.ei-pcta { margin-top: 28px; }

/* 製品写真（ヘッダー右）：背景の上に直接置き、背後に淡い光を入れる */
.ei-gallery { position: relative; }
.ei-gallery::before {
  content: ""; position: absolute; inset: -14% -8% 16% -8%; pointer-events: none;
  background: radial-gradient(closest-side at 50% 46%, rgba(170, 196, 224, .5), rgba(170, 196, 224, .16) 60%, rgba(170, 196, 224, 0) 100%);
}
.ei-gallery button { font: inherit; }
.ei-gallery-main {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.ei-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0, 0, 25, .55)); }
.ei-gallery-thumbs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.ei-thumb {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; padding: 4px;
  border: 2px solid transparent; border-radius: 6px; background: #fff; cursor: pointer;
}
.ei-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ei-thumb:hover { border-color: rgba(170, 196, 224, .7); }
.ei-thumb.is-active { border-color: var(--sky); box-shadow: 0 0 0 2px rgba(170, 196, 224, .35); }
/* 写真の背景に応じた表示（els-site.js が data-mode を自動で切り替えます）
   ink  : 白背景＋真っ黒な製品（金具など）→ 淡い光の上に置き、白をなじませる
   key  : 白背景の写真 → 白だけを透明にする（フィルターはJSがインラインで指定）
   photo: 全面の写真 → 角を丸めて表示 */
.ei-gallery[data-mode="ink"]::before { background: radial-gradient(closest-side at 50% 46%, rgba(232, 239, 248, .92), rgba(205, 220, 238, .55) 62%, rgba(170, 196, 224, 0) 100%); }
.ei-gallery[data-mode="ink"] .ei-gallery-main img { mix-blend-mode: multiply; filter: none; }
.ei-gallery[data-mode="photo"] .ei-gallery-main img { border-radius: 8px; filter: none; box-shadow: 0 18px 30px rgba(0, 0, 25, .5); }

/* 本文：左に「このページの内容」、右に各セクション */
.ei-pd { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 64px; }
.ei-toc { position: sticky; top: 24px; }
.ei-toc-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ei-toc ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.ei-toc a { display: block; margin-left: -2px; padding: 8px 14px; border-left: 2px solid transparent; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--ink); text-decoration: none; }
.ei-toc a:hover { border-left-color: var(--navy); color: var(--navy); }

.ei-pc-sec { margin: 0 0 48px; }
.ei-pc-sec:last-child { margin-bottom: 0; }
.ei-pc-title { margin: 0 0 18px; padding-top: 12px; border-top: 3px solid var(--navy); font-size: 22px; font-weight: 700; line-height: 1.4; }
.ei-pc-sec p { margin: 0 0 1em; font-size: 15.5px; line-height: 1.9; }
.ei-pc-sec p.ei-note { padding: 14px 18px; border: 1.5px solid var(--navy); border-radius: 6px; background: var(--sky-pale); font-size: 14.5px; font-weight: 500; line-height: 1.8; }
.ei-figure { margin: 24px 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ei-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }

.ei-feature-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ei-feature-list li { position: relative; padding-left: 32px; font-size: 15.5px; line-height: 1.7; }
.ei-feature-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.ei-tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: #fff; font-size: 14.5px; }
.ei-tbl th, .ei-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.ei-tbl th { width: 26%; background: var(--sky-pale); font-weight: 700; color: var(--navy); }
.ei-sx { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ei-sl, .ei-tbl td ul { margin: 0; padding-left: 1.2em; list-style: disc; }
.ei-sl ul, .ei-tbl td ul ul { margin: 2px 0 4px; padding-left: 1.2em; list-style: circle; }
.ei-pc-sec p.ei-sn { margin: 10px 0 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

.ei-files { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.ei-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ei-file:last-child { border-bottom: 0; }
.ei-file-label { font-size: 15px; font-weight: 700; line-height: 1.6; }
.ei-file-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ei-file-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1.5px solid var(--navy); border-radius: 4px; font-size: 13.5px; font-weight: 700; line-height: 1.5; color: var(--navy); text-decoration: none; }
.ei-file-btn:hover { background: var(--navy); color: #fff; }
.ei-file-btn svg { flex: none; width: 16px; height: 16px; }

.ei-rel { padding: 56px 0 72px; border-top: 1px solid var(--line); background: var(--paper); }
.ei-rel .ei-group:last-child { margin-bottom: 0; }

.ei-lightbox { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0, 1, 40, .82); }
.ei-lightbox[hidden] { display: none; }
.ei-lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; padding: 12px; border-radius: 6px; background: #fff; }
.ei-lightbox-close { position: absolute; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; font-size: 26px; line-height: 1; color: var(--navy); cursor: pointer; }
.ei-lightbox-close:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

@media (max-width: 1023px) {
  .ei-pb-grid { grid-template-columns: 1fr; gap: 32px; }
  .ei-gallery { max-width: 560px; }
  .ei-pd { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
  .ei-toc { position: static; }
  .ei-toc-title { display: none; }
  .ei-toc ul { display: flex; flex-wrap: wrap; gap: 8px; border-left: 0; }
  .ei-toc a { margin: 0; padding: 7px 14px; border: 1.5px solid var(--navy); border-radius: 4px; font-size: 14px; color: var(--navy); }
  .ei-toc a:hover { background: var(--navy); color: #fff; }
}
@media (max-width: 640px) {
  .ei-pbanner { padding: 20px 0 36px; }
  .ei-crumb { margin-bottom: 20px; }
  .ei-pc-sec { margin-bottom: 36px; }
  .ei-pc-title { font-size: 20px; }
  .ei-tbl th, .ei-tbl td { display: block; width: 100%; }
  .ei-tbl th { border-bottom: 0; padding-bottom: 4px; }
  .ei-rel { padding: 40px 0 48px; }
}

/* ---------- 動きを減らす設定の尊重 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
