@media screen and (max-height: 480px) {
    .toggle-body ul li {
        margin-top: 3px !important;
    }
}

@media screen and (max-width: 767px) {
    .news-overlay-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        background-color: #f5f5f5;
    }
    .news-overlay-container .news-overlay-image {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        max-width: none;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .home-service-craftsImg {
        height: 20px;
        width: auto;
        margin-top: -4px;
    }
    .home-service-image {
        height: 150px;
        width: auto;
        margin-bottom: 20px;
        margin-top: 20px;
    }
    .mobile-dina-link {
        color: #419EE7 !important;
        margin-top: -10px;
        font-size: 11px;
        text-decoration: none !important;
        font-style: normal !important;
    }
    .white-mid-minus {
        width: 15px;
        height: 2px;
        border-bottom: 3px solid white;
    }
    .home-service-heading5 {
        padding-top: 10px;
        font-size: 11px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
        text-align: center;
        line-height: 19px;
    }
    #application-caption {
        padding: 28px 0 0 40px;
    }
    .application-content-container {
        padding-top: 2%;
    }
    .social-home {
        margin-bottom: 40px;
    }
    .access-mobile-sideheading {
        position: absolute;
        top: 9px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        left: 9%;
        font-size: 8px;
    }
    #access-address p {
        max-width: 250px;
        text-overflow: wrap;
        margin-left: 19%;
        font-size: 8px;
    }
    .youtube-icon-video {
        width: 39px;
        height: auto;
        position: absolute;
        left: 44%;
        top: 75px;
    }
    .overlay-dina {
        background-size: 962px;
    }
    .slider .slider-content p {
        font-size: 35px;
        line-height: 70px;
    }
    .slider .indicator-inner {
        padding-top: 10px;
    }
    .slider .slider-content h3 {
        font-size: 35px;
    }
    .slider .indicator-inner span {
        font-size: 10px;
    }
    .slider .indicator-inner span.number {
        font-size: 10px;
        margin-right: 0;
    }
    .news-home-head1 {
        margin: 17px 0;
    }
    .news-home-head2 {
        margin: 23px 0;
        font-family: font-family: 'Noto Sans JP', sans-serif !important;
        font-weight: 700;
        ;
        font-size: 10px;
        text-align: left;
    }
    .news-item-date {
        text-align: left;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        padding-top: 7px;
        color: #bbb;
        font-weight: 400;
        letter-spacing: 2px;
        font-size: 11px;
        margin-bottom: 3px;
    }
    .news-item-title {
        font-size: 15px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        letter-spacing: 1px;
        padding-bottom: 22px;
    }
    .cg-header-heading {
        padding: 0px;
        font-size: 40px;
        font-family: 'Bebas';
        margin-bottom: 0px !important;
    }
    .cg-header-subheading {
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
        display: block;
        font-size: 11px;
        font-weight: 600;
        font-family: "HiraginoPronW3", Meiryo, sans-serif;
        letter-spacing: 0;
    }
    .cg-header-subheading {
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
        display: block;
        font-size: 11px;
        font-weight: 600;
        font-family: "HiraginoPronW3", Meiryo, sans-serif;
        letter-spacing: 0;
    }
    .dina-text1 {
        font-size: 12px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        margin-bottom: 1em;
        line-height: 1.5;
        text-align: left;
        margin-top: 33px;
        text-align: center;
        padding-bottom: 15px;
    }
    .dina-text2 {
        margin-bottom: 0;
        font-size: 9px;
        padding-bottom: 5px;
        text-align: center;
    }
    .dina-caption {
        padding-bottom: 15px;
    }
    .dina-box-container {
        height: 120px;
        width: 100%;
    }
    .dinabox1 {
        height: 100% !important;
        width: 80%;
        display: inline-block;
    }
    .dinabox {
        height: 100% !important;
        width: 9%;
        display: inline-block;
        vertical-align: top;
    }
    .application-dev-subheading {
        text-align: center;
        font-weight: 600;
        letter-spacing: 2px;
        display: block;
        font-size: 11px;
        font-weight: 600;
        font-family: "HiraginoPronW3", Meiryo, sans-serif;
        letter-spacing: 0;
        color: white;
    }
    .application-dev-heading {
        padding: 0px;
        font-size: 40px;
        font-family: 'Bebas';
        margin-bottom: 0px !important;
        color: white;
    }
    .application-dev {
        background-color: #65c5f5;
        background-size: 546px;
    }
    .img-small-world {
        height: 160px;
        margin-bottom: 60px;
    }
    .application-image-container {
        height: 640px;
        background-image: url('../images/app-bg2.png');
        background-repeat: no-repeat;
        background-position: right top;
        -moz-background-size: 314px;
        -o-background-size: 314px;
        -webkit-background-size: 314px;
        background-size: 314px;
        width: 314px;
    }
    .application-image-slider {
        width: 274px;
        margin: 28px auto 0;
        padding-top: 23%;
        border: 0px;
    }
    .application-image-slider1 {
        max-width: 100%;
        margin: 0px auto;
    }
    .application-image-slider2 {
        width: 100%;
        overflow: hidden;
        position: relative;
        height: 484px;
    }
    #application-caption {
        padding: 75px 0 0 67px !important;
    }
    .application-caption1 {
        text-align: left;
        margin-bottom: 0;
        line-height: 1.5;
        color: #163f72;
        font-size: 24px;
        font-family: inherit
    }
    .application-caption2 {
        margin-bottom: 1em;
        line-height: 1.5;
        color: #163f72;
        text-align: left;
        padding-top: 14px;
        font-family: 'HeveticaLight';
    }
    .application-caption3 a {
        font-size: 13px;
        text-align: left;
        color: #fff;
        /* float: left; */
        padding: 0px;
    }
    .application-caption4 {
        margin-bottom: 3em;
        color: #163f72;
        text-align: left;
    }
    .application-caption4 a {
        margin-top: 20px;
        display: block;
        width: 160px;
    }
    .news-home {
        margin-bottom: 24px;
        border-bottom: 2px solid #ccc;
        border-top: 2px solid #ccc;
    }
    .dina-box-container i.fa-youtube-play {
        position: absolute;
        top: 70px;
        color: #E7281E;
        left: 46%;
        font-size: 2.8em !important;
    }
    .service-header {
        background-image: url('../images/MD_room.jpg');
        /* padding: 122px 21px; */
        color: #fff;
        background-size: contain;
        background-repeat: no-repeat;
        width: 100%;
        background-size: 100% 100%;
        height: 370px;
        padding: 0;
    }
    .dina-header-heading {
        font-size: 40px;
        font-family: 'Bebas';
        padding: 8px 0 !important;
        margin: 0;
        letter-spacing: 1px;
    }
    .crafts-back {
        z-index: 2;
    }
    .crafts-back img {
        margin-top: -55px;
    }
    .overlay-dina {
        background: url('../../front/images/cov.png') no-repeat center top;
        background-size: 3415px;
        width: 100%;
        height: 100%;
        -moz-background-size: 3415px;
        -o-background-size: 3415px;
        -webkit-background-size: 3415px;
        background-size: 300%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }
    #map {
        height: 400px;
    }
    #access-address {
        padding: 10px 0;
        background: rgba(255, 255, 255, 0.7);
        position: absolute;
        bottom: 0;
    }
    .page-top-iconSm2 {
        font-family: 'BebasBold';
        font-size: 18px;
        margin-top: -6px;
        margin-bottom: 8px;
    }
    .map-container {
        padding-left: 3vh;
        padding-right: 3vh;
    }
    /* home service section */
    .home-services {
        margin-top: 30px;
    }
    .home-service-banner {
        background-image: url('../../front/images/MD_room.jpg');
        color: #fff;
        background-size: cover;
        width: 100%;
        height: 312px;
        margin: 0 !important;
        background-repeat: no-repeat;
        padding-top: 20px;
    }
    .home-service-heading3 {
        font-size: 32px;
        margin-bottom: 6px;
        text-align: center;
        padding-top: 30px;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
    }
    .home-service-heading2 {
        font-size: 20px;
        margin-bottom: 10px;
        font-family: 'Bebas';
        letter-spacing: 1px;
        text-align: center;
    }
    .home-service-heading {
        text-align: center;
        padding-top: 20px;
    }
    .home-service-items {
        background: #EFEFEF;
        padding-bottom: 20px;
    }
    .home-service-item {
        background: white;
        margin-bottom: 35px;
        margin-top: -20px;
        margin-left: 10%;
        margin-right: 10%;
        width: 80% !important;
    }
    .home-service-icon {
        text-align: center;
        width: 120px;
        height: 120px;
        border-radius: 50%;
        border: 6px solid black;
        margin: 10px auto;
        padding: 32px 0;
        font-family: 'Bebas';
        font-size: 20px;
    }
    .home-service-content1 {
        text-align: center;
        font-family: 'TrebuchetMSBold';
        font-size: 20px;
        letter-spacing: 2px;
    }
    .home-service-content2 {
        font-size: 14px;
        color: red;
        text-align: center;
        font-family: 'BebasBold';
        letter-spacing: 1px;
    }
    .home-service-content3 {
        font-size: 11px;
        letter-spacing: 1px;
        text-align: center;
        padding: 30px 0;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
    }
    .home-service-icon1 {
        text-align: center;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        border: 6px solid black;
        margin: 10px auto;
        padding: 25px 0;
        font-family: 'Bebas';
        font-size: 20px;
    }
    .home-service-icon1 small {
        font-size: 10px;
        display: block;
        margin-top: -3px;
    }
    .home-services-btn {
        margin-left: 10%;
        margin-right: 10%;
        width: 80% !important;
        border-radius: 0px !important;
    }
}


