@keyframes scroll {
  0% {
    transform: scale(1, 0);
    transform-origin: 0 0;
  }

  50% {
    transform: scale(1, 1);
    transform-origin: 0 0;
  }

  51% {
    transform: scale(1, 1);
    transform-origin: 0 100%;
  }

  100% {
    transform: scale(1, 0);
    transform-origin: 0 100%;
  }
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/* ========================================
  @media screen and (min-width: 768px),print
======================================== */
@media screen and (min-width: 768px), print {
  .p-fv {
    margin-bottom: -50px;
  }

  .p-fv .p-fv__txt {
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.6153846154;
    margin-bottom: 60px;
    text-align: center;
  }

  .p-fv .p-fv__scrolldown {
    animation: scroll 2s infinite;
    background: #403f3f;
    height: 100px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    width: 1px;
    z-index: 10;
  }

  .p-fv {
    /*上から下に流れる線*/
    margin-block: 84px -60px;
  }

  .p-renovation {
    margin-bottom: 178px;
  }

  .p-renovation.--light {
    margin-bottom: 117px;
  }

  .p-renovation.--space {
    margin-bottom: 170px;
  }

  .p-renovation .p-renovation__img {
    margin-bottom: 200px;
    text-align: center;
  }

  .p-renovation .p-renovation__img.--space {
    margin-bottom: 185px;
  }

  .p-renovation .p-renovation__img img {
    height: auto;
    width: 100%;
  }

  .p-renovation .p-renovation__con {
    display: grid;
    gap: 0 10.1%;
    grid-template-columns: 44.1% 45.9%;
    margin-inline: auto;
    width: min(95%, 1134px);
    align-items: center;
  }

  .p-renovation .p-renovation__con.--reverse {
    grid-template-columns: 45.9% 44.1%;
  }

  .p-renovation .p-renovation__con.--reverse .p-renovation__con-right {
    order: -1;
  }

  .p-renovation .p-renovation__con-left {
    position: relative;
    top: 11px;
  }

  .p-renovation .p-renovation__con-left .en {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.7142857143;
    margin-bottom: 18px;
  }

  .p-renovation .p-renovation__con-left h2 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.5714285714;
    margin-bottom: 29px;
  }

  .p-renovation .p-renovation__con-left .txt p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1428571429em;
    line-height: 1.8571428571;
    margin-bottom: 25px;
  }

  .p-renovation .p-renovation__con-left .txt p.last {
    margin-bottom: 0;
  }

  .p-renovation .p-renovation__con-right img {
    height: auto;
    width: 100%;
  }

  .p-slider {
    margin-bottom: 240px;
  }

  .p-slider .l-inner.l-slider {
    overflow: hidden;
  }

  .p-slider .p-slider__wrap {
    align-items: center;
    display: flex;
    gap: 0 100px;
    width: 4262px;
  }

  .p-slider .p-slider__img {
    animation: scroll-left 60s linear infinite;
  }

  .p-slider .p-slider__img img {
    height: auto;
    width: 2131px;
  }

  .p-link {
    margin-bottom: 92px;
  }

  .p-link .l-inner.l-link {
    margin-inline: auto;
    width: min(95%, 1020px);
  }

  .p-link .p-link__items {
    display: grid;
    gap: 60px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p-link .p-link__item a {
    display: block;
  }

  .p-link .p-link__item a img {
    height: auto;
    width: 100%;
  }
}

/* ========================================
  @media screen and (max-width: 767px)
======================================== */
@media screen and (max-width: 767px) {
  .p-fv {
    margin-block: 14vw -9.246vw;
  }

  .p-fv .p-fv__txt {
    font-size: 4.831vw;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.9;
    margin-bottom: 4.179vw;
    text-align: center;
  }

  .p-fv .p-fv__scrolldown {
    animation: scroll 2s infinite;
    background: #403f3f;
    height: 14.493vw;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    width: 0.242vw;
    z-index: 10;
  }

  .p-renovation {
    margin-bottom: 5.56vw;
  }

  .p-renovation.--space {
    margin-bottom: 8.56vw;
  }

  .p-renovation .p-renovation__img {
    margin-bottom: 11.56vw;
    text-align: center;
  }

  .p-renovation .p-renovation__img img {
    height: auto;
    width: 100%;
  }

  .p-renovation .p-renovation__con {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    margin-inline: auto;
    width: min(95%, 89.405797vw);
  }

  .p-renovation .p-renovation__con.--reverse {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .p-renovation .p-renovation__con-left {
    display: contents;
  }

  .p-renovation .p-renovation__con-left .en {
    font-size: 3.382vw;
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.7142857143;
    margin-bottom: 1.348vw;
    order: 1;
  }

  .p-renovation .p-renovation__con-left h2 {
    font-size: 5.797vw;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.5833333333;
    margin-bottom: 4.348vw;
    order: 2;
  }

  .p-renovation .p-renovation__con-left .txt {
    order: 4;
  }

  .p-renovation .p-renovation__con-left .txt p {
    font-size: 3.382vw;
    font-weight: 400;
    letter-spacing: 0.1428571429em;
    line-height: 1.8571428571;
    margin-bottom: 6.348vw;
  }

  .p-renovation .p-renovation__con-left .txt p.last {
    margin-bottom: 0;
  }

  .p-renovation .p-renovation__con-right {
    margin-bottom: 6.729vw;
    order: 3;
  }

  .p-slider {
    margin-bottom: 24.155vw;
  }

  .p-slider .l-inner.l-slider {
    overflow: hidden;
  }

  .p-slider .p-slider__wrap {
    align-items: center;
    display: flex;
    gap: 0 5.797vw;
    width: 431.401vw;
  }

  .p-slider .p-slider__img {
    animation: scroll-left 60s linear infinite;
  }

  .p-slider .p-slider__img img {
    height: auto;
    width: 215.7vw;
  }

  .p-link {
    margin-bottom: 19vw;
  }

  .p-link .l-inner.l-link {
    margin-inline: auto;
    width: min(95%, 91.7vw);
  }

  .p-link .p-link__items {
    display: grid;
    gap: 2.899vw 0;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .p-link .p-link__item a {
    display: block;
  }

  .p-link .p-link__item a img {
    height: auto;
    width: 100%;
  }
}
