:root {
  color-scheme: light;
  --bg: #fffdf8;
  --paper: #ffffff;
  --ink: #111115;
  --muted: #64636b;
  --line: #e9e4da;
  --line-strong: #d6cdbd;
  --pink: #ff2f9b;
  --cyan: #08c7f7;
  --yellow: #ffe44d;
  --green: #23d16f;
  --red: #ff4038;
  --blue: #3157ff;
  --shadow: 0 24px 70px rgba(29, 20, 8, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.65;
  background:
    linear-gradient(90deg, rgba(255, 47, 155, .10), transparent 22%, transparent 78%, rgba(8, 199, 247, .10)),
    var(--bg);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(233, 228, 218, .8);
  background: rgba(255, 253, 248, .84);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    conic-gradient(from 30deg, var(--pink), var(--yellow), var(--green), var(--cyan), var(--blue), var(--pink));
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  overflow: hidden;
}

.workspace {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(280px, .84fr) minmax(320px, 1.16fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 70px) clamp(18px, 4vw, 52px) 28px;
}

.workspace > * {
  min-width: 0;
}

.workspace-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(56px, 10vw, 118px);
  line-height: .86;
  letter-spacing: 0;
}

.workspace-copy h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.workspace-copy h1::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: 0;
  width: min(100%, 240px);
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--cyan), var(--blue));
  transform: rotate(-1.2deg);
}

h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 520px;
  margin: 24px 0 0;
  color: #2e2c34;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action,
.filter-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}

.primary-action {
  padding: 0 24px;
  color: #fff;
  background: var(--ink);
  box-shadow: 5px 5px 0 var(--yellow);
}

.primary-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--pink);
}

.secondary-action,
.filter-button {
  padding: 0 18px;
  background: var(--paper);
}

.secondary-action:hover,
.filter-button:hover,
.filter-button.is-active {
  border-color: var(--pink);
  box-shadow: 4px 4px 0 rgba(255, 47, 155, .22);
}

.portrait-frame {
  position: relative;
  width: min(100%, 620px);
  max-width: 100%;
  margin: 0;
  justify-self: end;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 10px solid rgba(255, 255, 255, .74);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .74);
}

.status-strip div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.status-strip div:last-child {
  border-right: 0;
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(17px, 2vw, 22px);
}

.section-shell,
.seed-builder,
.lab-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 52px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.tool-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

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

.tool-card {
  display: flex;
  min-height: 248px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 40px rgba(30, 30, 35, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(30, 30, 35, .12);
}

.tool-card[data-status="ready"] {
  border-top: 5px solid var(--green);
}

.tool-card[data-status="draft"] {
  border-top: 5px solid var(--yellow);
}

.tool-card[data-status="log"] {
  border-top: 5px solid var(--cyan);
}

.tool-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: #3d3b43;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.seed-builder {
  max-width: 100%;
  background:
    linear-gradient(90deg, rgba(255, 47, 155, .18), rgba(255, 228, 77, .18), rgba(8, 199, 247, .18)),
    #fff;
}

.seed-builder > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.seed-layout {
  display: grid;
  grid-template-columns: minmax(270px, 380px) 1fr;
  gap: 18px;
}

.seed-panel,
.seed-output {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 18px 44px rgba(19, 15, 9, .08);
}

.seed-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.seed-panel label {
  font-size: 13px;
  font-weight: 900;
}

.seed-panel input,
.seed-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
}

.full-width {
  width: 100%;
  margin-top: 8px;
}

.seed-output {
  min-height: 264px;
  display: block;
  padding: clamp(20px, 4vw, 36px);
  color: #19171f;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 900;
  line-height: 1.55;
}

.seed-output small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-grid figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(30, 30, 35, .12);
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .3s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.045);
}

.gallery-grid figcaption {
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
}

.lab-band {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.lab-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  font-weight: 800;
}

.lab-list span {
  color: var(--pink);
  font-weight: 900;
}

.updates article {
  border-left: 5px solid var(--ink);
  padding: 6px 0 6px 18px;
}

.updates time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.updates p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 52px);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--pink), var(--yellow), var(--green), var(--cyan), var(--blue)) 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.download-hero {
  min-height: calc(100svh - 62px);
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 74px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 88px) clamp(18px, 4vw, 52px);
}

.download-copy {
  min-width: 0;
}

.download-copy h1 {
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: clamp(48px, 8vw, 98px);
  line-height: .98;
  font-weight: 900;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.download-thumb {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.download-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.download-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 52px);
}

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

.feature-grid article,
.download-info,
.caution {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 14px 40px rgba(30, 30, 35, .06);
}

.feature-grid article {
  padding: 22px;
}

.feature-grid span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.feature-grid p,
.caution p {
  margin: 12px 0 0;
  color: var(--muted);
}

.download-info {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  padding: clamp(22px, 4vw, 34px);
}

.download-info dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.download-info dl div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.download-info dt {
  color: var(--muted);
  font-weight: 900;
}

.download-info dd {
  margin: 0;
  font-weight: 800;
}

.hash-value {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.caution {
  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .workspace,
  .download-hero,
  .download-info,
  .caution,
  .seed-layout,
  .lab-band {
    grid-template-columns: 1fr;
  }

  .portrait-frame {
    justify-self: start;
    width: min(100%, 560px);
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .nav-links a {
    min-width: 72px;
  }

  h1 {
    font-size: clamp(48px, 17vw, 66px);
    line-height: .9;
  }

  .workspace {
    display: block;
    min-height: auto;
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  .workspace-copy,
  .lead {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .portrait-frame {
    justify-self: center;
    width: calc(100vw - 40px);
    margin-top: 26px;
  }

  .status-strip {
    margin-top: 26px;
  }

  .status-strip,
  .tool-grid,
  .feature-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .status-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip div:last-child {
    border-bottom: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }
}
