/* SPDX-License-Identifier: GPL-3.0-or-later */
/* Copyright (C) 2026 Konayukiw */

:root {
  color-scheme: light;
  --bg: #f6fbff;
  --bg-tint: #eef7fe;
  --surface: #ffffff;
  --surface-2: #f6f8fe;
  --ink: #33415c;
  --ink-strong: #1f2a44;
  --muted: #5d6984;
  --line: #e3e8f8;
  --line-strong: #cbd5ea;
  --on-accent: #ffffff;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  --sky: #3aaee8;
  --sky-deep: #1679b8;
  --sky-light: #7fd0f5;
  --sky-soft: #e5f5fd;
  --pink: #ff8ab4;
  --pink-deep: #cf386f;
  --pink-soft: #ffeef4;
  --peri: #7391ee;
  --peri-deep: #5674dc;
  --peri-soft: #edf0fd;
  --ok: #23a27b;
  --ok-soft: #e3f6ef;
  --warn: #c77a14;
  --warn-soft: #fff4e2;
  --danger: #d9466f;
  --danger-soft: #ffe9ef;
  --header-bg: rgba(255, 255, 255, 0.82);
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Zen Maru Gothic", monospace;
  --radius: 16px;
  --radius-s: 12px;
  --wrap: 1120px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1424;
    --bg-tint: #111a2e;
    --surface: #17203a;
    --surface-2: #1c2744;
    --ink: #dbe3f4;
    --ink-strong: #f3f6fc;
    --muted: #a3aec7;
    --line: #2a3657;
    --line-strong: #3a4870;
    --on-accent: #0d1424;
    --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d1424' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
    --sky: #4cbbef;
    --sky-deep: #7fd0f5;
    --sky-light: #9edcf8;
    --sky-soft: #15304a;
    --pink: #ff8ab4;
    --pink-deep: #ff9fc3;
    --pink-soft: #3a1c2b;
    --peri: #8ea5f5;
    --peri-deep: #a9baf8;
    --peri-soft: #1e2648;
    --ok: #4fd1a5;
    --ok-soft: #123a30;
    --warn: #f1b04d;
    --warn-soft: #3a2a12;
    --danger: #ff7d9f;
    --danger-soft: #3d1724;
    --header-bg: rgba(13, 20, 36, 0.82);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1424;
  --bg-tint: #111a2e;
  --surface: #17203a;
  --surface-2: #1c2744;
  --ink: #dbe3f4;
  --ink-strong: #f3f6fc;
  --muted: #a3aec7;
  --line: #2a3657;
  --line-strong: #3a4870;
  --on-accent: #0d1424;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230d1424' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
  --sky: #4cbbef;
  --sky-deep: #7fd0f5;
  --sky-light: #9edcf8;
  --sky-soft: #15304a;
  --pink: #ff8ab4;
  --pink-deep: #ff9fc3;
  --pink-soft: #3a1c2b;
  --peri: #8ea5f5;
  --peri-deep: #a9baf8;
  --peri-soft: #1e2648;
  --ok: #4fd1a5;
  --ok-soft: #123a30;
  --warn: #f1b04d;
  --warn-soft: #3a2a12;
  --danger: #ff7d9f;
  --danger-soft: #3d1724;
  --header-bg: rgba(13, 20, 36, 0.82);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--sky-deep);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--pink-deep);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink-strong);
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0;
}

p {
  margin: 0;
}

code,
kbd,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
  word-break: break-word;
}

kbd {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.82em;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: 7px;
  padding: 0 0.5em;
  margin: 0 0.08em;
  white-space: nowrap;
}

.ic {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.22em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--sky);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: 860px;
}

.sp {
  display: none;
}

.site-header {
  --island-ease: cubic-bezier(0.32, 0.72, 0, 1);
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}

.header-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: var(--header-h);
  margin-top: 0;
  padding-inline: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  overflow: visible;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border: 1px solid transparent;
  border-width: 0 0 1px;
  border-radius: 0;
  transition:
    width 0.55s var(--island-ease),
    height 0.55s var(--island-ease),
    margin-top 0.55s var(--island-ease),
    padding 0.55s var(--island-ease),
    border-radius 0.55s var(--island-ease),
    border-color 0.3s,
    box-shadow 0.3s,
    background-color 0.3s;
}

