Newer
Older
2025-shino / style.css
/* ==============================
 共通
============================== */
body {
  margin: 0;
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}

.fadeIn {
  animation: fadeIn 0.5s ease-out;
}
.fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==============================
 index.html
============================== */
body.index-page {
  background: linear-gradient(135deg, #9be2ff, #c7f5d9);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.index-container {
  width: 90%;
  max-width: 420px;
  padding: 25px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
  text-align: center;
}

.index-container input[type="text"] {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border-radius: 10px;
  border: 2px solid #ddd;
  font-size: 17px;
}

.start-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  border-radius: 10px;
  background: #4ba3ff;
  border: none;
  color: white;
  font-size: 18px;
}

/* ==============================
 map4.html
============================== */

body.map-page {
  background: linear-gradient(135deg, #d7efff, #e8ffef);
  padding: 20px;
}

/* 上のカード */
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card {
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

/* PC: 横並び / スマホ: 縦並び */
.map-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 900px) {
  .map-body {
    flex-direction: row;
  }
  .member-area {
    width: 30%;
  }
  .map-area {
    width: 70%;
  }
}

/* 地図(中央ズレ対策) */
#map-wrapper {
  padding: 0;
  margin: 0;
}

#map {
  width: 100%;
  height: 500px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* メンバー一覧 */
#memberList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#memberList li {
  padding: 12px;
  margin-bottom: 12px;
  background: #f2f6ff;
  border-radius: 12px;
  border-left: 5px solid #4ba3ff;
  cursor: pointer;
  transition: 0.2s;
}

#memberList li:hover {
  transform: translateX(4px);
}

/* 退出ボタン */
.exit-btn {
  padding: 8px 14px;
  background: #ff6b6b;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}