@charset "UTF-8";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fb;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #111827;
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  opacity: 0.92;
}

.main-nav a:hover {
  opacity: 1;
}

.hero {
  padding: 44px 0 28px;
}

.hero-text {
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.hero p {
  margin: 0 0 18px;
  color: #475569;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: #e5e7eb;
  color: #111827;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #2563eb;
  color: #fff;
}

.btn.danger {
  background: #dc2626;
  color: #fff;
}

.btn.secondary {
  background: #0f766e;
  color: #fff;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 36px;
}

.card, .panel, .result-box, .metric-card, .score-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.card {
  padding: 22px;
}

.card h2 {
  margin-top: 0;
}

.panel {
  padding: 24px;
  margin: 28px 0;
}

.panel h1, .panel h2, .panel h3 {
  margin-top: 0;
}

.form-row {
  margin-bottom: 18px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

input[type="text"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}

.help {
  font-size: 14px;
  color: #64748b;
  margin-top: 6px;
}

.site-footer {
  margin-top: 40px;
  padding: 20px 0 40px;
  color: #64748b;
  font-size: 14px;
}

.notice {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.notice.error {
  background: #fee2e2;
  color: #991b1b;
}

.notice.success {
  background: #dcfce7;
  color: #166534;
}

.notice.info {
  background: #e0f2fe;
  color: #075985;
}

.score-box {
  padding: 26px;
  margin-bottom: 24px;
  text-align: center;
}

.score-number {
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
  color: #2563eb;
}

.score-label {
  margin-top: 10px;
  color: #475569;
  font-weight: 700;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  padding: 18px;
}

.metric-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #475569;
}

.metric-value {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}

.metric-note {
  font-size: 14px;
  color: #64748b;
}

.result-box {
  padding: 22px;
  margin-bottom: 18px;
}

.result-box h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  font-size: 13px;
  font-weight: 700;
  margin-right: 8px;
  margin-bottom: 8px;
}

.list-clean {
  margin: 0;
  padding-left: 20px;
}

.list-clean li {
  margin-bottom: 8px;
}

.mono {
  font-family: Menlo, Consolas, monospace;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #f8fafc;
  font-weight: 800;
}

.small {
  font-size: 13px;
  color: #64748b;
}

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

.section-title {
  margin: 0 0 12px;
  font-size: 24px;
}

.badge-good {
  background: #dcfce7;
  color: #166534;
}

.badge-warn {
  background: #fef3c7;
  color: #92400e;
}

.badge-bad {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 900px) {
  .card-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text {
    padding: 24px;
  }
}
.copy-wrap {
  margin-top: 10px;
  margin-bottom: 18px;
}

.copy-target {
  margin-top: 8px;
}

.sub-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.sub-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

pre.code-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}
