
:root {
  --accent: #3651D4; --accent-text: #fff; --accent-soft: #E8ECFB; --bg: #F3F4F6; --card: #fff; --text: #1B1D22;
  --muted: #5F6470; --line: #E3E5EA; --note: #EEF1FD; --warning: #FFF4E0; --warning-line: #F0B54A; --mark: #FFE45C;
  --mark-text: #1A1A1A; --code: #F1F2F5; --shadow: 0 1px 2px rgba(16, 24, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #8FA0FF; --accent-text: #0E1330; --accent-soft: #232A4D; --bg: #111317; --card: #1B1E24; --text: #ECEEF2;
    --muted: #A3A8B4; --line: #2C3038; --note: #1E2440; --warning: #3A2E17; --warning-line: #B9852A; --code: #262A31;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto,
  "Hiragino Sans", "Noto Sans JP", "Noto Sans", sans-serif; }
a { color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__in { max-width: 920px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); min-width: 0; flex: 1; }
.brand img { border-radius: 7px; flex: none; }
.brand__name { font-weight: 700; white-space: nowrap; }
.brand__sub { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub::before { content: "|"; margin-inline-end: 8px; color: var(--line); }
.language label { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.language svg { width: 18px; height: 18px; fill: currentColor; }
.language select { font: inherit; font-size: 14px; color: var(--text); background: transparent; border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 6px; max-width: 130px; }
.main { max-width: 920px; margin: 0 auto; padding: 16px; }
.hero { text-align: center; padding: 28px 0 20px; }
.hero h1 { font-size: clamp(24px, 5vw, 32px); margin: 0 0 16px; line-height: 1.3; }
.bar { margin: 4px 0 8px; }
.search { position: relative; display: flex; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search__icon { width: 22px; height: 22px; fill: var(--muted); margin-inline-start: 14px; flex: none; }
.search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit;
  padding: 10px 10px; outline: none; }
.search--big input[type=search] { padding: 14px 10px; font-size: 17px; }
.search button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-text);
  padding: 8px 18px; margin: 4px; cursor: pointer; flex: none; }
.suggest { position: absolute; top: calc(100% + 6px); inset-inline: 0; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 8px 24px rgba(16, 24, 40, .14); z-index: 20; overflow: hidden; text-align: start; }
.suggest a { display: block; padding: 10px 16px; text-decoration: none; color: var(--text); border-top: 1px solid var(--line); }
.suggest a:first-child { border-top: 0; }
.suggest a:hover, .suggest a:focus { background: var(--accent-soft); outline: none; }
.suggest small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 12px 0; box-shadow: var(--shadow); }
.card__title { font-size: 18px; margin: 0 0 8px; line-height: 1.4; }
.card__title--big { font-size: 24px; }
.section-title { font-size: 18px; margin: 24px 4px 4px; }
.muted { color: var(--muted); margin: 0 0 8px; }
.links { list-style: none; margin: 0; padding: 0; }
.links li + li { border-top: 1px solid var(--line); }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; color: var(--text); text-decoration: none; }
.links a:hover span { color: var(--accent); text-decoration: underline; }
.links svg { width: 20px; height: 20px; fill: var(--muted); flex: none; }
[dir=rtl] .links svg { transform: scaleX(-1); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 12px; }
.topic { display: flex; flex-direction: column; }
.topic__head { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--text); margin-bottom: 6px; }
.topic__icon { font-size: 26px; line-height: 1; background: var(--accent-soft); border-radius: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; flex: none; }
.topic__name { display: block; font-weight: 700; font-size: 17px; }
.topic__desc { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.see-all { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.crumbs { font-size: 14px; color: var(--muted); margin: 8px 4px 0; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(22px, 4.5vw, 28px); line-height: 1.35; margin: 0 0 4px; }
.body h2 { font-size: 20px; margin: 28px 0 8px; padding-top: 4px; line-height: 1.4; scroll-margin-top: 72px; }
.body h3 { font-size: 17px; margin: 20px 0 6px; line-height: 1.4; scroll-margin-top: 72px; }
.body p { margin: 10px 0; }
.body ul, .body ol { padding-inline-start: 1.4em; margin: 10px 0; }
.body li { margin: 4px 0; }
.body code { background: var(--code); border-radius: 5px; padding: 1px 5px; font-size: .92em; }
.body pre { background: var(--code); border-radius: 10px; padding: 12px; overflow-x: auto; }
.body pre code { background: none; padding: 0; }
.body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.note { background: var(--note); border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; margin: 12px 0; }
.note--warning { background: var(--warning); border-color: var(--warning-line); }
.table { overflow-x: auto; margin: 12px 0; }
.table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.table th { background: var(--accent-soft); }
figure { margin: 16px 0; text-align: center; }
figure img, figure video { max-width: 100%; max-height: 70vh; border-radius: 12px; border: 1px solid var(--line); background: var(--code); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.zoom { cursor: zoom-in; display: inline-block; }
.help-video .yt, .help-video iframe { position: relative; display: block; width: 100%; max-width: 720px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 0; background: #000; }
.help-video .yt img { width: 100%; height: 100%; object-fit: cover; max-height: none; border: 0; border-radius: 0; opacity: .9; }
.yt__play { position: absolute; inset: 0; margin: auto; width: 68px; height: 48px; background: #FF0033; border-radius: 14px; }
.yt__play::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid;
  border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; transform: translateX(2px); }
.toc { background: var(--bg); border-radius: 12px; padding: 10px 16px; margin: 12px 0; font-size: 15px; }
.toc p { margin: 0; font-weight: 700; }
.toc ol { margin: 4px 0 0; padding-inline-start: 1.4em; }
mark { background: var(--mark); color: var(--mark-text); border-radius: 3px; }
.results { list-style: none; margin: 0; padding: 0; }
.results li + li { border-top: 1px solid var(--line); }
.results a { display: block; padding: 12px 2px; text-decoration: none; color: var(--text); }
.result__title { display: block; font-weight: 700; color: var(--accent); }
.result__topic { display: block; font-size: 13px; color: var(--muted); }
.result__snippet { display: block; font-size: 15px; color: var(--muted); line-height: 1.6; }
.feedback { text-align: center; }
.feedback__q { font-weight: 700; margin: 0 0 10px; }
.feedback__buttons { display: flex; gap: 10px; justify-content: center; }
.feedback button, .button { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 8px 20px; cursor: pointer; text-decoration: none; display: inline-block; }
.feedback button[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.feedback__more { margin-top: 12px; display: grid; gap: 8px; text-align: start; }
.feedback__more textarea { font: inherit; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--bg); color: var(--text); }
.feedback__more button { justify-self: center; background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.feedback__thanks { margin: 10px 0 0; color: var(--muted); }
.contact { text-align: center; }
.contact .button { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 8px 16px 32px; }
.foot a { color: var(--muted); }
.foot p { margin: 4px 0 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-width: 96vw; max-height: 92vh; display: block; border-radius: 8px; }
.lightbox__close { position: fixed; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .9); font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) {
  .brand__sub { display: none; }
  .card { padding: 16px; border-radius: 14px; }
  .search button { padding: 8px 14px; }
}
