Newer
Older
tiikimap / shonai_tiiki_map_tansaku.css
/* ページ全体 */
body {
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f6;
  color: #333;
  text-align: center;
}

/* タイトル */
h1 {
  margin: 20px 0 10px;
  font-size: 1.8em;
  color: #2c3e50;
  letter-spacing: 0.05em;
}

/* ボタン配置 */
p {
  margin: 10px 0;
}

/* ボタンスタイル */
button {
  background-color: #3498db;
  border: none;
  color: white;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.2s;
}
button:hover {
  background-color: #2980b9;
}
button:active {
  transform: scale(0.95);
}

/* セレクトボックス */
select {
  padding: 6px 10px;
  margin-left: 5px;
  border-radius: 4px;
  border: 1px solid #aaa;
  font-size: 1em;
}

/* 地図部分 */
#locationmap {
  width: 96vw;
  height: 55vw;
  max-width: 700px;
  min-height: 340px;
  margin: 16px auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ポップアップの中身 */
.leaflet-popup-content h3 {
  margin: 0 0 5px;
  font-size: 1.2em;
  color: #34495e;
}
.leaflet-popup-content p {
  margin: 5px 0;
  font-size: 0.95em;
  line-height: 1.4;
}
.leaflet-popup-content img {
  margin: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* メモや入力欄 */
textarea.memo-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 4px;
  border: 1px solid #ccc;
  resize: vertical;
  font-size: 14px;
  padding: 6px;
}

/* 画像アップロード入力とプレビュー */
input.image-upload {
  margin-top: 4px;
  margin-bottom: 6px;
  display: block;
  width: 100%;
}

.preview-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  object-fit: contain;
}

@media screen and (max-width: 600px) {
  #locationmap {
    width: 96vw;
    height: 65vh;
    min-height: 320px;
    max-width: 100vw;
    margin: 12px auto;
  }
}