@charset "utf-8";

@media screen and (max-width: 768px) {
    /* common */
    textarea {
        width: 100%;
    }
    /* header */
    header {
        height: auto;
        padding: 1.6rem 0.8rem;
        margin-bottom:0;
    }
    header .logo {
        padding-right: 4.8rem;
        margin-bottom: 0;
        position: relative;
        z-index: 9999;
    }
    header .nav_block {
        width: 100%;
        height: 0;
        opacity: 0;
    }
    header .sp_menu {
        display: block;
        height: 25px;
        position: fixed;
        right: 1rem;
        top: 2.2rem;
        width: 30px;
        z-index: 999999999;
    }
    header.open-menu .sp_menu {
        top: 3rem;
    }
    header #menu-btn,
    header #menu-btn:before,
    header #menu-btn:after {
        content: "";
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #000;
        position: absolute;
        -webkit-transition: 0.2s;
        transition: 0.2s;
    }
    header #menu-btn:before {
        top: 8px;
    }
    header #menu-btn:after {
        top: 16px;
    }
    header #menu-btn.open-menu {
        background-color: rgba(255, 255, 255, 0);
    }
    header #menu-btn.open-menu::before {
        top: 0;
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    header #menu-btn.open-menu::after {
        top: 0;
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    header.open-menu .nav_block {
        display: flex;
        flex-flow: column;
        justify-content: flex-start;
        flex-wrap: wrap;
        opacity: 1;
        height: 100vh;
        background: #fff;
        position: fixed;
        z-index: 99999;
        top: 0;
        right: 0;
        overflow-x: hidden;
        text-align: center;
        -webkit-transition: 0.2s;
        transition: 0.2s;
    }
    header .language {
        width: 100%;
        order: 2;
        position: static;
    }
    header .language ul {
        justify-content: center;
    }
    header .search-box {
        width: 100%;
        order: 1;
        padding-bottom: 2rem;
    }
    header .search-box form {
        justify-content: center;
    }
    header .globalmenu {
        width: 100%;
        order: 0;
        box-sizing: border-box;
        padding: 4rem 0;
    }

    header .globalmenu ul {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-pack: start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }
    header .globalmenu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        margin: 0;
    }

    /* footer */
    footer .footer_menu_list {
        padding: 1.6rem;
    }
    footer .footer_menu_list li {
        width: 100%;
    }
    footer address .flex-box {
        flex-wrap: wrap;
        padding: 1.6rem;
    }
    footer address .flex-box li {
        width: 100%;
        margin: 0 0 0.8rem 0 !important;
    }
    footer #to_top {
        right: 1em;
        bottom: 1em;
    }
    footer #to_top {
        width: 45px;
        height: 45px;
    }

    /* common */
    .body-wrap,
    .body-wrap2 {
        width: 100%;
    }
    table {
        width: 100%;
        table-layout: fixed;
        word-break: break-all;
        word-wrap: break-all;
    }
    table th,
    table td {
        display: block;
        width: 100%;
        word-break: break-all;
        word-wrap: break-all;
    }

    table.blog-calendar th,
    table.blog-calendar td {
        display: table-cell;
        width: auto;
    }

    /* main */
    main {
        width: 100vw;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
    main > article > section {
        margin-bottom: 6rem;
    }
    main h1,
    #Home main h2 {
        text-align: center;
        display: block !important;
        border: none;
        padding: 0 !important;
        height: auto;
        margin-top: 16rem;
        padding-bottom: 2rem !important;
    }
    main h1 {
        margin-top: 10rem;
    }
    #Home main h2:before {
        left: 50% !important;
        transform: translateX(-50%);
        top: -140% !important;
    }
    main h1:before {
        left: 50% !important;
        transform: translateX(-50%);
        top: -100px !important;
    }

    main h1 span,
    #Home main h2 span {
        font-size: 1.8rem;
        display: block;
        margin: 0 !important;
    }

    /* Home */
    #Home main #Slider {
        margin: 0;
    }
    #Home main #Msg {
        margin: 0;
    }
    #Home main #Msg .font_Tajawal {
        font-size: 2.4rem;
    }
    #Home main #About h2 {
        margin-top: 0;
    }
    #Home main #About .img {
        position: static;
    }
    #Home main #About .msg {
        position: static;
        margin: 4rem 0 4rem 8rem;
        display: inline-block;
    }
    #Home main #About .wave1 {
        position: static;
        text-align: left;
        margin-left: 1rem;
    }
    #Home main #About .wave2 {
        position: static;
        text-align: right;
        margin-right: 1rem;
    }
    #Home main #About {
        padding: 2.4rem 0 4rem;
    }
    #Home main #Information .info_list {
        flex-wrap: wrap;
        padding: 1.6rem;
    }

    #Home main #Information .info_list li {
        width: 100%;
        margin-bottom: 3.2rem;
    }
    #Home main #News .tab-area {
        flex-wrap: wrap;
        margin-left: 0;
    }
    #Home main #News .tab-area .tab {
        width: 50%;
        border-radius: 0 !important;
        padding: 1.2rem 0;
    }
    #Home main #News .tab-area .tab:before {
        display: none;
    }
    #Home main #News .tab-area .tab:after {
        display: none;
    }
    #Home main #News .content-area .content {
        padding: 1.6rem 0.8rem;
    }
    #Home main #News .content-area .post-list li {
        flex-wrap: wrap;
    }
    #Home main #News .content-area .post-list li .category {
        margin-left: 1em;
    }
    #Home main #News .content-area .post-list li .title {
        width: 100%;
    }
    #Home main .link_btn .text {
        font-size: 3.2rem;
    }
    #Home main #Event .event_list {
        padding: 1.6rem;
    }
    #Home main #Event .event_list li {
        width: 100%;
        margin-bottom: 3.2rem;
    }
    #Home main #Contact .contact_list {
        padding: 1.6rem;
    }
    #Home main #Contact .contact_list li {
        width: 100%;
        margin-bottom: 3.2rem;
    }
    #Home main #Contact .link_list {
        flex-wrap: wrap;
        margin-left: 1em;
    }
    #Home main #Contact .link_list li {
        width: 100%;
        list-style: disc;
    }

    main .body-wrap.flex-box {
        flex-wrap: wrap;
    }
    main > .body-wrap > aside {
        order: 1;
        width: 100%;
        padding: 0.8rem;
        box-sizing: border-box;
    }
    main > .body-wrap > article {
        order: 0;
        width: 100%;
        padding: 0 0.8rem;
    }

    /* 検索結果 */
    #Search_indices .pagination,
    #Search_indices .pagination span {
        flex-wrap: wrap;
    }
    #Search_indices .pagination span.prev a,
    #Search_indices .pagination span.number a,
    #Search_indices .pagination span.next a {
        margin: 0.8rem;
    }
    #Search_indices .pagination span.disabled,
    #Search_indices .pagination span.current {
        margin: 0.8rem;
    }
}
