/* 職場カルテ — design system
   紙のカルテ(罫線・記入欄・朱の印)を土台に、藍の文字と温かい紙色。夜勤明けの人のための「夜の画面」。 */

:root {
  --paper: #f5f1e8;
  --sheet: #fffdf7;
  --ink: #1b2230;
  --ink-2: #454c5a;
  --ink-3: #646a7a;
  --rule: #e6dfcf;
  --line: #d6cdb9;
  --line-strong: #8f846d; /* 入力欄・選択肢などの枠(背景との差 3:1 以上) */
  --ai: #26397d;          /* 藍:操作・リンク */
  --ai-deep: #1b2a5e;
  --ai-soft: #e8ebf6;
  --shu: #c0432a;         /* 朱:印・行動のボタン */
  --shu-deep: #9f3420;
  --shu-soft: #f8e6df;
  --take: #3a7553;        /* 若竹:よい所見 */
  --take-soft: #e3efe6;
  --fusen: #f6e7a8;       /* 付箋 */
  --on-ai: #ffffff;
  --on-shu: #ffffff;
  --shadow: 0 1px 0 rgba(27, 34, 48, 0.06), 0 10px 30px -18px rgba(27, 34, 48, 0.35);
  --radius: 14px;
  --max: 760px;
  --wide: 1120px;
  --mincho: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "BIZ UDPGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  color-scheme: light;
}

:root[data-theme="night"] {
  --paper: #11151d;
  --sheet: #181e29;
  --ink: #ebe6da;
  --ink-2: #c3bdb0;
  --ink-3: #9a968c;
  --rule: #252c3a;
  --line: #333b4b;
  --line-strong: #646e83;
  --ai: #9fb0f0;
  --ai-deep: #c4cff7;
  --ai-soft: #222b47;
  --shu: #e0765b;
  --shu-deep: #f0937b;
  --shu-soft: #3a2420;
  --take: #7fc39b;
  --take-soft: #1d3127;
  --fusen: #5a5228;
  --on-ai: #11151d;
  --on-shu: #11151d;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="day"]) {
    --paper: #11151d;
    --sheet: #181e29;
    --ink: #ebe6da;
    --ink-2: #c3bdb0;
    --ink-3: #9a968c;
    --rule: #252c3a;
    --line: #333b4b;
    --line-strong: #646e83;
    --ai: #9fb0f0;
    --ai-deep: #c4cff7;
    --ai-soft: #222b47;
    --shu: #e0765b;
    --shu-deep: #f0937b;
    --shu-soft: #3a2420;
    --take: #7fc39b;
    --take-soft: #1d3127;
    --fusen: #5a5228;
    --on-ai: #11151d;
    --on-shu: #11151d;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--ai); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ai-deep); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--shu); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 800; line-height: 1.45; letter-spacing: 0.04em; margin: 0; }
h2 { font-size: clamp(22px, 4.6vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.nw { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.inner, .wide { width: min(var(--wide), calc(100% - 32px)); margin: 0 auto; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .inner { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--mincho); font-weight: 800; font-size: 20px; letter-spacing: 0.08em; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.site-nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 10px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ai-deep); background: var(--ai-soft); }
.night-toggle { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--sheet); color: var(--ink-2); font: 700 13px var(--gothic); padding: 7px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.night-toggle svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .site-header .inner { flex-wrap: wrap; gap: 4px 10px; padding: 8px 0 4px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; }
  .night-toggle { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 26px; border-radius: 999px; font: 700 17px/1.3 var(--gothic); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ai); color: var(--on-ai); box-shadow: 0 8px 22px -12px var(--ai); }
.btn-primary:hover { background: var(--ai-deep); color: var(--on-ai); }
.btn-action { background: var(--shu); color: var(--on-shu); box-shadow: 0 8px 22px -12px var(--shu); }
.btn-action:hover { background: var(--shu-deep); color: var(--on-shu); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-note { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ---------- home: hero ---------- */
.hero { position: relative; padding: clamp(32px, 7vw, 84px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--shu); }
.hero h1 { font-size: clamp(29px, 6.4vw, 54px); line-height: 1.4; letter-spacing: 0.05em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 64%, var(--fusen) 64%); }
.hero-lead { margin: 22px 0 28px; font-size: clamp(16px, 2.4vw, 18px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.hero-actions > div { min-width: min(100%, 300px); }
.hero-actions .btn-primary { width: 100%; }
@media (max-width: 860px) { .hero .inner { grid-template-columns: 1fr; } }

/* sample chart card (static preview of the karte) */
.chart-card { position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px 6px var(--radius) var(--radius); box-shadow: var(--shadow); padding: 46px 22px 20px; }
.chart-card::before { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); width: 120px; height: 30px; border-radius: 8px; background: linear-gradient(var(--ink-3), var(--ink-2)); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2); }
.chart-card .chart-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mincho); font-weight: 800; letter-spacing: 0.1em; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 12px; }
.chart-card .chart-head small { font-family: var(--gothic); font-weight: 400; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; }
.chart-card dl { margin: 0; }
.chart-row { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--rule); font-size: 14px; line-height: 1.7; }
.chart-row dt { font-family: var(--mincho); font-weight: 800; color: var(--ink-2); }
.chart-row dd { margin: 0; }
.chart-caption { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.chip { display: inline-block; padding: 1px 10px; margin: 0 4px 4px 0; border-radius: 999px; background: var(--ai-soft); color: var(--ai-deep); font-size: 13px; font-weight: 700; }
.stamp { position: absolute; right: 18px; top: 50px; width: 66px; height: 66px; border: 3px solid var(--shu); border-radius: 50%; color: var(--shu); display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; font-size: 13px; line-height: 1.25; text-align: center; transform: rotate(-12deg); opacity: 0.88; pointer-events: none; }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section.tint { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 40em; margin-bottom: 26px; }
.section-head p { color: var(--ink-2); margin-top: 10px; margin-bottom: 0; }
.kicker { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--shu); margin-bottom: 8px; }

