:root {
  --bg-1: #f7efe3;
  --bg-2: #dceeff;
  --card: #ffffffee;
  --ink: #1b222b;
  --muted: #4d5a68;
  --accent: #0a84ff;
  --ok: #157f3b;
  --warn: #8a5700;
  --error: #a12a2a;
  --radius: 16px;
  --shadow: 0 12px 28px rgba(14, 34, 56, 0.15);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, #fff8dc 0%, transparent 42%),
    radial-gradient(circle at 85% 88%, #dff6ff 0%, transparent 45%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(860px, 100%);
  background: var(--card);
  border: 1px solid #d6e2f0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  overflow: hidden;
  animation: rise 500ms ease;
}

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

.head {
  padding: 22px 24px 10px;
  border-bottom: 1px solid #e8edf5;
  background: linear-gradient(90deg, #ffffff, #f5fafe);
}

h1 {
  margin: 0;
  font-size: clamp(1.2rem, 2.1vw, 1.8rem);
  letter-spacing: 0.02em;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.97rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  padding: 4px 0;
  margin-bottom: 12px;
}

.back-link:hover { color: var(--accent); }

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  padding: 20px 24px 24px;
}

.card {
  border: 1px solid #e2eaf4;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.75;
  color: #22303d;
}

li + li { margin-top: 2px; }

.install-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: #0a84ff;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover { filter: brightness(1.04); }
button:active { transform: translateY(1px); }
button[disabled] {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.65;
}

.secondary {
  background: #4f5f6f;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #2d3d4d;
}

.log {
  margin-top: 14px;
  border: 1px solid #dce8f8;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status {
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  background: #f5f9ff;
  border: 1px solid #dce8f8;
  color: #244;
}

.status.ok {
  border-color: #bfe3cb;
  background: #effcf4;
  color: var(--ok);
}

.status.warn {
  border-color: #f1ddb1;
  background: #fff8e9;
  color: var(--warn);
}

.status.error {
  border-color: #f0c3c3;
  background: #fff1f1;
  color: var(--error);
}

.meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.meta strong { color: #24313e; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .grid { grid-template-columns: 1fr; }
}
