#kv {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-bottom: 20vw;
}
#kv .shadow {
  background: #000;
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
#kv .row-first {
  position: relative;
  width: 100%;
  height: calc(100vh - 63px);
}
#kv .img {
  width: 100%;
  height: calc(100vh - 63px);
  z-index: 0;
  will-change: transform;
}
#kv .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
#kv h2 {
  color: #fff;
  position: absolute;
  bottom: 5vw;
  left: 5vw;
  z-index: 2;
}
/* ==========================================
   スマホ表示時にタイトル（h2）をKVの縦横中央に配置
   ========================================== */
   @media screen and (max-width: 767px) {
    #kv h2 {
      top: 50%;
      left: 50%;
      bottom: auto; /* 元々あった bottom: 5vw の指定を解除 */
      transform: translate(-50%, -50%);
      width: 100%;
      text-align: center;
      padding: 0 20px;
      box-sizing: border-box;
      z-index: 10;  /* ★重要：背景画像の裏に回り込むのを防ぎ、最前面に出す */
      text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.5);
    }
  }
#kv .desc {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#kv h3 {
  color: #fff;
  position: relative;
  z-index: 3;
}
#key-box h1 {
  position: absolute;
  top: 0px;
  left: 0;
  right: 0;
  width: 80%;
}
#key-box .logo {
  width: 80px;
  position: absolute;
  top: 57px;
  left: 0;
}
#key-box .logo a {
  display: inline-block;
}
@media only screen and (min-width: 768px) {
  #kv {
    padding-bottom: 0;
  }
  #kv .row-first {
    height: 100vh;
  }
  #kv .img {
    height: 100vh;
  }
  #kv .desc {
    height: auto;
    padding: 300px 0 277px;
  }
  #kv h2 {
    bottom: 46px;
    left: 42px;
  }
  #kv h3 {
    line-height: 80px;
  }
  #key-box h1 {
    top: 0px;
    left: 0px;
    width: 100%;
  }  
  #key-box .logo {
    top: 80px;
    left: 50px;
  }
}

#sec1 {
  padding: -20vw 0 20vw;
  position: relative;
  z-index: 1;
}
#sec1 .desc {
  padding-top: -50vw;
  margin-bottom: 6vw;
}
#sec1 .desc h2 {
  text-align: center;
  color: #fff;
  font-size: 6vw;
  margin-bottom: 6vw;
  position: relative;
  z-index: 1;
}
#sec1 .desc h2::before {
  content: "";
  position: absolute;
  background: #fff;
  opacity: 0.2;
  height: 50vw;
  width: 1px;
  bottom: calc(100% + 2vw);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 1;
}
#sec1 .desc .txt {
  color: #fff;
}
#sec1 .list .photo1 {
  width: 45%;
  position: absolute;
  top: -75vw;
  right: 0;
}
#sec1 .list .photo2 {
  width: 60%;
}
@media only screen and (min-width: 768px) {
  #sec1 {
    padding: 215px 0 215px;
  }
  #sec1 .desc {
    padding-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
  }
  #sec1 .desc h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 59px;
  }
  #sec1 .desc h2::before {
    height: 400px;
    bottom: calc(100% + 50px);
  }
  #sec1 .desc .txt {
    letter-spacing: 0.1em;
    text-align: center;
  }
  #sec1 .list .photo1 {
    width: auto;
    top: -282px;
    right: calc(50% - 50vw);
    left: calc(50% + 250px);
    height: 350px;
  }
  #sec1 .list .photo2 {
    width: auto;
    position: absolute;
    bottom: -99px;
    left: -205px;
  }
}

