html, body {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    font-size: 16px;
}

body * {
    box-sizing: border-box;
}

body {
    background-color: #fd5465;
    background-image: url(../img/bg.png);
    background-repeat: repeat;
    background-position: center 0;
}

img {
    width: 100%;
    height: auto;
}

h1 {
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 22px;
}


h2 {
    font-weight: bold;
    color: #fff;
    text-align: center;
    font-size: 1.9rem;
    line-height: 1.8;
    margin: 0 auto 15px;
}

h2::before, h2::after {
    content: "";
    display: inline-block;
    height: 1.6rem;
    width: 2.4rem;
    background-image: url(../img/icon_niku.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    padding: 0 18px;
    position: relative;
    top: 3px;
}

h3 {
    padding: 0.35rem 2.2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    background-color: #ff5b6d;
    margin-bottom: 0.5rem;
}

ul,ol,li {
    list-style: none;
    padding: 0;
}

#container {
    padding: 0 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    position: relative;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

main img {
    max-width: 1200px;
}

.close{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
}
@media all and (min-width: 768px){
    .close{
        font-size: 36px;
    }
}


.step_list {
    background-color: #fff6ea;
    border-radius: 15px;
    overflow: hidden;
}

.step_num {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #ffe500;
    padding: 0.5rem;
}

.step_num img {
    width: 34%;
    max-width: 105px;
}

.step_list .sty_f {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.icon {
    width: 100px;
    height: 100px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70% 70%;
}

.S_inr_lv3:nth-child(1) .step_list .icon {
    background-image: url(../img/stepimg01.png);
    padding: 1rem;
}

.S_inr_lv3:nth-child(2) .step_list .icon {
    background-image: url(../img/stepimg02.png);
}

.S_inr_lv3:nth-child(3) .step_list .icon {
    background-image: url(../img/stepimg03.png);
}

.C_txt {
    width: 70%;
    text-align: left;
    padding: 1rem;
}

.C_txt p {
    margin: 0;
}

.C_txt br {
    display: none;
}

.btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 860px;
    margin: 2rem auto 0;
}

.btn a {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 1.2rem;
    background-color: #1175b8;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
}

#application {
    margin-bottom: 2.8rem;
}

#application .S_inr_lv3::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 30px 0 30px;
    border-color: #FFFFFF transparent transparent transparent;
    margin: 1.5rem auto;
}

#application .S_inr_lv3:last-child::after {
    display: none;
}

#participate .S_inr_lv2 {
    border-radius: 15px;
    background-color: #fff;
    padding: 1.9rem 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}

#participate .S_inr_lv3 {
    margin-bottom: 3rem;
}

#participate p, #participate ul {
    margin-bottom: 0.4rem;
    margin-top: 0;
}

#participate .mb0 {
    margin-bottom: 0;
}

.notes.mb0 {
    color: #bf0000;
    font-weight: bold;
}

footer {
}

footer #copy {
}

footer #copy p {
    text-align: center;
}

footer #copy p small {
    font-size: 0.65rem;
}

@media all and (min-width: 1024px) {
    h3 {
        display: inline-block;
    }

    #application .S_inr_lv2 {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
    }

    #application .S_inr_lv3 {
        position: relative;
        width: 30%;
    }

    .step_list .sty_f {
        display: block;
    }

    #application .S_inr_lv3::after {
        position: absolute;
        top: 0;
        right: -46px;
        bottom: 0;
        margin: auto 0;
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 30px 0 30px 30px;
        border-color: transparent transparent transparent #FFFFFF;
    }

    #participate .S_inr_lv2{
        padding: 1.9rem 3rem;
    }
    .btn a{
        font-size: 1.2rem;
    }

    .icon {
        margin-top: 1.4rem;
        width: 100%;
        background-size: 100px 100px;
    }

    .C_txt {
        width: 100%;
        padding: 0.5rem 0.5rem 1.6rem;
    }

    .C_txt p {
        text-align: center;
        font-size: 1rem;
    }

    .C_txt br {
        display: inherit;
    }
}
