/* Visor シリーズのサイトの見た目。色はルペとアイコンの色（brand/character/README.md）から取る。 */

:root {
  --navy-950: #0b1226;
  --navy-900: #0e1630;
  --navy-800: #162040;
  --navy-700: #1a2548;
  --navy-600: #22305a;
  --navy-500: #31467f;
  --teal: #14b8a6;
  --teal-2: #2dd4bf;
  --teal-3: #0f9f90;
  --mint: #7ff0dd;
  --blue: #4c93f5;
  --indigo: #5457dd;
  --amber: #fbbf24;
  --coral: #f87171;

  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #edf2fa;
  --text: #16203a;
  --muted: #56617c;
  --border: #dbe2ee;
  --link: #0b7d72;
  --code-bg: #eef2f8;
  --shadow: 0 1px 2px rgb(14 22 48 / 0.06), 0 10px 28px rgb(14 22 48 / 0.08);
  --radius: 18px;
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a1024;
    --surface: #111a35;
    --surface-2: #162146;
    --text: #e7ecf8;
    --muted: #a6b1cc;
    --border: #25325a;
    --link: #5eead4;
    --code-bg: #1a2550;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a1024;
  --surface: #111a35;
  --surface-2: #162146;
  --text: #e7ecf8;
  --muted: #a6b1cc;
  --border: #25325a;
  --link: #5eead4;
  --code-bg: #1a2550;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 10px 28px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'BIZ UDPGothic', 'Yu Gothic UI', Meiryo,
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0.01em;
}

code,
kbd {
  font-family: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
}

