body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0; /* デフォルトの上下マージンを削除 */
    padding: 0; /* デフォルトの上下パディングを削除 */
}

/* コンテナのレスポンシブ設定 */
.container {
    max-width: 1200px;
    margin: 0 auto; /* ブロック要素の中央配置 */
}

/* カスタム・コンテンツ・ボックス */
.speech-container,
.chat-container {
    width: 100%; /* フル幅にしてレスポンシブに対応 */
    max-width: 800px; /* 必要に応じて最大幅を設定 */
    margin: 20px auto; /* ブロック要素の中央配置 */
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#speech-box,
#chat-box {
    max-height: 400px; /* 高さを固定してレイアウト崩れを防ぐ */
    overflow-y: auto; /* 縦方向のスクロールを許可 */
    padding: 10px;
}

.user-message,
.chatgpt-message {
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    font-size: 16px;
    text-align: left;
}

.user-message {
    background: #d1e7ff;
    color: #0056b3;
}

.chatgpt-message {
    background: #e6e6e6;
    color: #333;
}

/* ボタンのスタイル */
button, 
#recordButton, 
#feedbackButton, 
#speechButton, 
#conversationButton {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex; /* フレックスで周囲に要素を配置 */
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover,
#recordButton:hover, 
#feedbackButton:hover, 
#speechButton:hover, 
#conversationButton:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

#recordButton.recording {
    background-color: #ff4d4d;
    color: white;
}

#recordButton i,
#feedbackButton i {
    font-size: 20px;
}

#audioPlayer {
    display: none; /* 通常は非表示にしておく */
    width: 100%;
    margin-top: 10px;
}

#feedback-box {
    text-align: left;
}

#speechButton, 
#conversationButton {
    width: 400px;
    height: 60px;
}

/* ログインフォーム */
.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    margin: 50px auto; /* 中央配置に影響 */
}

h2 {
    margin-bottom: 1rem;
}

.form-signin {
    display: flex;
    flex-direction: column;
}

.form-signin label {
    text-align: left;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-signin input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.register-link {
    display: block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}

/* メニュー表示 */
.main-menu {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    height: 100vh; /* Full viewport height to keep it centered vertically */
}

.main-menu button {
    margin: 10px; /* Add some space between buttons */
}