* {
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;

}

.main {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
}

header {
    position: fixed;
    width: 100%;
    height: 50px;
    background-color: #fff;
}

.header-content {
    width: 100%;
    max-width: 1000px;
    height: 50px;
    right: 0;
    left: 0;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-content a{
    text-decoration: none;
    color: inherit;
}

.header-title {
    color: #3A3A3A;
    font-size: 16px;
    font-weight: bold;
    margin-left: 15px;
}

.header-logo {
    height: 27px;
    margin-right: 12px;
}

.problem-name-area {
    position: fixed;
    top: 50px;
    width: 100%;
    height: 64px;
    background-color: #E8F4FE;
    display: flex;
    justify-content: center;
    align-items: center;
}

#problem-name {
    font-size: 16px;
    font-weight: 500;
    color: #0068B7;
    text-align: center;
    padding: 0 15px;
}

label>input {
    display: none;
    /* アップロードボタンのスタイルを無効にする */
}

label {
    margin-top: 20px;
    display: block;
    width: 325px;
    height: 100px;
    background-image: url("images/bt_select_off.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: 0.5s;
}

label:hover {
    background-image: url("images/bt_select_on.png");
}

/* ↓仮デザインボタン */
.button {
    width: 168px;
    height: 44px;
    display: inline-block;
    border-radius: 10px;
    font-size: 16pt;
    text-align: center;
    cursor: pointer;
    background: #0068B7;
    color: #ffffff;
    line-height: 44px;
    transition: .3s;
    border: 2px solid #0068B7;
    margin-top: 10px;
}

.error {
    width: 86%;
    max-width: 1000px;
    margin: 170px auto 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.select-picture {
    margin-top: 114px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-weight: bolder;
}

.note {
    text-align: center;
    font-size: 14px;
    margin-top: 87px;
}

.take-picture {
    margin-top: 114px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-weight: bolder;
    align-items: center;
}

#camera-wrapper {
    position: relative;
    overflow: hidden;
    object-fit: none;
}

#camera {
    position: absolute;
}

.send-picture {
    margin-top: 114px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 100px;
}

#src-image {
    display: block;
    width: auto;
    margin: 0 auto;
}

.send-back-btn {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 13px 10.5px 0;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.send-back-area {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 100px;
    background-color: #F4F3F1;
}

.btn {
    max-width: 168px;
    max-height: 44px;
    width: 45vw;
    height: 12vw;
    border: none;
    margin: 0 4.5px;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    transition: 0.5s;
    cursor: pointer;
}

.camera-btn {
    margin-top: 20px;
    display: block;
    width: 325px;
    height: 100px;
    border: none;
    background: transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: 0.5s;
    cursor: pointer;
    background-image: url(./images/bt_camera_off.png);
}

.camera-btn:hover {
    background-image: url(./images/bt_camera_on.png);
}

.take-btn {
    background-image: url(./images/bt_camera02_off.png);
}

.take-btn:hover {
    background-image: url(./images/bt_camera02_on.png);
}

.retake-btn {
    background-image: url(./images/bt_re-camera02_off.png);
}

.retake-btn:hover {
    background-image: url(./images/bt_re-camera02_on.png);
}

.restart-btn {
    background-image: url(./images/bt_top_off.png);
}

.restart-btn:hover {
    background-image: url(./images/bt_top_on-1.png);
}

.back-btn {
    background-image: url(./images/bt_back_off.png);
}

.back-btn:hover {
    background-image: url(./images/bt_back_on-1.png);
}

.scoring-btn {
    background-image: url(./images/bt_saiten_off.png);
}

.scoring-btn:hover {
    background-image: url(./images/bt_saiten_on.png);
}

.download-btn {
    background-image: url(./images/bt_dl_off.png);
}

.download-btn:hover {
    background-image: url(./images/bt_dl_on.png);
}

.error-title {
    color: #FF0707;
    font-size: 17px;
    margin-bottom: 12px;
    text-align: center;
    font-weight: bold;
}

.error-detail {
    max-width: 400px;
    margin: 0 auto;
    color: #3A3A3A;
    font-size: 14px;
    margin-bottom: 36px;
}

.error-detail li {
    list-style: none;
    text-indent: -1em;
    padding-left: 1em;
}

.error-back-btn {
    text-align: center;
}

#loader-bg {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: rgba(0, 0, 0, 0.50);
    z-index: 1;
}

#loader {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
    text-align: center;
    color: #fff;
    z-index: 2;
}
