/* ==============================
共通
============================== */
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
}
.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(18px); }
to { opacity: 1; transform: translateY(0); }
}
/* ==============================
index.html
============================== */
body.index-page {
background: linear-gradient(135deg, #9be2ff, #c7f5d9);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.index-container {
width: 92%;
max-width: 420px;
padding: 30px 20px;
background: #fff;
border-radius: 20px;
box-shadow: 0 12px 28px rgba(0,0,0,0.15);
text-align: center;
}
.index-container input[type="text"] {
width: 100%;
padding: 13px;
margin-top: 14px;
border-radius: 10px;
border: 2px solid #ddd;
font-size: 17px;
}
.start-btn {
width: 100%;
padding: 12px;
margin-top: 18px;
border: none;
border-radius: 12px;
background: #4ba3ff;
color: white;
font-size: 18px;
}
/* ==============================
map4.html
============================== */
body.map-page {
background: linear-gradient(135deg, #d7efff, #e8ffef);
padding: 20px;
}
.card {
background: white;
padding: 16px;
border-radius: 18px;
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
margin-bottom: 20px;
}
/* PC横並び */
.map-body {
display: flex;
flex-direction: column;
gap: 20px;
}
@media (min-width: 900px) {
.map-body {
flex-direction: row;
}
.member-area { width: 28%; }
.map-area { width: 72%; }
}
/* 地図 */
#map {
width: 100%;
height: 500px;
border-radius: 14px;
box-shadow: 0 4px 18px rgba(0,0,0,0.20);
}
/* メンバー一覧 */
#memberList {
list-style: none;
padding: 0;
margin: 0;
}
#memberList li {
background: #f2f6ff;
border-left: 5px solid #4ba3ff;
padding: 12px;
margin: 10px 0;
border-radius: 12px;
cursor: pointer;
display: flex;
align-items: center;
gap: 12px;
}
/* オンライン/オフライン丸 */
.member-icon {
width: 26px;
height: 26px;
border-radius: 50%;
background: #4ba3ff;
position: relative;
}
.online .member-icon::after,
.offline .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; }
/* ピンの上の名前吹き出し */
.marker-label {
background: white;
padding: 3px 8px;
border-radius: 6px;
font-size: 13px;
border: 1px solid #ccc;
white-space: nowrap;
}