/* ============================================
   Custom CSS Template (custom.css)
   Prefix: c- (for custom styles)
   ============================================ */

/* ========== Layout ========== */

/* ========== Typography ========== */

/* ========== Buttons ========== */

/* ========== Utility Classes ========== */
.c-mt-1 {
  margin-top: 0.25rem;
}

.c-mt-2 {
  margin-top: 0.5rem;
}

.c-mt-3 {
  margin-top: 1rem;
}

.c-text-center {
  text-align: center;
}

.c-text-right {
  text-align: right;
}

.c-text-left {
  text-align: left;
}

.c-hidden {
  display: none;
}

#wrapper .c-shodow-none {
  box-shadow: none;
  -webkit-box-shadow: none;
}

/* ========== header ========== */
/* ハンバーガーメニュー */

.lib-header__outer.c-lib-header__outer .lib-menu__btn {
  border-left: 1px solid var(--WHT);
  border-top: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
  -webkit-box-shadow: none;
}

.lib-header__outer.c-lib-header__outer.typeN .lib-menu__btn:hover:after {
  opacity: 0;
}


.lib-header__outer.c-lib-header__outer .lib-menu__btn>.line:nth-of-type(1) {
  top: calc(50% - 5px);
}

.lib-header__outer.c-lib-header__outer .lib-menu__btn>.line:nth-of-type(2) {
  top: calc(50% + 5px);
  width: 40%;
}

.lib-header__outer.c-lib-header__outer .lib-menu__btn[aria-expanded=true]>.line:nth-of-type(1) {
  top: calc(50% - 1px - 10px);
}

.lib-header__outer.c-lib-header__outer .lib-menu__btn[aria-expanded=true]>.line:nth-of-type(2) {
  opacity: 1;
  -webkit-transform: translateY(calc(50% - 1px - 10px)) rotate(45deg);
  transform: translateY(calc(50% - 1px - 10px)) rotate(45deg);
  bottom: calc(50% - 1px - 10px);
  left: 30%;
  top: auto;
}

.lib-header__outer.c-lib-header__outer .lib-menu__btn[aria-expanded=true]:hover {
  opacity: .9;
}


.lib-header__outer.c-lib-header__outer .lib-menu__btn[aria-expanded=true]:hover>.line:nth-of-type(2) {
  width: 40%;
}

/* お問い合わせボタン */

.lib-header__outer.c-lib-header__outer .lib-induce__btn {
  flex-direction: row;
  gap: 5px;
}

/* ハンバーガーメニュー内 */
.lib-header__outer.c-lib-header__outer .lib-child__item>a .sub-txt {
  font-weight: 500;
  color: #454545;
  position: relative;
  width: 100%;
}

.lib-header__outer.c-lib-header__outer .lib-child__item>a .sub-txt:before {
  font-family: icons !important;
  speak: none;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\ea01";
  position: absolute;
  left: auto;
  right: 5px;
  top: 6px;
  font-size: .625rem;
  font-weight: 400;
  color: var(--DEF);
}

