@media screen and (max-width: 640px) {
    .product_menu {
    margin:0; 
    z-index:99999;
    }
    .product_menu ul{
    margin:0;
    padding:0;
    }
    .product_menu ul li {
    list-style: none;
    margin:0;
    padding:0;
    font-size:12px;
    float: left;
    position: relative;
    width: 50%;/*親メニューの幅*/
    height: 40px;/*親メニューの高さ*/
    line-height: 40px;
    background::;/*親メニューの背景色*/
    color: #333;/*親メニューの文字色*/
    text-align:center;
    font-weight:bold;

    white-space: nowrap;
    box-sizing:border-box;
    margin-top: 1px;
    }
    .product_menu ul li:nth-child(even) {
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li:last-child {
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li a {
    color: #4D4D4D;
    display: block;
    text-decoration: none;
    border: 1px solid #e4e7ec;
    border-right: none;
    box-sizing:border-box;
    background:url(../images/share/bg_white_trance.png) repeat;
    }
    .product_menu ul li:hover, .product_menu ul li a:hover {
    background:#EEE;/*ホバー時の親メニューの背景色*/
    color:#fff;/*ホバー時の親メニューの文字色*/
    box-shadow: inset 0 0 10px #DDD;
    box-sizing: border-box;
    }
    .product_menu ul li ul {
    position: absolute;
    top: 40px;/*親メニューの高さと同じにする*/
    width: 100%;/*親メニューの幅*/
    z-index: 100;
    }
    .product_menu ul li ul li {
    visibility: hidden;
    overflow: hidden;
    width: 100%;/*サブメニューの幅*/
    height: 0;
    font-size: 11px;
    font-weight: normal;
    background:url(../images/share/bg_white_trance.png) repeat;
    /*border-bottom: 1px solid #DDD;
    border-left: 1px solid #DDD;
    border-right: 1px solid #DDD;*/
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li ul li:hover, .product_menu ul li ul li a:hover {
    background:url(../images/bg_tab_active.png) repeat;
    }
    .product_menu ul li:hover ul li, .product_menu ul li a:hover ul li{
    visibility: visible;
    overflow: visible;
    height:40px;/*サブメニューの高さ*/
    z-index: 10;
    }
    .product_menu * {
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    }
}

@media screen and (min-width:641px) and (max-width: 979px) {
    .product_menu {
    margin:0; 
    width: 100%;
    z-index:99999;
    position: relative;
    }
    .product_menu ul{
    margin:0;
    padding:0;
    }
    .product_menu ul li {
    list-style: none;
    margin:0;
    padding:0;
    font-size:12px;
    float: left;
    position: relative;
    width: 33.3%;/*親メニューの幅*/
    height: 40px;/*親メニューの高さ*/
    line-height: 40px;
    background::;/*親メニューの背景色*/
    color: #333;/*親メニューの文字色*/
    text-align:center;
    font-weight:bold;

    white-space: nowrap;
    box-sizing:border-box;
    margin-top: 1px;
    }
    .product_menu ul li:nth-child(3) {
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li:last-child {
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li a {
    color: #4D4D4D;
    display: block;
    text-decoration: none;
    border: 1px solid #e4e7ec;
    border-right: none;
    box-sizing:border-box;
    background:url(../images/share/bg_white_trance.png) repeat;
    }
    .product_menu ul li:hover, .product_menu ul li a:hover {
    background:#EEE;/*ホバー時の親メニューの背景色*/
    color:#fff;/*ホバー時の親メニューの文字色*/
    box-shadow: inset 0 0 10px #DDD;
    box-sizing: border-box;
    }
    .product_menu ul li ul {
    position: absolute;
    top: 40px;/*親メニューの高さと同じにする*/
    width: 100%;/*親メニューの幅*/
    z-index: 100;
    }
    .product_menu ul li ul li {
    visibility: hidden;
    overflow: hidden;
    width: 100%;/*サブメニューの幅*/
    height: 0;
    font-size: 11px;
    font-weight: normal;
    background:url(../images/share/bg_white_trance.png) repeat;
    /*border-bottom: 1px solid #DDD;
    border-left: 1px solid #DDD;
    border-right: 1px solid #DDD;*/
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li ul li:hover, .product_menu ul li ul li a:hover {
    background:url(../images/bg_tab_active.png) repeat;
    }
    .product_menu ul li:hover ul li, .product_menu ul li a:hover ul li{
    visibility: visible;
    overflow: visible;
    height:40px;/*サブメニューの高さ*/
    z-index: 10;
    }
    .product_menu * {
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    }
}

@media print, screen and (min-width:980px) {
    .product_menu {
    margin:0;
    margin-bottom: 30px;
    width: 100%;
    z-index: 99999;
    }
    .product_menu ul{
    margin:0;
    padding:0;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    }
    .product_menu ul li {
    list-style: none;
    margin:0;
    padding:0;
    font-size:12px;
    float: left;
    position: relative;
    width: 100%;
    /*親メニューの幅*/
    height: 40px;/*親メニューの高さ*/
    line-height: 40px;
    background::;/*親メニューの背景色*/
    color: #333;/*親メニューの文字色*/
    text-align:center;
    font-weight:bold;

    white-space: nowrap;
    box-sizing:border-box;
    }
    .product_menu ul li:last-child {
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li a {
    color: #4D4D4D;
    display: block;
    text-decoration: none;
    border: 1px solid #e4e7ec;
    border-right: none;
    box-sizing:border-box;
    background:url(../images/share/bg_white_trance.png) repeat;
		font-size: 0.7em;
    padding: 0 1em;
    }
    .product_menu ul li:hover, .product_menu ul li a:hover {
    background:#EEE;/*ホバー時の親メニューの背景色*/
    color:#fff;/*ホバー時の親メニューの文字色*/
    box-shadow: inset 0 0 10px #DDD;
    box-sizing: border-box;
    }
    .product_menu ul li ul {
    position: absolute;
    top: 40px;/*親メニューの高さと同じにする*/
    width: 100%;/*親メニューの幅*/
    z-index: 100;
    display: block;
    }
    .product_menu ul li ul li {
    visibility: hidden;
    overflow: hidden;
    width: 100%;/*サブメニューの幅*/
    height: 0;
    font-size: 11px;
    font-weight: normal;
    background:url(../images/share/bg_white_trance.png) repeat;
    /*border-bottom: 1px solid #DDD;
    border-left: 1px solid #DDD;
    border-right: 1px solid #DDD;*/
    border-right: 1px solid #e4e7ec;
    }
    .product_menu ul li ul li:hover, .product_menu ul li ul li a:hover {
    background:url(../images/bg_tab_active.png) repeat;
    }
    .product_menu ul li:hover ul li, .product_menu ul li a:hover ul li{
    visibility: visible;
    overflow: visible;
    height:40px;/*サブメニューの高さ*/
    z-index: 10;
    }
    .product_menu * {
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
    }
}