:root {
  --paper: #f5f5f2;
  --white: #ffffff;
  --ink: #161718;
  --muted: #666965;
  --line: #d9dad4;
  --soft: #ecece7;
  --accent: #6759f3;
  --accent-dark: #493bd3;
  --accent-soft: #eeecff;
  --lime: #d9ff62;
  --danger: #a83939;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow: 0 18px 50px rgb(20 22 23 / 8%);
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 3px solid #1c7cf0;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(22 23 24 / 10%);
  background: rgb(245 245 242 / 92%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 28px, 1340px);
  min-height: 68px;
  margin-inline: auto;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 29px;
  height: 29px;
  padding: 4px;
  transform: rotate(-8deg);
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  gap: 3px;
}

.brand-mark i {
  display: block;
  background: var(--ink);
}

.brand-mark i:last-child {
  margin-top: 7px;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.header-nav button {
  padding: 9px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.header-nav button:hover {
  background: var(--ink);
  color: var(--white);
}

.view {
  animation: view-in 240ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.eyebrow,
.mini-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero {
  padding-block: 72px 58px;
  text-align: center;
}

.hero-primary {
  display: grid;
  justify-items: start;
  padding-bottom: 40px;
  text-align: left;
  gap: 44px;
}

.hero-primary .hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero h1,
.maker-intro h1,
.review-heading h1,
.designs-heading h1 {
  margin: 0;
  font-size: clamp(32px, 9.5vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.075em;
}

.view h1[tabindex="-1"]:focus,
.form-step legend[tabindex="-1"]:focus {
  outline: none;
}

.hero-copy {
  max-width: 720px;
  margin: 26px auto 0;
  font-size: clamp(18px, 4.5vw, 27px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.5;
}

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

.hero-primary .hero-copy,
.hero-primary .hero-note {
  margin-left: 0;
}

.hero-primary .hero-copy {
  max-width: 580px;
  color: var(--accent-dark);
}

.hero-primary .hero-note {
  max-width: 560px;
}

.hero-cta {
  min-width: min(100%, 280px);
  margin-top: 28px;
}

.hero-catalog-visual {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 28px 80px rgb(20 22 23 / 13%);
}

.hero-catalog-visual img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.flow-diagram {
  display: grid;
  justify-items: center;
  width: min(100%, 760px);
  margin: 44px auto 0;
  padding: 26px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 32px rgb(20 22 23 / 4%);
  gap: 9px;
}

.flow-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  gap: 9px;
}

.flow-pair-compact {
  width: min(100%, 440px);
}

.flow-token {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  gap: 7px;
}

.flow-token span {
  font-size: 20px;
  font-weight: 500;
}

.flow-token-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.flow-token-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.flow-symbol,
.flow-arrow {
  color: #848681;
  font-weight: 700;
}

.start-area {
  padding-bottom: 72px;
}

.home-designs {
  padding-block: 64px 82px;
  scroll-margin-top: 86px;
}

.home-designs-heading {
  display: grid;
  margin-bottom: 28px;
  gap: 12px;
}

.home-designs-heading h2,
.requirements-helper h2 {
  margin: 0;
  font-size: clamp(34px, 8vw, 58px);
  letter-spacing: -0.06em;
  line-height: 1.2;
}

.home-designs-heading > p {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.explain-inner h2 {
  margin: 0;
  font-size: clamp(28px, 7vw, 46px);
  letter-spacing: -0.055em;
  line-height: 1.25;
}

.entrance-grid {
  display: grid;
  gap: 16px;
}

.entrance-card {
  position: relative;
  display: grid;
  min-height: 440px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.entrance-card::before,
.entrance-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  content: "";
}

.entrance-ready {
  background: var(--ink);
  color: var(--white);
}

.entrance-ready::before {
  top: -50px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 1px solid rgb(255 255 255 / 18%);
}

.entrance-ready::after {
  top: 90px;
  right: 45px;
  width: 72px;
  height: 72px;
  background: var(--lime);
  box-shadow: 0 0 0 26px rgb(217 255 98 / 9%);
}

.entrance-organize {
  background: var(--accent);
  color: var(--white);
}

.entrance-organize::before {
  top: -60px;
  right: -25px;
  width: 240px;
  height: 240px;
  background: linear-gradient(140deg, rgb(255 255 255 / 30%), transparent 65%);
}

.entrance-organize::after {
  top: 110px;
  right: 35px;
  width: 95px;
  height: 95px;
  border: 24px solid rgb(255 255 255 / 15%);
}

.entrance-card .card-number {
  align-self: start;
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.entrance-card > div {
  align-self: end;
}

.entrance-card .mini-label {
  color: currentColor;
  opacity: 0.68;
}

.entrance-card h3 {
  margin: 0;
  font-size: clamp(32px, 8vw, 52px);
  letter-spacing: -0.06em;
  line-height: 1.16;
}

.entrance-card div > p:last-child {
  max-width: 430px;
  margin: 16px 0 0;
  font-size: 14px;
  opacity: 0.78;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-dark {
  background: var(--ink);
  color: var(--white);
}

.entrance-ready .button-dark {
  background: var(--white);
  color: var(--ink);
}

.button-accent {
  background: var(--accent);
  color: var(--white);
}

.entrance-organize .button-accent {
  background: var(--white);
  color: var(--accent-dark);
}

.button-secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-wide {
  width: 100%;
}

.explain-strip {
  padding-block: 68px;
  background: var(--white);
}

.explain-inner {
  display: grid;
  gap: 24px;
}

.explain-inner > div > p {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
}

.explain-inner .flow-diagram {
  align-self: center;
  margin: 0;
}

.requirements-helper {
  padding-block: 70px;
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
}

.requirements-helper-inner {
  position: relative;
  display: grid;
  gap: 34px;
}

.requirements-helper-inner::after {
  position: absolute;
  right: -120px;
  bottom: -190px;
  width: 340px;
  height: 340px;
  border: 58px solid rgb(255 255 255 / 8%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.requirements-helper .eyebrow,
.requirements-helper .helper-copy > p:last-child {
  color: currentColor;
}

.requirements-helper .eyebrow {
  opacity: 0.66;
}

.helper-copy > p:last-child {
  max-width: 650px;
  margin: 18px 0 0;
  font-size: 15px;
  opacity: 0.82;
}

.helper-action {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius-md);
  background: rgb(255 255 255 / 10%);
}

.helper-badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.helper-action small {
  display: block;
  margin-top: 11px;
  font-size: 11px;
  opacity: 0.68;
}

.maker-shell,
.review-shell,
.designs-shell {
  padding-block: 44px 80px;
}

.maker-intro,
.review-heading,
.designs-heading {
  margin-bottom: 36px;
}

.maker-intro h1 {
  margin-top: 12px;
  font-size: clamp(38px, 9vw, 70px);
}

.maker-intro > p:last-child,
.review-heading > p:last-child,
.designs-heading > p:last-child {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
}

.text-button {
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.maker-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.progress-wrap {
  margin-bottom: 34px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.progress-copy strong {
  color: var(--ink);
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--soft);
}

.progress-track span {
  display: block;
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  animation: step-in 220ms ease both;
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step legend {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(27px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.3;
}

.field-hint {
  margin: 8px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-item {
  position: relative;
}

.choice-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.choice-item label {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-item label::after {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  place-items: center;
  border: 1.5px solid #a8aaa5;
  border-radius: 6px;
  color: var(--white);
  content: "";
  font-size: 13px;
  line-height: 1;
}

.choice-item input[type="radio"] + label::after {
  border-radius: 50%;
}

.choice-item input:checked + label {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: #3026a6;
}

.choice-item input:checked + label::after {
  border-color: var(--accent);
  background: var(--accent);
}

.choice-item input:focus-visible + label {
  outline: 3px solid #1c7cf0;
  outline-offset: 3px;
}

.choice-item label:hover {
  border-color: #9693bd;
  transform: translateY(-1px);
}

.conditional-field,
.field-block {
  margin-top: 24px;
}

.conditional-field label,
.field-block label,
.detail-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.field-block label span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}

input[type="text"] {
  min-height: 54px;
  padding: 12px 15px;
}

textarea {
  min-height: 110px;
  padding: 14px 15px;
  line-height: 1.7;
  resize: vertical;
}

input[type="text"]:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(103 89 243 / 18%);
}

.detail-fields {
  display: grid;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  gap: 18px;
}

.detail-fields:empty {
  display: none;
}

.detail-field {
  animation: step-in 180ms ease both;
}

.form-error {
  margin: 24px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--danger);
  background: #fff0f0;
  color: #7e2222;
  font-size: 13px;
  font-weight: 700;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 34px;
  gap: 10px;
}

.form-actions .button {
  width: 100%;
}

.maker-reset {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.danger-text {
  color: var(--danger);
}

.review-heading h1,
.designs-heading h1 {
  margin-top: 12px;
  font-size: clamp(40px, 10vw, 78px);
}

.review-layout {
  display: grid;
  gap: 18px;
}

.preview-card,
.download-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-card {
  overflow: hidden;
}

.preview-card-top {
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.preview-card pre {
  max-height: 660px;
  margin: 0;
  padding: 22px;
  overflow: auto;
  color: #2d2f30;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
}

.download-panel {
  align-self: start;
  padding: 24px;
}

.download-panel h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.download-panel > p:not(.mini-label) {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.next-design {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  animation: view-in 260ms ease both;
}

.completion-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 0 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
}

.next-design h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.next-design p:not(.completion-mark) {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.design-grid {
  display: grid;
  gap: 22px;
}

.design-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.design-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgb(20 22 23 / 13%);
}

.design-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  background: #dadbd7;
}

.design-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 320ms ease;
}

.design-card:hover .design-image-wrap img {
  transform: scale(1.018);
}

.design-id {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
}

.design-card-body {
  padding: 24px;
}

.design-card-body h2 {
  margin: 0;
  font-size: clamp(25px, 6vw, 36px);
  letter-spacing: -0.055em;
  line-height: 1.28;
}

.design-card-body > p {
  margin: 11px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.tag-list,
.dialog-tags {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 22px;
  gap: 7px;
}

.tag-list span,
.dialog-tags span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: #4f514d;
  font-size: 11px;
  font-weight: 700;
}

.privacy-note {
  display: grid;
  margin-top: 30px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  gap: 14px;
}

.privacy-note > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 24px;
}

.privacy-note h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.privacy-note p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.design-dialog {
  width: min(100% - 20px, 1180px);
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 30px 100px rgb(0 0 0 / 28%);
}

.design-dialog::backdrop {
  background: rgb(15 16 17 / 72%);
  backdrop-filter: blur(4px);
}

.design-dialog[open] {
  animation: dialog-in 220ms ease both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-surface {
  position: relative;
  max-height: calc(100dvh - 20px);
  overflow: auto;
}

.dialog-close {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 14px 14px -58px auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 93%);
  color: var(--ink);
  box-shadow: 0 8px 25px rgb(0 0 0 / 15%);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
}

.dialog-visual {
  max-height: 65dvh;
  overflow: auto;
  background: #e4e4df;
}

.dialog-visual img {
  width: 100%;
  height: auto;
}

.dialog-content {
  padding: 28px 22px 34px;
}

.dialog-content > h2 {
  margin: 0;
  font-size: clamp(31px, 8vw, 47px);
  letter-spacing: -0.06em;
  line-height: 1.22;
}

.dialog-content > p:not(.eyebrow) {
  margin: 14px 0 16px;
  color: var(--muted);
}

.moto-explain {
  margin: 24px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.moto-explain h3 {
  margin: 0;
  font-size: 17px;
}

.moto-explain p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.how-to {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.how-to > h3 {
  margin: 0 0 20px;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.how-to ol {
  display: grid;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.how-to li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
}

.how-to li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.how-to li strong {
  display: block;
  font-size: 14px;
}

.how-to li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.copy-card {
  display: grid;
  padding: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  gap: 12px;
}

.copy-card p {
  margin: 0;
  color: #3026a6;
  font-size: 13px;
  font-weight: 700;
}

.copy-card button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.existing-flyer {
  margin-top: 28px;
}

.existing-flyer h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.copy-card-muted {
  background: var(--soft);
}

.copy-card-muted p {
  color: #4c4f4c;
}

.copy-card-muted button {
  background: var(--ink);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
  font-size: 13px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-block: 26px;
  gap: 14px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  opacity: 0.72;
}

@media (min-width: 640px) {
  .shell {
    width: min(100% - 56px, 1280px);
  }

  .header-nav {
    display: flex;
  }

  .brand {
    font-size: 14px;
  }

  .flow-diagram {
    padding: 30px;
  }

  .flow-token {
    font-size: 15px;
  }

  .entrance-card {
    padding: 38px;
  }

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

  .form-actions {
    grid-template-columns: auto minmax(220px, 1fr);
    justify-content: end;
  }

  .form-actions .button-secondary {
    width: auto;
  }

  .privacy-note {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .copy-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 860px) {
  .hero {
    padding-block: 105px 78px;
  }

  .hero-primary {
    padding-block: 58px 78px;
    gap: 42px;
  }

  .hero-primary h1 {
    font-size: clamp(56px, 5.2vw, 80px);
  }

  .home-designs {
    padding-block: 96px 120px;
  }

  .home-designs-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    align-items: end;
    margin-bottom: 38px;
    gap: 40px;
  }

  .start-area {
    padding-bottom: 110px;
  }

  .section-heading {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: end;
  }

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

  .entrance-card {
    min-height: 560px;
  }

  .explain-strip {
    padding-block: 100px;
  }

  .explain-inner {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    align-items: center;
    gap: 70px;
  }

  .requirements-helper {
    padding-block: 96px;
  }

  .requirements-helper-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: 70px;
  }

  .maker-shell,
  .review-shell,
  .designs-shell {
    padding-block: 72px 120px;
  }

  .maker-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.35fr);
    align-items: start;
    gap: 48px;
  }

  .maker-intro {
    position: sticky;
    top: 112px;
    margin-bottom: 0;
  }

  .maker-panel {
    padding: 34px;
  }

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

  .review-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.65fr);
    align-items: start;
    gap: 24px;
  }

  .download-panel {
    position: sticky;
    top: 100px;
  }

  .design-image-wrap {
    aspect-ratio: 1 / 1.14;
  }

  .dialog-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  }

  .dialog-visual {
    max-height: calc(100dvh - 20px);
  }

  .dialog-content {
    padding: 54px 44px;
  }
}

@media (min-width: 1180px) {
  .maker-shell {
    gap: 80px;
  }

  .maker-panel {
    padding: 44px;
  }

  .design-card-body {
    padding: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Simple catalog redesign — grounded in the supplied layout PDF. */
:root {
  --catalog-bg: #090909;
  --catalog-panel: #121212;
  --catalog-panel-2: #181818;
  --catalog-text: #f7f5ef;
  --catalog-muted: #a7a7a3;
  --catalog-line: #333331;
  --catalog-accent: #f1ff42;
}

body {
  background: var(--catalog-bg);
}

.site-header {
  border-color: var(--catalog-line);
  background: rgb(9 9 9 / 94%);
  color: var(--catalog-text);
}

.header-inner {
  min-height: 66px;
}

.brand {
  display: grid;
  justify-items: start;
  gap: 0;
  color: var(--catalog-text);
  line-height: 1.25;
}

.brand > span {
  font-size: 14px;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--catalog-muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.header-nav button {
  color: var(--catalog-muted);
}

.header-nav button:hover {
  background: var(--catalog-text);
  color: var(--catalog-bg);
}

.view-home {
  min-height: 100vh;
  background: var(--catalog-bg);
  color: var(--catalog-text);
}

.view-maker,
.view-review {
  min-height: calc(100vh - 66px);
  background: var(--paper);
  color: var(--ink);
}

.catalog-shell {
  padding-block: 38px 96px;
}

.catalog-intro {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.catalog-kicker {
  margin: 0 0 13px;
  color: var(--catalog-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.catalog-intro h1 {
  margin: 0;
  color: var(--catalog-text);
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.15;
}

.catalog-lead {
  margin: 15px 0 0;
  color: var(--catalog-text);
  font-size: clamp(19px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.catalog-description {
  max-width: 640px;
  margin: 9px auto 0;
  color: var(--catalog-muted);
  font-size: 13px;
}

.usage-guide {
  display: grid;
  max-width: 960px;
  margin: 26px auto 0;
  padding: 0;
  border: 1px solid var(--catalog-line);
  list-style: none;
}

.usage-step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 18px 22px;
  text-align: left;
  gap: 17px;
}

.usage-step + .usage-step {
  border-top: 1px solid var(--catalog-line);
}

.usage-step-number {
  color: var(--catalog-accent);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
}

.usage-step strong {
  display: block;
  color: var(--catalog-text);
  font-size: 15px;
  line-height: 1.45;
}

.usage-step p {
  margin: 3px 0 0;
  color: var(--catalog-muted);
  font-size: 11px;
  line-height: 1.55;
}

.helper-link {
  display: grid;
  justify-items: center;
  width: min(100%, 650px);
  margin: 18px auto 0;
  padding: 14px 22px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  background: transparent;
  color: var(--catalog-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.helper-link span {
  color: var(--catalog-muted);
  font-size: 10px;
  font-weight: 500;
}

.helper-link:hover {
  border-color: #686866;
  background: var(--catalog-panel);
}

.prompt-catalog {
  padding-top: 60px;
  scroll-margin-top: 78px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--catalog-line);
  gap: 20px;
}

.catalog-heading h2 {
  margin: 0;
  color: var(--catalog-text);
  font-size: clamp(25px, 4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.25;
}

.catalog-count {
  margin: 0;
  color: var(--catalog-muted);
  font-size: 12px;
}

.catalog-count span {
  color: var(--catalog-text);
  font-size: 22px;
  font-weight: 700;
}

.filter-shell {
  position: relative;
  z-index: 4;
  padding-block: 18px 26px;
}

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

.filter-menu {
  position: relative;
  min-width: 150px;
}

.filter-menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  background: var(--catalog-panel);
  color: var(--catalog-text);
  font-size: 12px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  gap: 12px;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::after {
  content: "開く";
  color: var(--catalog-muted);
  font-size: 9px;
  font-weight: 500;
}

.filter-menu[open] summary {
  border-color: var(--catalog-accent);
}

.filter-menu[open] summary::after {
  content: "閉じる";
}

.filter-menu-count {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--catalog-accent);
  color: var(--catalog-bg);
  font-size: 10px;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid var(--catalog-line);
  background: var(--catalog-panel-2);
  gap: 8px;
}

.filter-option {
  position: relative;
  cursor: pointer;
}

.filter-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.filter-option span {
  display: block;
  padding: 7px 12px;
  border: 1px solid #454543;
  border-radius: 999px;
  color: var(--catalog-muted);
  font-size: 11px;
  line-height: 1.4;
}

.filter-option input:focus-visible + span {
  outline: 3px solid #1c7cf0;
  outline-offset: 2px;
}

.filter-option input:checked + span {
  border-color: var(--catalog-accent);
  background: var(--catalog-accent);
  color: var(--catalog-bg);
  font-weight: 800;
}

.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  padding-top: 12px;
  gap: 7px;
}

.active-filter-list button,
.filter-clear {
  border: 0;
  background: transparent;
  color: var(--catalog-muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.active-filter-list button span {
  margin-left: 4px;
  font-size: 8px;
}

.filter-clear {
  flex: 0 0 auto;
  padding-top: 12px;
}

.prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 46px 18px;
}

.prompt-card {
  min-width: 0;
}

.prompt-preview-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.prompt-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.414;
  border: 1px solid var(--catalog-line);
  background: var(--catalog-panel);
}

.prompt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease, opacity 240ms ease;
}

.preview-label {
  position: absolute;
  inset: auto 10px 10px;
  padding: 8px 10px;
  background: rgb(9 9 9 / 88%);
  color: var(--catalog-text);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms ease;
}

.prompt-card-body {
  padding-top: 15px;
}

.prompt-number {
  margin: 0 0 5px;
  color: var(--catalog-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.prompt-title {
  margin: 0;
  color: var(--catalog-text);
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.prompt-description {
  min-height: 44px;
  margin: 7px 0 9px;
  color: var(--catalog-muted);
  font-size: 11px;
  line-height: 1.7;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  min-height: 25px;
  gap: 5px 9px;
}

.prompt-tags span {
  color: #b8b8b3;
  font-size: 10px;
}

.prompt-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  color: var(--catalog-text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.prompt-download span {
  color: var(--catalog-muted);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.prompt-download:hover {
  border-color: var(--catalog-accent);
  background: var(--catalog-accent);
  color: var(--catalog-bg);
}

.prompt-download:hover span {
  color: var(--catalog-bg);
}

.catalog-empty {
  margin: 10px 0 0;
  padding: 50px 20px;
  border: 1px solid var(--catalog-line);
  color: var(--catalog-muted);
  font-size: 13px;
  text-align: center;
}

.preview-dialog {
  width: min(100% - 20px, 980px);
  max-width: none;
  max-height: calc(100dvh - 20px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3b3b39;
  background: var(--catalog-bg);
  color: var(--catalog-text);
}

.preview-dialog::backdrop {
  background: rgb(0 0 0 / 86%);
  backdrop-filter: blur(4px);
}

.preview-dialog-surface {
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: calc(100dvh - 20px);
}

.preview-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 15px 10px 20px;
  border-bottom: 1px solid var(--catalog-line);
  gap: 20px;
}

.preview-dialog-bar h2 {
  margin: 0;
  font-size: 14px;
}

.preview-dialog-close {
  padding: 7px 13px;
  border: 1px solid var(--catalog-line);
  border-radius: 999px;
  background: transparent;
  color: var(--catalog-text);
  font-size: 11px;
  cursor: pointer;
}

.preview-dialog-image {
  min-height: 0;
  overflow: auto;
}

.preview-dialog-image img {
  width: min(100%, 760px);
  height: auto;
  margin-inline: auto;
}

.site-footer {
  border-color: var(--catalog-line);
  background: var(--catalog-bg);
  color: var(--catalog-muted);
}

@media (hover: hover) and (pointer: fine) {
  .prompt-preview-button:hover .prompt-thumb img,
  .prompt-preview-button:focus-visible .prompt-thumb img {
    transform: scale(1.025);
    opacity: 0.7;
  }

  .prompt-preview-button:hover .preview-label,
  .prompt-preview-button:focus-visible .preview-label {
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .catalog-shell {
    padding-top: 48px;
  }

  .usage-guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .usage-step + .usage-step {
    border-top: 0;
    border-left: 1px solid var(--catalog-line);
  }

  .filter-panel {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: min(680px, calc(100vw - 32px));
    box-shadow: 0 20px 45px rgb(0 0 0 / 36%);
  }

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

@media (min-width: 900px) {
  .catalog-shell {
    padding-top: 52px;
  }

  .catalog-intro h1 {
    font-size: 60px;
  }

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

/* White-base catalog variation. */
:root {
  --catalog-bg: #ffffff;
  --catalog-panel: #ffffff;
  --catalog-panel-2: #f6f6f4;
  --catalog-text: #121212;
  --catalog-muted: #6e6e69;
  --catalog-line: #d9d9d4;
  --catalog-accent: #e7ff00;
}

body,
.view-home {
  background: var(--catalog-bg);
  color: var(--catalog-text);
}

.site-header {
  border-color: var(--catalog-line);
  background: rgb(255 255 255 / 94%);
  color: var(--catalog-text);
}

.brand,
.brand > span,
.catalog-intro h1,
.catalog-lead,
.usage-step strong,
.helper-link,
.catalog-heading h2,
.catalog-count span,
.filter-menu summary,
.prompt-title,
.prompt-download,
.preview-dialog {
  color: var(--catalog-text);
}

.header-nav button {
  color: var(--catalog-muted);
}

.header-nav button:hover {
  background: var(--catalog-text);
  color: #ffffff;
}

.usage-guide,
.usage-step + .usage-step,
.catalog-heading,
.filter-menu summary,
.filter-panel,
.prompt-thumb,
.prompt-download,
.catalog-empty,
.preview-dialog,
.preview-dialog-bar,
.preview-dialog-close,
.site-footer {
  border-color: var(--catalog-line);
}

.helper-link,
.filter-menu summary,
.prompt-download,
.preview-dialog-close {
  background: #ffffff;
}

.helper-link:hover,
.filter-menu[open] summary {
  border-color: var(--catalog-text);
  background: #f6f6f4;
}

.filter-panel {
  background: var(--catalog-panel-2);
  box-shadow: 0 20px 45px rgb(0 0 0 / 10%);
}

.filter-option span {
  border-color: #c7c7c1;
  background: #ffffff;
  color: var(--catalog-muted);
}

.filter-option input:checked + span,
.prompt-download:hover {
  border-color: var(--catalog-text);
  background: var(--catalog-accent);
  color: var(--catalog-text);
}

.filter-menu-count {
  background: var(--catalog-accent);
  color: var(--catalog-text);
}

.prompt-thumb {
  background: #f3f3ef;
}

.preview-label {
  background: rgb(18 18 18 / 88%);
  color: #ffffff;
}

.prompt-tags span {
  color: var(--catalog-muted);
}

.prompt-download:hover span {
  color: var(--catalog-text);
}

.preview-dialog {
  background: #ffffff;
}

.preview-dialog::backdrop {
  background: rgb(18 18 18 / 45%);
}

.site-footer {
  background: #f6f6f4;
  color: var(--catalog-muted);
}

/* Fluorescent-yellow accents: guide the eye to the next action. */
.catalog-kicker {
  color: #7c8800;
}

.usage-step-number {
  color: #bdd000;
}

.helper-link {
  border-color: #c9df00;
}

.helper-link:hover {
  background: var(--catalog-accent);
}

.prompt-download {
  border-color: #c9df00;
  background: var(--catalog-accent);
  color: var(--catalog-text);
}

.prompt-download span {
  color: #536000;
}
