fesmap / pj
forked from Ray8/pj
Newer
Older
pj / fes.css
/* ページ全体 */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background: #fffafc; /* 青春っぽい淡い背景 */
  color: #333;
  /* overflow: hidden; ←これを削除して、サイトをスクロール可能に */
}

/* マップコンテナ */
#map {
  position: relative;
  width: 100%;
  /* 高さはコンテンツ依存にする。100vh固定しない */
  background: #fdfdff;
  overflow: visible; /* ← マップ外も見えるようにする */
  margin: 0 auto;
  text-align: center;
}

/* マップ画像(縦長基準) */
#mapImage {
  height: 100vh;   /* 画面の高さにフィット */
  width: auto;     /* 横幅は自動調整 */
  display: block;
  margin: 0 auto;  /* 中央寄せ */
  touch-action: none; /* Panzoom用 */
}

/* ピン */
.pin {
  position: absolute;
  transform: translate(-50%, -100%);
  cursor: pointer;
  z-index: 10;
}
.pin img {
  width: 32px;
  height: 32px;
}

/* 吹き出し(カード風) */
.tooltip {
  position: absolute;
  transform: translate(-50%, -120%);
  z-index: 20;
  display: none;
}
.tooltip-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  padding: 12px;
  width: 240px;
  text-align: left;
  animation: fadeIn 0.25s ease;
}
.tooltip-header {
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #2c3e50;
}
.tooltip-body {
  display: flex;
  gap: 8px;
}
.tooltip-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
.desc {
  font-size: 0.9em;
  color: #555;
}
.close-btn {
  float: right;
  border: none;
  background: none;
  font-size: 1.2em;
  cursor: pointer;
  color: #888;
}

/* タブ */
.tab-container {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
.tab-button {
  flex: 1;
  padding: 10px;
  border: none;
  background: #e0f0ff;
  font-size: 1em;
  cursor: pointer;
}
.tab-button.active {
  background: #87cefa;
  color: white;
  font-weight: bold;
}

/* 一覧パネル */
.list-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff69b4;
  color: white;
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  font-size: 1.5em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 30;
}
.list-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70%;
  background: white;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 40;
  overflow-y: auto;
}
.list-panel.open {
  transform: translateY(0);
}
.shop-item {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.shop-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 8px;
}
.shop-meta {
  flex: 1;
}
.shop-title {
  font-weight: bold;
  margin: 0 0 4px;
}
.shop-desc {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}
#closeList {
  display: block;
  margin: 10px auto;
  padding: 6px 14px;
  background: #ff69b4;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9em;
  cursor: pointer;
}