/* プロンプターの「使い方」「免責事項」で共通。1 列の読みもの。色と書体はプロンプターの入力の画面と同じ */
:root {
  --bg: #F0EFE9;
  --surface: #FAF9F5;
  --ink: #19232F;
  --ink-soft: #5C6673;
  --line: rgba(25, 35, 47, 0.14);
  --accent: #8C6B3F;
  --btn-bg: #19232F;
  --btn-fg: #F0EFE9;
  /* 書体は端末に入っているものだけを使う。Google Fonts などから読み込むと、開いた人の IP アドレスが外へ出る */
  --font-head: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #19232F;
    --surface: #232E3C;
    --ink: #F0EFE9;
    --ink-soft: #A7AFB9;
    --line: rgba(240, 239, 233, 0.16);
    --accent: #B08A54;
    --btn-bg: #B08A54;
    --btn-fg: #19232F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #19232F;
  --surface: #232E3C;
  --ink: #F0EFE9;
  --ink-soft: #A7AFB9;
  --line: rgba(240, 239, 233, 0.16);
  --accent: #B08A54;
  --btn-bg: #B08A54;
  --btn-fg: #19232F;
  color-scheme: dark;
}
/* 中国語・韓国語・アラビア語は、その言語の字形を持つ端末の書体を使う */
:root:lang(en), :root:lang(fr), :root:lang(es), :root:lang(pt) {
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root:lang(zh-CN) {
  --font-head: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
:root:lang(zh-HK) {
  --font-head: "PingFang HK", "PingFang TC", "Noto Sans HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-body: "PingFang HK", "PingFang TC", "Noto Sans HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}
:root:lang(ko) {
  --font-head: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-body: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
:root:lang(ar) {
  --font-head: "Noto Sans Arabic", "Geeza Pro", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Noto Sans Arabic", "Geeza Pro", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-underline-offset: 3px; }
select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.doc {
  max-width: 40em;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 16px 56px;
  display: grid;
  gap: 24px;
}
.doc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { font-size: 13px; color: var(--ink-soft); }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.lang svg { width: 18px; height: 18px; flex: none; }
.lang select {
  max-width: 62vw;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
}
article { display: grid; gap: 28px; }
.doc-head { display: grid; gap: 4px; }
/* 会社のロゴ（金の Δ と DELPHOI の字）。形は /assets の SVG を型として使い、色はここで決める（暗い画面では字が明るくなる）。字は読み上げ用に残し、見た目は消す */
.brand { justify-self: start; direction: ltr; display: inline-flex; align-items: flex-end; font-size: 0; line-height: 0; color: transparent; text-decoration: none; }
.brand::before, .brand::after { content: ""; display: block; }
/* 字の後ろに LAB（無料の道具をまとめる名前「DELPHOI Lab」。2026-10-30）。疑似要素も並びに入るので、order で字の後ろに置く */
.brand::after { order: 1; }
.brand .lab { order: 2; margin-left: 7px; font-size: 14px; line-height: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.brand::before { width: 16px; height: 18.5px; background: var(--accent); -webkit-mask: url("../assets/delta-icon-navy.svg") center / contain no-repeat; mask: url("../assets/delta-icon-navy.svg") center / contain no-repeat; }
.brand::after { margin-left: 8px; width: 80px; height: 11px; background: var(--ink); -webkit-mask: url("../assets/delphoi-wordmark-02-navy.svg") center / contain no-repeat; mask: url("../assets/delphoi-wordmark-02-navy.svg") center / contain no-repeat; }
h1 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.35; text-wrap: balance; }
.lead { margin: 4px 0 0; color: var(--ink-soft); }
.trans { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
section { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
section.callout { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
h2 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.5; text-wrap: balance; }
ul, ol { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 8px; }
p { margin: 0; }
kbd { font-family: inherit; font-size: 12px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); white-space: nowrap; }
.open {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.foot { display: grid; gap: 4px; font-size: 13px; color: var(--ink-soft); }
