/* ヘッダー ================================================================ */
.header-lang-switcher-sp-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition-property: visibility, opacity;
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}

.header-lang-switcher-sp-overlay.active {
  opacity: 1;
  visibility: visible;
}

.header-sp-dropdown-overlay {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition-property: visibility, opacity;
  visibility: hidden;
  opacity: 0;
  transition-duration: 0.4s;
  transition-timing-function: ease;
}

.header-sp-dropdown-overlay.active {
  opacity: 1;
  visibility: visible;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 11;
  width: 100%;
  padding: 10px 0 0;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-pc {
  display: block;
}

.header-sp {
  display: none;
}

.header-top {
  display: flex;
  justify-content: space-between;
}

.header-logo-wrapper {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0 20px;
}

.header-logo {
  display: block;
  width: 68px;
}

.header-sp-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-box {
  display: block;
  width: fit-content;
  padding: 2px 8px;
  border: solid 1px #242424;
  background-color: #d0d0ca;
  text-align: center;
  transition: 0.4s;
}

.header-logo-box > p:first-of-type {
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 0;
}

.header-logo-box > p:last-of-type {
  font-size: 10px;
  letter-spacing: 0;
}

.header-sub-nav {
  display: flex;
  gap: 0 35px;
}

.header-sub-nav > li > a {
  display: block;
  width: fit-content;
  font-size: 12px;
  transition: 0.4s;
}

/* サイト内検索 */
.searchlink {
  margin: 0;
  position: relative;
}
.searchlink span {
	display: block;
  padding: 0 0 5px 18px;
  background: url("../images/common/bg_h_search.gif") no-repeat 0 45%;
  font-size: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}
.searchlink a {
  display: block;
  font-size: 12px;
}
.searchlink a:link, .searchlink a:visited {
  color: #333;
  text-decoration: none;
}


.header-main-nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 15px;
}

.header-main-nav-item {
  display: flex;
  align-items: center;
}

.header-main-nav-title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 14px;
}

.header-main-nav-title > span {
  transition: 0.4s;
}

.header-main-nav-title.active > span {
  font-weight: 700;
}

.header-main-nav-item:first-of-type > .header-main-nav-title::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 1px;
  height: 23px;
  background-color: #d0d0ca;
}

.header-main-nav-item > .header-main-nav-title::after {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 1px;
  height: 23px;
  background-color: #d0d0ca;
}

.header-main-nav-item:nth-of-type(6) > .header-main-nav-title::after {
  display: none;
}

.header-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background-color: #004190;
  color: #f6f6f6!important;
  font-size: 14px;
  transition: 0.4s;
}

.header-arrow {
  position: relative;
  display: inline-block;
  width: 8.5px;
  height: 11.3px;
  margin-left: 10px;
}

.header-arrow::before,
.header-arrow::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.75px);
  right: 0;
  width: 10px;
  height: 1.5px;
  border-radius: 9999px;
  background-color: #000000;
  transform-origin: calc(100% - 0.75px) 50%;
  transition: 0.4s;
}

.header-arrow::before {
  transform: rotate(35deg);
}

.header-arrow::after {
  transform: rotate(-35deg);
}

.header-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 30px 0;
  background-color: rgba(232, 232, 228, 0.9);
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
}

.header-submenu-inner {
  display: flex;
  align-items: flex-start;
}

.header-submenu-title {
  display: block;
  width: fit-content;
  font-weight: 700;
  transition: 0.4s;
}

.header-submenu-title.disabled {
  pointer-events: none;
}

.header-search {
  width: 240px;
  height: fit-content;
  padding: 20px 10px 30px;
  background-color: #ffffff;
}

.header-search-input {
  position: relative;
}

.header-search-icon {
  content: "";
  display: block;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 27px;
  background-image: url("../images/common/search.webp");
  background-size: contain;
  background-repeat: no-repeat;
  transition: 0.4s;
}

.header-search-icon.active {
  background-image: url("../images/common/search_2.webp");
}

.header-search-input input[type="text"] {
  display: block;
  width: 100%;
  height: 53px;
  padding: 10px 10px 10px 46px;
  background-color: #f6f6f6;
  font-size: 12px;
}

.header-search > p {
  margin-bottom: 10px;
  font-size: 14px;
}

.header-search > p:last-of-type {
  margin-top: 30px;
}

.header-search-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 10px 13px 64px;
  background-color: #d0d0ca;
  font-weight: 600;
  font-size: 12px;
  transition: 0.4s;
}

.header-search-button:last-of-type {
  margin-bottom: 0;
}

.header-search-button.catalog {
  background-color: #2d8cc8;
  color: #f6f6f6;
}

.header-search-button.catalog .header-arrow::before,
.header-search-button.catalog .header-arrow::after {
  background-color: #f6f6f6;
}

.header-search-button-icon {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  width: 33px;
  height: 27px;
  background-image: url("../images/common/book_1.webp");
  background-size: contain;
  background-repeat: no-repeat;
  transition: 0.4s;
}

.header-search-button.catalog .header-search-button-icon {
  background-image: url("../images/common/book_2.webp");
}

