/* 求人情報ページ専用。共通のstyle.cssの後に読み込みます。 */
.recruit-page {
  background: #fffcf9;
}

.recruit-openings {
  padding-block: 60px 65px;
}

.recruit-introduction {
  margin-bottom: 32px;
  text-align: center;
}

.recruit-section-en {
  margin: 0 0 8px;
  color: #59bda5;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
}

.recruit-introduction h2,
.recruit-flow-heading h2 {
  margin: 0 0 18px;
  color: #374249;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.7;
}

.recruit-introduction > p:last-child {
  margin: 0;
  color: #66756a;
  font-size: 14px;
  line-height: 2;
}

.recruit-links {
  padding: 32px;
  border: 1px solid #e1ecdd;
  border-radius: 26px;
  background: linear-gradient(120deg, #f0f8ed, #f8fbf5 60%, #fff8ee);
}

.recruit-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 16px 46px 16px 22px;
  border: 1px solid #cbdcc3;
  border-radius: 14px;
  background: #fff;
  color: #47644d;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.recruit-link:hover {
  border-color: #82ba8b;
  box-shadow: 0 6px 18px rgba(65, 110, 75, .08);
  transform: translateY(-2px);
}

.recruit-link-common {
  width: min(460px, 100%);
  margin: 0 auto 22px;
  border-color: #59bda5;
  background: #59bda5;
  color: #fff;
}

.recruit-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recruit-link-arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.recruit-link > .recruit-link-arrow {
  position: absolute;
  top: 50%;
  right: 23px;
  transform: translateY(-50%) rotate(45deg);
}

.recruit-flow {
  padding-bottom: 85px;
}

.recruit-flow-heading {
  margin-bottom: 30px;
  padding-top: 30px;
  border-top: 2px solid #9dd5bd;
  text-align: center;
}

.recruit-steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recruit-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 50px;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid #e3eadd;
  border-radius: 20px;
  background: #fff;
}

.recruit-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid #cbdcc3;
  border-right: 10px solid transparent;
  border-left: 10px solid transparent;
  transform: translateX(-50%);
}

.recruit-step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #edf7e8;
  color: #54865c;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.3;
}

.recruit-step-number small {
  font-size: 10px;
  letter-spacing: .06em;
}

.recruit-step-content {
  min-width: 0;
}

.recruit-step-content h3 {
  margin: 0 0 10px;
  color: #374249;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 20px;
  line-height: 1.7;
}

.recruit-step-content p {
  margin: 0;
  color: #66756a;
  font-size: 14px;
  line-height: 1.9;
}

.recruit-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eaf7f2;
  color: #59bda5;
}

.recruit-step-icon svg {
  width: 28px;
  height: 28px;
}

.recruit-apply {
  margin-top: 40px;
  text-align: center;
}

.recruit-apply p {
  margin: 0 0 16px;
  color: #66756a;
  font-size: 14px;
}

.recruit-apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 56px;
  padding: 13px 30px;
  border-radius: 999px;
  background: #59bda5;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.recruit-apply-button:hover {
  background: #48ac94;
}

@media (max-width: 980px) {
  .recruit-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recruit-step {
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .recruit-openings {
    padding-block: 36px 45px;
  }

  .recruit-introduction > p:last-child {
    font-size: 13px;
  }

  .recruit-links {
    padding: 18px;
    border-radius: 20px;
  }

  .recruit-link {
    min-height: 58px;
    font-size: 14px;
  }

  .recruit-link-common {
    margin-bottom: 14px;
  }

  .recruit-role-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .recruit-flow {
    padding-bottom: 50px;
  }

  .recruit-flow-heading {
    padding-top: 24px;
  }

  .recruit-step {
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 22px 18px;
    border-radius: 16px;
  }

  .recruit-step-number {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .recruit-step-number small {
    font-size: 8px;
  }

  .recruit-step-content h3 {
    font-size: 17px;
  }

  .recruit-step-content p {
    font-size: 13px;
  }

  .recruit-step-icon {
    display: none;
  }

  .recruit-apply-button {
    width: min(320px, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit-link {
    transition: none;
  }
}