/* reception: choose your state */
.reception { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .reception { grid-template-columns: 1fr; } }
.ticket { position: relative; display: block; padding: 22px 22px 20px 28px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease; }
.ticket::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 5px; border-radius: 0 4px 4px 0; background: var(--tone, var(--ai)); }
.ticket:hover { transform: translateY(-2px); border-color: var(--tone, var(--ai)); color: var(--ink); }
.ticket b { display: block; font-family: var(--mincho); font-size: 21px; letter-spacing: 0.05em; margin-bottom: 6px; }
.ticket span { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.ticket i { display: inline-block; margin-top: 12px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--tone, var(--ai)); }

/* promises: what this site does not do */
.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } }
.promise { padding: 18px 20px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--rule); }
.promise s { display: block; color: var(--ink-3); text-decoration-color: var(--shu); text-decoration-thickness: 2px; font-size: 14px; margin-bottom: 4px; }
.promise p { margin: 0; font-weight: 700; }

/* data band */
.data-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .data-band { grid-template-columns: 1fr; } }
.data { padding: 22px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); }
.data .num { font-family: var(--mincho); font-weight: 800; font-size: 46px; line-height: 1.1; color: var(--shu); font-variant-numeric: tabular-nums; }
.data .num small { font-size: 18px; margin-left: 2px; }
.data .what { display: block; font-weight: 700; margin-top: 8px; }
.data p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }
.data-takeaway { margin-top: 18px; padding: 16px 20px; border-left: 4px solid var(--take); background: var(--take-soft); border-radius: 0 10px 10px 0; font-weight: 700; }
.source-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; line-height: 1.7; }
.source-note a { color: var(--ink-3); }

/* tool links */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr; } }
.tool { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tool:hover { border-color: var(--ai); color: var(--ink); }
.tool svg { width: 34px; height: 34px; color: var(--ai); }
.tool b { font-family: var(--mincho); font-size: 19px; }
.tool span { color: var(--ink-2); font-size: 15px; line-height: 1.75; }

/* author */
.author { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.author .avatar-ph { width: 64px; height: 64px; border-radius: 50%; background: var(--ai-soft); display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; color: var(--ai); font-size: 24px; }
.author b { font-family: var(--mincho); font-size: 18px; }
.author p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }

/* sticky mobile cta */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; transition: transform 0.2s ease, opacity 0.2s ease; }
.sticky-cta.hide { transform: translateY(140%); opacity: 0; }
.sticky-cta .btn { width: 100%; min-height: 54px; box-shadow: 0 12px 30px -10px rgba(0,0,0,0.45); }
@media (max-width: 760px) { .sticky-cta { display: block; } body.has-sticky { padding-bottom: 84px; } }

