@media only screen and (min-width: 768px) {
  #key-box {
    height: 782px;
  }

  #key-box .keyvisual li {
    height: 782px;
  }
}

#sec1 {
  color: #fff;
  background: url(../img/shared/main_bg3.jpg) repeat;
  padding: 16vw 0;
  position: relative;
  z-index: 1;
}

#sec1::before {
  content: "";
  position: absolute;
  background: url(../img/concept/sec1_deco1.png) no-repeat;
  background-size: contain;
  aspect-ratio: 466/813;
  width: 50vw;
  height: auto;
  top: 84vw;
  right: 0;
  left: 0;
  margin: 0 auto;
  z-index: -1;
}

#sec1 .row {
  position: relative;
}

#sec1 .row .img1 {
  margin-bottom: 6vw;
}

#sec1 .row h2 {
  margin: 0 auto 25vw;
  width: 15.7vw;
  height: 89.1vw;
  position: relative;
  white-space: nowrap;
}

#sec1 .row h2 .txt-latin {
  letter-spacing: normal;
}

#sec1 .row h2::before {
  content: "";
  position: absolute;
  background: #fbf5f2;
  top: calc(100% + 2vw);
  width: 1px;
  height: 15vw;
  opacity: 0.5;
  left: 0;
  right: 0;
  margin: 0 auto;
}

#sec1 .row .txt {
  margin-bottom: 6vw;
}

@media only screen and (min-width: 768px) {
  #sec1 {
    padding: 149px 0 180px;
  }

  #sec1::before {
    width: 466px;
    top: 0;
    left: unset;
    right: calc(50% - 580px);
  }

  #sec1 .row .img1 {
    position: absolute;
    top: 0;
    left: -58px;
  }

  #sec1 .row h2 {
    width: 84px;
    height: 618px;
    padding-top: 128px;
    margin-right: 107px;
    margin-bottom: -106px;
  }

  #sec1 .row h2::before {
    top: calc(100% - 108px);
    height: 100px;
  }

  #sec1 .row h2 .txt-latin {
    letter-spacing: 0.2em;
  }

  #sec1 .row .txt {
    width: 500px;
    height: 477px;
    margin-left: -15px;
    margin-bottom: 0;
    line-height: 3.12em;
    letter-spacing: 0.1em;
    padding-bottom: 130px;
  }

  #sec1 .row .img2 {
    position: absolute;
    bottom: 0;
    right: -28px;
  }
}

#sec2 .section-js {
  position: relative;
  z-index: 2;
  background: #000;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#sec2 .section-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  transition: 0.7s ease-in-out;
  box-sizing: border-box;
}

#sec2 .section-item:nth-child(4) {
  z-index: 1;
}

#sec2 .section-item:nth-child(3) {
  z-index: 2;
}

#sec2 .section-item:nth-child(2) {
  z-index: 3;
}

#sec2 .section-item:nth-child(1) {
  z-index: 4;
}

#sec2 .section-item.active {
  transform: translateY(-100%);
}

#sec2 .section-item .bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

#sec2 .section-item .bg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#sec2 .section-item .group {
  position: absolute;
  top: 5vw;
  left: 5%;
  z-index: 1;
}

#sec2 .section-item .group .counter {
  color: var(--num);
  font-size: 6vw;
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.8em;
  position: relative;
  margin-bottom: 5vw;
}

#sec2 .section-item .group .counter::before {
  content: "";
  border-left: 1px solid var(--num);
  position: absolute;
  top: 2vw;
  left: 8vw;
  height: 20vw;
  transform: rotate(41deg);
}

#sec2 .section-item .group .counter .total {
  margin-left: 10vw;
  display: block;
}

#sec2 .section-item .group .ttl {
  display: flex;
  align-items: flex-end;
  color: var(--txt);
}

#sec2 .section-item .group h2 {
  height: 20vw;
  margin-right: 5vw;
}

#sec2 .section-item .group h2 img {
  object-fit: contain;
  width: auto;
  height: 100%;
}

#sec2 .section-item .txt {
  width: 100%;
  color: var(--txt);
  position: absolute;
  bottom: calc(10vw + 55px);
  left: 0;
  right: 0;
  padding: 0 5%;
  box-sizing: border-box;
}

#sec2 .item1 {
  --num: #000;
  --txt: #000;
}

#sec2 .item2 {
  --num: #fbf5f2;
  --txt: #fff;
}

#sec2 .item3 {
  --num: #000;
  --txt: #000;
}

#sec2 .item4 {
  --num: #fbf5f2;
  --txt: #fff;
}

