@charset "UTF-8";

/**********************************************************************
  ナビゲーションメニュー用css
**********************************************************************/

/* Navigation Menu Start */
.nav-menu-container {
  background-color: var(--color-site-subkey);

  * {
    line-height: 1.4em;
    font-size: 0.8rem;
    color: var(--color-white);
    text-decoration: none;
    list-style: none;
    z-index: 1;
  }
  > .nav-menu {
    position: relative;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row;
    margin: 0px auto;
    padding: 0px;
    max-width: 1376px;
    height: 60px;

    > li {
      flex: 1;
      height: 100%;
      border-left: 1px solid var(--color-white);
    }
    > li:last-child { border-right: 1px solid var(--color-white); }
    > li > a, > li > span {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 10px;
      height: 100%;
      text-align: center;
      background-color: var(--color-site-key);

      @media (any-hover: hover) {
        &:hover { background-color: rgb(57, 73, 171, 0); }
      }
      &:after {
        content: "";
        position: absolute;
        bottom: 0px;
        left: 0px;
        width: 0px;
        height: 2px;
        background-color: var(--color-white);
        transition: 0.8s;
      }
      &:hover:after { width: 100%; }
    }

    > li:nth-child(1) > a:before,
    > li:nth-child(2) > a:before,
    > li:nth-child(5) > a:before,
    > li:nth-child(8) > a:before {
      position: absolute;
      content: "";
      top: 48%;
      right: 5%;
      width: 10px;
      height: 5px;
      background-color: var(--color-white);
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      transform: translateY(0);
      transition: transform 0.5s ease;
    }
    > li:nth-child(1) > a:hover:before,
    > li:nth-child(2) > a:hover:before,
    > li:nth-child(5) > a:hover:before,
    > li:nth-child(8) > a:hover:before {
      transform: translateY(4px);
    }
  }
}
/* Navigation Menu End */

/* Navigation Menu *** Sub *** Start */
.nav-menu-container > .nav-menu > li > .sub-menu {
  position: absolute;
  overflow: hidden;
  padding: 0px;
  width: 240px;
  height: 0px;
  background-color: var(--color-site-subkey);

  > li {
    position: relative;
    width: 100%;
    height: 50px;
  }
  > li > a {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    height: 100%;
    background-color: var(--color-site-key);

    @media (any-hover: hover) {
      &:hover { background-color: rgb(57, 73, 171, 0); }
    }
    &:after {
      content: "";
      position: absolute;
      bottom: 0px;
      left: 0px;
      width: 0px;
      height: 2px;
      background-color: var(--color-white);
      transition: 0.8s;
    }
    &:hover:after { width: 100%; }
  }
}

.nav-menu-container .nav-menu > li:hover > .sub-menu {
  overflow: visible;
  height: auto;
}
/* Navigation Menu *** Sub *** End */

/* Navigation Menu Mobile Start */
.container .nav-mobile-menu-container {
  display: none;

  ul { list-style: none; }  
  a  {
    text-decoration: none;
    color: var(--color-text);

    @media (any-hover: hover) {
      &:hover {
        text-decoration: underline;
        text-underline-offset: 4px;
        color: var(--color-link-hover);
        transition: 0.5s;
      }
    }
  }

  /* メニューボタン*/
  .mobile-menu-btn {
    position: relative;
    display: block;
    height: 60px;
    width: 60px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    z-index: 10;

    &.-active .mobile-menu-btn-line {
      background-color: transparent;

      &::before {
        top: 0;
        transform: rotate(45deg);
      }
      &::after {
        top: 0;
        transform: rotate(-45deg);
      }
    }
    &.-active .mobile-menu-btn-text::before { content: '閉じる'; }
    .mobile-menu-btn-line {
      position: absolute;
      display: block;
      top: 35%;
      left: 50%;
      height: 2px;
      width: 60%;
      background-color: var(--color-text);
      transform: translateX(-50%);
      transition: 0.5s;

      &:before, &:after {
        position: absolute;
        content: '';
        display: block;
        height: 100%;
        width: 100%;
        background-color:var(--color-text);
        transition: inherit;
      }
      &:before { top: -8px; }
      &:after { top: 8px; }
    }

    .mobile-menu-btn-text {
      position: absolute;
      bottom: 8px;
      top: 50%;
      left: 50%;
      width: 100%;
      transform: translateX(-50%);

      &::before {
        content: 'メニュー';
        text-align: center;
        color: var(--color-text);
        font-size: 0.6rem;
        font-weight: 600;
      }
    }
  }

  /* メニュー内容 */
  .mobile-menu-contents {
    visibility: hidden;
    overflow-y: auto;
    position: fixed;
    padding-top: 6.25rem;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    transition: 0.5s;
    background-color: var(--color-white);
    z-index: 9;

    &.-active {
      visibility: visible;
      left: 0;
    }
    .mobile-menu-global-nav {
      box-shadow: inset 0px 7px 5px -5px var(--color-shadow);

      ul {
        padding-left: 0;

        li {
          padding: 1.2rem 0;
          width: 100%;
          height: 100%;
          cursor: pointer;

          button {
            padding: 0 1.2rem;
            text-align: left;
            box-shadow: none;

            @media (any-hover: hover) {
              &:hover {
                opacity: 100;
                transform: none;
              }
            }
          }
          > a {
            display: block;
            padding-left: 1.2rem;
            padding-right: 1.2rem;
            text-align: left;
          }
        }
      }

      .mobile-menu-global-nav-list { /* ul（親） */
        > li { border-bottom: 1px solid var(--color-text); }

        .mobile-menu-global-nav-link.-accordion {
          position: relative;
          background: none;
          border: none;
          -webkit-appearance: none;
          -moz-appearance: none;
          appearance: none;
          width: 100%;

          &::after {
            position: absolute;
            display: block;
            content: '';
            top: 54%;
            right: 25px;
            width: 2px;
            height: 12px;
            background-color: var(--color-text);
            transform: translateY(-50%);
            transition: transform 0.5s;
          }
          &::before {
            position: absolute;
            display: block;
            content: '';
            top: 54%;
            right: 20px;
            height: 2px;
            width: 12px;
            background-color: var(--color-text);
            transform: translateY(-50%);
          }
        }
        .mobile-menu-global-nav-link.-active::after { transform: translateY(-50%) rotate(-90deg); }
      }

      .accordion {  /* サブメニュー */
        overflow: hidden;
        visibility: hidden;
        height: 0;
        transition: 0.5s;

        ul li:not(:last-child) {
          border-bottom: 1px dashed var(--color-text);
        }
        ul li a { margin-left: 2.4rem; }
      }
      .accordion.-active {
        visibility: visible;
        margin-top: 0rem;
        height: auto;
      }
    }
  }
}
/* Navigation Menu Mobile End */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/* 1279px（タブレット）以下 */
@media screen and (max-width: 1279px) {
  /* Navigation Menu Start */
  .nav-menu-container > .nav-menu {
    height: 80px;
  
    > li > a > .br-point,
    > li > span > .br-point {
      display: none;
    }
  }
  /* Navigation Menu End */
}

/* 767px（スマホ）以下 */
@media screen and (max-width: 767px) {
  /* Navigation Menu Start */
  .nav-menu-container > .nav-menu {
    display: none;
  }
  /* Navigation Menu End */

  /* Navigation Menu Mobile Start */
  .container .nav-mobile-menu-container {
    display: block;
  }
  /* Navigation Menu Mobile End */
}