/*--------------------------------------
    common
--------------------------------------*/
main {
  overflow: hidden;
}

.flex {
  flex-direction: column;
}

.fnt-serif {
  font-family: var(--serif);
}

.fnt-cormo {
  font-family: var(--garamond);
}

.fwb {
  font-weight: bold;
}

.f100 {
  font-weight: 100;
}

.tac {
  text-align: center;
}

.fz40 {
  font-size: 6.5vw;
  letter-spacing: 0.15em;
  line-height: 1.6em;
}

.fz60 {
  letter-spacing: 0.15em;
  line-height: 1.6em;
  font-size: 9vw;
}

@media screen and (min-width: 768px) {
  .flex {
    flex-direction: row;
  }
  .fz40 {
    font-size: 40px;
    line-height: 65px;
    letter-spacing: 0.2em;
  }
  .fz60 {
    font-size: 60px;
  }
  .txt-vertical-pc {
    cursor: vertical-text;
    writing-mode: vertical-rl;
    -o-writing-mode: vertical-rl;
    -ms-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    -moz-writing-mode: vertical-rl;
    -webkit-writing-mode: vertical-rl;
    text-orientation: upright;
    word-wrap: break-word;
  }
}
/*--------------------------------------
    key
--------------------------------------*/
#key-box {
  position: relative;
  padding: 2.65%;
  box-sizing: border-box;
}
#key-box::before {
  content: none;
}
#key-box:after {
  content: "";
  position: absolute;
  bottom: 2.55%;
  left: 2.65%;
  width: 41.095890411%;
  height: 7.6136363636%;
  background: #e60016;
  z-index: 2;
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
}
#key-box p {
  height: 50vw;
  position: relative;
}
#key-box p:nth-child(1) {
  height: 60vw;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
  overflow: hidden;
  z-index: 3;
  margin-bottom: -10vw;
}
#key-box p:nth-child(2):before {
  content: "";
  position: absolute;
  top: 4vw;
  right: 0;
  width: 89.1095890411%;
  height: 5.3vw;
  background: #e60016;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
#key-box p img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (min-width: 768px) {
  #key-box {
    margin: 19px 20px 21px;
    width: auto;
    padding: 0;
  }
  #key-box::after {
    bottom: 0;
    left: 0;
  }
  #key-box p {
    height: 510px;
  }
  #key-box p:nth-child(1) {
    margin-bottom: -150px;
    height: 520px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 0% 100%);
  }
  #key-box p:nth-child(1) img {
    object-position: top;
  }
  #key-box p:nth-child(2):before {
    top: 0;
    height: 142px;
    z-index: 3;
    clip-path: polygon(100% 0, 100% 0, 100% calc(100% - 70px), 0% 100%);
  }
  #key-box p:nth-child(2) img {
    object-position: bottom;
  }
}
@media screen and (min-width: 1501px) {
  #key-box p:nth-child(2) img {
    object-position: 20%;
  }
}

/*--------------------------------------
  sec1
--------------------------------------*/
#sec1 {
  padding: 15vw 0;
  position: relative;
  background: url("../img/recruit/s1_bg.png") no-repeat center top;
  background-size: auto 120vw;
  overflow: hidden;
}
#sec1 .ttl {
  text-align: center;
  position: relative;
}
#sec1 .ttl:before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2vw);
  left: 50%;
  width: 1px;
  height: 90vw;
  background: #fff;
}
#sec1 .txt {
  margin: 6vw 0;
}
#sec1 .txt span {
  display: block;
  margin-top: 1.8em;
}
#sec1 .txt .txt-latin {
  display: inline-block;
  margin-top: 0;
  letter-spacing: 0.15em;
}
#sec1 .flex {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
#sec1 .flex .item {
  text-align: center;
  width: var(--width);
  margin: 0 auto;
  --width: 44%;
}
#sec1 .flex .item .numb {
  font-size: 12vw;
  z-index: 2;
  position: relative;
  line-height: 1;
}
#sec1 .flex .item .icon {
  margin: -7vw 0 -5vw;
}
#sec1 .flex .item h3 {
  font-size: 6.5vw;
  position: relative;
  line-height: 1;
}
#sec1 .flex .item .fnt-cormo {
  margin: 20px -20px 0;
  padding-top: 10px;
  position: relative;
  color: #656360;
  font-weight: 600;
}
#sec1 .flex .item .fnt-cormo:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  border-top: 2px solid;
}
#sec1 .flex .item:nth-child(1) {
  margin: 0 calc((100% - var(--width)) / 2) 6vw;
}
@media screen and (min-width: 768px) {
  #sec1 {
    padding: 230px 0 140px;
    background-size: 100%;
  }
  #sec1 .ttl {
    font-size: 24px;
    letter-spacing: 0.2em;
    margin-left: 6px;
  }
  #sec1 .ttl:before {
    margin-left: -4px;
    bottom: calc(100% + 30px);
  }
  #sec1 h2 {
    margin-top: 8px;
    margin-left: 10px;
  }
  #sec1 .txt {
    margin: 48px auto 56px;
    padding-left: 10px;
    line-height: 32px;
  }
  #sec1 .txt span {
    margin-top: 0;
    margin-right: 32px;
  }
  #sec1 .txt .txt-latin {
    margin-right: 0;
    position: relative;
    right: 4px;
  }
  #sec1 .flex {
    justify-content: center;
    gap: 81px;
    margin-left: 2px;
  }
  #sec1 .flex .item {
    margin: 0;
    --width: 260px;
  }
  #sec1 .flex .item:nth-child(1) {
    margin: 0;
  }
  #sec1 .flex .item .numb {
    font-size: 72px;
  }
  #sec1 .flex .item .icon {
    margin: -35px 0 -41px;
  }
  #sec1 .flex .item h3 {
    font-size: 48px;
    margin: 0 -20px;
  }
  #sec1 .flex .item .fnt-cormo {
    margin-top: 24px;
    padding-top: 2px;
    font-size: 20px;
    letter-spacing: 1px;
    padding-top: 16px;
  }
}

