/* ==========================================================================
   positions.css — 職種紹介
   ワイヤー: Figma
   SP: max-width 767px
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap");

html {
  scroll-behavior: smooth;
}

.positions {
  position: relative;
  padding-block: 60px 0;
  z-index: 1;
}

.positions > .container {
  padding-bottom: 64px;
}

@media (max-width: 767px) {
  .positions {
    padding-block: 40px 0;
  }

  .positions > .container {
    padding-bottom: 40px;
  }
}

/* --------------------------------------------------------------------------
   Anchor nav
   -------------------------------------------------------------------------- */

.positions-nav {
  width: 100%;
  max-width: 1920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 145px;
  display: flex;
  justify-content: center;
}

.positions-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.positions-nav__link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  min-height: 56px;
  padding: 12px 16px;
  border: 2px solid #ea8b0f;
  border-radius: 100px;
  background-color: #fff;
  color: #ea8b0f;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.positions-nav__link:hover {
  background-color: #ea8b0f;
  color: #fff;
}

@media (max-width: 767px) {
  .positions-nav {
    margin-bottom: 0;
  }

  .positions-nav__list {
    gap: 12px;
  }

  .positions-nav__link {
    width: 250px;
    max-width: 100%;
    font-size: 15px;
    min-height: 48px;
  }
}

/* --------------------------------------------------------------------------
   Job block（複数職種）
   -------------------------------------------------------------------------- */

.positions-job {
  width: 100%;
  background-color: #fff;
  padding-bottom: 80px;
}

.positions-job__decor {
  width: 100%;
  line-height: 0;
  margin-top: -40px;
  transform: translateY(50%);
}

@media screen and (max-width:767px) {

  .positions-job__decor {
    width: 100%;
    line-height: 0;
    margin-top: 40px;
    transform: translateY(50%);
  }

}

.positions-job__decor img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.positions-job > .container {
  padding-top: 80px;
  max-width: 1620px;
}

.positions-job + .positions-job {
  border-top: none;
}

@media (max-width: 767px) {
  .positions-job {
    padding-bottom: 48px;
  }

  .positions-job > .container {
    padding-top: 48px;
  }
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.positions-intro {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 64px;
}

.positions-intro__decor {
  flex-shrink: 0;
  align-self: center;
}

.positions-intro__decor img {
  display: block;
  width: auto;
  height: 140px;
  max-width: none;
}

.positions-intro__inner {
  flex: 1;
  min-width: 0;
}

.positions-intro__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin-bottom: 20px;
}

.positions-intro__main-title {
  margin: 0;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.2;
}

.positions-intro__sub-title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.3;
}

.positions-intro__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .positions-intro {
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
  }

  .positions-intro__decor {
    align-self: center;
    position: absolute;
    top: 0px;
    left: -8px;
    z-index: 0;
  }

  .positions-intro__decor img {
    height: 38px;
  }

  .positions-intro__main-title {
    font-size: 32px;
    padding-left: 38px;
  }

  .positions-intro__sub-title {
    font-size: 16px;
  }

  .positions-intro__title-row {
    margin-bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   Overview grid
   -------------------------------------------------------------------------- */

.positions-overview {
  margin-bottom: 72px;
}

.positions-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.positions-overview__card {
  min-width: 0;
}

.positions-overview__heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: none;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.positions-overview__heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, #ea8b0f, #f6b204);
}

.positions-overview__heading-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.positions-overview__heading-icon img {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.positions-overview__heading-text {
  flex: 1;
  font-size: 26px;
}

.positions-overview__body--text {
  font-size: 18px;
  line-height: 1.9;
}

.positions-overview__body--text p {
  margin: 0;
}

.positions-overview__body--links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 767px) {
  .positions-overview {
    margin-bottom: 48px;
  }

  .positions-overview__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .positions-overview__body--text {
    font-size: 16px;
  }

  .positions-overview__heading {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .positions-overview__heading-text {
    flex: 1;
    font-size: 21px;
  }

  .positions-overview__heading-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
  }
}

/* Skills list */

.positions-skills-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.positions-skills-list__item {
  position: relative;
  padding-left: 36px;
  font-size: 20px;
  line-height: 1.8;
}

.positions-skills-list__item + .positions-skills-list__item {
  margin-top: 12px;
}

