
.sp{
    display: none;
}
@media (max-width: 768px) {
    #besa {
        width: 100% !important;
        padding-top: 10.5vw;
    }
    .table_break{
        display: block;
    }
    .table_break thead,
    .table_break tbody,
    .table_break tr,
    .table_break th,
    .table_break td{
        display: block;
        height:auto !important;
    }
    img{
        max-width:100%;
        height:auto;
    }
    .pc{
        display: none !important;
    }
    .sp{
        display: block;
    }
    .sp_max{
        width:100% !important;
    }
    header.sp{
        width:100%;
        display: flex;
        justify-content: center;
        position: fixed;
        top:0;
        left:0;
        right:0;
        bottom:auto;
        z-index: 9999;
        background: #FFFFFF;
    }
    header.sp::after{
        content: "";
        width:52.106%;
        background: url("../image/top/header_bar.gif") no-repeat right top /contain;
    }
    header.sp h1{
        width:47.894%;
    }
    header.sp .spbtn{
        width: 34px;
        height: 34px;
        transition: 0.3s;
        z-index: 9999;
        background: #3d5b9c;
        cursor: pointer;
        position: absolute;
        top:0;
        right:0;
        bottom:0;
        margin: auto;
    }
    header.sp .spbtn,header.sp  .spbtn span {
        display: inline-block;
        -webkit-transition: all 0.3s; 
        -moz-transition: all 0.3s; 
        -o-transition: all 0.3s; 
        transition: all 0.3s;
        box-sizing: border-box;
    }
    header.sp .spbtn span {
        position: absolute;
        left: 0;
        right:0;
        margin: auto auto auto auto;
        width: 20px;
        height: 2px;
        background-color: #FFFFFF;
        transition: 0.3s;
    }
    header.sp .spbtn span:nth-of-type(1) {
        top: 12px;
    }
    header.sp .spbtn span:nth-of-type(2) {
        top: 17px;
    }
    header.sp .spbtn span:nth-of-type(3) {
        top: 22px;
    }
    header.sp .select .spbtn span:nth-of-type(1) {
        transform: translate(0,5px) rotate(30deg);
    }
    header.sp .select .spbtn span:nth-of-type(2) {
        opacity: 0;
    }
    header.sp .select .spbtn span:nth-of-type(3) {
        transform: translate(0,-5px) rotate(-30deg);
    }
    .spmenu{
        width:100%;
        height:auto;
        max-height:100vh;
        position: fixed;
        top:0;
        left:auto;
        right:0;
        bottom:0;
        margin: auto auto auto auto;
        z-index:9990;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: all 0.3s;
        overflow-y: scroll;
        background: #3d5b9c;
        opacity: 0;
        transform:translate(0,-100%);
        pointer-events: none;
        padding:10.5vw 0 0 0;
        display: block;
    }
    header.select + .spmenu{
        opacity: 1;
        transform:translate(0,0);
        pointer-events: fill;
    }
    .spmenu ul{
        list-style-type: none;
        margin-block-start: 0;
        margin-block-end: 0;
        padding-inline-start: 0;
    }
    .spmenu ul li{
        text-align: left;
        display: block;
        position: relative;
    }
    .spmenu ul li a,
    .spmenu ul li span{
        color:#FFFFFF;
        padding:10px 4%;
        line-height: 1.2;
        display:block;
        border-bottom:1px solid #FFFFFF;
        position: relative;
        box-sizing: border-box;
        font-weight: 600;
        text-decoration: none !important;
    }
    .spmenu ul li:last-child a,
    .spmenu ul li:last-child span{
        border-bottom:none;
    }
    .spmenu ul li a::after{
        position: absolute;
        content: "＞";
        right:4%;
        top:50%;
        transform: translate(0,-50%);
        font-weight: 600;
    }
    .spmenu ul li.parent a::after,
    .spmenu ul li span::after{
        position: absolute;
        content: "＋";
        right:4%;
        top:50%;
        transform: translate(0,-50%);
        font-weight: 600;
    }
    .spmenu ul li.parent a.select::after,
    .spmenu ul li.parent span.select::after{
        content: "―";
    }
    .spmenu ul li.parent ul.child{
        display: none;
        border-bottom: 1px solid #FFFFFF;
        background: rgba(233,233,233,1);
        position: relative;
    }
    .spmenu ul li.parent ul.child::before{
        content: "";
        position: absolute;
        top:0;
        left:0;
        right:0;
        bottom:0;
        margin: auto auto auto auto;
        z-index: -1;
        background: #FFFFFF;
    }
    .spmenu ul li.parent ul.child li a{
        color:#333333;
        border-bottom: 1px solid #333333;
    }
    .spmenu ul li.parent ul.child li:last-child a{
        border-bottom: none;
    }
    .spmenu ul li.parent ul.child li a::before{
        content: "";
        width:10px;
        height:10px;
        background: #3d5b9c;
        border-radius: 50%;
        margin-right: 10px;
        display: inline-block;
    }
    .spmenu ul li.parent ul.child li a::after{
        content: "＞";
        color:#3d5b9c;
    }   
    
    
    #promotionWrap{
        width:100% !important;
        height:auto !important;
    }
    #ui-tab ul.buttons {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }
    .ui-tabs-nav li {
        width:50%;
        height:auto;
    }
    .ui-tabs-nav li:last-child{
        display: none;
    }
    #changeBoxWrap {
        float: none;
        width:100% !important;
        height:auto !important;
    }
    .ui-tabs-panel img{
        box-sizing: border-box;
        margin: 0;
    }
    
    .table_max.table_break{
        width:96%;
        display: block;
        margin: 0 auto;
    }
    .news_section{
        margin: 20px auto;
    }
    .news_section .TextBase{
        margin: 5px auto;
    }
    .news_section .TextBase img{
        display: none;
    }
    .topbnr_section{
        margin: 20px auto;
    }
    .topbnr_section tbody{
        display: flex;
        flex-wrap: wrap;
        gap:5px 2%;
    }    
    .topbnr_section tr{
        width:100%;
        display: flex;
        gap:2%;
    }
    .topbnr_section tr td{
        width:50%;
    }
    .topbnr_section tr:first-child td:nth-child(2){
        display: none;
    }
    .topbnr_section tr:nth-child(even){
        display: none;
    }
    .caution_section{
        margin: 20px auto;
    }
    .caution_section tr:nth-child(2){
        display: none;
    }
    .caution_section .TextBase img{
        display: none;
    }
    .mainContent .right_navi {
        width: 218px;
        float: none;
        margin: 20px auto;
    }
    
    .table_max.storetable {
        width: 100%;
    }
    .store .gridBox{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .table_break .moushikomi,
    .table_break .syousai{
        height: auto;
        width: 100%;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .commodity_left {
        width: 100%;
        margin-top: 20px;
        text-align: center;
    }
    .commodity_right {
        width: 100%;
    }

    .commodity_test_green{
        font-size: 14px;
    }
    
    .commodity_test_red {
        font-size: 14px;
    }
    .table_break .card_back,
    .table_break .business_back,
    .table_break .estate_back,
    .table_break .tegata_back{
        background-size: 100% auto;
        height: 23vw !important;
        margin: 0 auto 20px auto;
    }
    .card_back .btnArea,
    .business_back .btnArea,
    .estate_back .btnArea,
    .tegata_back .btnArea{
        display: flex;
        height: 23vw !important;
        align-items: flex-end;
    }
    
    .flow_waku {
        box-sizing: border-box;
        width: 100%;
        margin-top: 5px;
        margin-bottom: 10px;
    }
    
    .sp_left{
        text-align: left;
    }
}
