:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #5c6670;
  --accent: #146c5b;
  --accent-2: #315f93;
  --notice: #b76e2b;
  --danger: #b54b38;
  --line: #d8d3c8;
  --soft: #edf4f1;
  --blue-soft: #edf3f9;
  --warn-soft: #fbf1e8;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, li, .button {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { font-weight: 900; font-size: 17px; }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; font-weight: 800; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.header-cta, .button, .copy-button, .goal-card, .check-row {
  min-height: 44px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .82fr);
  gap: 42px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 22px 42px;
}
.hero-copy, .hero-visual, .subhero, .section > *, article, .goal-result {
  min-width: 0;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 52px;
  line-height: 1.14;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.button.secondary { background: var(--surface); }
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}
.trust-list li {
  padding: 7px 10px;
  color: var(--accent);
  background: var(--soft);
  border: 1px solid #cfe0db;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
}
.hero-visual {
  margin: 0;
}
.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1114;
}
.hero-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}
.roadmap-preview {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.preview-head { display: grid; gap: 4px; margin-bottom: 14px; }
.preview-head span { color: var(--accent); font-size: 13px; font-weight: 900; }
.preview-head strong { font-size: 19px; }
.roadmap-preview ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.roadmap-preview li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}
.roadmap-preview li span { color: var(--accent-2); font-weight: 900; }

.section { padding: 58px 22px; border-top: 1px solid var(--line); }
.section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section.light { background: var(--surface); }
.section-heading { margin-bottom: 28px; }
.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}
.section-heading p { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; font-weight: 700; }
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.subhero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 58px 22px 40px;
}
.subhero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 46px;
  line-height: 1.16;
}
.subhero p:not(.section-number) {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  font-weight: 700;
}
.section-number {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.goal-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.goal-options { display: grid; gap: 10px; }
.goal-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.goal-card strong { font-size: 17px; }
.goal-card span { color: var(--muted); font-weight: 700; }
.goal-card[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.goal-result {
  min-height: 100%;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.empty-state { margin: 0; color: var(--muted); font-weight: 800; }
.result-label, .prompt-meta span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
pre {
  overflow-x: auto;
  margin: 12px 0;
  padding: 14px;
  background: #17202a;
  color: #fff;
  border-radius: 6px;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.mini-check { padding: 12px; background: var(--warn-soft); border: 1px solid #ead6c2; border-radius: 6px; }
.mini-check p { margin: 6px 0 0; color: var(--ink); }

.checklist { display: grid; gap: 10px; }
.check-row {
  display: grid;
  grid-template-columns: 28px minmax(160px, .7fr) 1fr 86px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
}
.check-mark { width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 5px; }
.check-row em { color: var(--muted); font-style: normal; line-height: 1.6; }
.check-state { justify-self: end; padding: 5px 8px; color: var(--notice); background: var(--warn-soft); border-radius: 999px; font-size: 12px; font-weight: 900; }
.check-row.is-done .check-mark { background: var(--accent); border-color: var(--accent); }
.check-row.is-done .check-mark::after { content: "✓"; display: block; color: #fff; text-align: center; line-height: 18px; font-weight: 900; }
.check-row.is-done .check-state { color: var(--accent); background: var(--soft); }

.fit-table, .tool-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.fit-table > div, .tool-table > div {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  border-bottom: 1px solid var(--line);
}
.tool-table > div {
  grid-template-columns: .65fr 1fr 1.1fr;
}
.fit-table > div:last-child, .tool-table > div:last-child { border-bottom: 0; }
.fit-table span, .tool-table span { padding: 16px; line-height: 1.65; background: var(--surface); }
.fit-table .table-head span, .tool-table .table-head span { background: var(--soft); font-weight: 900; }

.prompt-grid, .recovery-grid, .template-list, .scope-grid, .layer-grid, .workflow-list, .article-grid, .post-list, .phase-list, .step-list, .tool-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.layer-grid, .workflow-list, .article-grid, .post-list, .phase-list, .tool-card-grid {
  grid-template-columns: repeat(3, 1fr);
}
.prompt-card,
.recovery-grid article,
.template-list article,
.scope-grid article,
.layer-grid article,
.workflow-list article,
.article-grid article,
.post-list article,
.phase-list article,
.step-list article,
.tool-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.scope-grid article:first-child { border-left: 5px solid var(--accent); }
.scope-grid article:last-child { border-left: 5px solid var(--notice); }
.layer-grid article > span,
.article-grid article > span,
.post-list article > span,
.phase-list article > span,
.step-list article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--accent-2);
  background: var(--blue-soft);
  border-radius: 6px;
  font-weight: 900;
}
.prompt-card h3,
.recovery-grid h3,
.template-list h3,
.scope-grid h3,
.layer-grid h3,
.workflow-list h3,
.article-grid h3,
.post-list h3,
.phase-list h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}
.prompt-card p,
.recovery-grid p,
.template-list p,
.scope-grid p,
.layer-grid p,
.workflow-list p,
.article-grid p,
.post-list p,
.phase-list p,
.step-list p {
  color: var(--muted);
  line-height: 1.7;
}
.scope-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}
.prompt-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prompt-meta b { padding: 5px 8px; color: var(--accent-2); background: var(--blue-soft); border-radius: 999px; font-size: 12px; }
.status {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.status.active { color: var(--accent); background: var(--soft); }
.status.review { color: var(--notice); background: var(--warn-soft); }
.status.draft { color: var(--accent-2); background: var(--blue-soft); }
.approval-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}
.approval-flow article {
  position: relative;
  min-height: 180px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.approval-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--accent-2);
  border-right: 3px solid var(--accent-2);
  transform: translateY(-50%) rotate(45deg);
}
.approval-flow .human-step {
  border-color: var(--accent);
  background: var(--soft);
}
.approval-flow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--accent-2);
  border-radius: 999px;
  font-weight: 900;
}
.approval-flow .human-step span {
  background: var(--accent);
}
.approval-flow h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.approval-flow p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}
.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
}
.copy-status { min-height: 24px; color: var(--accent); font-weight: 900; }

