/* 個別指導 コノハズク学習室（デモ）申し込みフォームの直す前と直した後 */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・実際のお仕事では）は、これまでの LP のデモと同じクラス名と作り */
:root {
  --c-base: #F4F5F1;
  --c-surface: #FFFFFF;
  --c-soft: #E8EBF3;
  --c-main: #27305A;
  --c-accent: #F2C230;
  --c-accent-hover: #F7D360;
  --c-text: #1E2230;
  --c-sub: #5A5F70;
  --c-line: #D5D9E3;
  --c-error: #9E2B2B;
  --c-error-soft: #FBEDEC;
  --c-dull: #E2E5EC;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;
  --font-head: var(--font-body);

  --pad-x: 16px;
  --gap-sec: 64px;
  --pad-card: 16px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  /* 日本語の文を語のまとまりで折り返す（対応しない端末はふつうの折り返し） */
  word-break: auto-phrase;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure, fieldset { margin: 0; }
fieldset { min-width: 0; padding: 0; border: 0; }
legend { padding: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }
.sec__title, .hero h1, .lab-title, .good__title { scroll-margin-top: 24px; }
p, li, dd { text-wrap: pretty; }
.inline-link { padding: 15px 0; font-weight: 700; }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back {
  flex: none; position: relative; color: #FFFFFF; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 768px) { .tl-bar { padding: 8px 32px; } }

/* ---------- ボタン ---------- */
/* 行動ボタン：金の面に墨の文字と紺の枠（金と白・ノートの差が小さいため枠を付ける） */
.btn-main {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 28px; border: 2px solid var(--c-main); border-radius: 28px;
  background: var(--c-accent); color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-main:hover, .btn-main:active { background: var(--c-accent-hover); color: var(--c-text); }
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 2px solid var(--c-main); border-radius: 24px;
  background: #FFFFFF; color: var(--c-main); font-size: 16px; font-weight: 700; line-height: 1.3;
  text-decoration: none; text-align: center;
}
.btn-sub:hover { background: var(--c-soft); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: 15px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー（メニューなし。貼り付けない） ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
.hd__in { display: flex; align-items: center; min-height: 56px; }
.hd__logo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 0;
  color: var(--c-main); text-decoration: none;
}
.hd__mark { width: 28px; height: 28px; }
.hd__name { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; white-space: nowrap; }
.hd__demo {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap;
}
@media (max-width: 374px) { .hd__name { letter-spacing: .02em; } }

/* ---------- ブロック ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec--band { background: var(--c-soft); }
.sec__en { color: var(--c-sub); font-size: 13px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; }
.sec__title { margin-top: 8px; font-family: var(--font-head); color: var(--c-main); font-size: 22px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.sec__lead { margin-top: 8px; color: var(--c-text); font-size: 15px; line-height: 1.8; max-width: 40em; }
.sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 24px; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; color: var(--c-main); }
.note { margin-top: 16px; color: var(--c-sub); font-size: 14px; line-height: 1.7; max-width: 40em; }

/* ---------- ファーストビュー ---------- */
.hero { padding: 24px 0 var(--gap-sec); }
.hero__art { display: block; width: 100%; height: 112px; margin: 24px auto 0; }
.hero__tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; margin-bottom: 12px;
  border: 1px solid var(--c-sub); border-radius: 14px; background: #FFFFFF; color: var(--c-text);
  font-size: 13px; font-weight: 700; line-height: 1.4;
}
.hero__kind { margin-bottom: 8px; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.5; }
.h1 { font-family: var(--font-head); color: var(--c-main); font-size: 26px; font-weight: 700; line-height: 1.35; letter-spacing: .04em; }
.hero__lead { margin-top: 12px; font-size: 16px; line-height: 1.8; max-width: 40em; }
.notice {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 12px 16px; max-width: 40em;
  background: #FFFFFF; border-left: 4px solid var(--c-main); border-radius: 8px;
}
.notice > svg { margin-top: 3px; color: var(--c-main); }
.notice__main { color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.6; }
.notice__sub { color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.hero__act { margin-top: 24px; }
.hero__btn { width: 100%; }

/* ---------- 番号の札・必須／任意の札 ---------- */
.tag {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.tag--bad { background: var(--c-main); color: #FFFFFF; }
.tag--fix { background: #FFFFFF; color: var(--c-main); box-shadow: inset 0 0 0 2px var(--c-main); }
.req {
  flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px;
  font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; letter-spacing: 0;
}
.req--must { background: var(--c-main); color: #FFFFFF; }
.req--opt { background: #FFFFFF; color: var(--c-sub); box-shadow: inset 0 0 0 1px var(--c-sub); }

/* ---------- 見くらべ ---------- */
.compare__tools { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 400px; }
.tabs__tab {
  min-height: 48px; padding: 0 12px; border: 1.5px solid var(--c-sub); border-radius: 24px;
  background: #FFFFFF; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.3;
}
.tabs__tab:hover { background: var(--c-soft); }
.tabs__tab[aria-selected="true"], .tabs__tab[aria-selected="true"]:hover { background: var(--c-main); border: 2px solid var(--c-main); color: #FFFFFF; }
.tabs__tab[aria-selected="true"]:focus-visible { outline-offset: 3px; }
.compare__grid { margin-top: 16px; }
.compare__main { min-width: 0; }
.fcard { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 12px; padding: 16px; }

/* チェック・丸のボタン（本物の input に枠を描く。入った時は label の枠を紺 2px） */
.choice {
  position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 8px; background: #FFFFFF; color: var(--c-text);
  font-size: 16px; font-weight: 400; line-height: 1.4; cursor: pointer;
}
.choice.is-on { border-color: var(--c-main); box-shadow: inset 0 0 0 1px var(--c-main); }
.choice--inline { display: inline-flex; }
.choice__box { position: relative; flex: none; width: 24px; height: 24px; }
.choice__input {
  display: block; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--c-sub); border-radius: 4px; background: #FFFFFF;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.choice__input[type="radio"] { border-radius: 50%; }
.choice__input:checked { border-color: var(--c-main); background: var(--c-main); }
.choice__input:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
.choice__input[aria-invalid="true"] { border: 2px solid var(--c-error); }
.choice__input[aria-invalid="true"]:checked { border-color: var(--c-main); }
.choice__mark { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; color: #FFFFFF; pointer-events: none; visibility: hidden; }
.choice__input:checked + .choice__mark { visibility: visible; }
.choice__face { min-width: 0; }
.choice-grid { display: grid; gap: 8px; margin-top: 8px; }
.choice-grid--1 { grid-template-columns: minmax(0, 1fr); }
.choice-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- 直す前（悪い例） ---------- */
.bad__lead { padding: 12px 16px; background: var(--c-soft); border-radius: 8px; color: var(--c-text); font-size: 14px; line-height: 1.7; }
.bad__introw { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.bad__intro { min-width: 0; color: var(--c-text); font-size: 15px; line-height: 1.9; }
.bad__head { display: flex; align-items: center; gap: 8px; margin-top: 24px; }
.bad__title { color: var(--c-text); font-size: 17px; }
.bad__sumwrap { position: relative; min-height: 28px; margin-top: 8px; padding-right: 32px; }
.bad__sumtag { position: absolute; right: 0; top: 0; }
.bad__summary {
  padding: 12px 16px; background: var(--c-error-soft); border-left: 4px solid var(--c-error); border-radius: 8px;
  color: var(--c-text); font-size: 15px; line-height: 1.6;
}
.bad__sumhead { color: var(--c-error); font-size: 16px; font-weight: 700; }
.bad__summary ul { margin-top: 4px; }
.bad__summary li { position: relative; padding-left: 14px; }
.bad__summary li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-text); }
.bad__refill { margin-top: 8px; }
.bad { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.bad__row { position: relative; }
.bad__rowtag { position: absolute; right: -6px; top: -10px; }
.bad__input {
  display: block; width: 100%; height: 44px; padding: 0 12px; border: 1.5px solid var(--c-sub); border-radius: 4px;
  background: #FFFFFF; color: var(--c-text); font-size: 16px; font-weight: 400; line-height: 1.4;
}
.bad__input--area { height: 88px; padding: 10px 12px; resize: vertical; }
.bad__input::placeholder, .field__input::placeholder { color: var(--c-sub); opacity: 1; }
.bad__input:focus { border-color: var(--c-main); box-shadow: inset 0 0 0 .5px var(--c-main); outline: 3px solid var(--c-main); outline-offset: 2px; }
.bad__input[aria-invalid="true"] { border: 2px solid var(--c-error); }
.bad__input[aria-invalid="true"]:focus { box-shadow: none; }
.bad__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.bad__btn {
  width: 96px; height: 44px; padding: 0; border: 1px solid var(--c-sub); border-radius: 4px;
  background: var(--c-dull); color: var(--c-text); font-size: 15px; font-weight: 400; line-height: 1.3;
}
.bad__ok { padding: 12px 16px; background: var(--c-soft); border-radius: 8px; color: var(--c-text); font-size: 14px; line-height: 1.7; }

/* ---------- 直した後 ---------- */
.after__lead { color: var(--c-text); font-size: 15px; line-height: 1.7; }
.steps-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; }
.steps { flex: 1 1 auto; min-width: 0; display: flex; }
.steps__item {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--c-sub); font-size: 13px; font-weight: 700; line-height: 1.4; text-align: center;
}
.steps__item + .steps__item::before {
  content: ""; position: absolute; top: 13px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: var(--c-line);
}
.steps__dot {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--c-sub); color: var(--c-sub); font-size: 13px; font-weight: 700; line-height: 1;
}
.steps__dot svg { width: 18px; height: 18px; }
.steps__name { max-width: 100%; }
.steps--now { color: var(--c-main); }
.steps--now .steps__dot { background: var(--c-main); box-shadow: none; color: #FFFFFF; }
.steps--done { color: var(--c-text); }
.steps--done .steps__dot { box-shadow: inset 0 0 0 2px var(--c-main); color: var(--c-main); }

.good { margin-top: 24px; }
.good__summary {
  margin-bottom: 24px; padding: 12px 16px; background: var(--c-error-soft); border-left: 4px solid var(--c-error); border-radius: 8px;
  color: var(--c-text); font-size: 15px; line-height: 1.6;
}
.good__sumhead { color: var(--c-error); font-size: 16px; font-weight: 700; }
.good__summary ul { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.good__summary a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 48px; padding: 0 4px; color: var(--c-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.good__summary a:hover { text-decoration-thickness: 2px; }
.good__title { font-size: 19px; }
.good__note { margin-top: 16px; padding: 12px 16px; background: var(--c-soft); border-radius: 8px; color: var(--c-text); font-size: 14px; line-height: 1.7; }
.good__note--sample .btn-sub { margin-top: 8px; }
.good__note--confirm { font-size: 15px; }
.good__notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; }
.good__a31 { flex: 1 1 auto; min-width: 0; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.good__tagrow { display: flex; justify-content: flex-end; margin-top: 24px; }
.good__btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 8px; }
.good__btns .btn-main { padding: 0 16px; }
.good__step > .field, .good__step > .field--group { margin-top: 24px; }
.good__title + .field, .good__title + .field--group { margin-top: 24px; }

/* 1つの欄 */
.field { position: relative; }
.field__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.field__label { color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.5; }
legend.field__head { float: left; margin: 0 8px 0 0; }
.field__tag { float: left; margin-top: 0; }
.field--group > .field__hint, .field--group > .choice-grid, .field--group > .field__error { clear: both; }
.field--group > legend + .choice-grid { padding-top: 0; }
.field__head + .sel-wrap, .field__head + .field__input { margin-top: 8px; }
.field__input {
  display: block; width: 100%; height: 48px; padding: 0 12px; border: 1.5px solid var(--c-sub); border-radius: 8px;
  background: #FFFFFF; color: var(--c-text); font-size: 16px; font-weight: 400; line-height: 1.4;
}
.field__input--area { height: 120px; padding: 10px 12px; resize: vertical; }
.field__input:focus { border-color: var(--c-main); box-shadow: inset 0 0 0 .5px var(--c-main); outline: 3px solid var(--c-main); outline-offset: 2px; }
.field__input[aria-invalid="true"], .sel[aria-invalid="true"] { border-color: var(--c-error); box-shadow: inset 0 0 0 .5px var(--c-error); }
.field__hint { margin-top: 4px; color: var(--c-sub); font-size: 14px; line-height: 1.6; }
.field--group > .field__hint { padding-top: 4px; margin-top: 0; }
.field__hintrow { display: flex; align-items: flex-start; gap: 8px; }
.field__hintrow .field__hint { flex: 1 1 auto; min-width: 0; }
.field__hintrow .tag { margin-top: 4px; }
.field__error { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; color: var(--c-error); font-size: 15px; font-weight: 700; line-height: 1.6; }
.field__error svg { width: 16px; height: 16px; margin-top: .2em; }

.sel-wrap { position: relative; }
.sel {
  display: block; width: 100%; min-height: 48px; padding: 0 44px 0 12px; margin: 0;
  border: 1.5px solid var(--c-sub); border-radius: 8px; background: #FFFFFF;
  color: var(--c-text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.3;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.sel:hover { border-color: var(--c-main); }
.sel:focus { border-color: var(--c-main); box-shadow: inset 0 0 0 .5px var(--c-main); outline: 3px solid var(--c-main); outline-offset: 2px; }
.sel__icon { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--c-main); pointer-events: none; }

/* 確認画面 */
.good__confirm, .good__done { margin-top: 24px; }
.confirm { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.confirm__box { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 8px; overflow: hidden; }
.confirm__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 16px; background: var(--c-soft); }
.confirm__head h4 { color: var(--c-main); font-size: 15px; font-weight: 700; line-height: 1.5; }
.confirm__head .btn-sub { min-height: 44px; padding: 0 16px; }
.confirm__rows > div { padding: 10px 16px; border-top: 1px solid var(--c-line); }
.confirm__rows > div:first-child { border-top: 0; }
.confirm__rows dt { color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.6; }
.confirm__rows dd { color: var(--c-text); font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.good__confirm .good__btns { margin-top: 32px; gap: 8px; }
.good__c2 { color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.good__c2 + .btn-sub { margin-top: 8px; }

/* 完了画面 */
.done__mark { display: block; width: 48px; height: 48px; color: var(--c-main); }
.good__done .good__title { margin-top: 12px; }
.done__box { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px solid var(--c-line); border-left: 4px solid var(--c-main); border-radius: 8px; color: var(--c-text); font-size: 16px; font-weight: 700; line-height: 1.7; }
.done__text { margin-top: 12px; color: var(--c-text); font-size: 15px; line-height: 1.8; }
.good__done .good__btns { margin-top: 24px; align-items: flex-start; }
.good__done .good__btns .btn-sub { align-self: stretch; }

/* このタブで見るところ */
.guide { margin-top: 24px; background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 16px; }
.guide h3 { font-size: 17px; }
.guide__list { margin-top: 12px; }
.guide__list li { display: flex; align-items: flex-start; gap: 8px; padding: 4px 0; color: var(--c-text); font-size: 15px; line-height: 1.6; }
.guide__list .tag { margin-top: 0; }
.guide__more { margin-top: 8px; }
.guide__more .btn-text { padding: 0; }

/* ---------- 直した点の一覧 ---------- */
.fixes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fixes__card { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 16px; }
.fixes__head { display: flex; align-items: flex-start; gap: 8px; }
.fixes__head h3 { font-size: 17px; line-height: 1.5; }
.fixes__rows { margin-top: 8px; }
.fixes__rows > div + div { margin-top: 8px; }
.fixes__rows dt { color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.6; }
.fixes__rows dd { color: var(--c-text); font-size: 15px; line-height: 1.8; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec--lab { border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; gap: .3em; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-size: 22px; font-weight: 700; line-height: 1.5; color: var(--c-main); letter-spacing: .04em; }
.lab-lead { margin-top: 12px; max-width: 40em; }
.work-3 { display: grid; gap: 16px; margin-top: 24px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; font-size: 17px; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.7; }
.work-3 ul li + li, .work-check li + li { margin-top: 4px; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-main); }
.work-check { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px dashed var(--c-sub); border-radius: 12px; }
.work-check h3 { font-size: 16px; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: 14px; line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { font-size: 14px; padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-main); color: var(--c-base); font-size: 15px; line-height: 1.8;
  padding: 48px 16px; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100%; min-height: 52px;
  margin: 0 auto; border: 2px solid #FFFFFF; border-radius: 26px; background: var(--c-accent); color: var(--c-text);
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); }
.copy { font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* 枠を描く色を強制する表示（ハイコントラスト）では box-shadow が消えるので、本物の枠を出す */
@media (forced-colors: active) {
  .tag--fix, .req--opt, .steps__dot { border: 2px solid CanvasText; }
  .choice__input { forced-color-adjust: none; border-color: CanvasText; background: Canvas; }
  .choice__input:checked { background: Highlight; border-color: Highlight; }
  .choice__mark { forced-color-adjust: none; color: HighlightText; }
}

/* ---------- 768px 以上 ---------- */
@media (min-width: 768px) {
  :root { --pad-x: 32px; --gap-sec: 96px; --pad-card: 24px; }
  .hd__in { min-height: 64px; }
  .hd__name { font-size: 18px; }
  .hero { padding: 64px 0 var(--gap-sec); }
  .hero__in { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: center; }
  .hero__art { height: 160px; margin: 0; }
  .hero__text { min-width: 0; }
  .hero__kind { font-size: 15px; }
  .h1 { font-size: 32px; }
  .hero__lead { font-size: 17px; }
  .notice__main { font-size: 17px; }
  .hero__btn { width: auto; min-width: 280px; }
  .sec__title { font-size: 26px; }
  .sec__lead { font-size: 16px; }
  .sec__title + :not(.sec__lead), .sec__lead + * { margin-top: 32px; }
  h3 { font-size: 21px; }
  .compare__main .fcard, .guide { max-width: 640px; margin-left: auto; margin-right: auto; }
  .fcard { padding: 32px; }
  .good__title { font-size: 21px; }
  .steps__item { font-size: 14px; }
  #g-subj .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #g-days .choice-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .good__btns { align-items: flex-start; }
  .good__btns .btn-main, .good__btns .btn-sub { min-width: 280px; }
  .good__done .good__btns .btn-sub { align-self: flex-start; }
  .fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fixes__rows dd { font-size: 16px; }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 20px; }
  .btn { width: 280px; }
}

/* ---------- 1024px 以上：パネル（左）と見るところ（右・貼り付く） ---------- */
@media (min-width: 1024px) {
  .hd__in { min-height: 72px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .hero__art { height: 200px; }
  .h1 { font-size: 36px; }
  .compare__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
  .compare__main .fcard { margin-left: 0; margin-right: 0; }
  .guide { position: sticky; top: 24px; margin: 0; max-width: none; padding: 24px; }
  .guide.is-static { position: static; }
  .fixes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 24px; }
}
@media (min-width: 1280px) {
  .compare__grid { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* ---------- 印刷（崩れない程度） ---------- */
@media print {
  .tl-bar__back, .hero__art, .hero__act, .btn, .lab-more { display: none !important; }
  body { background: none; color: #1E2230; }
  .sec--band, .site-footer, .tl-bar { background: none !important; color: #1E2230 !important; }
  .fixes__card, .work-3 > li { break-inside: avoid; }
  .guide { position: static; }
}
