/* =======================================
メインビジュアル
======================================== */

/* ====== メインビジュアル全体 ====== */
.main-visual {
  position: relative;
  width: 100%;
  margin-top: var(--header-height, 0px);
}

.mv-wrap {
  max-width: 1840px;
  width: 100%;
  position: relative;
  margin: 0 auto;
}

.main-visual .text-box {
  position: absolute;
  bottom: 60px;
  right: 50px;
}

.main-visual h2 {
  color: #fff;
  font-feature-settings: "palt";
  letter-spacing: 0.014em;
  font-weight: 700;
  text-align: right;
  font-size: 60px;
  text-shadow: 0 2px 20px rgba(92, 74, 84, 0.7);
}

.scroll {
  position: absolute;
  left: 40px;
  font-family: "Comfortaa", sans-serif;
  bottom: 40px;
  border-radius: 0 6px 6px 0;
  padding: 16px 12px;
  line-height: 1;
  background-color: #c2b2bb;
  writing-mode: vertical-rl;
  z-index: 2;
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-weight: 400;
  font-size: 20px;
}


.scroll::before {
  animation: scroll 2s infinite;
  background-color: #fff;
  bottom: -180px;
  content: "";
  height: 180px;
  left: 0;
  margin: auto;
  position: absolute;
  width: 2px;
  z-index: 2;
}

.scroll::after {
  background-color: #ccc;
  bottom: -180px;
  content: "";
  height: 180px;
  left: 0;
  margin: auto;
  position: absolute;
  width: 2px;
}

.mv-img img {
  border-radius: 20px;
}

@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%;
  }
}

@media (max-width: 1880px) {
  .main-visual {
    padding-left: calc(15px + 50 * (100vw - 320px) / 1180);
    padding-right: calc(15px + 50 * (100vw - 320px) / 1180);
  }
}

@media (max-width: 1280px) {
  .main-visual .text-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
  }

  .main-visual h2 {
    color: #fff;
    font-feature-settings: "palt";
    letter-spacing: 0.014em;
    font-weight: 700;
    text-align: right;
    font-size: 50px;
    text-shadow: 0 2px 20px rgba(92, 74, 84, 0.7);
  }

}

@media (max-width: 991px) {
  .main-visual h2 {
    color: #fff;
    font-feature-settings: "palt";
    letter-spacing: 0.014em;
    font-weight: 700;
    text-align: right;
    font-size: 40px;
    text-shadow: 0 2px 20px rgba(92, 74, 84, 0.7);
  }

  .scroll {
    position: absolute;
    left: 20px;
    font-family: "Comfortaa", sans-serif;
    bottom: 50px;
    border-radius: 0 6px 6px 0;
    padding: 12px 8px;
    line-height: 1;
    background-color: #c2b2bb;
    writing-mode: vertical-rl;
    z-index: 2;
    font-family: "Orbitron", sans-serif;
    color: #fff;
    font-weight: 400;
    font-size: 18px;
  }

  .scroll::before {
    animation: scroll 2s infinite;
    background-color: #fff;
    bottom: -140px;
    content: "";
    height: 140px;
    left: 0;
    margin: auto;
    position: absolute;
    width: 2px;
    z-index: 2;
  }

  .scroll::after {
    background-color: #ccc;
    bottom: -140px;
    content: "";
    height: 140px;
    left: 0;
    margin: auto;
    position: absolute;
    width: 2px;
  }
}

@media (max-width: 768px) {
  .mv-img img {
    height: 55vh;
    object-fit: cover;
  }

}

@media (max-width: 660px) {
  .main-visual h2 {
    color: #fff;
    font-feature-settings: "palt";
    letter-spacing: 0.014em;
    font-weight: 700;
    text-align: right;
    font-size: 35px;
    text-shadow: 0 2px 20px rgba(92, 74, 84, 0.7);
  }


}