#sec2 {
  padding: 1vw 1vw;
  background: url(../img/shared/main_bg.jpg) repeat;
}
#sec2 .list {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
#sec2 .list .item {
  position: relative;
  z-index: 1;
}
#sec2 .list .item:nth-child(3) .desc .tit {
  font-size: 5.5vw;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.03em;
}
#sec2 .list .item .img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
#sec2 .list .item .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
#sec2 .list .item .desc {
  box-sizing: border-box;
  padding: 30vw 5%;
}
#sec2 .list .item .desc .tit {
  font-size: 6vw;
  font-family: var(--zen);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  text-align: center;
  margin-bottom: 6vw;
}
#sec2 .list .item .desc .tit .line {
  display: inline-block;
  padding: 3vw 3vw;
  position: relative;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  z-index: 1;
}
#sec2 .list .item .desc .tit .line::before, #sec2 .list .item .desc .tit .line::after {
  content: "";
  position: absolute;
  background: #fff;
  left: 2.5vw;
  right: 2.5vw;
  height: 1px;
}
#sec2 .list .item .desc .tit .line::before {
  top: -4px;
}
#sec2 .list .item .desc .tit .line::after {
  bottom: -4px;
}
#sec2 .list .item .desc .txt {
  color: #fff;
  letter-spacing: 0.1em;
}
@media only screen and (min-width: 768px) {
  #sec2 {
    padding: 6px 5px;
  }
  #sec2 .list {
    flex-direction: row;
    gap: 5px;
  }
  #sec2 .list .item {
    width: 33.3333333333%;
    height: 600px;
  }
  #sec2 .list .item:nth-child(3) .desc .tit {
    font-size: 26px;
  }
  #sec2 .list .item:nth-child(3) .desc .txt {
    width: 335px;
  }
  #sec2 .list .item .desc {
    padding: 0;
    position: absolute;
    z-index: 2;
    top: 174px;
    left: 0;
    right: 0;
  }
  #sec2 .list .item .desc .tit {
    font-size: 30px;
    margin-bottom: 23px;
  }
  #sec2 .list .item .desc .tit .line {
    padding: 15px 20px 18px;
  }
  #sec2 .list .item .desc .tit .line::before, #sec2 .list .item .desc .tit .line::after {
    left: 20px;
    right: 20px;
  }
  #sec2 .list .item .desc .txt {
    width: auto;
    margin: 0 auto;
    text-align: center;
  }
}