code {
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

kbd {
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0.05em 0.4em;
  background: var(--surface);
}

.i {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---- ヘッダー ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(14 22 48 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
}
.brand small {
  font-size: 12px;
  font-weight: 600;
  color: var(--mint);
  margin-left: 6px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar {
  display: none;
}
.site-nav a {
  color: #d6def0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.site-nav a:hover {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
}
.site-nav a[aria-current='page'] {
  background: var(--teal);
  color: var(--navy-900);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 12px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 999px;
  color: #d6def0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lang-switch:hover {
  border-color: var(--mint);
  color: #fff;
}

/* ---- ヒーロー ---- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgb(45 212 191 / 0.2), transparent 38%),
    radial-gradient(circle at 10% 90%, rgb(84 87 221 / 0.25), transparent 40%),
    linear-gradient(160deg, var(--navy-600), var(--navy-900) 70%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  margin: 8px 0 16px;
}
.hero-page h1,
.hero-tool h1 {
  font-size: clamp(28px, 4.2vw, 42px);
}

.hero .lead {
  color: #cdd6ea;
  font-size: 17px;
  max-width: 36em;
  margin: 0 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--mint);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.tool-eyebrow {
  gap: 12px;
  color: #fff;
  font-size: 22px;
  letter-spacing: 0;
}
.tool-eyebrow img {
  border-radius: 10px;
}
.tool-eyebrow span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.tool-eyebrow small {
  color: var(--mint);
  font-size: 13px;
  font-weight: 600;
}

.meta {
  color: #9fb0d4;
  font-size: 14px;
  margin: 16px 0 0;
}

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.hero-lupe {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35));
  animation: float 5s ease-in-out infinite;
}
.hero-art-tool .hero-lupe {
  width: min(100%, 380px);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.orbit img {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.35);
  animation: float 6s ease-in-out infinite;
}
.orbit-0 {
  top: 8%;
  left: 4%;
}
.orbit-1 {
  top: 2%;
  right: 8%;
  animation-delay: -1s !important;
}
.orbit-2 {
  top: 44%;
  left: -2%;
  animation-delay: -2s !important;
}
.orbit-3 {
  top: 40%;
  right: -2%;
  animation-delay: -3s !important;
}
.orbit-4 {
  bottom: 2%;
  left: 12%;
  animation-delay: -4s !important;
}
.orbit-5 {
  bottom: 6%;
  right: 12%;
  animation-delay: -5s !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-lupe,
  .orbit img {
    animation: none;
  }
}

/* ---- 吹き出し ---- */
.bubble {
  position: relative;
  margin: 0;
  background: #fff;
  color: var(--navy-900);
  border: 3px solid var(--navy-900);
  border-radius: 18px;
  padding: 10px 16px;
  font-weight: 700;
  line-height: 1.5;
  box-shadow: 0 6px 0 rgb(14 22 48 / 0.25);
}

.bubble-hero {
  z-index: 2;
  margin-bottom: 14px;
  font-size: 17px;
  max-width: 20em;
  text-align: center;
}
.bubble-hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-right: 3px solid var(--navy-900);
  border-bottom: 3px solid var(--navy-900);
  transform: translateX(-50%) rotate(45deg);
}

.say {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.say-face {
  flex: none;
  width: 56px;
  height: 56px;
}
.say .bubble {
  border-bottom-left-radius: 4px;
}
.say .bubble::before {
  content: '';
  position: absolute;
  left: -11px;
  bottom: 8px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 3px solid var(--navy-900);
  border-bottom: 3px solid var(--navy-900);
  transform: rotate(45deg);
}

.say-small .bubble {
  font-size: 14px;
  padding: 8px 12px;
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}
.say-small .bubble::before {
  border-color: var(--border);
}

.say-hero {
  flex-direction: column;
  align-items: center;
}
.say-hero .say-face {
  order: 2;
  width: min(220px, 60vw);
  height: auto;
  filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.35));
}
.say-hero .bubble {
  order: 1;
  font-size: 17px;
  margin-bottom: 8px;
  border-bottom-left-radius: 18px;
}
.say-hero .bubble::before {
  left: 50%;
  bottom: -11px;
  border-left: 0;
  border-right: 3px solid var(--navy-900);
  transform: translateX(-50%) rotate(45deg);
}

/* ---- ボタン ---- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgb(20 184 166 / 0.35);
}
.btn-ghost {
  color: #fff;
  border: 2px solid rgb(255 255 255 / 0.35);
}
.btn-ghost:hover {
  border-color: #fff;
}
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}
.btn-disabled {
  background: var(--surface-2);
  color: var(--muted);
  border: 2px dashed var(--border);
  cursor: not-allowed;
}
.btn-disabled:hover {
  transform: none;
}

/* ---- 節 ---- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--surface-2);
}

.section-head {
  max-width: 44em;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  margin: 0 0 8px;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}
.section-head p {
  color: var(--muted);
  margin: 0;
}

.more {
  margin: 28px 0 0;
  font-weight: 700;
}
.more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.note {
  color: var(--muted);
  font-size: 14px;
  margin: 24px 0 0;
}

.nb {
  display: inline-block;
}

.chip {
  align-self: flex-start;
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(20 184 166 / 0.14);
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
}

/* ---- カード ---- */
.tool-grid,
.feature-grid,
.usecase-grid,
.combo-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.feature,
.usecase,
.combo,
.principle,
.story,
.dl,
.support-step,
.manual-card,
.uc-tool,
.report,
.donate-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.tool-card:hover {
  transform: translateY(-4px);
}
.tool-card-art {
  display: flex;
  justify-content: center;
  padding: 18px 12px 6px;
  background:
    radial-gradient(circle at 80% 10%, rgb(45 212 191 / 0.22), transparent 45%),
    linear-gradient(160deg, var(--navy-600), var(--navy-900));
}
.tool-card-art img {
  width: 230px;
  transition: transform 0.25s;
}
.tool-card:hover .tool-card-art img {
  transform: scale(1.04) rotate(-1deg);
}
.tool-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tool-card h3 {
  margin: 8px 0 4px;
  font-size: 22px;
}
.tool-card h3 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.tool-card h3 img {
  border-radius: 7px;
}
.tool-card-body > p:not(.chip) {
  margin: 0 0 12px;
  color: var(--muted);
}
.tool-card-links {
  display: flex;
  gap: 16px;
  margin-top: auto !important;
  font-weight: 700;
  font-size: 14px;
}
.tool-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.principles {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.principle {
  padding: 24px;
}
.principle h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}
.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.principle-icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--mint), var(--teal-2));
}

.combo {
  padding: 22px;
}
.combo h3 {
  margin: 12px 0 6px;
}
.combo p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.chain img {
  display: block;
  border-radius: 10px;
}
.chain-arrow {
  color: var(--muted);
}