@media (max-width: 580px) {

  .main-visual .text-box {
    position: absolute;
    bottom: 130px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .main-visual h2 {
    color: #fff;
    font-feature-settings: "palt";
    letter-spacing: 0.014em;
    font-weight: 700;
    text-align: right;
    font-size: 26px;
    text-shadow: 0 2px 20px rgba(92, 74, 84, 0.7);
  }

  .scroll {
    position: absolute;
    left: 20px;
    font-family: "Comfortaa", sans-serif;
    bottom: 40px;
    border-radius: 0 6px 6px 0;
    padding: 12px 8px;
    line-height: 1;
    background-color: #c2b2bb;
    writing-mode: vertical-rl;
    z-index: 2;
    font-family: "Orbitron", sans-serif;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
  }

  .scroll::before {
    animation: scroll 2s infinite;
    background-color: #fff;
    bottom: -120px;
    content: "";
    height: 120px;
    left: 0;
    margin: auto;
    position: absolute;
    width: 2px;
    z-index: 2;
  }

  .scroll::after {
    background-color: #ccc;
    bottom: -120px;
    content: "";
    height: 120px;
    left: 0;
    margin: auto;
    position: absolute;
    width: 2px;
  }


}

/* =======================================
top-head-area
======================================== */

.top-head-area {
  margin-top: 260px;
  padding-bottom: 180px;
}

.top-head-flex {
  display: flex;
  justify-content: space-between;
}

.top-head-area h3 {
  position: relative;
  color: #fff;
  font-size: 40px;
  padding: 12px 10px 12px 30px;
  display: table;
  line-height: 1;
  border-radius: 4px;
  overflow: hidden;
  z-index: 0;
}

.top-head-area h3::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--red-color);
  z-index: -1;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(.77, 0, .175, 1);
}

.top-head-area h3.is-open::before {
  transform: scaleX(1);
}

.top-head-area h3+h3 {
  margin-top: 20px;
  margin-left: 60px;
  margin-bottom: 143px;
}

.top-left-img {
  margin-top: 365px;
}

/* 共通 */
.top-right-img,
.top-left-img {
  overflow: hidden;
}

.bottom-img {
  position: relative;
}

