@charset "utf-8";

body {
  height: 100%;
  font-family: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "メイリオ", sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  font-optical-sizing: auto;
  font-style: normal;
  background-color: #fff;
}

.wrapper {
  width: 100%;
  margin: 0 auto;
  color: #fff;
  background-color: #fff;
}

.content-btn {
  position: relative;
}

.content-btn .set-btn {
  width: 100%;
  position: absolute;
  left: 50%;
  /* bottom: clamp(80px, 10vw, 160px); */
  bottom: 10%;
  transform: translateX(-50%);
  /* width: clamp(200px, 50%, 480px); */
  text-align: center;
  z-index: 1000;
}

.content-btn .set-btn h2.img08-title {
  display: block;
  width: auto;
  max-width: 500px;
  margin: 0 auto;
  padding: 0px 0 1.6vw;
}


.content-btn .set-btn p.img08-content {
  width: 50%;
  max-width: 990px;
  margin: 0 auto;
}

.content-btn .set-btn p.img08-btn {
  display: block;
  width: auto;
  max-width: 300px;
  margin: 0 auto;
  padding: 30px 0 0px;
}

.content-btn .set-btn p.img08-btn a {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}


footer {
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  background-color: #C84A55;
}

footer p {
  width: 100%;
  max-width: 180px;
}


