/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ここを書き換え */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;   /* ← 縦に並べる */
}

/* 追加：フォームを真ん中に配置するラッパー */
.main-wrap {
    flex: 1;                              /* 余った高さを全部ここに */
    display: flex;
    align-items: center;                  /* 縦方向まんなか */
    justify-content: center;              /* 横方向まんなか */
}


.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

/* フォームグループ */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ボタン */
button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* エラーメッセージ */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* 成功メッセージ */
.success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #363;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

/* リンク */
.links {
    margin-top: 25px;
    text-align: center;
}

.links a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.error-text {
  color: red;
  font-size: 0.9em; /* 相対サイズ（親要素の約90%） */
  margin-top: 0.3em; /* 少し余白をあける */
}
/* ===== 共通フッター ===== */
.site-footer{
  margin-top:40px;              /* コンテンツとの間 */
  padding:28px 16px 32px;       /* 内側の余白 */
  background:#004878;           /* 青色（好みで調整OK） */
  color:#ffffff;
  text-align:center;
  font-size:14px;
  line-height:1.9;
}

.site-footer p{
  margin:0;
}

.site-footer p + p{
  margin-top:4px;               /* 行と行の間のすき間 */
}

@media (max-width:600px){
  .site-footer{
    font-size:12px;
    padding:20px 10px 24px;
  }
}



/* レスポンシブ対応 */
@media (max-width: 480px) {
    .container {
        margin: 10px;
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    button[type="submit"] {
        padding: 14px;
    }
}

