/* ========================================
  Job
======================================== */
.job {
  overflow: hidden;
}

/* ========================================
  Job Navigation
======================================== */
.job-nav {
  padding-bottom: 72px;
  padding-top: 72px;
}

.job-nav__list {
  display: grid;
  gap: 24px 56px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.job-nav__link {
  align-items: center;
  background-color: #dfebef;
  display: grid;
  grid-template-columns: 224px 1fr 22px;
  min-height: 144px;
  padding-right: 80px;
}

.job-nav__image {
  height: 144px;
  overflow: hidden;
}

.job-nav__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.job-nav__text {
  color: #18b1bf;
  font-size: 2.4rem;
  font-weight: 700;
  padding-left: 32px;
}

.job-nav__arrow {
  display: block;
  width: 18px;
}

.job-nav__arrow img {
  width: 100%;
}

/* ========================================
  Job Process
======================================== */
.job-process,
.job-other {
  padding-bottom: 100px;
  padding-top: 84px;
  scroll-margin-top: 90px;
}

.job-process__inner,
.job-other__inner {
  position: relative;
}

.job-process__title {
  align-items: center;
  background: url("../img/job/heading-bg.webp") no-repeat left center / 242px auto;
  display: inline-flex;
  font-size: 3rem;
  font-weight: 700;
  justify-content: center;
  min-height: 118px;
  min-width: 242px;
  padding: 22px 44px;
}

.job-flow {
  margin-top: 72px;
}

.job-step {
  align-items: center;
  display: flex;
  min-height: 290px;
  position: relative;
}

.job-step + .job-step,
.job-branch + .job-step,
.job-step + .job-branch,
.job-konjac-formation + .job-step,
.job-step + .job-konjac-formation,
.job-wide-step + .job-step,
.job-step + .job-wide-step,
.job-wide-step + .job-wide-step {
  margin-top: 38px;
}

.job-step--image-left {
  justify-content: flex-start;
}

.job-step--offset-tofu {
  padding: 0 180px;
}

.job-step--offset-konjac {
  padding: 0 200px;
}

.job-photo--large,
.job-photo--small {
  flex-shrink: 0;
  overflow: hidden;
}

.job-photo--large {
  height: 290px;
  width: 430px;
}

.job-photo--small {
  height: 245px;
  width: 365px;
}

.job-photo--large img,
.job-photo--small img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.job-step__content {
  border-radius: 0 28px 28px 0;
  min-height: 220px;
  padding: 30px;
  position: relative;
  width: 330px;
  z-index: 1;
}

.job-step__content--green {
  background: url("../img/job/card-green.webp") repeat center / 320px auto;
}

.job-step__content--pink {
  background: url("../img/job/card-pink.webp") repeat center / 320px auto;
}

.job-step__content--yellow {
  background: url("../img/job/card-yellow.webp") repeat center / 320px auto;
}

.job-step__number {
  font-family: Roboto, sans-serif;
  font-size: 3.6rem;
  line-height: 1;
}

.job-step__title {
  color: #f89206;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 12px;
}

.job-step__text {
  line-height: 1.9;
  margin-top: 10px;
}

.job-step__decoration {
  position: absolute;
}

.job-step__decoration--konjac {
  right: 0;
  top: -60px;
  width: 388px;
}

.job-step__decoration--powder {
  right: 0;
  top: 20px;
  width: 260px;
  z-index: 1;
}

.job-step__decoration--powder img {
  width: 100%;
}

.job-step__decoration--powder picture {
  display: block;
}

.job-step__decoration--soy {
  right: 178px;
  top: -120px;
  width: 160px;
}

.job-step__decoration--tofu {
  right: 15px;
  top: 60px;
  width: 290px;
}

/* ========================================
  Job Flow Arrows
======================================== */
.job-flow__arrows {
  display: grid;
}

.job-flow__arrows img {
  width: 24px;
}

.job-flow__arrows--two {
  gap: 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  width: 820px;
}

.job-flow__arrows--two img {
  justify-self: center;
}

.job-flow__arrows--branch-left {
  justify-content: start;
  margin-left: 345px;
  margin-top: 8px;
}

.job-flow__arrows--konjac {
  gap: 120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  width: 860px;
}

.job-flow__arrows--konjac img {
  justify-self: center;
}

/* ========================================
  Tofu Branch
======================================== */
.job-branch {
  display: grid;
  gap: 100px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
  padding: 0 180px;
}

.job-branch__caption {
  align-items: flex-start;
  display: flex;
  gap: 22px;
}

.job-branch__title {
  color: #f89206;
  flex-shrink: 0;
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 12px;
}

.job-branch__text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-top: 12px;
}

