@media (min-width:501px) and ( max-width:1024px) {
    .main::after{
        background-image: url(../images/main_bg02.png);
        background-size: 100% auto;
    }
}

@media (max-width:500px) {
    .main::after{
        background-image: url(../images/main_bg02_sp.png);
        background-size: 100% auto;
    }
}

@media (max-width: 1024px) {
    
    /* 共通 */
    
    *{
        font-size: 14px;
    }
    
    .pc_none{
        display: block;
    }
    
    .sp_none{
        display: none;
    }

    .container{
        width: 90%;
    }
    
    .button a,
    .top3 .button a,
    .top7 .button a,
    .contact_block .button a{
        font-size: 15px;
        width: calc(50% - 4px);
        padding: 14px 0;
        border-radius: 10px;
    }
    
    
    /* header */
    
    header{
        padding: 18px 22px;
        position: absolute;
    }
    
    
    header h1 {
        width: 190px;
        z-index: 100;
        top: 18px;
        left: 22px;
    }
    
    header.active h1{
        position: fixed;
    }
    
    .sp_menu{
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: calc(100vh - 124px);
        background: #66B2F5;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: .5s ease-in;
    }
    
    header.active .sp_menu{
        left: 0;
    }
    
    .sp_menu_button{
        display: block;
        width: 42px;
        height: 62px;
        position: fixed;
        top: 10px;
        right: 10px;
        z-index: 100;
        cursor: pointer;
        transition: .3s ease-in;
    }
    
    .sp_menu_button_bg{
        position: relative;
        width: 100%;
        height: 100%;
    }
    
    .sp_menu_button_bg img{
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        transition: .5s ease-in;
    }
    
    .sp_menu_button .off{
        opacity: 1;
    }
    
    .sp_menu_button .on{
        opacity: 0;
    }
    
    header.active .sp_menu_button .off{
        opacity: 0;
    }
    
    header.active .sp_menu_button .on{
        opacity: 1;
    }
    
    .sp_menu_button:hover{
        top: 14px;
    }
    
    .sp_menu_button .menu_icon{
        position: absolute;
        z-index: 2;
        width: 16px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
    }
    
    .sp_menu_button span{
        width: 100%;
        height: 2px;
        background: #fff;
        border-radius: 1px;
        display: block;
        transition: .5s ease-in;
        position: absolute;
    }
    
    header.active .sp_menu_button span{
        background: #66B2F5;
    }
    
    .sp_menu_button span:nth-of-type(2){
        top: 6px;
    }
    
    .sp_menu_button span:nth-of-type(3){
        top: 12px;
    }
    
    header.active .sp_menu_button span:nth-of-type(2){
        transform: rotate(45deg);
        top: 7px;
    }
    
    header.active .sp_menu_button span:nth-of-type(3){
        transform: rotate(-45deg);
        top: 7px;
    }
    
    header.active .sp_menu_button span:nth-of-type(1){
        opacity: 0;
    }
    
    .sp_menu_button_bg{
        position: absolute;
        top: 0;
        left: 0;
        filter: drop-shadow(0 0 10px rgba(0 0 0/.25));
    }
    
    .sp_menu ul{
        flex-direction: column;
        align-items: stretch;
    }
    
    .sp_menu li:not(:last-of-type){
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .sp_menu li a{
        display: block;
        text-align: center;
        color: #fff;
        background: rgba(255 255 255/.1);
        padding: 20px 40px;
        border-radius: 10px;
    }
    
    .sp_menu li a img{
        margin-right: 6px;
    }
    
    
    /* main */
    
    .main{
        overflow: hidden;
    }
    
    .main .container{
        max-width: 332px;
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }
    
    .main h2{
        font-size: 29px;
    }
    
    .main h2 span{
        font-size: 34px;
        padding-top: 16px;
    }
    
    .main h3,
    .main h3 em{
        font-size: 12px;
    }
    
    .main h3{
        padding: 10px 0;
        width: 274px;
        margin: 130px auto 0;
    }
    
    .main .title{
        margin: 16px 0 40px;
    }
    
    .main .title::before,
    .main .title::after{
        width: 25px;
        height: 85px;
    }
    
    .main .title::before {
        margin-right: 10px;
    }
    
    .main .title::after {
        margin-left: 2px;
    }
    
    .main ul{
        flex-wrap: wrap;
        max-width: 180px;
        padding-bottom: 14px;
    }
    
    .main li{
        width: calc(50% - 5px);
        box-sizing: border-box;
        padding: 15px 8px;
        min-width: 0;
    }
    
    .main li:not(:last-of-type){
        margin-right: 0;
    }
    
    .main li:nth-of-type(odd){
        margin-right: 10px;
    }
    
    .main li:nth-of-type(n+3){
        margin-top: 10px;
    }
    
    .main li .img{
        height: 42px;
    }
    
    .main li p{
        font-size: 12px;
    }
    
    .main li em{
        font-size: 20px;
        padding: 0 2px 4px;
        margin-bottom: 4px;
        background: linear-gradient(0deg, #FFFB00 13px, transparent 13px);
    }
    
    .main li em span{
        font-size: 24px;
        line-height: 0;
    }
    
    .main li:last-of-type em{
        font-size: 12px;
        letter-spacing: 0.05em;
    }
    
    .main li:last-of-type em span{
        font-size: 21px;
        line-height: 0;
    }
    
    .main .img01{
        margin-left: 0;
        z-index: 1;
        width: 0;
        overflow: visible;
    }
    
    .main .img01 img{
        position: absolute;
        bottom: 0;
        right: -30px;
        min-width: 0;
        width: 264px;
    }
    
    .main .img02{
        top: 78px;
        bottom: auto;
        left: -170px;
        width: 220px;
    }
    
    
    /* top3 */
    
    .top3{
        padding: 50px 0 110px;
    }
    
    .top3 .title{
        position: relative;
        width: auto;
        margin-bottom: 30px;
    }
    
    .top3 .title .img{
        position: absolute;
        left: 50%;
        top: -26px;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        width: 68px;
        margin-top: 0;
        padding-right: 0;
    }
    
    .top3 h3{
        position: relative;
        z-index: 2;
    }
    
    .top3 h3 span.title01{
        font-size: 16px;
        padding-right: 14px;
    }
    
    .top3 h3 span.title01 span{
        font-size: 14px;
        padding-bottom: 5px;
    }
    
    .top3 h3 span.title02{
        font-size: 34px;
    }
    
    .top3 .contents{
        justify-content: center;
    }
    
    .top3 .contents::before,
    .top3 .contents::after{
        display: none;
    }
    
    .top3 .panel{
        position: relative;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .top3 .panel_left{
        margin-right: 0;
        padding-top: 12px;
        background-position: top 14px right;
    }
    
    .top3 .panel_right{
        width: calc(100% - 28px);
        position: absolute;
        top: 106px;
    }
    
    .top3 .button_box{
        margin-top: 180px;
    }
    
    .top3 p{
        text-align: center;
        padding: 14px 0;
    }
    
    .top3 dl{
        width: calc((100% - 10px) / 3);
    }
    
    .top3 dl:not(:last-of-type){
        margin-right: 5px;
    }
    
    .top3 dt{
        padding: 15px 0;
    }
    
    .top3 dd{
        padding: 14px 0;
    }
    
    .top3 dd span{
        font-size: 12px;
        padding-top: 10px;
    }
    
    
    /* top7 */
    
    .top7{
        margin-bottom: 70px;
    }
    
    .top7::after{
        width: 100%;
        left: 0;
        top: 70px;
    }
    
    .top7 .container{
        flex-direction: column;
        width: 90%;
        padding-right: 0;
        padding-top: 0;
        margin-top: -70px;
    }
    
    .top7 .title{
        width: 230px;
        margin: 0 auto;
    }
    
    .top7 h3{
        height: 190px;
        position: static;
        padding: 10px 0 0 0;
        margin-right: 0;
        border-radius: 20px 20px 0 0;
        justify-content: center;
    }
    
    .top7 h3::after{
        width: 96px;
        height: 68px;
        top: 200px;
    }
    
    .top7 h3 span{
        font-size: 15px;
    }
    
    .top7 h3 span img {
        width: 12px;
        padding-left: 0;
        margin-left: 3px;
        transform: rotate(90deg);
    }
    
    .top7 h3 span.title01{
        font-size: 18px;
        padding-top: 10px;
    }
    
    .top7 h3 span.title02{
        font-size: 36px;
        padding: 18px 0;
    }
    
    .top7 h3 span.title02 span{
        font-size: 26px;
    }
    
    .top7 .contents{
        width: 100%;
    }
    
    .top7 .panel{
        padding: 20px 20px 25px;
        border-radius: 20px;
    }
    
    .top7 h4{
        font-size: 20px;
        padding-bottom: 14px;
        margin-bottom: 14px;
    }
    
    .top7 .rank{
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .top7 .rank img{
        width: 25px;
    }
    
    .top7 .copy{
        flex-direction: column;
        align-items: flex-start;
    }
    
    .top7 h5{
        font-size: 14px;
    }
    
    .top7 p.sub{
        font-size: 12px;
        padding: 4px 14px;
        margin-bottom: 12px;
    }
    
    .top7 .copy + .flex{
        flex-direction: column;
    }
    
    .top7 .information{
        max-width: none;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .top7 h6{
        font-size: 15px;
        padding: 10px 15px;
        margin-bottom: 14px;
    }
    
    .top7 ul {
        margin-bottom: 20px;
    }
    
    .top7 li,
    .top7 .information p,
    .top7 .review_title p,
    .top7 p.comment{
        font-size: 13px;
    }
    
    .top7 .button_box{
        padding-top: 20px;
        margin-top: 20px;
    }
    
    .top7 .button a:first-of-type{
        margin-right: 8px;
    }
    
    .top7 .text_link{
        font-size: 13px;
        margin-top: 20px;
    }
    
    .top7 .badge{
        font-size: 12px;
        width: 72px;
        height: 72px;
        top: -10px;
        right: -6px;
    }
    
    .top7 .ribbon {
        width: 79px;
        height: 70px;
        border-radius: 0 20px 0 0;
    }
    
    .top7 .ribbon::before {
        border-width: 0px 79px 70px 0px;
    }

    
    /* check */
    
    .check{
        padding: 40px 0 24px;
    }
    
    .check h3{
        font-size: 20px;
    }
    
    .check h3 span{
        font-size: 13px;
    }
    
    .check .title{
        padding-bottom: 30px;
    }
    
    .check .title .img{
        width: 76px;
        margin-right: 12px;
    }
    
    .check .flex{
        flex-direction: column;
        padding: 24px 20px;
    }
    
    .check .flex > div{
        width: 100%;
    }
    
    .check ul{
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    
    
    /* contact_block */
    
    .contact_block{
        padding: 30px 0 24px;
    }
    
    .contact_block .container{
        flex-direction: column;
        background: none;
        align-items:center;
        max-height: none;
        padding: 0;
    }
    
    .contact_block h3 span{
        font-size: 23px;
    }
    
    .contact_block h3 span.number{
        font-size: 110px;
    }
    
    .contact_block .marker{
        width: 230px;
        height: 58px;
    }
    
    .contact_block .title{
        margin-right: 0;
    }
    
    .contact_block .title::before,
    .contact_block .title::after{
        width: 50px;
        height: 168px;
    }
    
    .contact_block .title::before {
        margin-right: 20px;
    }
    
    .contact_block .title::after {
        margin-left: 20px;
    }
    
    .contact_block .button{
        max-width:none;
        flex-direction: row;
        margin: 24px 0 0;
    }
    
    .contact_block .button a{
        border-radius: 10px;
        width: calc(50% - 4px);
    }
    
    .contact_block .button a:first-of-type{
        margin-right: 8px;
        margin-bottom: 0;
    }
    
    
    /* footer */
    
    .footer_menu{
        padding: 24px 5% 18px;
        flex-direction: column;
        margin-bottom: 124px;
    }
    
    .footer_menu ul{
        flex-direction: column;
    }
    
    .footer_menu li:not(:last-of-type) {
        padding-right: 0;
        padding-bottom: 14px;
    }
    
    .footer_menu li a{
        font-size: 13px;
    }
    
    address{
        border-top: 1px solid #66B2F5;
        padding-top: 18px;
        margin-top: 24px;
        text-align: center;
        font-weight: 400;
    }
    
    footer .button_box .text01::before{
        width: 77px;
        height: 67px;
        bottom: -13px;
        left: -72px;
    }
    
    footer .button_box .contact .text02,
    footer .button_box .contact .text02 span{
        font-size: 18px;
    }
    
    footer .button_box .contact .text01{
        font-size: 11px;
        margin: 0 8px 5px 50px;
    }
    
    footer .button_box .contact .text01 span{
        font-size: 18px;
    }
    
    footer .button_box:not(.pc_none){
        bottom: 57px;
    }
    
    footer .button_box a.sp_none{
        display: none;
    }
    
    footer .button_box.pc_none{
        display: flex;
    }
    
    footer .button_box .contact{
        width: calc(100% - 16px);
        height: 51px;
        border: 8px solid #CDE8FF;
    }
    
    [data-ruby]::before{
        left: 6px;
        top: -2.2em;
    }
    
    footer .button_box a{
        border-radius: 0;
        height: auto;
        display: flex;
        font-size: 16px;
    }
    
    footer .button a:first-of-type{
        margin-right: 0;
    }
    
    footer .button_box .tel_sp{
        background: #FF655A;
    }
    
    footer .button a::before {
        width: 30px;
        height: 29px;
        margin-right: 10px;
    }
    
    .button a.tel_sp::before {
        background-image: url(../images/icon_tel.svg);
    }
    
}