@charset "UTF-8";

:root {
  --ink: #111b42;
  --muted: #637091;
  --line: rgba(88, 107, 166, 0.18);
  --white: #ffffff;
  --blue: #0d78ff;
  --violet: #8738f5;
  --pink: #ff4fa2;
  --cyan: #35d8ed;
  --shadow: 0 24px 70px rgba(67, 78, 145, 0.16);
  --shadow-soft: 0 16px 42px rgba(72, 84, 142, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 4%, rgba(91, 169, 255, 0.18), transparent 28%),
    radial-gradient(circle at 88% 10%, rgba(184, 98, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, #f5f7ff 50%, #f8fbff 100%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  line-height: 1.65;
}
button { font: inherit; }
button:focus-visible, canvas:focus-visible, a:focus-visible {
  outline: 3px solid rgba(13, 120, 255, 0.28);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
  opacity: 0.56;
}
.ambient-one { width: 320px; height: 320px; left: -130px; top: 240px; background: rgba(52, 205, 255, 0.12); }
.ambient-two { width: 360px; height: 360px; right: -160px; top: 400px; background: rgba(159, 78, 255, 0.12); }
.ambient-three { width: 260px; height: 260px; left: 45%; bottom: -160px; background: rgba(255, 83, 164, 0.09); }

.site-header {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: left;
}
.brand-mark {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 38px rgba(88, 84, 176, 0.18);
  backdrop-filter: blur(14px);
}
.brand-mark img { width: 48px; height: 48px; display: block; }
.site-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: #0e1745;
}
.site-header p { margin: 7px 0 0; color: var(--muted); font-weight: 600; }

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.glass-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(111, 127, 193, 0.1);
}

.capture-card { padding: clamp(24px, 4vw, 46px); }
.capture-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.capture-intro.is-captured { grid-template-columns: 1fr; }
.capture-copy { padding: 4px 0; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #7652dc;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}
.capture-copy h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  letter-spacing: 0.02em;
}
.capture-copy > p {
  max-width: 620px;
  margin: 14px 0 25px;
  color: #4f5d80;
  font-size: 1.04rem;
}
.capture-button {
  position: relative;
  width: min(100%, 490px);
  min-height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 20px;
  color: white;
  background: linear-gradient(120deg, #0879ff 0%, #3157f7 46%, #9037f4 100%);
  box-shadow: 0 18px 40px rgba(64, 77, 231, 0.3), inset 0 1px 0 rgba(255,255,255,.24);
  cursor: pointer;
  font-size: clamp(1.22rem, 2.5vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  overflow: hidden;
}
.capture-button::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 220px;
  left: -160px;
  top: -60px;
  transform: rotate(24deg);
  background: rgba(255,255,255,.2);
  transition: left .5s ease;
}
.capture-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(64, 77, 231, 0.38), inset 0 1px 0 rgba(255,255,255,.28);
  filter: saturate(1.12);
}
.capture-button:hover::after { left: 115%; }
.capture-button:active { transform: translateY(0); }
.capture-button:disabled { cursor: progress; opacity: .72; transform: none; }
.capture-button-icon {
  width: 34px;
  height: 34px;
  position: relative;
  border: 3px solid white;
  border-radius: 9px;
}
.capture-button-icon::before,
.capture-button-icon::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent 32%, white 32%, white 68%, transparent 68%);
}
.capture-button-icon::before { width: 48px; height: 3px; left: -10px; top: 13px; }
.capture-button-icon::after { width: 3px; height: 48px; left: 13px; top: -10px; background: linear-gradient(180deg, transparent 32%, white 32%, white 68%, transparent 68%); }

