/* ヘッダー
-------------------------------------------*/
header {
  width: 100%;
  background-color: rgba(var(--navbar-bg-rgb), 1);
  position: fixed;
  z-index: 300;
}

header h1 a img {
  display: block;
  position: absolute;
  transition: all 0.3s 0s ease;
  -webkit-transition: all 0.3s 0s ease;
  -moz-transition: all 0.3s 0s ease;
}

header #language-switcher a {
  display: block;
  position: absolute;
  text-decoration: none;
  transition: 0.3s linear;
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
}

@media screen and (min-width:768px) {

  /* ヘッダー
-------------------------------------------*/
  header {
    height: 130px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
    -moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 3px 0px;
    position: fixed;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
  }

  header h1 a img {
    top: 30px;
    left: 10px;
  }

  header #language-switcher a {
    width: auto;
    top: 30px;
    right: 10px;
  }

  header.fixed {
    height: 100px;
  }

  header.fixed h1 a img {
    height: 28px;
    top: 28px !important;
  }

  header.fixed #language-switcher a {
    top: 16px !important;
  }

  .toggle_btn,
  .btn_close {
    display: none;
  }

  /* PCグローバルナビ
-------------------------------------------*/
  #g_nav {
    width: 100%;
    display: block;
    height: 50px;
    position: absolute;
    z-index: 1000;
    left: 0 !important;
    bottom: 0px;
    font-size: 0.875em;
    font-weight: 500;
  }

  #g_nav ul.nav_base {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    display: flex;
    justify-content: space-around;
  }

  #g_nav ul li {
    display: block;
  }

  #g_nav li a {
    width: auto;
    padding: 15px;
    height: 50px;
    display: block;
    color: var(--navbar-li);
    text-decoration: none;
    text-align: center;
    line-height: 20px;
    position: relative;
  }

  #g_nav li a::before {
    display: block;
    height: 2px;
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;
    background-color: --var(primary);
    content: '';
    transition: 0.2s linear;
    -webkit-transition: 0.2s linear;
    -moz-transition: 0.2s linear;
  }

  #g_nav li a:hover::before,
  #g_nav li a.active::before {
    background-color: var(--accent-color);
    top: 48px;
  }

  .fixed #g_nav li a::before {
    top: 38px;
  }

  #g_nav li a:hover,
  #g_nav li a.active,
  #g_nav ul li:hover > a {
    color: var(--navbar-li);
  }

  #g_nav ul li:hover > a.ac_menu {
    position: relative;
  }

  header.fixed #g_nav {
    height: 40px;
  }

  header.fixed #g_nav li a {
    padding-top: 10px;
    padding-bottom: 10px;
    height: 40px;
  }
}

@media screen and (min-width: 1200px) {
  header #language-switcher a {
    right: 50%;
    margin-right: -600px;
  }

  header h1 a img {
    left: 50%;
    margin-left: -600px;
    height: 32px;
  }
}

@media screen and (max-width: 1199.98px) {
  header {
    height: 120px;
  }

  header h1 a img {
    height: 28px;
  }

  #g_nav li a {
    padding: 15px 10px;
  }
}

@media screen and (max-width: 1047.98px) {
  #g_nav li a {
    padding: 10px 6px;
    height: 40px;
  }
}

@media screen and (max-width: 991.98px) {
  header {
    height: 110px;
  }
  
  header h1 a img {
    height: 24px;
  }
}

@media screen and (max-width: 879.98px) {
  header h1 a img {
    height: 20px;
  }
  #g_nav li a {
    font-size: 0.9em;
    padding: 5px;
  }
}

@media screen and (max-width: 793.98px) {
  #g_nav li a {
    padding: 2px 4px;
  }
}

@media screen and (max-width: 767.98px) {
  body.fixed {
    overflow: hidden;
  }
  #g_nav li a {
    font-size: 1.125em;
  }

  /* ヘッダー
-------------------------------------------*/
  header {
    height: 60px;
  }

  header h1 a img {
    top: 20px;
    left: 10px;
    height: 24px;
  }

