/* 共通スタイル: スペック早見表 */
:root {
  --bg: #1a2332;
  --panel: #ffffff;
  --text: #1a2332;
  --muted: #6b7785;
  --border: #d8dee6;
  --accent: #ff7a00;
  --accent-hover: #e56a00;
  --light: #f4f6f9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  background: var(--light);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  background: var(--bg);
  color: #fff;
  padding: 14px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.site-title span { color: var(--accent); }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: #cfd6e0;
  text-decoration: none;
  font-size: 0.9rem;
}

nav a:hover { color: var(--accent); }

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.search-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

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

.search-row input[type="text"] {
  flex: 1;
  min-width: 180px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: inherit;
}

.search-row input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.search-row button {
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.search-row button:hover { background: var(--accent-hover); }

.quick-buttons {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 4px;
}

.quick-buttons button {
  padding: 6px 14px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
}

.quick-buttons button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.result-area {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

.result-area h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  color: var(--bg);
}

.no-result {
  color: var(--muted);
  padding: 20px 0;
  text-align: center;
}

.result-card {
  padding: 10px 0;
}

.result-card .size-badge {
  display: inline-block;
  background: var(--bg);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 700;
  margin-bottom: 12px;
}

.result-card .note {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--light);
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  margin-top: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  background: var(--light);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}

.all-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--light);
  box-shadow: 0 1px 0 var(--border);
}

td.value {
  font-weight: 700;
  color: var(--bg);
  font-size: 1.05rem;
}

td.unit {
  color: var(--muted);
  font-size: 0.85rem;
}

.all-table tr.highlight {
  background: #fff4e6;
}

.all-table tr.highlight td {
  font-weight: 700;
}

footer {
  background: var(--bg);
  color: #9ba5b1;
  padding: 20px;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: #cfd6e0; text-decoration: none; margin: 0 8px; }

@media (max-width: 600px) {
  h1 { font-size: 1.25rem; }
  .search-row input[type="text"] { font-size: 1rem; }
  main { padding: 16px 12px 40px; }
  .search-panel, .result-area { padding: 16px; }
}
