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 / create ページ
============================== */
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;
}

.title {
  margin-bottom: 25px;
}

/* 入力欄(大きく可愛い) */
.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;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==============================
   map4.html(左右レイアウト)
============================== */

/* ---- かわいいヘッダー ---- */
#header {
  margin: 16px;
  padding: 18px 22px;
  background: white;
  border-radius: 22px;
  border-left: 6px solid #4ba3ff;  /* 青ライン */
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: fadeInUp .6s ease;
}

/* グループ名/ユーザー名の表示 */
#groupNameBox {
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  font-weight: 500;
}

/* ホストタグ(かわいい) */
#hostStatus {
  font-size: 13px;
  padding: 3px 8px;
  background: #e8f5ff;
  border-radius: 8px;
  border: 1px solid #bcdcff;
  display: inline-block;
  margin-top: 4px;
}

/* ---- 可愛い退出ボタン ---- */
.exit-btn.cute {
  padding: 10px 18px;
  border-radius: 30px;
  background: linear-gradient(135deg, #ffa4b8, #ff6b8c);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255,120,150,0.4);
  transition: 0.25s;
}
.exit-btn.cute:hover {
  transform: scale(1.08);
  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%;
  background: #ddd;
  position: relative;
  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;
}


/* =============== LINE風チャット =============== */

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* 他人のメッセージ(左) */
.chat-left {
  background: #fff;
  border: 1px solid #ddd;
  margin-left: 6px;
}

/* 自分のメッセージ(右) */
.chat-right {
  background: #c8f7c5;
  color: #333;
  margin-left: auto;
  margin-right: 6px;
  text-align: left;
}

/* 吹き出しコンテナ */
.chat-line {
  display: flex;
  width: 100%;
}

/* ======================================
   ピンのレイアウト(安定版)
====================================== */

.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ピン本体+名前ラベルをまとめた箱 */
.pin-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-10px); /* 高さ微調整 */
}

/* ピン画像 */
.pin-img {
  width: 32px;
  height: 32px;
}

/* 名前ラベル(改良済み) */
.pin-label {
  margin-top: 2px;
  background: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border: 1px solid #999;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.member-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  color: white;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}