#sec3 {
  padding: 20vw 0 20vw;
  position: relative;
  z-index: 1;
  background: url(../img/shared/main_bg.jpg) repeat;
}
#sec3 .deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 50vw;
  z-index: -1;
}
#sec3 h2 {
  margin-bottom: 8vw;
}
#sec3 .row1 {
  margin-bottom: 12vw;
}
#sec3 .row1 .txt {
  margin-bottom: 6vw;
}
#sec3 .row-cus {
  margin-bottom: 12vw;
}
#sec3 .row-cus.reverse .img {
  margin-left: 0;
  margin-right: calc(50% - 50vw);
}
#sec3 .row-cus .img {
  margin-left: calc(50% - 50vw);
  margin-bottom: 6vw;
}
#sec3 .row-cus .desc h3 {
  font-size: 5.6vw;
  margin-bottom: 6vw;
}
#sec3 .bnr {
  position: relative;
  z-index: 1;
}
#sec3 .bnr .link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5vw 5vw 5vw;
}
#sec3 .bnr .link .img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
#sec3 .bnr .link .note {
  color: #fff;
  margin-bottom: 10vw;
}
#sec3 .bnr .link .desc {
  margin-bottom: 10vw;
}
#sec3 .bnr .link .desc dl {
  text-shadow: 1px 1px #222;
  font-size: 6vw;
  margin-bottom: 4vw;
  color: #fff;
}
#sec3 .bnr .link .desc dl:last-child {
  margin-bottom: 0;
}
#sec3 .bnr .link .desc dl dt {
  font-size: 100%;
}
#sec3 .bnr .link .desc dl dd {
  font-size: 66.6666666667%;
}
#sec3 .bnr .link .desc dl dd .price {
  font-size: 120%;
}
#sec3 .bnr .link .btn-all a,
#sec3 .bnr .link .btn-all .fk {
  font-weight: 600;
}
@media only screen and (min-width: 768px) {
  #sec3 {
    padding: 196px 0 121px;
  }
  #sec3 .wrap {
    width: 100%;
    max-width: 1260px;
    padding: 0 30px;
    margin: 0 auto;
  }
  #sec3 .deco {
    top: -94px;
    right: -9px;
    width: 567px;
  }
  #sec3 h2 {
    margin-bottom: 53px;
  }
  #sec3 .row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-left: -98px;
    margin-bottom: 83px;
  }
  #sec3 .row1 .txt {
    width: 470px;
    margin-bottom: 0;
    letter-spacing: 0.1em;
    flex-shrink: 0;
  }
  #sec3 .row-cus {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: calc(50% - 50vw);
    margin-bottom: 80px;
    gap: 30px;
  }
  #sec3 .row-cus.reverse {
    margin-left: 0;
    margin-right: calc(50% - 50vw);
    flex-direction: row-reverse;
  }
  #sec3 .row-cus.reverse .img {
    margin-left: 0;
    margin-right: 0;
  }
  #sec3 .row-cus .img {
    margin-left: 0;
    margin-bottom: 0;
    width: calc(100% - 475px - 75px);
    height: 600px;
  }
  #sec3 .row-cus .desc {
    width: 475px;
    flex-shrink: 0;
  }
  #sec3 .row-cus .desc h3 {
    font-size: 30px;
    margin-bottom: 41px;
  }
  #sec3 .row-cus .desc .txt {
    letter-spacing: 0.1em;
  }
  #sec3 .row3 .desc {
    margin-bottom: 14px;
  }
  #sec3 .row3 .desc h3 {
    margin-bottom: 29px;
  }
  #sec3 .bnr {
    width: 1000px;
    height: 450px;
    margin: 0 auto;
  }
  #sec3 .bnr .link {
    padding: 0;
  }
  #sec3 .bnr .link .note {
    margin-bottom: 0;
    position: absolute;
    z-index: 1;
    top: 9px;
    left: 19px;
    letter-spacing: 0.15em;
  }
  #sec3 .bnr .link .desc {
    margin-bottom: 0;
    position: absolute;
    z-index: 1;
    top: 132px;
    left: 88px;
  }
  #sec3 .bnr .link .desc dl {
    text-shadow: unset;
    font-size: 30px;
    margin-bottom: 40px;
    line-height: 36px;
  }
  #sec3 .bnr .link .desc dl dd {
    letter-spacing: 0.15em;
  }
  #sec3 .bnr .link .btn-all {
    position: absolute;
    z-index: 1;
    bottom: 22px;
    right: 22px;
  }
  #sec3 .bnr .link .btn-all a,
  #sec3 .bnr .link .btn-all .fk {
    width: 245px;
  }
}