/* Media query for 420px */

@media only screen and (max-width: 420px) {
    /* Main slider section */
    .slider .carousel {}
    .slider .slider-content p {
        font-size: 35px;
        line-height: 70px;
    }
    .slider .indicator-inner {
        padding-top: 10px;
    }
    .slider .slider-content h3 {
        font-size: 35px;
    }
    .slider .indicator-inner span {
        font-size: 7px;
    }
    .slider .indicator-inner span.number {
        font-size: 7px;
        margin-right: 0;
    }
    .slider .carousel-indicators li.active:after {
        content: "";
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        position: absolute;
        background: #15ace3;
    }
    .slider .carousel-indicators li {
        text-indent: initial;
        width: 6%;
        height: 6px;
        margin: 0 0% 0 0;
        border-radius: 0;
        background: #15ace3;
        border: none;
        opacity: 0.2
    }
    .slider-content img {
        background-color: rgba(0, 0, 0, 0);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        width: 100%;
        height: 100%;
        opacity: 1;
        visibility: inherit;
        z-index: 20;
    }
}

@media (max-width: 480px) and (min-width: 320px) {
    .overlay-dina {
        background-size: 962px;
    }
}


/* iPad */

@media (min-width:768px) and (max-width:991px) {
    .youtube-icon-video {
        width: 90px;
        height: auto;
        position: absolute;
        left: 45%;
        top: 280px;
    }
    .overlay-dina h1 {
        padding-top: 10px;
        margin: 0px !important;
    }
    .minidina {
        margin-top: 380px;
    }
    .underdina {
        margin-top: 385px;
    }
    .dina-text1 {
        margin-bottom: 0;
        margin-top: 5%;
    }
    .minidina img {
        max-height: 176px;
    }
}


/* iPad Pro */

@media (min-width:992px) and (max-width:1199px) {
    .overlay-dina h1 {
        padding-top: 20px;
        margin: 0px !important;
    }
    .minidina {
        margin-top: 480px;
    }
    .underdina {
        margin-top: 450px;
    }
    .undercg {
        padding-bottom: 10px;
        padding-top: 0px;
        margin-top: 0px;
    }
    .overlay-dina1 {
        max-height: 869px;
        overflow: hidden;
    }
}