/*
 * 配布サイトの見た目（工程E・2026-08-04）。
 *
 * アプリと同じ配色（墨色＋深い青緑）と字組みにそろえる。
 * サイトは静的なHTMLだけで作る（動く仕組み・外部の読み込みは一切なし）。
 * アプリのCSSを取り込まないのは、サイトの都合でアプリの見た目が変わるのを防ぐため。
 */

:root {
  --canvas: #f4f3ef;
  --surface: #ffffff;
  --surface-muted: #ecece6;
  --text: #24302f;
  --text-subtle: #5e6a67;
  --border: #d2d6ce;
  --ink: #243a42;
  --ink-text: #f4f5ef;
  --accent: #176b68;
  --accent-strong: #0e5353;
  --accent-soft: #dcebea;
  /* 深い青緑の上に置く文字の色。暗い表示では青緑が明るくなるので、文字は逆に暗くする
     （白のままだと 2:1 ほどしかなく読めない） */
  --on-accent: #ffffff;
  --warning: #9a681d;
  --warning-soft: #f7edd8;
  --font-heading: "Yu Gothic UI", "BIZ UDPGothic", Meiryo, sans-serif;
  --font-body: Meiryo, "Yu Gothic UI", "BIZ UDPGothic", sans-serif;
  --radius: 8px;
  --width: 860px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #182120;
    --surface: #222d2b;
    --surface-muted: #303b39;
    --text: #edf1ed;
    --text-subtle: #c1cbc5;
    --border: #475450;
    --ink: #111b1d;
    --ink-text: #f0f3ee;
    --accent: #65b9b1;
    --accent-strong: #93d6cf;
    --accent-soft: #224542;
    --on-accent: #10201f;
    --warning: #e8bd6a;
    --warning-soft: #4e3d22;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.3;
}

a {
  color: var(--accent);
}

/* ------------------------------------------------------------ 骨格 */

.site-header {
  background: var(--ink);
  color: var(--ink-text);
}

.site-header__inner,
.wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-text);
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.brand span {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-left: auto;
  font-size: 14px;
}

.site-nav a {
  color: var(--ink-text);
  text-decoration: none;
  opacity: 0.85;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
}

main {
  padding: 40px 0 56px;
}

.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

/* ------------------------------------------------------------ 部品 */

.lead {
  color: var(--text-subtle);
}

.card {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card > :first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

.card--quiet {
  background: var(--surface-muted);
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--warning-soft);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
}

.note > :first-child {
  margin-top: 0;
}

.note > :last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button--sub {
  padding: 10px 20px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  font-size: 15px;
}

.hero {
  padding: 8px 0 4px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.hero__catch {
  margin: 0 0 20px;
  color: var(--text-subtle);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 24px 0 8px;
}

.hero__meta {
  color: var(--text-subtle);
  font-size: 13px;
}

.points {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.points li {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.points b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-family: var(--font-heading);
}

.points p {
  margin: 0;
  font-size: 14px;
}

/* 手順（インストールの案内） */
.steps {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  margin: 0 0 20px;
  padding: 18px 24px 18px 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps > li::before {
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  width: 28px;
  height: 28px;
  content: counter(step);
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  place-items: center;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.steps p {
  margin: 0 0 8px;
}

.steps > li > :last-child {
  margin-bottom: 0;
}

/* 画面の見本（青い警告など） */
.mock {
  max-width: 480px;
  margin: 12px 0;
  padding: 16px 18px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
}

.mock__title {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.mock__row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
}

.mock__btn {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
}

.mock__btn--mark {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

/* よくある質問 */
.qa {
  margin: 20px 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.qa:last-child {
  border-bottom: 0;
}

.qa h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.qa p {
  margin: 0 0 8px;
  color: var(--text-subtle);
}

.qa > :last-child {
  margin-bottom: 0;
}

/* 表（動作環境・特記事項） */
.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  width: 34%;
  color: var(--text-subtle);
  font-weight: 700;
  white-space: nowrap;
}

.hash {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 26px;
  }

  th {
    width: auto;
    white-space: normal;
  }
}
