@charset "utf-8";
/* =============================================================================
   NGW 公式サイト — スタイル
   色は ICTCacao / NGW のロゴ（カカオ色）と、NGW アプリ画面のブルーから取っている。
   ============================================================================= */

:root {
  --brand: #5c3a2c;          /* ロゴのカカオ色 */
  --brand-deep: #3f261c;
  --brand-soft: #f7f2ee;
  --rule: #843c0c;           /* プレゼン資料の罫線色 */
  --accent: #1b72c4;         /* NGW アプリ画面のブルー */
  --accent-deep: #12558f;
  --accent-soft: #eaf2fa;
  --ink: #211a16;
  --ink-2: #5d5049;
  --ink-3: #8a7d75;
  --line: #e7ddd6;
  --bg: #ffffff;
  --bg-soft: #faf6f2;
  --ok: #1f7a4d;
  --warn: #b3541e;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(33, 26, 22, .06), 0 8px 24px rgba(33, 26, 22, .07);
  --shadow-sm: 0 1px 2px rgba(33, 26, 22, .07), 0 2px 8px rgba(33, 26, 22, .05);
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Yu Gothic",
          "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "palt" 1;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

img { max-width: 100%; height: auto; vertical-align: middle; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.45; font-weight: 700; letter-spacing: .01em; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, var(--maxw-narrow)); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.muted { color: var(--ink-3); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 0; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- ヘッダ ---------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); flex: 0 0 auto; }
.brand img { border-radius: 50%; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 21px; letter-spacing: .06em; }
.brand-txt small { font-size: 11px; color: var(--ink-3); letter-spacing: .02em; }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.gnav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none;
}
.gnav a:hover { background: var(--brand-soft); color: var(--brand); }
.gnav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.navtoggle { display: none; }

/* ---- ヒーロー -------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: #2b2f36 url("../img/hero-return-key.jpg") center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(30, 22, 18, .90) 0%, rgba(30, 22, 18, .74) 46%, rgba(30, 22, 18, .30) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-block: clamp(56px, 10vw, 112px); }
.hero .eyebrow {
  display: inline-block; margin: 0 0 14px;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 13px; font-weight: 700; letter-spacing: .06em;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.35;
  letter-spacing: .01em;
  max-width: 22em;
}
.hero h1 .accent { color: #ffd9a3; }
.hero p.lead {
  margin: 0 0 28px; max-width: 40em;
  font-size: clamp(15px, 1.9vw, 18px);
  color: rgba(255, 255, 255, .92);
}
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- ボタン ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn.outline { background: #fff; color: var(--accent-deep); border: 1px solid var(--line); }
.btn.outline:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* ---- 見出し ---------------------------------------------------------------- */
.sec-head { margin-bottom: 32px; }
.sec-head .kicker {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  color: var(--rule); text-transform: uppercase;
}
.sec-head h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.4vw, 31px);
  position: relative; padding-bottom: 14px;
}
.sec-head h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--rule); border-radius: 2px;
}
.sec-head p { margin: 0; color: var(--ink-2); max-width: 46em; }
.sec-head.center { text-align: center; }
.sec-head.center h2::after { left: 50%; transform: translateX(-50%); }
.sec-head.center p { margin-inline: auto; }

