@charset "UTF-8";

:root {
  --main-back-color: #f8f1e9;
}

body:has(#careermodelPage) {
  #header_area {
    background: transparent;
  }
}

.career {
  background: var(--main-back-color);
  overflow-x: clip;
  padding-block: 128px 117px;

  @media (width <= 900px) {
    padding-block: 132px 93px;
  }
}

.careerHead {
}

.inner {
  max-width: 950px;
  margin-inline: auto;
  padding-inline: 20px;
}

.careerHead__contents {
  position: relative;
}

.careerHead__text {
  font-size: 22px;
  font-weight: 500;
  line-height: calc(35 / 22);
  letter-spacing: 0.06em;
  position: absolute;
  top: -52px;
  left: 0;

  @media (width <= 900px) {
    position: static;
    font-size: 17px;
    text-align: center;
  }
}

.careerHead__figure {
  margin-block-start: 50px;
  width: 350px;
  margin-inline: auto;
  position: relative;

  @media (width <= 900px) {
    margin-block-start: 15px;
    width: min(184px, calc(184 / 350 * 100vw));
  }

  img {
    width: 100%;
    height: auto;
  }

  &::before,
  &::after {
    content: "";
    display: block;
    width: 225px;
    aspect-ratio: 225 / 121;
    background: url("../img/career/deco_career.svg") no-repeat center center /
      contain;
    position: absolute;
  }

  @media (width <= 900px) {
    &::before,
    &::after {
      width: 112px;
    }
  }

  &::before {
    top: 50%;
    left: -10px;
    transform: translateX(-100%);

    @media (width <= 900px) {
      left: 0;
    }
  }

  &::after {
    bottom: 50%;
    right: -10px;
    transform: translateX(100%) rotate(180deg);

    @media (width <= 900px) {
      right: 0;
    }
  }
}

.careerHead__title {
  margin-block-start: 24px;

  @media (width <= 900px) {
    margin-block-start: 20px;
  }
}

.careerHead__titleEn {
  width: 522px;
  margin-inline: auto;

  @media (width <= 900px) {
    width: 100%;
    max-width: 320px;
  }

  img {
    width: 100%;
    height: auto;
  }
}

.careerHead__titleJa {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.064em;
  text-align: center;
  margin-block-start: 5px;

  @media (width <= 900px) {
    font-size: 13px;
    margin-block-start: 0;
    line-height: 1;
  }
}

.careerBody {
  margin-block-start: 115px;

  @media (width <= 900px) {
    margin-block-start: 38px;
  }
}

.careerBody__inner {
  @media (width <= 900px) {
    padding-inline: 0;
  }
}

.careerTabItems {
  max-width: 925px;
  margin-inline: auto;

  @media (width <= 900px) {
    max-width: 100%;
    /* max-width: 200px; */
  }
}

.careerTabItems__swiper {
  padding-block-end: 75px;
  /* width: 100vw;
  margin-inline: calc(50% - 50vw); */

  @media (width <= 900px) {
    padding-block-end: 40px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;

    @media (width <= 900px) {
      display: block;
      width: 14px;
      top: 52px;
      background-image: url("../img/icon_arrow_light.svg");
      background-repeat: no-repeat;
      background-position: center center;
      background-size: contain;
    }
  }

  .swiper-button-prev {
    transform: rotate(180deg) translateX(100%);
    left: calc(50% - 60px);
  }
  .swiper-button-next {
    left: calc(50% + 60px);
  }
}

.careerTab__wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding-block-end: 75px;

  @media (width <= 900px) {
    padding-block-end: 40px;
  }
}

