/* 基本スタイル */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
}

/* アプリ全体のレイアウト設定 */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ヘッダー */
header {
    position: relative; /* 子要素を絶対位置で配置するために設定 */
    background-color: #cc0000; /* ヘッダー背景色 */
    color: white;
    padding: 1rem;
    text-align: center;
}

h1 {
    margin: 0;
}

/* メインコンテンツ */
main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* フォームのカードスタイル */
.form-card {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #cc0000;
    text-align: center;
}

/* フォーム内の入力フィールド */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

/* ボタンスタイル */
.submit-button, .start-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #cc0000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover, .start-button:hover {
    background-color: #990000;
}

/* 追加オプションリンク */
.additional-options {
    margin-top: 1rem;
    text-align: center;
}

.additional-options a {
    display: block;
    margin-top: 0.5rem;
    color: #cc0000;
    text-decoration: none;
}

.additional-options a:hover {
    text-decoration: underline;
}

/* フッター */
footer {
    background-color: #e0e0e0;
    color: #333;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

/* 模擬試験選択画面の試験リスト */
.exam-list {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 20px;
}

.exam-item {
    display: flex;
    align-items: center; /* アイテムを垂直中央に揃える */
    margin-bottom: 10px;
}

.exam-item input[type="radio"] {
    margin-top:  -7px;
    margin-right: 10px; /* ラジオボタンとテキストの間のスペース */
    vertical-align: middle;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    position: relative;
    width: 20px;
    height: 15px;
    cursor: pointer;
    margin-left: auto; /* 右に寄せるために左側のマージンを自動設定 */
}

.menu-toggle {
    display: none; /* チェックボックスを非表示にする */
}

.menu-icon {
    display: block;
    width: 20px;
    height: 15px;
    position: relative;
    cursor: pointer;
}

.menu-icon span,
.menu-icon span::before,
.menu-icon span::after {
    background: white; /* アイコンの色 */
    content: '';
    display: block;
    height: 2px;
    position: absolute;
    transition: background ease .3s, top ease .3s .3s, transform ease .3s;
    width: 100%;
}

.menu-icon span {
    top: 7px;
}

.menu-icon span::before {
    top: -7px;
}

.menu-icon span::after {
    top: 7px;
}

/* メニュー開閉のアニメーション */
.menu-toggle:checked + .menu-icon span {
    background: transparent;
}

.menu-toggle:checked + .menu-icon span::before {
    transform: rotate(45deg);
    top: 0;
    transition: top ease .3s, transform ease .3s .3s;
}

.menu-toggle:checked + .menu-icon span::after {
    transform: rotate(-45deg);
    top: 0;
    transition: top ease .3s, transform ease .3s .3s;
}

/* メニュー本体 */
.menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    width: 200px;
    max-width: 80vw;
}

.menu-toggle:checked ~ .menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu li {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu li:last-child {
    border-bottom: none;
}

.menu a {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 16px;
    line-height: 1.5;
}

.menu a:hover {
    background-color: #f5f5f5;
}

/* ユーザー情報の表示 */
.user-info {
    padding: 10px 20px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #eee;
    text-align: center;
    color: #333;
}
