header {
  position: relative;
  margin-top: 70px;
}

.header-jds-icon {
  position: absolute;
  top: -40px;
  left: 40px;
  height: 150px;
  width: 150px;
  opacity: 0.9;
  z-index: 50;
  font-size: initial;
  font-weight: initial;
}

.header-jice-img {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  padding-right: 30px;
  top: -40px;
  position: relative;
}

.header-jice-img a:hover {
  opacity: var(--opacity);
}

.header-menus {
  /* メニュー全体のスタイル */
  width: 100%;
  top: -30px;
  position: relative;
}

.header-menus>ul {
  /* header-jds-imgのサイズ、leftの値、隙間を引いている */
  width: calc(100% - 150px - 40px - 10px);
  margin: 0 0 0 auto;
  padding-right: 30px;
  text-align: right;
}

.header-menus li {
  display: inline-block;
}

.header-menus a {
  display: block;
}

.header-menu>a {
  padding: 10px;
  color: rgb(var(--blue));
  font-size: 110%;
  font-weight: bold;
}

.header-menu:hover a {
  background: rgb(var(--bg-blue));
  color: rgb(var(--white));
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.has-not-child-menu:hover>a {
  background-color: inherit;
  color: rgb(var(--blue));
  opacity: var(--opacity);
}

.header-child-menu {
  width: 100%;
  min-height: 130px;
  position: absolute;
  z-index: 150;
  /* 親項目の直下に配置 */
  top: 100%;
  left: 0;
  background: rgb(var(--bg-blue));
  color: rgb(var(--white));
  /* 下層メニューを非表示 */
  visibility: hidden;
}

.header-menu:hover .header-child-menu {
  /* 親メニューホバー時、子メニューを表示 */
  visibility: visible;
}

.header-child-menu-box {
  display: flex;
  margin: 30px auto;
}

.header-child-menu-title {
  width: 20%;
  padding-right: 25px;
  border-right: 1px solid rgba(var(--light-gray), var(--opacity));
  font-weight: bold;
}

.header-child-menu ul {
  width: 80%;
  text-align: start;
  padding: 0 16px;
  font-size: 95%;
  font-weight: bold;
}

.header-child-menu .divide-four > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-right: 20px;
}

.header-child-menu li {
  padding: 0 10px 20px 10px;
}

.divide-third li {
  width: calc(33% - 25px);
}

.header-child-menu img {
  vertical-align: middle;
  margin-right: 5px;
}

.header-child-menu a {
  color: rgb(var(--white));
}

.header-child-menu a:hover,
.header-privacies a:hover {
  opacity: var(--opacity);
}

.child-menu-sub {
  color: rgb(var(--white));
  font-size: 85%;
  padding-left: 4px;
  width: 100%;
  font-weight: bold;
  line-height:2;
  margin-top: 15px;
}

.child-menu-sub .border-bottom-blue {
  padding: 0;
  margin: 0;
}

#sp-menu-check {
  display: none;
}

.child-menu-btn {
  display: none;
}

.border-bottom-blue {
  border-bottom: 1.5px solid rgba(var(--bg-blue), 0.5);
}

.hide-on-desktop {
  display: none;
}

@media screen and (min-width: 959px) and (max-width: 1088px) {
	.header-menu>a {
  		padding: 5px;
  		font-size: 108%;
	}
}

