main {
  padding: 0 min(27px, max(16px, calc(27px + 50vw - 180px))) 80px;
  min-height: 1050px;
}

.title img {
  position: relative;
  left: 14px;
}

.filter-container {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 60px auto 0;
  gap: 20px;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 305px));
  justify-content: center;
}

.dropdown-container {
  position: relative;
  flex: 1;
}

.dropdown-container * {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

.dropdown-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.dropdown-label > span {
  white-space: nowrap;
  font-weight: 700;
  font-size: 20px;
  min-width: 70px;
}

.dropdown-button {
  width: 100%;
  padding: 10px;
  border: 1px solid #707070;
  border-radius: 10px;
  background: white;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 17px 7px;
  max-width: 235px;
  transition: all 0.2s;
  position: relative;
  max-height: 59px;
  height: 59px;
  text-align: center;
}

.dropdown-button.active {
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.dropdown-button span:first-child {
  font-size: 16px;
  font-weight: 700;
  display: block;
  margin: 0 auto;
  color: #000;
}

.dropdown-content {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  width: 100%;
  background: white;
  border: 1px solid #707070;
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  width: calc(100% - 70px);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
  border-radius: 0 0 10px 10px;
}

.dropdown-content.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #707070;
  transition: background-color 0.2s ease;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f5f5f5;
}

.selected-small {
  font-size: 12px !important;
}
.selected-default {
  font-size: 16px !important;
}

.circle-icon {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transition: transform 0.3s ease;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.green-icon {
  background-color: #4caf50;
}

.dropdown-button .circle-icon {
  width: 20px;
  height: 20px;
  background-image: url(../images/common/icon-filter-arrow.png);
  background-repeat: no-repeat;
  background-size: contain;
}

.dropdown-button.active .circle-icon {
  transform: translateY(-50%) scaleY(-1);
}

.recruit-container {
  margin: 80px auto 0;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.recruit-item__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1000px;
  background-color: #626262;
  object-fit: cover;
}

.recruit-item__info {
  width: 100%;
  margin: 20px auto 0;
}

.recruit-item__row:nth-child(odd) {
  background-color: #f4f4f4;
}

.recruit-item__row:nth-child(even) {
  background-color: #fff;
}

.recruit-item__row th,
.recruit-item__row td {
  font-size: 16px;
  line-height: 24px;
  color: #484848;
}

.recruit-item__row th {
  padding: 20px 20px 20px 15px;
  vertical-align: top;
  width: clamp(95px, 25.34vw, 116px);
  font-weight: 500;
}

.recruit-item__row td {
  padding: 20px 15px 20px 0px;
}

.link-button {
  margin-top: 40px;
}

.recruit-pr {
  font-family: "Rounded M+ 1c";
  font-weight: bold;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  color: #2dbe95;
  margin: 20px auto 0;
}
.recruit-item--full .recruit-item__info {
  margin: 17px auto 0;
}

@media (min-width: 500px) {
  .recruit-item__row th br {
    display: none;
  }
}

.back-link {
  display: block;
  margin: 40px auto 0;
  width: min(320px, 85.33vw);
  border: 1px solid #707070;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  color: #707070;
  background-color: #fff;
  border-radius: 2px;
}

.working-hours {
  display: flex;
  flex-direction: column;
}

.result__pagination-box {
  margin-top: 60px;
}

.recruit-item__row--salary td:last-child div {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recruit-item__row--time td:last-child div {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recruit-date {
  font-size: 12px;
  line-height: 17px;
  color: #707070;
  padding: 4px 8px 5px;
  border-radius: 2px;
  border: 1px solid #707070;
  font-family: "Noto Sans JP", sans-serif;
  display: block;
  margin: 0 0 40px auto;
  width: fit-content;
}

@media (min-width: 768px) {
  main {
    padding-bottom: 200px;
  }
  .recruit-item--full {
    margin-top: 60px;
  }
  .dropdown-container {
    position: relative;
    flex: auto;
  }

  #business-dropdown {
    max-width: 285px;
  }

  .filter-container {
    max-width: 660px;
    margin: 100px auto 0;
    gap: 70px;
    display: flex;
  }

  .dropdown-label {
    gap: 10px;
  }

  .dropdown-label > span {
    display: block;
    min-width: 0px;
    width: fit-content;
  }

  .recruit-container {
    margin: 100px auto 0;
    gap: 80px;
  }

  .recruit-item__info {
    margin: 40px auto 0;
  }

  .recruit-item__row th {
    padding: 20px;
    vertical-align: top;
    min-width: 95px;
    width: 116px;
    font-weight: 500;
  }

  .recruit-item__row td {
    padding: 20px 20px 20px 0px;
    width: calc(100% - 116px);
  }

  .link-button {
    margin-top: 40px;
  }

  #business-dropdown .dropdown-content {
    width: calc(100% - 50px);
    max-width: 235px;
  }

  .recruit-pr {
    margin-top: 40px;
    font-size: 24px;
    line-height: 42px;
  }

  .recruit-item--full .recruit-item__info {
    margin: 57px auto 0;
  }

  .working-hours {
    flex-direction: row;
  }

  .recruit-item--full .link-button {
    margin-top: 60px;
  }

  .back-link {
    margin-top: 60px;
  }
}