/* ===== マスク専用ラッパー ===== */
.bottom-img__mask {
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* 画像共通 */
.bottom-img__mask img {
  display: block;
  width: 100%;
  height: auto;
  transition: clip-path 1.2s cubic-bezier(.77, 0, .175, 1);

  /* 今回は bottom-img は 左 → 右 */
  clip-path: inset(0 0 0 100%);
}

/* 開いた状態 */
.bottom-img.is-open .bottom-img__mask img {
  clip-path: inset(0 0 0 0);
}

.top-right-img img,
.top-left-img img,
.bottom-img img {
  display: block;
  width: 100%;
  height: auto;
  transition: clip-path 1.2s cubic-bezier(.77, 0, .175, 1);
}

/* top-right-img → 左から右へ表示 */
.top-right-img img {
  clip-path: inset(0 0 0 100%);
  /* 左を隠す → 右に開く */
}

.top-right-img.is-open img {
  clip-path: inset(0 0 0 0);
}

/* top-left-img → 右から左へ表示 */
.top-left-img img {
  clip-path: inset(0 100% 0 0);
  /* 右を隠す → 左に開く */
}

.top-left-img.is-open img {
  clip-path: inset(0 0 0 0);
}

/* bottom-img → 左から右へ表示 */
.bottom-img img {
  clip-path: inset(0 0 0 100%);
  /* 左を隠す → 右に開く */
}

.bottom-img.is-open img {
  clip-path: inset(0 0 0 0);
}



.top-head-area .text-box {
  margin-top: 140px;
  max-width: 813px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.top-head-area .text-box .text-wrap {
  margin-left: 193px;
}

.top-head-area .text-box .text {
  font-size: 18px;
  color: var(--main-color);
  line-height: 44px;
}

.top-head-area .text-box ul li {
  position: relative;
  font-size: 18px;
  color: var(--main-color);
  line-height: 44px;
  padding-left: 24px;
}

.top-head-area .text-box ul li::after {
  content: '';
  position: absolute;
  left: 0;
  width: 12px;
  height: 12px;
  top: calc(50% + 2px);
  transform: translateY(-50%);
  background-position: left center;
  background-size: 12px 12px;
  background-image: url('../images/top/red-circle.png');

}

.top-head-area .bottom-img-wrap {
  max-width: 1006px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -70px;
}

.top-head-area .bottom-img-wrap .bottom-img {
  margin-left: auto;
  display: table;
  margin-right: -25px;
}

.bottom-img {
  position: relative;
  display: inline-block;
}

.bottom-img img {
  display: block;
  position: relative;
  z-index: 2;
  border-radius: 12px;
  /* 角丸がある場合 */
}

/* ピンク影 */
.bottom-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffe8e5;
  /* ← ピンク色（自由に変更OK） */
  transform: translate(-52px, -52px);
  /* ← 左上へズラす距離 */
  border-radius: 8px;
  z-index: 1;
}

.fade-line {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.fade-line.is-show {
  opacity: 1;
}

.top-right-img.sp,
.top-left-img.sp {
  display: none;
}

@media (max-width: 2000px) {
  .top-head-area .bottom-img-wrap {
    margin-top: 0;
  }
}

@media (max-width: 1830px) {
  .top-head-area .bottom-img-wrap {
    margin-top: 100px;
  }

}

@media (max-width: 1760px) {

  .top-head-area .bottom-img-wrap {
    max-width: 1006px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 100px;
  }
}

@media (max-width: 1500px) {
  .top-head-area {
    margin-top: 160px;
    padding-bottom: 180px;
  }

  .top-head-area h3 {
    position: relative;
    color: #fff;
    font-size: 30px;
    padding: 12px 10px 12px 30px;
    display: table;
    line-height: 1;
    border-radius: 4px;
    overflow: hidden;
    z-index: 0;
  }

  .top-head-area h3+h3 {
    margin-top: 20px;
    margin-left: 60px;
    margin-bottom: 83px;
  }

  .top-head-area .text-box .text-wrap {
    margin-left: 83px;
  }

  .top-head-area .bottom-img-wrap {
    max-width: 1006px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .top-head-area .bottom-img-wrap .bottom-img {
    max-width: 300px;
  }

  /* ピンク影 */
  .bottom-img::before {
    transform: translate(-38px, -38px);
    /* ← 左上へズラす距離 */
  }
}

@media (max-width: 1200px) {

  .top-head-area .text-box .text {
    font-size: 16px;
    color: var(--main-color);
    line-height: 44px;
  }

  .top-head-area .text-box .text-wrap {
    margin-left: 43px;
  }

  .top-head-area h3+h3 {
    margin-top: 20px;
    margin-left: 60px;
    margin-bottom: 43px;
  }

}

@media (max-width: 991px) {

  .top-right-img.pc,
  .top-left-img.pc {
    display: none;
  }

  .top-right-img.sp,
  .top-left-img.sp {
    display: block;
    margin-left: auto;
    max-width: 300px;
  }

  .top-head-flex {
    display: block;
  }

  .top-head-area {
    margin-top: 100px;
    padding-bottom: 160px;
  }

  .top-head-area .text-box {
    margin-left: 40px;
  }

  .top-head-area .text-box {
    margin-top: 80px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    display: table;
    position: relative;
    z-index: 3;
  }

  .top-head-area .text-box ul li {
    position: relative;
    font-size: 16px;
    color: var(--main-color);
    line-height: 44px;
    padding-left: 24px;
  }

  .top-right-img.sp {
    margin-left: auto;
    max-width: 300px;
    width: 100%;
    margin-right: 0;
  }

  .top-left-img.sp {
    display: block;
    margin-left: 0;
    margin-top: 85px;
  }

  .top-head-area .bottom-img-wrap {
    margin-top: 80px;
  }

}

@media (max-width: 480px) {
  .top-head-area .text-box {
    margin-left: 20px;
    margin-top: 80px;
    max-width: 100%;
    margin-right: auto;
    width: auto;
    display: table;
    position: relative;
    z-index: 3;
  }

  .top-head-area h3 {
    position: relative;
    color: #fff;
    font-size: 22px;
    padding: 10px 8px 10px 20px;
    display: table;
    line-height: 1;
    border-radius: 4px;
    overflow: hidden;
    z-index: 0;
  }

  .top-head-area .text-box .text-wrap {
    margin-left: 10px;
    padding-right: 20px;
  }

  @media (max-width: 480px) {
    .top-head-area .text-box .text {
      font-size: 14px;
    }
  }

  .top-head-area h3+h3 {
    margin-top: 20px;
    margin-left: 60px;
    margin-bottom: 33px;
  }

  .top-head-area .text-box ul li {
    position: relative;
    font-size: 14px;
    color: var(--main-color);
    line-height: 44px;
    padding-left: 24px;
  }

  .top-left-img.sp {
    display: block;
    margin-left: 0;
    margin-top: 55px;
  }

  .page-top-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 80px;
    height: 80px;
    z-index: 1000;
    display: block;
    transition: 0.7s;
  }

  .rotate-img {
    position: absolute;
    inset: 0;
    width: 80px;
    height: 80px;
    animation: rotateText 10s linear infinite;
  }

  .arrow-img {
    position: absolute;
    width: 10px;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: auto;
    z-index: 2;
    pointer-events: none;
  }
}

/* =======================================
家具のレンタル
======================================== */
.rental-area {
  position: relative;
}

.center-content-top-obj,
.center-content-bottom-obj {
  width: 100vw;
}

.center-content-top-obj img,
.center-content-bottom-obj img {
  width: 100vw;
  /* ← 横幅を基準に固定 */
  height: auto;
  /* ← 縦は比率維持 */
  min-height: 170px;
  /* ← 最低高さを保証 */
  display: block;
  margin: 0 auto;
  /* ← 中央基準維持 */
}

.rental-area .ttl-box {
  padding-left: 40px;
}

.rental-cotent {
  background-color: #fff;
}

.rental-slide>.rental-img img {
  width: 100%;
}

.rental-slide-text-box {
  position: absolute;
  display: table;
  margin-left: auto;
  margin-right: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px 0 0 0;
  background-color: #fff;
  padding: 70px 80px 60px;
}

.rental-slide-text-box h4 {
  font-size: 40px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 50px;
  color: var(--main-color)
}

.rental-slide-text-box p {
  font-size: 16px;
  line-height: 1.8;
}


.more-btn:hover::after {
  background-color: #fff;
}


/* セクション全体のベース */
.rental-section {
  padding: 60px 0;
}

/* スライドの表示窓 */
.rental-slide-wrap {
  overflow: hidden;
  width: 100%;
}

/* 無限ループ用トラック */
.rental-slide {
  display: flex;
  width: 200%;
  /* 4枚＋4枚で合計8枚 ⇒ 200%分を横に流す */
  animation: rentalLoop 25s linear infinite;
}

/* 1枚あたりの幅（4枚を横並び想定） */
.rental-img {
  flex: 0 0 12.5%;
  /* 8枚で100%だから1枚12.5% */
  box-sizing: border-box;

  /* フェードアップ初期状態 */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.rental-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* セクションに .is-inview が付いたらフェードアップ開始 */
.rental-section.is-inview .rental-img {
  opacity: 1;
  transform: translateY(0);
}

/* 左から順にテンポをずらす（1〜8枚目まで一応指定） */
.rental-section.is-inview .rental-img:nth-child(1) {
  transition-delay: 0.0s;
}

.rental-section.is-inview .rental-img:nth-child(2) {
  transition-delay: 0.15s;
}

.rental-section.is-inview .rental-img:nth-child(3) {
  transition-delay: 0.30s;
}

.rental-section.is-inview .rental-img:nth-child(4) {
  transition-delay: 0.45s;
}

.rental-section.is-inview .rental-img:nth-child(5) {
  transition-delay: 0.60s;
}

.rental-section.is-inview .rental-img:nth-child(6) {
  transition-delay: 0.75s;
}

.rental-section.is-inview .rental-img:nth-child(7) {
  transition-delay: 0.90s;
}

.rental-section.is-inview .rental-img:nth-child(8) {
  transition-delay: 1.05s;
}

/* 無限ループアニメーション（かくっとしないやつ） */
@keyframes rentalLoop {
  0% {
    transform: translateX(0);
  }

  100% {
    /* 200%幅のうち、ちょうど半分(=元の4枚分)だけ左に流す */
    transform: translateX(-50%);
  }
}

@media (max-width: 1500px) {
  .rental-slide-text-box {
    position: absolute;
    display: table;
    margin-left: auto;
    margin-right: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px 0 0 0;
    background-color: #fff;
    padding: 40px;
  }

  .rental-slide-text-box h4 {
    font-size: 30px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--main-color)
  }

  .rental-slide-text-box p {
    font-size: 16px;
    line-height: 1.8;
  }

  .rental-slide-text-box .more-btn {
    margin-top: 30px;
  }
}


@media (max-width: 991px) {
  .rental-slide-text-box {
    position: absolute;
    display: table;
    margin-left: auto;
    margin-right: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px 0 0 0;
    background-color: #fff;
    max-width: 380px;
    padding: 30px;
  }

  .rental-slide-text-box h4 {
    font-size: 26px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--main-color)
  }


}

/* スマホ用はお好みで調整 */
@media (max-width: 991px) {
  .rental-img {
    flex: 0 0 25%;
    /* 2枚ずつ見せたい場合 */
  }
}

@media (max-width: 768px) {
  .rental-section {
    padding: 0 0 0;
  }

  .rental-slide-text-box {

    position: relative;
    display: table;
    margin-top: -160px;
    margin-left: auto;
    margin-right: 0;
    border-radius: 20px 0 0 0;
    background-color: #fff;
    max-width: 380px;
    padding: 30px;
  }

  .rental-area .ttl-box {
    padding-left: 0;
  }

  .center-content-top-obj img,
  .center-content-bottom-obj img {
    width: 100vw;
    height: auto;
    min-height: 100px;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .rental-slide-text-box {

    position: relative;
    display: table;
    margin-top: -120px;
    margin-left: auto;
    margin-right: 0;
    border-radius: 20px 0 0 0;
    background-color: #fff;
    max-width: 300px;
    padding: 30px;
  }

  .rental-slide-text-box h4 {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 30px;
    color: var(--main-color)
  }

  .rental-slide-text-box p {
    font-size: 14px;
    line-height: 1.8;
  }

  .top-head-area {
    margin-top: 100px;
    padding-bottom: 100px;
  }

  .rental-cotent {
    padding: 0;
  }
}

/* =======================================
光明石について
======================================== */
.komeiseki-area {
  background-color: #fff;
  padding-top: 260px;
}

.komeiseki-area h4 {
  font-size: 40px;
  margin-bottom: 50px;
  font-weight: 500;
  color: var(--main-color);
  letter-spacing: 0.014em;
}

.komeiseki-area .text {
  font-size: 16px;
  letter-spacing: 0.014em;
  line-height: 1.8;
  font-feature-settings: "palt";
}

.komeiseki-wrap {
  position: relative;
  z-index: 2;
}

.komeiseki-wrap::after {
  content: '';
  top: -50px;
  z-index: -1;
  left: -80px;
  width: 561px;
  height: 457px;
  position: absolute;
  background-size: 561px 457px;
  background-image: url('../images/top/illust-flower.svg');
}

.komeiseki-wrap .inner {
  position: relative;
  z-index: 2;
}

.komeiseki-img-wrap {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.komeiseki-img {
  margin-top: auto;
  margin-left: auto;
  display: table;
}

.komeiseki-img-wrap.sp {
  display: none;
}

@media (max-width: 1300px) {

  .komeiseki-area {
    padding-top: 200px;
  }

  .komeiseki-wrap::after {
    content: '';
    top: -50px;
    z-index: -1;
    left: 0;
    width: 361px;
    height: 357px;
    position: absolute;
    background-size: contain;
  }

  .komeiseki-area h4 {
    font-size: 32px;
    margin-bottom: 50px;
    font-weight: 500;
    color: var(--main-color);
    letter-spacing: 0.014em;
  }
}

@media (max-width: 991px) {
  .komeiseki-area {
    padding-top: 140px;
  }

  .komeiseki-img-wrap.pc {
    display: none;
  }

  .komeiseki-img-wrap.sp {
    display: block;
    text-align: center;
    margin-bottom: 30px;
  }

  .komeiseki-img {
    margin: 0 auto;
  }

  .komeiseki-wrap::after {
    content: '';
    top: auto;
    bottom: -80px;
    z-index: -1;
    left: 0;
    width: 361px;
    height: 357px;
    position: absolute;
    background-size: contain;
  }
}

@media (max-width: 768px) {

  .komeiseki-area h4 {
    font-size: 26px;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--main-color);
    letter-spacing: 0.014em;
  }

  .komeiseki-area {
    padding: 80px 0 40px;
  }
}

@media (max-width: 480px) {
  .komeiseki-area .text {
    font-size: 14px;
    letter-spacing: 0.014em;
    line-height: 1.8;
    font-feature-settings: "palt";
  }

  .komeiseki-area h4 {
    font-size: 22px;
    margin-bottom: 40px;
    font-weight: 500;
    color: var(--main-color);
    letter-spacing: 0.014em;
  }

  .komeiseki-wrap::after {
    content: '';
    top: auto;
    bottom: -80px;
    z-index: -1;
    left: 0;
    width: 280px;
    height: 280px;
    position: absolute;
    background-size: contain;
  }

}