/* 確認くんシリーズ 共通スタイル */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
    color: #2c3e50;
}

/* ---- レイアウト(左サイドバー + メインコンテンツ) ---- */
.app-layout {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand {
    font-size: 16px;
    font-weight: 700;
    padding: 0 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 8px;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}
.sidebar a:hover { background: rgba(255,255,255,0.06); color: #ecf0f1; }
.sidebar a.active {
    background: rgba(52,152,219,0.18);
    color: #ffffff;
    border-left-color: #3498db;
    font-weight: 600;
}
.sidebar .icon { width: 20px; text-align: center; }

.content {
    flex: 1;
    padding: 30px 40px;
    max-width: 900px;
}

.site-footer {
    text-align: center;
    padding: 16px 20px;
    color: #7f8c8d;
    font-size: 12px;
}

/* モバイル: サイドバーを上部の横並びバーに */
@media (max-width: 760px) {
    .app-layout { flex-direction: column; }
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
        padding: 10px 0;
    }
    .sidebar-brand { padding: 0 16px 10px; }
    .sidebar ul { display: flex; flex-wrap: wrap; }
    .sidebar a { padding: 8px 12px; border-left: none; border-bottom: 3px solid transparent; }
    .sidebar a.active { border-left-color: transparent; border-bottom-color: #3498db; }
    .content { padding: 20px; }
}

/* ---- 共通コンポーネント ---- */
h1 { color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 10px; margin-top: 0; }
h2 { margin: 0; }

.category { margin: 20px 0; }
.category h2 {
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 16px;
}

form {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
}
input[type=text], input[type=number], select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background: #fff;
    color: #2c3e50;
}
label.checkbox { font-size: 13px; display: flex; align-items: center; gap: 5px; }

button {
    padding: 10px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}
button:hover { background: #2980b9; }

table {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    background: #fff;
}
th, td {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    text-align: left;
    word-break: break-all;
}
th { background: linear-gradient(to bottom, #f8f9fa, #e9ecef); font-weight: 600; }

pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
    white-space: pre-wrap;
    word-break: break-all;
}

.error {
    color: #e74c3c;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #e74c3c;
    margin: 10px 0;
}
.empty { color: #7f8c8d; padding: 10px; }
.hint { font-size: 12px; color: #7f8c8d; }

.ok, .ok2xx { color: #27ae60; font-weight: 600; }
.warn, .ok3xx { color: #f39c12; font-weight: 600; }
.danger, .fail, .ok4xx, .ok5xx { color: #e74c3c; font-weight: 600; }
.info { color: #7f8c8d; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    background: #ecf0f1;
    border-radius: 4px;
    font-size: 12px;
    color: #2c3e50;
}

.summary { padding: 12px; border-radius: 5px; margin-bottom: 10px; font-weight: 600; }
.summary.ok { background: #eafaf1; }
.summary.warn { background: #fef9e7; }

details { margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 8px; background: #f8f9fa; border-radius: 5px; }

.hop-index {
    display: inline-block;
    width: 24px; height: 24px; line-height: 24px;
    text-align: center; background: #3498db; color: white;
    border-radius: 50%; font-size: 12px; margin-right: 6px;
}
.maplink { display: inline-block; margin-top: 10px; }
ul.issues { margin: 6px 0; padding-left: 20px; font-size: 13px; }
