@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;700&display=swap");

header {
  background: #1F2C5D;
  color: #fff;
}
header ul li {
  color: #fff;
}
header ul li h1 {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
[data-element-id] .side-banar {
  position: fixed;
}
#dropmenu {
  max-width: 1200px;
}
#gnav {
  background: #1F2C5D;
}
#gnav ul li {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
#gnav ul li a {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
#gnav.fixed {
  background: #1F2C5D;
}
.font-notoserif {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
.font-notoserif a {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
.footfix .contactbtn {
  background: #1f2c5d;
}
.top-recruit .back_g {
  background: #1F2C5D;
}

/* フッター */
footer {
  background: #1F2C5D;
  padding: 0;
}
footer .g-map {
  width: 100%;
  height: 400px;
}
footer .g-map iframe {
  width: 100%;
  height: 100%;
}
footer .inner {
  display: flex;
}
footer .inner>div {
  width: 48%;
  margin: 0 auto;
}
footer .footer_box {
  background: initial
}

footer .inner .footer-logo {
  margin: 0 auto 10px auto;
}
footer .inner .logo {
  background: #fff;
  padding: 2%;
}
footer .footer_inner li+li {
  margin-top: 10px;
}
.footer_address dt , .footer_address dd {
  font-family: "Noto Serif JP", serif;
  color: #fff;
}
footer .footer_box {
  padding: 50px;
}
footer .footer-right {
  padding: 50px;
  display: flex;
}
footer .footer-right ul {
  width: 48%;
  margin: 0 auto;
}
footer .footer-right ul li {
  margin-bottom: 5px;
}
footer .footer-right ul li a {
  color: #fff;
  font-family: "Noto Serif JP", serif;
}
footer .copy {
  margin-top: 0;
}
.c-navy {
  color: #1F2C5D;
}

@media (max-width: 1024px){
  footer .g-map {
    height: 300px;
  }
  footer .footer-right {
    padding: 50px 20px;
  }
}

@media (max-width: 599px){
  footer .g-map {
    height: 250px;
  }
  footer .inner {
    display: block;
  }
  footer .inner>div {
    width: 100%;
  }
  footer .footer-right {
    padding: 0 50px 50px;
  }
  footer .footer-right ul {
    display: flex;
    flex-wrap: wrap;
  }
}

/* サイドメニュー */
/* メニュー全体の固定配置 */
.side-menu {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%); /* 画面の上下中央に配置 */
  z-index: 9999;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各メニュー項目のスタイル */
.side-menu-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  cursor: pointer;
  position: relative;
  /* 右端を基準にするため、あらかじめ右に隠す準備 */
}

/* アイコン部分のスタイル */
.menu-icon {
  width: 50px;
  height: 50px;
  background-color: #002d62; /* 濃い青（サイトのイメージ色） */
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  z-index: 2; /* アイコンを文字より前面に出す */
  box-shadow: -2px 2px 5px rgba(0,0,0,0.2);
}

.menu-icon img {
  width: 70%;
}

/* ホバー時に出てくる要素のスタイル */
.menu-content {
  position: absolute;
  right: 50px; /* アイコンの横幅分、左に配置 */
  height: 50px;
  white-space: nowrap; /* 文字の折り返しを防ぐ */
  background-color: #002d62;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 14px;
  z-index: 1;
  font-family: "Noto Serif JP", serif;
  
  /* アニメーションの設定：最初は右側に隠す */
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none; /* 隠れている時はクリック等に反応させない */
}

/* 1. 【追加】aタグ自体の装飾をリセットし、親要素いっぱいに広げる */
.side-menu-item a {
  text-decoration: none; /* 下線を消す */
  color: inherit;        /* 文字色を親要素(白)に合わせる */
  display: flex;         /* 横並びを維持する */
  align-items: center;
  width: 100%;
  height: 100%;
}

/* 2. 【変更】ホバーの対象をaタグに変更（挙動を安定させるため） */
.side-menu-item a:hover .menu-content {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-menu-item a:hover .menu-icon {
  background-color: #00408c; /* ホバー時のアイコン色変化 */
}

@media (max-width: 1024px){
  .side-menu {
    display: none;
  }
}
