@charset "utf-8";

/* ===============================
  CCRページ専用スタイル（最小構成）
=============================== */
.ccr-guide-link {
  margin-top: 4px;
}

/* ===============================
  レイアウト
=============================== */
.ccr-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 520px) 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 880px) {
  .ccr-wrap {
    grid-template-columns: 1fr;
  }
}

/* ===============================
  マップ
=============================== */
.ccr-map {
  position: relative;
  max-width: 520px;
  width: min(92vw, 520px);
  margin: 0 auto;
}

.ccr-map img {
  display: block;
  width: 100%;
}

/* 港クリックエリア */
.ccr-port-area {
  position: absolute;
  border: 2px solid rgba(255, 140, 0, 0.9);
  background: rgba(255, 165, 0, 0.35);
  border-radius: 4px;
  text-decoration: none;
}

.ccr-port-area:hover {
  background: rgba(255, 165, 0, 0.55);
}

/* 港名ラベル */
.port-label {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
}

.ccr-port-area.west .port-label {
  left: 4px;
}

.ccr-port-area.east .port-label {
  right: 4px;
}

/* 港プロット配置 */
.port-shiriyazaki { top: 3%;  left: 67%; width: 17%; height: 8%; }
.port-rokkasyo    { top: 11%; left: 67%; width: 17%; height: 8%; }
.port-hachinohe   { top: 19%; left: 67%; width: 17%; height: 8%; }
.port-kuji        { top: 27%; left: 74%; width: 17%; height: 8%; }
.port-miyako      { top: 35%; left: 81%; width: 17%; height: 7%; }
.port-kamaishi    { top: 42%; left: 78%; width: 17%; height: 7%; }
.port-ofunato     { top: 49%; left: 75%; width: 17%; height: 7%; }
.port-kesennuma   { top: 56%; left: 72%; width: 17%; height: 7%; }
.port-kinkazan    { top: 63%; left: 69%; width: 17%; height: 7%; }
.port-watari      { top: 70%; left: 52%; width: 17%; height: 7%; }
.port-haramachi   { top: 77%; left: 55%; width: 17%; height: 7%; }
.port-yotukura    { top: 84%; left: 55%; width: 17%; height: 7%; }
.port-onahama     { top: 91%; left: 55%; width: 17%; height: 7%; }
.port-jyusanko    { top: 7%;  left: 25%; width: 17%; height: 9%; }
.port-henashi     { top: 16%; left: 14%; width: 17%; height: 9%; }
.port-noshiro     { top: 25%; left: 14%; width: 17%; height: 8%; }
.port-akita       { top: 33%; left: 14%; width: 17%; height: 8%; }
.port-honjyo      { top: 41%; left: 14%; width: 17%; height: 8%; }
.port-sakata      { top: 49%; left: 10%; width: 17%; height: 8%; }
.port-turuoka     { top: 57%; left: 5%;  width: 17%; height: 8%; }

/* ===============================
  右ペイン（選択パネル）
=============================== */
.ccr-panel {
  border: 1px solid #c9ddff;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

/* 港リスト */
.ccr-port-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 6px 10px;
}

.ccr-port-list a {
  display: block;
  padding: 6px 10px;
  text-align: center;
  background: #f7f7f7;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
}

.ccr-port-list a:hover {
  background: #eef3ff;
}