Newer
Older
2025-shino / style.css
/* ==============================
 共通
============================== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #d7efff, #e8ffef);
}

.fadeIn { animation: fadeIn .6s ease; }
.fadeInUp { animation: fadeInUp .6s ease; }

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

/* ==============================
 index / join ページ
============================== */
body.index-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

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

.input-box {
  width: 100%;
  padding: 16px;
  margin-top: 14px;
  border: 2px solid #ddd;
  font-size: 18px;
  border-radius: 14px;
  background: #f9f9f9;
}

.start-btn {
  width: 100%;
  padding: 14px;
  margin-top: 20px;
  font-size: 18px;
  border-radius: 14px;
  border: none;
  color: white;
  background: #4ba3ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
}

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

/* ヘッダー */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: white;
  border-bottom: 3px solid #b4e3c2;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

/* 可愛い退出ボタン(復活) */
.exit-btn.cute {
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff9bb5, #ff6b8c);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 100, 140, 0.4);
  transition: 0.25s;
}
.exit-btn.cute:hover {
  transform: scale(1.10);
  background: linear-gradient(135deg, #ff6b8c, #ff3b6f);
}

/* レイアウト(左:メンバー、右:地図) */
.map-body {
  display: flex;
  gap: 20px;
  margin: 20px;
}

.member-area {
  width: 30%;
}

.map-area {
  width: 70%;
}

/* カード */
.card {
  background: white;
  padding: 20px;
  border-radius: 24px;   /* ← 丸み強め */
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* スマホでは縦に */
@media (max-width: 900px) {
  .map-body {
    flex-direction: column;
  }
  .member-area, .map-area {
    width: 100%;
  }
}

/* 地図 */
#map {
  width: 100%;
  height: 500px;
  border-radius: 20px;
}

/* ==============================
 メンバー一覧(完全復元)
============================== */

#memberList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#memberList li {
  background: #f2f6ff;
  padding: 12px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 6px solid #4ba3ff;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.member-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  background: #ddd;
  flex-shrink: 0;
}

/* オンラインバッジ(下右) */
.member-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  bottom: -3px;
  right: -3px;
  border: 2px solid white;
}

.online .member-icon::after { background: #22dd77; }
.offline .member-icon::after { background: #ff5d5d; }

.member-name {
  font-size: 16px;
  font-weight: bold;
}

/* ==============================
 情報カード(目的地・駅)
============================== */
#targetInfo, #nearestBox {
  margin: 20px;
}

/* ==============================
 チャット欄(丸み+影+カード)
============================== */

#chatBox {
  margin: 20px;
}

#chatList {
  height: 230px;
  background: #f7faff;
  border: 1px solid #d0d8e6;
  border-radius: 14px;
  padding: 10px;
  overflow-y: auto;
  margin-bottom: 12px;
  font-size: 15px;
}

#chatInputArea {
  display: flex;
  gap: 10px;
}

#chatInput {
  flex: 1;
  padding: 14px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 12px;
}

#chatSend {
  padding: 12px 16px;
  background: #4caf50;
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}