@media screen and (max-width: 699.98px) {
  header h1 a img {
    height: 22px;
  }
}

@media screen and (max-width: 657.98px) {
  header h1 a img {
    height: 20px;
  }
}

@media screen and (max-width: 574.98px) {
  header h1 a img {
    top: 14px;
    height: 36px;
  }
}

@media screen and (max-width: 479.98px) {
  header h1 a img {
    height: 34px;
  }
}

@media screen and (max-width: 431.98px) {
  header h1 a img {
    height: 32px;
  }
}

@media screen and (max-width: 359.98px) {
  header h1 a img {
    top: 18px;
    height: 28px;
  }
}


  header #language-switcher a {
    top: 18px;
    right: 48px;
  }

  /* トグルボタン
-------------------------------------------*/
  .toggle_btn {
    display: block;
    height: 44px;
    width: 32px;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
    position: fixed;
    z-index: 5000;
    top: 8px;
    right: 10px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    cursor: pointer;
  }

  .toggle_btn:hover {
    cursor: pointer;
  }

  .toggle_btn span {
    width: 28px;
    height: 2px;
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -14px;
    background-color: var(--navbar-li);
  }

  .toggle_btn span {
    transition: all 0.3s;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
  }

  .toggle_btn span.top {
    transform: translateY(-8px);
    -webkit-transform: translateY(-8px);
    -moz-transform: translateY(-8px);
  }

  .toggle_btn span.bottom {
    transform: translateY(8px);
    -webkit-transform: translateY(8px);
    -moz-transform: translateY(8px);
  }

  .toggle_btn:hover span.top {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    -moz-transform: translateY(-10px);
  }

  .toggle_btn:hover span.bottom {
    transform: translateY(10px);
    -webkit-transform: translateY(10px);
    -moz-transform: translateY(10px);
  }

  .toggle_btn.opened span.middle {
    background: rgba(255, 255, 255, 0);
    transform: translateX(30px);
    -webkit-transform: translateX(30px);
    -moz-transform: translateX(30px);
  }

  .toggle_btn.opened span.top {
    transform: rotate(-45deg) translateY(0px);
    -webkit-transform: rotate(-45deg) translateY(0px);
    -moz-transform: rotate(-45deg) translateY(0px);
  }

  .toggle_btn.opened span.bottom {
    transform: rotate(45deg) translateY(0px);
    -webkit-transform: rotate(45deg) translateY(0px);
    -moz-transform: rotate(45deg) translateY(0px);
  }

  /* グローバルナビ
-------------------------------------------*/
  #g_nav {
    position: fixed;
    width: 80%;
    height: 100%;
    top: 0px;
    left: 100%;
    padding-top: 60px;
    overflow: auto;
    z-index: 3000;
    background-color: var(--navbar-bg);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 0px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 0px;
    -moz-box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 3px 0px;
    font-size: 14px;
    letter-spacing: 0.05rem;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
  }

  #g_nav ul {
    display: block;
    margin: 0px;
    padding: 0px;
    clear: both;
  }

  #g_nav ul li:first-child {
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #EEE;
  }

  #g_nav ul li {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #EEE;
  }

  #g_nav ul li a {
    color: var(--navbar-li);
    text-decoration: none;
    display: block;
    padding-top: 16px;
    padding-right: 30px;
    padding-bottom: 14px;
    padding-left: 20px;
    line-height: 22px;
    vertical-align: middle;
  }

  #g_nav ul li a:hover {
    color: var(--primary);
  }

  /* メニューシャドウ
-------------------------------------------*/
  .bg_bl {
    background-color: var(--bg-default);
    height: 100%;
    width: 100%;
    opacity: 0.80;
    filter: alpha(opacity=80);
    -ms-filter: "alpha( opacity=80 )";
    display: block;
    position: fixed;
    z-index: 2000;
  }
}