@charset "UTF-8";
/* CSS Document */

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
}

ul, ol, li {
    list-style:none;
}


header {
    width:100%;
    position:absolute;
    top:0;
    left:0;
    z-index:1000;
    font-size:15px;
}


/*.upper_header {
    width:100%;
    height:60px;
    background:#259858;
    padding:10px 30px 0;
}*/


.upper_header {
    width:100%;
    height:60px;
    background:#259858;
    padding:10px 30px 0;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items:center;
}


/* logo */
/*.logo {
    display:block;
    position: absolute;
    left:30px;
    top:20px;
    width:30%;
    max-width:350px;
}*/


.nishitetsu {
    display:block;
    width:88px;
}


.nishitetsu img {
    width:100%;
}


.logo_metal {
    display:block;
    width:230px;
}

.logo_metal img {
    width:100%;
}



header a {
    text-decoration:none;
    color:#000;
}

/* トップページのみ */
#index header a {
    text-decoration:none;
    color:#FFF;
}


/* PC閲覧時のメガメニュー */
#hanburger {
    display: none; /* チェックボックスを非表示 */
}
 
.menu_button {
    display: none; /* ハンバーガーメニューのボタンを非表示 */
}
 
.global_menu { /* メニュー全体のスタイル */
    width: 100%;
    position:relative;
    padding: 20px 30px 0;
    text-align: right;
     
  }


.menu, .global_menu > li {
    display:inline-block;
}


.menu, .global_menu > li > a {
    font-weight:600;
    padding:15px 20px;
}


@media all and (max-width:1280px) {
.logo {
    display:block;
    position: absolute;
    left:30px;
    top:27px;
    width:30%;
    max-width:250px;
}
    
    
.global_menu {
    width: 100%;
    position:relative;
    padding: 20px 20px 0;
    text-align: right;
     
  }
    
    
.menu, .global_menu > li > a {
    font-weight:600;
    padding:15px 10px;
    display:inline-block;
}    
}


.lastmenu {
    padding: 0;
}

.menu:last-child,
.menu:last-child > a {
    background:#006c2e;
    color:#FFF;
}
.menu:last-child a {
    padding:10px 15px;
    display: block;
    border:1px solid #FFF;
}


.child_menu a {
    display:block;
    padding:10px;
}

.menu:hover {
    background-color: rgba(0,108,46,.7);
}

.menu:last-child:hover,
.menu:last-child:hover > a {
    background: #006c2e;
}


.child_menu { /* 下層メニューのスタイル */
    width: 100%;
    position: absolute;
    top: 100%; /* 親項目の直下に配置 */
    left: 0;
    padding: 30px;
    color: #333; /* 文字色 */
    background-color: rgba(0,108,46,.7); /* 背景色 */
    visibility: hidden; /* 下層メニューを非表示 */
    text-align:left;
}


.child_menu > ul {
    width:96%;
    max-width:1000px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
}


.child_menu > ul > li {
    display:inline-block;
    width:25%;
    padding:10px;
}


.menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
    visibility: visible; /* 下層メニューを表示 */
}


/*.child_menu > ul > li > a {
    font-size: 1.4em;
}*/

.child_menu > ul > li > a::before {
    content:"\f0da";
    font-family: "Font Awesome 5 Free";
    font-weight:900;
    padding:0 8px 0 0;
}


.child_menu > ul > li > a:hover {
    background-color: rgba(0,108,46,.7);
}
 
.child_menu a:hover {
    color: #fff;
}



@media screen and (max-width: 1024px) {
.upper_header {
    width:100%;
    height:60px;
    background:#006c2e;
    padding:12px 10px 0;
}
    
/*.logo {
    display: none;
    position: absolute;
    left:80px;
    top:30px;
    width:30%;
    max-width:350px;
}*/


.nishitetsu {
    display:none;
}

.logo img,
.logo_metal img {
    width:100%;
}

    
    
.menu_button { /* ボタンのスタイル */
    display:block;
  width: 50px; /* 幅 */
  height: 50px; /* 高さ */
  position: fixed;
  top: 5px;
  right: 10px;
  background: #019841; /* 背景色 */
  z-index: 10;
}
    
.menu_button::before { /* アイコンのスタイル */
  font-family: "Font Awesome 5 Free";
  content: "\f0c9"; /* アイコン「３本線」 */
  font-weight: 900;
  position: absolute;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}
 
#hanburger:checked + .menu_button::before { /* アイコンのスタイル（チェック済み） */
  content: "\f00d"; /* アイコン「×印」 */
}
    
.global_menu { /* メニュー全体のスタイル */
  visibility: hidden; /* メニューを非表示 */
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  padding: 80px 30px 30px;
  color: #333; /* 文字色 */
  background-color: rgba(0,108,46,1);
  overflow-y:  scroll;
  text-align: center;
}
 
#hanburger:checked ~ .global_menu { /* メニュー全体のスタイル（チェック済） */
  visibility: visible; /* メニューを表示 */
}
    
    
.menu, .global_menu > li {
    display:block;
    padding:5px;
}
    
.menu > a {
    display:block;
    border:1px solid #FFF;
    padding:10px;
}
    
.menu:last-child > a {
    background:#00441d;
    border:1px solid #FFF;
    color:#FFF;
    padding:10px 5px;
}
    
    
.child_menu { /* 下層メニューのスタイル */
    width: 100%;
    position:static;
    top:auto;
    left:auto;
    padding: 0px;
    color: #333; /* 文字色 */
    background-color: rgba(0,108,46,.5); /* 背景色 */
    visibility: hidden; /* 下層メニューを非表示 */
    display:none;
    text-align:center;
}
    
    
.menu:hover .child_menu { /* 下層メニューのスタイル（親項目ホバー時） */
    visibility: visible; /* 下層メニューを表示 */
    display:block;
}


.child_menu > ul {
    width:96%;
    max-width:1000px;
    margin:0 auto;
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-start;
}


.child_menu > ul > li {
    display:inline-block;
    width:100%;
    padding:5px 0;
}
    
.child_menu > ul > li > a {
    font-size: 0.9em;
    font-weight:normal;
}
}


.midnightHeader.default {
  background: none;
  color: black;
}
.midnightHeader.white {
  background: white;
  color: black;
}

/*li.menu a.sub_menu-c {
    color: #000;
}*/