body {
    font-family: 'Meiryo', 'Hiragino Kaku Gothic Pro', 'MS PGothic', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.3;
}

.navbar {
    background-color: #004d99;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h1 {
    margin: 0;
    font-size: 1.5em;
}

.btn {
    background-color: #0073e6;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #005bb5;
}

.container {
    width: 70%;
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #0073e6;
    padding-bottom: 8px;
}

.form-note {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #555;
    background-color: #f0f7ff;
    padding: 10px;
    border-radius: 8px;
    border-left: 5px solid #0073e6;
}

.form-group {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-group:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 共通スタイル：input、select、textareaに適用 */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1em;
    box-sizing: border-box;
    margin-top: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

/* ラベルやエラー表示のスタイル例 */
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    color: #444;
    font-size: 1.1em;
}

/* 親コンテナ */
#id_consultation {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}
  
/* 各チェックボックスブロック */
#id_consultation > div {
    display: flex;
    align-items: center;
    margin-left: 20px;
    background-color: white;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #eee;
}
  
/* ラベルのスタイルを横並びに */
#id_consultation > div label {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    margin: 0;
    color: #444;
    font-size: 1.1em;
}
  
/* チェックボックス自体のスタイル */
#id_consultation > div input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.3);
    width: auto;
}
  
.error p {
    color: #dc3545;
    margin: 8px 0 0;
    font-size: 1em;
    background-color: #fff0f0;
    padding: 8px;
    border-radius: 5px;
}

.required {
    color: #dc3545;
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 5px;
}

button {
    width: 100%;
    padding: 12px;
    font-size: 1.3em;
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

button:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* 必須項目の入力欄をハイライト */
.form-group input:required,
.form-group select:required {
    border-left: 4px solid #dc3545;
}

/* フィールドセット用のスタイルを追加 */
fieldset {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    padding: 0 10px;
    color: #0073e6;
}

/* ヒントテキストのスタイル */
.form-hint {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 2px;
    line-height: 1.2;
}

/* ボタングループ */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

/* ボタンスタイル */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn i {
    margin-right: 6px;
}

.btn-primary {
    background-color: #0073e6;
    color: white;
    flex: 2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    .form-group label {
        font-size: 1.1em;
    }

    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}
