/* ===== 基本スタイル ===== */

#top-head {
	width: 100%;
    height: auto;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 40px;
    left: 0;
    z-index: 999;
    transition: top 0.3s ease;
}

#top-head .inner {
    width: 100%;
    height: 65px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

#top-head .logo {
	width: 180px;
    height: 45px;
	position: absolute;
	top: 10px;
	left: 30px;
	background-image: url("../img/logo.webp");
	background-repeat: no-repeat;
	background-size: 100% auto;
}

#global-nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0 120px 0 0;
    box-sizing: border-box;
}

#global-nav ul li {
    margin: 0 20px 0 0;
    padding: 0;
    box-sizing: border-box;
}
#global-nav ul li:last-child {
    margin: 0;
}

#global-nav ul li a {
    display: block;
    padding: 15px 5px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2em;
    color: #000;
    text-decoration: none;
}
.gm-sp {
    display: none;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2em;
    color: #fff;
    text-decoration: none;
}
#global-nav ul li a.link.marker {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 5px 5px;
    margin: 0;
  color: #000; /* 通常時 */
  transition: color .3s ease;
}
#global-nav ul li a.link.marker::before {
  content: "";
    border-bottom: 1px solid #c40018;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform .3s ease;
  z-index: -1;
}
#global-nav ul li a.link.marker:hover {
  color: #c40018 !important; /* ← 優先度を上げる */
}
#global-nav ul li a.link.marker:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

#nav-toggle .menu-label {
    display: none;
}

.fixed-recruit, .fixed-contact {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2em;
    color: #fff;
    text-decoration: none;
    background-color: #c40018;
    width: 100px;
    text-align: center;
    padding: 10px 0;
    transition: 0.3s;
}
.fixed-recruit {
    position: fixed;
    top: 55px;
    right: 20px;
    z-index: 900;
    transition: top 0.3s ease;
}
.fixed-contact {
    position: fixed;
    top: 95px;
    right: 20px;
    z-index: 900;
    transition: top 0.3s ease;
}
.fixed-recruit:hover, .fixed-contact:hover {
    transition: 0.3s;
    background-color: #80000F;
}
.mobile-head__since {
    display: none;
}


@media screen and (max-width: 899px) {
.mobile-head__since {
    display: block;
    text-align: left;
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, "sans-serif";
    font-size: 9px;
    font-weight: 600;
    padding: 0;
    margin: 0;
    line-height: 1.1em;
    position: absolute;
    bottom: 10px;
    left: 170px;
}
.fixed-recruit {
    width: auto;
    height: 55px;
    padding: 0 7px;
    position: fixed;
    top: 5px;
    right: 55px;
    font-size: 15px;
    line-height: 55px;
    text-align: center;
}
.fixed-contact {
    display: none;
}
#top-head {
	width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
#top-head .inner {
    width: 100%;
    height: 60px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    background-color: #fff;
    border-top: 5px solid #c40018;
}

#top-head .logo {
	width: 150px;
    height: 37px;
	position: absolute;
	top: 14px;
	left: 10px;
	background-image: url("../img/logo.webp");
	background-repeat: no-repeat;
	background-size: 100% auto;
}

  #global-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(42,75,140,0.90);
    z-index: 998;
    overflow-y: auto;
    padding-top: 90px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-30px); /* 上に隠れた状態 */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
  }

  /* 展開時 */
  #global-nav.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* ===== メニュー内のレイアウト ===== */
  #global-nav ul {
    display: block;
    text-align: left;
    width: 90%;
    margin: 0 auto;
    padding: 0;
  }

  #global-nav ul li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #fff;
	border-collapse: collapse;      
  }

  #global-nav ul li a, #global-nav ul li a.link.marker {
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    display: block;
    padding: 15px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #fff;
    text-decoration: none;
  }

.gm-sp {
    display: block;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2em;
    color: #fff;
    text-decoration: none;
}

  /* ===== サブメニュー（常時展開） ===== */
  #global-nav .sb-inner {
    position: static;
    opacity: 1;
    visibility: visible;
    border: none;
    padding: 0;
    background: transparent;
  }

  #global-nav ul li.has-submenu > a, #global-nav ul li a.link.marker {
    font-weight: 600;
    font-size: 17px;
    padding-bottom: 15px;
    color: #fff;
  }
  #global-nav ul li a.link.marker,
  #global-nav ul li a.link.marker:hover {
    color: #fff !important;
    transition: none !important;
  }

  /* ::before 疑似要素を完全に無効化（非表示／アニメなし） */
  #global-nav ul li a.link.marker::before,
  #global-nav ul li a.link.marker:hover::before {
    display: none !important;
    transform: none !important;
    transform-origin: none !important;
    transition: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }

  #global-nav ul li.has-submenu .submenu {
    display: block;
    width: 90%;
    margin: 0 auto 20px;
      padding: 10px 0;
    grid-template-columns: 1fr;
  }

  #global-nav .submenu li {
    text-align: left;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6em;
    padding-left: 0.5em;
      border: none;
      margin-bottom: 7px;
  }
    #global-nav > ul > li:first-child {
    background-image: none;
	background-position: center 88%;
	background-repeat: no-repeat;
	background-size: 10px auto;
}

  #global-nav .submenu li a {
      text-align: left;
    display: block;
    padding: 8px 0;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
  }

  #global-nav .submenu li img {
    display: none !important;
  }

  /* ===== ハンバーガー全体 ===== */
  #nav-toggle {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 5px;
    background-color: #2a4b8c;
    height: 55px;
    width: 55px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
      padding: 13px 0 0;
    z-index: 999;
  }

  #nav-toggle .bars {
    position: relative;
    width: 30px;
    height: 32px;
    display: flex;
    justify-content: center;
  }

  #nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: .3s;
  }

  #nav-toggle span:nth-child(1) { top: 0; }
  #nav-toggle span:nth-child(2) { top: 9px; }
  #nav-toggle span:nth-child(3) { top: 18px; }

  #nav-toggle .menu-label {
    display: inherit;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 400;
    font-size: 10px;
      letter-spacing: 1px;
      
    color: #fff;
    text-align: center;
    margin-top: 0;
    line-height: 1;
  }

  /* 開閉アニメーション */
  #nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  #nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  #nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

