
.pc{
	display: inline;
}
.sp{
	display: none;
}

@media all and (max-width: 560px){
    .sp{
        display: inline;
    }
    .pc{
        display: none;
    }
    body *{
        box-sizing: border-box;
        line-height: 160%;
    }
    li{
        padding-bottom: 0.5rem;
    }
    img,
    #bar_inner,
    #header,
    #mainmenu ul.menu,
    #breadcrumbs,
    #inner_wrapper,
    #footer{
        max-width: 100%;
        height: auto;
    }
    #bar_wrapper #bar_inner{
        padding: 0.25rem 10px;
        font-size: min(90%,3.6vw);
    }
    #wrapper{
        padding: 0 20px;
    }
    #header{
        padding: 0;
    }

    #header .website-name{
        
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    #header .website-name #ocbt{
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #000;
        color: #fff !important;
        text-decoration: none;
        padding: 0.25rem 3.5vw;
        font-size: 3.5vw;
    }
    #ocbt input{
        position: absolute;
        left: -9000px;
    }
    #ocbt span{
        background :#fff;
        height: 2px;
        position: relative;
        width: 70%;
        display: block;
        margin: 1rem auto;
        transition: 0.3s;
    }
    #ocbt span::before,
    #ocbt span::after{
        content: '';
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: 0.3s;
        transform: translateY(-10px);
    }
    #ocbt span::after{
        transform: translateY(10px);
    }
    #ocbt:has(input:checked) span{
        background: #000;
    }
    #ocbt:has(input:checked) span::before{
        transform: translateY(0) rotate(45deg);
    }
    #ocbt:has(input:checked) span::after{
        transform: translateY(0) rotate(-45deg);

    }
    #header .website-name a{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0.5rem;
        gap:0.25rem;
        text-decoration: none;
    }
    #header .website-name #blog_title .topslogan{
        padding: 0.25rem 0 0;
        display: block;
        width: 100%;
    }
    #header .website-name img{
        max-width: 15vw;
    }
    #header form{
        display: none;
    }
    #header .website-name #blog_title{
        width: calc(100%) !important;
        position: relative;
        top: auto;
        left: auto;
        font-size: 4.5vw;
    }
    #breadcrumbs{
        padding: 5px 0;
    }
    #welcome{
        margin: 0 auto;
    }
    #inner_wrapper{
        padding: 1rem;
    }
    #toppage_info .each{
        max-width: 100%;
        width: 100%;
    }
    #toppage_info .each img{
        display: block;
        margin-right: 0.5rem;
    }
    #toppage_info .each a{
        padding: 5px 0 5px 120px;
    }
    #toppage_apply{
        padding: 0;
    }
    #pagetitle{
        display: none;
    }
    #wp_print {
        padding: 0;
        margin: 0;
    }
    #toppage_apply img{
        width: calc((100% - 1rem) / 2);
        margin: 0 auto 1rem;
        float: left;
    }
    #toppage_apply a:first-of-type img{
        width: 100%;
    }
    #toppage_apply a:last-of-type img{
        margin-left: 1rem;
    }
    #topnews ul li{
        text-indent: 0;
        padding: 0.25rem 0;
    }
    #topnews ul li .genre {
        margin: 0 5px 0 0;
        display: block;
        width: fit-content;
    }
    #wrapper{
        margin: 0 auto;
    }
    #mainmenu{
        display: none;
    }
    #header:has(input:checked)+#mainmenu{
        display: block;
    }
    #mainmenu form{
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        background: #fff;
        border-bottom: 1px solid #999;
    }
    #site_search_input2{
        width: 100%;
    }

    #mainmenu ul.menu>li{
        display: block;
        float: none;
        background: #fff !important;
        padding: 0;
        border-bottom: 1px solid #999;
    }
    #mainmenu ul.menu li:hover a,
    #mainmenu ul.menu li a{
        color: #000 !important;
        display: block;
        padding: 1rem;
    }
    #mainmenu ul.menu li ul{
        display: none;
        position: relative;
        left:auto;
        top: auto;
        width: 100%;
        background: #f6f6f6 !important;
        padding: 0;
    }
    #mainmenu ul.menu li ul li{
        width: 100%;
        float: none;
    }
    #mainmenu ul.menu li ul li a{
        padding: 1rem 1.5rem !important;
        color: #000 !important;
        width: 100%;
        border-top:1px solid #ddd;
        
    }
    #mainmenu ul.menu li ul li:hover a{
        background: #fff !important;
    }
    .grecaptcha-badge{
        z-index: 20000;
    }
    #mainmenu ul.menu li:has(.sub-menu)>a{
        pointer-events: none;
    }
    #mainmenu ul.menu>li::before{
        content: '';
        position: absolute;
        right: 1rem;
        top: 1.25rem;
        width: 14px;
        height: 14px;
        display: block;
        background: center center no-repeat url('images/menu-go.png');
        background-size: contain;

    }
    #mainmenu ul.menu>li:has(.sub-menu)::before{
        background: center center no-repeat url('images/menu-open.png');
        background-size: contain;

    }
    #mainmenu ul.menu>li:has(.sub-menu.on)::before{
        background: center center no-repeat url('images/menu-close.png');
        background-size: contain;
    }
    .sub-menu.on{
        display: block !important;
    }
    .sub-menu{
        display: none !important;
    }
    .content h3,
    .content h4{
        background-position: 5px 8px;
    }
    #toppage_info .each a{
        background-position: 105px 11px;
    }
    table th{
        width: 9em !important;
        white-space: normal !important;
    }
    .tablewrap{
        width: 100%;
        max-width: 100%;
        overflow: auto;
    }
    .wp-block-table .has-fixed-layout{
        width: 100% !important;
    }
    pre,
    input[type=text],
    input[type=tel],
    input[type=email]{
        width: 100%;
        max-width: 100%;
        font-size: 16px;
    }
    #wrapper{
        padding-bottom: 2rem;
    }
    .totaltopmessage{
        margin: 1rem auto;
        display: block;
    }
    .totaltopmessage strong{
        color: #1B3641;
        display: block;
        padding-bottom: 0.5rem;
        font-size: 1.1rem;
        
    }
}
@media all and (max-width: 330px){
table th{
    width: 6em !important;
}
}