/* check_my_cookies_and_local_storage.css */
/* Cookie & LocalStorage 確認ページ用スタイル */
/* 更新: 2026-05-20 履歴3世代対応・最新版に最適化 */

body {
    font-family: 'Segoe UI', Meiryo, 'メイリオ', sans-serif;
    padding: 20px;
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

h1 {
    color: #0066cc;
    margin-bottom: 8px;
}

h2 {
    color: #1a73e8;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-top: 30px;
}

.subtitle {
    color: #666;
    font-size: 0.95em;
}

/* セクション */
.section {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ボタン */
button {
    padding: 10px 16px;
    margin: 5px 8px 5px 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

#btnWrite     { background: #1a73e8; color: white; }
#btnRender    { background: #34a853; color: white; }
#btnReload    { background: #fbbc05; color: #333; }
#btnClear     { background: #d93025; color: white; }

button:hover {
    filter: brightness(1.08);
}

/* ステータスメッセージ */
#statusMsg {
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 6px;
    font-weight: bold;
    display: none;
}

#statusMsg.ok  { background: #e6f7e6; color: #137333; border-left: 5px solid #4caf50; }
#statusMsg.err { background: #fce8e6; color: #c5221f; border-left: 5px solid #ea4335; }

/* 時刻表示 */
#loadTime, #currentTime {
    font-family: Consolas, monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

/* テーブル共通 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

th {
    background: #0066cc;
    color: white;
    font-weight: 600;
}

/* Key/Value スタイル */
.key {
    font-weight: bold;
    background: #f0f7ff;
    width: 280px;
    word-break: break-all;
}

.value {
    font-family: Consolas, monospace;
    word-break: break-all;
    white-space: pre-wrap;
}

/* 空データ表示 */
.empty {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px !important;
}

/* 履歴テーブル専用 */
#historyTable th:nth-child(1) { width: 28%; }
#historyTable pre {
    margin: 0;
    font-size: 0.9em;
    max-height: 180px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
}

/* URLパラメータ */
#urlParams {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    max-height: 300px;
    overflow-y: auto;
}

/* レスポンシブ */
@media (max-width: 768px) {
    body { padding: 12px; }
    table, #urlParams { font-size: 0.95em; }
    .key { width: 140px; }
}