.site-header.is-scrolled .header-inner {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(51, 65, 92, 0.06);
}

.site-header.is-scrolled:not(.is-peek):not(:focus-within):not(.is-open) .header-inner {
  width: 128px;
  height: 50px;
  margin-top: 9px;
  padding-inline: 26px;
  overflow: hidden;
  border-width: 1px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 28px rgba(51, 65, 92, 0.14), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  cursor: pointer;
}

.site-header.is-scrolled:not(.is-peek):not(:focus-within):not(.is-open) .site-nav,
.site-header.is-scrolled:not(.is-peek):not(:focus-within):not(.is-open) .nav-toggle {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0s 0.15s;
}

/* 縮むときは項目を先にすっと消し、広がるときは枠が伸びるのを追って左から順に出す */
.site-header.is-scrolled:not(.is-peek):not(:focus-within):not(.is-open) .site-nav > * {
  opacity: 0;
  transform: translateX(-10px);
  transition-duration: 0.12s;
  transition-delay: 0s;
}

.site-header.is-scrolled:not(.is-peek):not(:focus-within):not(.is-open) .brand img {
  height: 38px;
}

.site-nav,
.nav-toggle {
  transition: opacity 0.3s 0.18s, visibility 0s 0.18s;
}

.site-nav > * {
  --d: calc(0.16s + var(--i, 0) * 0.035s);
  transition:
    opacity 0.32s ease var(--d),
    transform 0.45s var(--island-ease) var(--d),
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}

.site-nav > :nth-child(2) { --i: 1; }
.site-nav > :nth-child(3) { --i: 2; }
.site-nav > :nth-child(4) { --i: 3; }
.site-nav > :nth-child(5) { --i: 4; }
.site-nav > :nth-child(6) { --i: 5; }
.site-nav > :nth-child(7) { --i: 6; }

.brand {
  display: flex;
  align-items: center;
  flex: none;
  margin-right: auto;
}

.brand img {
  height: 46px;
  width: auto;
  transition: height 0.55s var(--island-ease);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:not(.btn):hover,
.site-nav a.is-current {
  background: var(--sky-soft);
  color: var(--sky-deep);
}

.site-nav .nav-report {
  color: var(--pink-deep);
}

.site-nav .nav-report:hover {
  background: var(--pink-soft);
  color: var(--pink-deep);
}

.site-nav .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-strong);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .ic {
  width: 22px;
  height: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--on-accent);
  text-decoration: none;
  background: var(--sky-deep);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8em 1.4em;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn:hover {
  color: var(--on-accent);
  background: color-mix(in srgb, var(--sky-deep) 86%, var(--ink-strong));
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.btn-pink {
  background: var(--pink-deep);
}

.btn-pink:hover {
  background: color-mix(in srgb, var(--pink-deep) 86%, var(--ink-strong));
}

.btn-ghost {
  color: var(--ink-strong);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--sky-deep);
  background: var(--surface);
  border-color: var(--sky-deep);
}

.btn-small {
  font-size: 0.88rem;
  padding: 0.5em 1em;
}

.btn-large {
  font-size: 1.05rem;
  padding: 0.85em 1.6em;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 48px 0 72px;
}

.snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-logo {
  margin: 0 0 12px -8px;
  line-height: 0;
}

.hero-logo img {
  width: min(100%, 520px);
}

.hero-lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
  color: var(--ink-strong);
  margin-bottom: 18px;
}

.hero-catch {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem);
  line-height: 1.4;
  color: var(--sky-deep);
  margin-bottom: 12px;
}

.hero-catch span {
  display: inline-block;
}

