/* ==================================== */
/* CSS スタイル (ターミナル風デザイン) */
/* ==================================== */

/*
 * 全体の背景とフォント設定
 * (2枚目の画像に合わせて、暗い背景色とネオンカラーを設定)
 */
body {
    /* 2枚目の画像の暗い背景色 (濃い紺色/紫) */
    background-color: #120a2f; 
    /* 2枚目の画像のネオンブルーの文字色 */
    color: #00ffff; 
    
    font-family: 'Courier New', monospace; /* ターミナルらしいフォント */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/*
 * コンタクトフォームのコンテナ (白いカード部分をネオンボックスに変更)
 */
.container {
    /* 背景を暗くして、文字色と一体感を出す */
    background: rgba(0, 0, 0, 0.4); 
    padding: 30px;
    border-radius: 4px;
    width: 100%;
    max-width: 450px;
    
    /* 蛍光ブルーの境界線と影 (ネオンエフェクト) */
    border: 1px solid #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.2); 
}

/*
 * タイトル (h1) のスタイル
 */
h1 {
    text-align: center;
    /* 蛍光ブルー */
    color: #00ffff; 
    margin-bottom: 20px;
    font-weight: normal;
    font-size: 28px;
    /* タイトルにも軽いネオンシャドウ */
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

/*
 * ラベルのスタイル
 */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal; /* ターミナルフォントに合わせる */
    color: #ffffff; /* 読みやすいように明るい白に変更 */
    font-size: 14px;
}

/*
 * 入力欄とテキストエリア
 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    
    /* 入力欄の背景と境界線を暗くし、ネオンカラーの文字色にする */
    background-color: #000000;
    color: #00ff00; /* ターミナル風の緑色の文字 */
    border: 1px solid #333333;
    border-radius: 2px;
    
    box-sizing: border-box;
    /* フォーカス時にネオンエフェクトを追加するための準備 */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* 入力欄のフォーカス時 */
input:focus,
textarea:focus {
    /* 蛍光ブルーの境界線とシャドウ */
    border-color: #00ffff;
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
    outline: none;
}

/*
 * 送信ボタンのスタイル
 */
button {
    /* 蛍光ブルーを基調とする */
    background-color: #00ffff; 
    color: #120a2f; /* 濃い背景色と同じ色を文字色に (コントラストを出すため) */
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    /* ボタンにもネオンシャドウ */
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ホバー時のボタンのスタイル */
button:hover:not(:disabled) {
    background-color: #00e0e0; 
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

/* 無効化されたボタンのスタイル */
button:disabled {
    background-color: #008080;
    cursor: not-allowed;
    box-shadow: none;
}

/*
 * メッセージ表示エリア
 */
.message-area {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    border: 1px solid;
}

/* 成功メッセージ */
.message-success {
    background-color: rgba(0, 255, 0, 0.1); /* 薄いネオングリーン背景 */
    color: #00ff00; /* ネオングリーン文字 */
    border-color: #00ff00;
}

/* エラーメッセージ */
.message-error {
    background-color: rgba(255, 0, 0, 0.1); /* 薄いネオンレッド背景 */
    color: #ff0000; /* ネオンレッド文字 */
    border-color: #ff0000;
}

/* 🚀 送信中メッセージ (新規追加: ロード中のアニメーションを連想させる) */
.message-area:not(.message-success):not(.message-error):not(:empty) {
    background-color: rgba(0, 0, 255, 0.1); /* 薄いネオンブルー背景 */
    color: #00ffff; /* ネオンブルー文字 */
    border-color: #00ffff;
    /* 軽く点滅するようなアニメーションを付けることも可能 */
}
