.page-career {
  background-color: var(--color-gray-bg);

  .page-title-group {
    @media (width <=767px) {
      gap: 8px;
      margin-bottom: 30px;
    }
  }

  .page-title {
    gap: 0;
    font-size: clamp(40px, 6.11vw, 88px);
    line-height: 1.2;

    :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
      font-size: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
      line-height: 1.5;
    }

    .page-title-sub {
      display: inline;
      font-size: clamp(30px, 3.33vw, 48px);
      line-height: 1.2;

      :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
        font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
      }
    }
  }

  .page-title-catch {
    max-width: 800px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    @media (width <=767px) {
      margin-bottom: 0;
    }
  }
}

.career-articles {
  padding-bottom: 120px;

  @media (width <=767px) {
    padding-bottom: 60px;
  }

  .career-articles-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;

    @media (width <=998px) {
      flex-direction: column-reverse;
      gap: 60px;
      align-items: flex-start;
    }

    .search-summary {
      color: var(--color-gray);
    }

    .career-articles-search-form {
      display: flex;
      box-shadow: 1px 1px 10px 0 #11151d14;

      @media (width <=998px) {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        box-shadow: none;
      }

      .field-group {
        display: flex;
        gap: 2px;
        align-items: center;
        min-width: 204px;
        height: 56px;
        padding: 16px;
        appearance: none;
        cursor: pointer;
        background-color: var(--color-white);
        border: none;

        &:first-child {
          border-radius: 4px 0 0 4px;

          @media (width <=998px) {
            width: 100%;
            border-radius: 4px 4px 0 0;
          }
        }

        &:nth-child(2),
        &:nth-child(3) {
          border-left: 1px solid #7e909933;

          @media (width <=998px) {
            width: 50%;
            min-width: auto;
            max-width: 50%;
            margin-bottom: 24px;
            border-top: 1px solid #7e909933;
            border-left: none;
          }
        }

        &:nth-child(3) {
          @media (width <=998px) {
            border-left: 1px solid #7e909933;
          }
        }

        svg {
          width: 24px;
        }

        select {
          align-items: center;
          width: 100%;
          color: var(--color-black);
          cursor: pointer;
          border: none;
          opacity: 0.5;

          &:focus-visible {
            outline: none;
          }
        }
      }

      button[type='submit'] {
        width: 80px;
        height: 56px;
        color: var(--color-white);
        cursor: pointer;
        background-color: var(--color-accent);
        border: none;
        border-radius: 0 4px 4px 0;
        transition: filter 0.3s ease;

        @media (width <=998px) {
          display: flex;
          gap: 4px;
          align-items: center;
          justify-content: center;
          width: 152px;
          height: 46px;
          border-radius: 4px;
        }

        &:hover {
          filter: brightness(0.9);
        }

        svg {
          width: 32px;

          @media (width <=998px) {
            width: 14px;
          }
        }

        span {
          display: none;

          @media (width <=998px) {
            display: inline;
            font-family: var(--font-en);
            font-size: 14px;
          }
        }
      }
    }
  }

  .career-articles-inner-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 80px;

    @media (width <=767px) {
      margin-bottom: 40px;
    }
  }

  .career-article {
    padding: 24px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition:
      box-shadow,
      0.3s ease;

    @media (width <= 767px) {
      padding: 20px 16px 16px;
      border-radius: 4px;
    }

    &:hover {
      color: var(--color-black);
      box-shadow: var(--shadow);
    }
  }

  .career-article-details {
    position: relative;

    .career-article-details-summary {
      padding-right: 74px;
      font-weight: 700;
      cursor: pointer;
      list-style: none;

      @media (width <=767px) {
        padding-right: 0;
      }

      .career-article-details-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        background-color: var(--color-gray-bg);
        border-radius: 25px;

        @media (width <=767px) {
          display: none;
        }

        .border {
          position: inherit;
          width: 12px;
          border: 1px solid var(--color-accent);

          &.border-2 {
            transform: rotateZ(90deg);
            transition: transform 0.3s ease;
          }
        }
      }

      &:hover {
        .career-article-details-toggle {
          background-color: var(--color-accent);
          transition: background-color 0.3s ease;

          .border {
            border-color: var(--color-white);
          }
        }
      }
    }

    &[open] {
      .career-article-details-summary {
        .career-article-details-toggle {
          .border.border-2 {
            transform: rotateZ(0deg);
          }
        }
      }
    }
  }

  .career-article-title {
    margin-bottom: 16px;
    font-size: clamp(16px, 1.67vw, 24px);
    font-weight: 700;
    line-height: 1.5;

    @media (width <=767px) {
      margin-bottom: 8px;
    }
  }

  .career-article-conditions {
    display: flex;
    gap: 20px;
    color: var(--color-accent);
    filter: opacity(0.5);

    li {
      display: flex;
      gap: 4px;
      align-items: center;
      font-size: clamp(14px, 1.11vw, 16px);
      line-height: 1;

      svg {
        width: 24px;

        @media (width <=767px) {
          width: 14px;
        }
      }
    }
  }

  .career-article-detail {
    padding-top: 24px;
    text-align: left;

    table {
      margin-bottom: 24px;

      tbody {
        display: grid;
        row-gap: 16px;

        tr {
          display: grid;
          grid-template-columns: 180px auto;

          @media (width <=767px) {
            grid-template-columns: auto;
          }

          th {
            align-content: start;
            font-size: clamp(16px, 16px, 16px);
            font-weight: 400;
            line-height: 1.5;

            &:first-child {
              font-weight: 700;
            }

            &:nth-child(2) {
              @media (width <=767px) {
                font-size: 14px;
              }
            }
          }
        }
      }
    }
  }

  .career-article-apply {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-size: clamp(14px, 1.11vw, 16px);
    line-height: 1.5;
    color: var(--color-gray);
    text-align: center;

    .career-article-apply-actions {
      display: flex;
      gap: 8px;
      justify-content: center;
    }

    .career-article-apply-action {
      display: block;
      width: 200px;
      padding: 16px 0;
      font-size: 14px;
      font-weight: 700;
      line-height: 1;
      text-align: center;
      cursor: pointer;
      border-radius: 4px;
      transition: filter 0.3s ease;

      &:hover {
        filter: brightness(0.9);
      }

      @media (width <=767px) {
        width: 150px;
        padding: 16px 0;
      }

      &.link {
        display: flex;
        gap: 4px;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        text-decoration: none;
        background-color: var(--color-accent);

        svg {
          width: 14px;
        }
      }

      &.close {
        display: none;

        @media (width <=767px) {
          display: block;
          font-family: var(--font-en);
          color: var(--color-accent);
          text-decoration: none;
          background-color: var(--color-white);
          border: 1px solid var(--color-accent);
        }
      }
    }

    a {
      color: var(--color-link);
      text-decoration: underline;
    }

    br {
      display: none;

      @media (width <=767px) {
        display: block;
      }
    }
  }

  .career-articles-pagination {
    .nav-links {
      display: flex;
      gap: 10px;
      justify-content: center;

      .page-numbers {
        display: block;
        width: 50px;
        height: 50px;
        font-size: 24px;
        font-weight: 700;
        line-height: 50px;
        text-align: center;
        background-color: var(--color-white);
        border-radius: 10px;

        @media (width <=767px) {
          width: 40px;
          height: 40px;
          font-size: 16px;
          line-height: 40px;
        }

        &.dots {
          width: fit-content;
          background-color: inherit;
        }

        &.current {
          color: var(--color-white);
          background-color: var(--color-accent);
        }
      }
    }
  }

  .no-careers {
    padding-top: 80px;
    text-align: center;

    @media (width <=767px) {
      padding-top: 16px;
    }

    h2 {
      margin-bottom: 20px;
      font-size: clamp(30px, 3.33vw, 48px);
      font-weight: 700;
      line-height: 1.2;

      :is(html[lang='ja'], html[lang='jp']) :is(&:not(.en-label)) {
        font-size: clamp(1.75rem, 1.536rem + 1.07vw, 2.5rem);
      }
    }

    p {
      font-size: clamp(14px, 1.11vw, 16px);
      font-weight: 400;
      line-height: 1.5;
    }
  }
}