.positions-skills-list__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #EA8B0F;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 5.2 4.2 8.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 9px;
}

@media (max-width: 767px) {
  .positions-skills-list__item {
    font-size: 16px;
  }
}

/* Interview links */

.positions-interview-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 999px;
  background: linear-gradient(45deg, #FFE2AB, #FEF2C5);
  color: inherit;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.positions-interview-link:hover {
  background-color: #ebebeb;
}

.positions-interview-link__name {
  flex-shrink: 0;
  font-family: "Montserrat";
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(to right, #ea8b0f, #f6b204);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.positions-interview-link__role {
  flex: 1;
  font-size: 18px;
  line-height: 1.4;
}

.positions-interview-link__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'%3E%3Cpath fill='none' stroke='%23EA8B0F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 6.5 6 1.5 10.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 12px;
}

@media (max-width: 767px) {
  .positions-interview-link {
    padding: 14px 16px;
    gap: 8px 12px;
  }

  .positions-interview-link__name {
    font-size: 21px;
  }

  .positions-interview-link__role {
    flex: 1 1 auto;
    padding-left: 0;
    font-size: 14px;
  }

  .positions-interview-link__arrow {
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   Schedule (1日の流れ)
   -------------------------------------------------------------------------- */
section.positions-schedule {
  background: linear-gradient(45deg, #FEF6EC, #FEF6EC80);
  padding: 60px 60px 70px;
  border-radius: 16px;
}

@media screen and (max-width:767px) {
  section.positions-schedule {
    padding: 30px 30px;
    border-radius: 8px;
  }
}

.positions-schedule__label {
  margin: 0 0 8px;
  font-family: "Caveat", cursive;
  font-size: 70px;
  line-height: 1;
  text-align: center;
  background: linear-gradient(to right, #ea8b0f, #f6b204);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.positions-schedule__title {
  margin: 0 0 48px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.positions-schedule__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.positions-schedule__columns {
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {

  .positions-schedule__columns--2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
    align-items: start;
  }

  .positions-schedule__columns--2 .positions-schedule__list:first-of-type {
    justify-self: flex-end;
    width: fit-content;
    max-width: 100%;
  }
}

@media screen and (max-width:767px) {

  .positions-schedule__columns {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .positions-schedule__columns--2 .positions-schedule__list {
    margin-bottom: 20px;
  }

  .positions-schedule__columns--2 .positions-schedule__list:last-of-type {
    margin-bottom: 0;
  }
}

.positions-schedule__item {
  position: relative;
  display: flex;
  gap: 16px;
  padding-bottom: 40px;
}

.positions-schedule__item:last-child {
  padding-bottom: 0;
}

.positions-schedule__marker {
  position: relative;
  flex-shrink: 0;
  width: 28px;
  margin-top: 6px;
}

.positions-schedule__marker::before {
  content: "";
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f6b005;
}

.positions-schedule__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  bottom: -50px;
  width: 2px;
  margin-left: -1px;
  background-color: #f6b005;
}

.positions-schedule__item:last-child .positions-schedule__marker::after {
  display: none;
}

@media screen and (max-width:767px) {

  .positions-schedule__marker {
    margin-top: 0;
  }

  .positions-schedule__item:last-child .positions-schedule__marker::after {
    display: block;
  }

  .positions-schedule__columns .positions-schedule__list:last-of-type .positions-schedule__item:last-of-type .positions-schedule__marker::after {
    display: none;
  }
}

.positions-schedule__content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  padding-top: 0;
}

.positions-schedule__time {
  display: block;
  font-family: "Montserrat";
  font-size: 26px;
  color: #f6b005;
  font-weight: 700;
  line-height: 1.4;
}

.positions-schedule__text {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 767px) {
  .positions-schedule__label {
    font-size: 48px;
  }

  .positions-schedule__title {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .positions-schedule__item {
    padding-bottom: 24px;
  }

  .positions-schedule__marker::after {
    bottom: -40px;
  }

  .positions-schedule__content {
    flex: 1;
    display: flex;
    gap: 20px;
    min-width: 0;
    padding-top: 0;
    align-items: flex-start;
  }

  .positions-schedule__time {
    font-size: 16px;
    line-height: 1.8;
  }

  .positions-schedule__text {
    font-size: 15px;
    line-height: 1.8;
  }
}