/* ==============================
基本設定
============================== */
* { 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;
}
/* ======================================
ピンのレイアウト(安定版)
====================================== */
.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;
}
/* ==============================
チャット欄(全体)
============================== */
#chatBox {
margin: 20px;
}
#chatList {
height: 230px;
background: linear-gradient(135deg, #fff7fc, #f3faff); /* パステル */
border: 1px solid #f0dcec;
border-radius: 20px;
padding: 12px;
overflow-y: auto;
box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.05);
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風チャット部分(安定版)
============================== */
/* 1行のコンテナ */
.chat-line {
display: flex;
align-items: flex-end;
width: 100%;
margin: 6px 0;
}
/* 左側(他人) */
.chat-left {
justify-content: flex-start;
}
/* 右側(自分) */
.chat-right {
justify-content: flex-end;
}
/* 吹き出し共通 */
.chat-bubble {
max-width: 70%;
padding: 10px 14px;
border-radius: 16px;
font-size: 15px;
line-height: 1.4;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
word-break: break-word;
}
/* 他人の吹き出し */
.chat-left .chat-bubble {
background: #ffffff;
border: 1px solid #ddd;
border-radius: 16px 16px 16px 6px;
}
/* 自分の吹き出し */
.chat-right .chat-bubble {
background: #c8f7c5;
border-radius: 16px 16px 6px 16px;
}
/* 時間(吹き出しの外) */
.chat-time {
font-size: 11px;
color: #888;
margin: 0 6px;
white-space: nowrap;
}
/* ==============================
柔らかカード風 GroupBox(ウサギ無し)
============================== */
#groupNameBox {
background: #ffffff;
border-radius: 20px;
padding: 18px 22px;
color: #333;
/* フォント改善 */
font-size: 16px;
font-weight: 600; /* ← 太め */
letter-spacing: 0.5px;
/* ふんわり影 */
box-shadow: 0 6px 20px rgba(0,0,0,0.12);
/* 行間を整える */
line-height: 1.7;
position: relative;
}
/* 吹き出しのしっぽ */
#groupNameBox::before {
content: "";
position: absolute;
left: 26px;
bottom: -10px;
width: 18px;
height: 18px;
background: #ffffff;
border-radius: 4px;
transform: rotate(45deg);
box-shadow: 4px 4px 10px rgba(0,0,0,0.08);
}
.status-header {
display: flex;
gap: 6px;
margin: 10px 0;
overflow-x: auto;
padding: 4px 0;
}
.status-header .stBtn {
flex-shrink: 0;
padding: 6px 10px;
font-size: 13px;
border-radius: 8px;
border: none;
background: #ececec;
cursor: pointer;
}
.status-header .stBtn:active {
filter: brightness(0.9);
}
/* ▼ スマホ用レイアウト(幅600px以下) */
@media (max-width: 600px) {
#header {
display: flex;
flex-direction: column;
gap: 8px;
padding: 8px;
}
/* グループ名などを1行コンパクトに */
#groupNameBox {
font-size: 14px;
line-height: 1.3;
}
/* ステータスボタンを折り返し可能にして圧縮 */
#statusButtons {
display: flex;
flex-wrap: wrap;
gap: 6px;
justify-content: center;
}
#statusButtons .stBtn {
padding: 4px 6px;
font-size: 12px;
}
/* 退出/解散ボタンを横並び小型化 */
#header button.cute {
padding: 6px 10px;
font-size: 12px;
}
/* メンバー一覧と地図のレイアウトも縦並びに */
.map-body {
flex-direction: column;
}
.member-area {
width: 100%;
margin-bottom: 10px;
}
#map {
height: 55vh;
}
}
/* ▼ グループ待ち合わせ中バナー */
.banner {
width: 100%;
background: linear-gradient(90deg, #ffe7f0, #ffeef6);
padding: 10px 15px;
text-align: center;
font-size: 15px;
font-weight: 600;
color: #d14b85;
border-bottom: 1px solid #ffbdd7;
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.share-modal, .qr-modal {
display:none;
position:fixed;
top:0; left:0;
width:100%; height:100%;
background:rgba(0,0,0,0.5);
justify-content:center;
align-items:center;
z-index:9999;
}
.share-box, .qr-box {
background:white;
padding:20px;
border-radius:15px;
width:80%;
max-width:330px;
text-align:center;
box-shadow:0 4px 8px rgba(0,0,0,0.3);
}
.share-btn {
width:100%;
padding:12px;
margin:10px 0;
background:#4a90ff;
color:white;
border:none;
border-radius:10px;
font-size:16px;
}
.close-btn {
margin-top:10px;
padding:10px;
background:#888;
color:white;
border:none;
border-radius:10px;
cursor:pointer;
}
/* 退出ボタンの隣に置く共有ボタン(小さめ) */
#shareBtn {
padding: 6px 12px;
font-size: 13px;
background: #4a90ff;
color: white;
border: none;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
cursor: pointer;
}
/* QRコードを中央に配置する */
#qrcode {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
margin: 0 auto;
}