:root {
  --bg: #f7fcff;
  --surface: #ffffff;
  --soft: #edf7fd;
  --text: #23354a;
  --muted: #6d8093;
  --line: #dbeaf3;
  --dark: #24354f;
  --code: #18233a;
  --code-text: #f6f9ff;
  --accent: #258fce;
  --gradient-start: #25b8df;
  --gradient-end: #6d7cf4;
  --gradient-soft: linear-gradient(120deg, #def8ff 0%, #edf0ff 100%);
  --gradient-button: linear-gradient(120deg, #20b5dc 0%, #6679f2 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: auto;
  height: auto;
  margin: 0;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  color: #fff;
  background: var(--dark);
}

.site-header,
main,
footer {
  width: min(calc(100% - 40px), 760px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.site-header a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.site-header a:hover { text-decoration: underline; }

.hero {
  margin-top: 24px;
  padding: 64px 42px 58px;
  border-radius: 20px;
  background: linear-gradient(130deg, #ddf8ff 0%, #eef1ff 60%, #f8fbff 100%);
}
.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(38px, 8vw, 64px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.18;
}
.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #526a80;
  font-size: 19px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
}
.button-primary {
  color: #fff;
  background: var(--gradient-button);
  box-shadow: 0 12px 28px rgba(75, 129, 221, .22);
}
.button-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.button svg { width: 22px; height: 22px; }
.hero-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.guide-visual {
  margin: 28px 0 0;
}
.guide-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.guide-visual figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.concept-visual {
  margin: 0 0 56px;
}
.concept-visual img {
  background: #fff;
  box-shadow: 0 18px 46px rgba(45, 102, 148, .1);
}
.concept-visual figcaption {
  text-align: center;
}
.screenshot-visual {
  width: min(100%, 620px);
}
.finder-visual {
  width: min(100%, 640px);
}
.walkthrough > p:not(.section-label) {
  margin-bottom: 34px;
}
.walkthrough-visual {
  margin-top: 42px;
}
.walkthrough-visual + .walkthrough-visual {
  margin-top: 56px;
}
.visual-step {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 20px -12px;
  padding: 6px 12px 8px;
  border-radius: 10px;
  background: var(--gradient-soft);
  font-size: clamp(25px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.35;
}
.section > p:not(.section-label):not(.notice),
.section-heading-row + p {
  max-width: 650px;
  color: #526a80;
}

.length-point {
  margin: 18px 0 56px;
  padding: 28px 30px;
  border-radius: 18px;
  background: linear-gradient(130deg, #dbf8ff 0%, #edf0ff 100%);
  box-shadow: 0 16px 40px rgba(62, 132, 187, .1);
}
.point-label {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}
.length-point h2 {
  margin-bottom: 16px;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.45;
}
.length-point h2 strong {
  color: #465fe0;
  font-weight: 700;
}
.length-point p {
  margin-bottom: 12px;
  color: #49637a;
}
.length-point .point-note {
  margin-bottom: 0;
  font-weight: 600;
}

.steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.step-number { color: var(--accent); font-size: 22px; line-height: 1.4; }
.steps h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.steps p { margin-bottom: 0; color: var(--muted); }

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading-row h2 { margin-bottom: 0; }
.prompt-meta { flex: 0 0 auto; padding-bottom: 7px; color: var(--muted); font-size: 12px; }
.code-panel {
  margin-top: 24px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--code);
  box-shadow: 0 16px 36px rgba(26, 49, 84, .14);
}
.code-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px 0 18px;
  color: #c9c9c4;
  border-bottom: 1px solid #3e3e3b;
  font-size: 13px;
}
.code-toolbar button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #8aa7c8;
  border-radius: 5px;
  color: #fff;
  background: transparent;
}
.code-toolbar button:hover { background: #353532; }
pre {
  max-height: 520px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: var(--code-text);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.plain-steps {
  display: grid;
  gap: 14px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}
.plain-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.plain-steps span { font-size: 18px; }
.plain-steps p { margin: 0; }
.plain-steps code,
.agent-list code { padding: 2px 5px; border-radius: 4px; background: var(--soft); font-size: .92em; }
.notice {
  margin: 24px 0 0;
  padding: 16px 18px;
  color: #49637a;
  background: var(--soft);
  border-radius: 7px;
  font-size: 14px;
}

.agent-list { margin-top: 26px; }
.agent-list article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.agent-list article:first-child { border-top: 1px solid var(--line); }
.agent-list h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; }
.agent-list p { margin-bottom: 0; color: var(--muted); }
.setup-copy { margin-top: 30px; }
.code-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 14px 14px 16px;
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 10px 26px rgba(45, 102, 148, .08);
}
.code-strip code { align-self: center; font-family: inherit; font-size: 14px; overflow-wrap: anywhere; }
.code-strip button {
  min-width: 72px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #fff;
  background: var(--gradient-button);
}
.code-strip button:hover { filter: brightness(1.06); }

.final-section { padding-bottom: 72px; }
.final-section .button { margin-top: 8px; }
footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
footer a { min-height: 44px; display: inline-flex; align-items: center; }
footer p { margin-bottom: 0; }

#copy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  max-width: calc(100vw - 36px);
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--gradient-button);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
#copy-toast.visible { opacity: 1; transform: translateY(0); }

button:focus-visible,
a:focus-visible,
pre:focus-visible {
  outline: 3px solid #70706b;
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .site-header,
  main,
  footer { width: min(calc(100% - 40px), 760px); }
  .hero { margin-top: 12px; padding: 44px 24px 40px; border-radius: 16px; }
  .hero-lead { font-size: 17px; }
  .button { width: 100%; }
  .section { padding: 44px 0; }
  .section h2 { margin-left: -8px; padding-right: 8px; padding-left: 8px; }
  .length-point { margin-bottom: 44px; padding: 24px 22px; border-radius: 15px; }
  .concept-visual { margin-bottom: 44px; }
  .guide-visual { margin-top: 24px; }
  .walkthrough-visual + .walkthrough-visual { margin-top: 44px; }
  .section-heading-row { display: block; }
  .prompt-meta { display: block; padding: 8px 0 0; }
  .steps li { grid-template-columns: 38px 1fr; gap: 12px; }
  .code-toolbar { align-items: center; }
  pre { max-height: 460px; padding: 18px; font-size: 12px; }
  .code-strip { grid-template-columns: 1fr; }
  .code-strip button { width: 100%; }
  footer { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 22px 0; }
}

@media (max-width: 374px) {
  .site-header,
  main,
  footer { width: calc(100% - 32px); }
  h1 { font-size: 36px; }
  .code-toolbar span { max-width: 150px; line-height: 1.4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
