﻿:root {
  --ink: #111111;
  --ink-soft: #545454;
  --paper: #f7f5ef;
  --white: #ffffff;
  --line: #dedbd2;
  --line-strong: #c8c4ba;
  --lime: #c7ff00;
  --lime-dark: #8fc400;
  --violet: #7b4dff;
  --violet-soft: #ebe4ff;
  --charcoal: #202020;
  --paper-dark: #ebe8df;
  --pink: #ff5c8a;
  --pink-dark: #dd3266;
  --yellow: #f4ff80;
  --mint: #4be0bd;
  --blue: #5aa8ff;
  --orange: #ff9f43;
  --green: #14b88f;
  --shadow: 0 18px 46px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.028) 1px, transparent 1px),
    linear-gradient(105deg, rgba(199, 255, 0, 0.16) 0 12%, transparent 12% 100%),
    linear-gradient(135deg, #fbfaf6 0%, #f0eee7 52%, #f8f7f2 100%);
  background-size: 34px 34px, 34px 34px, auto, auto;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand,
.topnav,
.hero-actions,
.toolbar,
.result-head,
.action-row,
.copy-row,
.external-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}

.brand-name {
  font-size: 17px;
  font-weight: 900;
}

.topnav {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav a {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.hero-section,
.usage-section,
.app-shell,
.tips-section,
.app-footer {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero-section {
  min-height: clamp(560px, 76vh, 720px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  align-items: center;
  gap: 30px;
  padding: 28px 0 34px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 610px;
  font-size: clamp(34px, 5.7vw, 66px);
  line-height: 1.08;
  font-weight: 900;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.25;
  font-weight: 900;
}

h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span {
  display: inline-grid;
  place-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.14);
  font-size: 12px;
  font-weight: 900;
}

.hero-tags span:nth-child(2n) {
  background: var(--violet-soft);
}

.hero-note {
  max-width: 540px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 800;
}

.hero-actions {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.primary-link,
.secondary-link,
.primary-button,
.ghost-button,
.plain-button,
.copy-button,
.external-link {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.primary-link,
.secondary-link {
  display: inline-grid;
  place-items: center;
  padding: 12px 18px;
}

.primary-link,
.primary-button {
  color: var(--ink);
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 0 5px 0 var(--ink), 0 16px 28px rgba(199, 255, 0, 0.22);
}

.secondary-link,
.ghost-button,
.plain-button,
.copy-button {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
}

.primary-link:hover,
.secondary-link:hover,
.primary-button:hover,
.ghost-button:hover,
.copy-button:hover,
.external-link:hover {
  transform: translateY(-1px);
}

.hero-visual {
  margin: 0;
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 10px 10px 0 rgba(17, 17, 17, 0.16), var(--shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.usage-section,
.tips-section {
  padding: 48px 0 16px;
}

.section-heading {
  margin-bottom: 16px;
}

.usage-flow,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.flow-step,
.tips-grid article,
.workspace,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.flow-step,
.tips-grid article {
  min-width: 0;
  padding: 18px;
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.flow-step:nth-child(2) .step-num {
  color: var(--ink);
  background: var(--lime);
}

.flow-step:nth-child(3) .step-num {
  background: var(--violet);
}

.flow-step:nth-child(4) .step-num {
  color: var(--ink);
  background: var(--paper-dark);
}

.capability-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 4px;
}

.capability-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(17, 17, 17, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.capability-track span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.capability-track span:nth-child(3n+1) {
  background: var(--lime);
}

.capability-track span:nth-child(3n+2) {
  background: var(--violet-soft);
}

.flow-step p,
.tips-grid p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.app-shell {
  padding: 44px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 20px;
  align-items: start;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.result-panel {
  position: sticky;
  top: 18px;
  min-width: 0;
  padding: 18px;
}

.toolbar,
.result-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field,
.control-group {
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.span-2 {
  grid-column: 1 / -1;
}

.field span,
.control-group legend {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.field b {
  color: var(--pink-dark);
  font-size: 11px;
}

.field-note {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 44px;
  padding: 10px 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.75;
}

input::placeholder,
textarea::placeholder {
  color: #9c95aa;
}

input:focus,
textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 92, 138, 0.14);
  background: #fffefe;
}

.control-group {
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, rgba(199, 255, 0, 0.12), rgba(123, 77, 255, 0.08));
  background-size: 24px 24px, 24px 24px, auto;
}

.control-group legend {
  padding: 0 8px;
}

.group-note {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
  font-weight: 800;
}

.design-block {
  margin-top: 16px;
}

.design-block:first-of-type {
  margin-top: 0;
}

.design-block h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 13px;
}

.design-fields {
  margin-top: 16px;
}

.design-ng {
  margin-top: 16px;
}

.advanced-design {
  margin-top: 16px;
}

.advanced-design summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.16);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.advanced-design summary::-webkit-details-marker {
  display: none;
}

.advanced-design summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--white);
  font-weight: 900;
}

.advanced-design[open] summary::after {
  content: "-";
}

.advanced-design-body {
  margin-top: 16px;
  padding-top: 2px;
}

.chip-grid,
.section-grid {
  display: grid;
  gap: 9px;
}

.chip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.design-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.choice-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.choice:nth-child(4n+1) .choice-icon {
  color: var(--ink);
  background: var(--lime);
}

.choice:nth-child(4n+2) .choice-icon {
  background: var(--violet);
}

.choice:nth-child(4n+3) .choice-icon {
  background: var(--ink);
}

.choice:nth-child(4n+4) .choice-icon {
  color: var(--ink);
  background: var(--paper-dark);
}

.choice-main {
  min-width: 0;
}

.choice-title {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.choice-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
}

.design-builder .choice {
  align-items: flex-start;
  min-height: 72px;
}

.design-builder .choice-icon {
  margin-top: 1px;
}

.choice:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.choice.checked {
  border-color: var(--ink);
  background: rgba(199, 255, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.16);
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 900;
}

.action-row {
  margin-top: 10px;
  gap: 10px;
}

button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 18px;
}

.primary-button:active,
.primary-link:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.ghost-button,
.plain-button {
  padding: 9px 12px;
}

.plain-button {
  color: var(--ink-soft);
}

.copy-button {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--violet);
}

.copy-button.copied {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.status-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.status-pill.ready {
  color: #087256;
  border-color: rgba(20, 184, 143, 0.38);
  background: rgba(20, 184, 143, 0.1);
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  background: var(--white);
  font-weight: 900;
}

.tab-button.active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--lime);
}

.external-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.external-link {
  flex: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid;
  font-size: 13px;
}

.claude-link {
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.24);
  background: rgba(199, 255, 0, 0.18);
}

