:root {
  --ink: #1f2430;
  --ink-soft: #5b6270;
  --line: #e4e7ee;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --brand-1: #ff6f91;
  --brand-2: #2196f3;
  --brand-3: #f7d716;
  --brand-4: #4caf50;
  --accent: #2f6fed;
  --accent-ink: #1b4fc4;
  --danger: #e4572e;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(31, 36, 48, 0.08);
  --max-w: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dots {
  display: inline-flex;
  gap: 4px;
}

.logo .dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.logo .dots span:nth-child(1) { background: var(--brand-1); }
.logo .dots span:nth-child(2) { background: var(--brand-3); }
.logo .dots span:nth-child(3) { background: var(--brand-2); }
.logo .dots span:nth-child(4) { background: var(--brand-4); }

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand-1), var(--accent));
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 111, 237, 0.25);
}

.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 13px 18px;
}
.btn-ghost:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  background: #eaf1ff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.4;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  height: 320px;
}

.floating-pad {
  position: absolute;
  width: 220px;
  height: 160px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.floating-pad.p1 { background: linear-gradient(135deg, #ff6f91, #ff9671); top: 10px; left: 20px; transform: rotate(-8deg); z-index: 3; }
.floating-pad.p2 { background: linear-gradient(135deg, #2196f3, #2ec4b6); top: 90px; left: 130px; transform: rotate(6deg); z-index: 2; }
.floating-pad.p3 { background: linear-gradient(135deg, #f7d716, #f4a261); top: 150px; left: 40px; transform: rotate(3deg); z-index: 1; }

/* Sections */
.section { padding: 48px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: 28px; margin: 0 0 12px; font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* Color swatch grid (marketing) */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.color-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}

.swatch-block {
  width: 100%;
  height: 64px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.color-card span {
  font-size: 13px;
  color: var(--ink-soft);
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 14px;
}

.step-card h3 { font-size: 16px; margin: 0 0 8px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Pricing table */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.price-card b { display: block; font-size: 18px; margin-bottom: 6px; }
.price-card .amount { font-size: 22px; font-weight: 800; color: var(--accent-ink); margin: 8px 0; }
.price-card .dim { font-size: 12.5px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 13px;
}
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Progress / Step indicator for order flow */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 0 8px;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.flow-step .circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edeff4;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.flow-step.active .circle,
.flow-step.done .circle {
  background: var(--accent);
  color: #fff;
}

.flow-step.active span.label,
.flow-step.done span.label { color: var(--ink); font-weight: 700; }

.flow-sep {
  width: 28px;
  height: 1px;
  background: var(--line);
}

/* Order layout */
.order-page { padding: 20px 0 80px; }
.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card h2 { font-size: 18px; margin: 0 0 18px; }

/* Mousepad preview */
.pad-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.pad-preview {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  transition: background-color 0.2s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.pad-preview img.art {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.pad-preview .placeholder {
  color: rgba(0,0,0,0.35);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 12px;
}

.pad-meta {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* Form elements */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 12.5px; margin-left: 6px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
  position: relative;
}

.swatch.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,111,237,0.18);
}

.swatch.selected::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.size-row { display: flex; flex-wrap: wrap; gap: 10px; }

.size-opt {
  flex: 1;
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.size-opt b { display: block; font-size: 14px; }
.size-opt .dim { font-size: 12px; color: var(--ink-soft); }
.size-opt .amount { font-size: 14px; font-weight: 700; color: var(--accent-ink); margin-top: 4px; }
.size-opt.selected { border-color: var(--accent); background: #f2f6ff; }

.upload-box {
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.upload-box.drag { border-color: var(--accent); background: #f2f6ff; }
.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-box .icon { font-size: 26px; margin-bottom: 8px; }
.upload-box .sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.qty-row input {
  width: 60px;
  text-align: center;
  padding: 9px 6px;
}

/* Summary list */
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.summary-row.total {
  border-bottom: none;
  font-size: 18px;
  font-weight: 800;
  padding-top: 16px;
}
.summary-row .label { color: var(--ink-soft); }
.summary-row.total .label { color: var(--ink); }

.notice {
  background: #fff8e6;
  border: 1px solid #f4e2a8;
  color: #8a6d1d;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  margin-bottom: 24px;
}

.pay-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.pay-tab {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.pay-tab.active {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: #f2f6ff;
}

/* Status tracker (complete page) */
.tracker {
  display: flex;
  justify-content: space-between;
  margin: 30px 0 10px;
  position: relative;
}
.tracker::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.tracker .t-fill {
  position: absolute;
  top: 17px;
  left: 6%;
  height: 3px;
  background: var(--accent);
  z-index: 1;
  transition: width 0.3s ease;
}
.t-node {
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.t-node .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #edeff4;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 700;
  border: 3px solid var(--bg);
}
.t-node.active .dot { background: var(--accent); color: #fff; }
.t-node.active span.t-label { color: var(--ink); font-weight: 700; }

.order-num-badge {
  display: inline-block;
  background: #eaf1ff;
  color: var(--accent-ink);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.center { text-align: center; }
.muted { color: var(--ink-soft); }

.error-msg {
  color: var(--danger);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .pad-preview-wrap { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