/* ---------- karte tool ---------- */
.karte-page { padding: 14px 0 64px; }
.karte-intro { width: min(680px, calc(100% - 24px)); margin: 18px auto 0; }
.karte-intro p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.board { position: relative; width: min(680px, calc(100% - 24px)); margin: 30px auto 0; background-color: var(--sheet); border: 1px solid var(--line); border-radius: 8px 8px 18px 18px; box-shadow: var(--shadow); padding: 46px clamp(18px, 4vw, 40px) 30px; }
.board::before { content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 132px; height: 32px; border-radius: 9px; background: linear-gradient(var(--ink-3), var(--ink-2)); box-shadow: inset 0 -3px 0 rgba(0,0,0,0.22); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 18px; }
.board-head .title { font-family: var(--mincho); font-weight: 800; font-size: 22px; letter-spacing: 0.14em; }
.board-head .meta { font-size: 12px; color: var(--ink-3); text-align: right; line-height: 1.6; font-variant-numeric: tabular-nums; }
.board-head .title, .board-head .meta { white-space: nowrap; }
@media (max-width: 420px) { .board-head .title { font-size: 19px; letter-spacing: 0.06em; } .board-head .meta { font-size: 11px; } }
.board-head .stamp-inline { flex: none; margin-right: auto; width: 46px; height: 46px; border: 2.5px solid var(--shu); border-radius: 50%; color: var(--shu); display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; font-size: 13px; letter-spacing: 0; transform: rotate(-12deg); align-self: center; }
.progress { display: flex; gap: 6px; margin: 0 0 22px; }
.progress span { flex: 1; height: 6px; border-radius: 99px; background: var(--rule); }
.progress span.done { background: var(--ai); }
.progress span.now { background: var(--shu); }
.q-label { display: block; font-size: 13px; font-weight: 700; color: var(--shu); letter-spacing: 0.12em; margin-bottom: 6px; }
.q h2 { font-size: clamp(21px, 4.8vw, 26px); }
.q h2:focus { outline: none; }
.q .hint { color: var(--ink-2); font-size: 15px; margin: 8px 0 18px; }
.options { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.options.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .options.cols { grid-template-columns: 1fr; } }
.opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 16px; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--sheet); color: var(--ink); font: 700 16px/1.5 var(--gothic); text-align: left; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease; }
.opt:hover { border-color: var(--ai); }
.opt .mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--on-ai); }
.opt.multi .mark { border-radius: 7px; }
.opt[aria-pressed="true"] { border-color: var(--ai); background: var(--ai-soft); }
.opt[aria-pressed="true"] .mark { background: var(--ai); border-color: var(--ai); }
.opt small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); }
.opt.none { border-style: dashed; }
.q-nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin-top: 26px; }
.q-nav .btn { min-height: 52px; }
.q-nav .btn[disabled] { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.q-count { font-size: 13px; color: var(--ink-3); margin-top: 10px; min-height: 1.4em; }
.privacy-line { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-3); margin-top: 18px; line-height: 1.6; }
.privacy-line svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.resume { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--fusen); color: var(--ink); font-size: 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.resume button { border: 0; background: var(--ink); color: var(--paper); border-radius: 99px; padding: 6px 14px; font: 700 13px var(--gothic); cursor: pointer; min-height: 36px; }

