:root {
  --nec-blue: #0F1ED2;
}

.group-bg {
  position: relative;
  &::after {
    position: fixed;
    top: 192px;
    z-index: -1;
    content: "";
    display: block;
    width: 100%;
    height: calc( 100vh - 192px );
    background-image: url(/recruit/images/group/group-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center bottom;
    @media screen and (max-width: 667px) {
      position: absolute;
      top: 0;
      width: 100%;
      height: 0;
      padding-top: 232%;
      background-image: url(/recruit/images/group/group-bg_SP.png);
    }
  }

  .nav-location>.list a {
    color: #fff;
  }

  .nav-location>.list b {
    color: #fff;
  }

  .nav-location>.list>li::before {
    display: none;
  }

  .nav-location>.list>li::after {
    content: ">";
    border: none;
    color: #fff;
    width: auto;
    height: auto;
  }
}

.group-top {

  .content-body {
    padding: 0 10px;
    .content-body__inner {
      display: flex;
      align-items: flex-start;
      gap: 24px;
      max-width: 1200px;
      margin: 0 auto;
      padding-bottom: 40px;
      @media screen and (max-width: 667px) {
        display: block;
      }
    }
    position: sticky;
    .content-body__left {
      position: sticky;
      top: 140px;
      width: 344px;
      flex-shrink: 0;
      @media not all and (min-width: 1025px) {
        width: 280px;
      }
      @media screen and (max-width: 667px) {
        position: static;
        width: 100%;
      }
    }
    .content-body__right {
      flex: 1;
    }
  }

  .page-midashi {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 24px;
    border-radius: 10px;
    background-image: url(/recruit/images/group/index/top_01.png);
    background-repeat: no-repeat;
    @media screen and (min-width: 668px), print {
      height: 509px;
    }
    @media screen and (max-width: 667px) {
      margin-bottom: 24px;
      background-image: url(/recruit/images/group/index/top_01_sp.png);
      background-size: cover;
    }
    .page-midashi__txt1 {
      color: #fff;
      font-size: 4rem;
      font-family: "Inter", sans-serif;
      font-optical-sizing: auto;
      font-weight: 200;
      font-style: normal;
      line-height: 1.4;
      @media not all and (min-width: 1025px) {
        font-size: 3.5rem;
      }
      @media screen and (max-width: 667px) {
        margin-bottom: 48px;
        font-size: 3rem;
      }
    }
    .page-midashi__txt2 {
      color: #fff;
      font-size: 3.7rem;
      font-weight: bold;
      line-height: 1.4;
      @media not all and (min-width: 1025px) {
        font-size: 3.2rem;
      }
      @media screen and (max-width: 667px) {
        font-size: 2.5rem;
      }
    }
  }

  .contents-list {
    margin-bottom: 24px;
    .contents-list__ul {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px 15px;
      flex-wrap: wrap;
      @media not all and (min-width: 1025px) {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    .contents-list__li {
      max-width: 267px;
      @media not all and (min-width: 1025px) {
        max-width: 100%;
      }
    }
    .contents-list__link {
      position: relative;
      display: block;
      height: 100%;
      border-radius: 10px;
      overflow: hidden;
      border: 1px solid var(--nec-blue);
    }
    .contents-list__img {
      img {
        width: 100%;
      }
    }
    .contents-list__txt1 {
      display: flex;
      flex-direction: column;
      align-items: baseline;
      gap: 2px;
      position: absolute;
      top: 0;
      line-height: 1.3;
      @media screen and (max-width: 667px) {
        gap: 3px;
      }
      span {
        padding: 3px 5px;
        color: #fff;
        font-size: 1.4rem;
        border-radius: 0 0 5px 0;
        background-color: var(--nec-blue);
        font-weight: bold;
        transition: all 0.4s;
        @media screen and (max-width: 667px) {
          font-size: 1.1rem;
        }
          ｝
        &:nth-of-type(2) {
          border-radius: 0 5px 5px 0;
        }
      }
    }
    .contents-list__link:hover .contents-list__txt1 span {
      color: var(--nec-blue);
      background-color: #fff;
    }
    .contents-list__link:hover .contents-list__img img {
      opacity: 1;
    }
    .contents-list__txt2 {
      display: flex;
      justify-content: space-between;
      padding: 8px;
      line-height: 1.3;
      @media screen and (max-width: 667px) {
        flex-direction: column;
        align-items: center;
        gap: 12px;
      }
      span {
        color: var(--nec-blue);
        font-weight: bold;
        font-size: 1.4rem;
        @media screen and (max-width: 667px) {
          font-size: 1.1rem;
          letter-spacing: -1px;
        }
      }
    }

    .contents-list__trigger-btn {
      width: 21px;
      height: 21px;
      border-radius: 50%;
      background: #fff;
      border: none;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      border: 1px solid var(--nec-blue);
      border-radius: 50%;
      transition: background 0.2s, box-shadow 0.2s;
    }
    .contents-list__link:hover .contents-list__trigger-btn {
      background: var(--nec-blue);
    }
    .plus {
      display: block;
      position: relative;
      width: 10px;
      height: 10px;
      transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .plus::before,
    .plus::after {
      content: '';
      position: absolute;
      background-color: var(--nec-blue);
      border-radius: 2px;
    }
    .plus::before {
      width: 11px;
      height: 1px;
      top: 4px;
      left: -2px;
    }
    .plus::after {
      width: 1px;
      height: 11px;
      left: 3px;
      top: -1px;
    }
    .contents-list__link:hover .contents-list__trigger-btn .plus {
      transform: rotate(-180deg);
    }
    .contents-list__link:hover .plus::before,
    .contents-list__link:hover .plus::after {
      background-color: #fff;
    }
  }

  .contents-links {
    display: flex;
    gap: 16px;
    @media screen and (max-width: 667px) {
      display: block;
    }
    .contents-link {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 50%;
      height: 160px;
      border-radius: 10px;
      padding: 12px;
      background-size: cover;
      @media screen and (max-width: 667px) {
        width: 100%;
      }
      &:nth-of-type(1) {
        background-image: url(/recruit/images/group/index/top_02.png);
        @media screen and (max-width: 667px) {
          margin-bottom: 16px;
        }
      }
      &:nth-of-type(2) {
        background-image: url(/recruit/images/group/index/top_03.png);
      }
      &:hover {
        .contents-links__arrow {
          margin-right: -3px;
          background-color: var(--nec-blue);
          &::after {
            border-left: 5px solid #fff;
          }
        }
      }
    }
    .contents-links__title {
      color: #fff;
      font-size: 1.8rem;
      font-weight: bold;
    }
    .contents-links__txt {
      display: flex;
      justify-content: flex-end;
      color: #fff;
      font-size: 1.2rem;
    }
    .contents-links__arrow {
      display: block;
      position: relative;
      width: 21px;
      height: 21px;
      border-radius: 50%;
      border: 1px solid var(--nec-blue);
      background-color: #fff;
      transition: all .3s;
      flex-shrink: 0;
      &::after {
        position: absolute;
        top: 7px;
        left: 8px;
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-left: 5px solid var(--nec-blue);
        border-right: 0;
      }
    }
  }

}

/* popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  background-image: url(/recruit/images/group/index/top_popup-overlay-bg.png);
  background-size: cover;
  background-position: center;
  @media not all and (min-width: 1025px) {
    padding: 26px;
  }
  @media screen and (max-width: 667px) {
    align-items: flex-start;
  }
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
  z-index: 3000;
}

.popup {
  display: none;
  width: 100%;
  max-width: 960px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s;
  @media not all and (min-width: 1025px) {
  }
  @media screen and (max-width: 667px) {
    margin-top: 16px;
  }
  &.active {
    display: block;
    transform: translateY(0) scale(1);
  }
  .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 33px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nec-blue);
    line-height: 1;
    transition: color 0.15s;
    @media not all and (min-width: 1025px) {
      top: -35px;
      right: -9px;
      font-size: 28px;
    }
  }
  .close-btn:hover {
    color: #333;
  }
  .popup-content {
    display: flex;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    @media not all and (min-width: 1025px) {
      display: block;
      max-width: 600px;
      margin: 0 auto;
      overflow-y: auto;
      max-height: 90vh;
    }
  }
  .popup-content__left {
    width: 50%;
    flex-shrink: 0;
    @media not all and (min-width: 1025px) {
      width: 100%;
    }
    img {
      @media not all and (min-width: 1025px) {
        width: 100%;
      }
    }
  }
  .popup-content__right {
    width: 50%;
    padding: 60px 48px;
    @media not all and (min-width: 1025px) {
      width: 100%;
      padding: 16px;
    }
    h3 {
      margin-bottom: 48px;
      font-size: 2.4rem;
      font-weight: bold;
      color: var(--nec-blue);
      line-height: 1.2;
      @media not all and (min-width: 1025px) {
        margin-bottom: 24px;
        font-size: 2rem;
        text-align: center;
      }
    }
    p {
      margin-bottom: 48px;
      line-height: 1.8;
      font-weight: bold;
      @media not all and (min-width: 1025px) {
        margin-bottom: 24px;
      }
    }
  }
  .popup-content__table {
    padding: 12px 16px;
  }
  table {
    height: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    tr {
      &:last-child {
        th, td {
          border-bottom: none;
        }
      }
      th {
        height: 100%;
        color: #fff;
        white-space: nowrap;
        border-bottom: 1px dotted #ccc;
        div {
          display: flex;
          align-items: center;
          justify-content: center;
          height: calc( 100% - 24px );
          margin: 12px 0;
          padding: 0 10px;
          background-color: var(--nec-blue);
        }
      }
      td {
        padding: 12px;
        border-bottom: 1px dotted #ccc;
        > div {
          p {
            color: var(--nec-blue);
            font-weight: bold;
          }
          > div {

          }
        }
      }
    }
  }
}


.saiyo-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  a {
    display: flex;
    width: 50%;
    padding: 15px 24px;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--nec-blue);
    border-radius: 40px;
    color: var(--nec-blue);
    font-weight: bold;
    line-height: 1.2;
    background-color: #fff;
    transition: all .3s;
    @media screen and (max-width: 667px) {
      padding: 12px;
    }
    &.full {
      @media screen and (max-width: 667px) {
        width: 100%;
      }
    }
    &:hover {
      color: #fff;
      background-color: var(--nec-blue);
      span {
        background-color: #fff;
        &::after {
          border-left: 5px solid var(--nec-blue);
        }
      }
    }
    span {
      display: block;
      flex-shrink: 0;
      position: relative;
      width: 21px;
      height: 21px;
      border-radius: 50%;
      background-color: var(--nec-blue);
      transition: all .3s;
      &::after {
        position: absolute;
        top: 7px;
        left: 8px;
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-top: 3px solid transparent;
        border-bottom: 3px solid transparent;
        border-left: 5px solid #fff;
        border-right: 0;
      }
    }
  }
}


/* .group-list */
.group-list {
  .content-body {
    max-width: 1200px;
    margin: 0 auto;
    .content-body__inner {
      @media screen and (max-width: 667px) {
        padding: 0 16px;
      }
    }
  }

  .pagetitle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 40px;
    padding-top: 100px;
    padding-left: 20px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(15,30,210,0.5);
    @media screen and (max-width: 667px) {
      margin-bottom: 20px;
      padding-top: 40px;
      padding-left: 0;
    }
    &::before {
      content: "";
      display: block;
      width: 10px;
      height: 10px;
      background-color: var(--nec-blue);
    }
  }

  .contents-list {
    margin-bottom: 24px;
    padding: 64px 40px;
    border-radius: 14px;
    background-color: rgba(255,255,255,0.6);
    @media screen and (max-width: 667px) {
      padding: 32px 24px;
    }
    .contents-list__ul {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px 15px;
      flex-wrap: wrap;
      @media not all and (min-width: 1025px) {
        grid-template-columns: repeat(2, 1fr);
      }
      @media not all and (min-width: 667px) {
        display: block
      }
    }
    .contents-list__li {
      display: flex;
      flex-direction: column;
      position: relative;
      max-width: 358px;
      border: 1px solid var(--nec-blue);
      border-radius: 14px;
      overflow: hidden;
      background-color: #fff;
      @media not all and (min-width: 1025px) {
        max-width: 100%;
        margin-bottom: 24px;
      }
    }
    .contents-list__head {}
    .contents-list__img {
      img {
        width: 100%;
      }
    }
    .contents-list__txt1 {
      display: flex;
      flex-direction: column;
      align-items: baseline;
      gap: 6px;
      position: absolute;
      top: 0;
      line-height: 1.3;
      @media screen and (max-width: 667px) {
        gap: 5px;
      }
      span {
        padding: 7px 10px;
        color: #fff;
        font-size: 1.6rem;
        border-radius: 0 0 5px 0;
        background-color: var(--nec-blue);
        font-weight: bold;
        transition: all 0.4s;
        @media screen and (max-width: 667px) {
          font-size: 1.1rem;
        }
          ｝
        &:nth-of-type(2) {
          border-radius: 0 5px 5px 0;
        }
      }
    }
    .contents-list__body {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      padding: 20px;
      h3 {
        margin-bottom: 14px;
        font-size: 1.6rem;
        color: var(--nec-blue);
        font-weight: bold;
      }
      p {
        flex-grow: 1;
        margin-bottom: 14px;
        font-size: 1.4rem;
      }
      .saiyo-links {
        margin-top: auto;
        a {
          font-size: 1.3rem;
          &:nth-of-type(1) {
            width: 45%;
          }
          &:nth-of-type(2) {
            width: 55%;
          }
          &.full {
            width: 100%;
            @media screen and (max-width: 667px) {
            }
          }
        }
      }
    }
  }
}



/* group-about */
.group-about {
  &::after {
    @media not all and (min-width: 1050px) {
      width: 100%;
      height: 0;
      padding-top: 300%;
      background-image: url(/recruit/images/group/group-bg_SP.png);
    }
  }
 .content-body {
    max-width: 1200px;
    margin: 0 auto;
    .content-body__inner {
      @media screen and (max-width: 667px) {
        padding: 0 16px;
      }
    }
  }

  .pagetitle {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 40px;
    padding-top: 100px;
    padding-left: 20px;
    color: #fff;
    text-shadow: 0 1px 8px rgba(15,30,210,0.5);
    @media screen and (max-width: 667px) {
      margin-bottom: 20px;
      padding-top: 40px;
      padding-left: 0;
    }
    &::before {
      content: "";
      display: block;
      width: 10px;
      height: 10px;
      background-color: var(--nec-blue);
    }
  }

  .content-head {
    .content-head__top {
      display: flex;
      gap: 40px;
      margin-bottom: 56px;
      @media screen and (max-width: 667px) {
        flex-direction: column;
      }
      h3 {
        display: flex;
        flex-direction: column;
        gap: 16px;
        span {
          display: inline-block;
          padding: 3px 10px;
          color: var(--nec-blue);
          font-size: 4.8rem;
          white-space: nowrap;
          background-color: #fff;
          @media screen and (max-width: 667px) {
            width: 70%;
            font-size: 2.3rem;
          }
        }
      }
      p {
        color: #fff;
        line-height: 2.2;
        text-shadow: 0 1px 8px rgba(15,30,210,0.5);
        @media screen and (max-width: 667px) {
          line-height: 1.8;
        }
      }
    }
  }

  .content-desc {
    position: relative;
    border-radius: 14px;
    padding: 36px 102px;
    background-color: rgba(255,255,255,0.6);
    z-index: 10;
    @media screen and (max-width: 667px) {
      padding: 32px;
    }
    .content-desc__txt {
      margin-bottom: 24px;
      color: var(--nec-blue);
      font-weight: bold;
      font-size: 2.4rem;
      text-align: center;
      @media screen and (max-width: 667px) {
        font-size: 1.8rem;
        line-height: 1.5;Q
      }
    }
    .content-desc__blocks {
      display: flex;
      gap: 14px;
      @media screen and (max-width: 667px) {
        flex-direction: column;
        align-items: center;
      }
    }
    .content-desc__block {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 25%;
      padding: 20px;
      border-radius: 8px;
      line-height: 1.2;
      background-color: var(--nec-blue);
      @media screen and (max-width: 667px) {
        width: 100%;
        padding: 16px;
      }
      .content-desc__txt1 {
        margin-bottom: 5px;
        color: #fff;
      }
      .content-desc__txt2 {
        color: #fff;
        font-size: 2.8rem;
        font-weight: bold;
        @media screen and (max-width: 667px) {
          font-size: 1.8rem;
        }
      }
    }
  }

  .content-body-bg {
    position: relative;
    margin-top: 50px;
    .content-body-bg__inner {
      position: relative;
      padding-top: 0;
      z-index: 5;
      @media screen and (max-width: 667px) {
        padding-top: 0;
      }
      &::before {
        top: 0;
        left: calc( ( 100vw - 100% ) / 2 * -1 );
        position: absolute;
        content: "";
        display: block;
        width: 100vw;
        height: 100%;
        background: linear-gradient(135deg,rgba(40, 54, 212, 1) 74%, rgba(12, 25, 207, 1) 100%);
        z-index: -1;
      }
    }
  }

  .content-stack-container {
    height: calc(5 * 100vh);
    @media screen and (max-width: 667px) {
      height: calc(5 * 100vh + 500px * 5);
      margin-bottom: 48px;
    }
  }
  .content-stack-container__card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    height: 100vh;
    @media screen and (max-width: 667px) {
      margin-bottom: 500px;
    }
    &:last-child {
      @media screen and (max-width: 667px) {
      }
    }
    .content-stack-container__card-inner {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 60%;
      padding: 56px;
      border-radius: 14px;
      background-color: #fff;
      @media screen and (max-width: 667px) {
        display: block;
        height: 97%;
        padding: 24px;
        overflow-y: auto;
      }
      &.flex {
        flex-direction: row;
        align-items: center;
        gap: 48px;
      }
    }
    .content-stack-container__card-left {}
    .content-stack-container__card-right {
      flex: 1 0 50%;
    }
    .content-stack-container__card-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        color: #fff;
        background-color: var(--nec-blue);
      }
      em {
        font-weight: bold;
      }
    }
    .content-stack-container__card-midashi {
      margin-bottom: 12px;
      font-weight: bold;
      font-size: 3.2rem;
      @media screen and (max-width: 667px) {
        font-size: 2.2rem;
        line-height: 1.5;
      }
    }
    .content-stack-container__card-txt1 {
      margin-bottom: 12px;
      color: var(--nec-blue);
      font-weight: bold;
      font-size: 1.8rem;
      @media screen and (max-width: 667px) {
        font-size: 1.6rem;
        line-height: 1.4;
      }
    }
    .content-stack-container__card-txt2 {
      margin-bottom: 12px;
    }
    .content-stack-container__card-link {
      padding-top: 24px;
      @media screen and (max-width: 667px) {
        padding-top: 12px;
        margin-bottom: 24px;
      }
      a {
        @media screen and (max-width: 667px) {
          width: 100%;
        }
        &:hover {
          .trigger-btn {
            border: 1px solid #fff;
            background: var(--nec-blue);
          }
          .plus {
            transform: rotate(-180deg);
          }
          .plus::before,
          .plus::after {
            background-color: #fff;
          }
        }
        .trigger-btn {
          width: 21px;
          height: 21px;
          border-radius: 50%;
          background: #fff;
          border: none;
          cursor: pointer;
          display: flex;
          justify-content: center;
          align-items: center;
          border: 1px solid var(--nec-blue);
          border-radius: 50%;
          transition: background 0.2s, box-shadow 0.2s;
        }
        .plus {
          display: block;
          position: relative;
          width: 10px;
          height: 10px;
          transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }
        .plus::before,
        .plus::after {
          content: '';
          position: absolute;
          background-color: var(--nec-blue);
          border-radius: 2px;
        }
        .plus::before {
          width: 11px;
          height: 1px;
          top: 4px;
          left: -2px;
        }
        .plus::after {
          width: 1px;
          height: 11px;
          left: 3px;
          top: -1px;
        }
      }
    }
    .content-stack-container__card-img {
      text-align: center;
      img {
        border-radius: 10px;
        overflow: hidden;
      }
    }
  }

  .content-outro {
    padding-bottom: 100px;
    @media screen and (max-width: 667px) {
      margin-top: -500px;
      padding-bottom: 80px;
    }
    .content-outro__midashi {
      margin-bottom: 48px;
      text-align: center;
      color: #fff;
      font-weight: bold;
      font-size: 2.8rem;
      line-height: 1.8;
      @media screen and (max-width: 667px) {
        margin-bottom: 24px;
        font-size: 1.8rem;
        line-height: 1.6;
      }
    }
    .content-outro__txt {
      margin-bottom: 48px;
      text-align: center;
      color: #fff;
      font-size: 1.8rem;
      line-height: 1.8;
      @media screen and (max-width: 667px) {
        font-size: 1.5rem;
        line-height: 1.6;
      }
    }
    .content-outro__link {
      justify-content: center;
      a {
        max-width: 270px;
        width: 100%;
        font-size: 1.4rem;
        white-space: nowrap;
        @media screen and (max-width: 667px) {
          max-width: 220px;
          font-size: 1.2rem;
        }
      }
    }
  }

}


/* .random-list */
@keyframes spin { to { transform: rotate(360deg); } }

.random-list {
  position: relative;
  &.finish {
    &::before,
    &::after {
      display: none;
    }
  }
  &::before {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -20px;
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1); /* Or use a CSS var for this color */
    border-radius: 50%;
    border-top-color: var(--nec-blue);
    animation: spin 1s ease-in-out infinite;
    z-index: 100;
  }
  &::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
  }
}

/* common */
.pc {
  display: none;
  @media screen and (min-width: 668px), print {
    display: block;
  }
}

.sp {
  display: block;
  @media screen and (min-width: 668px), print {
    display: none;
  }
}
