/* =========================================================
   うけつけ 共通スタイル（フォームの部品と、フォームのページの骨格）
   正本：system/DESIGN.md。色は2章、状態は8章、寸法は10章、部品は11章、トークンは14.1。
   ここに無い色・角丸・余白の値は作らない。
   ========================================================= */

/* ---------- 1. トークン（14.1） ---------- */
:root {
  /* 色（2章） */
  --bg: #FDFCFA;            /* 紙 */
  --surface: #FFFFFF;       /* 白 */
  --ink: #1E2430;           /* 墨 */
  --ink-2: #4B5363;         /* 薄墨 */
  --ink-3: #6B7280;         /* 淡墨 */
  --line: #DCDFE4;          /* 罫 */
  --line-control: #8A92A0;  /* 枠 */
  --accent: #2E4A9E;        /* 藍 */
  --accent-hover: #263F8A;
  --accent-pressed: #1F3476;
  --on-accent: #FFFFFF;
  --error: #C2372F;         /* 紅 */
  --done: #1E7A4C;          /* 緑 */
  --on-state: #FFFFFF;
  --selected: #EEF1F7;
  --hover: #F6F6F7;
  --disabled-bg: #F4F4F5;
  --error-bg: #FBF3F3;
  --done-bg: #F2F7F4;

  /* 書体（9章） */
  --font-sans: 'BIZ UDPGothic', 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  --font-mono: 'BIZ UDGothic', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-h1: 28px; --fs-h2: 22px; --fs-h3: 18px;
  --fs-body: 16px; --fs-small: 14px; --fs-receipt: 28px;
  --lh-body: 1.7; --lh-tight: 1.5;

  /* 形（10章） */
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
  --focus-ring: 2px solid var(--accent);
  --icon-s: 16px; --icon-m: 20px; --icon-l: 32px;

  /* 密度：標準（10.5） */
  --control-h: 48px; --control-pad: 12px; --button-pad: 24px;
  --field-gap: 32px; --group-gap: 48px; --sheet-pad: 32px; --choice-gap: 12px;
  --form-max: 640px;
  --page-pad: 32px;
}
@media (max-width: 639px) {
  :root { --fs-h1: 24px; --fs-h2: 20px; --fs-receipt: 24px; --sheet-pad: 16px; --page-pad: 16px; }
}
/* 詰めは幅 1024px 以上だけで効かせる（10.5）。1024px 未満では標準の値のまま */
@media (min-width: 1024px) {
  [data-density="compact"] {
    --control-h: 40px; --button-pad: 16px;
    --field-gap: 16px; --group-gap: 32px; --sheet-pad: 24px; --choice-gap: 8px;
  }
}
@media (forced-colors: active) {
  .uk-icon circle { fill: CanvasText !important; }
  .uk-icon rect, .uk-icon path { fill: Canvas !important; stroke: Canvas !important; }
}

/* ---------- 2. 土台 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans);
  font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: .02em;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
h1 { font-size: var(--fs-h1); line-height: 1.4; }
h2 { font-size: var(--fs-h2); line-height: 1.5; }
h3 { font-size: var(--fs-h3); line-height: 1.5; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
b, strong { font-weight: 700; }
input, select, textarea, button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }
/* プログラムでフォーカスを移す見出し（13.4）は輪を出さない。部品の輪は消さない */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }
.uk-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[id] { scroll-margin-top: 96px; }
.uk-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
[hidden] { display: none !important; }

/* 状態のアイコン（8.3）：16 / 20 / 32px の3つ */
.uk-icon { display: inline-block; flex: none; width: var(--icon-s); height: var(--icon-s); vertical-align: middle; }
.uk-icon--m { width: var(--icon-m); height: var(--icon-m); }
.uk-icon--l { width: var(--icon-l); height: var(--icon-l); }
.uk-icon--error { color: var(--error); }
.uk-icon--done { color: var(--done); }

