/* ===================================================
   Site Inspector - Webサイト総合チェッカー Stylesheet
   Modern Glassmorphism & Cyber Security Dashboard UI
   =================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #090a10;
  --bg-secondary: #11131f;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --surface-card: rgba(17, 19, 32, 0.78);
  --surface-sub: rgba(255, 255, 255, 0.028);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: #6fefff;

  --text-primary: #f2f4fa;
  --text-secondary: #989ec0;
  --text-muted: #646a8e;

  --accent-primary: #7c6fff;
  --accent-cyan: #38bdf8;
  --accent-teal: #2dd4bf;
  --accent-pink: #f472b6;

  --status-pass: #10b981;
  --status-pass-bg: rgba(16, 185, 129, 0.12);
  --status-pass-border: rgba(16, 185, 129, 0.35);

  --status-warn: #f59e0b;
  --status-warn-bg: rgba(245, 158, 11, 0.12);
  --status-warn-border: rgba(245, 158, 11, 0.35);

  --status-fail: #ef4444;
  --status-fail-bg: rgba(239, 68, 68, 0.12);
  --status-fail-border: rgba(239, 68, 68, 0.35);

  --status-info: #38bdf8;
  --status-info-bg: rgba(56, 189, 248, 0.12);
  --status-info-border: rgba(56, 189, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 80px;
}

/* 背景オーロラグラデーション */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 10%, rgba(56, 189, 248, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(124, 111, 255, 0.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 85%, rgba(45, 212, 191, 0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

.hidden {
  display: none !important;
}

.mt-16 {
  margin-top: 16px;
}

/* ===================================================
   ナビゲーション & ヘッダー
   =================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.back-link:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateX(-2px);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.app-header {
  text-align: center;
  margin-bottom: 28px;
}

.header-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
  background: rgba(56, 189, 248, 0.08);
}

.app-header h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #6fefff 45%, #7c6fff 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.header-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 720px;
  margin: 0 auto;
}

.header-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================================
   共通カード & ボタン
   =================================================== */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 111, 255, 0.35);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #8b7fff, #5b52f0);
  box-shadow: 0 6px 22px rgba(124, 111, 255, 0.5);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-subtle {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.25);
}

.btn-subtle:hover:not(:disabled) {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

/* ===================================================
   検索入力パネル & 進捗バー
   =================================================== */
.search-panel {
  margin-bottom: 24px;
}

.search-form {
  display: flex;
  gap: 12px;
}

.input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 1.2rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 100%;
  padding: 15px 42px 15px 48px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(8, 9, 16, 0.75);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input::placeholder {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.btn-clear-input {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-clear-input:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-scan {
  padding: 0 26px;
  font-size: 1rem;
}

/* サンプル & 履歴バー */
.quick-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.quick-samples,
.history-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.history-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 2px;
}

.chip-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--text-primary);
}

.chip-score {
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0 5px;
  border-radius: 99px;
}

.text-muted-xs {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.btn-text-xs {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-text-xs:hover {
  color: var(--status-fail);
}

/* スキャン進捗バー */
.scan-progress-panel {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.progress-status-text {
  color: var(--accent-cyan);
  font-weight: 600;
}

.progress-percent {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-weight: 600;
}

.progress-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-cyan), var(--accent-teal));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.progress-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.step-item[data-status="running"] {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.step-item[data-status="running"] .step-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 1s infinite alternate;
}

.step-item[data-status="done"] {
  color: var(--status-pass);
  background: rgba(16, 185, 129, 0.06);
}

.step-item[data-status="done"] .step-dot {
  background: var(--status-pass);
}

.step-item[data-status="warn"] {
  color: var(--status-warn);
  background: rgba(245, 158, 11, 0.06);
}

.step-item[data-status="warn"] .step-dot {
  background: var(--status-warn);
}

@keyframes pulseDot {
  from { transform: scale(0.85); opacity: 0.6; }
  to { transform: scale(1.25); opacity: 1; }
}

/* ===================================================
   初期ガイドカード
   =================================================== */
.welcome-guide {
  margin-top: 8px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.guide-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.guide-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.guide-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.guide-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ===================================================
   総合サマリーダッシュボード
   =================================================== */
.summary-dashboard {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(17, 19, 32, 0.9), rgba(26, 28, 48, 0.78));
  border-color: rgba(124, 111, 255, 0.25);
}

.summary-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.score-ring-container {
  position: relative;
  width: 132px;
  height: 132px;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.score-ring-progress {
  fill: none;
  stroke: var(--status-pass);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.4s ease;
}

.score-ring-Center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-rank {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 2px;
}

.score-number small {
  font-size: 0.72rem;
  opacity: 0.75;
}

.score-caption {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 600;
}

.summary-center {
  flex: 1;
  min-width: 0;
}

.target-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.result-favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.result-domain-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.visit-badge {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.visit-badge:hover {
  background: rgba(56, 189, 248, 0.2);
}

.result-url-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  word-break: break-all;
}

.summary-verdict {
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.summary-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.summary-pill {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pill-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pill-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================================
   カテゴリ切り替えタブ
   =================================================== */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(124, 111, 255, 0.22), rgba(56, 189, 248, 0.18));
  color: #fff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

/* ===================================================
   結果セクション共通
   =================================================== */
.sections-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.section-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ステータスバッジ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
}

.status-badge.pass {
  background: var(--status-pass-bg);
  color: var(--status-pass);
  border-color: var(--status-pass-border);
}

.status-badge.warn {
  background: var(--status-warn-bg);
  color: var(--status-warn);
  border-color: var(--status-warn-border);
}

.status-badge.fail {
  background: var(--status-fail-bg);
  color: var(--status-fail);
  border-color: var(--status-fail-border);
}

.status-badge.info {
  background: var(--status-info-bg);
  color: var(--status-info);
  border-color: var(--status-info-border);
}

/* メトリクス4列グリッド */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-box {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  word-break: break-word;
}

.metric-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 2カラムサブパネル */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sub-panel {
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.sub-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.sub-panel-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.sub-panel-header .sub-panel-title {
  margin-bottom: 0;
}

/* Key-Value情報リスト */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-key {
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.info-val {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: right;
  word-break: break-all;
}

/* ===================================================
   DNSレコードテーブル
   =================================================== */
.dns-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dns-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dns-pill.active,
.dns-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
}

.dns-table-container {
  overflow-x: auto;
}

.dns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.dns-table th,
.dns-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dns-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(0, 0, 0, 0.25);
}

.dns-table td {
  font-family: var(--font-mono);
  color: var(--text-primary);
  word-break: break-all;
}

.dns-type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  min-width: 48px;
  text-align: center;
}

.type-A, .type-AAAA { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.type-MX { background: rgba(168, 85, 247, 0.18); color: #c084fc; }
.type-NS { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.type-TXT { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.type-CNAME { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.type-CAA, .type-SOA { background: rgba(99, 102, 241, 0.18); color: #818cf8; }

/* ===================================================
   監査チェックリスト（信頼性 & 脆弱性診断）
   =================================================== */
.audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.audit-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--surface-sub);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: var(--radius-md);
  transition: background 0.15s ease;
}

.audit-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.audit-item.pass { border-left-color: var(--status-pass); }
.audit-item.warn { border-left-color: var(--status-warn); }
.audit-item.fail { border-left-color: var(--status-fail); }
.audit-item.info { border-left-color: var(--status-info); }

.audit-main {
  flex: 1;
  min-width: 0;
}

.audit-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.audit-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.audit-category-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.audit-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.audit-evidence {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 10px;
  border-radius: 6px;
  word-break: break-all;
  display: inline-block;
  max-width: 100%;
}

.audit-remediation {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
}

/* サブドメインチップ一覧 */
.subdomain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 0;
}

.subdomain-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
}

/* 外部連携リンクボックス */
.external-tools-box {
  background: rgba(124, 111, 255, 0.05);
  border: 1px solid rgba(124, 111, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.external-tools-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.external-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.ext-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.18s ease;
}

.ext-link-card:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

/* 生ヘッダーテーブル */
.raw-headers-table {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.raw-header-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.raw-header-name {
  color: var(--accent-cyan);
  font-weight: 600;
  word-break: break-all;
}

.raw-header-val {
  color: var(--text-secondary);
  word-break: break-all;
}

/* トースト */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e2238;
  color: #fff;
  border: 1px solid var(--accent-cyan);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  animation: slideInUp 0.25s ease;
}

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

/* ===================================================
   レスポンシブ対応
   =================================================== */
@media (max-width: 900px) {
  .summary-dashboard {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .target-title-row {
    justify-content: center;
  }

  .summary-pills {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .two-col-grid {
    grid-template-columns: 1fr;
  }

  .progress-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
  }

  .btn-scan {
    width: 100%;
    padding: 14px;
  }

  .metrics-grid,
  .summary-pills,
  .progress-steps {
    grid-template-columns: 1fr;
  }

  .raw-header-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

