/* 全体のレイアウトと基本スタイル */
#primary {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}

.site-main {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

/* 見出しスタイル */
.site-main h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

/* フォーム要素のスタイル */
form {
    margin-bottom: 3rem;
}

form p {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* ボタンスタイル */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}

.button:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-primary {
    background-color: #3498db;
}

.button-primary:hover {
    background-color: #2980b9;
}

/* メッセージスタイル */
.success {
    padding: 0.75rem 1rem;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.error {
    padding: 0.75rem 1rem;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 1rem;
    border-left: 4px solid #dc3545;
}

/* ログインメッセージ */
.site-main > p {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    color: #6c757d;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    #primary {
        padding: 1rem;
    }
    
    .site-main {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .button {
        width: 100%;
        padding: 1rem;
    }
    
    .site-main h2 {
        font-size: 1.3rem;
    }
}