:root {
  --vgb-ink: #1c2a40;
  --vgb-muted: #667085;
  --vgb-line: #d9e2ec;
  --vgb-panel: #ffffff;
  --vgb-soft: #f3f6fb;
  --vgb-coral: #ff7c6b;
  --vgb-cyan: #52c7f5;
  --vgb-violet: #a99af5;
  --vgb-dark: #101827;
  --vgb-dark-panel: #182235;
  --vgb-dark-elevated: #202d42;
  --vgb-dark-line: #34445e;
  --vgb-dark-muted: #aab8ce;
}

body {
  background: #f4f7fb;
}

.vgb-page {
  padding-top: 34px;
}

.vgb-heading {
  position: relative;
  width: 100%;
  margin: 0 auto 24px;
  padding: 18px 0 10px;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}

.vgb-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 312px);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}

.vgb-hero-copy {
  min-width: 0;
}

.vgb-heading h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.06em 0.14em;
  margin: 0 0 12px;
  color: #6f64ff;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  font-size: clamp(2rem, 3.7vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 12px 30px rgba(34, 47, 86, 0.14);
}

.vgb-hero-word-gradient {
  color: #7b67ff;
  background: linear-gradient(115deg, #7e78ff 0%, #9b68ff 34%, #4db9ff 64%, #885fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 16px rgba(121, 102, 255, 0.24));
}

.vgb-hero-word-ink {
  color: #ff7c6b;
  background: linear-gradient(115deg, #ff7c6b 0%, #ff9abb 34%, #7b67ff 68%, #52c7f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 8px 16px rgba(255, 124, 107, 0.2));
}

.vgb-heading p {
  margin: 0;
  color: #5d6b81;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  font-weight: 400;
  line-height: 1.85;
  text-wrap: balance;
}

.vgb-hero-media {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.vgb-hero-media img {
  display: block;
  width: 312px;
  height: auto;
  max-width: 100%;
  border-radius: 18px;
  object-fit: contain;
}

.vgb-hero-sparkle {
  display: none;
}

.vgb-hero-sparkle.one {
  left: 0;
  top: 48px;
}

.vgb-hero-sparkle.two {
  left: 44px;
  top: 88px;
  width: 18px;
  height: 18px;
}

.vgb-hero-sparkle.three {
  right: 1%;
  top: 88px;
  width: 22px;
  height: 22px;
}

.vgb-app {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 22px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  box-sizing: border-box;
  padding: 28px max(24px, calc((100vw - 1380px) / 2));
  border-top: 1px solid #24334a;
  border-bottom: 1px solid #24334a;
  border-radius: 0;
  background: var(--vgb-dark);
  overflow: visible;
}

.vgb-editor-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.3fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.vgb-panel {
  border: 1px solid var(--vgb-line);
  border-radius: 12px;
  background: var(--vgb-panel);
  box-shadow: 0 10px 30px rgba(27, 42, 72, 0.06);
}

.vgb-settings-panel,
.vgb-preview-wrap,
.vgb-obs-panel {
  border-color: var(--vgb-dark-line);
  background: var(--vgb-dark-panel);
  color: #eff5ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.vgb-preview-column {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
  align-self: start;
  min-width: 0;
}

.vgb-settings-panel {
  min-width: 0;
  padding: 18px;
}

.vgb-settings-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--vgb-dark-line);
}

.vgb-settings-tab,
.vgb-choice,
.vgb-action,
.vgb-view-tab {
  border: 1px solid #3c4c64;
  border-radius: 7px;
  background: #1c293d;
  color: #c7d4e6;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
  text-align: center;
  transition: border-color 0.18s, color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
}

.vgb-settings-tab:hover,
.vgb-choice:hover,
.vgb-action:hover,
.vgb-view-tab:hover {
  border-color: #677a98;
  background: #27364d;
  color: #fff;
  transform: translateY(-1px);
}

.vgb-settings-tab.active,
.vgb-choice.active,
.vgb-view-tab.active {
  border-color: var(--vgb-cyan);
  background: rgba(82, 199, 245, 0.13);
  color: var(--vgb-cyan);
}

.vgb-settings-content {
  display: none;
  animation: vgbFadeIn 0.25s;
}

.vgb-settings-content.active {
  display: block;
}

@keyframes vgbFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vgb-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  padding-left: 10px;
  border-left: 3px solid var(--vgb-coral);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.vgb-field {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(170, 184, 206, 0.18);
}

.vgb-field:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.vgb-label {
  display: block;
  margin-bottom: 8px;
  color: #c7d4e6;
  font-size: 0.82rem;
  font-weight: 800;
}

.vgb-small {
  color: var(--vgb-dark-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.vgb-input,
.vgb-select,
.vgb-textarea {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #d5dfeb;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--vgb-ink);
  font: inherit;
  font-size: 0.92rem;
}

.vgb-textarea {
  min-height: 96px;
  resize: vertical;
}

.vgb-input:focus,
.vgb-select:focus,
.vgb-textarea:focus {
  border-color: var(--vgb-cyan);
  outline: 3px solid rgba(49, 199, 232, 0.16);
}

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

.vgb-form-row-full {
  grid-column: 1 / -1;
}

.vgb-choice-grid {
  display: grid;
  gap: 8px;
}

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

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

.vgb-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vgb-preset {
  min-height: 86px;
  padding: 12px;
  border: 1px solid #3c4c64;
  border-radius: 9px;
  background: #1c293d;
  color: #eef3f8;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.vgb-preset.active {
  border-color: var(--vgb-coral);
  box-shadow: 0 0 0 3px rgba(255, 124, 107, 0.14);
}

.vgb-preset strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.vgb-preset span {
  color: var(--vgb-dark-muted);
  font-size: 0.78rem;
}

.vgb-effect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vgb-effect-choice {
  min-height: 124px;
  padding: 12px;
  border: 1px solid #3c4c64;
  border-radius: 9px;
  background: #1c293d;
  color: #eef3f8;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.vgb-effect-choice:hover {
  border-color: #677a98;
  background: #27364d;
  transform: translateY(-1px);
}

.vgb-effect-choice.active {
  border-color: var(--vgb-cyan);
  box-shadow: 0 0 0 3px rgba(82, 199, 245, 0.14);
}

.vgb-effect-choice strong,
.vgb-effect-choice span,
.vgb-effect-choice small {
  display: block;
}

.vgb-effect-choice strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #ffffff;
  font-size: 0.92rem;
}

.vgb-effect-choice span {
  color: #d5e0ee;
  font-size: 0.82rem;
  line-height: 1.55;
}

.vgb-effect-choice small {
  margin-top: 8px;
  color: var(--vgb-dark-muted);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
}

.vgb-stepper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(120px, 1fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vgb-stepper .vgb-input {
  text-align: center;
}

.vgb-range-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 10px;
  align-items: center;
}

.vgb-range-row input[type="range"] {
  width: 100%;
  accent-color: var(--vgb-cyan);
}

.vgb-range-value {
  color: #eef3f8;
  font-weight: 900;
  text-align: right;
}

.vgb-toggle-list {
  display: grid;
  gap: 10px;
}

.vgb-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #3c4c64;
  border-radius: 9px;
  background: #1c293d;
  color: #dce7f2;
  font-weight: 800;
}

.vgb-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--vgb-cyan);
}

