/* 日本のタイル地図（書籍LP・管理ページの共通部品）
   ★ 色は各ページの CSS 変数を使う。無いページでも崩れないよう代わりの色を入れてある */

.jtm {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 1.1cqw;
}
.jtm-t {
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  border-radius: 1.6cqw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2cqw;
  background: var(--paper-deep, #f4ecd9);
  color: var(--ink-mute, #8b7d73);
  font-family: inherit;
  font-size: clamp(6.5px, 1.75cqw, 12px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease;
}
.jtm-t b {
  font-size: clamp(8px, 2.3cqw, 15px);
  font-weight: 800;
  line-height: 1;
}
.jtm-t.l1 { background: #f6d3c6; color: var(--ink, #20160e); }
.jtm-t.l2 { background: #f0a893; color: var(--ink, #20160e); }
.jtm-t.l3 { background: #e9806a; color: #fff; }
.jtm-t.l4 { background: var(--coral, #e55f4b); color: #fff; }
.jtm-t.has { cursor: pointer; }
.jtm-t.has:hover, .jtm-t.has:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(32, 22, 14, .14);
  outline: none;
}
.jtm-t.pick { box-shadow: 0 0 0 2px var(--ink, #20160e); }

.jtm-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-mute, #8b7d73);
}
.jtm-legend i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }

.jtm-caption {
  min-height: 1.6em;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-soft, #5b4d45);
}
.jtm-caption b { color: var(--coral, #e55f4b); }

/* ★ スマホなど狭い幅では、県名を出すと文字が小さすぎて読めない。
   県名は隠して数字だけ大きく出し、押したときに下のキャプションで県名を出す */
@container (max-width: 480px) {
  .jtm { gap: 3px; }
  .jtm-t { border-radius: 4px; }
  .jtm-t .jtm-n { display: none; }
  .jtm-t b { font-size: 11px; }
}