/* ========================================
  Tofu Wide Step
======================================== */
.job-wide-step {
  align-items: center;
  display: grid;
  grid-template-columns: 300px 1fr;
  position: relative;
}

.job-wide-step__content {
  border-radius: 28px 0 0 28px;
  margin: 0;
  width: 100%;
}

.job-wide-step__gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ========================================
  Konjac Formation
======================================== */
.job-konjac-formation {
  display: grid;
  gap: 120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
}

.job-konjac-formation__item {
  align-self: start;
}

.job-konjac-formation__content {
  border-radius: 28px 28px 0 0;
  margin: 0;
  min-height: 245px;
  width: 365px;
}

.job-konjac-formation__image + .job-konjac-formation__image {
  margin-top: 18px;
}

/* ========================================
  Sprout
======================================== */
.job-flow--sprout {
  --sprout-step-offset: 180px;
  position: relative;
}

.sprout-step {
  align-items: center;
  display: flex;
  min-height: 250px;
  position: relative;
}

.sprout-step + .sprout-step {
  margin-top: 18px;
}

.sprout-step .job-step__content {
  border-radius: 28px;
  margin: 0;
  width: 340px;
}

.sprout-step__image {
  flex-shrink: 0;
  width: 300px;
}

.sprout-step__image img {
  width: 100%;
}

.sprout-step--01 {
  gap: 30px;
  justify-content: flex-start;
}

.sprout-step--01 .job-step__content {
  margin-left: 0;
}

.sprout-step--02 {
  justify-content: flex-start;
}

.sprout-step--02 .job-step__content {
  margin-left: var(--sprout-step-offset);
}

.sprout-step--02 .sprout-step__image {
  margin-left: -10px;
}

.sprout-step--03 {
  justify-content: flex-start;
}

.sprout-step--03 .job-step__content {
  margin-left: calc(var(--sprout-step-offset) * 2);
}

.sprout-step--03 .sprout-step__image {
  left: 50px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.sprout-step--04 {
  justify-content: flex-start;
}

.sprout-step--04 .job-step__content {
  margin-left: calc(var(--sprout-step-offset) * 3);
}

.sprout-step--04 .sprout-step__image {
  margin-left: -25px;
  z-index: 1;
}

.sprout-step__decoration {
  position: absolute;
  right: 100px;
  top: -40px;
  width: 260px;
}

/* ========================================
  Other Job
======================================== */
.job-other__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 72px;
}

.job-other__item {
  padding-bottom: 60px;
  padding-left: 52px;
  padding-right: 52px;
  padding-top: 60px;
}

.job-other__item:nth-child(-n + 2) {
  padding-top: 0;
}

.job-other__item:nth-child(odd) {
  border-right: 1px solid #13acb8;
  padding-left: 0;
}

.job-other__item:nth-child(even) {
  padding-right: 0;
}

.job-other__item:nth-child(n + 3) {
  border-top: 1px dashed #13acb8;
}

.job-other__image img {
  width: 100%;
}

.job-other__title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-top: 24px;
}

.job-other__text {
  font-size: 1.5rem;
  line-height: 2;
  margin-top: 22px;
}