.bg-soft { background: var(--bg-soft); }
.bg-brand { background: var(--brand); color: #fff; }
.bg-brand a { color: #ffd9a3; }

/* ---- カード ---------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.c4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 10px; font-size: 18px; color: var(--brand-deep); }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 12px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-weight: 800; font-size: 15px;
}
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
a.card .more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--accent-deep); }

/* ---- 機能タグの一覧 -------------------------------------------------------- */
.subsys { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.subsys .box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.subsys h3 {
  margin: 0 0 14px; font-size: 16px; color: #fff;
  display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--brand);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}

/* ---- 導入団体 -------------------------------------------------------------- */
.users {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  list-style: none; margin: 0; padding: 0;
}
.users li {
  padding: 12px 26px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: clamp(15px, 2vw, 17px); font-weight: 700; color: var(--brand-deep);
}

/* ---- 図版 ------------------------------------------------------------------ */
figure.shot { margin: 0; }
figure.shot img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: #fff;
}
figure.shot figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
figure.shot.plain img { box-shadow: none; }
/* 縦長の図版（ワークフロー図など）は幅を抑えて中央に置く */
figure.diagram { max-width: 480px; margin-inline: auto; }
figure.diagram img { border: none; box-shadow: none; }
figure.diagram figcaption { text-align: center; }
figure.paper img { border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow-sm); background: #fff; }

/* 画像と文章を左右に並べる。文章は上揃え（画像の高さに引きずられて中央に浮かないように） */
.split { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split.rev > *:first-child { order: 2; }
.split h3 { margin: 0 0 12px; font-size: clamp(19px, 2.6vw, 24px); color: var(--brand-deep); }
.split p { margin: 0 0 14px; color: var(--ink-2); }

/* ---- 数字（実績） ---------------------------------------------------------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { text-align: center; padding: 22px 14px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); }
.stat b { display: block; font-size: clamp(26px, 4vw, 36px); line-height: 1.2; letter-spacing: .01em; }
.stat span { display: block; margin-top: 6px; font-size: 13px; opacity: .82; }

/* ---- フロー（工程） -------------------------------------------------------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: f; }
.flow li {
  position: relative; padding: 20px 18px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); counter-increment: f;
}
.flow li::before {
  content: counter(f); position: absolute; top: -12px; left: 18px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--rule); color: #fff; font-size: 13px; font-weight: 800;
}
.flow b { display: block; margin-bottom: 6px; color: var(--brand-deep); }
.flow p { margin: 0; font-size: 14px; color: var(--ink-2); }

/* ---- 開発ブログへの導線 -----------------------------------------------------
   本文の流れを止めずに「もっと詳しく」を差し出す小さいリンク。
   -------------------------------------------------------------------------- */
.blogref {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin: 4px 0 0; padding: 9px 16px 9px 14px;
  border-left: 3px solid var(--rule);
  background: var(--brand-soft); border-radius: 0 8px 8px 0;
  font-size: 14px; line-height: 1.7;
}
.blogref::before {
  content: "BLOG";
  flex: 0 0 auto;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--rule);
}
.blogref a { font-weight: 700; }

/* ---- POINT / 注記 ---------------------------------------------------------- */
.point {
  display: inline-block; margin-right: 8px; padding: 2px 10px;
  border-radius: 4px; background: var(--rule); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; vertical-align: 2px;
}
.note {
  margin: 20px 0; padding: 16px 20px;
  background: var(--brand-soft); border-left: 4px solid var(--rule); border-radius: 0 8px 8px 0;
  font-size: 15px; color: var(--ink-2);
}
.note b { color: var(--brand-deep); }

/* ---- 表 -------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; margin: 22px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; white-space: nowrap; }
tbody tr:nth-child(even) td { background: #fcfaf8; }

/* ---- ページ見出し ---------------------------------------------------------- */
.pagehead {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(30px, 5vw, 54px);
}
.pagehead h1 { margin: 0 0 12px; font-size: clamp(25px, 4.2vw, 38px); color: var(--brand-deep); }
.pagehead .lead { margin: 0; color: var(--ink-2); max-width: 46em; }
.crumbs { margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }

/* ---- 本文（Markdown 由来） -------------------------------------------------- */
.prose h2 {
  margin: 44px 0 16px; padding-bottom: 10px;
  font-size: clamp(20px, 3vw, 26px); color: var(--brand-deep);
  border-bottom: 2px solid var(--line);
}
.prose h3 { margin: 32px 0 12px; font-size: 18px; color: var(--brand-deep); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.5em; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 8px; border: 1px solid var(--line); }
.prose blockquote {
  margin: 20px 0; padding: 4px 20px; border-left: 4px solid var(--line);
  color: var(--ink-2);
}
.prose code {
  font-family: var(--mono); font-size: .9em;
  background: var(--brand-soft); padding: 2px 6px; border-radius: 4px;
}
.prose pre {
  margin: 20px 0; padding: 16px 18px; overflow-x: auto;
  background: #2c2420; color: #f2ece7; border-radius: 10px; font-size: 14px; line-height: 1.7;
}
.prose pre code { background: none; padding: 0; color: inherit; }

/* ---- よくある質問 ----------------------------------------------------------
   質問（h3）と回答（p）を、色と Q バッジではっきり分ける。
   -------------------------------------------------------------------------- */
.faq h3 {
  position: relative;
  margin: 34px 0 12px;
  padding-left: 36px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--accent-deep);
}
.faq h3::before {
  content: "Q";
  position: absolute; left: 0; top: 1px;
  width: 25px; height: 25px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 800; line-height: 25px; text-align: center;
}
.faq h2 + h3 { margin-top: 20px; }
.faq p { color: var(--ink-2); }
.faq p strong { color: var(--ink); }
.faq ul, .faq ol { color: var(--ink-2); }
.faq .note p { color: var(--ink-2); }