.hero-sub {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-stats .ic {
  color: var(--muted);
}

.hero-stats b {
  font-family: var(--font-head);
  color: var(--ink-strong);
}

.demo {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
}

.demo-bar {
  padding: 10px 22px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.demo-app {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-body {
  padding: 22px 26px 18px;
}

.demo-keys {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 1.8em;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.demo-keys-label {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--muted);
}

.demo-keys-text {
  font-family: var(--font-mono);
  color: var(--pink-deep);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.demo-line {
  min-height: 3.6em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  margin: 18px 0 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.85rem);
  color: var(--ink-strong);
  line-height: 1.5;
}

.demo-line .ctx {
  color: var(--muted);
  font-weight: 400;
  white-space: pre;
}

.demo-line .seg {
  white-space: pre;
  padding-bottom: 1px;
}

.demo-line .seg.is-ja {
  border-bottom: 2px dotted var(--ink);
}

.demo-line .seg.is-en {
  color: var(--sky-deep);
  border-bottom: 2px dotted var(--sky);
}

.demo-line .seg.is-conv {
  border-bottom: 3px solid var(--ink-strong);
  background: var(--sky-soft);
  border-radius: 4px 4px 0 0;
}

.demo-line .seg.is-conv.is-en {
  background: transparent;
  border-bottom: 2px solid var(--sky);
}

.demo-line .seg.is-done {
  border-bottom-color: transparent;
  background: transparent;
  transition: border-color 0.3s, background 0.3s;
}

.demo-line .seg.is-done.is-en {
  color: var(--ink-strong);
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1.15em;
  margin-left: 2px;
  background: var(--pink);
  border-radius: 2px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.demo-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 2.2em;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-press kbd {
  font-size: 0.85rem;
  animation: press 0.6s ease-out;
}

@keyframes press {
  0% { transform: translateY(-6px) scale(1.15); background: var(--pink-soft); }
  40% { transform: translateY(2px) scale(0.96); }
  100% { transform: none; }
}

.demo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.demo-picker button {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.demo-picker button:hover {
  border-color: var(--sky);
}

.demo-picker button[aria-pressed="true"] {
  border-color: var(--sky);
  background: var(--sky-soft);
  color: var(--sky-deep);
  font-weight: 700;
}

.demo-picker .demo-play {
  margin-left: auto;
  font-family: var(--font-head);
}

.section {
  padding: 88px 0;
}

.section.is-tinted {
  background: var(--bg-tint);
}

.sec-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 32px;
}

.lead {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink-strong);
  margin-bottom: 24px;
}

.body-text {
  max-width: 46em;
  margin: 0 0 16px;
}

.small {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 10px 0 18px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.is-sky { --c: var(--sky); --c-soft: var(--sky-soft); --c-deep: var(--sky-deep); }
.is-pink { --c: var(--pink); --c-soft: var(--pink-soft); --c-deep: var(--pink-deep); }
.is-peri { --c: var(--peri); --c-soft: var(--peri-soft); --c-deep: var(--peri-deep); }

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.card h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.link-card:hover {
  color: inherit;
  border-color: var(--sky-deep);
}

.link-card:hover h3 {
  color: var(--sky-deep);
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cards-3 + .pills {
  margin-top: 36px;
}

.cards-3 + .body-text {
  margin-top: 24px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.example-strip {
  display: grid;
  grid-template-columns: max-content auto minmax(0, 1fr);
  gap: 10px 18px;
  align-items: center;
  margin: 36px 0 44px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-row {
  display: contents;
}

.example-row code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--pink-deep);
  font-weight: 600;
}

.example-row .ic {
  color: var(--muted);
}

.example-row span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-strong);
}

em {
  font-style: normal;
  color: var(--sky-deep);
}

.pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px;
  margin: 0 -8px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pills a {
  flex: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pills a:hover,
.pills a.is-current {
  border-color: var(--sky);
  color: var(--sky-deep);
  background: var(--sky-soft);
}

.feature-group {
  padding-top: 44px;
  scroll-margin-top: calc(var(--header-h) + 40px);
}

/* タブとして使うとき (site.js の initFeatureTabs): 選んだ種類だけを出す */
.pills.is-tabs {
  flex-wrap: wrap;
  margin-bottom: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pills.is-tabs ~ .feature-group {
  padding-top: 28px;
}

.feature-group.is-entering {
  animation: tab-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.group-head {
  margin-bottom: 20px;
}

.group-head h3 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.group-head p {
  color: var(--muted);
  max-width: 48em;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
}

.feat h4 {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.feat p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
}

.feat .ex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--ink-strong);
}

.feat .ex code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--pink-deep);
  font-weight: 600;
}

.feat .ex span {
  font-family: var(--font-head);
  font-weight: 700;
}

.feat .ex > :nth-child(odd):not(:last-child)::after {
  content: "→";
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--font-body);
}

.modes .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: var(--sky-deep);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.2em;
}

.card .mode-for {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-strong);
  font-weight: 700;
}

.more-link {
  margin-top: 32px;
  font-family: var(--font-head);
  font-weight: 700;
}

