@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&family=Newsreader:opsz@6..72&display=swap');

html{
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    transition: .3s;
}

a:hover {
    text-decoration: none ;
    opacity: 0.6;
}

img{
    width: 100%;
}

.sp {
    display: none !;
}
.pc {
    display: block ;
}
@media only screen and (max-width: 767px) {
    .sp {
        display: block ;
        }
    .pc {
        display: none ;
    }
}

#contents * {
    box-sizing: border-box;
}

#contents{
    font-family: "Newsreader", "Hina Mincho", serif;
    font-weight: bold;
    line-height: 1.6;
}
/*---------main---------*/
.main{
    padding:50px 0 0;
    background: #FFFFE2;
    color: #480000;
}

h1{
    max-width: 850px;
    width:95%;
    margin: 0 auto;
}
h1 img{
    margin-left:-2%;
}

.copy{
    max-width: 850px;
    width: 95%;
    margin: 0 auto;
}

.inner{
    max-width: 850px;
    width: 90%;
    margin:0 auto;
}

p.date{
    font-size:clamp(1.375rem, 1.148rem + 1.14vw, 2rem);
    color:#000087;
    margin:30px auto;
    padding:10px 0 0;
    text-align: center;
    border-top:1px solid #e8b620;
    border-bottom: 1px solid #e8b620;
}
@media only screen and (max-width: 767px) {
    .main {
        padding: 20px 0 0;
    }
}

/*---------blue_bg---------*/
.blue_bg {
    background:linear-gradient(to right, #003a84, #002173);
    padding:0 0 150px;
}

/*---------howto---------*/
.howto {
    color:#fff;
    font-size: clamp(1rem, 0.682rem + 1.59vw, 1.875rem);
    margin:20px 0 0;
}
.howto h2{
    text-align: center;
    font-size: 36px;
}
.howto dl{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap:20px;
    margin:20px auto 50px;
}
.howto dl dt{
    max-width:80px;
    width:10%;
}
.howto dl dt img{
    vertical-align: middle;
}
.howto dl dd {
    width: 85%;
}
.howto dl dd span{
    font-size: clamp(1.375rem, 0.875rem + 2.5vw, 2.75rem);
    border-bottom:2px solid #e8b620;
}
@media only screen and (max-width: 767px) {
    .blue_bg {
        padding: 0 0 50px ;
    }
    .howto h2 {
        font-size: 30px;
    }
    .howto dl {
        flex-direction: column;
        row-gap: 0;
        margin: 20px auto 0;
    }
    .howto dl dt {
        max-width: 120px;
        width: 15%;
    }
    .howto dl dd {
        width: 100%;
        margin-bottom: 30px;
        letter-spacing: -0.4px;
    }
    .howto dl dd span {
        font-size: 5.7vw;
        letter-spacing: -0.5px;
    }
}

/*---------btn---------*/
.btn {
    display: block;
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 90px;
    margin: 0 auto 80px;
    cursor: pointer;
}
.btn_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    clip-path: polygon(15px 0%, calc(100% - 14px) 0%, 100% 15px, 100% calc(100% - 15px),
            calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
}
.btn_top {
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    width: calc(100% - 5px);
    height: calc(100% - 5px);
    background: linear-gradient(to right, #e8a320, #ffce20, #e8a320);
    clip-path: polygon(13px 0%, calc(100% - 13px) 0%, 100% 13px, 100% calc(100% - 13px),
            calc(100% - 13px) 100%, 13px 100%, 0% calc(100% - 13px), 0% 13px);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #480000;
    font-weight: bold;
    font-size:clamp(1.625rem, 1.443rem + 0.91vw, 2.125rem);
    padding:10px 0 0;
}

/*---------rules---------*/
#rules{
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
}
#rules h2{
    font-size: 24px;
    text-align: center;
    padding:10px 0 0;
}
#rules .box_bg{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #e8a320, #ffce20, #e8a320);
    clip-path: polygon(15px 0%, calc(100% - 15px) 0%, 100% 15px, 100% calc(100% - 15px),
            calc(100% - 15px) 100%, 15px 100%, 0% calc(100% - 15px), 0% 15px);
    position: relative;
}
#rules .box_bg .bg_left{
    position: absolute;
    top: 10px;
    left:10px;
    width:25px;
}
#rules .box_bg .bg_right {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
}
#rules .box_top{
    overflow-y: scroll;
    padding:20px;
    position: absolute;
    text-align: left;
    top: 50px;
    left: 0;
    width: calc(100% - 5px);
    height: calc(100% - 55px);
    margin: 2.5px;
    background: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%,
            15px 100%, 0 calc(100% - 15px));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

#contents #rules .box {
    margin-top: -30px;
    text-align: left;
    font-family:  sans-serif !important;
    font-weight: normal;
    overflow-wrap: break-word;
        word-break: break-word;
}


#rules .box li {
    margin: 30px 0 0 0;
    line-height: 1.6;
}

#rules .box a,
#rules .box h3,
#rules .box p {
    font-weight: normal;
    font-size: 16px;
    line-height: 150%;
    margin: 5px 0 0 0;
}

#rules .box a {
    color: #f32b00;
}

#rules .box h3 {
    font-weight: bold;
}

#rules ul li {
    font-size: 16px !important;
}

#rules ul.notes {
    margin: 10px 0 0 0;
}

#rules ul.notes li {
    padding-left: 1em;
    text-indent: -1em;
    margin: 5px 0 0 0;
}

#rules ul.dotlist li {
    padding-left: 1em;
    text-indent: -1em;
    margin: 10px 0 0 0;
}

#rules ul.steplist li {
    padding-left: 3.5em;
    text-indent: -3.5em;
    margin: 10px 0 0 0;
}

#rules ul.numberlist li {
    padding-left: 1.2em;
    text-indent: -1.2em;
    margin: 10px 0 0 0;
}

#rules ul.double_list li:nth-child(n+10) {
    padding-left: 1.9em;
    text-indent: -1.9em;
    margin-left: -0.6em;
}

/*---------page_top---------*/
#page_top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 500;
}
#page_top a {
    background: #fff;
    color: #001b74;
    border: #001b74 1px solid;
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 50px;
}
#page_top a:hover {
    background-color: #001b74;
    color: #fff;
    transition: 0.4s;
}
@media only screen and (max-width: 767px) {
    #page_top {
        bottom: 20px;
        right: 10px;
    }
    #page_top a {
        padding: 10px;
        font-size: 13px;
    }
}