main {
  padding-bottom: 2.8125rem;
}

.section {
  max-width: 77.5rem;
}

.content_head {
  margin: 0 auto;
  max-width: 77.5rem;
  padding-inline: 1.25rem;
}

/* セクション間の余白 */

.section--jobs {
  padding-block: 6.25rem 10rem;
}

.section--undecided {
  padding-bottom: 5rem;
}

.section--process {
  padding-bottom: 6.25rem;
}

/* 採用区分タブ */

.jobTabs {
  margin-top: 5rem;
}

.jobTabs__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.jobTabs__link {
  align-items: center;
  background: #f7fafd;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  min-height: 5rem;
  padding: 0.5rem 1rem;
  text-align: center;
}

.jobTabs__link:hover {
  background: #eaf1f9;
}

.jobTabs__label {
  color: #5880b5;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.jobTabs__sub {
  color: #5880b5;
  font-size: 0.75rem;
  line-height: 1.6;
}

.jobTabs__link.is-current {
  background: var(--colorMain);
  pointer-events: none;
}

.jobTabs__link.is-current .jobTabs__label,
.jobTabs__link.is-current .jobTabs__sub {
  color: var(--colorWhite);
}

/* 絞り込み + 求人一覧 */

.jobSearch {
  display: grid;
  gap: 4rem;
  grid-template-columns: 15rem 1fr;
  margin-top: 2.5rem;
}

.jobFilter {
  display: flex;
  flex-direction: column;
  gap: 3.7rem 1.5rem;
  padding-top: 4.8125rem;
}

.jobFilter__heading {
  align-items: center;
  border-bottom: 1px solid #e5e9ec;
  color: var(--colorMain);
  cursor: pointer;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.2;
  list-style: none;
  padding-bottom: 0.75rem;
}

.jobFilter__heading::-webkit-details-marker {
  display: none;
}

.jobFilter__heading::after {
  border-bottom: 2px solid var(--colorMain);
  border-right: 2px solid var(--colorMain);
  content: "";
  height: 0.3125rem;
  margin-right: 0.25rem;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 0.3s;
  width: 0.3125rem;
}

.jobFilter__group:not([open]) .jobFilter__heading::after {
  transform: translateY(25%) rotate(-135deg);
}

.jobFilter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.jobFilter__chip {
  background: var(--colorWhite);
  border: 1px solid var(--colorRightGray);
  border-radius: 999px;
  color: var(--colorBlack);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.7;
  padding: 0.3125rem 1rem;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.jobFilter__chip:hover {
  border-color: var(--colorMain);
}

.jobFilter__chip.is-active {
  background: #5880b5;
  border-color: var(--colorMain);
  color: var(--colorWhite);
}

.jobResult__head {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  min-height: 4.8125rem;
}

.jobResult__count {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 2;
}

.jobResult__countNum {
  color: var(--colorMain);
  font-family: "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  margin-inline: 0.25rem;
}

.jobResult__reset {
  align-items: center;
  background: var(--colorWhite);
  border: 1px solid var(--colorRightGray);
  border-radius: 999px;
  color: var(--colorGray);
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: 0.4375rem;
  letter-spacing: 0.04em;
  line-height: 2;
  padding: 0.375rem 1rem 0.375rem 0.6875rem;
  transition: border-color 0.3s;
}

/* × アイコン */
.jobResult__reset::before {
  background:
    linear-gradient(var(--colorGray), var(--colorGray)) center / 2px 14px no-repeat,
    linear-gradient(var(--colorGray), var(--colorGray)) center / 14px 2px no-repeat;
  content: "";
  height: 1.5rem;
  transform: rotate(45deg);
  width: 1.5rem;
}

.jobResult__reset:hover {
  border-color: var(--colorGray);
}

.jobResult__empty {
  color: var(--colorGray);
  font-size: 0.875rem;
  padding-block: 2.5rem;
  text-align: center;
}

.jobList {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, 1fr);
}

/* 求人カード */

.jobCard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.jobCard[hidden] {
  display: none;
}

.jobCard__thumbnail {
  aspect-ratio: 432 / 289;
  background: #f1f0f4;
  overflow: hidden;
}

.jobCard__thumbnail img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  width: 100%;
}

.jobCard:hover .jobCard__thumbnail img {
  transform: scale(1.05);
}

.jobCard__title {
  color: var(--colorMain);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

/* カード内のタイトルとタグの間は 12px */
.jobCard__title + .jobTags {
  margin-top: -0.25rem;
}

.jobCard__infoRow {
  align-items: center;
  border-top: 1px solid #e1e7ef;
  display: flex;
  gap: 0.625rem;
  padding-block: 0.5rem;
}

.jobCard__infoRow dt {
  align-items: center;
  color: #5c6472;
  display: flex;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 0.625rem;
  line-height: 1.2;
  width: 6.25rem;
}

/* ラベル右の区切り線 */
.jobCard__infoRow dt::after {
  background: #e1e7ef;
  content: "";
  height: 1.25rem;
  margin-left: auto;
  width: 1px;
}

.jobCard__infoRow dt::before {
  background-color: #1684d9;
  content: "";
  flex-shrink: 0;
  height: 1.25rem;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  width: 1.25rem;
}

/* 勤務地アイコン（ピン） */
.jobCard__infoRow--location dt::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}

/* 施設種別アイコン（建物） */
.jobCard__infoRow--facility dt::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Crect x='5' y='3' width='14' height='18' rx='1'/%3E%3Cpath d='M9 7h2M13 7h2M9 11h2M13 11h2M10 21v-4h4v4'/%3E%3C/svg%3E");
}

