@media  (max-width :1199.98px) {
    .card-columns{
        column-count: 2;
    }
    #block3{
        margin-bottom: 0em !important;
    }
    #block4{
        padding-top: 2rem !important;
    }
    .tel-number{
        font-size: 12pt;
    }
}
@media  (max-width :991.98px) {
    .header-content-holder{
        background: steelblue;
    }
    .mainNav{
        position: fixed;
        z-index: 1501;
        background: #353535a6;
        bottom: -60%;
    }
    .control-btn{
        padding-top: 2em !important;
        padding-bottom: 2em !important;
    }
    .control-btn a{
        width: 70%;
        margin: 5px auto;
    }
    .atit-logo h1 {
        font-size: 20pt;
    }
    .top-item{
        padding: 1rem .5rem;
    }
    #sidemenu{
        width: 400px;
    }
    #block4{
        padding-top: 0 !important;
    }
    .footer-links{
        font-size: small;
    }
    .teacher-img img {
        max-width: 110px !important ;
    }

    #banner .banner-bg{
        background-attachment: local;   
        height: 250px !important;
    }
    .topic-item .topic-img{
        max-width: 150px;
    }
    .topic-item .topic-txt{
        display: flex;
        align-items: center;
        padding-left: 1em;
    }
    .topic-img a div{
        width: 100px;
        height: 80px !important;
    }
    #topic-wrapper{
        margin-top: 1rem !important;
    }
    #topic-wrapper .col-md-9.col-lg-8{
        padding-left: 1.5em;
    }
    .atit-title > div {
        font-size: 24pt;
    }
    header .atit-logo {
        top: 25px;
    }
    .atit-logo img{
        width: 20em;
    }
    .mf6, #treeview-holder a{
        font-size: 11pt;
    }
    
    label.required-field::after{
        left: -5px !important;
        top: 5px !important;
        right: unset !important;
        content: '※' !important;
        color: red !important;
        background: none !important;
    }
    .footer-logo > h4 {
        font-size: 14pt;
    }
    #calendar h3.card-header{
        font-size: 16pt;
    }
    .content-outter{
        padding: 2em 2em;
        border-radius: 0;
        box-shadow: none;
    }
    .bg-gradient{
        background: none;
    }
    .container-wrap{
        padding: 0 1em;
    }
    .logo-holder {
        padding: 1em 0 1em 1em;
    }
    .sub-logo-wrapper span{
        font-size: 8pt;
    }
    .menu-holder a.nav-menu-item {
        padding: 0 .5rem;
        font-size: 11pt;
    }
    .menu-holder {
        justify-content: flex-end;
    }
}
@media  (max-width :767.98px) {
    .header-content-holder {
        background: white;
        border-bottom: 2px solid steelblue;
        padding: .25rem .75rem;
    }
    .hamburger-box{
        transform: translateY(3px);
    }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        background-color: black !important;
    }
    .logo-holder, .menu-holder {
        padding: 0;
        display: flex;
    align-items: center;
    }
    .logo-wrapper .sub-logo, .logo-wrapper .logo {
        color: steelblue;
    }
    img.rounded{
        border-radius: 0 !important;
    }
    .footer-logo{text-align: center;}
    .card-columns{
        column-count: 1;
    }
    .atit-logo h1 {
        font-size: 16pt;
        color: white;
    }
    #about-us-outter, #services-outter{
        margin: 0 !important;
    }
    
    #block1, #block6, #block4>.holder, #block5, #block3{
        padding-top: 0 !important;
    }
    #topic-wrapper .col-md-9.col-lg-8{
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
    .atit-title > div {
        font-size: 18pt;
        width: 80%;
    }
    #calendar{
        padding-top: 1em;
        padding-bottom: 1em;
    }
    .atit-title-wrapper{
        padding: 1em;
    }
    #block4 div.border.rounded, #block5 div.border.rounded, #service-block1  div.border.rounded, #service-block2  div.border.rounded{
        padding: 1em !important;
    }
    #block4 .container.holder{
        padding-bottom: 1rem !important;
    }
    #block6 .table-wrapper{
        margin-bottom: 0 !important;
    }
    #block6, #block4 {
        padding-bottom: 1rem !important;
    }
    .mf4{
        padding: 2em 0;
    }
    #treeview-holder{
        padding: 0 1em;
    }
    #block2 div.container.py-5, #service-block1.container.holder.py-5{
        /* padding-top: 0 !important; */
    }
    .guide-wrapper{
        padding: 10px 2px !important;
    }
    #map-guide a{
        font-size: 16pt;
    }
    .media i.fa-subway, .media i.fa-car{
        font-size: 30pt;
    }
    .media-body h3{
        font-size: 20pt;
    }
}
/* iphone 6s, 7s.. */
@media  (max-width :479.98px) {
   .animtxt .display-1{font-size: 40pt;}
   .animtxt .display-3{font-size: 30pt;}
   .heading1{font-size: 2rem;}
    #sidemenu {
        width: 100%;
        right: -120%;
    }
    .pattern{
        height: 20px !important;
    }
    #block3 .news div:nth-child(1) {
        padding-right: 10px;
        font-size: small;
    }
    #block3 .news div:nth-child(2) {
        width: auto;
        padding-right: 10px;
        font-size: small;
    }
    #block3 .news div:nth-child(3) {
        font-size: small;    
    }
    footer{
        font-size: small;
    }
    .expand-menu {
        right: 0 !important;
    }
    .services-table td{
        font-size: smaller;
    }
    .control-btn a{
        font-size: smaller;
    }
    #new-form div.container.p-5.mf-bg-white.rounded{
        padding:1em !important;
        box-shadow:none !important;
    }
    .thanks-modal{
        padding-top: 5em !important;
    }
    #banner .banner-bg{
        background-size: contain;
    }
    .atit-logo img {
        width: 16em;
    }
    #banner .banner-bg {
        /* height: 200px !important ; */
    }
    #showMenu div.top-item{
        width: 3.5em;
    }
    #calendar-wrapper .d-flex.justify-content-end{
        -webkit-box-pack: center!important;
        -ms-flex-pack: center!important;
        justify-content: center!important;
    }
    .atit-title-hover:hover .atit-title > div {
        width: 90%;
    }
    #map-guide a{
        font-size: 14pt;
    }
    .media i.fa-subway, .media i.fa-car{
        font-size: 28pt;
    }
    .media-body h3{
        font-size: 18pt;
    }
    .mf-dotted-border{
        border-width: 4px;
    }
    
    #map-9cd199b9cc5410cd3b1ad21cab2e54d3 iframe{
        height: 400px !important;
    }
    #KigyouForm .col-form-label label{
        margin-left: 10px;
    }
    label.required-field::after{
        left: 0px !important;
        font-size: 11pt !important;
    }
    .gradient-holder h1.text-light{
        font-size: 24pt;
    }
    .container-wrap{padding: 0 0;}
    .logo{
        font-size: 28pt;
        line-height: 10px;
    }
}
/* iphone */
@media  (max-width :379.98px) {
    
    #banner .banner-bg {
        height: 200px !important ;
    }
    .atit-logo img {
        width: 15em;
    }
    #sidemenu{
        right: -150%;
    }
    .atit-logo h1 {
        font-size: 13pt;
        color: white;
    }
    .top-item i.fa-2x{
        font-size: 1.5em;
    }
    #block3{
        margin-top: .5rem!important;
    }
    .pattern{
        height: 15px !important;
    }
    .atit-title-hover:hover .atit-title > div{
        width: 80%;
    }
    #block3 .news {
        padding: 5px 0;
    }
    #block3 .news div:nth-child(1) {
        padding-right: 10px;
    }
    #block3 .news div:nth-child(2) {
        display: none;
    }
    .sidemenu-items-wrapper .menu-item a{
        /* font-size: small; */
    }
    #sidemenu{
        width: 100% !important;
    }
    .expand-menu {
        right: 0 !important;
    }
   
    
}