.feature {
  padding: 22px;
}
.feature-no {
  font-weight: 800;
  font-size: 14px;
  color: var(--teal-3);
  letter-spacing: 0.08em;
}
.feature h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.shots {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.shot {
  margin: 0;
}
.shot:first-child {
  grid-column: 1 / -1;
}
.shot img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.usecase {
  display: flex;
  flex-direction: column;
  padding: 22px;
}
.usecase h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.usecase > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}
.usecase .say {
  margin-top: auto;
}

.mini-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
}
.mini:hover {
  border-color: var(--teal);
}
.mini img {
  border-radius: 9px;
}
.mini span {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.mini small {
  color: var(--muted);
}

/* ---- ユースケース ---- */
.stack {
  display: grid;
  gap: 28px;
}
.story {
  padding: 28px;
}
.story-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.story-head h2 {
  margin: 0;
  font-size: 24px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.steps li img {
  border-radius: 8px;
  margin-top: 4px;
}
.steps p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.uc-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.uc-tool {
  padding: 20px 22px;
}
.uc-tool h3 {
  margin: 0 0 8px;
}
.uc-tool h3 a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.uc-tool h3 img {
  border-radius: 7px;
}
.uc-tool ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 15px;
}

/* ---- マニュアル ---- */
.manual-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.manual-card {
  display: flex;
  align-items: flex-start; /* 横並びの中で、アイコンをカードの高さに引き伸ばさない */
  gap: 18px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.manual-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
}
.manual-card img {
  flex: none;
  border-radius: 12px;
}
.manual-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.manual-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.manual-card .manual-card-meta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--link);
}

.manual-bar {
  background: linear-gradient(160deg, var(--navy-600), var(--navy-900));
  color: #fff;
}
.manual-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.manual-bar-inner img {
  border-radius: 10px;
}
.manual-bar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.manual-bar-meta {
  margin: 2px 0 0;
  font-size: 13px;
  color: #9fb0d4;
}
.manual-bar-meta a {
  color: var(--mint);
}

.manual-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.manual-toc {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
  font-size: 14px;
  padding-right: 8px;
}
.manual-toc-head {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.manual-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}
.manual-toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.5;
}
.manual-toc a:hover {
  color: var(--text);
  border-left-color: var(--teal);
}
.manual-toc code {
  background: none;
  padding: 0;
}

.doc {
  min-width: 0;
  max-width: 860px;
}
.doc > :first-child {
  margin-top: 0;
}
.doc h2 {
  font-size: 26px;
  margin: 56px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.doc h3 {
  font-size: 20px;
  margin: 36px 0 12px;
}
.doc h4 {
  font-size: 17px;
  margin: 28px 0 10px;
}
.doc h2,
.doc h3,
.doc h4 {
  position: relative;
}
.doc .anchor {
  position: absolute;
  left: -1.1em;
  color: var(--muted);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}
.doc h2:hover .anchor,
.doc h3:hover .anchor,
.doc h4:hover .anchor,
.doc .anchor:focus {
  opacity: 1;
}
.doc img {
  display: block;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.doc blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid var(--teal);
  background: var(--surface-2);
  border-radius: 0 12px 12px 0;
}
.doc blockquote p {
  margin: 0;
}
.doc pre {
  background: var(--navy-900);
  color: #e7ecf8;
  padding: 14px 16px;
  border-radius: 12px;
  overflow-x: auto;
  line-height: 1.6;
}
.doc pre code {
  background: none;
  padding: 0;
  color: inherit;
}
.doc li + li {
  margin-top: 4px;
}
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.doc table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}
.doc th,
.doc td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.doc th {
  background: var(--surface-2);
  white-space: nowrap;
}
.doc tr:last-child td {
  border-bottom: 0;
}

/* ---- ダウンロード ---- */
.callout {
  margin-bottom: 32px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgb(251 191 36 / 0.55);
  background: rgb(251 191 36 / 0.12);
}
.callout p {
  margin: 6px 0 0;
}
.callout-info {
  margin: 0 0 28px;
  border-color: rgb(20 184 166 / 0.45);
  background: rgb(20 184 166 / 0.1);
}

