/* src/public/css/world-clock-map.css … 世界時計マップの見た目
   💡 基準の時刻・カードの行は world-clock.css と共通。ダークモードは theme-dark.css の末尾 */

.wmap-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.wmap-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.wmap-area-btn {
    padding: 5px 10px; border: 1px solid #cbd5e1; border-radius: 999px; background: #f8fafc;
    color: #334155; font-size: 0.8rem; font-weight: bold; cursor: pointer;
}
.wmap-area-btn.is-active { background: #2a5298; border-color: #2a5298; color: #fff; }
.wmap-zoom { display: flex; gap: 6px; }
.wmap-zoom-btn { width: 34px; height: 34px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #334155; cursor: pointer; }
.wmap-zoom-btn:hover, .wmap-area-btn:hover { border-color: #2a5298; }

.wmap-frame { position: relative; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; touch-action: pan-y; user-select: none; cursor: grab; }
.wmap-svg { display: block; width: 100%; height: auto; aspect-ratio: 360 / 150; }
.wmap-sea { fill: #dbeafe; }
.wmap-meridian { stroke: #93c5fd; stroke-width: 0.25; stroke-dasharray: 1 1.5; vector-effect: non-scaling-stroke; }
.wmap-country { stroke: #ffffff; stroke-width: 0.6; vector-effect: non-scaling-stroke; cursor: pointer; }
.wmap-country.is-unknown { fill: #e5e7eb; }
.wmap-country:hover { stroke: #1e3c72; stroke-width: 1.4; }
.wmap-hatch-bg { fill: #eef2f7; }
.wmap-hatch-line { stroke: #94a3b8; stroke-width: 0.8; }
.wmap-night { fill: rgba(15, 23, 42, 0.28); pointer-events: none; }
.wmap-pin { stroke: #334155; stroke-width: 0.5; vector-effect: non-scaling-stroke; cursor: pointer; }
.wmap-pin:hover { stroke-width: 2; }

/* 都市の時刻のラベル（拡大しても文字の大きさは変わらない） */
.wmap-labels { position: absolute; inset: 0; pointer-events: none; }
.wmap-labels[hidden] { display: none; }
.wmap-label {
    position: absolute; transform: translate(-50%, -115%); padding: 1px 5px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.9); border: 1px solid #94a3b8; font-size: 0.68rem; line-height: 1.25;
    white-space: nowrap; text-align: center; color: #1e293b;
}
.wmap-label[hidden] { display: none; }
.wmap-label b { display: block; font-size: 0.62rem; color: #475569; }
.wmap-label span { font-weight: bold; font-variant-numeric: tabular-nums; }

.wmap-tip {
    position: absolute; z-index: 2; max-width: 260px; padding: 4px 8px; border-radius: 6px;
    background: rgba(15, 23, 42, 0.9); color: #fff; font-size: 0.8rem; pointer-events: none;
}
.wmap-tip[hidden] { display: none; }
.wmap-hint { margin: 6px 0 10px; font-size: 0.78rem; color: #64748b; }

/* 色の見方 */
.wmap-legend { display: flex; flex-wrap: wrap; gap: 2px; }
.wmap-legend-item { flex: 1 1 0; min-width: 28px; padding: 2px 0; text-align: center; font-size: 0.7rem; font-weight: bold; color: #1e293b; border-radius: 3px; }
.wmap-legend-note { margin: 6px 0 12px; font-size: 0.75rem; color: #64748b; line-height: 1.5; }

.wmap-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 600px) {
    .wmap-svg { aspect-ratio: 360 / 170; }
    .wmap-label { font-size: 0.6rem; padding: 0 3px; }
    .wmap-label b { font-size: 0.55rem; }
    .wmap-row { grid-template-columns: minmax(0, 1fr) auto; }
}