/* ---------- 3. ページの骨格（10.4） ---------- */
.uk-skip { position: absolute; left: 16px; top: -64px; z-index: 10; padding: 8px 16px; background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.uk-skip:focus { top: 8px; }

.uk-header { height: 56px; background: var(--surface); border-bottom: 1px solid var(--line); }
.uk-header__inner { display: flex; align-items: center; gap: 16px; height: 100%; max-width: 1104px; margin: 0 auto; padding: 0 var(--page-pad); }
.uk-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.uk-brand svg { width: 24px; height: 24px; color: var(--accent); }
.uk-header__user { margin-left: auto; font-size: var(--fs-small); color: var(--ink-2); }

.uk-main { padding: 32px var(--page-pad) 64px; }
.uk-page { max-width: calc(var(--form-max) + 2 * 32px + 2px); margin: 0 auto; }
.uk-view > * + * { margin-top: 0; }

/* フォームの用紙（10.4）：白の面・罫 1px・角丸 12。スマホでは用紙を外して紙の地に直接置く */
.uk-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sheet-pad); }
@media (max-width: 639px) {
  .uk-sheet { background: none; border: 0; border-radius: 0; padding: 0; }
}
.uk-sheet > h1 + p, .uk-sheet > h1 + .uk-lead { margin-top: 8px; }
.uk-lead { margin-top: 8px; }