/* ---- アップデート情報 ------------------------------------------------------ */
.up-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.up-item { border-bottom: 1px solid var(--line); }
.up-item > a {
  display: grid; gap: 4px 18px; align-items: baseline;
  grid-template-columns: minmax(240px, auto) 1fr;
  padding: 16px 8px; text-decoration: none; color: inherit;
}
.up-item > a:hover { background: var(--bg-soft); }
.up-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.up-title { font-weight: 700; color: var(--ink); }
.up-item > a:hover .up-title { color: var(--accent-deep); }
.cat {
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
}
.cat-up { background: var(--accent); }
.cat-new { background: var(--ok); }
.cat-fix { background: var(--warn); }
.cat-info { background: var(--ink-3); }
.ver { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

.prevnext { display: flex; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.pn {
  flex: 1 1 240px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; background: #fff;
}
.pn small { display: block; font-weight: 600; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.pn:hover { background: var(--bg-soft); }
.pn.next { text-align: right; }

/* ---- CTA ------------------------------------------------------------------- */
.cta { background: var(--brand); color: #fff; }
.cta h2 { margin: 0 0 14px; font-size: clamp(22px, 3.4vw, 30px); }
.cta p { margin: 0 0 24px; color: rgba(255, 255, 255, .9); max-width: 44em; }
.cta .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- 定義リスト（お問い合わせ等） ------------------------------------------ */
.deflist { margin: 0; }
.deflist > div { display: grid; grid-template-columns: 160px 1fr; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--brand-deep); margin: 0; }
.deflist dd { margin: 0; color: var(--ink-2); }

/* ---- お問い合わせフォーム --------------------------------------------------- */
.formtitle {
  margin: 48px 0 6px; padding-bottom: 10px;
  font-size: clamp(19px, 2.8vw, 24px); color: var(--brand-deep);
  border-bottom: 2px solid var(--line);
}
.cform { margin-top: 24px; }
.cform .row { margin-bottom: 20px; }
.cform label {
  display: block; margin-bottom: 6px;
  font-weight: 700; font-size: 15px; color: var(--brand-deep);
}
.cform .req { color: var(--rule); font-weight: 800; }
.cform input[type="text"],
.cform input[type="email"],
.cform input[type="tel"],
.cform select,
.cform textarea {
  width: 100%; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(33, 26, 22, .05);
}
.cform textarea { line-height: 1.8; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.cform input::placeholder, .cform textarea::placeholder { color: #b6a99f; }
.cform .privacy {
  margin: 26px 0 0; padding: 14px 18px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--ink-2);
}
.cform .submit { margin: 26px 0 0; text-align: center; }
.cform .submit .btn { border: 0; cursor: pointer; padding: 14px 40px; font-size: 16px; }
/* ハニーポット。人には見せない（display:none は一部の自動入力に見抜かれるため位置で隠す） */
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.formmsg {
  margin: 28px 0; padding: 18px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
}
.formmsg b { display: block; margin-bottom: 6px; font-size: 17px; }
.formmsg p, .formmsg ul { margin: 0; font-size: 15px; color: var(--ink-2); }
.formmsg ul { padding-left: 1.3em; }
.formmsg.ok { border-left: 5px solid var(--ok); background: #f2f9f5; }
.formmsg.ok b { color: var(--ok); }
.formmsg.ng { border-left: 5px solid var(--warn); background: #fdf5f0; }
.formmsg.ng b { color: var(--warn); }

/* ---- フッタ ---------------------------------------------------------------- */
.site-foot { margin-top: 0; background: var(--brand-deep); color: rgba(255, 255, 255, .82); padding-top: 40px; }
.foot-inner { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; padding-bottom: 28px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand img { border-radius: 50%; background: #fff; }
.foot-brand p { margin: 0; line-height: 1.5; }
.foot-brand b { color: #fff; font-size: 19px; letter-spacing: .06em; }
.foot-brand small { font-size: 12px; }
.foot-nav ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: rgba(255, 255, 255, .82); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.copy { margin: 0; padding: 16px 0 22px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .55); border-top: 1px solid rgba(255, 255, 255, .12); }

/* ---- 取説（/ngwManual/）----------------------------------------------------
   NGW 本体から直接開かれるので、サイトのグローバルナビは出さず専用ヘッダにする。
   見た目は公式サイトに合わせている。
   -------------------------------------------------------------------------- */
.mn-head {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mn-head-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.mn-head .brand-txt b { font-size: 18px; }
.mn-index {
  margin-left: auto; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none;
}
.mn-index:hover { background: var(--brand-soft); color: var(--brand); }

.mn-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mn-card {
  display: block; padding: 16px 18px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mn-card b { display: block; font-size: 16px; color: var(--brand-deep); line-height: 1.5; }
.mn-card small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }

body.manual .section { padding-block: clamp(28px, 4vw, 44px); }
body.manual .sec-head { margin-bottom: 20px; }
body.manual .sec-head h2 { font-size: clamp(19px, 2.6vw, 23px); }

/* 記事本体 */
.mn-body { max-width: 900px; }
.mb { margin-bottom: 44px; }
.mb:last-child { margin-bottom: 0; }
.mb-title {
  margin: 0 0 16px; padding-bottom: 8px;
  font-size: clamp(18px, 2.6vw, 22px); color: var(--brand-deep);
}
.mb-title.line-bottom { border-bottom: 2px solid var(--rule); }
.mb-title.line-both { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); padding-top: 8px; }
.mb-text { line-height: 1.95; }
.mb-text h3 { margin: 0 0 10px; font-size: 17px; color: var(--brand-deep); }
.mb-text h4 { margin: 14px 0 6px; font-size: 16px; color: var(--brand-deep); }
.mb-text img { max-width: 100%; border: 1px solid var(--line); border-radius: 6px; }
.mb-text a { font-weight: 600; }

.mb-figs { margin: 16px 0 0; display: grid; gap: 14px; }
.mb-figs.cols-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.mb-figs.cols-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mb-figs.cols-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.mb-shot { margin: 0; }
.mb-shot img {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.mb-split { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.mb-split.rev .mb-shot { order: 2; }
.mb-split .mb-figs { margin-top: 0; }

.mb-pdf { margin: 16px 0 0; }
.mb-pdf a {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--brand-soft); border: 1px solid var(--line);
  font-weight: 700; text-decoration: none;
}
.mb-pdf a::before { content: "PDF　"; color: var(--rule); font-size: 12px; }

/* FAQ */
.mb-faq { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.mb-faq-cat { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--rule); }
.mb-q { margin: 0 0 12px; font-weight: 700; color: var(--brand-deep); }
.mb-q::before { content: "Q"; display: inline-block; margin-right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; text-align: center; font-size: 13px; line-height: 22px; }
.mb-a { color: var(--ink-2); }
.mb-a::before { content: "A"; display: inline-block; margin-right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; text-align: center; font-size: 13px; line-height: 22px; }
.mb-faq-shot { margin-top: 14px; }

/* CMS の独自タグ（色だけ持っていたもの）の置き換え先 */
.c-red    { color: #d94b2b; font-weight: 500; }
.c-green  { color: #43930a; font-weight: 500; }
.c-blue   { color: #2f6fd0; font-weight: 500; }
.c-orange { color: #c67a02; font-weight: 500; }
.c-yellow { color: #a58800; font-weight: 500; }
.c-em     { font-weight: 700; }
.c-red-s   { color: #d94b2b; font-size: .9em; }
.c-green-s { color: #43930a; font-size: .9em; }
.c-blue-s  { color: #2f6fd0; font-size: .9em; }

.mn-foot { margin-top: 20px; padding: 28px 0 20px; border-top: 1px solid var(--line); text-align: center; }
.mn-foot .copy { margin: 16px 0 0; font-size: 12px; color: var(--ink-3); border: 0; }

/* ---- スマホ ---------------------------------------------------------------- */
@media (max-width: 900px) {
  .navtoggle {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px;
    background: #fff; color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer;
  }
  .navtoggle .bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
  .gnav {
    display: none; margin: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .gnav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 15px; }
  .head-inner { position: relative; }
  .up-item > a { grid-template-columns: 1fr; }
  .deflist > div { grid-template-columns: 1fr; }
  .split.rev > *:first-child { order: 0; }
}

@media print {
  .site-head, .site-foot, .navtoggle, .prevnext { display: none; }
  body { font-size: 12pt; }
}

/* ------------------------------------------------------------------ *
 *  画像の拡大表示
 * ------------------------------------------------------------------ */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

body.lb-open { overflow: hidden; }

.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(33, 26, 22, .88);
  animation: lb-in .12s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 12px; }
.lb-fig img {
  max-width: 100%; max-height: calc(100vh - 120px);
  width: auto; height: auto;
  border-radius: var(--radius); background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  cursor: default;
}
.lb-fig figcaption {
  flex: 0 0 auto; max-width: 80ch; margin-inline: auto;
  font-size: 13px; line-height: 1.7; color: #efe7e2; text-align: center;
}

.lb-close {
  position: absolute; top: 12px; right: 16px;
  width: 44px; height: 44px; padding: 0;
  font: 400 30px/1 var(--font); color: #fff;
  background: transparent; border: 0; border-radius: 50%;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .14); }
.lb-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 640px) {
  .lb { padding: 12px; }
  .lb-fig img { max-height: calc(100vh - 150px); }
}
