@charset "utf-8";

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: #f3f4f6;
  color: #222;
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 360px;
  background: #ffffff;
  padding: 28px;
  box-sizing: border-box;
  border-right: 1px solid #e5e7eb;
  overflow-y: auto;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg,
      #f8fafc,
      #eef2f7);
  overflow: auto;
  padding: 40px;
}

h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.section {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 14px;
}

input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font-size: 28px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  outline: none;
  transition: 0.2s;
}

input[type="text"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.primary-btn {
  background: #2563eb;
  color: white;
  margin-top: 14px;
}

.primary-btn:hover {
  background: #1d4ed8;
}

#ledCount {
  font-size: 54px;
  line-height: 1;
  color: #dc2626;
  font-weight: 800;
}

.warning-message {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
}

canvas {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  max-width: 90%;
  height: auto;
}

.radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  display: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: white;
  transition: 0.2s;
  font-size: 14px;
  font-weight: 700;
}

.chip input:checked+span {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.save-btn {
  background: #111827;
  color: white;
}

.save-btn:hover {
  background: #000;
}

/* =========================
Responsive
========================= */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px;
  }

  .main {
    padding: 20px;
  }

  canvas {
    max-width: 100%;
    height: auto;
  }

  h1 {
    font-size: 24px;
  }

  input[type="text"] {
    font-size: 24px;
  }

  #ledCount {
    font-size: 42px;
  }
}

@media (max-width: 600px) {

  .main {
    padding: 12px;
  }

  canvas {
    max-width: 95%;
  }

  .section {
    padding: 14px;
  }

  button {
    padding: 12px;
  }
}