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

/* ===================================
   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: 95%;
  max-width: 450px;
  padding: 25px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.index-container h1 {
  margin: 0 0 15px;
  font-size: 26px;
  font-weight: 700;
  color: #333;
}

.index-container .desc {
  margin-bottom: 20px;
  color: #555;
}

/* 入力欄 */
.index-container input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 17px;
  border: 2px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;
}

.index-container input[type="text"]:focus {
  border-color: #4ba3ff;
  box-shadow: 0 0 6px rgba(75,163,255,0.4);
}

/* ボタン */
.index-container button {
  width: 100%;
  padding: 12px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: #4ba3ff;
  color: white;
  cursor: pointer;
}
.index-container button:hover {
  background: #1b8af5;
}

/* ===================================
   map4.html 専用デザイン(レイアウト分離)
====================================== */
.map-layout {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* PCでは横並びに変更 */
@media (min-width: 900px) {
  .map-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  .map-area {
    width: 70%;
  }
  .member-area {
    width: 30%;
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* 地図カード */
.map-area {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

#map {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  margin-top: 10px;
}

/* メンバー一覧 */
.member-area {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

#memberList li {
  font-size: 17px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

/* ===================================
   フェードインアニメーション
====================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}