/* ゼロ＝バース・クリエイション / zero-birth-creation.net
   配色トークンは4〜6色のみ。見出しは明朝、本文はシステムのゴシック体を使う。 */

:root {
  --bg: #f4f6fb;
  --bg-elevated: #ffffff;
  --border: #dce2f0;
  --ink: #1a2238;
  --ink-soft: #4a5170;
  --accent: #8a5a1e;

  --font-heading: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;

  --maxw: 1080px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5em 1em;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5em;
  top: 0.5em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1.2em;
  max-width: 34em;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ===== header ===== */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  gap: 1.4em;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== footer ===== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-note {
  margin: 0;
  max-width: none;
}

/* ===== hero ===== */

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

.hero .container {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
  align-items: center;
}

.hero-copy {
  text-align: center;
}

.hero-copy h1 {
  color: var(--ink);
}

.hero-lead {
  color: var(--ink-soft);
  margin: 0 auto 1.6em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-visual {
  width: 240px;
  flex-shrink: 0;
  margin: 0;
}

/* ===== buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  border-radius: var(--radius);
  padding: 0.8em 1.4em;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #744a18;
}

.btn-primary:disabled {
  background: var(--ink-soft);
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== process ===== */

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 640px;
  margin-inline: auto;
}

.process-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.process-list li:last-child {
  border-bottom: none;
}

.process-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1.4;
}

.process-body h3 {
  margin-bottom: 0.3em;
  font-size: 1.05rem;
}

.process-body p {
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}

/* ===== forms ===== */

.contact-section {
  padding: 8px 0 64px;
}

.section-intro {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 1.2em;
}

form {
  max-width: 560px;
  margin: 28px auto 0;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.4em;
  color: var(--ink);
}

.field .optional {
  color: var(--ink-soft);
  font-size: 0.85em;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7em 0.8em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--ink);
}

textarea {
  min-height: 9em;
  resize: vertical;
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.field-checkbox input {
  margin-top: 0.3em;
}

.field-checkbox label {
  margin: 0;
}

.field-error {
  color: #a33b2a;
  font-size: 0.85rem;
  margin-top: 0.4em;
}

/* ハニーポット: 画面には見せないがDOM上は存在させる */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  margin-top: 24px;
}