.dl-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dl {
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dl-head img {
  border-radius: 11px;
}
.dl-head h2 {
  margin: 0;
  font-size: 20px;
}
.dl-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.dl-meta {
  margin: 16px 0;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.dl-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
}
.dl-meta dt {
  color: var(--muted);
}
.dl-meta dd {
  margin: 0;
  font-weight: 700;
}
.dl-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  font-size: 14px;
}
/* ファイルの名前・大きさ・SHA-256 から下を、カードの下にそろえる */
.dl-file {
  margin: auto 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.dl-sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.dl-older {
  margin: 14px 0 0;
  font-size: 14px;
}
.dl-older summary {
  cursor: pointer;
  color: var(--muted);
}
.dl-older ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.dl-older li span {
  color: var(--muted);
  font-size: 13px;
}

.howto {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: howto;
}
.howto li {
  position: relative;
  padding: 22px 22px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: howto;
}
.howto li::before {
  content: counter(howto);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--mint);
  font-weight: 800;
}
.howto h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}
.howto p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---- サポート ---- */
.support-steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.support-step {
  position: relative;
  padding: 24px;
}
.support-step h2 {
  font-size: 19px;
  margin: 12px 0 6px;
}
.support-step p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
}
.step-no {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--surface-2);
  -webkit-text-stroke: 1px var(--border);
}
.step-icon {
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 12px;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--mint), var(--teal-2));
}
.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  font-size: 14px;
}

.report {
  margin-top: 28px;
  padding: 24px 28px;
}
.report h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.check {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.check li {
  position: relative;
  padding-left: 30px;
  margin: 6px 0;
}
.check li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-size: 22px;
  line-height: 1;
  color: var(--teal-3);
}
.faq details[open] summary::after {
  content: '−';
}
.faq-a p {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ---- 寄付 ---- */
.donate-box {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 24px 28px;
  background:
    radial-gradient(circle at 90% 10%, rgb(251 191 36 / 0.18), transparent 45%),
    var(--surface);
}
.donate-box h2 {
  margin: 0 0 4px;
}
.donate-box p {
  margin: 0;
  color: var(--muted);
}
.donate-box > p {
  margin-left: auto;
}

/* ---- CTA とフッター ---- */
.cta {
  padding: 56px 0;
  background:
    radial-gradient(circle at 15% 50%, rgb(45 212 191 / 0.25), transparent 40%),
    linear-gradient(120deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 {
  margin: 0 0 4px;
  font-size: 26px;
}
.cta p {
  margin: 0;
  color: #cdd6ea;
}
.cta .actions {
  margin-left: auto;
}

.site-footer {
  background: var(--navy-950);
  color: #aab5d0;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.footer-lupe {
  flex: none;
  width: 110px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 24px;
  flex: 1;
}
.footer-title {
  margin: 0 0 6px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.footer-text {
  margin: 0;
}
.footer-head {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 700;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-links a {
  color: #aab5d0;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--mint);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}
.provisional {
  color: var(--amber);
}

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

/* ---- 狭い画面 ---- */
@media (max-width: 960px) {
  .tool-grid,
  .feature-grid,
  .usecase-grid,
  .combo-grid,
  .uc-list,
  .dl-grid,
  .support-steps,
  .howto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manual-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .manual-toc {
    display: none;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 8px;
  }
  .site-nav {
    width: calc(100% + 32px);
    margin: 4px -16px 0;
    padding: 0 12px 8px;
  }
  .lang-switch {
    order: 2;
    margin-left: auto;
  }
  .site-nav {
    order: 3;
  }
  html {
    scroll-padding-top: 120px;
  }
  .manual-toc {
    top: 110px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
    padding-bottom: 48px;
  }
  .hero-art {
    min-height: 0;
  }
  .hero-lupe {
    width: min(100%, 210px);
  }
  .hero-art-tool .hero-lupe {
    width: min(100%, 300px);
  }
  .orbit {
    display: none;
  }
  .tool-grid,
  .feature-grid,
  .usecase-grid,
  .combo-grid,
  .uc-list,
  .dl-grid,
  .support-steps,
  .howto,
  .shots,
  .manual-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 52px 0;
  }
  .story {
    padding: 20px;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-lupe {
    width: 80px;
  }
  .donate-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .donate-box > p,
  .cta .actions {
    margin-left: 0;
  }
  .doc .anchor {
    display: none;
  }
}