.vgb-reset-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px solid rgba(255, 124, 107, 0.5);
  border-radius: 8px;
  background: rgba(255, 124, 107, 0.12);
  color: #ffd7d1;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.18s;
}

.vgb-reset-action:hover {
  border-color: rgba(255, 124, 107, 0.82);
  background: rgba(255, 124, 107, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.vgb-color-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.vgb-color-field {
  display: grid;
  gap: 6px;
  color: #dce7f2;
  font-size: 0.78rem;
  font-weight: 800;
}

.vgb-color-field input {
  width: 100%;
  min-height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.vgb-preview-wrap {
  padding: 18px;
}

.vgb-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.vgb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vgb-view-tab {
  min-height: 28px;
  padding: 5px 12px;
}

.vgb-preview-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  min-height: 340px;
  border: 1px solid #2d405d;
  border-radius: 9px;
  background: var(--vgb-preview-backdrop, #000000);
}

.vgb-preview-stage.screen {
  min-height: auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 100%, rgba(92, 79, 196, 0.32), transparent 38%), #0c1423;
}

.vgb-screen-frame {
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.vgb-preview-scale {
  max-width: 100%;
  transform-origin: center;
}

.vgb-obs-panel {
  grid-column: 1 / -1;
  padding: 18px;
}

.vgb-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.vgb-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
}

.vgb-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.vgb-action.primary {
  border-color: transparent;
  background: #2daee8;
  color: #fff;
}

.vgb-action.live {
  border-color: transparent;
  background: var(--vgb-coral);
  color: #fff;
}

.vgb-action.dark {
  border-color: #4a5e7c;
  background: #1c293d;
  color: #eaf2ff;
}

.vgb-obs-note {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #34445e;
  border-radius: 9px;
  background: #111c2e;
  color: #c7d4e6;
  font-size: 0.86rem;
  line-height: 1.8;
}

.vgb-obs-note ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.vgb-obs-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #455976;
  border-radius: 9px;
  background: #1c293d;
  color: #e8eef7;
  font-size: 0.84rem;
  line-height: 1.6;
}

.vgb-obs-status.changed {
  border-color: #ffd166;
  background: rgba(255, 209, 102, 0.18);
  color: #fff6d6;
}

.vgb-obs-status.copied {
  border-color: #bcaeff;
  background: rgba(188, 174, 255, 0.13);
  color: #f0edff;
}

.vgb-info {
  margin-top: 28px;
  padding: 26px;
}

.vgb-info h2 {
  margin-top: 0;
  color: var(--vgb-ink);
  font-size: 1.4rem;
}

.vgb-seo-area {
  position: relative;
  overflow: hidden;
  border-color: #d9e2ef;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 52, 83, 0.07);
}

.vgb-seo-area::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #a99af5;
}

