:root {
  --bg: #121212;
  --panel: #1a1a1a;
  --panel-2: #1f1f1f;
  --text: #e6e6e6;
  --muted: #a8a8a8;
  --line: #333;
  --accent: #82b1ff;
  --accent-2: #00e676;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

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

a:hover {
  text-decoration: underline;
}

/* 共通ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #171717;
}

.site-header .inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.back-link {
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}

.page-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-title {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.3;
  color: #fff;
}

.updated-date {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin: 0 0 18px;
}

.card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.2rem;
}

.card p {
  margin: 0 0 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.notice {
  background: #151b15;
  border: 1px solid #243224;
}

.notice strong {
  color: var(--accent-2);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #171717;
}

.site-footer .inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 18px 20px 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

.small-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* 検索くん本体 */
.search-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: stretch;
}

input[type="text"] {
  background: var(--panel-2);
  color: #fff;
  border: 1px solid #444;
  padding: 10px;
  width: 60%;
  min-width: 220px;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1rem;
  flex: 1;
}

input[type="text"]::placeholder {
  color: #888;
}

textarea {
  width: 100%;
  min-height: 250px;
  font-family: "Courier New", Courier, monospace;
  background: var(--panel-2);
  color: var(--accent-2);
  border: 1px solid #444;
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
  resize: vertical;
}

button {
  padding: 10px 15px;
  cursor: pointer;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

button:hover {
  background: #555;
}

.btn-search {
  background: var(--accent-2);
  color: #121212;
  font-weight: bold;
}

.btn-search:hover {
  background: #00b358;
}

#log {
  margin: 0 0 12px;
  color: var(--muted);
}

#listArea {
  margin-top: 20px;
  border: 1px solid var(--line);
  padding: 15px;
  background: #181818;
  border-radius: 6px;
}

.match-item {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: var(--accent);
}

.match-item:hover {
  background: #252525;
}

.match-item:last-child {
  border-bottom: none;
}

.instruction {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 30px;
  line-height: 1.6;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #2a2a2a;
}

.instruction h2,
.instruction h3 {
  margin-top: 0;
  color: #fff;
}

.instruction ul {
  margin: 0;
  padding-left: 1.2em;
}

.instruction li {
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  text-decoration: underline;
}

.company-info {
  text-align: center;
  border-top: 1px solid #2a2a2a;
  padding-top: 15px;
  line-height: 1.5;
}

/* 折りたたみの秘密部屋 */
.secret-room {
  margin-top: 40px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.secret-room summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  list-style: none;
}

.secret-room summary::-webkit-details-marker {
  display: none;
}

.secret-room summary:hover {
  color: var(--accent);
}

.keyword-list {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.8;
  text-align: center;
}

.cyber-banner {
  width: 100%;
  display: block;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 0, 50, 0.35);
}

.wish-message {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 20px;
}