#kv {
  position: relative;
  width: 100%;
  overflow: hidden;
}
#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 .row-first {
    height: 100vh;
  }
  #kv .img {
    height: 100vh;
  }
  #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 .deco {
  position: absolute;
  bottom: -20vw;
  left: 0;
  width: 60vw;
  z-index: -1;
}
#sec1 .row .list {
  display: flex;
  gap: 2vw;
  margin-bottom: 8vw;
}
#sec1 .row .list .photo {
  width: 50%;
}
#sec1 .row .list .photo2 {
  margin-top: 20vw;
}
#sec1 .row .desc h2 {
  font-size: 6vw;
  margin-bottom: 6vw;
}
@media only screen and (min-width: 768px) {
  #sec1 {
    padding: 137px 0 100px;
  }
  #sec1 .deco {
    bottom: -200px;
    left: calc(50% - 738px);
    width: 386px;
  }
  #sec1 .wrap {
    width: 100%;
    max-width: 1260px;
    padding: 0 30px;
    margin: 0 auto;
  }
  #sec1 .row {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 30px;
  }
  #sec1 .row .list {
    gap: 30px;
    margin-top: 13px;
    margin-right: -97px;
    margin-bottom: 0;
  }
  #sec1 .row .list .photo {
    width: auto;
  }
  #sec1 .row .list .photo2 {
    margin-top: 200px;
  }
  #sec1 .row .desc {
    width: 470px;
    flex-shrink: 0;
    margin-left: 36px;
  }
  #sec1 .row .desc h2 {
    font-size: 30px;
    line-height: 55px;
    margin-bottom: 31px;
  }
  #sec1 .row .desc .txt {
    letter-spacing: 0.1em;
  }
}

#sec2 {
  padding: 20vw 0 20vw;
}
#sec2 h2 {
  margin-bottom: 4vw;
}
#sec2 .note {
  margin-bottom: 8vw;
}
#sec2 .row {
  margin-bottom: 12vw;
}
#sec2 .row:last-child {
  margin-bottom: 0;
}
#sec2 .row .desc-all {
  margin-bottom: 6vw;
}
#sec2 .row .img {
  margin-left: calc(50% - 50vw);
}
#sec2 .row .wrap-slider {
  margin-right: calc(50% - 50vw);
}
#sec2 .row .wrap-slider .slick-slide {
  line-height: 1em;
}
#sec2 .row .wrap-slider .photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
#sec2 .row .wrap-slider .slider-thumb {
  margin-top: -2vw;
  margin-left: -3vw;
  margin-right: 3vw;
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2vw;
}
#sec2 .row .wrap-slider .slider-thumb .photo {
  width: 40vw;
  position: relative;
  z-index: 1;
}
#sec2 .row .wrap-slider .slider-thumb .photo::before {
  content: "";
  position: absolute;
  background: #000;
  opacity: 0.6;
  inset: 0;
  z-index: 1;
  visibility: visible;
  transition: all 0.3s ease;
}
#sec2 .row .wrap-slider .slider-thumb .photo.is-active::before {
  opacity: 0;
  visibility: hidden;
}
@media only screen and (min-width: 768px) {
  #sec2 {
    padding: 99px 0 116px;
  }
  #sec2 .wrap {
    width: 100%;
    max-width: 1260px;
    padding: 0 30px;
    margin: 0 auto;
  }
  #sec2 h2 {
    margin-bottom: 34px;
  }
  #sec2 .note {
    line-height: 30px;
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 73px;
  }
  #sec2 .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 27px;
    margin-right: calc(50% - 50vw);
    margin-bottom: 80px;
    gap: 30px;
  }
  #sec2 .row.reverse {
    margin-right: -21px;
    margin-left: calc(50% - 50vw);
    flex-direction: row-reverse;
  }
  #sec2 .row.reverse .desc-all {
    width: 392px;
    margin-bottom: 43px;
  }
  #sec2 .row .desc-all {
    width: 344px;
    margin-bottom: 160px;
  }
  #sec2 .row .img {
    width: calc(100% - 392px - 80px);
    height: 550px;
    margin-left: 0;
  }
  #sec2 .row .wrap-slider {
    margin-right: 0;
    width: calc(100% - 344px - 80px);
  }
  #sec2 .row .wrap-slider .slider .photo {
    width: 100%;
    height: 550px;
  }
  #sec2 .row .wrap-slider .slider-thumb {
    margin-top: -28px;
    margin-left: -340px;
    margin-right: 50px;
    gap: 10px;
  }
  #sec2 .row .wrap-slider .slider-thumb .photo {
    width: 230px;
    height: 150px;
    cursor: pointer;
  }
  #sec2 .row .wrap-slider .slider-thumb .photo:hover::before {
    opacity: 0;
    visibility: hidden;
  }
}

