@charset "utf-8";

/*------------------------------------------

 Body

------------------------------------------*/

:root {
  --color-primary: #E03B57;
}

.top-jobs-link__items {
  display: flex;
  justify-content: center;
  align-content: center;
  gap: 24px;
}

.top-jobs-link__items + .top-jobs-link__items {
  margin-top: 24px;
}

.top-jobs-link__item {
  width: 320px;
}

.top-jobs-link__item > a {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
  display: block;
  overflow: hidden;
  position: relative;
  transition: .2s;
}

.top-jobs-link__item > a:hover {
  opacity: 0.75;
}

.top-jobs-link__item img {
  width: 100%;
  position: relative;
  z-index: 0;
}

.top-jobs-link__ttl {
  width: 100%;
  height: 52px;
  padding-bottom: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: 0;
}

.top-jobs-link__ttl:is(.--item1 *) {
  background: #6b6a34;
}

.top-jobs-link__ttl:is(.--item2 *) {
  background: #7c682b;
}

.top-jobs-link__ttl:is(.--item3 *) {
  background: #9c6d51;
}

.top-jobs-link__ttl:is(.--item4 *) {
  background: #422b54;
}

.top-jobs-link__ttl:is(.--item5 *) {
  background: #6f234f;
}


@media all and (max-width: 960px) {
  .top-jobs-link {
    padding: 0 12px;
  }

  .top-jobs-link__items {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 16px;
  }

  .top-jobs-link__items + .top-jobs-link__items {
    margin-top: 16px;
  }

  .top-jobs-link__item {
    width: calc((100% - 16px) / 2);
  }
  
  .top-jobs-link__ttl {
    padding-bottom: 4px;
    height: 40px;
    font-size: 13px;
  }
}