.header-search-button > img {
  width: 33px;
}

.header-submenu-content {
  margin-left: auto;
  padding-left: 15px;
  border-left: solid 1px #b9b9b9;
}

.header-submenu-image-list,
.header-submenu-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.header-submenu-image-list_col5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.header-submenu-image-list.one-column, .header-submenu-image-list-col5.one-column {
  grid-template-columns: repeat(1, 1fr);
}

.header-submenu-image-list > li, .header-submenu-image-list_col5 > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  gap: 0;
}

.header-submenu-image-list > li > a,.header-submenu-image-list_col5 > li > a  {
  display: inherit;
  grid-template-rows: inherit;
  grid-row: inherit;
  gap: 0;
}

.header-submenu-image-list > li > a > img,.header-submenu-image-list_col5 > li > a > img  {
  width: 100%;
}

.header-submenu-image-list:last-of-type,
.header-submenu-image-list_col5:last-of-type,
.header-submenu-list:last-of-type {
  margin-bottom: 0;
}

.header-submenu-image-list > li > a > p,
.header-submenu-image-list_col5 > li > a > p,
.header-submenu-list > li > a > p {
  display: flex;
  align-items: center;
  background-color: #f6f6f6;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.4;
  padding: 10px 10px;
  transition: 0.4s;
}

.header-submenu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border: solid 1px #242424;
  margin-left: 15px;
  cursor: pointer;
}

.header-close-arrow {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

.header-close-arrow::before,
.header-close-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 0;
  border-top: 1px solid #000000;
  transform: translate(-50%, -50%);
}

.header-close-arrow::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.header-close-arrow::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.header-submenu-container {
  width: 100%;
}

.header-submenu-block {
  display: grid;
  grid-template-columns: 20% 1fr;
  align-items: flex-start;
  margin-bottom: 15px;
}

.header-submenu-block:last-of-type {
  margin-bottom: 0;
}

@media (hover: hover) {
  .header-logo-box:hover {
    background-color: #ffffff;
  }

  .header-sub-nav > li > a:hover {
    opacity: 0.7;
  }

  .header-main-nav-title:hover > span {
    font-weight: 700;
  }

  .header-contact-button:hover {
    color: #004190;
    background-color: #e8e8e4;
  }

  .header-submenu-title:hover {
    color: #2d8cc8;
  }

  .header-submenu-title:hover .header-arrow::before,
  .header-submenu-title:hover .header-arrow::after {
    background-color: #2d8cc8;
  }

  .header-submenu-image-list > li > a:hover > p,
  .header-submenu-list > li > a:hover > p {
    background-color: #d0d0ca;
  }

  .header-pc .header-search-button:hover {
    background-color: #f6f6f6;
  }

  .header-pc .header-search-button.catalog:hover {
    color: #2d8cc8;
  }

  .header-pc .header-search-button.catalog:hover .header-arrow::before,
  .header-pc .header-search-button.catalog:hover .header-arrow::after {
    background-color: #2d8cc8;
  }

  .header-pc .header-search-button:hover .header-search-button-icon {
    background-image: url("../images/common/book_3.webp");
  }
}

.header-lang-switcher-pc-list {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-lang-switcher-pc-title {
  display: flex;
  align-items: center;
  gap: 0 4px;
  padding-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0;
  text-align: center;
  cursor: pointer;
  transition: 0.4s;
}

.header-lang-switcher-pc-list > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  padding: 4px;
  border-bottom: solid 1px #ffffff;
  background-color: #696969;
  color: #ffffff;
  font-size: 12px;
  transition: 0.4s;
}

.header-lang-switcher-pc-list > li:last-of-type {
  border-bottom: none;
}

@media (hover: hover) {
  .header-lang-switcher-pc-title:hover {
    opacity: 0.7;
  }

  .header-lang-switcher-pc-list > li > a:hover {
    background-color: #d0d0ca;
    color: #696969;
  }
}