/*--------------------------------------
  sec2
--------------------------------------*/
#sec2 {
  position: relative;
  z-index: 1;
  padding: 15vw 0;
}
#sec2:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  background: url("../img/recruit/pattern.png") repeat;
  z-index: -1;
  background-size: 300px;
  clip-path: polygon(0 10vw, 100% 0, 100% 100%, 0% 100%);
}
#sec2 .row1 {
  gap: 6vw;
}
#sec2 .row1 .photo {
  margin-right: -10%;
}
#sec2 .row2 {
  margin-top: 10vw;
}
#sec2 .row2 .txt {
  z-index: 1;
  padding: 7vw;
  color: #fff;
  position: relative;
}
#sec2 .row2 .txt:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: rgba(0, 0, 0, 0.75);
}
#sec2 .row2 .txt span {
  display: block;
  margin-top: 1.8em;
}
#sec2 .row2 h3 {
  font-size: 5.3vw;
  display: table;
  margin: 3vw auto 0;
  line-height: 1.6;
}
@media screen and (min-width: 768px) {
  #sec2 {
    padding: 0 0 150px;
    position: relative;
  }
  #sec2:before {
    top: 30px;
    background-size: 532px;
    clip-path: polygon(0 150px, 100% 0, 100% 100%, 0% 100%);
  }
  #sec2 .row1 {
    gap: 0;
  }
  #sec2 .row1 h2 {
    padding: 37px 0 0 79px;
    line-height: 60px;
  }
  #sec2 .row1 .photo {
    position: absolute;
    top: 0;
    margin-right: 0;
    right: calc(50% - 50vw);
    left: calc(50% - 50px);
    height: 550px;
  }
  #sec2 .row1 .photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #sec2 .row2 {
    margin-top: 61px;
    align-items: end;
    gap: 50px;
  }
  #sec2 .row2 .txt {
    padding: 60px 0;
    position: relative;
    width: 522px;
    line-height: 32px;
  }
  #sec2 .row2 .txt span {
    margin-top: 32px;
  }
  #sec2 .row2 .txt::before {
    right: -79px;
    left: -79px;
    width: auto;
  }
  #sec2 .row2 h3 {
    margin: 0 0 46px 97px;
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 46px;
  }
  #sec2 .row2 h3 small {
    font-size: 20px;
  }
}
@media (max-width: 1100px) and (min-width: 768px) {
  #sec2 .row2 {
    gap: 30px;
  }
  #sec2 .row2 .txt {
    margin-left: 20px;
  }
}