.more-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.os-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.os-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 14px 18px;
  transition: border-color 0.15s, background-color 0.15s;
}

.os-tab > .ic {
  width: 26px;
  height: 26px;
  color: var(--muted);
}

.os-tab:hover {
  border-color: var(--line-strong);
}

.os-tab[aria-selected="true"] {
  background: var(--sky-soft);
  border-color: var(--sky-deep);
  box-shadow: inset 0 0 0 1px var(--sky-deep);
}

.os-tab[aria-selected="true"] > .ic {
  color: var(--sky-deep);
}

.os-tab b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink-strong);
}

.os-tab small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.os-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.panel-lead {
  margin-bottom: 20px;
}

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0 0 20px;
}

.steps li {
  counter-increment: step;
  position: relative;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 48px 18px 18px;
  font-size: 0.93rem;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 14px;
  left: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.steps li b {
  display: block;
  font-family: var(--font-head);
  color: var(--ink-strong);
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.callouts {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.93rem;
}

.callout .ic {
  margin-top: 0.3em;
}

.callout.is-info {
  background: var(--sky-soft);
  color: var(--ink-strong);
}

.callout.is-info .ic {
  color: var(--sky-deep);
}

.callout.is-warn {
  background: var(--warn-soft);
  color: var(--ink-strong);
}

.callout.is-warn .ic {
  color: var(--warn);
}

.callout.is-danger {
  background: var(--danger-soft);
  color: var(--ink-strong);
}

.callout.is-danger .ic {
  color: var(--danger);
}

.fold {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s;
}

.fold[open] {
  border-color: var(--line-strong);
}

.fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-strong);
}

.fold summary::-webkit-details-marker {
  display: none;
}

.fold summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
  flex: none;
}

.fold[open] summary::after {
  transform: rotate(-135deg) translateY(-3px);
}

.fold-body {
  padding: 0 18px 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  font-size: 0.95rem;
}

.fold-body ol {
  margin: 0;
  padding-left: 1.3em;
}

.codebox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1f2a44;
  color: #eaf2ff;
  border-radius: 12px;
  padding: 10px 10px 10px 16px;
  margin-bottom: 8px;
  max-width: 560px;
}

.codebox code {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.22);
}

.copy.is-done {
  background: var(--ok);
}

.hashes {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
}

.hashes code {
  font-size: 0.78rem;
  word-break: break-all;
}

.start-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: start;
}

.start-modes {
  display: grid;
  gap: 16px;
}

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}

.mini-card h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.mini-card p {
  font-size: 0.93rem;
  color: var(--muted);
}

.keys {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.keys > div {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.keys > div:last-child {
  border-bottom: 0;
}

.keys dt {
  margin: 0;
}

.keys dd {
  margin: 0;
  font-size: 0.93rem;
}

.releases {
  display: grid;
  gap: 18px;
}

.placeholder {
  color: var(--muted);
}

.release {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.release.is-latest {
  border-color: var(--sky-deep);
}

.release-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.release-head h3 {
  font-size: 1.3rem;
}

.release-head h3 a {
  color: inherit;
  text-decoration: none;
}

.release-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--c-soft, var(--sky-soft));
  color: var(--c-deep, var(--sky-deep));
  white-space: nowrap;
}

.release-notes {
  position: relative;
  font-size: 0.93rem;
  max-height: 260px;
  overflow: hidden;
}

.release-notes.is-open {
  max-height: none;
}

.release-notes:not(.is-open)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--surface));
}

.release-notes h1,
.release-notes h2,
.release-notes h3,
.release-notes h4 {
  font-size: 1.02rem;
  margin: 14px 0 6px;
}

.release-notes ul {
  margin: 0 0 8px;
  padding-left: 1.3em;
}

.release-notes p {
  margin: 0 0 8px;
}

.release-notes .table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
}

.release-notes table {
  border-collapse: collapse;
  font-size: 0.88rem;
}

.release-notes th,
.release-notes td {
  text-align: left;
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--line);
}

.release-more {
  margin-top: 8px;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sky-deep);
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}

.assets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.assets a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
}

.assets a:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}

.assets small {
  color: var(--muted);
}

.faq .fold {
  margin-bottom: 14px;
}

.thanks-block {
  margin-bottom: 56px;
}

.thanks-block:last-child {
  margin-bottom: 0;
}