/* ========================================
  Job SP
======================================== */
@media screen and (max-width: 767px) {
  .job-nav {
    padding-bottom: 42px;
    padding-top: 42px;
  }

  .job-nav__list {
    gap: 16px;
    grid-template-columns: 1fr;
  }

  .job-nav__link {
    grid-template-columns: 110px 1fr 16px;
    min-height: 68px;
    padding-right: 15px;
  }

  .job-nav__image {
    height: 68px;
  }

  .job-nav__text {
    font-size: 2rem;
    padding-left: 18px;
  }

  .job-nav__arrow {
    margin-right: 22px;
    transform: rotate(90deg);
    width: 10px;
  }

  .job-process,
  .job-other {
    padding-bottom: 62px;
    padding-top: 56px;
    scroll-margin-top: 80px;
  }

  .job-process__title {
    background-size: auto 68px;
    font-size: 2rem;
    min-height: 68px;
    min-width: auto;
    padding: 16px 28px;
  }

  .job-flow {
    margin-top: 42px;
    max-width: none;
  }

  .job-step {
    display: block;
    min-height: 0;
  }

  .job-step + .job-step,
  .job-branch + .job-step,
  .job-step + .job-branch,
  .job-konjac-formation + .job-step,
  .job-step + .job-konjac-formation,
  .job-wide-step + .job-step,
  .job-step + .job-wide-step,
  .job-wide-step + .job-wide-step {
    margin-top: 34px;
  }

  .job-photo--large,
  .job-photo--small {
    height: auto;
    width: auto;
  }

  .job-step__image.job-photo--large {
    width: 75%;
  }

  .job-branch__image.job-photo--small,
  .job-konjac-formation__image.job-photo--small,
  .job-wide-step__image.job-photo--small {
    width: 100%;
  }

  .job-photo--large img,
  .job-photo--small img {
    height: auto;
  }

  .job-step--image-left .job-step__image {
    margin-left: 0;
    margin-right: auto;
  }

  .job-step__content {
    border-radius: 16px;
    margin-left: auto;
    margin-right: 0;
    margin-top: -10px;
    min-height: auto;
    padding: 30px 20px;
    width: calc(100% - 72px);
    z-index: -1;
  }

  .job-step--offset-tofu,
  .job-step--offset-konjac {
    padding: 0;
  }

  .job-step__number {
    font-size: 2.4rem;
  }

  .job-step__title {
    font-size: 1.7rem;
    margin-top: 8px;
  }

  .job-step__text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-top: 6px;
  }

  .job-step__decoration {
    margin-top: -35px;
    position: relative;
    width: 185px;
  }

  .job-step__decoration--soy,
  .job-step__decoration--tofu,
  .job-step__decoration--konjac {
    display: none;
  }

  .job-flow__arrows img {
    width: 18px;
  }

  .job-flow__arrows--two {
    gap: 24px;
    margin-top: 8px;
    width: calc(100% - 34px);
  }

  .job-flow__arrows--branch-left {
    margin: 20px 0;
    margin-left: calc(25% - 9px);
  }

  .job-flow__arrows--konjac {
    gap: 28px;
    margin-top: 8px;
    width: calc(100% - 42px);
  }

  .job-branch {
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    padding: 0;
  }

  .job-branch__caption {
    display: block;
  }

  .job-branch__title {
    font-size: 1.7rem;
    margin-top: 8px;
  }

  .job-branch__text {
    font-size: 1.3rem;
    margin-top: 4px;
  }

  .job-wide-step {
    display: block;
  }

  .job-wide-step__content {
    border-radius: 16px;
    margin: 0;
    padding: 30px 20px;
    width: calc(100% - 72px);
  }

  .job-wide-step__gallery {
    gap: 8px;
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-top: -10px;
    width: 75%;
  }

  .job-konjac-formation {
    gap: 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
  }

  .job-konjac-formation__content {
    border-radius: 16px 16px 0 0;
    margin: 0;
    min-height: 205px;
    padding: 18px 16px;
    width: 100%;
  }

  .job-konjac-formation__content .job-step__number {
    font-size: 2rem;
  }

  .job-konjac-formation__content .job-step__title {
    font-size: 1.5rem;
  }

  .job-konjac-formation__content .job-step__text {
    font-size: 1.2rem;
  }

  .job-konjac-formation__image + .job-konjac-formation__image {
    margin-top: 8px;
  }

  .job-flow--sprout {
    --sprout-step-offset: 0;

    max-width: none;
  }

  .sprout-step {
    flex-direction: column;
    min-height: 0;
  }

  .sprout-step + .sprout-step {
    margin-top: 30px;
  }

  .sprout-step .job-step__content {
    border-radius: 20px;
    margin: 0;
    padding: 20px 22px;
    width: 90%;
  }

  .sprout-step__image {
    width: 60%;
  }

  .sprout-step--01 {
    gap: 10px;
  }

  .sprout-step--01 .job-step__content,
  .sprout-step--02 .job-step__content,
  .sprout-step--04 .job-step__content {
    margin-left: 0;
  }

  .sprout-step--02 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sprout-step--02 .job-step__content {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .sprout-step--02 .sprout-step__image {
    margin-left: 0;
    width: 100%;
  }

  .sprout-step--02 .sprout-step__decoration {
    right: auto;
    top: auto;
    width: 100%;
  }

  .sprout-step--02 .sprout-step__decoration img {
    width: 90%;
  }

  .sprout-step--04 .sprout-step__image {
    margin-left: -10px;
    order: 0;
  }

  .sprout-step--03 .sprout-step__image {
    left: auto;
    order: 1;
    position: static;
    top: auto;
    transform: none;
  }

  .sprout-step__decoration {
    position: relative;
  }

  .job-other__list {
    display: block;
    margin-top: 42px;
  }

  .job-other__item,
  .job-other__item:nth-child(-n + 2),
  .job-other__item:nth-child(odd),
  .job-other__item:nth-child(even) {
    border-right: 0;
    padding-bottom: 38px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 38px;
  }

  .job-other__item:first-child {
    padding-top: 0;
  }

  .job-other__item:nth-child(n + 2) {
    border-top: 1px dashed #13acb8;
  }

  .job-other__title {
    font-size: 1.8rem;
    margin-top: 16px;
  }

  .job-other__text {
    font-size: 1.4rem;
    line-height: 1.9;
    margin-top: 12px;
  }
}