@media screen and (max-width: 960px) {

  header {
    position: relative;
    margin-top: 30px;
  }

  .header-jds-icon {
    height: calc(250 / 750 * 100vw);
    width: calc(250 / 750 * 100vw);
	max-width: 130px;
    left: 20px;
    top: -20px;
	background: url("../image/header-jds-logo_sp.png") 0 0 no-repeat;
	background-size: contain;
  }

  header .jds-icon-deco1,
  header .jds-icon-deco2,
  header .jds-icon-title,
  header .jds-icon-body {
	display: none;
  }
	
  header .jds-icon {
	background: none;
  }

  .header-jice-img {
    padding-top: 0;
    padding-right: 70px;
    min-height: 45px;
    top: -15px;
  }

  .header-jice-img a {
    margin: auto 0;
  }

  .sp-menu-btn {
    position: absolute;
    top: -25px;
    right: 0;
    height: 65px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 30;
    background-color: rgb(var(--white));
    border-radius: 3px;
  }

  .sp-menu-btn span,
  .sp-menu-btn span:before,
  .sp-menu-btn span:after {
    content: "";
    display: block;
    height: 3px;
    width: 30px;
    border-radius: 3px;
    background-color: rgb(var(--blue));
    position: absolute;
  }

  .sp-menu-btn span:before {
    bottom: 8px;
  }

  .sp-menu-btn span:after {
    top: 8px;
  }

  #sp-menu-check:checked~.sp-menu-btn span,
  #sp-menu-check:checked~.sp-menu-btn span::before,
  #sp-menu-check:checked~.sp-menu-btn span::after {
    display: none;
  }

  #close-icon {
    display: none;
  }

  #sp-menu-check:checked~.sp-menu-btn #close-icon {
    display: block;
  }

  #sp-menu-check:checked~.header-menus {
    opacity: 1;
    width: 100%;
  }

  #sp-menu-check:checked~.sp-menu-btn span {
    display: none;
  }

  .header-menus {
    opacity: 0;
    width: 0;
    position: absolute;
    right: 0;
    overflow: hidden;
    padding: 200px 0 0 0;
    background: rgb(var(--white));
    transition: all 0.5s ease;
    transform-origin: left center;
    z-index: 20;
  }

  .header-menus ul {
    width: 100%;
    padding: 0;
  }

  .header-menus li {
    display: block;
  }

  .header-menu {
    width: 100%;
    position: relative;
  }

  .header-menu:hover a {
    background: rgb(var(--white));
    color: rgb(var(--blue));
  }

  .header-menu>a {
    text-align: left;
  }

  .header-menu>a,
  .header-child-menu li,
  .header-privacies li {
    width: 90vw;
    margin: 0 auto;
    padding: 20px 0;
    text-indent: 15px;
    font-size: 120%;
  }

  .header-menu>a {
    border-bottom: 1.5px solid rgba(var(--blue), 0.5);
  }

  .header-privacies a {
    text-align: left;
    font-size: 90%;
    color: rgb(var(--blue));
  font-weight: bold;
  }

  .header-privacies li:first-child {
    margin-top: 40px;
  }

  .header-child-menu {
    visibility: visible;
    position: sticky;
    background-color: inherit;
    color: rgb(var(--blue));
  }

  .header-child-menu a {
    color: rgb(var(--blue));
    padding: 4px;
    text-indent: 20px;
  }

  .header-child-menu-title {
    display: none;
  }

  .header-child-menu-box {
    margin: 4px auto;
    display: block;
  }

  .child-menu-label {
    width: 40px;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    position: absolute;
    top: 0;
    left: 85%;
  }

  #plus-icon {
    display: block;
  }

  #minus-icon {
    display: none;
  }

  .child-menu-btn:checked~.child-menu-label #plus-icon {
    display: none;
  }

  .child-menu-btn:checked~.child-menu-label #minus-icon {
    display: block;
  }

  .header-child-menu {
    display: none;
  }

  .child-menu-btn:checked+.child-menu-label+.header-child-menu {
    display: block;
  }

  .child-menu-sub {
	padding-left: 0;
    margin-top: 20px;
	border-top: 1.5px solid rgba(var(--bg-blue), 0.5);
	font-size: 100%;
  }

  .child-menu-sub .border-bottom-blue {
    padding: 20px 0;
	line-height: 1;
	font-size: 90%;
  }

  .child-menu-sub .border-bottom-blue:last-of-type {
	padding-bottom: 0;
	border-bottom: none;
  }

  .child-menu-sub>a {
    color: rgb(var(--blue));
  }

  .close-menu {
    padding: 4% 47%;
    font-weight: bold;
    width: 6%;
    color: rgb(var(--white));
    background-color: rgb(var(--blue));
    margin: 50px auto 0 auto;
    text-align: center;
    font-size: 200%;
    display: block;
  }

  #pc-list {
    display: none;
  }

  #sp-list {
    display: block;
  }

}

@media screen and (min-width: 960px) {

  .sp-menu-btn,
  #close-icon {
    display: none;
  }

  .child-menu-label,
  #plus-icon,
  #minus-icon {
    display: none;
  }

  #pc-list {
    display: block;
  }

  #sp-list {
    display: none;
  }

}