/* メンテナンス */
.maintenance-mode-container {
    padding: 50px 20px;
    text-align: center;
    background: #f9f9f9;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin: 20px 0;
}

.maintenance-content h2 {
    color: #d32f2f; /* 警告色 */
    margin-bottom: 15px;
}

.maintenance-content .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #666;
    margin-bottom: 10px;
}

.maintenance-eta {
    display: inline-block;
    background: #fff3cd; /* 薄い黄色 */
    border: 1px solid #ffeeba;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 1.1em;
    color: #856404;
}

/* 全体レイアウト */
#pokemon-checker-ui {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.field-group { margin-bottom: 15px; }

/* テーブルのデザイン */
.pokemon-table {
    width: 100% !important;
    font-size: 18px;
}

.pokemon-table th {
    background-color: #333 !important;
    color: #fff !important;
}

.stat { text-align: center; width: 40px; }
.stat-total { text-align: center; background-color: #eee; }
.poke-name { font-weight: bold; color: #2c3e50; }

/* タイプバッジ */
.type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    display: inline-block;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

/* タイプ別カラー例（一部） */
.ほのお { background-color: #ff4422; }
.みず { background-color: #3399ff; }
.くさ { background-color: #77cc55; }
.でんき { background-color: #ffcc33; }
.こおり { background-color: #66ccff; }
.かくとう { background-color: #bb5544; }
.どく { background-color: #aa5599; }
.じめん { background-color: #ddbb55; }
.ひこう { background-color: #8899ff; }
.エスパー { background-color: #ff5599; }
.むし { background-color: #aabb22; }
.いわ { background-color: #bbaa66; }
.ゴースト { background-color: #6666bb; }
.ドラゴン { background-color: #7766ee; }
.あく { background-color: #775544; }
.はがね { background-color: #aaaabb; }
.フェアリー { background-color: #ee99ee; }
.ノーマル { background-color: #aaaa99; }

/* ベースコンテナ */
#pokemon-checker-wrapper {
    background: #fff;
    border: 4px solid #333;
    border-radius: 15px;
    padding: 25px;
    max-width: 1200px;
    margin: 20px auto;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.checker-header h2 {
    color: #e3350d; /* モンスターボールの赤 */
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-weight: bold;
}

/* コントロール（横並びレイアウト） */
.checker-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
}

.control-item {
    flex: 1;
    min-width: 200px;
}

.control-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9em;
}

/* ドロップダウンのデザイン */
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background-color: #fcfcfc;
    font-size: 16px;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #e3350d;
    outline: none;
}

select:disabled {
    background-color: #eee;
    cursor: not-allowed;
}

/* 検索ボタン */
#pokemon-search-btn {
    width: 100%;
    padding: 14px 20px;
    background-color: #e3350d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 #b12a0a;
}

#pokemon-search-btn:hover:not(:disabled) {
    background-color: #ff4422;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b12a0a;
}

#pokemon-search-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #b12a0a;
}

#pokemon-search-btn:disabled {
    background-color: #ccc;
    box-shadow: 0 4px 0 #999;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ローディング（くるくる） */
.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.season-description {
    background-color: #fff9e6; /* 薄い黄色 */
    border-left: 5px solid #ffcc33; /* ポケモンの黄色イメージ */
    padding: 15px;
    border-radius: 4px;
    color: #444;
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}

.season-description strong {
    color: #e3350d;
    display: block;
    margin-bottom: 5px;
}

/* カラム表示切り替えスイッチ */
.column-toggles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05);
}

.toggle-label {
    font-weight: bold;
    color: #444;
    font-size: 0.9em;
    margin-right: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ボタンの基本スタイル：近未来的で清潔感のあるデザイン */
.toggle-btn {
    position: relative;
    padding: 8px 18px;
    background-color: #fff;
    color: #888;
    border: 1px solid #dcdcdc;
    border-radius: 6px; /* 少し角を残してメカニカルに */
    font-size: 0.85em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    user-select: none;
    box-shadow: 0 2px 0 #ddd; /* 押しボタン風の厚み */
}

/* ホバー時：少し浮き上がる */
.toggle-btn:hover {
    background-color: #f8f8f8;
    color: #666;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #ccc;
}

/* クリック時（一瞬沈む） */
.toggle-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #ccc;
}

/* ★アクティブ（ON）状態：モンスターボール・レッドのネオンデザイン */
.toggle-btn.active {
    background: linear-gradient(135deg, #e3350d 0%, #b12a0a 100%);
    color: #fff;
    border-color: #9b2208;
    box-shadow: 0 2px 0 #7a1b06, 0 4px 10px rgba(227, 53, 13, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.toggle-btn.active:hover {
    background: linear-gradient(135deg, #ff4422 0%, #e3350d 100%);
    box-shadow: 0 3px 0 #7a1b06, 0 6px 15px rgba(227, 53, 13, 0.4);
}


.toggle-btn.active::before {
    background-color: #fff;
    box-shadow: 0 0 5px #fff;
}

/* =========================================
   テーブルの見た目を綺麗にするモダンデザイン
========================================= */

/* テーブル全体の枠組み */
table.pokemon-table {
    border-collapse: separate !important;
    border-spacing: 0;
    width: 100% !important;
    background-color: #fff;
    border-radius: 8px; /* 角丸 */
    overflow: hidden; /* 角丸を綺麗に見せる */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* ふんわりとした影 */
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* ヘッダー（見出し行） */
table.pokemon-table thead th {
    background: linear-gradient(180deg, #4a4a4a 0%, #2b2b2b 100%) !important; /* 黒系のグラデーション */
    color: #ffffff !important;
    padding: 14px 10px;
    font-size: 0.9em;
    text-align: center;
    border-bottom: 4px solid #e3350d !important; /* モンスターボールの赤ライン */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}
table.pokemon-table thead th:last-child {
    border-right: none;
}

/* セルの基本デザイン */
table.pokemon-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #fafafa;
    color: #333;
}
table.pokemon-table tbody td:last-child {
    border-right: none;
}

/* マウスホバー（乗せたとき）のアクション */
table.pokemon-table tbody tr:hover {
    background-color: #fff4f2 !important; /* ほんのり赤くハイライト */
    transition: background-color 0.2s ease;
}

/* 種族値の合計を少し強調 */
.stat-total {
    background-color: #f7f7f7 !important;
    color: #d32f2f !important;
    font-weight: 900;
}

/* タイプバッジの微調整（立体感をプラス） */
.type-badge {
    box-shadow: 0 2px 2px rgba(0,0,0,0.15);
    font-weight: bold;
    letter-spacing: 1px;
}

/* S列と合計の間の破線 */
table.pokemon-table .col-s {
    border-right: 2px dashed #ddd !important;
}

/* 合計列と実数値の間の太線 */
table.pokemon-table .col-total {
    border-right: 3px solid #cbd5e0 !important;
    background-color: #f7f7f7 !important;
    color: #d32f2f !important;
    font-weight: 900;
}

/* --- 実数値（青色装飾）エリアの修正 --- */

/* ヘッダーの青グラデーション */
table.pokemon-table thead th.col-calc {
    background: linear-gradient(180deg, #3a5b88 0%, #253d5c 100%) !important;
}

/* ボディの薄い青背景 */
table.pokemon-table tbody td.col-calc {
    background-color: #f0f7ff !important;
    border-right: 1px solid #e1e8f0;
    color: #0056b3; /* JS側で直書きしていた色をこちらに集約可能 */
    text-align: right;
}

/* ホバー時の色 */
table.pokemon-table tbody tr:hover td.col-calc {
    background-color: #e3efff !important;
}