@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  background: #f5f7fa;
  color: #333;
}

/*ヘッダー*/
.header {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-size: 22px;
  letter-spacing: 2px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

/*マップ領域*/
#map {
  width: 100%;
  height: calc(100vh - 120px);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

/*下部ナビ*/
.bottom-nav {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.bottom-nav button {
  flex: 1;
  padding: 14px 0;
  font-size: 15px;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: #555;
  transition: all 0.25s ease;
  border-radius: 20px;
}

.bottom-nav button:hover {
  background-color: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.bottom-nav button.active {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
  box-shadow: 0 3px 8px rgba(39, 174, 96, 0.3);
}

/*モーダル*/
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background: white;
  margin: auto;
  padding: 25px 20px;
  border-radius: 16px;
  width: 400px;
  max-width: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: translate(-50%, -40%) scale(0.95);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* モーダルの中身デザイン */
.modal-content {
  background-color: white;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ドロワー本体 */
.filter-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 2500;
  transition: right 0.3s ease;
  overflow-y: auto;
}

/* ドロワーが開いた状態 */
.filter-drawer.open {
  right: 0;
}

/*ドロワー内のレイアウト*/
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.filter-body {
  padding: 10px;
}

.filter-footer {
  text-align: center;
  padding: 10px;
  border-top: 1px solid #ccc;
}

/*モバイル対応*/
@media (max-width: 768px) {
  .header {
    font-size: 18px;
    padding: 12px;
  }

  .bottom-nav {
    width: 95%;
    bottom: 10px;
  }

  .bottom-nav button {
    font-size: 13px;
    padding: 10px 0;
  }
}

/*フィルタードロワー全体*/
.filter-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
  z-index: 2500;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px 0 0 8px;
  color: #2f3e46;
  font-family: "Noto Sans JP", "Segoe UI", sans-serif;
}

/* ドロワー開閉 */
.filter-drawer.open {
  right: 0;
}

/*ヘッダー*/
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.1);
  font-weight: 600;
  font-size: 18px;
  color: #1565c0;
}

/*閉じるボタン*/
#closeFilterDrawer {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #1565c0;
  transition: color 0.2s ease;
}

#closeFilterDrawer:hover {
  color: #1e88e5;
}

/*フィルター項目*/
.filter-body {
  padding: 15px 10px;
}

.filter-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.filter-item input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #43a047;
}

.filter-item label {
  font-size: 16px;
  color: #2f3e46;
}

/*適用ボタン */
.filter-footer {
  text-align: center;
  padding: 15px 10px;
}

#applyFilterBtn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e88e5, #43a047);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#applyFilterBtn:hover {
  transform: scale(1.02);
  box-shadow: 0 3px 10px rgba(30, 136, 229, 0.25);
}

/*スクロールバー*/
.filter-drawer::-webkit-scrollbar {
  width: 6px;
}

.filter-drawer::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
#filterOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  display: none;
  z-index: 900;
}

.post-modal {
  width: 520px;
  max-width: 92%;
  background: white;
  border-radius: 12px;
  padding: 25px 25px 30px;
  animation: fadeIn 0.25s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-top: 6px solid #1e88e5;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: #1565c0;
  margin-bottom: 18px;
  font-family: "Noto Sans JP", sans-serif;
}

.required {
  color: red;
  font-size: 14px;
}

.input-field,
.textarea-field,
#image {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0 16px;
  font-size: 16px;
  border: 1.5px solid #cfd8dc;
  border-radius: 8px;
  background: #f9f9f9;
  transition: 0.2s;
}

.input-field:focus,
.textarea-field:focus {
  border-color: #43a047;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(67, 160, 71, 0.2);
}

.textarea-field {
  height: 90px;
  resize: vertical;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.submit-btn {
  flex: 1;
  margin-right: 6px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e88e5, #43a047);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.cancel-btn {
  flex: 1;
  margin-left: 6px;
  padding: 12px 0;
  font-size: 16px;
  background: #ccc;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cancel-btn:hover {
  background: #b0b0b0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 480px) {
  .post-modal {
    width: 95%;
    padding: 18px 15px 22px;
  }
  .modal-title {
    font-size: 18px;
  }
  .input-field,
  .textarea-field {
    font-size: 15px;
  }
  .submit-btn,
  .cancel-btn {
    font-size: 15px;
    padding: 10px 0;
  }
  .filter-drawer {
    width: 240px;
  }
  .filter-header {
    font-size: 16px;
  }
  #applyFilterBtn {
    font-size: 15px;
    padding: 10px 0;
  }
}