/* =========================================================
   Job detail page（jobs/*.html 共通）
   職種ごとのページはすべてこのCSSを使い、HTMLのテキストだけを変える
========================================================= */

/* ---------- Hero（.page-hero を拡張し、右に写真） ---------- */
.job-hero {
  padding-bottom: 96px;
}

.job-hero__inner {
  display: grid;
  grid-template-columns: 5fr 7fr; /* 写真を大きくし、文字との間を詰める */
  align-items: center;
  gap: 56px;
}

.job-hero__title {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.job-hero__title-en {
  font-family: var(--font-heading);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.job-hero__title-ja {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.job-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.job-hero__tags li {
  padding: 8px 18px;
  border: 1px solid var(--color-accent);
  border-radius: 9999px;
  background: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.job-hero__photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--color-sub);
  border-radius: 160px 40px 160px 40px / 140px 40px 140px 40px;
}

.job-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* ---------- Section（見出し左・内容右） ---------- */
.job-section {
  padding-block: 120px;
  background: var(--color-white);
}

.job-section--tint {
  background: var(--color-bg);
}

/* 白いセクションが続くときの区切り */
.job-section--line .job-section__inner {
  padding-top: 120px;
  border-top: 1px solid var(--color-accent);
}

.job-section--line {
  padding-top: 0;
}

.job-section__inner {
  display: grid;
  grid-template-columns: 3fr 9fr; /* 見出しの列を狭くし、内容との間を詰める */
  align-items: start;
  gap: 48px;
}

/* 見出しを上、内容を下に横幅いっぱい（選考フローなど横に並ぶ内容向け） */
.job-section--stack .job-section__inner {
  grid-template-columns: 1fr;
  gap: 48px;
}

.job-section__title {
  margin-top: 24px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

/* ---------- 1. 仕事について ---------- */
.job-about__catch {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--color-primary);
}

.job-about__catch span {
  display: block;
}

.job-about__text {
  margin-top: 36px;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
  word-break: auto-phrase;
}

.job-about__text p + p {
  margin-top: 1.2em;
}

/* ---------- 2・3. 箇条書き（2列・線区切り） ---------- */
.job-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  border-top: 1px solid var(--color-accent);
  counter-reset: job-list;
}

.job-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding-block: 18px;
  border-bottom: 1px solid var(--color-accent);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.06em;
}

.job-list--numbered li::before {
  counter-increment: job-list;
  content: counter(job-list, decimal-leading-zero);
  flex-shrink: 0;
  width: 28px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
}

.job-list--check li::before {
  content: "";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- 4. 募集要項（表） ---------- */
.job-table {
  margin: 0;
  border-top: 1px solid var(--color-text);
}

.job-table__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--color-accent);
}

.job-table__row:last-child {
  border-bottom-color: var(--color-text);
}

.job-table dt {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.job-table dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
}

/* ---------- 5. 選考フロー ---------- */
.job-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.job-flow__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 8px 26px;
  border-radius: 20px;
  background: var(--color-white);
  text-align: center;
}

/* ステップ間の矢印 */
.job-flow__step + .job-flow__step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -19px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--color-primary);
  border-right: 1.5px solid var(--color-primary);
  transform: translateY(-50%) rotate(45deg);
}

.job-flow__num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.job-flow__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  white-space: nowrap;
}

.job-flow__note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--color-text-sub);
}

/* ---------- CTA ---------- */
.job-cta {
  padding-block: 128px 140px;
  background: var(--color-white);
  text-align: center;
}

.job-cta__job {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.job-cta__title {
  margin-top: 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.job-cta__text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
}

.job-cta__btn {
  min-width: 420px;
  height: 76px;
  margin-top: 44px;
  padding-inline: 72px;
  font-size: 18px;
}

.job-cta__back {
  margin-top: 40px;
}

.job-cta__back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-text-sub);
  transition: color var(--duration) var(--ease);
}

.job-cta__back-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--duration) var(--ease);
}

.job-cta__back-link:hover {
  color: var(--color-primary);
}

.job-cta__back-link:hover svg {
  transform: translateX(-3px);
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .job-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .job-section {
    padding-block: 96px;
  }

  .job-section--line {
    padding-top: 0;
  }

  .job-section--line .job-section__inner {
    padding-top: 96px;
  }

  .job-section__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* 選考フロー：縦並び・下向き矢印 */
  .job-flow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .job-flow__step {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 22px 28px;
    text-align: left;
  }

  .job-flow__step + .job-flow__step::before {
    top: -19px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

/* ---------- SP ---------- */
@media (max-width: 767px) {
  .job-hero {
    padding-bottom: 64px;
  }

  .job-hero__title-en {
    font-size: clamp(38px, 11vw, 48px);
  }

  .job-hero__tags {
    margin-top: 28px;
  }

  .job-hero__tags li {
    font-size: 13px;
  }

  .job-hero__photo {
    aspect-ratio: 4 / 3;
    border-radius: 96px 28px 96px 28px / 80px 28px 80px 28px;
  }

  .job-section {
    padding-block: 72px;
  }

  .job-section--line {
    padding-top: 0;
  }

  .job-section--line .job-section__inner {
    padding-top: 72px;
  }

  .job-section__inner,
  .job-section--stack .job-section__inner {
    gap: 28px;
  }

  .job-section__title {
    margin-top: 18px;
    font-size: clamp(24px, 6.6vw, 28px);
  }

  .job-about__catch {
    font-size: clamp(24px, 6.6vw, 30px);
  }

  .job-about__text {
    margin-top: 24px;
    font-size: 15px;
    letter-spacing: 0.04em;
  }

  .job-list {
    grid-template-columns: 1fr;
  }

  .job-list li {
    min-height: 64px;
    padding-block: 16px;
    font-size: 15px;
  }

  .job-table__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 20px 0;
  }

  .job-table dt {
    font-size: 13px;
    color: var(--color-primary);
  }

  .job-table dd {
    font-size: 14px;
  }

  .job-flow__step {
    padding: 18px 22px;
  }

  .job-cta {
    padding-block: 80px 96px;
  }

  .job-cta__text {
    font-size: 15px;
    text-align: left;
  }

  .job-cta__btn {
    width: 100%;
    min-width: 0;
    height: 68px;
    margin-top: 36px;
    padding-inline: 56px;
    font-size: 16px;
  }
}