#bnr {
  padding: 0 0 20vw;
}
#bnr .bnr {
  padding: 10vw 0 10vw;
  position: relative;
  z-index: 1;
}
#bnr .bnr .link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5vw 5vw 5vw;
}
#bnr .bnr .link .img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
#bnr .bnr .link h2 {
  font-size: 6vw;
  color: #fff;
  margin-bottom: 10vw;
  text-shadow: 1px 1px #000;
}
#bnr .bnr .link .btn-all a,
#bnr .bnr .link .btn-all .fk {
  font-weight: 600;
}
@media only screen and (min-width: 768px) {
  #bnr {
    padding: 0 0 145px;
  }
  #bnr .bnr {
    padding: 0;
    width: 1000px;
    height: 450px;
    margin: 0 auto;
  }
  #bnr .bnr .link {
    padding: 0;
  }
  #bnr .bnr .link .note {
    margin-bottom: 0;
    position: absolute;
    z-index: 1;
    top: 9px;
    left: 19px;
    letter-spacing: 0.15em;
  }
  #bnr .bnr .link h2 {
    font-size: 30px;
    text-shadow: unset;
    margin-bottom: 0;
    position: absolute;
    z-index: 1;
    top: 174px;
    left: 88px;
  }
  #bnr .bnr .link .btn-all {
    position: absolute;
    z-index: 1;
    bottom: 22px;
    right: 22px;
  }
  #bnr .bnr .link .btn-all a,
  #bnr .bnr .link .btn-all .fk {
    width: 245px;
  }
}

.bnr-all {
  width: 100%;
  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: 100%;
    padding: 154px 0 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);
  }
}

#sec4 {
  padding: 20vw 0 20vw;
}
#sec4 .list-bnr .item {
  height: 60vw;
  position: relative;
  z-index: 1;
  margin-bottom: 6vw;
}
#sec4 .list-bnr .item:last-child {
  margin-bottom: 0;
}
#sec4 .list-bnr .item .link {
  display: block;
  width: 100%;
  height: 100%;
}
#sec4 .list-bnr .item .link .img {
  position: absolute;
  inset: 0;
  z-index: -1;
}
#sec4 .list-bnr .item .link .desc {
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: 12vw;
  z-index: 2;
}
#sec4 .list-bnr .item .link .desc .tit {
  font-size: 6vw;
  color: #fff;
  text-align: center;
  margin-bottom: 6vw;
}
#sec4 .list-bnr .item .link .desc .tit .small {
  font-size: 73.3333333333%;
}
@media only screen and (min-width: 768px) {
  #sec4 {
    padding: 95px 0 102px;
  }
  #sec4 .wrap {
    max-width: 1360px;
    width: 100%;
    padding: 0 30px;
    margin: 0 auto;
  }
  #sec4 .list-bnr {
    display: flex;
    gap: 99px;
  }
  #sec4 .list-bnr .item {
    width: 50%;
    height: 400px;
    margin-bottom: 0;
  }
  #sec4 .list-bnr .item .link .desc {
    left: 30px;
    right: 30px;
    top: 152px;
  }
  #sec4 .list-bnr .item .link .desc .tit {
    font-size: 30px;
    line-height: 44px;
    margin-bottom: 34px;
  }
  #sec4 .list-bnr .item .link .desc .tit .small {
    letter-spacing: 0.15em;
  }
}
