
.img-wrapper{
  height: fit-content;
}
.caption.has-bg {
    left: auto;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.4em 0.6em;
    margin: 0;
}
.modelroom .tertiary-heading {
    margin-bottom: 1em;
    font-size: clamp(2rem, 3vw, 3rem);
}
.modelroom .secondary-heading {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: .4em;
    line-height: 1.3;
}
@media (max-width: 1200px) and (min-width: 768px) {
  .tab-block{
    display: block;
  }
}
.mv-text {
  font-family: "optima-nova-lt-pro", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  font-size: clamp(5rem, 4.5vw, 9rem);
  inset: 0;
  left: 10px;
  position: absolute;
  top: 10px;
}
.mv-text-lr {
  writing-mode: sideways-lr;
  text-orientation: mixed;
}
@media (max-width: 1200px) and (min-width: 768px) {
  .mv-text {
    font-size: clamp(3rem,4vw,5rem);
  }
}
@media screen and (max-width: 767px) {
  .modelroom .secondary-heading {
    margin-bottom: .6em;
}
  .mv-text {
    font-size: 7vw;
  }
  .mv .img-wrapper .caption{
    left: none;
    right: 0;
    left: auto;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.4em 0.6em;
    margin: 0;
    color: #fff;
    width: fit-content;
    text-align: right;
  }

}


/* lead */
.general-section.lead-section{
  overflow-x: hidden;
  position: relative;
}
.general-section.lead-section::before{
  content: "";
  position: absolute;
  inset: 0 0 50%;
  background: url(../images/modelroom/bg-lead.webp) center bottom / cover no-repeat;
  z-index: -1;
}
.lead-flex01{
  gap: 80px;
}
.lead-image01{
  position: relative;
    z-index: 2;
}
.lead-image02{
  width: 40%;
  height: fit-content;
  margin-top: 4%;
}
.lead-image03{
  width: calc(100% - 40% - 80px);
  padding-inline:0 55px ;
}
.lead-image03 .caption{
  right: 55px;
}
.lead-contents{
  margin: 60px 0;
  position: relative;
}
.lead-contents-in{
  position: relative;
  z-index: 2;
}
.lead-image04{
  position: absolute;
  right: calc((100vw - 100%) / -2);
  z-index: 0;
  top: 0px;
  width: 90%;
  translate: 0 -30%;
}
.lead-image04 .caption{
  bottom: 20px;
}

@media (max-width: 1710px) and (min-width:1050px) {
  .lead-image04{
    translate: 0 -60%;
  }
}
@media (max-width: 1200px) and (min-width: 768px) {
  .lead-image03 {
    padding-inline: 0 0px;
    width: calc(100% - 40% - 32px);
  }
  .general-section.lead-section::before{
    inset: 0 0 60%;
  }
  .lead-image03 .caption{
    right: 0px;
  }
  .lead-image04{
    width: 80%;
  }
  .lead-contents {
      margin: 60px 0 9em;
      position: relative;
  }
  .lead-flex01 {
      gap: 32px;
  }
}
@media screen and (max-width: 767px) {
  .lead-contents{
    margin: 60px 0 5.5em;
  }
  .general-section.lead-section::before{
    inset: 0 0 60%;
  }
  .lead-image04{
    position: absolute;
    right: calc((100vw - 100%) / -2);
    z-index: -1;
    top: 25px;
    width: min(600px, 210%);

  }
  .lead-image04 img{
    margin-inline: 40% 0;
  }
  .lead-image04-in{
    position: relative;
  }
  .lead-image04-in::before{
    content: "";
    width: 100%;
    height: 80px;
    top: 40px;
    left: 50%;
    translate: -50% -50%;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%
    );
    position: absolute;
  }
  .lead-flex01{
    gap: 24px;
  }
  .lead-image02{
    width: 100%;
    height: fit-content;
  }
  .lead-image03{
    width: 100%;
    padding-inline:0 0px ;
  }
  .lead-image03 .caption{
    right: 0px;
  }
  
}

/* private */
.general-section.private-section{
    background: url(../images/modelroom/bg-private.webp) center top / cover;
}
.private-contents{
  margin: 60px 0;
}
.private-sub-ttl.secondary-heading{
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
}

.private-flex01{
    gap: 100px;
    flex-wrap: nowrap;
}
.private-image01{
  margin-left: calc((100vw - 100%) / -2);
  margin-top: 42px;
}
.private-image02{
    width: 60%;
    height: fit-content;
}
.private-image03{
     width: 100%;
      margin-right: calc((100vw - 100%) / -2);
}
@media (max-width: 1200px) and (min-width: 768px) {
  .private-flex01 {
      gap: 32px;
  }
}
@media screen and (max-width: 767px) {
  .private-contents{
    margin: 42px 0;
  }
  .private-flex01{
    flex-direction: column;
    gap: 24px;
  }
  .private-image01{
    margin-left: 0;
    margin-top: 0px;
  }
  .private-image02{
    width: 100%;
    height: fit-content;
  }
  .private-image03{
      width: 100%;
        margin-right: 0;
  }
}


/* function */
.function-section{
   background: url(../images/modelroom/bg-function.webp) center top / cover;
}

.function-image{
    gap: 80px;
    margin-top: 60px;
}
.function-image figure{
    width: calc(33.33% - 80px*2/3);
}
@media (max-width: 1200px) and (min-width: 768px) {
  .function-image{
      gap: 16px;
      margin-top: 60px;
  }
  .function-image figure{
      width: calc(33.33% - 16px*2/3);
  }
}
@media screen and (max-width: 767px) {
    .function-image{
      gap: 24px;
      margin-top: 32px;
  }
  .function-image figure{
      width: 100%;
  }

}