/* new css */
.cjt {
  * {
    font-family: 'Noto Sans JP', sans-serif;
  }
}

.header-pc-popup {
  height: auto !important;
  max-height: calc(100vh - 50px);
  overflow-y: auto;
}

.header-before-menu-login {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-top: 32px !important;
  padding-right: 16px !important;
  padding-bottom: 0 !important;
  padding-left: 16px !important;
  overflow-y: auto;
  background-color: #fff;

  .header-before-menu-btn-2col {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 0 !important;
    margin-bottom: 32px !important;
    margin-left: 0 !important;

    .header-before-menu-btn-2col-item {
      width: 49%;
      background-color: #fff !important;

      a.login {
        display: block;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
        background-color: #fff;
        border-color: #00935f;
        border-style: solid;
        border-width: 1px;
        border-radius: 99px;

        span {
          color: #00935f;
          font-weight: bold;
          font-size: 14px;
          line-height: 26px;
        }
      }

      a.registration {
        display: block;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
        background-color: #00935f;
        border-radius: 99px;

        span {
          color: #fff;
          font-weight: bold;
          font-size: 14px;
          line-height: 26px;
        }
      }
    }
  }
}

.header-menu-nav2-items {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;

  .header-menu-nav2-item {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #cecece;
  }

  .header-menu-nav2-item::after {
    position: absolute;
    top: 50%;
    right: 8px;
    display: block;
    width: 17px;
    height: 17px;
    background-image: url(/assets/images/common/ico-accordion-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) rotate(-90deg);
    content: '';
  }

  .header-menu-nav2-item:nth-of-type(n + 2) {
    border-top: 0;
  }

  .header-menu-nav2-link {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 16px;
    padding-right: 30px;
    padding-bottom: 16px;
    padding-left: 8px;
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
  }
}

.header-menu-nav2-otherhead {
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 0;
  padding: 0;
  color: black;
  font-weight: normal;
  font-size: 16px;
  background-color: #fff !important;
}

.header-menu-nav2-otheritems {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 32px;

  .header-menu-nav2-item {
    position: relative;
    width: 50%;
    border-bottom: 1px solid #cecece;
  }

  .header-menu-nav2-item::after {
    position: absolute;
    top: 50%;
    right: 8px;
    display: block;
    width: 17px;
    height: 17px;
    background-image: url(/assets/images/common/ico-accordion-arrow.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) rotate(-90deg);
    content: '';
  }

  .header-menu-nav2-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 16px;
    padding-right: 22px;
    padding-bottom: 16px;
    padding-left: 8px;
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
  }
}

.header-menu-subnav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
  font-size: 16px;

  .header-menu-subnav-link {
    text-decoration: underline;
  }
}

.header-before-pc.-open {
  .header-pc-right .header-pc-menu-nav,
  .header-pc-right .btn-2col-low {
    display: none;
  }
}

.header-pc-menu-nav {
  a {
    font-weight: 500;
  }
}

.header-pc-rightnavi {
  .btn-2col-low {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin-top: 0;
    margin-right: 16px;
    margin-bottom: 0;
    margin-left: 16px;

    .btn-2col-low-item {
      width: auto;
      height: 28px;
      background: none;
    }

    a.login {
      display: block;
      padding-top: 4px;
      padding-right: 12px;
      padding-bottom: 5px;
      padding-left: 12px;
      font-weight: normal;
      text-align: center;
      background-color: #fff;
      border: 1px solid #00935f;
      border-radius: 99px;

      span {
        color: #00935f;
        font-size: 12px;
        line-height: 19px;
      }
    }

    a.registration {
      display: block;
      padding-top: 4px;
      padding-right: 12px;
      padding-bottom: 5px;
      padding-left: 12px;
      font-weight: normal;
      text-align: center;
      background-color: #00935f;
      border-radius: 99px;

      span {
        color: #fff;
        font-size: 12px;
        line-height: 19px;
      }
    }
  }
}

.header-pc-popup-inner {
  position: static !important;
  display: flex;
  flex-direction: column;
  max-width: 768px;
  height: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-top: 32px;
  padding-right: 16px;
  padding-left: 16px;
  overflow: auto !important;
  overflow-y: auto;

  .btn-2col-low {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-right: 16px;
    margin-bottom: 32px;
    margin-left: 16px;

    .btn-2col-low-item {
      display: list-item;
      width: 49%;
      max-width: inherit;
      background: none !important;

      a.login {
        display: block !important;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
        background-color: #fff;
        border: 1px solid #00935f;
        border-radius: 99px;

        span {
          color: #00935f;
          font-weight: bold;
          font-size: 16px;
          line-height: 26px;
        }
      }

      a.registration {
        display: block !important;
        padding-top: 12px;
        padding-bottom: 12px;
        text-align: center;
        background-color: #00935f;
        border-radius: 99px;

        span {
          color: #fff;
          font-weight: bold;
          font-size: 16px;
          line-height: 26px;
        }
      }
    }
  }
}

.header-pc-popup-navilist {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;

  .header-pc-popup-item {
    position: relative;
    width: 50%;
    border-top: 1px solid #cecece; /* middle-gray */
    border-bottom: 1px solid #cecece; /* middle-gray */
  }

  .header-pc-popup-item:nth-of-type(n + 3) {
    border-top: none;
  }

  .header-pc-popup-item::after {
    position: absolute;
    top: 50%;
    right: 12px;
    display: block;
    width: 17px;
    height: 17px;
    background-image: url(/assets/images/common/ico-accordion-arrow.svg); /* アイコンのパスを指定 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) rotate(-90deg);
    content: '';
  }

  .header-pc-popup-link {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 16px;
    padding-right: 30px;
    padding-bottom: 16px;
    padding-left: 16px;
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
  }
}

.other-menu {
  margin-right: 0;
  margin-bottom: 16px;
  margin-left: 0;
  padding: 0;
  color: black;
  font-weight: normal;
  font-size: 16px;
  background-color: transparent;
}

.header-pc-popup-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  margin-bottom: 32px;

  .header-pc-popup-item {
    position: relative;
    width: calc(33% - 16.5px);
    border-bottom: 1px solid #cecece; /* middle-gray */
  }

  .header-pc-popup-item::after {
    position: absolute;
    top: 50%;
    right: 12px;
    display: block;
    width: 17px;
    height: 17px;
    background-image: url(/assets/images/common/ico-accordion-arrow.svg); /* アイコンのパスを指定 */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translateY(-50%) rotate(-90deg);
    content: '';
  }

  .header-pc-popup-link {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding-top: 16px;
    padding-right: 30px;
    padding-bottom: 16px;
    padding-left: 16px;
    font-size: 16px;
    line-height: 24px;
    word-break: break-all;
  }
}

.header-pc-popup-txtlist {
  display: flex;
  flex-direction: row;
  gap: 32px;
  padding-top: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 32px !important;
  padding-left: 0 !important;
  font-size: 16px;

  a {
    text-decoration: underline;
  }
}

/* 画面幅が768px以上 (md) の場合 */
@media (min-width: 768px) {
  .header-menu-nav2-item {
    width: 25%;
  }

  .header-menu-nav2-item:nth-of-type(4n) {
    border-right: 0;
  }

  .header-menu-nav2-item:nth-of-type(n + 5) {
    border-top: 0;
  }
}

/* 画面幅が768px未満 (max-md) の場合 */
@media (max-width: 767px) {
  .header-menu-nav2-item:nth-of-type(even) {
    border-right: 0;
  }

  .header-menu-nav2-item:nth-of-type(n + 3) {
    border-top: 0;
  }
}