/* 寄付の欄の GitHub Sponsors のボタン: アイコンの列にくっつかないように間をあける。スマホでは全幅 */
.thanks-block > .btn {
  margin-top: 22px;
}

@media (max-width: 640px) {
  .thanks-block > .btn {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

.sub-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.community-title {
  margin-top: 56px;
}

.count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
}

.people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 26px;
}

.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s;
}

.person:hover {
  color: inherit;
  border-color: var(--sky-deep);
}

.person img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  background: var(--surface-2);
}

.person b {
  font-family: var(--font-head);
  color: var(--ink-strong);
}

.person span {
  font-size: 0.88rem;
  color: var(--muted);
}

.testers {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.testers h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.testers small {
  color: var(--muted);
  font-weight: 400;
}

.testers p {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips a,
.chips span {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 3px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-strong);
  text-decoration: none;
}

.chips a:hover {
  border-color: var(--sky-deep);
  color: var(--sky-deep);
}

.avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0 0 6px;
  list-style: none;
}

.avatars a {
  display: block;
  border-radius: 50%;
}

.avatars img {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color 0.15s;
}

.avatars a:hover img {
  border-color: var(--sky-deep);
}

.avatars.is-contributors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 14px 10px;
}

.avatars.is-contributors li {
  text-align: center;
}

.avatars.is-contributors a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-radius: 12px;
  padding: 6px 2px;
  text-decoration: none;
  color: var(--ink);
}

.avatars.is-contributors a:hover {
  color: var(--sky-deep);
}

.avatars.is-contributors .name {
  font-size: 0.74rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatars.is-contributors .commits {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1;
}

.avatars .fallback {
  grid-column: 1 / -1;
}

.avatars .fallback img {
  width: auto;
  height: auto;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: none;
}

/* 上のカード 3 枚と同じ幅の 3 列にそろえ、下の Star History との間をあける */
.link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 24px 0 40px;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.link-list a:hover {
  border-style: solid;
  border-color: var(--sky-deep);
}

.link-list .ic {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .link-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

.star-history {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}

.star-history img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
}

.star-history figcaption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.badges li {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-strong);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 14px;
}

.notice {
  white-space: pre-wrap;
  font-size: 0.8rem;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
  overflow-x: auto;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 40px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-brand img {
  height: 50px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sky-deep);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-hero {
  background: var(--bg);
  padding: 48px 0 36px;
}

.page-hero h1 {
  font-weight: 800;
  font-size: clamp(1.8rem, 1.35rem + 1.9vw, 2.5rem);
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 46em;
  color: var(--muted);
}

.page-hero .points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-hero .points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 14px 4px 10px;
  font-size: 0.86rem;
  font-weight: 500;
}

.page-hero .points .ic {
  color: var(--ok);
}

.report {
  padding-block: 36px 96px;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 0 16px;
}

.step-no {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sky-deep);
  color: var(--on-accent);
  font-size: 0.95rem;
  flex: none;
}

.form-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 40px;
  border: 0;
  padding: 0;
}

.form-option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 18px;
  transition: border-color 0.15s, background-color 0.15s;
}

.form-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-option > .ic {
  width: 26px;
  height: 26px;
  color: var(--sky-deep);
}

.form-option b {
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--ink-strong);
  margin-top: 4px;
}

.form-option small {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.form-option:hover {
  border-color: var(--line-strong);
}

.form-option:has(input:checked) {
  background: var(--sky-soft);
  border-color: var(--sky-deep);
  box-shadow: inset 0 0 0 1px var(--sky-deep);
}

.form-option:has(input:checked)::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sky-deep) var(--check-icon) center / 14px no-repeat;
}

.form-option:has(input:focus-visible) {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.form-note {
  margin-bottom: 20px;
}

.panes {
  display: grid;
  gap: 28px;
}

.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px 28px;
}

.pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 20px;
}

.pane-head h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.pane-head p {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}

.pane-tag {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 3px 12px;
  border-radius: 999px;
  color: var(--on-accent);
}

.is-required .pane-tag {
  background: var(--pink-deep);
}

.is-optional .pane-tag {
  background: var(--sky-deep);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field.is-wide {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-strong);
  font-size: 0.98rem;
  padding: 0;
}

.field fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}

.req {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--on-accent);
  background: var(--pink-deep);
  border-radius: 6px;
  padding: 0 6px;
  margin-left: 6px;
  vertical-align: 0.15em;
}

.hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.input,
.select,
.textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  color: var(--ink-strong);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.7;
}

.textarea.is-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-height: 140px;
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%237391ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sky) 20%, transparent);
}

.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field-error {
  display: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--danger);
}

.field.is-invalid .field-error {
  display: block;
}

.counter {
  justify-self: end;
  font-size: 0.75rem;
  color: var(--muted);
}

.counter.is-over {
  color: var(--danger);
  font-weight: 700;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 500;
}

.check:has(input:checked) {
  border-color: var(--sky);
  background: var(--sky-soft);
}

.check input {
  accent-color: var(--sky);
  width: 16px;
  height: 16px;
}

.dropzone {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 26px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--sky-soft) 55%, var(--surface));
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--sky);
  background: var(--sky-soft);
}

.dropzone .ic {
  width: 34px;
  height: 34px;
  color: var(--sky);
}

.dropzone b {
  font-family: var(--font-head);
  color: var(--ink-strong);
}

.dropzone small {
  color: var(--muted);
  font-size: 0.82rem;
}

.file-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.file-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px 10px 8px 8px;
}

.file-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--peri);
}

.file-thumb img,
.file-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-meta {
  display: grid;
  min-width: 0;
}

.file-meta b {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta small {
  font-size: 0.78rem;
  color: var(--muted);
}

.file-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-top: 4px;
}

.file-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sky), var(--pink));
  transition: width 0.2s;
}

.file-item.is-done .file-progress span {
  background: var(--ok);
}

.file-item.is-error {
  border-color: var(--danger);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
}

.files-total {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--muted);
  justify-self: end;
}

.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.submit-bar p {
  flex: 1 1 320px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Turnstile (幅 300px) と送信ボタンを右に縦に並べ、幅をそろえる */
.submit-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 300px;
  flex: none;
}

.submit-actions .cf-turnstile {
  min-height: 65px;
  display: flex;
  justify-content: center;
}

.submit-actions .btn {
  justify-content: center;
}

@media (max-width: 640px) {
  .submit-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px;
  }

  .submit-bar p {
    flex: none;
  }

  .submit-actions {
    width: 100%;
    align-items: center;
  }

  .submit-actions .btn {
    width: 100%;
  }
}

.form-status {
  margin-top: 16px;
}

.form-status:empty {
  display: none;
}

.done {
  text-align: center;
  padding: 44px 28px;
}

.done-icon {
  width: 44px;
  height: 44px;
  color: var(--ok);
  margin-bottom: 8px;
}

.done h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.done .receipt {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 22px;
  background: var(--surface-2);
  border-radius: 999px;
  font-family: var(--font-head);
}

.done .receipt b {
  font-size: 1.6rem;
  color: var(--sky-deep);
}

.done p {
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 10px;
}

.done .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.side-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}

.dash {
  padding-block: 32px 80px;
}

.dash-warn {
  margin-bottom: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat {
  padding: 18px 20px;
}

.stat span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--ink-strong);
}

.dash-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

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

.panel h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.chart {
  width: 100%;
  height: 160px;
  display: block;
}

.chart .bar {
  fill: var(--sky);
}

.chart .bar.is-today {
  fill: var(--pink);
}

.chart .axis {
  fill: var(--muted);
  font-size: 10px;
  font-family: var(--font-body);
}

.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.kind-bars {
  display: grid;
  gap: 10px;
}

.kind-bar {
  display: grid;
  gap: 4px;
}

