/* =========================================================
   FA 設立10周年記念ユーザー会：共通スタイル
   コンセプト：コーポレートサイトの造形（角のある形・■見出し・赤い矢印タイル・
   ロゴのピクセル模様）を踏襲し、ピクセルで組んだ「10」で記念感を出す
   ========================================================= */
:root {
  --red: #A61C00;          /* コーポレートカラー：主要な文字・面 */
  --red-bright: #E52411;   /* 差し色：矢印タイル・■マーカー */
  --red-deep: #861600;
  --ink: #384554;          /* 基本の文字色 */
  --black: #000000;
  --gray: #666666;
  --gray-mid: #A0A0A0;
  --line: #D9D9D9;
  --warm: #FAEBEA;         /* 記念感のある淡い面 */
  --paper: #F5F5F5;
  --white: #FFFFFF;
  --ok: #10734f;
  --ok-soft: #e6f5ee;

  /* 旧トークン名との互換 */
  --navy: var(--ink); --navy-2: #2a343f; --blue: var(--red); --blue-hover: var(--red-deep); --blue-soft: var(--warm);
  --gold: var(--red); --gold-text: var(--red); --gold-soft: var(--warm); --bg: var(--white); --bg-2: var(--paper);
  --text: var(--ink); --muted: var(--gray); --danger: var(--red); --danger-soft: var(--warm);
  --brand: var(--red); --brand-soft: var(--warm); --brand-line: #EBC9C3;

  --font: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --latin: "Inter", "Zen Kaku Gothic New", system-ui, sans-serif;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --focus: 0 0 0 2px var(--white), 0 0 0 4px var(--red-bright);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.85; font-size: 15px; letter-spacing: .04em; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.45; margin: 0 0 .5em; color: var(--black); letter-spacing: .08em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.45rem, 5.2vw, 2.1rem); color: var(--red); }
h2 { font-size: clamp(1.1rem, 3.8vw, 1.35rem); }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
a { color: var(--red); }
.en { font-family: var(--latin); letter-spacing: .06em; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); }
[tabindex="-1"]:focus-visible { box-shadow: none; }
.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; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--red); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- ヘッダー / フッター ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .inner { max-width: 1040px; margin: 0 auto; padding: 0 0 0 16px; display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; padding: 10px 0; }
.brand-logo { display: block; height: 24px; width: auto; }
.brand-name { font-family: var(--latin); font-weight: 800; color: var(--red); letter-spacing: .04em; }
.brand.has-logo .brand-name { display: none; }
.brand-sub { font-family: var(--latin); font-size: .62rem; font-weight: 700; letter-spacing: .18em; color: var(--gray); text-transform: uppercase; line-height: 1.3; border-left: 1px solid var(--line); padding-left: 12px; }
.segment-chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px;
  border: 0; border-left: 1px solid var(--line); background: var(--white); color: var(--ink);
  font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer;
}
.segment-chip .label { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.segment-chip .change { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding: 0 8px; background: var(--ink); color: #fff; font-size: .72rem; letter-spacing: .1em; }
.segment-chip:hover .change { background: var(--red); }

.site-footer { margin-top: 72px; background: var(--ink); color: var(--line); }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 20px 16px; font-size: .75rem; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; }
.site-footer a { color: var(--white); display: inline-flex; min-height: 44px; align-items: center; }

/* ---------- レイアウト ---------- */
main { display: block; }
.container { max-width: 720px; margin: 0 auto; padding: 36px 16px 24px; }
.container.wide { max-width: 1040px; }
.view-enter { animation: viewIn .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--latin); font-size: .72rem; letter-spacing: .22em; font-weight: 700; color: var(--red); text-transform: uppercase; margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--red-bright); flex: none; }
.lead { color: var(--ink); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; align-items: center; }
.muted { color: var(--gray); }
.small { font-size: .82rem; }

/* ---------- カード ---------- */
.card { position: relative; background: var(--white); border: 1px solid var(--line); padding: 24px 20px; }
.card + .card { margin-top: 16px; }
.card.soft { background: var(--paper); }