/****************************************************/
/* gallery                                          */
/****************************************************/
.gallery {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.gallery-main-wrap {
  position: relative;
  z-index: 0;
  width: 47%;       /* もともと .gallery-main に書いていた幅 */
}

/* 左：大画像 */
.gallery-main {
  /* width: 47%; */
  width: 100%;
}

.gallery-main-overlay {
  position: absolute;
  /* bottom: -10%; */
  bottom: 0%;
  /* left: 50%; */
  left: 62%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 9999;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
}

/* .gallery-main-overlay p img {
  width: 100%;
} */

/* 1行目（最初の p） */
.gallery-main-overlay p:nth-child(1) {
  width: 30vw;
  max-width: 580px;
  margin: 0 auto;
}

/* 2行目（次の p） */
.gallery-main-overlay p:nth-child(2) {
  width: 15vw;
  max-width: 280px;
}

/* 右：サムネ + ボタン */
.gallery-right {
  width: 50%;
  margin-top: calc(100% - 97%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* サムネイル */
.gallery-thumbs {
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;

}

/* サムネイル画像 */
.gallery-thumbs img {
  width: 100%;
  height: 35vw;
  /* height: 100%; */
  object-fit: cover;
  /* height: 560px;
  object-fit: cover;
  width: 100%; */
}

/* アクションエリア */
.gallery-actions {
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 40px;

}

.code-area {
  flex: 1;
}

.code-side-image {
  padding: 20px;
}

.code-side-image img {
  width: auto;
  height: auto;
  max-height: 22vw;
  display: block;
}

.slide-label1 {
  max-width: 260px;
  margin-bottom: 3vw;
}

.slide-label2 {
  max-width: 640px;
  margin-top: 3vw;
}

.slide-text {
  width: 25vw;
  max-width: 410px;
}

.slide-btn {
  width: 100%;
  max-width: 150px;
}

.gallery-thumbs .slick-slide {
  margin-right: 24px;
}

.gallery-thumbs .slick-list {
  margin-right: -24px;
}

.gallery-main {
  position: relative;  /* ← ここが重要 */
}

.prf {
  display: flex;
  justify-content: center;
  align-items: center;
}

.prf-0 {
  width: 5%;
  margin-top: auto;
}

.prf-0 p img {
  width: auto;
  height: 70vh;
  max-height: 700px;
  margin-bottom: auto;
  padding-left: 20px;
  padding-bottom: 20px;
}

.prf-1 {
  width: 55%;
  margin: 0 auto;
  display: flex;
  justify-content: start;
  align-items: flex-start;
  flex-direction: column;
  padding: 2vw 0;
  padding-left: 8vw;
  gap: 1vw;
}
.prf-1 p {
  width: auto;
  max-width: 500px;
}

.prf-1 p:nth-child(1)  {
  width: 25vw;
  max-width: 250px;
}

.prf-1 p:nth-child(2)  {
  width: 25vw;
  max-width: 500px;
}

.prf-1 p:nth-child(3)  {
  width: 25vw;
  max-width: 500px;
}

.prf-1 p:nth-child(4)  {
  width: 35vw;
  max-width: 700px;
}

.prf-2 {
  width: 40%;
}

/****************************************************/
/*  入力フォーム                                       */
/****************************************************/
.code-area {
  margin-top: 20px;
}

.code-inputs {
  display: flex;
  gap: 8px;
  /* 四角の間隔 */
  margin-bottom: 24px;
  /* ボタンとの距離 */
}

.code-input {
  width: 40px !important;
  height: 40px;
  border: 1px solid #d8d8d8 !important;
  border-radius: 2px !important;
  text-align: center;
  font-size: 18px !important;
  outline: none;
  padding: 0 !important;
}

.code-input:focus {
  border-color: #c84a55;
  box-shadow: 0 0 0 2px rgba(200, 74, 85, 0.15);
}

/* もっとみるボタン（画像のイメージ寄せ） */
.btn-more {
  display: block;
  width: 150px;
  padding: 0;
  background: unset;
  border: none;
}

.btn-more:hover {
  opacity: 0.9;
}

.back-btn1 {
  display: block;
}

.back-btn2 {
  display: none;
}


@media (max-width: 1200px) {
  .content-btn .set-btn {
    bottom: clamp(40px, 6vw, 160px);
  }

  /* サムネイル画像 */
  .gallery-thumbs img {
    width: 100%;
    height: 20vw;
  }

  .btn-more {
    width: 130px;
  }

}

@media (max-width: 860px) {

  /* .slide-label1 {
    max-width: 230px;
    margin-bottom: 2.5vw;
  }

  .slide-label2 {
    max-width: 230px;
    margin-bottom: 2.5vw;
  } */

  .content-btn .set-btn {
    bottom: 10%;
  }

  .content-btn .set-btn p.img08-content {
    width: 90%;
  }

  .content-btn .set-btn h2.img08-title {
    padding: 0px 0 40px;
  }

  .content-btn .set-btn p.img08-btn {
    max-width: 200px;
  }

  .gallery {
    flex-direction: column;
    gap: 0;
  }

  .gallery-main-wrap {
    width: 100%;
  }

  .gallery-main-overlay {
    width: 100%;
    top: 50%;
    bottom: 0;
    left: 50%;
  }

  .back-btn1 {
    display: none;
  }

  .back-btn2 {
    display: block;
    width: 100%;
    max-width: 300px;
  }

  .gallery-main-overlay p:nth-child(1) {
    width: 90%;
    max-width: unset;
  }

  .gallery-thumbs img {
    height: 100%;
  }

  .gallery-right {
    width: 100%;
    padding: 0 0 0 20px;
    margin-top: calc(100% - 80%);
  }

  .slide-label1 {
    margin-bottom: 15vw;
  }


  .slide-label2 {
    width: 100%;
    max-width: 310px;
    margin-top: 15vw;
    margin-bottom: 15vw;
  }
  .gallery-actions {
    position: relative;
  }

  .code-side-image{
    position: absolute;
    margin-top: calc(100% - 65%);
    /* padding: 0 20px 100px; */
    padding: 0;
    top: 0;
    right: 2vw;
  }

  .code-side-image img{
    height: 100vw;
    max-height: unset;
  }

  .gallery-actions {
    gap: 0;
    margin-bottom: 120px;
  }

  .slide-text {
    width: 100%;
    max-width: 330px;
  }

  .prf.pc {
    display: none;
  }
  .prf.sp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10vw;
  }

  .prf.sp .prf-1-sp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10vw;
  }

  .prf.sp .prf-1-sp p:nth-child(2),
  .prf.sp .prf-1-sp p:nth-child(4) {
    width: 85%;
  }

  .prf.sp .prf-1-sp p:nth-child(5) {
    width: 90%;
    padding: 20vw 0;
  }

}

@media (max-width: 430px) {


  .content-btn .set-btn h2.img08-title {
    max-width: 300px;
  }

  .content-btn .set-btn p.img08-btn {
    max-width: 200px;
  }

  .content-btn .set-btn {
    /* padding: 0 10px; */
  }

}

/* エラーポップアップの基本スタイル */
.mrg-error-popup {
  position: fixed;
  text-align: center;
  left: 50%;
  bottom: -80px; /* 画面外からスタート */
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition:
      bottom 0.3s ease-out,
      opacity 0.3s ease-out;
}

/* 表示中の状態（下から上にふわっと出る） */
.mrg-error-popup.is-visible {
  bottom: 40px;  /* 画面下から少し上に */
  opacity: 1;
}

/* 6桁コード入力UIの調整（必要に応じて） */
.code-inputs {
  /* display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0; */
}

.code-input {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

@media (max-width: 430px) {
  .mrg-error-popup {
    width: 80%;
  }
}
