/* ==========================================================================
   Restar Theme - recruit.css
   採用情報ページ
   ========================================================================== */

/* ---------- 採用情報：メッセージ ---------- */
.message__sign--left {
  justify-content: flex-start;
  padding: 0 0 0 30px;
}

.message__sign--left::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-sub);
  margin-left: -30px;
}

/* ---------- 採用情報：募集要項 ---------- */
.jobs {
  position: relative;
  color: var(--white);
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-800) 50%, var(--navy-900) 100%);
  overflow: hidden;
}

.jobs__img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.jobs::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(-58deg, transparent 64%, rgba(26, 109, 255, .35) 64%, rgba(26, 109, 255, .35) 65%, transparent 65%);
}

.jobs__inner {
  position: relative;
  z-index: 2;
  display: grid;
  margin-left: 34%;
  padding: 70px var(--gutter) 60px 20px;
  max-width: calc(66% + 0px);
}

.jobs__body {
  padding-right: 40px;
  border-right: 1px solid rgba(140, 194, 255, .3);
}

.jobs__body .section-title {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 20px;
}

.jobs__body .section-title em {
  font-style: normal;
  color: var(--blue-400);
}

.jobs__text {
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 30px;
}

.jobs__info {
  padding-left: 34px;
}

.jobs__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(140, 194, 255, .2);
  font-size: 12.5px;
  line-height: 1.8;
}

.jobs__row:first-child {
  padding-top: 0;
}

.jobs__row dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.jobs__row dt .icon {
  font-size: 20px;
  color: var(--sky-300);
}

.jobs__row dd {
  margin: 0;
  color: rgba(255, 255, 255, .9);
}

.jobs__note {
  margin-top: 18px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .7);
}

/* ---------- 採用情報：先輩インタビュー ---------- */
.interview {
  background: linear-gradient(180deg, #fff 0%, var(--bg-light) 100%);
  padding: 80px 0;
}

.interview__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.interview__head .section-title {
  font-size: clamp(24px, 2.2vw, 30px);
}

.interview__head .section-text {
  font-size: 13px;
  margin-bottom: 60px;
}

.interview__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.interview-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
}

.interview-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(16, 80, 200, .14);
}

.interview-card__img {
  display: block;
  aspect-ratio: 191 / 68;
  background-size: cover;
  background-position: center;
}

.interview-card__body {
  position: relative;
  flex: 1;
  display: block;
  padding: 20px 26px 32px;
}

.interview-card__role {
  display: inline-block;
  transform: translateY(-50%);
  padding: 2px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-600);
}

.interview-card__quote {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.9;
  padding-right: 20px;
}

.interview-card__arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 14px;
  color: var(--blue-600);
  transition: transform .3s;
}

.interview-card a:hover .interview-card__arrow {
  transform: translateX(3px);
}

.interview__list .js-fade:nth-child(2) {
  transition-delay: .1s;
}

.interview__list .js-fade:nth-child(3) {
  transition-delay: .2s;
}

/* ---------- 採用情報：選考の流れ ---------- */
.flow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #eaf2ff 0%, #f5f9ff 40%, #fff 100%);
}

.flow__img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background-size: cover;
  background-position: center;
  opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 30%, transparent 100%);
}

.flow__inner {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 50px;
  padding-bottom: 50px;
}

.flow__head .section-title {
  margin-bottom: 12px;
}

.flow__text {
  font-size: 13px;
  color: var(--text);
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.flow-step {
  position: relative;
  padding: 0 20px 0 34px;
  border-left: 1px dashed rgba(26, 109, 255, .45);
}

.flow-step__num {
  position: absolute;
  left: -12px;
  top: -4px;
  padding: 0 4px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-600);
  background: transparent;
  transform: translateX(-100%);
}

.flow-step__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-500), var(--navy-700));
  box-shadow: 0 6px 16px rgba(16, 80, 200, .25);
  margin-bottom: 16px;
}

.flow-step__title {
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.flow-step__text {
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--text-sub);
}

.flow__list .js-fade:nth-child(2) {
  transition-delay: .1s;
}

.flow__list .js-fade:nth-child(3) {
  transition-delay: .2s;
}

.flow__list .js-fade:nth-child(4) {
  transition-delay: .3s;
}

.join--recruit .btn {
  min-width: 220px;
}

/* ---------- 採用情報：先輩インタビュー詳細モーダル ---------- */
html.is-modal-open {
  overflow: hidden;
}

