@charset "utf-8";

@media screen and (max-width: 768px) { /*ウィンドウ幅が最大768pxまでの場合に適用*/
    body {
        font-size: 0.9em;
    }
    /* .wrapper {
        padding-bottom: 100px;
    } */

    #header {
        height: 140px;
    }
    #header #bottom-line {
        top: 130px;
    }
    #header #info {
        left: 20px;
        top: 60px;
    }

    h1 {
        line-height: 1.1em !important;
    }
    h1::before {
        top: 4px;
    }
    h2 {
        height: auto;
        line-height: 1.1em;
    }

    #img-panel {
        /* height: 100px; */
    }
    #slide {
        margin-left: -100px;
    }
    #slide li img{
        width: 200px;
        height: 133px;
    }
    #img-panel #catchcopy {
        top: 10px;
        left: 40px;
    }

    #menu_btn {
        display: block;
        position: fixed;
        z-index: 42;
        right: 8px;
        top: 5px;
        width: 42px;
        height: 42px;
        cursor: pointer;
        text-align: center;
    }
    #menu_btn span{
        display : block;
        position: absolute;
        width   : 30px;
        height  : 3px ;
        left    : 6px;
        background : #555555;
        -webkit-transition: 0.3s ease-in-out;
        -moz-transition   : 0.3s ease-in-out;
        transition        : 0.3s ease-in-out;
    }
    #menu_btn span:nth-child(1) {
        top: 10px;
    }
    #menu_btn span:nth-child(2) {
        top: 20px;
    }
    #menu_btn span:nth-child(3) {
        top: 30px;
    }
    #menu_btn.active span:nth-child(1) {
        top : 16px;
        left: 6px;
        -webkit-transform: rotate(-45deg);
        -moz-transform   : rotate(-45deg);
        transform        : rotate(-45deg);
        background: #ffffff;
    }
    #menu_btn.active span:nth-child(2),
    #menu_btn.active span:nth-child(3) {
        top: 16px;
        -webkit-transform: rotate(45deg);
        -moz-transform   : rotate(45deg);
        transform        : rotate(45deg);
        background: #ffffff;
    }

    #menu {
        /* display: inline-block; */
        /* width:initial; */
        display: block;
        position: fixed;
        background: none !important;
        width: 90%;
        z-index: 41;
        margin: 0;
        top: 0 !important;
        right: 0;
        transform: translateX(130%);
        transition: all 0.6s;
    }
    #menu.active {
        transform: translateX(0%);
    }
    #menu #main { /*ul*/
        white-space: normal;
        margin: 0;
        text-align: left;
        /* height: auto; */
        overflow-x: hidden;
        overflow-y: auto;
    }
    #menu #main li {
    }
    #menu #main li.top {
        display: inline-block;
        position: relative;
        font-size: 18px;
        -webkit-border-radius: 0;
        -moz-border-radius:0;
        border-radius: 0;
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border: 1px solid #ffffff;
        width: 100%;
        height: auto;
        vertical-align: initial;
        padding: 0px;
        text-align: left;
    }
    #menu #main li.top a {
        padding-left: 10px;
        /* width: auto; */
    }

    #menu #main li.top:hover ul.sub {
        top: 1px;
    }
    #menu #main li.top ul.sub {
        position: relative;
        visibility: visible;
        opacity: 1;
        border-top: 1px solid #ffffff;
        top: initial;
        z-index: initial;
        top: 1px;
        width: 100%;
        white-space: nowrap;
    }
    #menu #main li.top ul.sub li{
        width: 100% !important;
        text-align: left;
        font-size: 16px;
        /* height: initial; */
        height: 30px;
        line-height: 30px;
    }
    #menu #main li.top ul.sub li a {
        padding-left: 30px;
        /* width: auto; */
    }

    #left-panel {
        display: inline-block;
        width: calc(100% - 20px);
        padding-bottom: 0px;
    }
    #left-panel > div {
        display: block;
        position: relative !important;
        float: left;
    }
    #left-panel #loan_panel {
        padding-top: 0px !important;
        margin-left: 5px;
        margin-top: 5px;
        width: 90%;
        text-align: left !important;
    }
    #left-panel #left-banner-panel,
    #left-panel #left-banner-panel-top {
        left: initial;
        transform: initial;
        padding: 0;
        float: left;
    }
    #left-panel #left-banner-panel ul,
    #left-panel #left-banner-panel-top ul {
        text-align: left;
        margin: 0;
    }
    #left-panel #left-banner-panel ul li,
    #left-panel #left-banner-panel-top ul li {
        margin-bottom: 0 !important;
    }

    #center-panel {
        display: block;
        width: auto;
    }
    #center-panel #competition_panel button {
        margin: 5px;
        font-size: 1.2em;
        width: 240px !important;
    }
    #right-panel {
        display: inherit;
        width: calc(100% - 20px);
        /* text-align: center; */
    }
    #right-panel > fieldset {
        display: block;
        width: calc(90%);
        /* text-align: left; */
        margin: 0 auto;
    }
    #top_video {
        display: block;
        margin: 0 auto;
        margin-top: 5px;
        margin-bottom: 5px;
        width: 90% !important;
    }

    #contents-panel {
        width: calc(100% - 10px);
        padding-left: 5px;
    }
    #contents-panel p {
        line-height: 1.5em !important;
    }

    #contents-panel img.sosiki {
        width: 90% !important;
    }

    #contents-panel #competition-search-panel table,
    #contents-panel #facility-search-panel table,
    #contents-panel #input_item table,
    #contents-panel #QA_search_panel2 table {
        display: table;
        width: 100%;
    }
    #contents-panel #competition-search-panel td,
    #contents-panel #facility-search-panel td,
    #contents-panel #input_item table td,
    #contents-panel #QA_search_panel2 table td {
        display: inline-block;
        width: 100% !important;
        border: none;
    }
    #contents-panel #input_item table td.item_control {
        padding: 0;
    }
    #contents-panel #competition-search-panel td select,
    #contents-panel #competition-search-panel td button,
    #contents-panel #facility-search-panel td select,
    #contents-panel #facility-search-panel td input,
    #contents-panel #input_item table td input,
    #contents-panel #input_item table td button,
    #contents-panel #QA_search_panel2 td select,
    #contents-panel #QA_search_panel2 td button {
        margin-top: 5px;
        width: 100% !important;
        box-sizing: border-box;
        height: 30px;
    }
    #contents-panel #QA_search_panel2 td select,
    #contents-panel #QA_search_panel2 td button {
        margin-top: 5px;
        width: 95% !important;
        box-sizing: border-box;
        height: 30px;
    }
    #contents-panel #input_item table td .caption_label_c::after {
        margin-right: 10px;
    }
    #contents-panel #facility-search-panel td button {
        margin-top: 5px;
        width: 49%;
    }
    #contents-panel #competition-search-result ul,
    #contents-panel #training-search-result ul {
        width: calc(100% - 50px) !important;
    }
    #contents-panel #competition-search-result ul li {
        height: auto !important;
    }

    #contents-panel #search-result #result_list {
        float: none;
        width: 100%;
        max-height: 400px;
        overflow: auto;
    }
    #contents-panel #search-result #result_list ul {
        width: 95%;
    }
    #contents-panel #search-result #map {
        display: inline-block;
        float: none;
        width: calc(100% - 40px);
        height: 300px;
        margin-left: 20px;
    }

    #contents-panel #video_login_info #btn_back {
        margin-bottom: 5px;
    }
    #contents-panel #video_login_info #video_login_user {
        display: inline-block;
        width: 100%;
    }
    #contents-panel #competition-video-panel2 .b_panel {
        width: 95%;
    }
    #contents-panel #competition-video-panel2 .b_panel dd[id^="video_item"] .dd_panel {
        display: inline-block;
    }
    #contents-panel #competition-video-panel2 .b_panel .dd_panel > div {
        display: block;
        float: left;
        /* width: 50%; */
        /* height: 100px; */
        margin-bottom: 5px;
    }
    #contents-panel #competition-video-panel2 .b_panel .kigen {
        display: inline-block;
        /* width: calc(100% - 200px) !important; */
        width: auto;
    }

    #contents-panel #QA_search_panel2 #QA_list .QA_b_item {
        width: 95%;
    }

    #contents-panel .loan_item p.doc {
        margin-left: 30px;
    }
    #contents-panel .loan_item.mgn {
        margin-left: 30px;
    }

    #bottom-banner-panel li {
        width: 150px;
    }
    #bottom-banner-panel img {
        width: 100%;
        height: auto;
    }

    .enquete .list_panel {
        width: 90% !important;
    }
    .enquete .list_panel .video-title {
        height: auto !important;
    }
    .enquete .list_panel table {
        display: inline-block !important;
    }
    .enquete .list_panel table td {
        display: initial !important;
        width: 100% !important;
        border: none !important;
    }
    #contents-panel .input_panel.enquete .list_panel #input_item table .item_div label {
        display: block;
    }
    #contents-panel .input_panel.enquete .list_panel #input_item table .item_div input {
        width: auto !important;
        height: auto !important;
    }
    #contents-panel .input_panel.enquete .list_panel #input_item table .item_control {
        display: inline-block !important;
        text-align: center;
    }
    #contents-panel .input_panel.enquete .list_panel #input_item table .item_control button {
        width: 150px !important;
    }

    #q_list {
        width: 90% !important;
    }

    #dialog-back-div-msg_edit_window #dialog-div {
        width: 90%;
    }

    /* #footer {
        height: 100px;
    } */
    #footerinner {
        width: 80%;
        text-align: left;
        margin-top: 5px;
        padding-left: 10px;
        font-size: 0.8em;
        line-height: 20px;
    }
    #counter {
        left: 10px !important;
        font-size: 0.7em;
    }

    .field_sdgs img {
        float: right;
    }

    .covid19 h2.icon::before {
        top: 1px;
    }
}