.form-message {
  margin-top: 16px;
  padding: 0.8em 1em;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.form-message[data-state="success"] {
  background: #eef3e8;
  color: #3a5a2e;
  border: 1px solid #c7d9b8;
}

.form-message[data-state="error"] {
  background: #f6e9e6;
  color: #8a3a26;
  border: 1px solid #e0c3bb;
}

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

/* ===== privacy / article ===== */

.article {
  padding: 48px 0 64px;
}

.article .container {
  max-width: 680px;
}

.article h2 {
  margin-top: 2em;
}

.article ul,
.article ol {
  color: var(--ink-soft);
  padding-left: 1.4em;
}

.article li {
  margin-bottom: 0.4em;
}

/* ===== 404 ===== */

.notfound {
  padding: 96px 0;
  text-align: center;
}

.notfound h1 {
  margin-bottom: 0.4em;
}

/* ===== sections ===== */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.section-title {
  text-align: center;
  margin-bottom: 1em;
}

.container.narrow {
  max-width: 720px;
}

.page-header {
  padding: 56px 0 32px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 0.4em;
}

.page-kicker {
  margin: 0 auto 0.6em;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  max-width: none;
}

.prose-block {
  max-width: 640px;
  margin: 0 auto;
}

.prose-block p {
  max-width: none;
}

/* 理念などの一文を大きく見せる */
.statement {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  line-height: 1.7;
  text-align: center;
  margin: 0 auto 1.4em;
  max-width: none;
}

.badge {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.15em 0.8em;
  margin-left: 0.4em;
}

.notice {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.notice p {
  margin: 0 auto;
  color: var(--ink-soft);
}

.cta-band {
  background: var(--bg-elevated);
  text-align: center;
}

.cta-actions {
  margin: 0 auto;
  max-width: none;
}

/* ===== top: 創るもの ===== */

.create-grid {
  display: grid;
  gap: 20px;
}

.create-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.create-card p {
  color: var(--ink-soft);
  max-width: none;
}

.create-kicker {
  font-family: var(--font-heading);
  color: var(--accent) !important;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.6em;
}

.create-link {
  margin-top: auto;
  font-weight: 600;
}

.create-link::after {
  content: " →";
}

/* ===== diagrams ===== */

.diagram {
  margin: 0 auto 2.4em;
  max-width: 520px;
}

.diagram svg {
  width: 100%;
  height: auto;
}

.diagram figcaption {
  margin-top: 0.8em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}

.diagram-cycle {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
}

.dg-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}

.dg-arrowhead {
  fill: var(--accent);
}

.dg-node {
  fill: var(--bg-elevated);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.dg-node-label,
.dg-center-label {
  font-family: var(--font-heading);
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}

.dg-node-label {
  font-size: 20px;
}

.dg-center-label {
  font-size: 26px;
}

.dg-center-sub {
  font-family: var(--font-body);
  font-size: 14px;
  fill: var(--ink-soft);
  text-anchor: middle;
  dominant-baseline: central;
}

@media (prefers-reduced-motion: no-preference) {
  .dg-arc {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: dg-draw 0.9s ease-out forwards;
  }

  .dg-arc:nth-of-type(2) {
    animation-delay: 0.3s;
  }

  .dg-arc:nth-of-type(3) {
    animation-delay: 0.6s;
  }
}

@keyframes dg-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.dg-venn-a {
  fill: var(--ink-soft);
  fill-opacity: 0.1;
  stroke: var(--ink-soft);
  stroke-width: 2;
}

.dg-venn-b {
  fill: var(--accent);
  fill-opacity: 0.12;
  stroke: var(--accent);
  stroke-width: 2.5;
}

.dg-venn-label,
.dg-venn-small {
  font-family: var(--font-body);
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
}

.dg-venn-label {
  font-size: 15px;
}

.dg-venn-label-strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.dg-venn-small {
  font-size: 12px;
  fill: var(--ink-soft);
}

/* 横並びのステップ図（スマホでは縦積み）。矢印は疑似要素で描く */
.flow {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 28px;
  max-width: 960px;
}

.flow-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.flow-step-goal {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.flow-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.flow-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 1.5;
}

.flow-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ===== dx: 対象別 ===== */

.audience-grid {
  display: grid;
  gap: 24px;
}

.audience {
  padding: 28px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.audience h2 {
  font-size: 1.3rem;
  padding-bottom: 0.5em;
  border-bottom: 2px solid var(--ink);
}

.audience p {
  color: var(--ink-soft);
  max-width: none;
}

.audience .audience-note {
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0;
}

/* ===== games ===== */

.game {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.game:first-of-type {
  border-top: none;
  padding-top: 0;
}

.game h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}

.game p {
  color: var(--ink-soft);
  max-width: none;
}

.game-tagline {
  font-style: italic;
}

.game-series {
  margin-top: 8px;
  padding-left: 20px;
  border-left: 3px solid var(--border);
}

.game-sub p:last-child {
  margin-bottom: 0;
}

/* ===== about ===== */

.profile {
  text-align: center;
  margin-bottom: 24px;
}

.profile-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 auto 0.1em;
  max-width: none;
  letter-spacing: 0.1em;
}

.profile-meta {
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: none;
}

/* 経歴: 矢印でつながるチップ */
.career {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 8px;
}

.career li {
  padding: 0.4em 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}

.career li + li::before {
  content: "→";
  margin-right: 0.6em;
  color: var(--accent);
}

.career li:last-child {
  border-color: var(--accent);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--border);
}

.timeline li {
  position: relative;
  padding: 0 0 24px 8px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink-soft);
}

.timeline .timeline-now::before {
  background: var(--accent);
  border-color: var(--accent);
}

.timeline-when {
  display: block;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.timeline p {
  margin: 0;
  max-width: none;
}

.stance-title {
  text-align: center;
  margin-top: 2em;
}

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

.stance li {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

/* ===== blog ===== */

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.post-list li:first-child {
  border-top: none;
}

.post-list h2 {
  font-size: 1.25rem;
  margin-bottom: 0.3em;
}

.post-list h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-list h2 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.post-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: none;
}

.post-date {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.post-header {
  margin-bottom: 32px;
}

.post-header h1 {
  margin-bottom: 0.2em;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Markdown 本文 */
.prose {
  overflow-wrap: anywhere;
}

.prose p,
.prose li {
  max-width: none;
}

.prose h2 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--border);
}

.prose h3,
.prose h4 {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.3em;
}

.prose blockquote {
  margin: 0 0 1.2em;
  padding: 0.2em 1em;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.1em 0.3em;
}

.prose pre {
  overflow-x: auto;
  padding: 16px;
  background: var(--ink);
  color: #f4f6fb;
  border-radius: var(--radius);
  margin: 0 0 1.2em;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

.prose img {
  height: auto;
  margin: 0 auto;
}

.prose table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 0 0 1.2em;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.4em 0.8em;
  text-align: left;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ===== responsive ===== */

@media (min-width: 700px) {
  .hero .container {
    flex-direction: row;
    text-align: left;
  }

  .hero-copy {
    text-align: left;
    flex: 1;
  }

  .hero-lead {
    margin-left: 0;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual {
    width: 300px;
  }

  .create-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .audience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }

  .flow-step + .flow-step::before {
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 88px 0 72px;
  }

  .hero-visual {
    width: 340px;
  }
}