/* karte result */
.rx { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.rx:last-of-type { border-bottom: 0; }
.rx-label { display: flex; align-items: center; gap: 10px; font-family: var(--mincho); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; margin-bottom: 10px; }
.rx-label::before { content: attr(data-mark); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--sheet); font-size: 14px; flex: none; }
.rx p { margin-bottom: 0.6em; }
.finding { padding: 14px 16px; border-radius: 12px; background: var(--ai-soft); }
.finding.good { background: var(--take-soft); }
.finding p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ai); color: var(--ai); font-weight: 700; }
.match-list { display: grid; gap: 10px; }
.match { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.match b { font-family: var(--mincho); font-size: 18px; }
.match .why { display: block; font-size: 14px; color: var(--ink-2); margin-top: 4px; line-height: 1.7; }
.ask-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ask-list label { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); cursor: pointer; font-size: 15px; line-height: 1.7; }
.ask-list input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ai); }
.ask-list .why-ask { display: block; font-size: 12px; color: var(--ink-3); }
.watch-list { margin: 10px 0 0; padding-left: 1.2em; font-size: 15px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.result-actions .btn { min-height: 48px; padding: 10px 18px; font-size: 15px; }

/* PR card (相談先) */
.pr-card { position: relative; padding: 20px 18px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--sheet); }
.pr-card .pr-label { position: absolute; top: -11px; left: 14px; background: var(--ink); color: var(--sheet); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 10px; border-radius: 99px; }
.pr-card h4 { margin: 2px 0 6px; font-size: 18px; }
.pr-card p { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.pr-card .btn { width: 100%; }
.pr-card.pending { border-style: dashed; }
.pr-card.pending .btn { background: var(--rule); color: var(--ink-3); box-shadow: none; cursor: default; }
.pr-grid { display: grid; gap: 18px; margin-top: 16px; }
.pr-why { font-size: 14px; color: var(--ink-2); padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--rule); }

/* safety */
.care-box { padding: 18px 18px 8px; border-radius: 14px; border: 2px solid var(--shu); background: var(--shu-soft); }
.care-box h3 { color: var(--shu-deep); margin-bottom: 8px; }

/* ---------- translator (求人票の翻訳機) ---------- */
.page-hero { padding: 30px 0 8px; }
.page-hero h1 { font-size: clamp(27px, 5.8vw, 42px); }
.page-hero p { color: var(--ink-2); margin-top: 12px; max-width: 36em; }
.phrase-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.phrase { border: 2px dashed var(--line-strong); background: var(--sheet); color: var(--ink); border-radius: 10px; padding: 10px 14px; font: 700 16px var(--gothic); cursor: pointer; min-height: 48px; }
.phrase::before { content: "「"; color: var(--ink-3); }
.phrase::after { content: "」"; color: var(--ink-3); }
.phrase[aria-pressed="true"] { border-style: solid; border-color: var(--shu); background: var(--shu-soft); }
.group-title { font-size: 14px; font-weight: 700; color: var(--ink-3); margin: 22px 0 10px; letter-spacing: 0.08em; }
.translation { display: grid; gap: 12px; margin-top: 10px; }
.tr-item { padding: 16px 18px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--line); }
.tr-item h3 { font-size: 18px; margin-bottom: 6px; }
.tr-item .means { color: var(--ink-2); font-size: 15px; margin-bottom: 6px; }
.tr-item ul { margin: 0; padding-left: 1.2em; }
.tr-empty { padding: 22px; border-radius: 14px; border: 2px dashed var(--line); color: var(--ink-3); text-align: center; }
.copy-bar { position: sticky; bottom: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.copy-bar .btn { min-height: 50px; }
.copy-bar .btn-ghost { background: var(--sheet); box-shadow: var(--shadow); }

/* ---------- workplace atlas (職場図鑑) ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--line-strong); margin-top: 18px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 700 15px var(--gothic); padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.seg button[aria-pressed="true"] { background: var(--ai); color: var(--on-ai); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.filter { border: 2px solid var(--line-strong); background: var(--sheet); color: var(--ink-2); border-radius: 999px; padding: 8px 16px; font: 700 15px var(--gothic); cursor: pointer; min-height: 44px; }
.filter[aria-pressed="true"] { border-color: var(--ai); color: var(--ai-deep); background: var(--ai-soft); }
.atlas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .atlas { grid-template-columns: 1fr; } }
.place { padding: 20px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); box-shadow: var(--shadow); }
.place[hidden] { display: none; }
.place h3 { font-size: 21px; }
.place .sub { font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; }
.place .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.meters { display: grid; gap: 6px; margin: 12px 0; }
.meter { display: grid; grid-template-columns: 10.5em 1fr; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; }
.meter .dots { display: flex; gap: 5px; }
.meter .dots i { width: 34px; height: 10px; border-radius: 99px; background: var(--rule); }
.meter .dots i.on { background: var(--ai); }
.place .fit, .place .hard { font-size: 15px; margin: 8px 0 0; line-height: 1.75; }
.place .fit b { color: var(--take); }
.place .hard b { color: var(--shu); }
.place details { margin-top: 10px; border-top: 1px dashed var(--rule); padding-top: 8px; }
.place summary { cursor: pointer; font-weight: 700; color: var(--ai); }
.place details ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 15px; }
.atlas-empty { padding: 20px; text-align: center; color: var(--ink-3); }

/* ---------- 相談先の選び方 ---------- */
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 0 0 22px 48px; }
.flow li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ai); color: var(--on-ai); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.flow li::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--rule); }
.flow li:last-child::after { display: none; }
.flow b { display: block; font-size: 17px; }
.flow span { color: var(--ink-2); font-size: 15px; }
.script { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); margin-bottom: 10px; }
.script q { quotes: "「" "」"; font-weight: 700; }
.script small { display: block; color: var(--ink-3); font-size: 13px; }
.copy-btn { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: 700 13px var(--gothic); cursor: pointer; min-height: 36px; white-space: nowrap; }
.copy-btn.done { color: var(--take); border-color: var(--take); }
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; background: var(--sheet); }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.7; }
.compare thead th { background: var(--ai-soft); font-size: 14px; }
.compare tbody th { font-family: var(--mincho); white-space: nowrap; }