.codex-link {
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.24);
  background: rgba(255, 255, 255, 0.92);
}

.chatgpt-link {
  color: var(--violet);
  border-color: rgba(123, 77, 255, 0.32);
  background: rgba(123, 77, 255, 0.1);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.copy-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.prompt-output,
.image-prompt-item {
  border: 1px solid rgba(34, 33, 47, 0.08);
  border-radius: 8px;
  background: #1d1d1d;
}

.prompt-output {
  min-height: 430px;
  max-height: min(58vh, 620px);
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #fffdf8;
  font-size: 12px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
}

.image-prompt-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 3px;
}

.image-prompt-item {
  padding: 14px;
  color: #fffdf8;
}

.image-prompt-item h3 {
  margin: 0 0 9px;
  color: var(--yellow);
  font-size: 13px;
}

.image-prompt-item pre {
  margin: 0 0 12px;
  color: #fffdf8;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.empty-state {
  margin: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 13px;
  text-align: center;
}

.tips-section {
  padding-bottom: 30px;
}

.tips-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-footer {
  padding: 6px 0 30px;
  color: var(--ink-soft);
  font-size: 12px;
}

.app-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero-section,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 0;
  }

  .hero-visual {
    order: -1;
  }

  .result-panel {
    position: static;
  }

  .usage-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .topnav {
    justify-content: flex-start;
  }

  .hero-section,
  .usage-section,
  .app-shell,
  .tips-section,
  .app-footer {
    width: calc(100% - 24px);
  }

  .workspace,
  .result-panel,
  .flow-step,
  .tips-grid article {
    padding: 16px;
  }

  .field-grid,
  .chip-grid,
  .section-grid,
  .usage-flow,
  .tips-grid {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .plain-button,
  .ghost-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(31px, 14vw, 44px);
  }

  .hero-actions,
  .external-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .external-actions {
    grid-template-columns: 1fr;
  }

  .primary-link,
  .secondary-link,
  .external-link {
    width: 100%;
  }
}


.assist-panel,
.next-action-card {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.assist-head,
.next-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.assist-head h3,
.next-action-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 16px;
}

.assist-head p,
.assist-hint,
.assist-status {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.assist-mode-switch,
.output-mode-switch,
.assist-save-row,
.assist-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assist-mode-button,
.assist-tool-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.assist-mode-button.active,
.assist-mode-button.primary {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--lime);
}

