* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #F9FAFB;
    font-family: Arial, sans-serif;
    height: 100%;
    width: 100%;
}

/* ロゴイメージのスタイル */
#logo-img {
    max-width: 150px;
    height: auto;
    display: block;
    margin-left: 5vw;
    margin-top: 15px;
}
@media (min-width: 800px) {
    #logo-img {
        margin-left: calc((100vw - 800px) / 2);
    }
}

.progress-bar-container {
    width: 90vw;
    max-width: 800px;
    margin: 2vw auto 0;
    height: 5px;
    background: #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 999;
    border-radius: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #007bff;
    transition: width 0.2s ease-out;
}

.container {
    align-items: center;
    background-color: #F9FAFB;
    border-radius: 15px;
    justify-content: center;
    margin: 4vw auto 0;
}

.main_container {
    width: 90vw;
    max-width: 800px;
    height: 80vh;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* フォームをスクロール可能にする */
form {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.headline {
    color: #fff;
    background-color: #434343;
    padding: 0.25em 0.5em;
}

.text-blue {
    color: #324E73;
}
.text-bold {
    font-weight: bold;
}

.mx-w-50per {
    max-width: 50%;
}

/* フォームについて */
.scrollable-container {
    width: 100%;
    height: auto;
    max-height: 50vw;
    padding: 0.5rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow-y: auto;
}

.simulation-container {
    max-height: none;
    overflow-y: visible;
}

.simulation-results .mb-3 label {
    display: inline-block;
    width: 250px;
    margin-right: 10px;
}

#description-image {
    width: 100vw;
    height: auto;
    object-fit: cover;
}

.to-application-form-button {
    display: inline-block;
    color: #2463EB;
    font-size: 11px;
}

/* 無効化 */
.to-application-form-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* 右寄せのコンテナ */
.to-application-form-container {
    display: flex;
    justify-content: flex-end;
}

.text-danger {
    color: #ff0019;
}
.mb-3 {
    margin-bottom: 30px;
}
.mt-1rem {
    margin-top: 1rem;
}
.mb-1rem {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
}

/* プルダウン（select）のスタイル */
select.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}
/* プルダウンのフォーカス時 */
select.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* 自由記載（テキスト入力）のスタイル */
input.form-control {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
/* 自由記載のフォーカス時 */
input.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

input[type="file"] {
    max-width: 100%;
}

/* チェックボックスのコンテナを横並びにする */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
/* 各チェックボックスのスタイル */
.checkbox-container .form-check-inline {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 150px;
}

/* 個人情報の取り扱いについて
   本人確認書類のアップロード
   のスタイルについて      */
.h2-whitespace {
    margin: 10px 0;
}

/* 基本のボタンスタイル */
.btn-primary {
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
}
.btn-primary-small {
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
}
/* ホバー時のスタイル */
.btn-primary:hover,
.btn-primary-small:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0, 91, 187, 0.3);
}
/* クリック時のスタイル */
.btn-primary:active,
.btn-primary-small:active {
    background-color: #004494;
    box-shadow: 0 2px 4px rgba(0, 91, 187, 0.3);
    transform: scale(0.98);
}
/* 無効化されたボタン */
.btn-primary:disabled,
.btn-primary-small:disabled {
    background-color: #b0c4de;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 戻るボタンのスタイル */
.btn-back {
    background-color: #B0B0B0;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
}
/* ホバー時のスタイル */
.btn-back:hover {
    background-color: #9C9C9C;
    box-shadow: 0 4px 6px rgba(176, 176, 176, 0.3);
}
/* クリック時のスタイル */
.btn-back:active {
    background-color: #8C8C8C;
    box-shadow: 0 2px 4px rgba(176, 176, 176, 0.3);
    transform: scale(0.98);
}
/* 無効化されたボタン */
.btn-back:disabled {
    background-color: #D3D3D3;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ボタンの位置 */
.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.button-container.single-button {
    justify-content: flex-end;
}

/* 完了画面について */
.complete {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* camera-buttonsはbtn-primaryと併用する前提 */
.camera-buttons {
    margin: 3px auto;
    display: block;
    width: fit-content;
}

/* btn-primaryと同等にする */
.select-file-button::file-selector-button {
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 6px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
}

#picture-container {
    height: fit-content;
}
#picture-box {
    margin: 0px auto;
    width: inherit;
    max-width: 100%;
}
#video {
    margin: 0 auto;
}
#image {
    margin: 0px auto;
    width: inherit;
    max-width: 100%;
}

/* SP対応 */
@media screen and (max-width: 640px) {
    .main_container {
        width: 100vw;   /* 画面幅いっぱいにする */
        padding-left: 0;
        padding-right: 0;
    }
    form {
        padding-left: 20px;
        padding-right: 20px;
    }
    .simulation-results div label,
    .simulation-results div span {
        display: block;
    }
}