.interview-modal {
  width: calc(100% - 48px);
  max-width: 940px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.interview-modal[open] {
  animation: modalIn .35s ease;
}

.interview-modal::backdrop {
  background: rgba(4, 23, 74, .6);
  backdrop-filter: blur(3px);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.interview-modal__box {
  position: relative;
  display: grid;
  grid-template-columns: 370px 1fr;
  background: linear-gradient(135deg, #fff 0%, #f5f9ff 100%);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(4, 23, 74, .35);
}

.interview-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy-700);
  border-radius: 50%;
  transition: background-color .3s;
}

.interview-modal__close:hover {
  background: #e8f0ff;
}

.interview-modal__close svg {
  width: 26px;
  height: 26px;
}

/* 左：写真とプロフィール */
.interview-modal__profile {
  padding: 14px;
  border-right: 1px solid var(--line);
}

.interview-modal__img {
  aspect-ratio: 368 / 271;
  background-size: cover;
  background-position: center top;
  border-radius: 4px 4px 0 0;
}

.interview-modal__person {
  padding: 22px 14px 18px;
}

.interview-modal .interview-card__role {
  transform: none;
  margin-bottom: 14px;
  font-size: 11.5px;
}

.interview-modal__quote {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--navy-700);
  margin-bottom: 14px;
}

.interview-modal__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-600);
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.interview-modal__name span {
  font-size: 12.5px;
  margin-left: 6px;
}

.interview-modal__data div {
  display: grid;
  grid-template-columns: 44px 1fr;
  font-size: 12px;
  line-height: 2;
}

.interview-modal__data dt {
  color: var(--text-sub);
}

.interview-modal__data dd {
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid #b9c8e0;
}

/* 右：インタビュー本文 */
.interview-modal__content {
  padding: 34px 44px 34px 44px;
}

.interview-modal__lead {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.6;
  margin-bottom: 14px;
  padding-right: 40px;
}

.interview-modal__intro {
  font-size: 13px;
  line-height: 2;
  color: var(--text-sub);
  padding-bottom: 22px;
}

.interview-qa__item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.interview-qa__item:last-child {
  padding-bottom: 0;
}

.interview-qa__item dt,
.interview-qa__item dd {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 16px;
  align-items: start;
}

.interview-qa__item dt {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 26px;
  margin-bottom: 8px;
}

.interview-qa__item dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 2;
  color: var(--text-sub);
}

.interview-qa__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--blue-600);
}

.interview-qa__mark--a {
  color: var(--blue-600);
  background: #e3edff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .jobs__img {
    width: 30%;
  }

  .jobs__inner {
    margin-left: 30%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 36px;
    padding-left: 40px;
  }

  .jobs__body {
    padding-right: 0;
    border-right: 0;
  }

  .jobs__info {
    padding-left: 0;
  }

  .interview__inner,
  .flow__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .interview {
    padding: 70px 0;
  }
}

@media (max-width: 1024px) {
  .jobs__img {
    position: relative;
    width: 100%;
    height: 280px;
    clip-path: none;
  }

  .jobs__inner {
    margin-left: 0;
    padding: 50px var(--gutter) 70px;
    gap: 0;
  }

  .flow__img {
    width: 100%;
    opacity: .25;
  }
}

@media (max-width: 767px) {
  .message__sign--left {
    padding-left: 30px;
  }

  .jobs__img {
    height: 200px;
  }

  .jobs__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .interview {
    padding: 64px 0;
  }

  .interview__list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .interview-card__img {
    aspect-ratio: 5 / 2;
  }

  .flow__inner {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .flow__list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
    padding: 18px 0 18px 20px;
    border-left: 1px dashed rgba(26, 109, 255, .45);
  }

  .flow-step__num {
    left: 20px;
    top: 8px;
    transform: none;
    padding: 0;
  }

  .flow-step__icon {
    grid-row: span 2;
    margin: 14px 0 0;
  }

  .flow-step__title {
    margin: 14px 0 2px;
  }

  .flow-step__text br {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .interview-modal__box {
    grid-template-columns: 300px 1fr;
  }

  .interview-modal__quote {
    font-size: 19px;
  }

  .interview-modal__content {
    padding: 30px 30px 30px 30px;
  }
}

@media (max-width: 767px) {
  .interview-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .interview-modal__box {
    grid-template-columns: 1fr;
  }

  .interview-modal__profile {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .interview-modal__img {
    aspect-ratio: 16 / 10;
  }

  /* スクロールしても閉じるボタンが見えるように画面に固定 */
  .interview-modal__close {
    position: fixed;
    top: 22px;
    right: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 2px 10px rgba(4, 23, 74, .15);
  }

  .interview-modal__quote {
    font-size: 19px;
  }

  .interview-modal__quote br {
    display: none;
  }

  .interview-modal__content {
    padding: 26px 22px 30px;
  }

  .interview-modal__lead {
    font-size: 17px;
    padding-right: 0;
  }

  .interview-qa__item dt,
  .interview-qa__item dd {
    gap: 12px;
  }
}