.assist-question-flow {
  margin-top: 14px;
}

.assist-question-flow[hidden] {
  display: none;
}

.assist-question-card {
  display: grid;
  gap: 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.8);
}

.assist-counter {
  color: var(--violet);
  font-size: 11px;
  font-weight: 900;
}

.assist-question {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.assist-save-row {
  align-items: center;
  margin-top: 12px;
}

.next-action-card {
  background: rgba(255, 255, 255, 0.94);
}

.next-action-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.8fr);
  gap: 12px;
  margin-top: 12px;
}

.next-steps {
  border: 1px solid rgba(34, 33, 47, 0.08);
  border-radius: 8px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.7;
}

.next-steps ol {
  margin: 0;
  padding-left: 18px;
}

.next-steps li + li {
  margin-top: 5px;
}

.lp-preview-card {
  min-width: 0;
}

.preview-phone {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.14);
}

.preview-hero {
  display: grid;
  gap: 7px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(199, 255, 0, 0.3), rgba(255, 255, 255, 0.96));
}

.preview-tag,
.preview-motion {
  width: fit-content;
  border: 1px solid rgba(17, 17, 17, 0.18);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 900;
}

.preview-hero h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

.preview-hero p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.preview-cta {
  width: fit-content;
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 6px 9px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.preview-section-list {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.preview-section-list span {
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--ink-soft);
  background: #f8f8f8;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .assist-head,
  .next-action-head {
    flex-direction: column;
  }

  .next-action-layout {
    grid-template-columns: 1fr;
  }
}

/* ===== 入力モード切替（らくらく／じっくり） ===== */
.mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mode-button {
  border: 1.5px solid #1f2937;
  background: #fff;
  color: #1f2937;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.mode-button:hover { transform: translateY(-1px); }
.mode-button.active {
  background: #1f2937;
  color: #fff;
}
.mode-note {
  font-size: 12.5px;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.7;
}
form#promptForm.easy .field:not(.easy-keep) { display: none; }
form#promptForm.easy .design-builder .design-block:not(.easy-keep) { display: none; }
form#promptForm.easy .design-builder .design-fields { display: none; }
form#promptForm.easy .design-builder .advanced-design { display: none; }
form#promptForm.easy .design-builder .group-note { display: none; }
form#promptForm.easy .control-group:not(.design-builder):not(.easy-keep) { display: none; }

/* ===== ページゲート（パスコード） ===== */
html.gate-locked { overflow: hidden; }
.page-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.page-gate[hidden] { display: none; }
.gate-box {
  width: min(360px, 100%);
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.gate-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.gate-box h1 { font-size: 18px; font-weight: 700; }
.gate-box p { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.8; }
#gateForm { display: flex; gap: 8px; width: 100%; }
#gateInput {
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}
#gateInput::placeholder { color: rgba(255,255,255,0.4); }
#gateForm button {
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #111827;
  font-weight: 700;
  cursor: pointer;
}
.gate-error { min-height: 1.4em; font-size: 12px; color: #fca5a5; }

/* ===== Vercel公開タブ（2026-08-26） ===== */
.deploy-box { display: grid; gap: 12px; }
.deploy-lead { margin: 0; font-size: 13px; line-height: 1.8; }
.deploy-lead small { color: var(--ink-soft); }
.deploy-label { font-size: 12px; font-weight: 900; display: block; margin-top: 4px; }
.deploy-textarea { width: 100%; min-height: 180px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-size: 12px; font-family: Consolas, "Noto Sans JP", monospace; background: var(--white); resize: vertical; box-sizing: border-box; }
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px) { .deploy-grid { grid-template-columns: 1fr; } }
.deploy-input { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--white); box-sizing: border-box; }
.deploy-hint { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 4px; line-height: 1.6; }
.deploy-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.deploy-actions .primary-link { cursor: pointer; border: 0; font-family: inherit; font-size: 14px; padding: 12px 22px; }
.deploy-actions .primary-link:disabled { opacity: .6; cursor: wait; }
.deploy-status { font-size: 12px; color: var(--ink-soft); }
.deploy-result { border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px; background: var(--white); font-size: 13px; line-height: 1.8; word-break: break-all; }
.deploy-result a { color: var(--violet); font-weight: 900; }
.deploy-result.err { border-color: var(--pink-dark); color: var(--pink-dark); white-space: pre-wrap; }