/* ---------- article (existing pages) ---------- */
.article-hero { padding: 34px 0 18px; }
.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-3); }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--shu); letter-spacing: 0.1em; margin-bottom: 8px; }
.article-hero h1 { font-size: clamp(25px, 5.4vw, 36px); }
.lead { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.byline { display: flex; gap: 12px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ai-soft); color: var(--ai); display: grid; place-items: center; font-family: var(--mincho); font-weight: 800; flex: none; }
main.wrap h2 { margin: 2.2em 0 0.7em; padding-bottom: 0.3em; border-bottom: 2px solid var(--ink); font-size: clamp(21px, 4.4vw, 26px); }
main.wrap h3 { margin: 1.6em 0 0.5em; }
.toc, .summary-box, .pt-view, .pr-note { padding: 16px 20px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); margin: 18px 0; }
.summary-box { border-left: 5px solid var(--ai); }
.pt-view { border-left: 5px solid var(--take); }
.pr-note { font-size: 14px; color: var(--ink-2); }
.check-list { padding-left: 1.3em; }
.check-list li { margin: 4px 0; }
.table-scroll { overflow-x: auto; margin: 16px 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--sheet); }
.data-table th, .data-table td { border: 1px solid var(--rule); padding: 10px 12px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--ai-soft); }
.faq details { border-bottom: 1px dashed var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.references, .source { font-size: 13px; color: var(--ink-3); }
.next-links { display: grid; gap: 10px; }
.card-grid, .entry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card, .entry { display: block; padding: 18px; border-radius: var(--radius); background: var(--sheet); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.entry b { display: block; font-family: var(--mincho); font-size: 18px; }
.entry span { color: var(--ink-2); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ai-deep); background: var(--ai-soft); border-radius: 99px; padding: 1px 10px; }
.tag.warm { color: var(--shu-deep); background: var(--shu-soft); }
.tag.green { color: var(--take); background: var(--take-soft); }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; padding: 34px 0 40px; border-top: 1px solid var(--rule); background: var(--sheet); font-size: 14px; color: var(--ink-2); }
.site-footer .inner { display: grid; gap: 10px; }
.site-footer strong { font-family: var(--mincho); font-size: 18px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--ink-2); }