/*--------------------------------------
  sec3
--------------------------------------*/
#sec3 {
  position: relative;
  z-index: 1;
  padding-bottom: 8vw;
}
#sec3:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/recruit/pattern.png") repeat;
  z-index: -1;
  background-size: 300px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10vw), 0% 100%);
}
#sec3 .bg {
  padding: 10vw 4% 27vw;
  background: url("../img/recruit/s3_bg.png") no-repeat bottom right/80%, #fff;
  width: 96%;
  gap: 8vw;
  box-sizing: border-box;
}
#sec3 .bg .photos li {
  width: 92.9899856938%;
}
#sec3 .bg .photos li:nth-child(2) {
  margin-top: 10px;
  margin-left: auto;
}
#sec3 .bg .txt {
  margin-top: 7vw;
}
@media screen and (min-width: 768px) {
  #sec3 {
    padding-bottom: 100px;
  }
  #sec3:before {
    background-size: 532px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 150px), 0% 100%);
  }
  #sec3 .bg {
    width: 1300px;
    max-width: 100%;
    padding: 50px 0 101px;
    gap: 73px;
    background-size: 803px;
    justify-content: center;
  }
  #sec3 .bg .photos {
    margin-left: -51px;
    width: 699px;
  }
  #sec3 .bg .content {
    width: 355px;
    min-width: 355px;
    margin: 85px 20px 0 0;
  }
  #sec3 .bg .content h2 {
    line-height: 60px;
  }
  #sec3 .bg .content .txt {
    margin-top: 39px;
  }
}
@media screen and (min-width: 1501px) {
  #sec3 .bg {
    width: calc(100% - 200px);
  }
}

/*--------------------------------------
  sec4
--------------------------------------*/
#sec4 {
  padding: 13vw 0;
}
#sec4 h2 {
  padding-bottom: 15px;
  position: relative;
}
#sec4 h2:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  border-top: 2px solid #656361;
}
#sec4 .main {
  margin: 10vw 0 7vw;
}
#sec4 .main .item {
  padding: 5vw 4%;
  margin-bottom: 7vw;
}
#sec4 .main .item:last-child {
  margin-bottom: 0;
}
#sec4 .main .item:nth-child(2n+1) {
  position: relative;
  z-index: 1;
}
#sec4 .main .item:nth-child(2n+1):before {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 50vw);
  right: 0;
  height: 100%;
  background: #fff;
  border-radius: 0 120px 120px 0;
  z-index: -1;
}
#sec4 .main .item .numb {
  text-align: left;
}
#sec4 .main .item .numb span {
  font-family: var(--serif);
  font-weight: bold;
  font-size: 170%;
  position: relative;
  left: -10%;
  z-index: -1;
  top: 0vw;
}
#sec4 .main .item h3 {
  font-size: 5.3vw;
}
#sec4 .main .item .txt {
  position: relative;
  margin-top: 3vw;
  padding-top: 3vw;
}
#sec4 .main .item .txt:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-top: 1px solid;
  border-bottom: 1px solid;
}
#sec4 .main .item .txt a {
  text-decoration: underline;
  text-underline-offset: 8px;
}
#sec4 .main .item .txt a:hover {
  text-decoration: none;
}
#sec4 .bg {
  height: 80vw;
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0% 100%);
}
#sec4 .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media screen and (min-width: 768px) {
  #sec4 {
    padding: 125px 0 73px;
  }
  #sec4 h2 {
    margin-left: 10px;
    padding-bottom: 45px;
  }
  #sec4 h2:before {
    width: 31px;
    margin-left: -5px;
  }
  #sec4 .main {
    margin: 41px 0;
  }
  #sec4 .main .item {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    padding: 53px 0 50px 76px;
    margin-bottom: 10px;
  }
  #sec4 .main .item .numb {
    font-size: 60px;
    margin-bottom: 0;
    margin-top: 12px;
  }
  #sec4 .main .item .numb span {
    font-size: 120px;
    left: -44px;
    top: -1px;
  }
  #sec4 .main .item .content {
    margin-left: -23px;
    width: 400px;
  }
  #sec4 .main .item .content h3 {
    font-size: 30px;
    margin-left: -4px;
    letter-spacing: 0.15em;
  }
  #sec4 .main .item .content .txt {
    margin-top: 27px;
    padding-top: 24px;
  }
  #sec4 .main .item:nth-child(2n+1):before {
    right: 150px;
  }
  #sec4 .main .item:nth-child(2) {
    margin-bottom: 2px;
    margin-left: 80px;
  }
  #sec4 .main .item:nth-child(2) .numb {
    margin-top: 3px;
  }
  #sec4 .main .item:nth-child(2) .content {
    margin-left: -31px;
  }
  #sec4 .main .item:nth-child(3) {
    padding-left: 231px;
    padding-top: 54px;
    margin-bottom: 4px;
  }
  #sec4 .main .item:nth-child(3):before {
    right: 0;
  }
  #sec4 .main .item:nth-child(4) {
    margin-left: 237px;
  }
  #sec4 .bg {
    height: 750px;
    margin-top: -2px;
    clip-path: polygon(0 0, 100% 150px, 100% calc(100% - 150px), 0% 100%);
  }
}

