@media screen and (max-width: 1024px) {
  .externalLinks {
    max-width: 768px;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: 50% 50%;
  }
  .externalLinks .linkwrap {
    width: 80%;
    padding: 2vh 0;
  }
  .externalLinks .linkBtn {
    width: 100%;
  }
  .externalLinks::before{
    background: 
      linear-gradient(to bottom, var(--lineCol), var(--lineCol)) calc(50%) 0 / 1px 100% no-repeat,
      linear-gradient(to right, var(--lineCol), var(--lineCol)) 0 calc(50%) / 100% 1px no-repeat;
  }
}

@media screen and (max-width: 992px) {
  .lp-br {
    display: inline;
  }

  .titleBlock h2 {
    line-height: 2;
    letter-spacing: 0.1em;
    text-align: right;
  }

  .titleBlock h2::before {
    bottom: 0;
    width: 1px;
    height: 250%;
  }
} 

@media screen and (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    width: auto;
  }
  .sp-br {
    display: inline;
  }
  .pc-br {
    display: none;
  }

  .sp-fade-up {
    opacity: 0;
    filter: blur(8px);
  }

  .catalogbtn {
    height: 120px;
    width: 30px;
    transform: translate(0, -50%);
    z-index: 9999;
  }
  .catalogbtn p {
    width: 30px;
    font-size: clamp(12px, calc(10.2px + 0.48vw), 15px);
  }

  /* ヘッダー */
  header {
    --headerCrossX: 15.38%;
    --headerLineStartY: 60vh;
    --headerHeight: 110vh;
    height: 115vh;
    margin-top: 0;
  }
  header::before {
    width: 1px;
  }
  header::after {
    height: 1px;
    right: 10%;
  }
  .headWrapper {
    height: 70%;
    padding-top: 20%;
    box-sizing: border-box;
  }
  .headWrapper > img {
    flex: 27;
    height: 66vh;
    object-fit: cover;
  }
  .commentBlock {
    flex: 12;
    height: 66vh;
    position: relative;
  }
  .commentBlock img {
    max-height: 300px;
  }
  #header p {
    top: calc(var(--headerHeight) + 2vh);
    left: var(--headerCrossX);
    letter-spacing: 0.1em;
  }
  .scroll {
    width: 25px;
    height: 50px;
    border: 1px solid #7c7c7c;
    /* top: 75vh; */
    bottom: -70px;
    opacity: 0;
    animation: imageFadeIn 1.2s ease-out 0.5s forwards;
    z-index: 5;
  }
  .scroll .line {
    width: 1px;
    background-color: #7c7c7c;
    animation: scrollAnimation 2.5s cubic-bezier(0.165, 0.840, 0.440, 1.000) infinite;
  }
  @keyframes sliddown {
    0% {
      top: 0;
      height: 0;
      }
    100% {
      top: 0;
      height: 120vh;
      }
    }
    @keyframes lineTopDown {
    0% {
      top: 0;
      height: 120vh;
    }
    100% {
      top: 80vh;
      height: 40vh;
    }
  }
  @keyframes scrollAnimation {
    0% {
      opacity: 0;
      transform: translateX(-50%) scaleY(0);
      transform-origin: center top;
    }
    3% {
      opacity: 1;
      transform: translateX(-50%) scaleY(0);
      transform-origin: center top;
    }
    40% {
      opacity: 1;
      transform: translateX(-50%) scaleY(1);
      transform-origin: center top;
    }
    41% {
      opacity: 1;
      transform: translateX(-50%) scaleY(1);
      transform-origin: center bottom;
    }
    70% {
      opacity: 1;
      transform: translateX(-50%) scaleY(0);
      transform-origin: center bottom;
    }
    100% {
      opacity: 0;
      transform: translateX(-50%) scaleY(0);
      transform-origin: center bottom;
    }
  }

  /* メイン */
  h1 {
    margin-top: 50vh;
    letter-spacing: 0.2em;
    line-height: 2.0;
  }
  .caseUnite .captionArea{
    flex-direction: column;
    justify-content: center;
    width: 100%;
    margin-top: 20%;
  }
  .titleBlock {
    width: 100%;
    margin: 10vh 0 15vh;
  }
  .titleBlock h2 {
    line-height: 2;
    letter-spacing: 0.1em;
    text-align: right;
  }
  .titleBlock h2::before {
    bottom: 0;
    width: 1px;
    height: 250%;
  }
  .caption {
    width: 100%;
    display: block;
    justify-content: center;
    margin: 10vh 0;
  }
  .caption p {
    white-space: nowrap;
    text-align: center;
    line-height: 2.8;
  }

  .caseDivide .titleBlock {
    width: 100%;
    justify-content: center;
    margin-bottom: 20vw;
  }

  .greatful {
    flex-direction: column;
  }
  .greatful .wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .greatful .wrapper img {
    width: 100%;
    grid-column: 1;
  }
  .greatful .wrapper p {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    margin-top: 2em;
  }
  .greatful .imgArea {
    width: 100%;
    margin: 0;
    margin-top: 3vh;
    position: relative;
  }
  .greatful .imgArea .roomImg {
    width: 70%;
    height: 420px;
    object-fit: cover;
    object-position: 80% center;
    margin-left: auto;
  }
  .greatful .imgArea .stringImg {
    width: 25%;
    position: absolute;
    left: 8%;
  }

  .dignified { 
    flex-direction: column-reverse;
  }
  .dignified .captionArea {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
  }
  .dignified .captionArea img {
    flex: 0 0 40%;
    aspect-ratio: 15/16;
    object-fit: cover;
    object-position: 15% 50%;
    align-self: flex-start;
  }
  .dignified .captionArea p {
    flex: 0 0 auto;
    width: fit-content;
    margin: 3em auto;
  }
  .dignified .imgArea {
    width: 100%;
    margin: 0;
    position: relative;
    display: block;
    justify-content: flex-start;
  }
  .dignified .imgArea .roomImg {
    width: 75%;
    height: 440px;
    object-fit: cover;
    object-position: 60% center;
  }
  .dignified .imgArea .stringImg {
    width: 30%;
    position: absolute;
    top: -20%;
    left: 50%;
  }

  .clean {
    flex-direction: column;
  }
  .clean .captionArea {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
  }
  .clean .captionArea img {
    flex: 0 0 35%;
    aspect-ratio: 5/8;
    object-fit: cover;
    object-position: 15% center;
    align-self: flex-start;
    margin: 0;
  }
  .clean .captionArea p {
    flex: 0 0 auto;
    width: fit-content;
    margin: 20% auto;
  }
  .clean .imgArea {
    width: 100%;
    margin: 0;
    position: relative;
  }
  .clean .imgArea .roomImg {
    width: 75%;
    height: 440px;
    object-fit: cover;
    object-position: 52% center;
  }
  .clean .imgArea .stringImg {
    width: 30%;
    position: absolute;
    top: 55%;
    left: 15%;
  }

  .captionCoord {
    width: 100%;
    display: block;
    text-align: center;
    margin: 35vh 0;
  }
  .captionCoord p {
    margin-top: 8vw;
    line-height: 2;
  }

  .goodsTitle {
    margin-left: 15vw;
    margin-bottom: 20vw;
    letter-spacing: .05em;
    position: relative;
    padding-left: 3px;
  }
  .goodsTitle::before { /* 横線 */
    width: 89vw;
    top: 150%;
    left: -13%;
  }
  .goodsTitle::after {
    height: 300%;
    left: -6%;
  }
  .subTitle { 
    margin-bottom: 20px;
  }
  #targetimg_1,
  #targetimg_2 {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 85%;
  }
  #targetimg_2 {
    object-position: center center;
  }
  .goods .catchPhrase {
    line-height: 2.4;
    letter-spacing: 0.2em;
  }
  .goods .videoCaption {
    line-height: 2.4;
    letter-spacing: 0.2em;
  }

  [data-ruby] {
    letter-spacing: 0.05em;
    position: relative;
    text-wrap: nowrap;
  }
  [data-ruby]::before {
    margin: auto;
    padding-top: .35em;
    font-size: 0.55em;
  }

  .externalLinks .linkBtn {
    padding: 14px 13px;
  }

  .toTopBtn {
    width: 50px;
    margin-bottom: 5%;
    margin-right: 2%;
  }
  .toTopBtn .material-icons {
    font-size: clamp(20px, calc(19.1px + 0.24vw), 22px);
  }

  footer {
    padding: 1% 0;
  }
  footer img {
    width: 23%;
  }
  footer {
    font-size: 11px;
  }
}
