/*右上のメニュー*/

.nav-lock-scroll {
  overflow: hidden;
}
.nav-button {
  position: fixed;
  top: 10px;
  right: -20px;
  width: 50px;
  overflow: hidden;
  z-index: 2100;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: block;
  font-size: 2.5rem;
}
.nav-button:before {
  display: block;
  text-align: center;
}
.nav {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  padding-top: 70px;
  color: #333;
  z-index: 2000;
  overflow-x: hidden;
  overflow-y: auto;
}
.nav ul {
  background: #fff;
  display: block;
  position: relative;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.nav ul ul {
  background: #fff;
  line-height: 40px;
}
.nav li {
  cursor: pointer;
  line-height: 40px;
  font-size: 1.5rem;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.nav li.nav-active > a,
.nav li:hover > a {
  color: #333;
  background: #fff;
  height: 40px;
}
.nav li li.nav-active > a,
.nav li li:hover > a {
  height: 40px;
}
.nav .nav-submenu > ul {
  margin-left: 10px;
  border: #ddd solid 1px;
}
.nav .nav-submenu > a {
  padding-right: 30px !important;
}
.nav a,
.nav a:active,
.nav a:hover {
  display: block;
  position: relative;
  padding: 0 3px;
  color: #fff;
  text-decoration: none;
}
.nav li li a,
.nav li li a:active {
  display: block;
  position: relative;
  padding: 0 5px;
  color: #333;
  text-decoration: none;
}

.nav li a:hover {
  color: #fff;
  background-image: radial-gradient( circle farthest-corner at 50.3% 44.5%,  rgba(116,147,179,1) 0%, rgba(62,83,104,1) 100.2% );
}
.nav .nav-submenu > a:after {
  position: absolute;
  display: block;
  right: 20px;
  top: 0px;
  font-size: 1.5rem;
  font-family: "FontAwesome";
  content: "\f107";
}

/* * 修正点 1: デスクトップ表示のブレークポイント
 * (min-width: 1400px) -> (min-width: 960px) に変更
 * サイト全体の 960px ブレークポイントに合わせる
 */
@media only screen and (min-width: 960px) {
  .nav_right {
    position: fixed;
    top: 0;
    right: 0;
    padding-right: 5px;
  }
  .nav-button {
    display: none;
  }
  .nav {
    display: block;
    position: relative;
    left: 0;
    bottom: auto;
    overflow: visible;
    padding: 0 !important;
    background: none;
  }
  .nav ul {
    background: none;
  }
  .nav li {
    position: relative;
    white-space: nowrap;
    font-size: 1.5rem;
    height: 70px;
    line-height: 70px;
  }
  .nav li.nav-active > a,
  .nav li:hover > a {
    height: 70px;
  }
  .nav > ul > li {
    display: inline-block;
  }
  .nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    /*border: solid 1px #ddd;*/
    border-top: none;
  }
  .nav li li {
    height: 40px;
    line-height: 40px;
  }
  .nav ul ul li.nav-left > ul {
    left: auto;
    right: 95%;
  }
  .nav-no-js .nav li:hover > ul {
    display: block;
  }
  .nav .nav-submenu > a:after {
    top: 0px;
    right: 10px;
  }
  .nav .nav-submenu li {
    min-width: 110px;
  }
  .nav .nav-submenu > ul {
    margin: 0;
  }
}

/* * 修正点 2: モバイル表示のブレークポイント
 * (max-width: 1401px) -> (max-width: 959px) に変更
 * (min-width: 960px) の反対側を定義
 */
@media only screen and (max-width: 959px) {
  .nav {
    width: 250px;
  }
  .nav ul {
    border: #ddd solid 1px;
  }
  .nav ul ul {
    border: none !important;
  }
  .nav a,
.nav a:active,
.nav a:hover {
  color: #333;
}
.nav .nav-submenu > ul {
  margin-left: 0;
}
.nav li li a {
  padding-left: 10px;
}
.nav li li a:hover {
  color: #fff;
}

}

/* * 修正点 3: 既存の 960px ルール（維持）
 * これは主にモバイル時のヘッダー高さ(50px)に対応する調整
 * (max-width: 959px) のルールと共存
 */
@media only screen and (max-width: 960px) {
  .nav-button {
    position: fixed;
    top: 5px;
    font-size: 2rem;
  }
  .nav {
    padding-top: 50px;
  }
  .nav .nav-submenu > ul {
    margin-left: 0;
    border: none;
  }
}