.kind-bar div {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

.kind-bar meter,
.kind-bar .meter {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.kind-bar .meter span {
  display: block;
  height: 100%;
  background: var(--c);
  border-radius: 999px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.toolbar .search {
  position: relative;
  flex: 1 1 240px;
}

.toolbar .search .ic {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.toolbar .search .input {
  padding-left: 40px;
}

.toolbar .select {
  width: auto;
  min-width: 160px;
}

.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 18px;
  align-items: start;
}

.report-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.report-item button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.report-item button:hover {
  border-color: var(--sky-light);
}

.report-item button[aria-current="true"] {
  border-color: var(--sky);
  background: color-mix(in srgb, var(--sky-soft) 60%, var(--surface));
}

.report-no {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--muted);
  font-size: 0.9rem;
  min-width: 3.2em;
}

.report-title {
  font-weight: 700;
  color: var(--ink-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.report-sub .ic {
  width: 1em;
  height: 1em;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.list-more {
  margin-top: 12px;
  width: 100%;
}

.detail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.detail-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-head h2 {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-actions .btn {
  font-size: 0.82rem;
  padding: 0.45em 1em;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

.kv > div {
  display: grid;
  gap: 2px;
}

.kv dt {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.kv dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.93rem;
}

.kv dd pre {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.8rem;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 320px;
  overflow: auto;
}

.attach-grid {
  display: grid;
  gap: 12px;
}

.attach {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-2);
}

.attach-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.attach-head b {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attach-head a {
  font-size: 0.8rem;
}

.attach img,
.attach video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px;
}

.attach pre {
  margin: 0;
  padding: 10px 12px;
  max-height: 260px;
  overflow: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.detail-empty {
  color: var(--muted);
  text-align: center;
  padding: 48px 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--ink-strong);
  color: var(--bg);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 80;
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

/* 大きな「404」。ロゴと同じ空色から桃色へのグラデーション */
.not-found .not-found-code {
  margin: 8px 0 0;
  font-family: "LINE Seed JP", sans-serif;
  font-size: clamp(4.5rem, 3rem + 8vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--sky) 10%, var(--peri) 50%, var(--pink) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.not-found h1 {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 3rem);
  margin: 12px 0;
  text-wrap: balance;
}

.not-found p {
  color: var(--muted);
  margin-bottom: 24px;
}

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-logo img {
    width: min(100%, 440px);
  }

  .form-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-main,
  .dash-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 60px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(51, 65, 92, 0.12);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.btn) {
    padding: 10px 14px;
  }

  .site-nav .btn {
    margin: 8px 0 0;
  }

  .brand img {
    height: 40px;
  }

  .cards-3,
  .people,
  .os-tabs,
  .steps,
  .side-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    padding-inline: 16px;
  }

  .sp {
    display: inline;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 28px 0 56px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cards-2,
  .fields,
  .form-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .example-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .example-row code {
    margin-top: 10px;
  }

  .example-row .ic {
    transform: rotate(90deg);
  }

  .feat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .keys > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .os-panel,
  .pane {
    padding: 20px 18px;
  }

  .fold-body {
    padding: 0 16px 16px;
  }

  .demo-body {
    padding: 18px 18px 14px;
  }

  .demo-picker .demo-play {
    margin-left: 0;
  }

  .submit-bar .btn {
    width: 100%;
  }

  .form-option {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    padding: 14px 44px 14px 16px;
  }

  .form-option > .ic {
    grid-row: span 2;
  }

  .form-option b {
    margin-top: 0;
  }
}

/* ---- 動き: スクロールで現れる・触れたときの反応 ---- */

/* JS が動いて html に .has-reveal を付けたときだけ隠す (JS がなければ最初から全部見える) */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease var(--reveal-delay, 0s),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
}

.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.hero-copy > *,
.hero .demo {
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-copy > :nth-child(6) { animation-delay: 0.3s; }
.hero .demo { animation-delay: 0.2s; }

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes nav-drop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.btn {
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.card,
.feat,
.mini-card,
.person {
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

/* 浮き上がりはマウスで動かしているときだけ (html.is-mouse は common.js が付ける)。
   タッチでは押したあとに :hover が残り、カードが浮いたままになるので付けない */
@media (hover: hover) {
  .is-mouse .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(51, 65, 92, 0.14);
  }

  .is-mouse .btn:active {
    transform: scale(0.97);
  }

  .is-mouse .link-card:hover,
  .is-mouse .person:hover,
  .is-mouse .feat:hover,
  .is-mouse .os-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(51, 65, 92, 0.1);
  }
}

@media (max-width: 860px) {
  .site-nav.is-open {
    animation: nav-drop 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .btn:active,
  .link-card:hover,
  .person:hover,
  .feat:hover,
  .os-tab:hover,
  .site-nav > * {
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.attachments {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.label-like b {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink-strong);
}

.report-foot {
  margin-top: 32px;
}

.pane-tag.is-req {
  background: var(--pink-deep);
}

.pane-tag.is-opt {
  background: var(--sky-deep);
}

.detail-section .pane-tag {
  font-size: 0.72rem;
  padding: 1px 10px;
}