@media only screen and (min-width: 768px) {
  #sec2 .section-item .group {
    top: 100px;
    left: 39px;
  }

  #sec2 .section-item .group .counter {
    font-size: 30px;
    margin-bottom: 49px;
  }

  #sec2 .section-item .group .counter::before {
    top: 4px;
    left: 39px;
    height: 106px;
    transform: rotate(45deg);
  }

  #sec2 .section-item .group .counter .total {
    margin-left: 43px;
  }

  #sec2 .section-item .group h2 {
    height: unset;
    margin-right: 32px;
  }

  #sec2 .section-item .group h2 img {
    width: 100%;
    height: auto;
  }

  #sec2 .section-item .group .en-all {
    margin-bottom: -5px;
  }

  #sec2 .section-item .txt {
    width: 550px;
    padding: 0;
    left: 43px;
    bottom: 92px;
  }
}

#sec3 {
  padding: 16vw 0;
  background: url(../img/shared/main_bg3.jpg) repeat;
}

#sec3 .box {
  padding: 12vw 5% 8vw;
  box-sizing: border-box;
  background: url(../img/shared/main_bg.jpg) repeat;
}

#sec3 .box .desc {
  position: relative;
  box-sizing: border-box;
  margin-bottom: 6vw;
  z-index: 1;
}

#sec3 .box .desc::before {
  content: "";
  position: absolute;
  background: url(../img/concept/sec3_deco1.png) repeat-x;
  background-position: center bottom;
  top: -5vw;
  left: -2%;
  width: 80%;
  height: 100vw;
  opacity: 0.4;
  z-index: -1;
}

#sec3 .box .desc h2 {
  width: 60vw;
  margin-bottom: 6vw;
}
#sec3 .box .img{
  margin:0 6vw 0 ;
}

@media only screen and (min-width: 768px) {
  #sec3 {
    padding: 101px 0 90px;
  }

  #sec3 .box {
    margin: 0 -100px;
    display: flex;
    flex-direction: row-reverse;
    gap: 72px;
    padding: 85px 98px 85px 115px;
  }

  #sec3 .box .desc {
    margin-top: 161px;
    width: 465px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  #sec3 .box .desc::before {
    top: -95px;
    left: -29px;
    width: 372px;
    height: 573px;
  }

  #sec3 .box .desc h2 {
    margin-left: 10px;
    margin-bottom: 61px;
  }

  #sec3 .box .desc .txt {
    letter-spacing: -0.04em;
    margin-left: 22px;
  }
  #sec3 .box .img{
  margin:0 0 0 0;
}
}

#sec4 {
  padding: 0 0 16vw;
  background: url(../img/shared/main_bg3.jpg) repeat;
}

#sec4 .row .bnr {
  height: 60vw;
  color: #fff;
  text-align: center;
  position: relative;
  border: 1px solid #b7a98c;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 6vw;
}

#sec4 .row .bnr:last-child {
  margin-bottom: 0;
}

#sec4 .row .bnr::before {
  content: "";
  position: absolute;
  z-index: 1;
  background: url(../img/concept/sec4_arrow.png) no-repeat;
  background-size: contain;
  aspect-ratio: 1/1;
  width: 10vw;
  height: auto;
  bottom: 5px;
  right: 5px;
}

#sec4 .row .bnr .link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

#sec4 .row .bnr .tit {
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 2.25em;
}

#sec4 .row .bnr .tit .big {
  font-size: 166.6666666667%;
}

#sec4 .row .bnr .img {
  position: absolute;
  inset: 5px;
  z-index: -1;
  box-sizing: border-box;
}

#sec4 .row .bnr .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

@media only screen and (min-width: 768px) {
  #sec4 {
    padding: 0 0 130px;
  }

  #sec4 .row {
    display: flex;
    justify-content: center;
    gap: 70px;
    margin: 0 -175px;
  }

  #sec4 .row .bnr {
    width: 50%;
    height: 420px;
    padding-bottom: 28px;
    margin-bottom: 0;
    transition: all 0.3s ease;
  }

  #sec4 .row .bnr:hover {
    opacity: 0.7;
  }

  #sec4 .row .bnr::before {
    width: 60px;
  }

  #sec4 .row .bnr .en-all {
    font-size: 14px;
    margin-bottom: 18px;
  }

  #sec4 .row .bnr .tit {
    font-size: 30px;
  }
}

@media screen and (min-width: 768px) and (max-height: 650px) {
  #sec2 .section-item .group .counter {
    margin-bottom: 25px;
  }

  #sec2 .section-item .txt {
    bottom: 40px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
  #sec4 .row {
    margin: 0 -100px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
  #sec4 .row {
    margin: 0 -20px;
  }
}