/* 全体のリセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    background-color: white;
    border-radius: 8px;
    max-width: 100%;
    padding: 20px;
}
/* 上部に表示する開発中バナー */
.dev-banner {
    background-color: #ff9800;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1000;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* ヘッダー */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

/* メインコンテンツ */
main {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

/* ボタンの共通スタイル */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
}

.btn:active {
    transform: translateY(2px);
}

/* トップページのボタンコンテナ */
.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 健診予約ボタン */
.reservation-btn {
    background-color: #06c755; /* LINEカラー */
    color: white;
}

.reservation-btn:hover {
    background-color: #05b349;
}

/* 健診結果送信ボタン */
.upload-page-btn {
    background-color: #4a90e2;
    color: white;
}

.upload-page-btn:hover {
    background-color: #3a7bc8;
}

/* フッター */
footer {
    text-align: center;
    font-size: 12px;
    color: #888;
}

/* アップロードページのスタイル */
.upload-container {
    text-align: center;
}

/* ファイル選択部分 */
.file-input-container {
    margin-bottom: 20px;
}

.file-label {
    display: block;
    padding: 14px;
    background-color: #eee;
    border: 2px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.file-label:hover {
    border-color: #4a90e2;
}

input[type="file"] {
    display: none;
}

.file-name {
    font-size: 14px;
    color: #666;
}

/* プレビュー部分 */
.preview-container {
    margin: 20px 0;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* 送信ボタン */
.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #45a049;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* キャンセルボタン */
.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.cancel-btn:hover {
    background-color: #eee;
}

/* 戻るボタン */
.back-btn {
    background-color: #4a90e2;
    color: white;
}

.back-btn:hover {
    background-color: #3a7bc8;
}

/* ローディング表示 */
.loading {
    margin: 20px 0;
}

.loading p {
    font-weight: bold;
    color: #4a90e2;
}

/* 結果表示 */
.result {
    margin: 20px 0;
}

.result p {
    margin-bottom: 15px;
    font-weight: bold;
}

/* エラーページのスタイル */
.error-container {
    text-align: center;
    padding: 20px;
}

.error-container h2 {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 10px;
}

.error-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.error-details {
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    overflow-x: auto;
}

.error-details pre {
    font-family: monospace;
    font-size: 14px;
    color: #333;
}

/* ユーティリティクラス */
.hidden {
    display: none;
}

/* 認証フォームのスタイル */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}
/* 認証ページ専用のコンテナスタイル */
.auth-container {
    max-width: 500px;               /* 横幅を固定 */
    margin: 0 auto;                 /* 横中央揃え */
    padding: 20px;
    display: flex;                  /* Flexboxで縦方向の中央揃え */
    flex-direction: column;         /* 縦に並べる */
    justify-content: center;        /* 垂直方向に中央配置 */
    min-height: 60vh;              /* 画面全体の高さを確保 */
}
.auth-container h2 {
    margin-bottom: 100px;
    text-align: center;
    color: #4a4a4a;
}

#auth-form label{
    display: inline-block;
    margin-bottom: 5px;
}

#auth-form input {
    margin-bottom: 15px;
}

.description {
    margin-bottom: 15px;
    color: #666;
    font-size: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-message {
    margin: 15px 0;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    white-space: pre-line;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* ローディング画面のスタイル */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #06c755; /* LINEカラー */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#status-message {
    font-size: 16px;
    color: #333;
    text-align: center;
}

/* 生年月日入力部分のスタイル追加 */
.birthdate-inputs {
    display: flex; /* 横並びに配置 */
    gap: 10px; /* 入力間の余白 */
    margin-bottom: 15px;
}
.birthdate-inputs input {
    flex: 1; /* 均等幅を等分 */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* 選択されたファイルリスト */
.selected-files-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.selected-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* ファイル削除ボタン */
.remove-file {
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 12px;
}

.remove-file:hover {
    background-color: #ff5252;
}

/* ファイル入力部分 */
.file-input-label {
    display: block;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px dashed #ccc;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-input-label:hover {
    border-color: #4a90e2;
    background-color: #f0f8ff;
}

.file-input {
    display: none;
}

/* 警告メッセージ */
.file-limit-warning {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    display: none;
}

/* 完了メッセージ */
.completion-message {
    margin-top: 20px;
    padding: 12px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    text-align: center;
    display: none;
}

/* セキュリティ情報 */
.security-info {
    background-color: #f8f9fa;
    border-left: 4px solid #17a2b8;
    padding: 10px 15px;
    margin-bottom: 20px;
    color: #495057;
    font-size: 14px;
}