diff --git a/style.css b/style.css index 67705c2..7e19882 100644 --- a/style.css +++ b/style.css @@ -1,70 +1,108 @@ -/* 全体の背景 */ +/* 全体 */ body { margin: 0; - font-family: "Hiragino Sans", "Helvetica Neue", sans-serif; - background: linear-gradient(135deg, #aee1ff, #d6ffe3); + font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif; + background: #eef6ff; min-height: 100vh; - display: flex; - justify-content: center; - align-items: center; - padding: 20px; } -/* カード */ +/* index.html のログインカード */ .container { - width: 100%; + width: 95%; max-width: 450px; + margin: 40px auto; padding: 25px; - background: #fff; + background: white; border-radius: 18px; - box-shadow: 0 10px 28px rgba(0,0,0,0.12); + box-shadow: 0 10px 25px rgba(0,0,0,0.12); text-align: center; } -/* タイトル */ -.container h1 { - font-size: 26px; - margin-bottom: 10px; -} - /* 入力欄 */ input[type="text"] { width: 100%; padding: 12px; - margin: 8px 0; + margin: 10px 0; font-size: 16px; - border: 2px solid #ddd; border-radius: 10px; - box-sizing: border-box; -} - -input[type="text"]:focus { - border-color: #4ba3ff; - box-shadow: 0 0 6px rgba(75,163,255,0.4); + border: 2px solid #ddd; } /* ボタン */ button { width: 100%; padding: 12px; - font-size: 17px; + font-size: 18px; border-radius: 10px; background: #4ba3ff; - color: #fff; + color: white; border: none; cursor: pointer; } -button:hover { - background: #1b8af5; +/* ------------------------------- + map4.html レイアウト +--------------------------------*/ +.map-layout { + display: flex; + flex-direction: column; /* スマホは縦並び */ + gap: 20px; + padding: 20px; + max-width: 1200px; + margin: 0 auto; +} + +/* PCのときは横並びにする */ +@media (min-width: 900px) { + .map-layout { + flex-direction: row; + align-items: flex-start; + } + + .map-area { + width: 70%; + } + + .member-area { + width: 30%; + max-height: 90vh; + overflow-y: auto; + background: white; + padding: 20px; + border-radius: 12px; + box-shadow: 0 0 12px rgba(0,0,0,0.1); + } +} + +/* スマホのときは標準の縦並び */ +.map-area { + width: 100%; +} + +.member-area { + width: 100%; + background: white; + padding: 15px; + border-radius: 12px; + box-shadow: 0 0 12px rgba(0,0,0,0.1); } /* 地図 */ #map { width: 100%; - height: 480px; - margin-top: 15px; + height: 450px; border-radius: 15px; - overflow: hidden; - box-shadow: 0 8px 20px rgba(0,0,0,0.18); + margin-top: 10px; +} + +/* メンバーリスト */ +#memberList { + padding-left: 18px; + font-size: 18px; +} + +#memberList li { + margin-bottom: 8px; + border-bottom: 1px solid #ddd; + padding-bottom: 4px; }