/* 共通 */
body {
margin: 0;
font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}
input, button {
box-sizing: border-box;
}
/* index */
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: 90%;
max-width: 420px;
padding: 25px;
background: #ffffff;
border-radius: 16px;
box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.index-container input[type="text"] {
width: 100%;
padding: 12px;
margin-top: 8px;
border-radius: 10px;
border: 2px solid #ddd;
font-size: 16px;
}
/* map4 */
body.map-page {
background: linear-gradient(135deg, #d7efff, #e8ffef);
padding: 16px;
}
/* ★ flexの外にある地図ブロック(これが重要) */
#map {
width: 100%;
height: 480px;
margin: 16px 0;
border-radius: 14px;
box-shadow: 0 4px 18px rgba(0,0,0,0.20);
}
/* カード共通 */
.card {
background: white;
padding: 16px;
border-radius: 16px;
box-shadow: 0 4px 18px rgba(0,0,0,0.12);
margin-bottom: 16px;
}
/* メンバー */
.member-area ul {
list-style: none;
padding: 0;
}
.member-area li {
background: #f9fbff;
padding: 12px;
margin-bottom: 10px;
border-left: 5px solid #4ba3ff;
border-radius: 10px;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
}
/* アイコン */
.member-icon {
width: 26px;
height: 26px;
border-radius: 50%;
background: #4ba3ff;
}
/* オンライン/オフライン */
.online .member-icon::after {
content: "";
position: absolute;
right: -5px;
bottom: -5px;
width: 10px;
height: 10px;
background: #1ed760;
border-radius: 50%;
border: 2px solid white;
}
.offline .member-icon::after {
content: "";
position: absolute;
right: -5px;
bottom: -5px;
width: 10px;
height: 10px;
background: #ff4d4d;
border-radius: 50%;
border: 2px solid white;
}
/* fadeIn */
.fadeIn {
animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}