.careerTab {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* width: 160px; */
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  position: relative;
  cursor: pointer;
  color: #000;

  @media (width <= 900px) {
    /* width: fit-content; */
    width: 100px;
    height: 195px;
    padding-block-start: 15px;
  }

  &::before,
  &::after {
    display: block;
    width: 63px;
    height: 33px;
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  @media (width <= 900px) {
    &::before,
    &::after {
      width: 33px;
      height: 16px;
    }
  }

  &::before {
    background: currentColor;
    bottom: -75px;
    z-index: 2;
  }

  @media (width <= 900px) {
    &::before {
      bottom: -40px;
    }
  }

  &::after {
    background: var(--main-back-color);
    bottom: -76px;
    z-index: 3;
  }
  
  @media (width <= 900px) {
    &::after {
      bottom: -41px;
    }
  }

  &.is_active {
    @media (901px <= width) {
      &::before,
      &::after {
        content: " ";
      }
    }
  }
}


.careerTab.swiper-slide-active {
  @media (width <= 900px) {
    /* width: 155px; */

    &::before,
    &::after {
      content: "";
    }

    .careerTab__figure {
      transform: scale(1.4);
    }
    .careerTab__name,
    .careerTab__text {
      display: block;
    }
  }
}

@media (width <= 900px) {
  .careerTab.swiper-slide-active::before,
  .careerTab.swiper-slide-active::after {
    content: "";
  }
}

.careerTab__figure {
  width: 96px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  transition: transform 0.3s ease;

  @media (width <= 900px) {
    width: 85px;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.careerTab__nameWrap {
  @media (width <= 900px) {
    position: absolute;
    left: 50%;
    top: 105px;
    transform: translateX(-50%);
  }
}

.careerTab__name {
  font-size: 24px;
  line-height: calc(29 / 24);
  margin-block-start: 7px;
  text-align: center;

  @media (width <= 900px) {
    display: none;
    font-size: 20px;
    margin-block-start: 25px;
    white-space: nowrap;
  }
}

.careerTab__text {
  font-size: 14px;
  line-height: calc(20 / 14);
  text-align: center;
  margin-block-start: 5px;

  @media (width <= 900px) {
    display: none;
    font-size: 13px;
    margin-block-start: 7px;
    white-space: nowrap;
  }
}

.careerTabPanelItems {
  margin-block-start: -1px;
  border-top: 1px solid;

  @media (width <= 900px) {
    display: none;
  }
}

.careerTabPaneSleiders {
  margin-block-start: -1px;
  border-top: 1px solid;
}

.careerTabPanel {
  margin-block-start: 73px;
  display: none;

  &.is_active {
    display: block;
  }

  @media (width <= 900px) {
    margin-block-start: 45px;
  }
}

.careerTabPanel__head {
  display: grid;
  grid-template-columns: 1fr max-content;
  gap: 57px;
  padding-inline-end: 30px;

  @media (width <= 900px) {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-inline-end: 0;
  }
}

.careerTabPanel__main {
  order: 2;

  @media (width <= 900px) {
    order: 1;
  }
}

.careerTabPanel__figure {
  @media (width <= 900px) {
    margin-inline: auto;
  }

  &.st_y {
    width: 280px;

    @media (width <= 900px) {
      width: 100%;
      max-width: 234px;
    }
  }
  &.st_k {
    width: 297px;

    @media (width <= 900px) {
      width: 100%;
      max-width: 225px;
    }
  }
  &.st_h {
    width: 331px;

    @media (width <= 900px) {
      width: 100%;
      max-width: 256px;
    }
  }
  &.st_s {
    width: 295px;

    @media (width <= 900px) {
      width: 100%;
      max-width: 231px;
    }
  }
  &.st_k2 {
    width: 302px;

    @media (width <= 900px) {
      width: 100%;
      max-width: 207px;
    }
  }

  img {
    width: 100%;
    height: auto;
  }
}

.careerTabPanel__sub {
  order: 1;

  @media (width <= 900px) {
    order: 2;
  }
}

.careerTabPanel__text {
  font-size: 16px;
  line-height: calc(33 / 16);

  @media (width <= 900px) {
    font-size: 13px;
    line-height: calc(46 / 26);
  }
}

.careerTabPanel__body {
  margin-block-start: 37px;

  @media (width <= 900px) {
    margin-block-start: 30px;
  }
}

.careerTable {
  background: #fff;
  padding-block: 75px 35px;
  padding-inline: 71px;

  @media (width <= 900px) {
    padding-block: 38px 20px;
    padding-inline: 27px;
  }
}

.careerTable__rowWrap {
  display: grid;
  gap: 16px;
  position: relative;

  @media (width <= 900px) {
    gap: 0px;
  }

  &::before {
    content: "";
    display: block;
    width: 4px;
    height: 0;
    background: #e2e1dd;
    position: absolute;
    top: 0;
    left: 13px;
    transition: height 3s ease;
  }

  &.is_active::before {
    height: 100%;
  }
}

@media (width <= 900px) {
  .careerTable__rowWrap::before {
    width: 2px;
    height: 0;
    left: 9px;
    top: 0;
    transition: height 5s ease;
  }
}

.careerTable__row {
  padding-block-end: 20px;
  position: relative;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 58px;

  @media (width <= 900px) {
    padding-block-end: 12px;
    gap: 14px;
  }

  /* &::before {
    content: "";
    display: block;
    width: 4px;
    height: 0;
    background: #e2e1dd;
    position: absolute;
    top: 37px;
    left: 13px;
    transition: height 1s ease;

    @media (width <= 900px) {
      width: 2px;
      height: 0;
      left: 9px;
      top: 27px;
    }
  } */

  /* &.is_active::before {
    height: calc(100% - 40px);

    @media (width <= 900px) {
      height: calc(100% - 27px);
    }
  } */
}

.careerTable__deco {
  width: 50px;
  aspect-ratio: 1 / 1;
  /* border-radius: 50%; */
  background: white;
  display: grid;
  place-content: center;
  position: relative;
  transform: translate(-10px, -10px);

  @media (width <= 900px) {
    width: 36px;
    transform: translate(-8px, -8px);
  }

  span {
    width: 30px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #e2e1dd;
    display: grid;
    place-content: center;
    position: relative;

    @media (width <= 900px) {
      width: 20px;
    }
  }

  span:before {
    content: "";
    display: block;
    width: 11px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #323232;

    @media (width <= 900px) {
      width: 7px;
    }
  }

  &::before {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      transparent,
      transparent 3px,
      #000 3px,
      #000 5px
    );
    position: absolute;
    top: 50%;
    right: -2px;
    transform: translate(100%, -50%);
  }
}

@media screen and (width <= 900px) {
  .careerTable__deco::before {
    content: none;
  }
}

.careerTable__main {
}

.careerTable__num {
  font-size: 20px;
  font-weight: 500;
  line-height: calc(26 / 20);

  @media (width <= 900px) {
    font-size: 18px;
  }
}

.careerTable__text {
  font-size: 14px;
  font-weight: 400;
  line-height: calc(27 / 14);
  margin-block-start: 2px;

  @media (width <= 900px) {
    font-size: 13px;
  }
}