/* ---------- print (カルテを印刷・PDF) ---------- */
@media print {
  :root, :root[data-theme="night"] { --paper: #fff; --sheet: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --rule: #ccc; --line: #999; --ai: #1b2a5e; --ai-soft: #eef0f7; --shu: #b03a22; --shu-soft: #fbeee9; --take-soft: #eef5f0; }
  .site-header, .site-footer, .sticky-cta, .q-nav, .result-actions, .no-print, .karte-intro { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .board { box-shadow: none; border: 0; padding: 0; width: 100%; margin: 0; }
  .board::before { display: none; }
  .rx, .pr-card, .match { break-inside: avoid; }
}

/* ---------- 2万人の声(調査の答えを吹き出しで) ---------- */
.voice-group { margin-top: 26px; }
.voice-group > h3 { font-size: 18px; margin-bottom: 4px; }
.voice-group > p { font-size: 13px; color: var(--ink-3); margin: 0 0 14px; }
.voice-wall { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.voice { position: relative; flex: 1 1 250px; background: var(--sheet); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px 12px; box-shadow: var(--shadow); }
.voice::after { content: ""; position: absolute; left: 24px; bottom: -9px; width: 16px; height: 16px; background: var(--sheet); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.voice q { quotes: "「" "」"; display: block; font-weight: 700; font-size: 16px; line-height: 1.6; }
.voice .pct { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-family: var(--mincho); font-weight: 800; font-size: 24px; color: var(--shu); font-variant-numeric: tabular-nums; }
.voice .pct small { font-size: 13px; }
.voice .bar { flex: 1; height: 6px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.voice .bar i { display: block; height: 100%; width: var(--w); background: var(--shu); border-radius: 99px; }
.voice.good .pct { color: var(--take); }
.voice.good .bar i { background: var(--take); }
.voice details { margin-top: 6px; font-size: 14px; }
.voice summary { cursor: pointer; color: var(--ai); font-weight: 700; list-style: none; min-height: 32px; display: flex; align-items: center; }
.voice summary::-webkit-details-marker { display: none; }
.voice summary::before { content: "＋"; margin-right: 6px; }
.voice details[open] summary::before { content: "−"; }
.voice details p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.7; }

/* ---------- 職場の数字(公表システムの見方と計算) ---------- */
.guide-steps { counter-reset: g; list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.guide-steps li { counter-increment: g; display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.guide-steps li::before { content: counter(g); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ai); color: var(--on-ai); font-weight: 700; }
.guide-steps b { color: var(--ink); }
.calc { margin-top: 18px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.calc-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 4px; line-height: 1.5; }
.field label small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.field input, .field select { width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink); font: 700 18px var(--gothic); }
.field input:focus, .field select:focus { border-color: var(--ai); outline: none; }
.calc-legend { font-family: var(--mincho); font-weight: 800; font-size: 16px; margin: 6px 0 2px; grid-column: 1 / -1; padding-top: 6px; border-top: 1px dashed var(--rule); }
.calc-legend:first-child { border-top: 0; padding-top: 0; }
.calc-out { margin-top: 20px; }
.calc-empty { padding: 16px; border: 2px dashed var(--line); border-radius: 12px; color: var(--ink-3); text-align: center; font-size: 15px; }
.rate { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rate .num { font-family: var(--mincho); font-weight: 800; font-size: 46px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rate .band { font-weight: 700; padding: 2px 12px; border-radius: 99px; }
.band.low { background: var(--take-soft); color: var(--take); }
.band.mid { background: var(--ai-soft); color: var(--ai-deep); }
.band.high { background: var(--shu-soft); color: var(--shu-deep); }
.gauge { position: relative; height: 14px; border-radius: 99px; background: var(--rule); margin: 30px 0 34px; }
.gauge .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--ai); }
.gauge .avg { position: absolute; top: -8px; bottom: -8px; width: 2px; background: var(--ink); }
.gauge .avg span { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--ink-2); }
.gauge .scale { position: absolute; top: -22px; font-size: 11px; color: var(--ink-3); }
.calc-notes { margin: 0; padding-left: 1.2em; font-size: 15px; }
.calc-notes li { margin: 4px 0; }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr 1fr; } .field label { font-size: 13px; } }

/* 2026-10-24 夜間の直し */
.updated { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }
.section-head .updated { margin-top: 4px; }
@media (max-width: 430px) { .site-nav .nl { display: none; } }
/* 求人票の言葉の一覧(翻訳機のページ) */
.dict { margin-top: 40px; }
.dict h2 { font-size: 22px; }
.dict-group h3 { font-size: 15px; color: var(--ink-3); letter-spacing: 0.08em; margin: 26px 0 10px; }
.dict-item { padding: 14px 16px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--line); margin-bottom: 10px; scroll-margin-top: 80px; }
.dict-item h4 { font-size: 17px; margin: 0 0 4px; }
.dict-item .t::before { content: "「"; color: var(--ink-3); }
.dict-item .t::after { content: "」"; color: var(--ink-3); }
.dict-item .means { margin: 0 0 6px; color: var(--ink-2); font-size: 15px; }
.dict-item .q { margin: 0; padding-left: 1.2em; font-size: 15px; }
.dict-item .more { margin: 8px 0 0; font-size: 14px; }
/* カルテ:ひと目で分かるまとめ・たたんだ質問・送る文章の注意・下の説明 */
.k-summary { margin: 4px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--ai-soft); }
.k-summary p { margin: 0; }
.k-summary .k-find { font-family: var(--mincho); font-weight: 800; font-size: 18px; line-height: 1.5; color: var(--ink); }
.k-summary .k-want, .k-summary .k-next { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.k-summary span { display: inline-block; font-size: 12px; font-weight: 700; color: var(--ai-deep); border: 1px solid currentColor; border-radius: 999px; padding: 0 8px; margin-right: 8px; }
details.later > summary { cursor: pointer; font-weight: 700; color: var(--ai); padding: 6px 0; }
.send-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.karte-more { width: min(680px, calc(100% - 24px)); margin: 40px auto 0; }
.karte-more h2 { font-size: 22px; margin-top: 30px; }
/* トップ:たたんだ声 */
.more-voices { margin-top: 8px; }
.more-voices > summary { cursor: pointer; font-weight: 700; color: var(--ai); padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 999px; display: inline-block; background: var(--sheet); }
.more-voices[open] > summary { margin-bottom: 14px; }
/* 職場の数字:公表システムで押す場所の図 */
.flowmap { margin: 16px 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
@media (min-width: 700px) { .flowmap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fm-step { position: relative; }
.fm-n { position: absolute; top: -9px; left: -6px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; background: var(--ai); color: var(--on-ai); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.fm-screen { height: 150px; display: flex; flex-direction: column; gap: 6px; padding: 10px 8px 8px; overflow: hidden; background: var(--sheet); border: 2px solid var(--line-strong); border-radius: 10px; }
.fm-bar { height: 10px; flex: none; border-radius: 4px; background: var(--rule); }
.fm-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.fm-grid i { border-radius: 4px; background: var(--paper); border: 1px solid var(--line); }
.fm-grid i.on, .fm-btn.on, .fm-tab.on { outline: 3px solid var(--shu); outline-offset: 1px; }
.fm-line { display: block; flex: 1; min-height: 8px; max-height: 8px; border-radius: 4px; background: var(--rule); }
.fm-line.short { flex: none; width: 60%; }
.fm-btn { font-size: 11px; font-weight: 700; line-height: 1.3; text-align: center; padding: 6px 4px; border-radius: 6px; background: var(--ai-soft); color: var(--ai-deep); }
.fm-btn.small { flex: none; font-size: 10px; padding: 4px 5px; white-space: nowrap; }
.fm-row { display: flex; gap: 6px; align-items: center; }
.fm-tab { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 4px 6px; border-radius: 6px 6px 0 0; background: var(--ai-soft); color: var(--ai-deep); }
.fm-table { display: grid; gap: 3px; font-size: 10px; }
.fm-table span { padding: 2px 4px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.fm-table .hl { background: var(--fusen); color: var(--ink); font-weight: 700; }
.fm-cap { margin: 6px 0 0; font-size: 13px; font-weight: 700; text-align: center; }
.flowmap figcaption { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
/* 印刷:翻訳機は選んだ質問だけ、カルテは下の説明を出さない */
@media print {
  .dict, #phrases, .karte-more, .flowmap { display: none !important; }
  details.later > * { display: block; }
}