@media print,
screen and (min-width: 992px) {

  /* グローバルナビゲーション表示 */

  .lib-header__outer.c-lib-header__outer .lib-header__bar {
    padding-left: 0;
    padding-right: 0;
    -webkit-box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);
  }

  .lib-header__outer.c-lib-header__outer {
    top: 0;
    height: 80px !important;
    background: #fff;
  }

  .lib-header__outer.c-lib-header__outer .lib-header__logo a {
    box-shadow: none;
    -webkit-box-shadow: none;
    height: auto;
    padding: 0;
  }

  .lib-header__outer.c-lib-header__outer .lib-utility__outer {
    height: auto;
  }

  .lib-header__outer.c-lib-header__outer .lib-induce__btn {
    height: 80px;
  }

  .lib-header__outer.c-lib-header__outer .lib-menu__btn {
    height: 80px;
    width: 80px;
    margin-left: 0;
  }

  .lib-header__outer.c-lib-header__outer .lib-utility__outer {
    align-items: center;
  }

  .lib-header__outer.c-lib-header__outer .lib-header__nav {
    max-width: calc(100% - 200px);
  }

  .c-lib-header__nav {
    display: flex;
    align-items: center;
    flex: 1;
    margin-left: 0.7vw;
    margin-right: 1.4vw;
    justify-content: flex-end;
  }

  .c-lib-nav__list {
    display: flex;
    align-items: center;
    gap: 1.4vw;
    margin: 0;
  }

  .c-lib-nav__item {
    position: relative;
  }

  .c-lib-nav__btn {
    display: flex;
    align-items: center;
    gap: 0.02vw;
    padding: 10px 0;
    font-size: min(16px, 1.1vw);
    color: var(--DEF);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
  }

  .c-lib-nav__btn:hover {
    color: var(--MAIN);
  }

  /* ドロップダウン矢印 - 線のみで表現 */
  .c-lib-nav__btn--dropdown::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--DEF);
    border-bottom: 2px solid var(--DEF);
    transform: rotate(45deg);
    margin-left: 8px;
    margin-bottom: 3px;
    transition: transform 0.3s, border-color 0.3s;
  }

  .c-lib-nav__btn--dropdown:hover::after {
    border-color: var(--MAIN);
  }

  /* hover時にメガメニュー表示 */
  .c-lib-nav__item:hover .c-lib-nav__btn--dropdown::after {
    transform: rotate(-135deg);
    margin-bottom: -3px;
  }

  .c-lib-nav__item.no-hover:hover .c-lib-child__panel {
    opacity: 0 !important;
    visibility: hidden !important;
  }


  /* メガメニュー */
  .c-lib-child__panel {
    position: fixed;
    left: 0;
    top: 80px;
    width: 100%;
    background-color: #fff;
    padding: 4vw 0;
    box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  /* hover時にメガメニュー表示 */
  .c-lib-nav__item:hover .c-lib-child__panel {
    opacity: 1;
    visibility: visible;
  }

  .c-lib-child__outer {
    max-width: 70vw;
    margin: 0 auto;
    display: flex;
    gap: 2.8vw;
    position: relative;
  }

  /* メガメニュー閉じるボタン - 右上に配置 */
  .c-lib-child__close {
    position: absolute;
    top: -2.8vw;
    right: 2.8vw;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 10;
    border-radius: 4px;
  }

  .c-lib-child__close::before,
  .c-lib-child__close::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2.5px;
    background-color: var(--MAIN);
  }

  .c-lib-child__close::before {
    transform: rotate(45deg);
  }

  .c-lib-child__close::after {
    transform: rotate(-45deg);
  }

  .c-lib-child__close:hover {
    cursor: pointer;
    opacity: 0.7;
  }

  /* メガメニュー左側: タイトルエリア */
  .c-lib-child__header {
    flex-shrink: 0;
    width: min(250px, 17.4vw);
  }

  .c-lib-child__title {
    font-size: min(20px, 1.4vw);
    font-weight: bold;
    color: var(--MAIN);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--MAIN);
  }


  /* メガメニュー右側: リストエリア */
  .c-lib-child__content {
    flex: 1;
  }

  .c-lib-child__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 19.4vw), 1fr));
    gap: 1vw 1vw;
  }

  .c-lib-child__item a {
    display: block;
    padding: 12px 15px;
    font-size: min(15px, 1vw);
    color: var(--DEF);
    transition: background-color 0.3s, padding-left 0.3s;
    position: relative;
    text-decoration: none;
  }

  html[lang="en"] .c-lib-child__item a {
    padding: 2px 15px;
    line-height: 1.1;
  }

  .c-lib-child__item a::before {
    position: absolute;
    transition: opacity 0.3s, left 0.3s;
    font-family: icons !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\ea01";
    left: 0;
    top: 6px;
    font-size: .625rem;
    font-weight: 400;
  }

  .lib-header__outer.c-lib-header__outer .c-lib-child__top-link:hover {
    color: var(--MAIN);
  }

  .c-lib-child__item a:hover {
    color: var(--MAIN);
    padding-left: 1rem;
  }

  .c-lib-child__item a:hover::before {
    opacity: 1;
    left: 0.3rem;
  }

  /*スクロール時 */
  .is-scroll:not(.is-gnav__open) .lib-header__outerheader__outer.c-lib-header__outer {
    height: 60px !important;
  }

  .is-scroll .lib-header__outer.c-lib-header__outer .lib-induce__btn {
    height: 60px;
  }

  .is-scroll .lib-header__outer.c-lib-header__outer .lib-menu__btn {
    height: 60px;
    width: 80px;
  }

  .is-scroll .lib-header__outer.c-lib-header__outer {
    top: 0;
    height: 60px !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, .5);
    -webkit-transition: height .3s;
  }

  .is-scroll .c-lib-child__panel {
    top: 60px;
  }

  /* 言語切り替え */

  .lib-header__outer.c-lib-header__outer .lib-lang__outer {
    height: auto;
  }

  .lib-header__outer.c-lib-header__outer .lib-lang__outer li {
    width: 32px;
    height: 32px;
  }

  .lib-header__outer.c-lib-header__outer .lib-lang__outer li a {
    font-size: min(12px, 1.1vw);
  }

  /* お問い合わせボタン */

  .lib-header__outer.c-lib-header__outer .lib-induce__outer>li {
    width: auto;
  }

  .lib-header__outer.c-lib-header__outer .lib-induce__btn .txt {
    font-size: min(12px, 1.1vw);
  }

  /* ハンバーガーメニューボタン */
  .lib-header__outer.c-lib-header__outer .lib-menu__btn:hover>.line:nth-of-type(2) {
    width: 50%;
  }

  /* ハンバーガーメニュー内 */

  .lib-header__outer.c-lib-header__outer .lib-nav__panel {
    padding: 5vw 0 0;

  }

  .lib-header__outer.c-lib-header__outer .lib-nav__outer {
    max-width: 70vw;
  }

  .lib-header__outer.c-lib-header__outer .row-cols-sm-4>* {
    width: 33%;
    margin-top: 2vw;
  }

  .lib-header__outer.c-lib-header__outer .lib-header__bar.js-gnav__bar {
    -webkit-box-shadow: none;
    box-shadow: none;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item.--headline .txt,
  .lib-header__outer.c-lib-header__outer.typeN .lib-nav__btn:not(.js-child__btn) .txt {
    font-size: min(20px, 1.4vw);
    font-weight: 400;
    border-bottom: 1px solid rgb(48 49 127 / 50%);
    width: 100%;
    line-height: 1.75;
    padding: 0.5rem 0;
  }

  .lib-header__outer.c-lib-header__outer.typeN .lib-nav__btn:not(.js-child__btn) .txt--recruitment {
    line-height: 1.1;
  }

  .txt--recruitment span {
    font-size: min(16px, 1vw);
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item.--headline .txt:hover,
  .lib-header__outer.c-lib-header__outer .lib-child__item>a:hover,
  .lib-header__outer.c-lib-header__outer .lib-child__item>a:hover .txt {
    text-decoration: none !important;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a:hover .sub-txt,
  .lib-header__outer.c-lib-header__outer .lib-child__item>a:hover .sub-txt:before,
  .lib-header__outer.c-lib-header__outer .lib-nav__btn:not(.js-child__btn):hover .txt,
  .lib-header__outer.c-lib-header__outer .lib-nav__btn:not(.js-child__btn):hover .txt:before {
    color: var(--MAIN);
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item.--headline>a .txt:before,
  .lib-header__outer.c-lib-header__outer .lib-child__item>a .txt:before,
  .lib-header__outer.c-lib-header__outer .lib-nav__btn:not(.js-child__btn) .txt:before {
    left: auto;
    right: 0;
    top: 24px;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a:hover .txt:before {
    color: var(--MAIN);
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item.--headline .sub-txt {
    font-size: min(14px, 1.2vw);
    margin: 0.5rem 0;
    padding-right: 1.2rem;
  }

  .lib-header__outer.c-lib-header__outer .typeN .lib-child__item>a {
    padding: 8px 0;
  }

  .lib-header__outer.typeN .lib-child__item>a:nth-child(2) .sub-txt {
    margin-top: 1.5vw;
  }

  /* topページスライダー */
  .sr-only+.container {
    margin-top: 80px !important;
  }

}


/* ========== スライダー ========== */
.lib-swiper__btn {
  background-color: rgba(48, 49, 127, 0.8);
  border: none;
}

.swiper-pagination-bullet {
  width: 10px !important;
  height: 10px !important;
}

.lib-swiper__player>button {
  border: none;
  width: 24px;
  height: 24px;
}

.lib-swiper__stop:after,
.lib-swiper__stop:before {
  width: 2px;
}

.lib-swiper__stop:before {
  left: 8px;
}

.lib-swiper__stop:after {
  right: 8px;
}

.lib-swiper__control {
  justify-content: flex-end;
}

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

  /* ハンガーバーメニュー */
  .lib-header__outer.c-lib-header__outer .lib-child__item {
    border-left: none;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__outer {
    margin-left: 0;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a {
    border-top: var(--GRY) 1px solid;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a .sub-txt:before {
    font-family: icons !important;
    speak: none;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    content: "\ea01";
    position: absolute;
    left: auto;
    right: 0;
    font-size: .625rem;
    font-weight: 400;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a .txt {
    width: 100%;
    padding-left: 2vw;
    padding-right: 2vw;
    font-weight: 500;
    font-size: 0.9rem;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a .txt:before {
    left: auto;
    right: 0;
  }

  .lib-header__outer.c-lib-header__outer .lib-child__item>a .sub-txt {
    font-size: 0.9rem;
    padding-left: 2vw;
    padding-right: 2vw;
  }

  .txt--recruitment span {
    font-size: 0.8rem;
  }

  .c-nav__group a:not(:first-of-type) {
    border-top: var(--MAIN) 1px solid;
  }

}

@media screen and (min-width: 576px) and (max-width: 991.8px) {
  /* ハンガーバーメニュー */

  .lib-header__outer.c-lib-header__outer .lib-child__item>a {
    padding: 2vw;
  }

  .lib-header__outer.c-lib-header__outer .lib-nav__btn {
    padding: 2vw;
  }

}

@media print,
screen and (min-width: 576px) and (max-width: 991.8px) {

  /* ハンガーバーメニュー */
  .lib-nav__panel {
    max-width: 70vw;
  }
}

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

  /* ハンガーバーメニュー */
  .lib-header__outer.c-lib-header__outer .lib-nav__btn,
  .lib-header__outer.c-lib-header__outer .lib-child__item>a {
    padding: 3vw;
  }
}

@media screen and (max-width: 768px) {
  .lib-swiper__control {
    justify-content: center;
  }
}

@media screen and (min-width: 576px) {
  :target {
    scroll-padding-top: 80px
  }
}