/* ---------- ボタン（コーポレートサイトの矢印タイルを踏襲） ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 24px; border: 1px solid transparent; border-radius: 0;
  font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: .12em;
  cursor: pointer; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--black); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--red); }
.btn-danger { background: var(--white); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { min-height: 44px; padding: 6px 16px; font-size: .82rem; letter-spacing: .08em; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; }
/* 矢印：ボタン右端の四角いタイル */
.btn .arrow { display: inline-block; position: relative; width: 14px; height: 10px; flex: none; }
.btn .arrow::before { content: ""; position: absolute; left: 0; right: 1px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn .arrow.back { transform: scaleX(-1); }
.btn-primary:has(> .arrow:not(.back)) { padding-right: 76px; }
.btn-primary > .arrow:not(.back) { position: absolute; right: 0; top: 0; bottom: 0; width: 56px; height: auto; background: var(--red-bright); transition: width .25s var(--ease); }
.btn-primary > .arrow:not(.back)::before { left: 20px; right: 21px; }
.btn-primary > .arrow:not(.back)::after { right: 20px; }
.btn-primary:hover > .arrow:not(.back) { width: 64px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.actions .btn { flex: 1 1 200px; }
/* テキストリンク型（■→ ラベル） */
.link-arrow { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; color: var(--black); font-weight: 700; text-decoration: none; letter-spacing: .1em; }
.link-arrow .tile { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--red-bright); color: #fff; }
.link-arrow:hover { color: var(--red); }

/* ---------- フォーム ---------- */
.field { margin-bottom: 24px; }
.field > label, .field > .label, fieldset > legend { display: block; font-weight: 700; color: var(--black); margin-bottom: 8px; font-size: .92rem; letter-spacing: .08em; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.req, .opt { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 8px; margin-left: 10px; vertical-align: 2px; letter-spacing: .1em; }
.req { background: var(--red); color: #fff; }
.opt { background: var(--white); color: var(--gray); border: 1px solid var(--line); }
textarea, input[type="text"], input[type="email"], input[type="password"], select {
  width: 100%; font: inherit; color: var(--ink); letter-spacing: .04em;
  border: 1px solid #BDBDBD; border-radius: 0; padding: 12px 14px; background: var(--white); min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 160px; line-height: 1.8; }
textarea:focus, input:focus, select:focus { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
[aria-invalid="true"] { border-color: var(--red-bright) !important; background: #FFF8F7; }
::placeholder { color: #9AA1A9; }
.counter { display: flex; justify-content: flex-end; font-family: var(--latin); font-size: .78rem; color: var(--gray); margin-top: 6px; }
.counter.warn { color: var(--red); font-weight: 700; }
.error { color: var(--red-bright); font-size: .82rem; margin-top: 6px; font-weight: 700; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--warm); color: var(--ink); padding: 12px 14px; font-size: .82rem; line-height: 1.7; margin-bottom: 22px; border-left: 3px solid var(--red-bright); }
.notice::before { content: "!"; flex: none; width: 18px; height: 18px; background: var(--red-bright); color: #fff; font-family: var(--latin); font-weight: 800; font-size: .7rem; display: grid; place-items: center; margin-top: 2px; }
.notice.info { background: var(--paper); border-left-color: var(--ink); }
.notice.info::before { content: "i"; background: var(--ink); }

/* 選択肢タイル */
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: 1fr; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice .tile { display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 16px; border: 1px solid #BDBDBD; background: var(--white); transition: border-color .15s, background-color .15s, box-shadow .15s; font-weight: 700; }
.choice .dot { flex: none; width: 20px; height: 20px; border: 2px solid var(--gray-mid); display: grid; place-items: center; }
.choice .dot::after { content: ""; width: 10px; height: 10px; background: var(--red); transform: scale(0); transition: transform .18s var(--ease); }
.choice .key { flex: none; width: 32px; height: 32px; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-family: var(--latin); font-weight: 800; font-size: .85rem; transition: background-color .15s, color .15s; }
.choice:hover .tile { border-color: var(--ink); }
.choice input:checked + .tile { border-color: var(--red); background: var(--warm); box-shadow: inset 0 0 0 1px var(--red); }
.choice input:checked + .tile .dot { border-color: var(--red); }
.choice input:checked + .tile .dot::after { transform: scale(1); }
.choice input:checked + .tile .key { background: var(--red); color: #fff; }
.choice input:focus-visible + .tile { box-shadow: var(--focus); }

/* ---------- ピクセル装飾 ---------- */
.pxmark { display: block; width: 100%; height: auto; overflow: visible; }
/* ピクセル色：R=コーポレートレッド B=差し色 G=グレー L=ライトグレー W=白 */
.pR { fill: #A61C00; } .pB { fill: #E52411; } .pG { fill: #A0A0A0; } .pL { fill: #D9D9D9; } .pW { fill: #FFFFFF; }
.pxmark rect { transform-box: fill-box; transform-origin: center; }
.pxmark.animate rect { animation: pxIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms + 120ms); }
@keyframes pxIn { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.px-deco { position: absolute; pointer-events: none; z-index: 0; }
.px-deco svg { display: block; width: 100%; height: auto; }
.chara { display: block; height: auto; pointer-events: none; user-select: none; }
.bob { animation: bob 3.2s ease-in-out infinite alternate; }
.bob.slow { animation-duration: 4.2s; animation-delay: -1.2s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------- ウェルカム ---------- */
.hero-wrap { position: relative; background: var(--warm); overflow: hidden; isolation: isolate; }
.hero-wrap .px-deco.tl { left: 0; top: 0; width: 64px; }
.hero-wrap .px-deco.br { right: 0; bottom: 0; width: 160px; }
.hero { position: relative; z-index: 1; max-width: 1040px; margin: 0 auto; padding: 36px 16px 44px; display: grid; gap: 28px; align-items: center; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--latin); font-weight: 700; font-size: .72rem; letter-spacing: .2em; color: var(--ink); text-transform: uppercase; }
.hero-kicker .jp { font-family: var(--font); letter-spacing: .1em; text-transform: none; font-size: .8rem; line-height: 1.7; }
.hero-kicker .sep { width: 24px; height: 1px; background: var(--ink); }
.hero-visual { position: relative; padding: 8px 0 0; }
.hero-visual .pxmark { max-width: 420px; width: 74%; }
.hero-anniv { display: flex; align-items: baseline; gap: 14px; margin-top: 14px; font-family: var(--latin); color: var(--red); }
.hero-anniv .th { font-size: 1.05rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-anniv .years { font-size: .78rem; font-weight: 700; color: var(--ink); letter-spacing: .2em; }
.hero-chara { position: absolute; width: 92px; }
.hero-chara.a { right: -6px; top: -14px; }
.hero-chara.b { display: none; }
.hero h1 { font-size: clamp(1.6rem, 6.4vw, 2.6rem); line-height: 1.5; letter-spacing: .1em; margin-bottom: 18px; }
.hero h1 .accent { color: var(--black); }
.hero .lead { max-width: 30em; }
.hero .meta { font-size: .8rem; color: var(--gray); margin-top: 14px; }
.hero .btn { min-width: min(100%, 300px); }

.contents-strip { max-width: 1040px; margin: 0 auto; padding: 36px 16px 0; }
.contents-strip ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.contents-strip li { display: grid; grid-template-columns: 2.6em 1fr; column-gap: 8px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); font-weight: 700; letter-spacing: .08em; }
.contents-strip li .num { font-family: var(--latin); font-weight: 800; color: var(--red); font-size: .8rem; letter-spacing: .1em; }
.contents-strip li .desc { grid-column: 2; font-weight: 500; font-size: .8rem; color: var(--gray); }

/* ---------- ページ見出し ---------- */
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.page-head .text { min-width: 0; }
.page-head h1 { margin-bottom: 6px; }
.page-head .lead { margin: 0; font-size: .9rem; }
.page-head .chara { width: 84px; flex: none; margin-bottom: -21px; }

/* ---------- コンテンツ選択 ---------- */
.menu-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.menu-card { padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); transition: border-color .2s; }
.menu-card:hover { border-color: var(--ink); }
.menu-card .visual { position: relative; height: 150px; background: var(--warm); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.menu-card .visual .chara { height: 136px; width: auto; transition: transform .4s var(--ease); }
.menu-card:hover .visual .chara { transform: translateY(-6px); }
.menu-card .visual .px-deco { right: 0; top: 0; width: 64px; }
.menu-card .visual .tag { position: absolute; left: 0; top: 0; background: var(--red); color: #fff; font-family: var(--latin); font-weight: 800; font-size: .7rem; letter-spacing: .18em; padding: 6px 12px; }
.menu-card .body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.menu-card h2 { margin: 0; font-size: 1.12rem; color: var(--black); }
.menu-card p { color: var(--ink); margin: 0; font-size: .88rem; }
.menu-card .btn { margin-top: auto; align-self: stretch; }
.menu-card .head { display: none; }
.menu-card.closed .visual { filter: grayscale(1); opacity: .6; }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: 2px 10px; background: var(--paper); color: var(--gray); border: 1px solid var(--line); letter-spacing: .06em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: #bfe3d2; }
.badge.warn { background: var(--warm); color: var(--red); border-color: #EBC9C3; }
.badge.off { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.blue { background: var(--warm); color: var(--red); border-color: #EBC9C3; }
.icon { display: none; }

/* ---------- 完了画面 ---------- */
.complete { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 40px 20px 32px; background: var(--white); }
.complete > *:not(.px-deco) { position: relative; z-index: 1; }
.complete .px-deco { z-index: 0; }
.complete .px-deco.tl { left: 0; top: 0; width: 96px; }
.complete .px-deco.br { right: 0; bottom: 0; width: 120px; }
.complete .stamp { display: inline-flex; align-items: center; gap: 8px; font-family: var(--latin); font-weight: 800; color: var(--red); letter-spacing: .24em; font-size: .72rem; margin-bottom: 8px; }
.thanks-chara { width: 120px; margin: 0 auto 12px; }
.check { width: 72px; height: 72px; margin: 0 auto 18px; position: relative; background: var(--red); animation: pop .45s var(--ease) both; }
.check::after { content: ""; position: absolute; left: 26px; top: 16px; width: 16px; height: 30px; border-right: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(45deg); }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- 確認リスト ---------- */
.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.confirm-list dt { font-size: .76rem; color: var(--gray); font-weight: 700; margin-bottom: 4px; letter-spacing: .1em; }
.confirm-list dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- 検定 ---------- */
.progress-wrap { margin-bottom: 20px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--gray); margin-bottom: 8px; }
.progress-label strong { color: var(--red); font-size: 1rem; letter-spacing: .1em; }
.progress { height: 6px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); transition: width .45s var(--ease); }
.q-topic { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--red); letter-spacing: .14em; margin-bottom: 6px; }
.q-topic::before { content: ""; width: 8px; height: 8px; background: var(--red-bright); }
.q-items { list-style: none; padding: 14px 16px; margin: 0 0 18px; background: var(--paper); display: grid; gap: 6px; }
.q-items li { display: flex; gap: 10px; align-items: baseline; }
.q-items b { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; background: var(--ink); color: #fff; font-family: var(--latin); font-size: .75rem; }
.quiz-intro { text-align: center; padding: 32px 20px; overflow: hidden; }
.quiz-intro .pxmark { max-width: 220px; margin: 0 auto 20px; }

.certificate { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 40px 20px 28px; background: var(--white); border: 1px solid var(--red); box-shadow: inset 0 0 0 6px var(--white), inset 0 0 0 7px var(--red); }
.certificate > *:not(.px-deco) { position: relative; z-index: 1; }
.certificate .px-deco { z-index: 0; }
.certificate .px-deco.tl { left: 0; top: 0; width: 90px; }
.certificate .px-deco.br { right: 0; bottom: 0; width: 110px; }
.certificate .pxmark { width: 92px; margin: 0 auto 14px; }
.certificate .cert-label { font-family: var(--latin); font-size: .72rem; letter-spacing: .36em; color: var(--red); font-weight: 800; margin: 0; }
.certificate .grade { font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 900; color: var(--red); margin: 10px 0 2px; letter-spacing: .08em; }
.certificate .score { font-size: 1rem; color: var(--ink); margin: 0; }
.certificate .score strong { font-family: var(--latin); font-size: 2.6rem; color: var(--black); margin-right: 4px; letter-spacing: 0; }
.certificate .gold-rule { width: 40px; height: 2px; background: var(--red-bright); border: 0; margin: 16px auto; }
.result-chara { width: 110px; margin: 18px auto 0; }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.review > li { border-bottom: 1px solid var(--line); padding: 18px 0; }
.review .mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .82rem; letter-spacing: .1em; }
.review .mark.ok { color: var(--ok); }
.review .mark.ng { color: var(--red-bright); }
.review .mark i { width: 22px; height: 22px; display: inline-grid; place-items: center; font-style: normal; color: #fff; font-size: .75rem; }
.review .mark.ok i { background: var(--ok); }
.review .mark.ng i { background: var(--red-bright); }
.review .qtext { font-weight: 700; color: var(--black); margin: 6px 0; }
.review .ans { font-size: .86rem; margin: 2px 0; }
.review .exp { font-size: .86rem; color: var(--ink); background: var(--paper); padding: 10px 12px; margin-top: 10px; }
.gold-rule { width: 40px; height: 2px; background: var(--red-bright); border: 0; margin: 16px 0; }

/* 旧ウェルカム用（会場表示の空状態で使用） */
.anniv { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }

/* ---------- レスポンシブ ---------- */
@media (min-width: 640px) {
  .container { padding: 52px 24px 32px; }
  .card { padding: 32px; }
  .choices.two { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 24px 64px; }
  .contents-strip { padding: 48px 24px 0; }
  .contents-strip ol { grid-template-columns: repeat(3, 1fr); border-top: 0; gap: 0 24px; }
  .contents-strip li { border-top: 2px solid var(--ink); border-bottom: 0; }
  .hero-chara.b { display: block; right: 0; bottom: -54px; width: 84px; }
  .hero-wrap .px-deco.tl { width: 120px; }
  .page-head .chara { width: 104px; }
  .site-header .inner { padding-left: 24px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-visual { order: 2; }
  .hero-chara { width: 124px; }
  .hero-chara.a { right: 0; top: -40px; }
  .hero-chara.b { right: 4%; bottom: -70px; width: 104px; }
  .hero-visual .pxmark { width: 100%; }
  .hero-wrap .px-deco.br { width: 220px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .segment-chip .label { max-width: 5.5em; }
  .brand-sub { display: none; }
  .hero-chara { width: 80px; }
  .hero-chara.b { width: 66px; right: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ピクセル装飾の既定位置 */
.px-deco.tl { left: 0; top: 0; width: 84px; }
.px-deco.br { right: 0; bottom: 0; width: 100px; }
.px-deco.tr { right: 0; top: 0; width: 64px; }
.px-deco.bl { left: 0; bottom: 0; width: 84px; }
.quiz-intro > *:not(.px-deco) { position: relative; z-index: 1; }
.quiz-intro h1 { margin-top: 4px; }
.quiz-intro { padding-bottom: 64px; }
.complete { padding-bottom: 72px; }

/* =========================================================
   文字組みの調整：文節単位で改行し、行末のばらつきを抑える
   ========================================================= */
.wb { display: inline-block; }
h1, h2, h3, legend, label, .grade, .lead, .hero-kicker, .choice .tile, .menu-card p, .contents-strip li, .notice, .btn, .q-items li, .review .qtext { word-break: auto-phrase; }
h1, h2, h3, legend, .grade { text-wrap: balance; }
p, .lead, dd, li, .notice { text-wrap: pretty; line-break: strict; }
.btn { text-wrap: balance; text-align: center; line-height: 1.5; }
.hero h1 { letter-spacing: .06em; }
h1 { letter-spacing: .06em; }
.contents-strip li .ttl { letter-spacing: .06em; }
.lead { line-height: 1.9; }
.complete .lead, .complete p.muted, .certificate .cert-msg { margin-left: auto; margin-right: auto; max-width: 30em; }
.page-head .lead, .container > .lead { max-width: 36em; }
.choice .tile > span:last-child { min-width: 0; line-height: 1.6; }
.menu-card h2 { line-height: 1.5; }
.q-topic { margin-bottom: 8px; }
.card > h1 + .lead { margin-top: 2px; }
@media (max-width: 639px) {
  .hero-kicker .sep { display: none; }
  .hero-kicker .jp { width: 100%; }
}
body { word-break: auto-phrase; }
.q-items.compact { padding: 10px 12px; margin: 8px 0; font-size: .84rem; gap: 4px; }
.q-items.compact b { width: 20px; height: 20px; font-size: .68rem; }

/* =========================================================
   PC レイアウト
   ========================================================= */
.side-chara { display: none; }
.review-title { margin-top: 40px; }
.menu-card .btn { letter-spacing: .06em; padding-left: 18px; white-space: nowrap; }
@media (min-width: 960px) {
  .container { padding-top: 64px; }
  /* 2カラム：左に見出し（スクロールしても残る）、右に入力 */
  .container.split { max-width: 1080px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 72px; align-items: start; }
  .split-left { position: sticky; top: 100px; }
  .split-left h1 { font-size: 2rem; line-height: 1.5; }
  .split-left .lead { font-size: .95rem; }
  .split-right > .card:first-child { margin-top: 0; }
  .split-right > .card { padding: 40px; }
  .side-chara { display: block; width: 150px; margin-top: 36px; }
  .review-title { margin-top: 0; }
  .split-left .certificate + .actions { margin-top: 20px; }
  /* 検定：選択肢を2列に */
  .container.quiz { max-width: 960px; }
  .container.quiz .card { padding: 40px 48px; }
  .container.quiz .choices { grid-template-columns: 1fr 1fr; }
  .container.quiz h1 { font-size: 1.5rem !important; }
  /* 完了・導入カードを広めに */
  .complete, .quiz-intro { padding: 56px 48px 80px; }
  .container > .card.complete, .container > .card.quiz-intro { max-width: 760px; margin-left: auto; margin-right: auto; }
  .contents-strip li { padding-top: 20px; }
  .page-head { margin-bottom: 32px; }
}
.purpose-list { margin: 0; padding-left: 1.2em; }
.purpose-list li { margin: 2px 0; }
/* 上部ラベル：会社名とイベント名を2段に */
.hero-kicker { gap: 4px 14px; }
.hero-kicker .sep { display: none; }
.hero-kicker .jp { width: 100%; color: var(--ink); }

/* ---------- ウェルカム：説明文（行ごとに区切る） ---------- */
.hero-lead { line-height: 2; }
.hero-lead .line { display: block; }
.hero-lead .line + .line { margin-top: 2px; }

/* ---------- ウェルカム：3つの体験コンテンツ ---------- */
.contents-showcase { max-width: 1040px; margin: 0 auto; padding: 48px 16px 8px; }
.showcase-head { margin-bottom: 20px; }
.showcase-head h2 { margin: 0; font-size: clamp(1.3rem, 4.6vw, 1.75rem); color: var(--black); letter-spacing: .08em; }
.showcase-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.showcase-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 140px; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s; }
.showcase-card:hover { border-color: var(--ink); }
.showcase-card:focus-visible { box-shadow: var(--focus); }
.sc-visual { position: relative; overflow: hidden; background: var(--warm); display: flex; align-items: flex-end; justify-content: center; }
.sc-visual .chara { height: 100px; width: auto; transition: transform .35s var(--ease); position: relative; z-index: 1; }
.showcase-card:hover .sc-visual .chara { transform: translateY(-6px); }
.sc-num { position: absolute; left: 8px; top: 6px; z-index: 2; font-family: var(--latin); font-weight: 800; font-size: 1.35rem; line-height: 1; color: var(--red); letter-spacing: 0; }
.sc-visual .px-deco.sc-deco { right: 0; top: 0; width: 36px; }
.sc-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px 16px; min-width: 0; }
.sc-tag { font-family: var(--latin); font-size: .62rem; font-weight: 800; letter-spacing: .22em; color: var(--red); }
.sc-title { font-size: 1.02rem; font-weight: 700; line-height: 1.5; color: var(--black); letter-spacing: .06em; }
.sc-desc { font-size: .8rem; line-height: 1.65; color: var(--gray); }
.sc-meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .74rem; font-weight: 700; color: var(--ink); }
.sc-arrow { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; background: var(--red-bright); color: #fff; font-family: var(--latin); transition: width .25s var(--ease); }
.showcase-card:hover .sc-arrow { width: 40px; }
@media (min-width: 900px) {
  .contents-showcase { padding: 72px 24px 8px; }
  .showcase-head { display: flex; align-items: baseline; gap: 24px; margin-bottom: 28px; }
  .showcase-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .showcase-card { grid-template-columns: 1fr; grid-template-rows: 190px auto; }
  .sc-visual .chara { height: 168px; }
  .sc-num { left: 14px; top: 12px; font-size: 2rem; }
  .sc-visual .px-deco.sc-deco { width: 64px; }
  .sc-body { padding: 20px 22px 18px; gap: 6px; }
  .sc-title { font-size: 1.18rem; }
  .sc-desc { font-size: .85rem; }
}
/* 上部ラベル（イベント名）を大きく */
.hero-kicker .jp { font-size: 1rem; font-weight: 700; letter-spacing: .08em; line-height: 1.7; color: var(--black); }
@media (min-width: 900px) { .hero-kicker .jp { font-size: 1.12rem; } }

/* ---------- ウェルカム：今日だけの、3つの体験 ---------- */
.experience { background: var(--paper); margin-top: 0; padding: 48px 16px 56px; }
.exp-inner { max-width: 1040px; margin: 0 auto; }
.exp-title { margin: 0 0 24px; text-align: center; font-size: clamp(1.35rem, 5vw, 1.9rem); color: var(--black); letter-spacing: .1em; }
.exp-title .q { color: var(--red-bright); font-family: Georgia, "Times New Roman", serif; font-size: 1.8em; line-height: 0; vertical-align: -.32em; margin-right: .12em; }
.exp-panel { list-style: none; margin: 0; padding: 0; background: var(--white); display: grid; grid-template-columns: 1fr; }
.exp-panel > li + li { border-top: 1px solid var(--line); }
.exp-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; padding: 22px 18px; color: inherit; text-decoration: none; height: 100%; transition: background-color .2s; }
.exp-item:hover { background: #FFFBFA; }
.exp-item:focus-visible { box-shadow: inset 0 0 0 2px var(--red-bright); }
.exp-icon { width: 76px; height: 76px; background: var(--warm); display: grid; place-items: center; transition: transform .3s var(--ease); }
.exp-icon .px-icon { width: 52px; height: 52px; }
.exp-item:hover .exp-icon { transform: translateY(-4px) rotate(-3deg); }
.exp-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.exp-tag { display: flex; align-items: center; gap: 8px; font-family: var(--latin); font-size: .64rem; font-weight: 800; letter-spacing: .22em; color: var(--red); }
.exp-tag b { font-size: .95rem; letter-spacing: .04em; }
.exp-name { font-size: 1.12rem; font-weight: 700; color: var(--black); letter-spacing: .06em; line-height: 1.5; }
.exp-catch { font-size: .95rem; font-weight: 700; color: var(--red); line-height: 1.6; margin-top: 2px; }
.exp-desc { font-size: .82rem; color: var(--ink); line-height: 1.7; }
.exp-cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; font-weight: 700; font-size: .86rem; letter-spacing: .1em; color: var(--black); }
.exp-cta .tile { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--red-bright); color: #fff; font-family: var(--latin); transition: width .25s var(--ease); }
.exp-item:hover .exp-cta .tile { width: 46px; }
.exp-item:hover .exp-cta { color: var(--red); }
@media (min-width: 900px) {
  .experience { padding: 80px 24px 88px; }
  .exp-title { margin-bottom: 36px; }
  .exp-panel { grid-template-columns: repeat(3, 1fr); padding: 36px 0; }
  .exp-panel > li + li { border-top: 0; border-left: 1px solid var(--line); }
  .exp-item { grid-template-columns: 1fr; row-gap: 18px; padding: 8px 32px; }
  .exp-icon { width: 104px; height: 104px; }
  .exp-icon .px-icon { width: 68px; height: 68px; }
  .exp-name { font-size: 1.25rem; }
  .exp-catch { font-size: 1rem; }
  .exp-cta { margin-top: auto; padding-top: 14px; }
  .exp-body { height: 100%; }
}
.site-footer { margin-top: 0; }
.hero .lead.hero-lead { max-width: none; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .hero-lead { font-size: .95rem; }
  .exp-item { grid-template-rows: auto 1fr; align-content: start; }
}
@media (min-width: 900px) { .hero-chara.b { right: -2%; bottom: -96px; } .hero-chara.a { right: -2%; } }
.field-hint { margin: 6px 0 0; font-size: .78rem; color: var(--gray); line-height: 1.6; }
.notice .line { display: block; }
/* コンテンツ選択：カードの文言をウェルカム画面とそろえる */
.page-head .lead .line { display: block; }
.menu-card .mc-catch { font-size: .95rem; font-weight: 700; color: var(--red); line-height: 1.6; margin: 2px 0 0; }
.menu-card .mc-desc { font-size: .84rem; color: var(--ink); line-height: 1.7; margin: 0; }
.menu-grid > .card + .card { margin-top: 0; }
.card.menu-card { padding: 0; }
@media (min-width: 900px) { .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* みんなのメッセージへのリンク */
.board-link { margin: 24px 0 0; text-align: center; }
.complete .board-link { margin-top: 20px; }
.split-right > .board-link { text-align: left; }
#msg-text::placeholder { line-height: 1.9; }
#msg-text { min-height: 230px; } @media (min-width: 640px) { #msg-text { min-height: 190px; } }

/* ---------- 完了画面：次はこちらもどうぞ ---------- */
.next-contents { margin-top: 40px; }
.next-contents h2 { margin: 0 0 16px; font-size: clamp(1.15rem, 4.4vw, 1.4rem); color: var(--black); }
.next-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.next-card { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: stretch; background: var(--white); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .2s; min-height: 112px; }
.next-card:hover { border-color: var(--ink); }
.next-card:focus-visible { box-shadow: var(--focus); }
.nc-visual { background: var(--warm); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.nc-visual .chara { height: 92px; width: auto; transition: transform .3s var(--ease); }
.next-card:hover .nc-visual .chara { transform: translateY(-4px); }
.nc-body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 12px 12px 16px; min-width: 0; }
.nc-tag { font-family: var(--latin); font-size: .62rem; font-weight: 800; letter-spacing: .22em; color: var(--red); }
.nc-title { font-weight: 700; font-size: .98rem; color: var(--black); line-height: 1.5; letter-spacing: .04em; }
.nc-catch { font-size: .8rem; color: var(--red); font-weight: 700; line-height: 1.6; }
.nc-arrow { display: grid; place-items: center; width: 44px; background: var(--red-bright); color: #fff; font-family: var(--latin); transition: width .25s var(--ease); }
.next-card:hover .nc-arrow { width: 52px; }
.next-back { margin: 16px 0 0; text-align: center; font-size: .85rem; }
.next-back a { color: var(--ink); }
@media (min-width: 640px) {
  .next-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}
.next-list > li { display: flex; } .next-list .next-card { flex: 1; }
#req-detail { min-height: 200px; } #req-scene { min-height: 150px; }
.complete .lead .line { display: block; }

/* ---------- FA検定：導入画面 ---------- */
.qi-mark { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 0 auto 18px; }
.qi-mark .pxmark { width: 150px; max-width: none; margin: 0; }
.qi-chara { width: 110px; margin-bottom: -6px; }
.qi-catch { color: var(--red); font-weight: 700; }
.quiz-intro .lead .line { display: block; }
.qi-rules { text-align: left; max-width: 440px; margin: 20px auto; }
.qi-grades { margin: 8px auto 28px; max-width: 640px; }
.qi-grades h2 { font-size: 1.02rem; margin: 0 0 12px; color: var(--black); }
.grade-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grade-item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 12px; background: var(--white); border: 1px solid var(--line); }
.grade-item.top { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); background: #FFFBFA; }
.gi-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--warm); margin-bottom: 4px; }
.gi-icon .px-grade { width: 38px; height: auto; }
.gi-name { font-weight: 700; font-size: .86rem; color: var(--black); line-height: 1.45; text-align: center; }
.grade-item.top .gi-name { color: var(--red); }
.gi-cond { font-size: .74rem; color: var(--gray); }
.cert-grade-icon { width: 72px; height: 72px; margin: 14px auto 0; display: grid; place-items: center; background: var(--warm); }
.cert-grade-icon .px-grade { width: 46px; height: auto; }
@media (min-width: 640px) { .grade-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .qi-mark .pxmark { width: 180px; } .qi-chara { width: 140px; } }

/* ---------- FA検定：長い選択肢・正解発表 ---------- */
.container.quiz .choices.long { grid-template-columns: 1fr; }
.choice .tile .opt-seq { min-width: 0; line-height: 1.6; }
.opt-seq .wb { white-space: nowrap; margin-right: .3em; }
.opt-lines { display: grid; gap: 6px; min-width: 0; flex: 1; }
.opt-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; }
.opt-label { font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: var(--gray); background: var(--paper); padding: 2px 8px; white-space: nowrap; }
.opt-body { font-size: .95rem; line-height: 1.55; }
.choice input:checked + .tile .opt-label { background: #fff; color: var(--red); }
.review .ans { display: flex; gap: 10px; align-items: baseline; font-size: .86rem; margin: 4px 0; line-height: 1.6; }
.review .ans-label { flex: none; min-width: 6.5em; font-size: .74rem; font-weight: 700; color: var(--gray); }
.review .ans-body { min-width: 0; overflow-wrap: anywhere; }
.review .ans-correct .ans-label, .review .ans-correct .ans-body { color: var(--red); font-weight: 700; }
.choice .tile { min-width: 0; }
.opt-line > * { min-width: 0; }
@media (max-width: 599px) {
  .opt-lines { gap: 10px; }
  .opt-line { grid-template-columns: 1fr; gap: 3px; }
  .opt-label { justify-self: start; }
  .opt-body { font-size: .92rem; }
}

/* ---------- FA検定：結果画面 ---------- */
.cert-name { margin: 14px 0 0; font-weight: 700; color: var(--black); font-size: 1.05rem; }
.cert-name small { font-size: .8rem; margin-left: .4em; font-weight: 500; }
.cert-rank { margin: 10px auto 0; display: inline-block; padding: 6px 14px; background: var(--warm); font-size: .84rem; font-weight: 700; color: var(--ink); }
.cert-rank strong { color: var(--red); font-size: 1.05rem; margin-left: .2em; font-family: var(--latin); }
.cert-next { margin: 14px auto 0; font-weight: 700; color: var(--red); font-size: .92rem; }
.cert-shot { text-align: center; font-size: .82rem; color: var(--gray); margin: 12px 0 0; }
.cert-note { text-align: center; margin: 8px 0 0; }
.rv-hint { margin: -4px 0 12px; }
.review > li { padding: 0; }
.review details.rv > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 0; align-items: center; }
.review details.rv > summary::-webkit-details-marker { display: none; }
.review details.rv > summary .mark { grid-column: 1; }
.review details.rv > summary .qtext { grid-column: 1; margin: 0; display: block; }
.review .rv-toggle { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; border: 1px solid var(--line); position: relative; }
.review .rv-toggle::before, .review .rv-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.review .rv-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.review details[open] .rv-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.review details.rv > summary:focus-visible { outline: none; box-shadow: var(--focus); }
.review .rv-body { padding: 0 0 18px; }
.container .next-contents { margin-top: 32px; }
.review ~ .next-contents .next-list { grid-template-columns: 1fr; }