/* 前のステップに戻る（5.4）とステップ表示（11.10） */
.uk-back { display: inline-flex; align-items: center; min-height: 44px; }
.uk-steps { margin: 8px 0 24px; }
.uk-steps ol { display: flex; align-items: center; list-style: none; }
.uk-steps li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; line-height: var(--lh-tight); }
.uk-steps li + li { flex: 1 1 auto; }
.uk-steps li + li::before { content: ""; flex: 1 1 24px; min-width: 24px; height: 1px; margin: 0 12px; background: var(--line); }
.uk-steps__mark {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-control); color: var(--ink-2);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0;
}
.uk-steps__mark svg { width: 16px; height: 16px; }
.uk-steps .is-current { color: var(--ink); font-weight: 700; }
.uk-steps .is-current .uk-steps__mark, .uk-steps .is-done .uk-steps__mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.uk-steps__compact { display: none; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-steps__compact b { font-size: var(--fs-body); color: var(--ink); }
@media (max-width: 639px) {
  .uk-steps ol { display: none; }
  .uk-steps__compact { display: block; }
}

/* ---------- 4. 項目（3章・11章） ---------- */
.uk-legend-note { margin-top: 8px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-field { margin: var(--field-gap) 0 0; padding: 0; border: 0; min-width: 0; scroll-margin-top: 96px; }
fieldset.uk-field > legend { padding: 0; }
.uk-label { display: block; font-weight: 700; line-height: var(--lh-tight); color: var(--ink); }
.uk-optional { font-weight: 400; color: var(--ink-2); }
.uk-help { margin-top: 4px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-help + .uk-help { margin-top: 0; }
.uk-error {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 8px;
  font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-tight); color: var(--error);
}
.uk-error .uk-icon { margin-top: 2.5px; }
.uk-hint { margin-top: 8px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }

.uk-input, .uk-select, .uk-textarea {
  display: block; margin-top: 8px; width: 100%; max-width: 100%; min-height: var(--control-h);
  padding: 0 var(--control-pad); background-color: var(--surface); color: var(--ink);
  border: 1px solid var(--line-control); border-radius: var(--radius-md);
  font-size: 16px; line-height: var(--lh-tight);
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.uk-textarea { padding-block: 12px; min-height: 160px; max-height: 60vh; resize: vertical; }
.uk-select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.25l4 4 4-4' fill='none' stroke='%231E2430' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px;
}
.uk-input::placeholder, .uk-textarea::placeholder { color: var(--ink-3); opacity: 1; }
.uk-input:hover, .uk-select:hover, .uk-textarea:hover { border-color: var(--ink-2); }
.uk-input:focus-visible, .uk-select:focus-visible, .uk-textarea:focus-visible { border-color: var(--accent); }
.uk-input[aria-invalid="true"], .uk-select[aria-invalid="true"], .uk-textarea[aria-invalid="true"] {
  border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error);
}
.uk-input:disabled, .uk-select:disabled, .uk-textarea:disabled {
  background-color: var(--disabled-bg); border-color: var(--line); color: var(--ink-3); cursor: not-allowed;
}
/* 欄の幅は答えの長さ（6.1） */
.uk-w-postal { width: 8em; } .uk-w-tel { width: 14em; } .uk-w-name { width: 20em; } .uk-w-email { width: 28em; }
.uk-w-pref { width: 10em; } .uk-w-line { width: 28em; } .uk-w-code { width: 14em; } .uk-w-date { width: 12em; }
.uk-w-year { width: 5em; } .uk-w-md { width: 3.5em; } .uk-w-qty { width: 5em; } .uk-w-select { width: 20em; }

/* 生年月日：年・月・日の3つの欄（6.6・11.6） */
.uk-date3 { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.uk-date3 > div { display: flex; flex-direction: column; }
.uk-date3 label { font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-tight); }
.uk-date3 .uk-input { margin-top: 4px; }

/* 選択肢（11.4・11.5）：印 20px、文との間 12px、触れる範囲 44px 以上 */
.uk-choices { }
.uk-choice-list { margin-top: 4px; }
.uk-choice { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; line-height: var(--lh-tight); cursor: pointer; }
.uk-choice + .uk-choice { margin-top: calc(var(--choice-gap) - 12px); }
.uk-choice__text { min-width: 0; }
.uk-choice__desc { display: block; margin-top: 2px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-choice input[type="radio"], .uk-choice input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; display: grid; place-content: center;
  width: 20px; height: 20px; margin: 2px 0 0; background: var(--surface) no-repeat center;
  border: 1px solid var(--line-control); cursor: pointer;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}
.uk-choice input[type="radio"] { border-radius: 50%; }
.uk-choice input[type="radio"]:checked { border: 2px solid var(--accent); }
.uk-choice input[type="radio"]:checked::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.uk-choice input[type="checkbox"] { border-radius: var(--radius-sm); background-size: 14px 14px; }
.uk-choice input[type="checkbox"]:checked {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.3l2.6 2.6L11 4.4' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.uk-choice input[type="checkbox"]:indeterminate {
  background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7h7' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
.uk-choice input:hover { border-color: var(--ink-2); }
.uk-choice input:checked:hover { border-color: var(--accent); }
.uk-choice input[aria-invalid="true"] { border: 2px solid var(--error); }
.uk-choice input:disabled { background-color: var(--disabled-bg); border-color: var(--line); cursor: not-allowed; }
.uk-choice:has(input:disabled) { color: var(--ink-2); cursor: not-allowed; }
/* タイル型（11.4）：白・枠 1px・角丸 8・内側 16。選んだら縁 藍 2px＋面 選択 */
.uk-tiles { display: grid; gap: 12px; margin-top: 8px; }
.uk-tiles .uk-choice { margin: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); transition: border-color 120ms ease-out, background-color 120ms ease-out; }
.uk-tiles .uk-choice:hover { background: var(--hover); }
.uk-tiles .uk-choice:has(input:checked) { padding: 15px; border: 2px solid var(--accent); background: var(--selected); }
.uk-tiles .uk-choice__text { font-weight: 700; }
.uk-tiles .uk-choice__desc { font-weight: 400; }

/* 文字数カウンタ（6.5・11.12） */
.uk-counter { margin-top: 8px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-counter.is-over { display: flex; gap: 8px; align-items: flex-start; font-weight: 700; color: var(--error); line-height: var(--lh-tight); }
.uk-counter.is-over .uk-icon { margin-top: 2.5px; }

/* パスワードの条件（11.1・4.2 の例外）：満たした＝墨のチェック、まだ＝薄墨の「・」 */
.uk-rules { margin-top: 4px; list-style: none; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-rules li { display: flex; align-items: center; gap: 6px; }
.uk-rules__mark { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; }
.uk-rules__mark svg { width: 16px; height: 16px; }
.uk-rules li.is-met { color: var(--ink); }

/* 同意の欄（7.4） */
.uk-consent { margin-top: var(--group-gap); }
.uk-consent__points { margin-top: 8px; padding-left: 1.25em; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-consent__points li + li { margin-top: 4px; }

/* ---------- 5. ボタン（7.1・11.8） ---------- */
.uk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--control-h); padding: 0 var(--button-pad); border-radius: var(--radius-md);
  font-size: var(--fs-body); font-weight: 700; line-height: var(--lh-tight); text-decoration: none; cursor: pointer;
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}
.uk-btn--primary { min-width: 120px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); }
.uk-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.uk-btn--primary:active { background: var(--accent-pressed); border-color: var(--accent-pressed); }
.uk-btn--secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-control); }
.uk-btn--secondary:hover { background: var(--hover); }
.uk-btn--s { min-height: 40px; padding: 0 16px; }
.uk-btn[aria-disabled="true"] { cursor: progress; }
.uk-btn--primary[aria-disabled="true"], .uk-btn--primary[aria-disabled="true"]:hover { background: var(--accent); border-color: var(--accent); }
.uk-btn:disabled, .uk-btn:disabled:hover { background: var(--disabled-bg); color: var(--ink-3); border: 1px solid var(--line); cursor: not-allowed; }
.uk-spinner {
  flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35);
  border-top-color: var(--on-accent); border-right-color: var(--on-accent); border-bottom-color: var(--on-accent);
  animation: uk-spin .9s linear infinite;
}
.uk-spinner--ink { border-color: rgb(75 83 99 / .25); border-top-color: var(--ink-2); border-right-color: var(--ink-2); border-bottom-color: var(--ink-2); }
@keyframes uk-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .uk-spinner { display: none; } }
/* テキストボタン：藍・400・下線（前のステップに戻る・変更する・外す・下書きを消す） */
.uk-textbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--accent); font-weight: 400; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* 主ボタンの並び（10.4）：列の左端。スマホは全幅、副ボタンは下 12px */
.uk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: var(--group-gap); }
.uk-consent + .uk-actions, .uk-before-send + .uk-actions, .uk-consent + .uk-before-send { margin-top: 24px; }
@media (min-width: 1024px) { [data-density="compact"] .uk-consent + .uk-actions { margin-top: 16px; } }
@media (max-width: 639px) {
  .uk-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .uk-actions .uk-btn { width: 100%; }
}
.uk-before-send { margin-top: var(--group-gap); font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }

/* 知らせ（11.13）：保存しました・変更はありません・下書きの保存 */
.uk-saved { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); font-weight: 700; line-height: var(--lh-tight); color: var(--done); }
.uk-nochange { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-status:empty { display: none; }
.uk-draft { margin-top: 12px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-draft:empty { display: none; }
.uk-draft-clear { margin-top: 8px; font-size: var(--fs-small); }
.uk-resume { margin-top: 32px; padding: 16px; background: var(--surface); border: 1px solid var(--line-control); border-radius: var(--radius-md); }
.uk-resume .uk-actions { margin-top: 16px; }
.uk-notice { margin-top: 24px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }

/* ---------- 6. エラーのまとめ（4.4・11.9） ---------- */
.uk-summary { margin-top: 24px; padding: 16px 20px; background: var(--error-bg); border: 2px solid var(--error); border-radius: var(--radius-md); }
.uk-summary h2 { display: flex; gap: 8px; align-items: center; margin: 0; font-size: var(--fs-h3); line-height: var(--lh-tight); color: var(--ink); }
.uk-summary h2 .uk-icon { width: var(--icon-m); height: var(--icon-m); color: var(--error); }
.uk-summary ul { margin-top: 8px; padding-left: 28px; color: var(--error); }
.uk-summary li { line-height: var(--lh-tight); }
.uk-summary li + li { margin-top: 4px; }
.uk-summary a { color: var(--error); font-weight: 400; }
.uk-summary__note { margin-top: 8px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }

/* ---------- 7. はじめに（5.1）・確認画面（5.5）・完了画面（5.6） ---------- */
.uk-overview { margin-top: 24px; border-top: 1px solid var(--line); }
.uk-overview > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.uk-overview dt { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-overview dd { margin: 0; }
@media (min-width: 768px) {
  .uk-overview > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}

.uk-review { margin-top: 24px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.uk-review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.uk-review__head h2 { font-size: var(--fs-h3); }
.uk-review__head a { flex: none; }
.uk-review dl { margin-top: 8px; }
.uk-review dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.uk-review dt { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .uk-review dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: baseline; }
}
.uk-empty { color: var(--ink-2); }
.uk-confirm-lead { margin-top: 8px; }

.uk-done-head { display: flex; align-items: center; gap: 12px; }
.uk-receipt {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 16px;
  margin-top: 24px; padding: 24px; background: var(--done-bg); border: 2px solid var(--done); border-radius: var(--radius-lg);
}
.uk-receipt__label { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-receipt__no {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--fs-receipt);
  font-weight: 700; line-height: 1.2; letter-spacing: .04em; white-space: nowrap; color: var(--ink);
}
.uk-done-body > * + * { margin-top: 16px; }
.uk-done-body h2 { margin-top: 32px; font-size: var(--fs-h3); }
.uk-flow { padding-left: 1.5em; }
.uk-flow li + li { margin-top: 8px; }
.uk-flow b { font-weight: 700; }

/* ---------- 8. 設定の画面（12.3）：幅 1040、左にメニュー 240、本体 760 まで ---------- */
.uk-settings { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 40px; max-width: 1040px; margin: 0 auto; }
.uk-menu h2 { font-size: var(--fs-small); font-weight: 700; line-height: 1.6; color: var(--ink-2); padding: 0 12px; }
.uk-menu ul { margin-top: 8px; list-style: none; }
.uk-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; }
.uk-menu a:hover { background: var(--hover); }
.uk-menu a[aria-current="page"] { background: var(--selected); font-weight: 700; }
@media (max-width: 1023px) {
  .uk-settings { grid-template-columns: minmax(0, 1fr); gap: 24px; max-width: 760px; }
  .uk-menu ul { display: flex; flex-wrap: wrap; gap: 4px 8px; }
}
.uk-settings__body { min-width: 0; }
.uk-panel { margin-top: 24px; padding: var(--sheet-pad); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.uk-panel > h2 { font-size: var(--fs-h3); }
.uk-panel > h2 + .uk-field, .uk-panel > h2 + p + .uk-field { margin-top: 16px; }
.uk-panel > h2 + p { margin-top: 4px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
@media (max-width: 639px) {
  .uk-panel { padding: 16px; }
}
.uk-danger { margin-top: var(--group-gap); padding-top: var(--group-gap); border-top: 1px solid var(--line); }
.uk-danger h2 { font-size: var(--fs-h3); }
.uk-danger p { margin-top: 8px; }
.uk-danger .uk-actions { margin-top: 16px; }
.uk-delete-list { margin-top: 8px; padding-left: 1.5em; }
.uk-delete-list li + li { margin-top: 4px; }

/* 詰め（10.5）：幅 1024px 以上だけ、ラベルを左 200px に置く2列 */
@media (min-width: 1024px) {
  [data-density="compact"] .uk-rows .uk-field { display: flow-root; }
  [data-density="compact"] .uk-rows .uk-field > .uk-label,
  [data-density="compact"] .uk-rows fieldset.uk-field > legend { float: left; width: 200px; }
  [data-density="compact"] .uk-rows .uk-field > :not(.uk-label):not(legend) { margin-left: 224px; }
  [data-density="compact"] .uk-rows .uk-field > .uk-label + *,
  [data-density="compact"] .uk-rows fieldset.uk-field > legend + * { margin-top: 0; }
  [data-density="compact"] .uk-rows .uk-field > .uk-label + .uk-input,
  [data-density="compact"] .uk-rows .uk-field > .uk-label + .uk-select { margin-top: 0; }
  [data-density="compact"] .uk-rows .uk-field > .uk-label:has(+ .uk-input),
  [data-density="compact"] .uk-rows .uk-field > .uk-label:has(+ .uk-select) { padding-top: 8px; }
  [data-density="compact"] .uk-rows fieldset.uk-field > legend + .uk-choice-list .uk-choice:first-child { padding-top: 0; }
  [data-density="compact"] .uk-rows .uk-help + .uk-error { margin-top: 4px; }
  [data-density="compact"] .uk-counter { margin-top: 4px; }
  [data-density="compact"] .uk-panel > h2 + .uk-field { margin-top: 16px; }
}

/* ---------- 9. サンプルの外枠（フォームのページの下に置く。フォームの途中にナビゲーションを置かないため） ---------- */
.uk-foot { border-top: 1px solid var(--line); background: var(--surface); }
.uk-foot__inner { max-width: 1104px; margin: 0 auto; padding: 32px var(--page-pad) 48px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.uk-foot__inner p + p { margin-top: 8px; }
.uk-foot nav ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin-top: 12px; }
.uk-foot nav a { display: inline-flex; align-items: center; min-height: 32px; }
.uk-foot nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
.uk-foot__label { font-family: var(--font-mono); letter-spacing: .04em; }

/* =========================================================
   10. 紹介のページ（トップ・部品カタログ・レイアウトカタログ）で共有する骨格
   フォームのページの部品には手を入れず、下に足すだけ。色・角丸・余白は上のトークンだけを使う。
   ========================================================= */
.uk-wrap { max-width: 1104px; margin: 0 auto; padding: 0 var(--page-pad); }
.uk-brand--product svg { color: var(--ink); }
.uk-site-nav { margin-left: auto; }
.uk-site-nav ul { display: flex; gap: 0 24px; list-style: none; font-size: var(--fs-small); }
.uk-site-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.uk-site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; text-decoration: none; }
@media (max-width: 767px) { .uk-site-nav { display: none; } }

.uk-eyebrow { font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.6; letter-spacing: .08em; color: var(--ink-2); }
.uk-sec { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 0; }
.uk-sec__head { max-width: 46em; margin-bottom: 32px; }
.uk-sec__head h2 { margin-top: 8px; }
.uk-sec__head > p:not(.uk-eyebrow) { margin-top: 12px; color: var(--ink-2); }
.uk-sub { margin: 48px 0 16px; font-size: var(--fs-h3); }
.uk-sub:first-child { margin-top: 0; }
.uk-card { min-width: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.uk-card > h3 + p { margin-top: 8px; }
.uk-tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; background: var(--surface);
  border: 1px solid var(--line-control); border-radius: var(--radius-sm);
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); white-space: nowrap;
}
.uk-grid-2, .uk-grid-3 { display: grid; gap: 24px; }
.uk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.uk-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .uk-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .uk-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.uk-bullets { padding-left: 1.25em; }
.uk-bullets li + li { margin-top: 4px; }
.uk-small { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
code, .uk-code { font-family: var(--font-mono); font-size: 1em; letter-spacing: 0; padding: 0 4px; background: var(--hover); border-radius: var(--radius-sm); }

/* フォームの図（紹介ページに置く、押せない見本）：入力欄の形をした div。状態はクラスで再現する */
.uk-demo { min-width: 0; }
.uk-mock { display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.uk-mock--ph { color: var(--ink-3); }
.uk-mock.is-error { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.uk-mock.is-focus { border-color: var(--accent); outline: var(--focus-ring); outline-offset: 2px; }
.uk-demo .uk-steps { margin: 0 0 24px; }
.uk-demo .uk-steps li { font-size: var(--fs-small); }

/* ---------- 11. トップ（index.html） ---------- */
.ix-hero { padding: 64px 0; }
.ix-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; align-items: center; }
.ix-hero h1 { margin-top: 12px; }
.ix-hero__lead { margin-top: 16px; }
.ix-hero__note { margin-top: 16px; }
.ix-hero .uk-actions { margin-top: 32px; }
.ix-hero__demo { padding: 24px; }
@media (max-width: 1023px) { .ix-hero__grid { grid-template-columns: minmax(0, 1fr); } .ix-hero__demo { max-width: 560px; } }
@media (max-width: 639px) {
  .ix-hero { padding: 32px 0 48px; }
  .ix-hero__demo.uk-sheet { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
}

.ix-manner__no { font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.ix-manner h3 { margin-top: 8px; }
.ix-manner > p:not(.ix-manner__no) { margin-top: 8px; }
.ix-manner .uk-bullets { margin-top: 12px; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.ix-sub-manners { margin-top: 24px; }

.ix-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 767px) { .ix-compare { grid-template-columns: minmax(0, 1fr); } }
.ix-ex { display: flex; flex-direction: column; gap: 12px; }
.ix-ex .uk-card { flex: 1; }
.ix-ex .uk-field { margin-top: 0; }
.ix-ex__bad { margin-top: 8px; font-size: var(--fs-small); line-height: var(--lh-tight); color: var(--ink); }
.ix-ex figcaption { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.ix-ex figcaption b { color: var(--ink); }
.ix-phrases { margin-top: 32px; border-top: 1px solid var(--line); }
.ix-phrases__row { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ix-phrases__row--head { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); }
.ix-phrases__kind { font-weight: 700; }
.ix-phrases__bad { color: var(--ink-2); }
.ix-phrases__row--head .ix-phrases__kind { font-weight: 400; }
@media (max-width: 767px) {
  .ix-phrases__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ix-phrases__row--head { display: none; }
  .ix-phrases__bad::before { content: "よくない例："; }
  .ix-phrases__good::before { content: "よい例："; color: var(--ink-2); }
}

.ix-form-card { display: flex; flex-direction: column; }
.ix-form-card .uk-eyebrow + h3 { margin-top: 4px; }
.ix-form-card dl { margin-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: 1.6; }
.ix-form-card dl > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ix-form-card dt { color: var(--ink-2); }
.ix-form-card dd { margin: 0; }
.ix-form-card .uk-actions { margin-top: auto; padding-top: 24px; }
@media (max-width: 639px) { .ix-form-card .uk-actions { flex-direction: row; } .ix-form-card .uk-actions .uk-btn { width: auto; } }

.ix-course h3 { font-size: var(--fs-h3); }
.ix-course dl { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; font-size: var(--fs-small); line-height: 1.6; }
.ix-course dl > div { display: flex; gap: 8px; }
.ix-course dt { color: var(--ink-2); }
.ix-course dd { margin: 0; }
.ix-course > p { margin-top: 12px; }
.ix-course__link { margin-top: 8px; }
.ix-course__link a { display: inline-flex; align-items: center; min-height: 44px; }
.ix-courses-note { margin-top: 24px; }

.ix-docs .uk-card h3 { font-size: var(--fs-h3); }
.ix-docs .uk-bullets { margin-top: 8px; }
.ix-res a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.ix-res p { margin-top: 4px; }
.ix-form-card .uk-num { white-space: nowrap; }
