@font-face {
    font-family: "Gen Jyuu Gothic";
    src: local("GenJyuuGothic"),
    url(fonts/GenJyuuGothic-Medium.ttf) format("truetype");
}

@font-face {
    font-family: "Gen Jyuu Gothic";
    src: local("GenJyuuGothic"),
    url(fonts/GenJyuuGothic-Bold.ttf) format("truetype");
    font-weight: bold;
}

body {
    margin: 0;
    font-family: "Gen Jyuu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* androidで画面を引っ張った時にreloadするのを防ぐために、overscroll-behavior-y: noneを指定する*/
    overscroll-behavior-y: none;
    height: 100%;
    width: 100vw;
}

button {
    font-family: "Gen Jyuu Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}

iframe {
    height: 100%;
    width: 100%;
    border: none;
    display: block;
    position: absolute;
    top: 0;
}

.overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
}

.modal {
    background-color: white;
    max-width: 354px;
    margin-left: 24px;
    margin-right: 24px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 48px 24px 24px 24px;
    color: #1D3461;
    border-radius: 16px;
    position: relative;
    margin-top: 66px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fadeInModal {
    animation: fadeIn 1.5s linear;
}

.modal span {
    display: flex;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    border-radius: 12px;
    background: #F6F8FC;
    font-size: 32px;
    font-weight: 700;
    line-height: 32px;
}

.modal > p {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
    text-align: center;
}

.modal > p:first-of-type {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin-top: 24px;
    margin-bottom: 12px;
}

.modal > button {
    margin-top: 24px;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #418EE8;
    width: 100%;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    color: white;
}

.modal > img {
    transform: scale(0.3333);
    position: absolute;
    transform-origin: 50% 0%;
}

.retryModal {
    flex-direction: column;
    gap: 16px;
    max-width: 56.6vh;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.retryModal .explain {
    width: 100%;
    object-fit: contain;
}

.retryModal .play {
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.30);
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    border-radius: 16px;
    background: #34CC30;
    box-shadow: 0px 2px 0px 0px rgba(255, 255, 255, 0.20) inset, 0px -7px 0px 0px rgba(0, 0, 0, 0.30) inset;
    border: none;
    padding: 10px 24px 16px 24px;
    align-self: center;
}

.retryModal .retry {
    color: white;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.30);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    border-radius: 16px;
    background: #418EE8;
    box-shadow: 0px 2px 0px 0px rgba(255, 255, 255, 0.20) inset, 0px -7px 0px 0px rgba(0, 0, 0, 0.30) inset;
    border: none;
    padding: 10px 16px 16px 16px;
    align-self: center;
}

.retryModal .disableRetryBtn {
    width: 250px;
    height: 77px;
}
