/* ===== PAGE =====  */
.map-page{
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 200px 0px 80px;
}

/* ===== LAYOUT ===== */
.map-layout{
  display: grid;
  grid-template-columns: 700px 80px 1fr;
  gap: 10px;
}

/* ===== MAP ===== */
.map-stage{
  width: 100%;
  max-width: 700px;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border: 1px solid #ddd;
}

/* 👇 ここ重要（追加・修正） */
.map-view{
  position: absolute;
  inset: 0;
}

/* 👇 ここ重要（完全上書き） */
.map-view img{
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 1;
	transition: opacity 0.6s ease; 
}

/* ===== PIN ===== */
.pins-layer{
  position: absolute;
  inset: 0;
}

.pin{
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.pin::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  border: 2px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.pin.nature::before{
  display: none;
}

.pin span{
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.pin.right{
  flex-direction: row;
}

.pin.left{
  flex-direction: row-reverse;
}

.pin.facility span{
  background: rgba(255,255,255,0.82);
  color: #666;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.12);
}

/* --- 山岳・河川ラベル --- */
.pin.nature span{
  position: absolute;
  pointer-events: none;
  z-index: 5;
  font-family: 'Lato', 'Yu Mincho', serif;
  font-size: 10px;
  color: #555;
  letter-spacing: 0.1em;
  font-weight: 400;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.9), -2px -2px 4px rgba(255,255,255,0.9);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.pin:hover span{
  transform: scale(1.05);
}

/* ===== JIGE ===== */
.jige-layer{
  position: absolute;
  inset: 0;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* 👇 displayは使わない（これ重要） */
.jige-layer.active{
  opacity: 1;
  pointer-events: auto;
}

.jige-layer img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== BUTTON ===== */
.jige-btn{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.25s ease;
}

/* ===== ERA ===== */
.era-col{
  display: flex;
  justify-content: center;
}

.era-controls{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.era-controls button{
  font-size: 11px;
  padding: 4px 6px;
  cursor: pointer;
}

.era-controls button.active{
  background: #000;
  color: #fff;
}

/* ===== INFO ===== */
.info-col{
  font-size: 13px;
  line-height: 1.6;
}

.title-bar{
  width: 400px;
  height: 1px;
  background: #AAA;
  margin: 6px 0 12px;
}
