html {
    font-family: "Meiryo", "メイリオ", "ヒラギノ", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "ＭＳ Ｐゴシック";
    font-size: 10px;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-style: inherit;
    font-weight: inherit;
    vertical-align: baseline;
    background: transparent;
}
div {
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
a:hover,.about_btn:hover,.highestranking_bn a:hover {
    opacity: 0.8;
}


img {
	width: 100%;
}
ul, ol, nav, li {
    list-style: none;
}

#contentToShow {
    display: none;
}
#contentAfterDeadline {
    display: none;
}
#content01, #content02 {
    display: none;
}
.header img, .main img, .btn img {
    width: auto;
    margin: 0 auto;
    display: block;
    font-size: 0;
}

footer {
    background-color: #ebe9e5;
    padding: 15px 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: solid 1px #555;
}
footer a {
    text-decoration: none;
    font-weight: bold;
    width: 120px;
}
.btn {
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: rgba(100, 100, 100, 0.6);
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 15px 10px;
}
.btn a {
    display: block;
}

.modal {
    position: fixed;
    width: 200px;
    bottom: 40px;
    right: 40px;
    animation: floating-y 1.8s ease-in-out infinite alternate-reverse;
    z-index: 1000;
}
@keyframes floating-y {
    0% {
        transform: translateY(-5%);
    }
    100% {
        transform: translateY(5%);
    }
}
.modal-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    opacity: 1;
    pointer-events: auto;
}
.modalbox {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
}
.modal-close-button {
    position: absolute;
    top: -43px;
    right: 5%;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}
button.modal-close-button:before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #fff;
    transform: rotate(45deg) translate(1px, 0.5px);
    transform-origin: 50% 50%;
}
button.modal-close-button:after {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    background-color: #fff;
    transform: rotate(-45deg) translate(1px, -0.5px);
    transform-origin: 50% 50%;
}
.modalinbox {
    position: relative;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    max-height: 90vh;
    overflow: hidden;
    margin: 0 auto;
}
.modal-overlay.is-closed {
    opacity: 0;
    pointer-events: none;
}



@media screen and (max-width: 480px) {
    .header img, .main img, .btn img {
        width: 100%;
    }
    .btn img {
        width: 80%;
    }
    .modal {
        width: 120px;
        bottom: 15%;
        right: 10px;
    }
    .modalbox {
        max-width: 350px;
    }
}