.vgb-seo-lead {
  margin: 18px 0 0;
  padding: 18px 20px 18px 22px;
  border-left: 4px solid var(--vgb-coral);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(31, 52, 83, 0.08);
  color: #4f6178;
  line-height: 1.9;
}

.vgb-seo-grid,
.vgb-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.vgb-seo-block {
  position: relative;
  min-height: 100%;
  padding: 18px;
  border: 1px solid rgba(195, 212, 231, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(31, 52, 83, 0.07);
}

.vgb-seo-block h3 {
  margin: 0 0 8px;
  color: var(--vgb-ink);
  font-size: 1.08rem;
  line-height: 1.5;
}

.vgb-seo-block p,
.vgb-seo-block li {
  color: #4f6178;
  line-height: 1.8;
}

.vgb-usecase-grid {
  margin-top: 18px;
}

.vgb-keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.vgb-keyword-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(93, 111, 227, 0.18);
  border-radius: 999px;
  background: rgba(93, 111, 227, 0.07);
  color: #3f4f86;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.vgb-seo-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 124, 107, 0.22);
  border-radius: 8px;
  background: rgba(255, 124, 107, 0.08);
  color: #5d5870;
  font-size: 0.9rem;
  line-height: 1.8;
}

.vgb-related-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(195, 212, 231, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(31, 52, 83, 0.07);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}

.vgb-related-link:hover,
.vgb-related-link:focus-visible {
  border-color: rgba(49, 199, 232, 0.56);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(31, 52, 83, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.vgb-related-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #5d6fe3;
  color: #fff;
}

.vgb-related-link strong {
  display: block;
  color: var(--vgb-ink);
  font-size: 1rem;
  line-height: 1.5;
}

.vgb-related-link span span {
  display: block;
  margin-top: 4px;
  color: #4f6178;
  font-size: 0.86rem;
  line-height: 1.6;
}

.vgb-faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.vgb-faq-list details {
  overflow: hidden;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  background: #fff;
}

.vgb-faq-list summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--vgb-ink);
  font-weight: 900;
  line-height: 1.6;
}

.vgb-faq-list details[open] summary {
  border-bottom: 1px solid #edf2f7;
}

.vgb-faq-list p {
  margin: 0;
  padding: 14px 16px 16px;
  color: #4f6178;
  line-height: 1.8;
}

.vgb-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 9px;
  background: #2daee8;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s, transform 0.18s;
}

.vgb-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1020px) {
  .vgb-editor-main {
    display: contents;
  }

  .vgb-app {
    grid-template-columns: 1fr;
  }

  .vgb-preview-column {
    display: contents;
    position: static;
  }

  .vgb-preview-wrap {
    order: -2;
  }

  .vgb-settings-panel {
    order: -1;
  }

  .vgb-obs-panel {
    order: 0;
  }
}

@media (max-width: 820px) {
  .vgb-page {
    padding-top: 18px;
  }

  .vgb-heading {
    padding: 4px 8px 0;
    margin-bottom: 18px;
    text-align: center;
  }

  .vgb-hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vgb-heading h1 {
    justify-content: center;
    font-size: clamp(1.63rem, 8.67vw, 2.8rem);
    line-height: 1.02;
  }

  .vgb-hero-media {
    justify-content: center;
  }

  .vgb-app {
    padding: 18px 10px;
    border-radius: 8px;
  }

  .vgb-settings-panel,
  .vgb-preview-wrap,
  .vgb-obs-panel {
    padding: 14px;
  }

  .vgb-form-grid,
  .vgb-preset-grid,
  .vgb-seo-grid,
  .vgb-related-grid,
  .vgb-actions {
    grid-template-columns: 1fr;
  }

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

  .vgb-stepper .vgb-input {
    grid-column: 1 / -1;
    grid-row: 1;
  }

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

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

  .vgb-preview-stage {
    min-height: 240px;
  }
}

@media (max-width: 430px) {
  .vgb-settings-tabs,
  .vgb-choice-grid.two,
  .vgb-choice-grid.three,
  .vgb-effect-grid {
    grid-template-columns: 1fr;
  }
}