/*--------------------------------------
  sec5
--------------------------------------*/
#sec5 h2 {
  padding-bottom: 15px;
  position: relative;
}
#sec5 h2:before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  border-top: 2px solid #656361;
}
#sec5 .tabs-switch {
  margin-top: 10vw;
}
#sec5 .tabs-switch .tab-link {
  text-align: center;
  position: relative;
  margin: 0 -4%;
}
#sec5 .tabs-switch .tab-link:before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid;
  z-index: -1;
}
#sec5 .tabs-switch .tab-link li {
  width: 45%;
  text-align: center;
  font-size: 3.5vw;
  border-radius: 15px 15px 0 0;
  color: #fcf7f1;
  padding: 1vw 0 2vw;
  position: relative;
}
#sec5 .tabs-switch .tab-link li:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 1px;
  background: #bdb9b5;
  z-index: -1;
  border-radius: 15px 15px 0 0;
}
#sec5 .tabs-switch .tab-link li.active {
  padding: 2vw 0;
  border: 1px solid;
  border-bottom: 0;
  color: #000000;
  background: #fcf7f1;
  margin-bottom: -1px;
}
#sec5 .tabs-switch .tab-link li.active:before {
  display: none;
}
#sec5 .tab-content {
  margin-top: 8vw;
}
#sec5 .tab-content dl {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  border-bottom: 1px solid #cac6c1;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
#sec5 .tab-content dl dt {
  font-weight: bold;
  min-width: 90px;
}
#sec5 .box {
  background: #ececec;
  border-top: 1px solid #000;
  padding: 8vw 0;
}
#sec5 .box .btn-all a {
  width: 290px;
  height: 80px;
}
#sec5 .box .btn-all a:after {
  background: url("../img/recruit/sec5_mail.png") no-repeat center center;
  background-size: contain;
  width: 23px;
  right: 20px;
}
#sec5 .set2 {
  margin-top: 10vw;
  background: url("../img/recruit/sec5_bg.jpg") no-repeat center top;
  background-size: cover;
  color: #fff;
  padding: 10vw 0;
}
#sec5 .set2 .left {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  justify-content: center;
  margin-bottom: 7vw;
}
#sec5 .set2 .left .ttl {
  font-weight: 600;
}
#sec5 .set2 dl {
  border-bottom: 1px solid #c0c0c0;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
@media screen and (min-width: 768px) {
  #sec5 .wrap {
    width: 1100px;
  }
  #sec5 h2 {
    margin-left: -7px;
    padding-bottom: 45px;
  }
  #sec5 h2:before {
    width: 31px;
    margin-left: -5px;
  }
  #sec5 .tabs-switch {
    margin-top: 62px;
  }
  #sec5 .tabs-switch .tab-link {
    margin: 0;
  }
  #sec5 .tabs-switch .tab-link:before {
    bottom: -1px;
  }
  #sec5 .tabs-switch .tab-link li {
    font-size: 30px;
    width: 450px;
    margin: 0 7px;
    box-sizing: border-box;
    letter-spacing: 0.15em;
    border-radius: 31px 31px 0 0;
    top: 8px;
    padding: 20px 0 22px 5px;
  }
  #sec5 .tabs-switch .tab-link li:not(.active):hover {
    opacity: 0.7;
  }
  #sec5 .tabs-switch .tab-link li.active {
    top: 0;
    padding: 27px 0 30px 5px;
  }
  #sec5 .tabs-switch .tab-link li:before {
    border-radius: 31px 31px 0 0;
  }
  #sec5 .tab-content {
    width: 800px;
    min-height: 464px;
    max-width: 100%;
    margin: 53px auto 0;
  }
  #sec5 .tab-content dl {
    padding: 0 60px 16px;
    margin-bottom: 15px;
  }
  #sec5 .tab-content dl dt {
    min-width: 196px;
  }
  #sec5 .box {
    padding: 80px 0 100px;
  }
  #sec5 .box .btn-all a {
    width: 700px;
    height: 180px;
    font-size: 24px;
    line-height: 40px;
    letter-spacing: 0.15em;
  }
  #sec5 .box .btn-all a:before {
    left: 7px;
  }
  #sec5 .box .btn-all a:after {
    width: 75px;
    right: 56px;
  }
  #sec5 .set2 {
    margin-top: 151px;
    padding: 140px 0 122px;
  }
  #sec5 .set2 .flex {
    justify-content: center;
    gap: 75px;
  }
  #sec5 .set2 .left {
    margin: 7px 0 0 50px;
  }
  #sec5 .set2 .left .ttl {
    font-size: 24px;
    margin-top: 2px;
    margin-right: -3px;
  }
  #sec5 .set2 .left .ttl span {
    letter-spacing: 0.03em;
  }
  #sec5 .set2 .left h3 {
    width: 96px;
    height: 276px;
  }
  #sec5 .set2 .right {
    width: 750px;
  }
  #sec5 .set2 .right dl {
    padding-bottom: 16px;
    margin-bottom: 14px;
  }
}
