header {
  overflow: visible;
  top: 0;
  left: 0;
  z-index: 100;
  -moz-transition: height 0.3s;
  -o-transition: height 0.3s;
  -webkit-transition: height 0.3s;
  transition: height 0.3s;
}
/* サイトロゴ */
header h1#site-logo {
  line-height: 2;
  font-family: "Limelight", cursive;
  font-size: 6rem;
  color: white;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}

/* 縮小時のサイトロゴ */
header.smaller {
  margin-top: 0;
  display: inline-flex;
  width: 100%;
}
header.smaller nav {
  display: block;
  width: 1500px;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
header.smaller ul.main_header {
  width: 1500px;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
}
header.smaller .logo_a img {
  width: 30%;
}
/*** respponsive_nav ***/
#top-head {
  position: relative;
  display: block; /* display: none; を削除またはコメントアウト */
  left: 0;
  width: 220px; /* サイドメニューの幅を調整 */
  aspect-ratio: 1430/748;
  max-height: 748px;
  color: #fff; /* テキスト色を設定 */
  padding: 20px 10px; /* パディングを調整 */
  z-index: 1000; /* 必要に応じてz-indexを調整 */
}

header nav {
  display: none;
}
header nav#global-nav {
  display: block;
}
.nav_middle {
  display: block;
}
#top-head {
  position: relative;
  display: block;
}
#top-head, .inner {
  width: 220px;
  padding: 0;
}
#top-head {
  margin-top: 0;
}
#logo-head {
  width: 220px;
  height: 220px;
  z-index: 999;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
}
.logo {
  background-color: white;
}
/* メニューのhover機能使う時は以下を使う */
/* #global-nav a {
  transition: background-color 0.3s ease, text-decoration-color 0.3s ease;
  text-decoration: none; 下線を非表示に 
  padding: 5px 10px; パディングを追加 
  display: inline-block; 背景色を適切に表示 
}

#global-nav a:hover {
  background-color: #f12454; ホバー時の背景色 
  text-decoration: underline; 下線を表示 
  text-decoration-color: #ffffff; 下線の色 
} */

.logo img {
  position: relative;
  width: 99%;
  height: 99%;
  margin-top: 10%;
}

#global-nav {
  display: none;
  position: relative;
  width: 220px; /* 親要素に合わせて幅を設定 */
  height: calc(748px - 220px - 20px);
  padding: 10px 0; /* パディングを調整 */
  opacity: 1; /* 透明度を調整 */
  z-index: 9;
}
#global-nav ul {
  list-style: none;
  margin-top: 30px;
}

#global-nav ul li {
  float: none; /* floatスタイルをなしに */
  display: block; /* ブロック要素として表示 */
}

#global-nav ul li a {
  color: #fff; /* リンクのテキスト色を白に */
  padding: 10px; /* パディングを調整 */
  cursor: pointer;
}
#top-head #global-nav ul li a {
  display: block;
  color: #fff;
  padding: 0 18px;
  font-family: Koulen;
  font-size: 20px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: 0em;
  text-align: left;
}

.global-nav-service-sub {
  list-style-type: none;
  margin-top: 0 !important;
  margin-bottom: 10px;
}
.global-nav-service-sub li {
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
}
.global-nav-service-sub li::before {
  width: 10px;
  content: "-";
  color: #fff;
  margin-left: 15px;
  margin-right: 5px;
}
.global-nav-service-sub li a {
  width: 100%;
  padding: 0 !important;
  font-family: Noto Sans !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0em !important;
  text-align: left !important;
  line-height: 20px !important;
}
#global-nav p {
  position: absolute;
  right: 0;
  bottom: 80px;
  color: white;
  font-size: 10px;
  font-family: Noto Sans;
  writing-mode: vertical-rl;
}
.scroll-down-bar {
  position: absolute;
  width: 1px;
  height: 47px;
  bottom: 0px;
  right: 7px;
  background-color: #fff;
}

.inner {
  width: 100vw;
}
/* Toggle Button */
#nav-toggle {
  display: none;
  position: fixed;
  right: 0;
  width: 220px;
  height: 220px;
  cursor: pointer;
  z-index: 1000;
  /* padding: 1%; */
  /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f15a24+18,ff0000+100 */
  background: #ffffff; /* Old browsers */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f15a24', endColorstr='#ff0000', GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
}
#nav-toggle div {
  padding: 0 20px;
}
#nav-toggle span:nth-child(1) {
  top: 24px;
}
#nav-toggle span:nth-child(2) {
  top: 30px;
}
#nav-toggle span:nth-child(3) {
  top: 36px;
}
#nav-toggle {
  display: block;
}
#nav-toggle div {
  position: relative;
}
#nav-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 20px;
  background: #8C8C8C;
  -webkit-transition: .35s ease-in-out;
  -moz-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
}
/* #nav-toggle 切り替えアニメーション */
.open #nav-toggle div {
  top: 15px;
}
.open #nav-toggle span:nth-child(1) {
  top: 15px;
  -webkit-transform: rotate(315deg);
  -moz-transform: rotate(315deg);
  transform: rotate(315deg);
}
.open #nav-toggle span:nth-child(2) {
  width: 0;
  display: none;
}
.open #nav-toggle span:nth-child(3) {
  top: 16px;
  -webkit-transform: rotate(-315deg);
  -moz-transform: rotate(-315deg);
  transform: rotate(-315deg);
}
/* #global-nav スライドアニメーション */
.open #global-nav {
  margin: 0;
  display: block !important;
  position: fixed;
  background: #1E1E1E99;
  left: calc(100% - 220px - 18px);
  width: 220px;
  z-index: 9;
}
#global-nav {
  display: none !important;
}

#nav-toggle {
  width: 60px;
  height: 60px;
}

#top-head {
  width: 100vw;
  aspect-ratio: 1430/748;
  background: none;
}
#logo-head {
  width: 100%;
  height: 100px;
  justify-content: normal;
  align-items: normal;
  background: none;
}
#top-head .logo {
  position: fixed;
  width: 60px;
  height: 60px;
}

@media screen and (min-width: 800px) {
  #logo-head {
    width: 220px;
    height: 220px;
    z-index: 999;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
  }

  #logo-head {
    width: 100%;
    height: 160px;
    justify-content: normal;
    align-items: normal;
    background: none;
  }

  #top-head .logo {
    position: fixed;
    width: 120px;
    height: 120px;
  }
  
  #nav-toggle {
    width: 120px;
    height: 120px;
  }

  #nav-toggle span {
    display: block;
    position: absolute;
    height: 4px;
    width: 80px;
    background: #8C8C8C;
    -webkit-transition: .35s ease-in-out;
    -moz-transition: .35s ease-in-out;
    transition: .35s ease-in-out;
  }  

  #nav-toggle div {
    padding: 0 20px;
  }
  #nav-toggle span:nth-child(1) {
    top: 34px;
  }
  #nav-toggle span:nth-child(2) {
    top: 60px;
  }
  #nav-toggle span:nth-child(3) {
    top: 86px;
  }

  /* #nav-toggle 切り替えアニメーション */
  .open #nav-toggle div {
    top: 30px;
  }
  .open #nav-toggle span:nth-child(1) {
    top: 30px;
    -webkit-transform: rotate(315deg);
    -moz-transform: rotate(315deg);
    transform: rotate(315deg);
  }
  .open #nav-toggle span:nth-child(2) {
    width: 0;
    display: none;
  }
  .open #nav-toggle span:nth-child(3) {
    top: 30px;
    -webkit-transform: rotate(-315deg);
    -moz-transform: rotate(-315deg);
    transform: rotate(-315deg);
  }
}
