/* ==============================
共通
============================== */
* { box-sizing: border-box; }
body {
margin: 0;
font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
background: linear-gradient(135deg, #d7efff, #e8ffef);
}
/* ==============================
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: 24px;
box-shadow: 0 12px 30px rgba(0,0,0,0.15);
text-align: center;
}
.input-box {
width: 100%;
padding: 15px;
margin-top: 14px;
border: 2px solid #ddd;
font-size: 18px;
border-radius: 12px;
}
/* ==============================
map4.html
============================== */
#header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
background: white;
border-bottom: 2px solid #b4e3c2;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* ■★ ここが重要:左右レイアウト復元 */
.map-body {
display: flex;
gap: 20px;
margin: 20px;
}
.member-area {
width: 30%;
}
.map-area {
width: 70%;
}
.card {
background: white;
padding: 18px;
border-radius: 18px;
box-shadow: 0 6px 20px 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: 14px;
}
/* メンバー一覧 */
#memberList {
list-style: none;
padding: 0;
margin: 0;
}
#memberList li {
background: #f2f6ff;
padding: 12px;
margin: 10px 0;
display: flex;
align-items: center;
justify-content: space-between;
border-left: 5px solid #4ba3ff;
border-radius: 14px;
}
.member-icon {
width: 26px;
height: 26px;
border-radius: 50%;
position: relative;
flex-shrink: 0;
}
.member-icon::after {
content: "";
position: absolute;
width: 12px;
height: 12px;
border-radius: 50%;
bottom: -3px;
right: -3px;
border: 2px solid white;
}
.online .member-icon::after { background: #22dd77; }
.offline .member-icon::after { background: #ff5d5d; }
/* 下部情報 */
.info-area {
margin: 20px;
}
/* チャット */
#chatList {
height: 220px;
background: #f7faff;
border: 1px solid #d0d8e6;
border-radius: 10px;
padding: 10px;
overflow-y: auto;
margin-bottom: 12px;
font-size: 14px;
}
#chatInputArea {
display: flex;
gap: 10px;
}
#chatInput {
flex: 1;
padding: 12px;
font-size: 16px;
border: 2px solid #ccc;
border-radius: 12px;
}
#chatSend {
padding: 10px 16px;
background: #4caf50;
border: none;
border-radius: 12px;
color: white;
font-size: 15px;
font-weight: bold;
cursor: pointer;
}