header {
    background:#343a40; color:white; padding:10px 20px; display:flex; align-items:center; justify-content:space-between;
}
header h1 { font-size:18px; margin:0; color:white; }
header nav a {
    color:white; text-decoration:none; margin-left:15px; font-size:14px;
}
header nav a:hover { text-decoration:underline; }
/* PC用ナビ */
header nav {
  display: flex;
}

/* ハンバーガーアイコン */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger span {
  background: white;
  height: 3px;
  margin: 4px 0;
  width: 25px;
  border-radius: 2px;
}

/* スマホ表示 */
@media (max-width: 768px) {
  header nav {
    display: none;
    flex-direction: column;
    background: #343a40;
    position: absolute;
    top: 60px; right: 0;
    width: 200px;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    z-index: 9999;    
  }
  header nav a {
    margin: 10px 0;
  }
  .hamburger {
    display: flex;
    z-index: 10000;
  }
  header nav.active {
    display: flex;
  }
}

/* モーダル全体 */
#loginModal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* モーダル内部 */
.modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 320px;
    max-width: 90%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeIn 0.2s ease-out;
}

/* 閉じるボタン */
.close-btn {
    position: absolute;
    top: 10px; right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #555;
    transition: color 0.2s;
}
.close-btn:hover { color: #000; }

/* タイトル */
.modal-content h2 {
    margin-top: 0;
    text-align: center;
    font-family: sans-serif;
    margin-bottom: 20px;
    color: #333;    
}

/* フォーム */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}
.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* ボタン */
.submit-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #007bff;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.submit-btn:hover {
    background-color: #0056b3;
}

/* ステータス表示 */
#loginStatus {
    color: red;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