.header-lang-switcher-pc-title-icon {
  content: "";
  display: block;
  width: 14px;
  height: 13px;
  background: url("../images/common/global_pc.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ヘッダーSP版 ================================================================ */
.header-sp-logo {
  display: block;
  width: 64px;
}

.header-hamburger {
  position: relative;
  width: 23px;
  height: 20px;
  cursor: pointer;
}

.header-hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background-color: #004190;
  transition: 0.4s;
}

.header-hamburger span:nth-of-type(1) {
  top: 0;
}

.header-hamburger span:nth-of-type(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header-hamburger span:nth-of-type(3) {
  bottom: 0;
}

.header-hamburger.active {
  width: 28px;
  height: 28px;
}

.header-hamburger.active span:nth-of-type(1) {
  transform: rotate(45deg);
  top: 13px;
}

.header-hamburger.active span:nth-of-type(2) {
  opacity: 0;
}

.header-hamburger.active span:nth-of-type(3) {
  transform: rotate(-45deg);
  bottom: 13px;
}

.header-sp-dropdown {
  display: none;
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-sp-dropdown-container {
  position: relative;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.header-sp-dropdown-wrapper {
  position: relative;
  padding-bottom: 20px;
  background-color: #f6f6f6;
}

.header-sp-dropdown-inner {
  width: 92%;
  margin-inline: auto;
}

.header-sp-dropdown-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: solid 1px #d0d0ca;
  font-size: 14px;
  letter-spacing: 0;
  cursor: pointer;
  transition: 0.4s;
}

.header-sp-dropdown-title.active {
  font-weight: 600;
}

@media (hover: hover) {
  .header-sp-dropdown-title:hover {
    font-weight: 600;
  }

  .header-sp-dropdown-title:hover .header-sp-dropdown-title-arrow::before,
  .header-sp-dropdown-title:hover .header-sp-dropdown-title-arrow::after {
    background-color: #242424;
  }

  .header-sp-dropdown-title:hover .header-sp-dropdown-title-arrow-right::before,
  .header-sp-dropdown-title:hover .header-sp-dropdown-title-arrow-right::after {
    background-color: #242424;
  }
}

.header-sp-dropdown-title-arrow {
  position: relative;
  display: inline-block;
  right: 2px;
  width: 24.1px;
  height: 12.1px;
  transition: 0.4s;
}

.header-sp-dropdown-title-arrow::before,
.header-sp-dropdown-title-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  height: 17px;
  border-radius: 9999px;
  background-color: #d0d0ca;
  transform-origin: 50% calc(100% - 1px);
  transition: 0.4s;
}

.header-sp-dropdown-title-arrow::before {
  transform: rotate(47.5deg);
}

.header-sp-dropdown-title-arrow::after {
  transform: rotate(-47.5deg);
}

.header-sp-dropdown-title-arrow-right {
  position: relative;
  display: inline-block;
  right: 7px;
  width: 12.1px;
  height: 24.1px;
}

.header-sp-dropdown-title-arrow-right::before,
.header-sp-dropdown-title-arrow-right::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  right: 0;
  width: 17px;
  height: 2px;
  border-radius: 9999px;
  background-color: #d0d0ca;
  transform-origin: calc(100% - 1px) 50%;
  transition: 0.4s;
}

.header-sp-dropdown-title-arrow-right::before {
  transform: rotate(47.5deg);
}

.header-sp-dropdown-title-arrow-right::after {
  transform: rotate(-47.5deg);
}

.header-sp-dropdown-title.active .header-sp-dropdown-title-arrow {
  transform: rotate(180deg);
}

.header-sp-dropdown-title.active .header-sp-dropdown-title-arrow::before,
.header-sp-dropdown-title.active .header-sp-dropdown-title-arrow::after {
  background-color: #242424;
}

.header-sp-dropdown-group-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.header-sp-dropdown-group-list > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: solid 1px #000000;
  font-size: 12px;
  letter-spacing: 0;
  transition: 0.4s;
}

@media (hover: hover) {
  .header-sp-dropdown-group-list > li > a:hover {
    background-color: #d0d0ca;
  }
}

.header-sp-dropdown-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0;
}

.header-sp-dropdown-sub {
  display: none;
}

.header-sp-dropdown-sub-list > li > a {
  display: block;
  padding: 7px 0;
  border-bottom: solid 1px #d0d0ca;
  color: #696969;
  font-size: 14px;
  letter-spacing: 0;
}

.header-sp .header-search {
  width: 100%;
  height: auto;
  background-color: #f6f6f6;
  padding: 10px 0;
  border-bottom: solid 1px #d0d0ca;
}

.header-sp .header-search .header-search-input input[type="text"] {
  height: 30px;
  padding: 5px 10px 5px 40px;
  background-color: #ffffff;
}

.header-sp .header-search .header-search-icon {
  width: 16px;
  height: 16px;
}

.header-sp .header-search > p {
  color: #696969;
  font-size: 14px;
  letter-spacing: 0;
}

.header-sp .header-search > p:last-of-type {
  margin-top: 10px;
}

.header-sp .header-search > .header-search-button {
  margin-bottom: 10px;
  padding: 3px 10px 3px 48px;
  font-size: 14px;
}

.header-sp .header-search > .header-search-button .header-search-button-icon {
  width: 20px;
  height: 16px;
}

.header-sp-info {
  display: flex;
  align-items: center;
  gap: 0 20px;
}

.header-lang-switcher-sp-trigger > img {
  display: block;
  width: 23px;
  cursor: pointer;
}

.header-lang-switcher-sp {
  position: absolute;
  top: 72px;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

.header-lang-switcher-sp-list {
  display: none;
  position: relative;
}

.header-lang-switcher-sp-list > li {
  padding: 0 4%;
  border-bottom: solid 1px #d0d0ca;
  background-color: #f6f6f6;
}

.header-lang-switcher-sp-list > li:last-of-type {
  border-bottom: none;
}

.header-lang-switcher-sp-list > li > a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0;
}

.header-lang-switcher-pc {
  position: relative;
  z-index: 12;
}

@media screen and (max-width: 1100px) {
  .header {
    padding: 20px 0;
  }

  .header-pc {
    display: none;
  }

  .header-sp {
    display: block;
  }
}