#sec4 {
  padding: 0 0 20vw;
  background: url(../img/shared/main_bg.jpg) repeat;
}
#sec4 .row1 {
  margin-bottom: -10vw;
}
#sec4 .row1 .desc {
  box-sizing: border-box;
  padding: 0 5%;
  margin-bottom: 6vw;
}
#sec4 .row1 .desc h2 {
  margin-bottom: 6vw;
}
#sec4 .row1 .img {
  height: 80vw;
}
#sec4 .row2 {
  margin-bottom: 12vw;
  position: relative;
  z-index: 1;
}
#sec4 .row2 .img {
  margin-bottom: 6vw;
}
#sec4 .row2 .desc dl {
  font-size: 6vw;
  margin-bottom: 4vw;
}
#sec4 .row2 .desc dl dt {
  font-size: 100%;
}
#sec4 .row2 .desc dl dd {
  font-size: 66.6666666667%;
  letter-spacing: 0.13em;
}
#sec4 .row2 .desc dl dd .price {
  font-size: 120%;
}
#sec4 .row3 {
  padding: 6vw 0;
  border-top: 1px solid rgba(34, 34, 34, 0.3);
  border-bottom: 1px solid rgba(34, 34, 34, 0.3);
}
#sec4 .row3 h3 {
  text-align: center;
  font-size: 6vw;
  margin-bottom: 6vw;
}
@media only screen and (min-width: 768px) {
  #sec4 {
    padding: 0 0 100px;
  }
  #sec4 .row1 {
    margin-bottom: -103px;
    position: relative;
    z-index: 1;
  }
  #sec4 .row1 .desc {
    padding: 0;
    margin-bottom: 0;
    width: 465px;
    position: absolute;
    top: 186px;
    right: 38px;
    z-index: 2;
  }
  #sec4 .row1 .desc h2 {
    color: #fff;
    margin-bottom: 45px;
  }
  #sec4 .row1 .desc .txt {
    color: #fff;
    letter-spacing: 0.1em;
  }
  #sec4 .row1 .img {
    height: 800px;
  }
  #sec4 .row2 {
    display: flex;
    align-items: flex-end;
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-bottom: 89px;
  }
  #sec4 .row2 .img {
    margin-bottom: 0;
    margin-right: -100px;
  }
  #sec4 .row2 .desc {
    margin-left: 22px;
    margin-bottom: 30px;
  }
  #sec4 .row2 .desc dl {
    font-size: 30px;
    margin-bottom: 19px;
  }
  #sec4 .row2 .desc .note {
    line-height: 30px;
    letter-spacing: 0.1em;
  }
  #sec4 .row3 {
    width: 100%;
    max-width: 1000px;
    padding: 50px 0 46px;
  }
  #sec4 .row3 h3 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 24px;
  }
  #sec4 .row3 .txt {
    line-height: 46px;
    letter-spacing: 0.1em;
    text-align: center;
  }
}

.bnr-all {
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
  padding: 10vw 5vw 10vw;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
.bnr-all .img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bnr-all .img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.bnr-all .desc h2 {
  font-size: 6vw;
  text-align: center;
  margin-bottom: 6vw;
  color: #fff;
}
.bnr-all .desc .tel-info dt {
  color: #fff;
}
.bnr-all .desc .tel-info dt .tel-icon::before {
  background-image: url(../img/shared/icon_tel_w.png);
}
.bnr-all .desc .note {
  color: #fefefe;
  margin-bottom: 5vw;
}
.bnr-all .desc .btn-web a {
  color: #222;
  background: #fff;
}
.bnr-all .desc .btn-web a::before {
  background-image: url(../img/shared/icon_arrow_b.png);
}
@media only screen and (min-width: 768px) {
  .bnr-all {
    max-width: 1402px;
    padding: 154px 40px 166px;
  }
  .bnr-all .desc h2 {
    font-size: 36px;
    margin-bottom: 43px;
  }
  .bnr-all .desc .tel-info dt {
    margin-bottom: 0;
  }
  .bnr-all .desc .note {
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
  }
  .bnr-all .desc .btn-web a:hover {
    background: #222;
    color: #f6f6f6;
  }
  .bnr-all .desc .btn-web a:hover::before {
    filter: brightness(0) invert(1);
  }
}

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

.sec-last {
  padding: 5vw 0 20vw;
}
.sec-last .list-all .btn-all {
  margin-bottom: 4vw;
}
.sec-last .list-all .btn-all a {
  font-family: var(--serif);
  font-weight: 400;
}
@media only screen and (min-width: 768px) {
  .sec-last {
    padding: 88px 0 100px;
  }
  .sec-last .list-all {
    display: flex;
    justify-content: center;
    gap: 110px;
  }
  .sec-last .list-all .btn-all {
    margin-bottom: 0;
    width: 100%;
    max-width: 380px;
  }
  .sec-last .list-all .btn-all a {
    font-size: 18px;
    width: 100%;
    height: 60px;
    border-radius: 30px;
  }
  .sec-last .list-all .btn-all a::before {
    right: 50px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
  #sec3 .row1 {
    margin-left: 0;
    gap: 30px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1260px) {
  #sec2 .list .item:nth-child(3) .desc .tit {
    font-size: 20px;
  }
  #sec2 .list .item .desc .txt {
    font-size: 14px;
  }
}