.safety-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.safety-columns > div {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.safety-columns h3 { margin: 0 0 12px; }
.safety-columns ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; font-weight: 700; }
.safety-columns > div:first-child { border-left: 5px solid var(--accent); }
.safety-columns > div:last-child { border-left: 5px solid var(--notice); }

.policy-stack {
  display: grid;
  gap: 12px;
}
.policy-stack article {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.policy-stack h2 {
  margin: 0 0 10px;
  font-size: 24px;
}
.policy-stack p,
.operator-note {
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}
.code-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.callout {
  padding: 18px;
  background: var(--warn-soft);
  border: 1px solid #ead6c2;
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.75;
  font-weight: 700;
}
.media-frame {
  margin: 22px auto 0;
  max-width: 1180px;
}
.media-frame img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.media-frame figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.source-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.source-list a {
  padding: 16px;
  min-height: 82px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.5;
}
.notice-line {
  max-width: 1180px;
  margin: -10px auto 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--warn-soft);
  border: 1px solid #ead6c2;
  border-radius: 8px;
  line-height: 1.7;
  font-weight: 800;
}
.tool-card {
  display: grid;
  align-content: start;
  gap: 12px;
}
.tool-card > span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.tool-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
}
.tool-card p,
.tool-card dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-weight: 700;
}
.tool-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}
.tool-card dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-weight: 900;
}
.inline-link {
  display: inline;
  margin-top: 0;
}
.contact-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
}
.contact-panel span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}
.contact-panel h2 {
  margin: 8px 0 10px;
  font-size: 32px;
  line-height: 1.25;
}
.contact-panel a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-panel p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 700;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(22px, calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: flex-end;
  font-weight: 800;
}
.footer-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(20, 108, 91, .38);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav-links { width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .header-cta { display: none; }
  .hero, .goal-layout, .safety-columns { grid-template-columns: 1fr; }
  .prompt-grid,
  .recovery-grid,
  .template-list,
  .source-list,
  .scope-grid,
  .layer-grid,
  .workflow-list,
  .article-grid,
  .post-list,
  .phase-list,
  .step-list,
  .tool-card-grid,
  .approval-flow {
    grid-template-columns: 1fr;
  }
  .approval-flow article:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -18px;
    transform: translateX(50%) rotate(135deg);
  }
  .check-row { grid-template-columns: 28px 1fr; }
  .check-row em, .check-state { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  .hero { padding: 42px 18px 30px; }
  .brand { font-size: 16px; }
  .nav-links { gap: 14px; font-size: 13px; white-space: nowrap; }
  .hero h1 { font-size: 31px; line-height: 1.22; }
  .subhero { padding: 42px 18px 30px; }
  .subhero h1 { font-size: 28px; line-height: 1.24; }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; }
  .button, .section-actions .button { width: 100%; }
  .section { padding: 44px 18px; }
  .section-heading h2 { font-size: 25px; }
  .fit-table > div, .tool-table > div { grid-template-columns: 1fr; }
  .roadmap-preview li { grid-template-columns: 1fr; }
  .footer { flex-direction: column; padding-left: 18px; padding-right: 18px; }
  .footer-links { justify-content: flex-start; }
  .contact-panel h2 { font-size: 24px; }
}
