:root {
  --navy: #0e1640;
  --navy-2: #18235a;
  --navy-line: #25316a;
  --ink: #16204f;
  --body: #3d4566;
  --muted: #566080;
  --faint: #8790b0;
  --on-navy: #f4f6fb;
  --on-navy-2: #b6c0e2;
  --on-navy-3: #8f9ac2;
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f8f9fd;
  --line: #e1e5ef;
  --line-2: #eceff6;
  --track: #eceff6;
  --ctl: #d3d9e8;
  --brand: #2c4489;
  --brand-soft: #e3e9f8;
  --mark: #fbe7a1;
  --mark-line: #d9b23c;
  --mark-ink: #5a4300;
  --log: #e6eaf4;
  --log-line: #aab3cc;
  --ok-bg: #e3f2ea;
  --ok: #11603a;
  --focus: #6a8cff;
  --shadow: 0 1px 2px rgba(14, 22, 64, .06), 0 16px 40px -12px rgba(14, 22, 64, .18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.7 system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-feature-settings: "palt"; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.spacer { flex: 1 1 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1232px; margin: 0 auto; padding: 0 24px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- 上の紺の帯 ---- */
.band { background: var(--navy); color: var(--on-navy); padding-bottom: 132px; }
.top { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.logo { width: 28px; height: 28px; flex: none; }
.tabs { display: flex; gap: 2px; }
.tabs a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--on-navy-2); }
.tabs a:hover { color: var(--on-navy); }
.tabs a[aria-current="page"] { background: #24326f; color: var(--on-navy); font-weight: 500; }
.ver { margin-left: auto; font-size: 11px; color: var(--on-navy-3); }
.hero { padding-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: end; }
.hero-text { display: flex; flex-direction: column; gap: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--navy-2); border: 1px solid #2c3a78; font-size: 12px; color: #d5dcf2; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: #4cc08a; box-shadow: 0 0 0 3px rgba(76, 192, 138, .18); }
.hero h1 { font-size: 46px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.hero p { margin: 0; font-size: 15px; color: var(--on-navy-2); max-width: 620px; }
.stats { margin: 0; border-top: 1px solid var(--navy-line); }
.stats div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
.stats dt { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--on-navy-2); }
.stats dt .ic { width: 18px; height: 18px; color: var(--on-navy-3); }
.stats dd { margin: 0; font-size: 14px; font-weight: 600; }
.stats dd b { font-size: 20px; }
.lift { margin-top: -88px; padding-bottom: 48px; }

/* ---- ツール ---- */
.tool { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); }
.groups { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; border-radius: 10px; background: var(--panel); border: 1px solid var(--ctl); }
.chip.off { background: transparent; border-style: dashed; border-color: #c6cde0; }
.chip.open { border: 1.5px solid var(--ink); }
.chip .tog { all: unset; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 36px; }
.chip .exp { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding-right: 10px; font-size: 12px; font-weight: 600; }
.chip.off .exp { color: var(--muted); }
.chip .exp .ic { width: 14px; height: 14px; color: var(--body); }
.chip .chev { width: 12px; height: 12px; transform: rotate(90deg); transition: transform .15s; }
.chip.open .chev { transform: rotate(-90deg); }
.box { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; background: var(--ink); flex: none; }
.box svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
[aria-checked="false"] > .box { background: #fff; border: 1.5px solid #a3abc6; }
[aria-checked="false"] > .box svg { display: none; }
[aria-checked="mixed"] > .box .tick { display: none; }
[aria-checked="true"] > .box .dash { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--mark); color: var(--mark-ink); font-size: 11px; font-weight: 600; }
.count { flex: none; font-size: 11px; color: var(--muted); }
.seg { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--track); }
.seg button { all: unset; cursor: pointer; box-sizing: border-box; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12px; white-space: nowrap; color: var(--body); text-align: center; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg button:focus-visible { outline: 2px solid var(--focus); }

.drop { padding: 16px 20px 18px; border-bottom: 1px solid var(--line-2); background: var(--panel-2); display: flex; flex-direction: column; gap: 10px; }
.drop-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.drop-head h3 { font-size: 13px; font-weight: 600; }
.drop-head .muted { font-size: 12px; }
.link-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px; border-radius: 7px; font-size: 12px; color: var(--body); }
.link-btn:hover { background: var(--track); }
.link-btn .ic { width: 14px; height: 14px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
.rule { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-2); }
.rule .tog { all: unset; cursor: pointer; flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; }
.rule .tog .box { margin-top: 2px; }
.rule .name { display: block; font-size: 12px; font-weight: 500; }
.rule .desc { display: block; font-size: 11px; color: var(--muted); line-height: 1.5; }
.rule .n { flex: none; font-size: 11px; font-weight: 600; color: var(--mark-ink); }
.more { all: unset; cursor: pointer; flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px 0 8px; border-radius: 7px; border: 1px solid #dde2ee; background: #fff; font-size: 11px; font-weight: 500; }
.more .ic { width: 12px; height: 12px; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; }
.svc div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); }
.svc b { font-size: 12px; font-weight: 500; white-space: nowrap; }
.svc span { font-size: 11px; color: var(--body); text-align: right; word-break: break-all; }
.drop p { margin: 0; font-size: 12px; color: var(--body); }
.api-toggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 9px; border: 1px solid var(--ctl); background: #fff; font-size: 12px; font-weight: 500; }

.panes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 500px; }
.pane-in { display: flex; flex-direction: column; border-right: 1px solid var(--line-2); min-width: 0; }
.pane-out { display: flex; flex-direction: column; background: var(--panel-2); min-width: 0; }
.input-area { position: relative; flex: 1 1 auto; display: flex; min-height: 420px; }
textarea { flex: 1 1 auto; width: 100%; border: 0; resize: none; padding: 24px; font: inherit; font-size: 14px; line-height: 1.9; color: var(--ink); background: #fff; }
textarea::placeholder { color: var(--faint); }
textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.examples { position: absolute; left: 0; right: 0; top: 64px; padding: 0 24px 24px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.examples[hidden] { display: none; }
.examples .hint { font-size: 11px; color: var(--muted); }
.examples ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.examples button { all: unset; pointer-events: auto; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 4px; border-bottom: 1px solid var(--line-2); }
.examples button:hover { background: var(--panel-2); }
.examples .t { display: block; font-size: 13px; font-weight: 500; }
.examples .k { display: block; font-size: 11px; color: var(--muted); }
.examples .ic { margin-left: auto; color: var(--faint); width: 14px; height: 14px; }
.foot { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 10px 16px 10px 20px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); min-height: 44px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--ink); margin: 0; }
.ghost, .primary, .small { cursor: pointer; border-radius: 10px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ghost { all: unset; cursor: pointer; height: 44px; padding: 0 14px; border-radius: 10px; font-size: 13px; color: var(--body); }
.ghost:hover { background: var(--track); }
.primary { height: 44px; padding: 0 20px; border: 0; background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; }
.primary:hover:not(:disabled) { background: #23397a; }
.primary:disabled { opacity: .6; cursor: default; }
.small { height: 32px; padding: 0 12px; border: 1px solid #dde2ee; background: #fff; font-size: 12px; border-radius: 8px; }
.small:disabled { opacity: .5; cursor: default; }
.small .ic { width: 14px; height: 14px; }
.head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line-2); }
.head h2 { font-size: 13px; font-weight: 600; flex: none; }
.head .muted { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.out { flex: 1 1 auto; padding: 20px; font-size: 14px; line-height: 2.1; overflow: auto; max-height: 640px; }
.text { white-space: pre-wrap; word-break: break-all; }
.empty { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.empty[hidden] { display: none; }
.empty svg { width: 22px; height: 22px; fill: none; stroke: #a3abc6; stroke-width: 1.8; stroke-linejoin: round; }
.empty p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
mark { color: inherit; border-radius: 3px; padding: 1px 2px; }
mark { background: var(--mark); box-shadow: inset 0 -2px 0 var(--mark-line); }
.redact { background: var(--ink); color: #fff; border-radius: 4px; padding: 2px 6px; font-size: 12px; font-weight: 500; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); line-height: 1.5; }
.list-row .l { display: block; font-size: 12px; color: var(--muted); }
.list-row .v { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row > span:first-child { min-width: 0; }
.st { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.st.pub { background: var(--ink); color: #fff; }
.st.log { background: var(--log); color: var(--body); }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw.pub { background: var(--mark); border: 1px solid var(--mark-line); }
.sw.log { background: var(--log); border: 1px solid var(--log-line); }

/* ---- 精度のページ ---- */
.band.short { padding-bottom: 112px; }
.page-hero { padding-top: 48px; display: flex; flex-direction: column; gap: 14px; }
.page-hero h1 { font-size: 40px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.page-hero p { margin: 0; font-size: 15px; color: var(--on-navy-2); max-width: 680px; }
.page-hero .meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--on-navy-3); }
.lift.acc { margin-top: -72px; display: flex; flex-direction: column; gap: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kpi { padding: 20px; gap: 12px; }
.kpi-t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.kpi-t > .ic { color: var(--brand); }
.kpi-v { display: flex; align-items: baseline; gap: 6px; }
.kpi-v b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; }
.kpi-v span { font-size: 13px; color: var(--muted); }
.kpi p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--body); }
.kpi small { font-size: 11px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.bar-row.own { color: var(--ink); font-weight: 700; }
.track { height: 10px; border-radius: 4px; background: var(--track); overflow: hidden; }
.fill { display: block; height: 100%; border-radius: 4px; background: #a3abc6; }
.own .fill { background: var(--brand); }
.bar-row .val { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.sec-h { display: flex; flex-direction: column; gap: 4px; }
.sec-h h2 { font-size: 17px; font-weight: 600; }
.sec-h p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.read { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.read .ib { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); flex: none; }
.read b { display: block; font-size: 13px; }
.read span { display: block; font-size: 12px; line-height: 1.6; color: var(--body); }
.legend-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ds { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-2); }
.ds-name b { display: block; font-size: 14px; }
.ds-name span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.ds-name code { display: block; font-size: 10px; color: var(--faint); }
.ds-bars { display: flex; flex-direction: column; gap: 6px; }
.ds-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px; gap: 10px; align-items: center; font-size: 12px; color: var(--muted); }
.ds-row.own { color: var(--ink); font-weight: 700; }
.ds-row .track { height: 12px; }
.ds-row .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 400; color: var(--muted); }
.ds-row .val b { font-size: 13px; color: var(--ink); }
.c-own { background: var(--brand) !important; }
.c-pre { background: #c2710c !important; }
.c-gli { background: #0e8a7d !important; }
.two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 0 12px 10px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-top: 1px solid var(--line-2); font-size: 13px; white-space: nowrap; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl code { font-size: 10px; color: var(--faint); margin-left: 8px; }
.pass, .hold { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12px; font-weight: 600; }
.pass { background: var(--ok-bg); color: var(--ok); }
.pass .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.hold { background: var(--line-2); color: var(--body); }
.notes { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.7; color: var(--body); }
.oss { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.oss div { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.oss a, a.ext { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; text-decoration: underline; text-decoration-color: #b3bfdf; text-underline-offset: 3px; }
.oss a .ic, a.ext .ic { width: 12px; height: 12px; stroke-width: 2; }
.oss span { font-size: 12px; line-height: 1.6; color: var(--body); }
.oss small { font-size: 11px; color: var(--muted); }
.term { display: inline-flex; align-items: center; gap: 3px; }
.tip { position: relative; display: inline-flex; }
.tip > button { all: unset; cursor: help; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 999px; color: var(--muted); }
.band .tip > button { color: var(--on-navy-2); }
.tip > button .ic { width: 14px; height: 14px; }
.tip > button:focus-visible { outline: 2px solid var(--focus); }
.pop { display: none; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 240px; padding: 10px 12px; border-radius: 10px; background: var(--navy); color: #eef1fa; font-size: 12px; font-weight: 400; line-height: 1.6; text-align: left; box-shadow: 0 8px 24px rgba(14, 22, 64, .25); z-index: 10; white-space: normal; letter-spacing: 0; }
.tip:hover .pop, .tip:focus-within .pop { display: block; }
.page-foot { font-size: 12px; color: var(--muted); padding: 8px 0 0; }

/* ---- 幅の狭い画面 ---- */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oss { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two { grid-template-columns: minmax(0, 1fr); }
  .bar { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top { gap: 12px; height: 56px; }
  .ver { display: none; }
  .tabs { margin-left: auto; }
  .band { padding-bottom: 84px; }
  .hero { padding-top: 28px; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero h1 { font-size: 30px; line-height: 1.3; }
  .hero p { font-size: 14px; }
  .lift { margin-top: -56px; padding-bottom: 32px; }
  .bar { padding: 14px; flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .bar .spacer, .count { display: none; }
  .seg { width: 100%; }
  .seg button { flex: 1 1 0; height: 34px; }
  .drop { padding: 14px; }
  .rules, .svc { grid-template-columns: minmax(0, 1fr); }
  .panes { grid-template-columns: minmax(0, 1fr); }
  .pane-in { border-right: 0; }
  .input-area { min-height: 430px; }
  textarea { padding: 16px; }
  .examples { top: 56px; padding: 0 16px 16px; }
  .pane-out { border-top: 1px solid var(--line-2); }
  .head { height: auto; padding: 14px; flex-wrap: wrap; }
  .head .seg { order: 3; }
  .out { padding: 16px 14px; max-height: none; }
  .foot { padding: 10px 14px; }
  .primary { flex: 1 1 auto; height: 48px; }
  .band.short { padding-bottom: 72px; }
  .page-hero { padding-top: 28px; }
  .page-hero h1 { font-size: 28px; }
  .lift.acc { margin-top: -48px; }
  .kpis, .reads, .oss { grid-template-columns: minmax(0, 1fr); }
  .ds { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ds-row { grid-template-columns: 80px minmax(0, 1fr) 120px; }
  .card { padding: 18px; }
  .pop { left: 0; transform: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.card-h { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.sec { display: flex; flex-direction: column; gap: 12px; }
.h-sm { font-size: 15px; font-weight: 600; }
.small-text { font-size: 12px; }
.sw.c-own, .sw.c-pre, .sw.c-gli { border: 0; }
.tbl b { font-weight: 700; }
.drop[hidden] { display: none; }
.input-area.filled { min-height: 300px; }
@media (max-width: 760px) { .input-area.filled { min-height: 220px; } }

/* ---- 精度のカード (押すと裏返る) ---- */
.flip { all: unset; display: block; height: 340px; perspective: 1200px; cursor: pointer; text-align: left; border-radius: 16px; }
.flip:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.flip-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.flip[aria-pressed="true"] .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: box-shadow .2s, border-color .2s; }
.flip:hover .face.card { box-shadow: 0 10px 30px -12px rgba(14, 22, 64, .28); border-color: #c9d3ec; }
.face.back { transform: rotateY(180deg); border-radius: 16px; padding: 22px; gap: 14px; background: linear-gradient(160deg, #0b133b 0%, #22336e 100%); color: #d5dcf2; }
.back-t { font-size: 14px; color: #fff; }
.face.back ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 12px; line-height: 1.7; }
.face.back li { padding-left: 14px; position: relative; }
.face.back li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 999px; background: #8ea5e2; }
.face.back li b { display: block; color: #fff; font-weight: 600; }
.kpi-t, .kpi-v, .kpi-p, .bars, .bar-row, .flip small { display: flex; }
.kpi-p { font-size: 12px; line-height: 1.7; color: var(--body); }
.bars { flex-direction: column; }
.bar-row { display: grid; }
.flip small { font-size: 11px; color: var(--muted); }
.flip-hint { margin-top: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--brand); }
.face.back .flip-hint { color: #aab7e3; font-weight: 400; }
.flip-hint .ic { width: 12px; height: 12px; stroke-width: 2.2; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.fill { transform-origin: left center; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { .fill { animation: none; } .flip-in { transition: none; } }
@media (max-width: 760px) { .flip { height: 330px; } }

/* ---- 白基調の帯 (紺の帯から変更) ---- */
.band { background: linear-gradient(180deg, #ffffff 0%, #edf1fb 100%); color: var(--ink); border-bottom: 1px solid var(--line); }
.tabs a { color: var(--muted); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--brand-soft); color: var(--ink); }
.ver { color: var(--muted); }
.pill { background: #fff; border-color: var(--line); color: var(--body); }
.hero { grid-template-columns: minmax(0, 1fr) 520px; gap: 40px; align-items: center; padding-top: 24px; }
.hero h1 { color: #0b133b; background: linear-gradient(180deg, #0b133b 30%, #506baa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--body); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; color: var(--body); }
.facts li b { color: var(--ink); }
.facts .ic { width: 15px; height: 15px; color: var(--brand); stroke-width: 1.9; }
.hero-figure { display: flex; justify-content: center; }
.hero-art { display: block; width: 100%; max-width: 520px; height: auto; }
.page-hero h1 { color: #0b133b; }
.page-hero p { color: var(--body); }
.page-hero .meta { color: var(--muted); }
.band .tip > button { color: var(--muted); }
@media (max-width: 1080px) { .hero { grid-template-columns: minmax(0, 1fr) 380px; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 20px; }
  .hero-figure { order: -1; }
  .hero-art { max-width: 300px; }
}

/* ---- 見た目と操作の改善 (白すぎる・ツールの位置・例文・ハイライトの種類・項目の帯・フッター) ---- */
body { background: #eef2f8; }
.band { background: radial-gradient(700px 320px at 88% 30%, #d9e3fb 0%, rgba(217, 227, 251, 0) 70%), linear-gradient(180deg, #f7f9ff 0%, #e3eaf8 100%); border-bottom: 1px solid #d3dbef; padding-bottom: 96px; }
.band.short { padding-bottom: 112px; }
.hero { grid-template-columns: minmax(0, 1fr) 380px; padding-top: 8px; }
.hero h1 { font-size: 40px; }
.hero-art { max-width: 380px; }
.lift { margin-top: -64px; }
.tool { box-shadow: 0 1px 2px rgba(14, 22, 64, .08), 0 24px 48px -16px rgba(14, 22, 64, .28); }
.count { font-size: 12px; color: var(--muted); }
.count b { color: var(--ink); }
.chip .tog { width: auto; gap: 8px; padding: 0 10px; font-size: 12px; font-weight: 600; }
.chip .tog .ic { width: 14px; height: 14px; color: var(--body); }
.chip.off .tog { color: var(--muted); }
.chip .exp { gap: 4px; padding: 0 10px 0 9px; border-left: 1px solid var(--line); font-size: 11px; font-weight: 500; color: var(--muted); }
.in-head { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 24px; border-bottom: 1px solid var(--line-2); }
.in-title { font-size: 13px; font-weight: 600; }
.pick { position: relative; }
.pick .small { color: var(--ink); font-weight: 500; }
.pick .small .ic { color: var(--brand); }
.pick-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 320px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -8px rgba(14, 22, 64, .25); }
.pick-list[hidden] { display: none; }
.pick-list button { all: unset; cursor: pointer; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.pick-list button:hover, .pick-list button:focus-visible { background: var(--panel-2); }
.pick-list .t { display: block; font-size: 13px; font-weight: 500; }
.pick-list .k { display: block; font-size: 11px; color: var(--muted); }
.pick-list .ic { margin-left: auto; width: 14px; height: 14px; color: var(--faint); }
.examples { top: 60px; }
.auto { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); }
.live { width: 8px; height: 8px; border-radius: 999px; background: #4cc08a; box-shadow: 0 0 0 4px rgba(76, 192, 138, .18); }
.auto.error .live { background: #e8613f; box-shadow: 0 0 0 4px rgba(232, 97, 63, .18); }
mark .tag { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; vertical-align: 1px; white-space: nowrap; }
.badge-up { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 700; }
.badge-up .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.flip .track { height: 14px; }
.flip .bar-row { grid-template-columns: 88px minmax(0, 1fr) 76px; }
.flip { height: 370px; }
@media (max-width: 1080px) { .hero { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { display: none; }
  .hero h1 { font-size: 28px; }
  .band { padding-bottom: 72px; }
  .lift { margin-top: -48px; }
  .in-head { padding: 0 12px 0 16px; }
  .pick-list { width: min(320px, calc(100vw - 48px)); }
  .examples { top: 52px; }
  .foot-in { gap: 12px; }
  .flip { height: 380px; }
}
/* スマホ: グループは 1 行に並べて横にスクロール (PC と同じ並び) */
@media (max-width: 760px) {
  .bar { gap: 8px; }
  .groups { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .groups::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .count { display: block; font-size: 11px; }
}

/* ---- 精度のページを短く ---- */
.page-hero { padding-top: 32px; gap: 10px; }
.page-hero h1 { font-size: 34px; }
.ds-tbl th[scope="row"] { font-weight: 500; text-align: left; padding: 10px 12px; border-top: 1px solid var(--line-2); font-size: 13px; }
.ds-tbl td { font-variant-numeric: tabular-nums; }
.ds-tbl td.best { font-weight: 700; color: var(--ink); }
.mini { display: inline-block; width: 64px; height: 8px; margin-right: 8px; border-radius: 4px; background: var(--track); overflow: hidden; vertical-align: 0; }
.mini i { display: block; height: 100%; border-radius: 4px; }
.verdicts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.verdicts li { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.verdicts .pass { background: var(--ok-bg); color: var(--ok); }
.verdicts .pass .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.verdicts .hold { background: var(--line-2); color: var(--body); }
.fine { margin: 0; font-size: 12px; color: var(--muted); }
.oss-links { margin: 0; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.two { align-items: stretch; }
@media (max-width: 760px) { .mini { width: 32px; margin-right: 6px; } .ds-tbl th, .ds-tbl td { padding-left: 6px; padding-right: 6px; } }
/* ---- 精度のページの色を目立たせる ---- */
.band.short { background: radial-gradient(800px 360px at 85% 20%, #c9d7fa 0%, rgba(201, 215, 250, 0) 70%), linear-gradient(180deg, #eef3ff 0%, #d9e3f7 100%); }
.page-hero h1 { color: #0b133b; background: linear-gradient(90deg, #0b133b 0%, #2c4489 55%, #506baa 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.face.card.kpi { border-top: 4px solid var(--brand); }
.kpi-v b { color: var(--brand); }
.badge-up { background: #11603a; color: #fff; }
.flip .own .fill { background: linear-gradient(90deg, #2c4489, #4f6fd1); }
.flip .fill { background: #b9c1d6; }
.flip-hint { color: #2c4489; }
.ds-tbl td.best { color: var(--brand); }
.verdicts .pass { background: #11603a; color: #fff; }

/* ---- 文章の種類ごとの総合点: ツールの棒を縦に並べる (2 列) ---- */
.ds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ds2 { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ds2-name { font-size: 13px; font-weight: 600; }
.ds2 .ds-row { grid-template-columns: 88px minmax(0, 1fr) 44px; }
.ds2 .ds-row .track { height: 10px; }
@media (max-width: 1080px) { .ds-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ds2 { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
/* ---- 精度の上のカードをすっきりさせる ---- */
.flip { height: 286px; }
.face.card.kpi { border-top: 1px solid var(--line); padding: 22px 22px 18px; gap: 14px; box-shadow: 0 1px 2px rgba(14, 22, 64, .05); }
.flip:hover .face.card { box-shadow: 0 14px 34px -14px rgba(14, 22, 64, .30); transform: translateY(-2px); }
.face { transition: box-shadow .2s, transform .2s; }
.kpi-t { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.kpi-t > .ic { color: var(--muted); }
.kpi-v { align-items: baseline; gap: 6px; }
.kpi-v b { font-size: 42px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.badge-up { background: transparent; color: #11603a; height: auto; padding: 0; font-size: 12px; font-weight: 600; border-radius: 0; }
.flip .bars { border-top: 0; padding-top: 0; gap: 8px; }
.flip .bar-row { grid-template-columns: 92px minmax(0, 1fr) 70px; font-size: 12px; }
.flip .track { height: 6px; border-radius: 3px; background: #edf0f6; }
.flip .fill { border-radius: 3px; background: #c3cad9; }
.flip .own .fill { background: var(--ink); }
.flip small { display: none; }
.flip-hint { font-size: 12px; font-weight: 600; color: var(--muted); }
.flip:hover .flip-hint { color: var(--brand); }
@media (max-width: 760px) { .flip { height: 290px; } }
/* カードが何の数字かを書く */
.kpi-ctx { display: block; margin-top: -6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.flip { height: 322px; }
@media (max-width: 760px) { .flip { height: 326px; } }
/* 製品名が長くなったので、棒の名前の欄を広げる */
.flip .bar-row { grid-template-columns: 118px minmax(0, 1fr) 84px; }
.flip .bar-row .val { white-space: nowrap; }
.ds2 .ds-row { grid-template-columns: 124px minmax(0, 1fr) 44px; }
.ds2 { grid-template-columns: 110px minmax(0, 1fr); }
/* カードの中の棒: 名前と数字を上、棒を下の全幅に */
.flip .bar-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n v" "t t"; row-gap: 4px; }
.flip .bar-row > span:nth-child(1) { grid-area: n; }
.flip .bar-row > .track { grid-area: t; }
.flip .bar-row > .val { grid-area: v; }
.flip .bars { gap: 10px; }
.flip { height: 368px; }
@media (max-width: 760px) { .flip { height: 372px; } }

/* ページの切り替え: 精度のページがあることに気づけるよう、白い枠のタブにしてアイコンを付ける */
.tabs { gap: 4px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(22, 32, 79, .06); }
.tabs a { gap: 6px; height: 34px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--body); }
.tabs a .ic { width: 16px; height: 16px; color: var(--brand); }
.tabs a:hover { background: var(--panel-2); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--brand); color: #fff; }
.tabs a[aria-current="page"] .ic { color: #fff; }
@media (max-width: 560px) {
  .tabs a { padding: 0 10px; font-size: 13px; }
  .tabs a .ic { display: none; }
  .ver { display: none; }
}

/* ---- 仕上げ ---- */
/* カードの裏 (紺) の「もう一度押すと戻ります」: 重ねたときも読める色に保つ */
.flip .face.back .flip-hint, .flip:hover .face.back .flip-hint { color: #d5dcf2; font-weight: 500; }
/* スマホ: グループが横に続いていることが分かるよう、右端を薄くする */
@media (max-width: 760px) {
  .groups { box-sizing: border-box; flex: none; width: calc(100% + 28px); max-width: calc(100% + 28px); padding-right: 44px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
}
/* キーボードで選んだボタンには、必ず枠を出す (all: unset で消えていたものを含む) */
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.chip .tog:focus-visible, .chip .exp:focus-visible, .examples button:focus-visible, .pick-list button:focus-visible { outline-offset: -2px; }
.flip:focus-visible { outline-offset: 4px; border-radius: 16px; }
/* テストに使ったデータ (外部の公開データの一覧) */
.src-wrap { overflow-x: auto; }
.src-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.src-tbl th, .src-tbl td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line-2); white-space: nowrap; }
.src-tbl thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 0; }
.src-tbl th[scope="row"] { font-weight: 600; color: var(--ink); }
.src-tbl td { color: var(--body); }
@media (max-width: 760px) {
  .src-tbl thead { display: none; }
  .src-tbl tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .src-tbl tbody tr:first-child { border-top: 0; }
  .src-tbl th, .src-tbl td { padding: 0; border: 0; white-space: normal; }
  .src-tbl td:nth-child(3) { grid-column: 1 / -1; }
  .src-tbl td:nth-child(4) { grid-row: 1; grid-column: 2; font-size: 12px; color: var(--muted); }
  .src-tbl td:nth-child(2) { grid-column: 1 / -1; font-size: 12px; }
}
/* グループのボタンは all: unset なので、選んだときの枠をここで付け直す */
.chip .tog:focus-visible, .chip .exp:focus-visible, .rule .tog:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 8px; }