/* 雇用形態アイコン（人） */
.jobCard__infoRow--employment dt::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.8a3.5 3.5 0 0 1 0 6.4M18 14a6.5 6.5 0 0 1 3.5 6'/%3E%3C/svg%3E");
}

.jobCard__infoRow dd {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.jobCard__infoRow dd span {
  color: #5c6472;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.jobCard__btn {
  align-items: center;
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 0.625rem;
  letter-spacing: 0.04em;
  line-height: 2;
  margin-top: 1.75rem;
  transition: color 0.2s ease-out;
}

/* 矢印（先輩の声カードの .voice__detailBtn と同じ） */
.jobCard__btn::after {
  background-image: url(../../../img/recruit/common/icon-voice-black.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  display: block;
  height: 1.5rem;
  transition: background-image 0.2s ease-out;
  width: 1.5rem;
}

.jobCard:hover .jobCard__btn {
  color: var(--colorMain);
}

.jobCard:hover .jobCard__btn::after {
  background-image: url(../../../img/recruit/common/icon-voice-blue.png);
}

/* カード全体をクリック可能にする */
.jobCard__btn::before {
  content: "";
  inset: 0;
  position: absolute;
}

.jobCard__btn:focus-visible {
  outline: none;
}

.jobCard:has(.jobCard__btn:focus-visible) {
  outline: 2px solid var(--colorMain);
  outline-offset: 4px;
}

/* 職種が決まっていない方 */

.undecided__btn {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.undecided__btn button {
  align-items: center;
  background: var(--colorBlack);
  border: none;
  border-radius: 60px;
  color: var(--colorWhite);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 1rem;
  gap: 0.625rem;
  justify-content: space-between;
  line-height: 1;
  min-height: 3.125rem;
  min-width: 15.8125rem;
  padding: 0.625rem 0.9375rem 0.625rem 1.75rem;
  transition: background-color 0.2s ease-out;
}

/* 矢印とホバーは共通の .detail__btn と同じ */
.undecided__btn button::after {
  background: url(../../../img/recruit/common/icon-btn.png) center / contain no-repeat;
  content: "";
  flex-shrink: 0;
  height: 1.5rem;
  width: 1.5rem;
}

.undecided__btn button:hover {
  background-color: var(--colorMain);
}

/* 選考プロセス */

.processList {
  counter-reset: process;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem auto 0;
  max-width: 62.5rem;
}

.processList__item {
  background: #fbfbfb;
  border: 1px solid var(--colorMain);
  border-radius: 8px;
  counter-increment: process;
  display: grid;
  gap: 0.75rem 0.5rem;
  grid-template-columns: 2.25rem 1fr;
  padding: 1.5rem 1rem;
}

.processList__item::before {
  color: var(--colorMain);
  content: counter(process);
  font-family: "Inter", sans-serif;
  font-size: 2.25rem;
  font-weight: 300;
  grid-row: 1 / span 2;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.processList__title {
  color: var(--colorMain);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 2;
}

.processList__text {
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.section--othersite {
  padding-bottom: 5rem;
}

.othersite_btn {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem 3.33%;
  justify-content: center;
  margin-top: 2.5rem;
}

.othersite__link {
  align-items: center;
  background: var(--colorBlack);
  border: none;
  border-radius: 60px;
  color: var(--colorWhite);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 1rem;
  gap: 0.625rem;
  justify-content: space-between;
  line-height: 1;
  min-height: 3.125rem;
  min-width: 15.8125rem;
  padding: 0.625rem 1.375rem 0.625rem 1.75rem;
  transition: background-color 0.2s ease-out;
  width: fit-content;
}

.othersite__link::after {
  background: url(../../../img/recruit/common/icon-site-link-white.svg) center / contain no-repeat;
  content: "";
  flex-shrink: 0;
  height: .625rem;
  width: .625rem;
}

.othersite__link:hover {
  background-color: var(--colorMain);
}

.footer__recruitInfo {
  display: none;
}
@media screen and (max-width: 950px) {
  .jobSearch {
    gap: 2.5rem;
    grid-template-columns: 1fr;
  }

  .jobFilter {
    padding-top: 0;
  }
}

@media screen and (max-width: 767px) {
  .section--jobs {
    padding-block: 5rem 7.5rem;
  }

  .section--undecided {
    padding-bottom: 3.75rem;
  }

  .section--process {
    padding-bottom: 5rem;
  }

  .jobTabs {
    margin-top: 2.5rem;
  }

  .jobTabs__link {
    min-height: 4rem;
  }

  .jobTabs__label {
    font-size: 0.9375rem;
  }

  .jobTabs__sub {
    font-size: 0.6875rem;
  }

  .jobResult__head {
    align-items: stretch;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 1.25rem;
    row-gap: 2rem;
  }

  .jobResult__count {
    align-self: flex-start;
  }

  .jobResult__reset {
    align-self: flex-end;
    font-size: 0.75rem;
    order: -1;
  }

  .jobList {
    gap: 4rem;
    grid-template-columns: 1fr;
  }

  .jobCard__title {
    font-size: 1.125rem;
  }

  .jobCard__btn {
    margin-top: 0.625rem;
  }

  .processList__item {
    padding: 1.25rem 1rem;
  }

  .processList__item::before {
    font-size: 1.75rem;
  }

  .processList__title {
    font-size: 0.9375rem;
    line-height: 1.6;
  }

  .processList__text {
    font-size: 0.8125rem;
  }
}
