/* 全体のスタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a3d66;
    border-bottom: 3px solid #1a3d66;
    padding-bottom: 10px;
}

h2 {
    color: #1a3d66;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #1a3d66;
}

h3 {
    color: #2c5aa0;
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px dashed #2c5aa0;
}

h4 {
    color: #3a6db5;
    margin: 10px 0;
}

/* フォームセクション */
.form-section {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.3);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
}

.required {
    color: #e74c3c;
}

/* 姓名入力グループ */
.name-group .name-inputs {
    display: flex;
    gap: 10px;
}

.name-group .name-inputs input {
    flex: 1;
}

/* メンバーエントリー */
.member-entry {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.team-entry {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fff;
}

/* ボタン */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #1a3d66;
    color: white;
}

.btn-primary:hover {
    background-color: #0f2a4a;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* 確認画面 */
#confirmationScreen,
#completionScreen,
#adminScreen {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

#confirmationContent {
    margin: 20px 0;
}

#confirmationContent dl {
    margin-bottom: 20px;
}

#confirmationContent dt {
    font-weight: bold;
    margin-top: 10px;
}

#confirmationContent dd {
    margin-left: 20px;
    padding: 5px 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .form-section {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* 審判員と団体戦の追加ボタン */
#addReferee,
#addJuniorTeam,
#addSeniorTeam {
    margin-top: 10px;
}

/* 削除ボタン */
.delete-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* 管理者画面 */
#entriesList {
    margin-top: 20px;
}

.entry-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.entry-item h3 {
    margin-top: 0;
}

/* 完了メッセージ */
#completionScreen p {
    text-align: center;
    margin-bottom: 15px;
}

/* 年度表示 */
.tournament-year {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* 受付状態表示 */
.notice {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.notice h2 {
    border: none;
    padding: 0;
    margin-bottom: 15px;
}

.notice-info {
    border-left: 5px solid #3498db;
}

.notice-info h2 {
    color: #3498db;
}

.notice-warning {
    border-left: 5px solid #e74c3c;
}

.notice-warning h2 {
    color: #e74c3c;
}

.notice-deadline {
    background-color: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.notice-deadline p {
    margin: 0;
    font-weight: bold;
    color: #856404;
}

/* 確認画面セクション */
.confirmation-section {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.confirmation-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.confirmation-section p {
    margin: 8px 0;
}

.confirmation-section dl {
    margin: 10px 0;
}

.confirmation-section dt {
    font-weight: bold;
    margin-top: 10px;
    color: #1a3d66;
}

.confirmation-section dd {
    margin-left: 15px;
    padding: 3px 0;
}