.privacy-note {
  width: min(100%, 520px);
  margin-top: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #6b7898;
  font-size: 0.9rem;
}
.lock-icon {
  width: 17px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 5px;
  position: relative;
  border-radius: 4px;
  background: #7f8ba9;
  color: transparent;
}
.lock-icon::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 8px;
  left: 4px;
  top: -7px;
  border: 2px solid #7f8ba9;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.capture-illustration {
  min-height: 310px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(244,240,255,.82));
  box-shadow: 0 22px 56px rgba(94, 85, 170, 0.18), inset 0 0 0 1px rgba(255,255,255,.85);
  transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
}
.window-dots { display: flex; gap: 8px; margin-bottom: 16px; }
.window-dots span { width: 12px; height: 12px; border-radius: 50%; background: #d8ddf3; }
.window-dots span:nth-child(1) { background: #ff85a9; }
.window-dots span:nth-child(2) { background: #ffd66e; }
.window-dots span:nth-child(3) { background: #77e2cf; }
.illustration-body {
  min-height: 238px;
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #f2f2ff;
}
.illustration-screen {
  min-height: 205px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #dfe8ff;
}
.illustration-spectrum {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 72%, rgba(255, 236, 111, .95), transparent 24%),
    radial-gradient(circle at 61% 28%, rgba(255, 104, 193, .95), transparent 35%),
    radial-gradient(circle at 18% 78%, rgba(36, 205, 255, .95), transparent 38%),
    linear-gradient(135deg, #4b72ff, #a54df4 52%, #ff7eae);
  filter: saturate(1.12);
}
.target-ring {
  position: absolute;
  width: 96px;
  height: 96px;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 8px 26px rgba(70, 50, 150, .22);
}
.target-ring::before,
.target-ring::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.94);
}
.target-ring::before { width: 132px; height: 4px; left: -23px; top: 41px; }
.target-ring::after { width: 4px; height: 132px; left: 41px; top: -23px; }
.target-ring span {
  position: absolute;
  inset: 23px;
  border-radius: 12px;
  background: linear-gradient(135deg, #568bff, #df59e6, #ff9a8c);
}
.illustration-side {
  padding: 14px;
  border-radius: 15px;
  background: rgba(255,255,255,.78);
}
.mini-chip {
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(90deg, #33d8ec, #7668ff);
  margin-bottom: 18px;
}
.mini-line { height: 8px; margin: 10px 0; border-radius: 9px; background: #dfe4f7; }
.mini-line.short { width: 66%; }
.mini-swatches { display: flex; gap: 8px; margin-top: 28px; }
.mini-swatches i { width: 28px; height: 28px; border-radius: 8px; background: #47d8ec; }
.mini-swatches i:nth-child(2) { background: #8c5eff; }
.mini-swatches i:nth-child(3) { background: #ffae61; }

.capture-toolbar {
  margin-top: 30px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 17px;
  background: linear-gradient(90deg, rgba(232, 244, 255, .92), rgba(244, 236, 255, .92));
  border: 1px solid rgba(105, 125, 202, .14);
}
.capture-meta, .toolbar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #18bd7b; box-shadow: 0 0 0 5px rgba(24,189,123,.13); }
.resolution-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: white;
  color: #596886;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(71,82,135,.08);
}
.tool-button {
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(120deg, #117cff, #7254f5);
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
}
.tool-button-muted { color: #425174; background: white; }
.tool-button:disabled { opacity: .55; cursor: not-allowed; }

.screenshot-stage {
  position: relative;
  max-height: 670px;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid rgba(85, 105, 171, .18);
  border-radius: 20px;
  background:
    linear-gradient(45deg, #eef1f8 25%, transparent 25%),
    linear-gradient(-45deg, #eef1f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #eef1f8 75%),
    linear-gradient(-45deg, transparent 75%, #eef1f8 75%), #fff;
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,.65);
}
#screenshotCanvas {
  width: 100%;
  height: auto;
  display: block;
  cursor: crosshair;
}
.screenshot-magnifier {
  position: absolute;
  z-index: 5;
  width: 158px;
  padding: 7px;
  border: 2px solid white;
  border-radius: 18px;
  background: rgba(18, 25, 59, .92);
  box-shadow: 0 18px 46px rgba(18,25,59,.32);
  pointer-events: none;
}
.screenshot-magnifier canvas { width: 144px; height: 144px; display: block; border-radius: 12px; }
.screenshot-magnifier span {
  display: block;
  margin-top: 6px;
  color: white;
  text-align: center;
  font: 800 .84rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.capture-status {
  margin: 18px 2px 0;
  min-height: 1.6em;
  color: #627092;
  font-size: .92rem;
}
.capture-status.success { color: #08794f; }
.capture-status.error { color: #b43f52; }

.selected-card { margin-top: 26px; padding: clamp(24px, 3.2vw, 38px); }
.section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 24px;
}
.section-heading h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.palette-symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: conic-gradient(#7856ff, #ff4fa2, #ffb03f, #3ddbc8, #3f8cff, #7856ff);
  box-shadow: 0 6px 16px rgba(98,82,221,.22);
}
.selection-hint { margin-left: auto; color: #7b86a2; font-size: .82rem; font-weight: 700; }
.selected-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}
.swatch-panel {
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(245,247,255,.92), rgba(255,255,255,.82));
  border: 1px solid rgba(99,116,183,.12);
}
.swatch-large {
  min-height: 260px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
  border-radius: 19px;
  background: #3B82F6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 18px 38px rgba(42,91,205,.22);
  transition: background .2s ease;
}
.swatch-large::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.swatch-code {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 11px;
  background: rgba(255,255,255,.88);
  color: #18234c;
  box-shadow: 0 8px 22px rgba(20,32,79,.15);
  font: 900 1rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.color-summary { padding: 16px 7px 4px; display: grid; gap: 4px; }
.color-summary strong { font-size: 1.05rem; }
.color-summary span { color: #667391; font-size: .86rem; }
.color-details { display: grid; grid-template-rows: auto 1fr; gap: 17px; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.format-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 15px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,247,255,.9));
  border: 1px solid rgba(98,117,183,.13);
  box-shadow: var(--shadow-soft);
}
.format-name {
  color: #3e4c72;
  font-weight: 900;
  letter-spacing: .04em;
}
.format-value {
  overflow: hidden;
  color: #172044;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 700 .88rem ui-monospace, SFMono-Regular, Consolas, monospace;
}
.copy-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: #45557f;
  background: #f0f3fb;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}
.copy-button:hover { color: white; background: linear-gradient(135deg, #1a83ff, #8950f5); }
.channel-panel {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(242,247,255,.92), rgba(249,243,255,.92));
  border: 1px solid rgba(101,120,183,.12);
}
.channel-row {
  display: grid;
  grid-template-columns: 24px minmax(80px, 1fr) 38px;
  gap: 11px;
  align-items: center;
  margin: 12px 0;
  font-weight: 900;
}
.channel-track { height: 11px; overflow: hidden; border-radius: 999px; background: rgba(111,128,177,.14); }
.channel-track i { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .2s ease; }
#redBar { background: linear-gradient(90deg, #ff7b8d, #f3002f); }
#greenBar { background: linear-gradient(90deg, #72e0a5, #0cb664); }
#blueBar { background: linear-gradient(90deg, #70b6ff, #1868f2); }

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 15px 0 20px;
  text-align: center;
  color: #4772bb;
  font-size: .86rem;
  border-top: 1px solid rgba(83,112,178,.12);
}
footer p { margin: 0; }
footer a { color: #4772bb; font-weight: 900; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 18px);
  max-width: min(90vw, 520px);
  padding: 11px 17px;
  border-radius: 13px;
  color: white;
  background: rgba(20,28,64,.93);
  box-shadow: 0 16px 44px rgba(20,28,64,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .capture-intro { grid-template-columns: 1fr; }
  .capture-illustration { order: -1; min-height: 260px; transform: none; }
  .illustration-body { min-height: 190px; }
  .illustration-screen { min-height: 160px; }
  .selected-layout { grid-template-columns: 1fr; }
  .swatch-large { min-height: 220px; }
}
@media (max-width: 660px) {
  .site-header { margin-top: 18px; justify-content: flex-start; }
  .brand-mark { width: 54px; height: 54px; border-radius: 17px; }
  .brand-mark img { width: 38px; height: 38px; }
  .site-header h1 { font-size: 1.72rem; }
  .site-header p { font-size: .82rem; }
  .app-shell { width: min(100% - 18px, 1180px); }
  .capture-card, .selected-card { border-radius: 22px; padding: 20px 16px; }
  .capture-illustration { padding: 12px; min-height: 220px; }
  .illustration-body { grid-template-columns: 1fr 92px; padding: 11px; }
  .illustration-side { padding: 10px; }
  .capture-button { min-height: 72px; border-radius: 17px; }
  .capture-toolbar { align-items: flex-start; flex-direction: column; }
  .format-grid { grid-template-columns: 1fr; }
  .section-heading { flex-wrap: wrap; }
  .selection-hint { width: 100%; margin-left: 39px; }
  .screenshot-stage { max-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


.ad-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  overflow: hidden;
  border: 1px solid rgba(105, 125, 202, .18);
  border-radius: 18px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 36px rgba(65, 79, 144, .1);
}
.ad-panel[hidden] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.ad-panel-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 11px;
  background: linear-gradient(90deg, #eff7ff, #f6efff);
  border-bottom: 1px solid rgba(105, 125, 202, .14);
}
.ad-label {
  color: #5b6c92;
  font-size: .72rem;
  font-weight: 800;
}
.ad-wait {
  margin-left: auto;
  color: #667695;
  font-size: .72rem;
}
.ad-close-btn {
  margin-left: auto;
  padding: 4px 9px;
  min-height: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #1565c0;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.ad-close-btn:hover { background: #0d47a1; }
.ad-body { min-height: 70px; padding: 8px; background: #fff; }
