@charset "utf-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.5;
}

img {
  display: block;
  width: 100%;
  height: auto;
  /*vertical-align: bottom;*/
  border: none;
}
.m-t{
  margin-top: 8%;
}
.m-th{
  margin-top: 4%;
}
.p-b{
  padding-bottom: 8%;
}
.lp-wrapper {
  /*
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
  */
  width: calc(100vw * 0.56); /* メインの画面幅を指定 */
  padding-left: 24px;
}

.cta-box,
.gif-stack,
.video-stack{
  padding-right: 24px;
}

.m-space{
  margin:40px auto;
  height: 400px;
}

#avatar-area{
  padding-bottom: 0;
}
.gif-wrap.bg-c{
  background:#faf6f1;
}
.gif-wrap.bg-wa{
  background: url("../img/haikei-nomi.png") no-repeat;
  background-size: cover;
}
.gif-wrap.bg-gara{
  background: url("../img/bg-gara.png") no-repeat;
  background-size: cover;
}
.gif-wrap.bg-wa3.bg-c{
  padding: 2.4% 0;
}
.gif-wrap.bg-c.tomato-gif .overlay-gif.tomato-2gif{
  margin-top: 2%;
}
.midashi-2{
  width: 82%;
  margin: 0 auto;
}
.gif-wrap.bg-cabocha{
  /*
  position: relative;
  */
  background: url("../img/16_1212_bottom_bg.png") repeat;
  padding: 8% 0;
}
.kabocya-midashi{
  /*
  position: absolute;
  width: 82%;
  left:50%;
  bottom: 79%;
  transform: translateX(-50%);
  */
  width: 82%;
  margin: 4% auto 1.6% auto;
}
.gif-wrap.bg-cabocha  .overlay-gif{
  /*
  position: absolute;
  width: 94%;
  top:inherit;
  bottom:1.6%;
  left:50%;
  transform: translateX(-50%);
  */
  width: 94%;
}
.gif-wrap.bg-toriniku{
  position: absolute;
  bottom: 5.6%;
  width: 82%;
  left: 50%;
  transform: translateX(-50%);
}
.gif-wrap.bg-toriniku p{
  margin-top:12px;
  text-align: center;
}
.gif-wrap .overlay-gif:not(:first-of-type){
  margin-top:4%;
}
.gif-wrap .overlay-gif{
  position: static;
  transform: none;
  width: 82%;
  margin: 0 auto;
}
.gif-wrap .overlay-gif.kabocya-gif{
  width: 82%;
  margin: 4% auto 0 auto;
}
.gif-wrap .overlay-gif.kabocya-gif.kabocya-betu{
  margin-bottom:4%;
 }
.gif-wrap .overlay-gif.pan-gif{
  margin-top: 2%;
}
.mideshi-c{
  width: 82%;
  margin: 8% auto 0 auto;
}
.mideshi-c + .mideshi-c{
  margin-top:4%;
} 
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.image-stack {
  position: relative;
}

.overlay-knife {
  position: absolute;
  top: 4%;
  left: 3%;
  width: 28.27%;
  height: auto;
  transform: translate(-50%, 100px);
  animation: fadeUp 1s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  pointer-events: none;
}

.cta-box {
  position: relative;
  /*
  max-width: 750px;
  margin: 0 auto;
  */
  width: calc(100vw * 0.56); /* メインの画面幅を指定 */
}

.cta-bg {
  width: 100%;
  height: auto;
  display: block;
}

.cta-buttons {
  position: absolute;
  bottom: 13%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}
.cta-buttons a img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

.shine-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.shine-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 3.0s linear infinite;
  pointer-events: none;
}

.shine-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  opacity: 0;
}

.shine-btn:hover::after {
  animation: shineOnce 3.0s ease;
  opacity: 1;
}


@keyframes shine {
  0% {
    left: -75%;
    opacity: 0;
  }
  10% {
    left: -75%;
    opacity: 1;
  }
  30% {
    left: 125%;
    opacity: 1;
  }
  31% {
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}
@keyframes shineOnce {
  0% {
    left: -75%;
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  30% {
    left: 125%;
    opacity: 1;
  }
  31% {
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

.video-stack {
  position: relative;
  /*
  max-width: 750px;
  margin: 0 auto;
  */
  width: calc(100vw * 0.56); /* メインの画面幅を指定 */
}

.bg-image {
  width: 100%;
  height: auto;
  display: block;
}

.overlay-video {
  position: absolute;
  top: 28%;
  left: 50%;
  width: 65%;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
  pointer-events: none;
}
.gif-stack {
  position: relative;
  /*
  max-width: 750px;
  margin: 0 auto;
  */
  width: calc(100vw * 0.64);
}

.overlay-gif {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 94%;
  transform: translateX(-50%);
  pointer-events: none;
}
.gif-kabocha {
  top: 5%;
  width: 94%;
}

.cta-box.last-cta .daikon-gif{
  width: calc(100% - 24px);
  position: absolute;
  top:44.6%;
}
.cta-box.last-cta .cta-buttons{
  bottom: 8%;
}


.site-footer {
  background-color: #8b6b36;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 25px;
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 10px;
}

.site-footer .footer-links li {
  padding: 0 8px;
  font-size: 25px;
}

.site-footer .footer-links li:nth-child(n+2) {
  margin-left: 11px;
  padding-left: 11px;
  border-left: 1px solid #ffffff;
}

.site-footer .footer-links a {
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  text-decoration: underline;
}

.site-footer .footer-copy {
  font-size: 25px;
}


@media screen and (max-width: 768px) {
  .site-footer .footer-links li {
	padding: 0;
  }
  .site-footer .footer-links li:nth-child(n+2) {
	margin-left: 1.47vw;
	padding-left: 1.47vw;
  }
  .site-footer {
    padding-bottom: 4.00vw;
    font-size: 3.33vw;
  }

  .site-footer .footer-copy {
    font-size: 3.33vw;
  }

  .site-footer .footer-links li {
    font-size: 3.33vw;
  }
}

#fixed-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  background-color: rgba(255, 255, 255, 0.5);
}

#fixed-banner.active {
  opacity: 1;
  visibility: visible;
}

.button-section {
  padding: 1% 0 0;
  max-width: 750px;
  margin: 0 auto;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 1vw;
  padding: 0;
}

.button-wrapper a {
  flex: 1 1 auto;
  max-width: calc((100% - 2vw - 1vw * 2) / 3); /* 余白を含めた3分割 */
}

.button-wrapper a img {
  width: 100%;
  height: auto;
  display: block;
}

.coupon-box {
  width: 98%;
  display: flex;
  align-items: center;
  font-family: sans-serif;
  max-width: fit-content;
  gap: 0;
}

.coupon-text {
  color: #555;
  border: 2px solid #f7a91b;
  border-radius: 30px;
  padding: 10px 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: clamp(0.8em, 1.5em, 22px);

}

.coupon-code {
  font-weight: bold;
}

.copy-button {
  background-color: #f7a91b;
  color: white;
  border-radius: 30px;
  padding: 6px 8px;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  border: 2px solid #f7a91b;
  cursor: pointer;
  white-space: nowrap;
}

.coupon-note {
    color: #555;
    margin: 0.2em 0 0 0;
    font-size: 1.1em;
    padding: 0;
    line-height: 0;
}
@media screen and (max-width: 768px) {
	.bottom9 {
	    bottom: 9%;
	}
	.coupon-text {
	  padding: 10px 2px;
	  font-size: clamp(0.8em, 1.5em, 12px);

	}

	.copy-button {
	  font-size: clamp(0.8em, 1.5em, 12px);
	}

	.coupon-note {
	    font-size: 1.0em;
	}
}

/* ---- Subtitle UI ---- */
#subtitle-area{
  position: fixed; right:50%; left:auto; transform: translateX(50%);/* 初期位置：画面下中央 */
  bottom: 20px; z-index: 100001;
  max-width: 1600px; width: 90%;
  /* min-height: 120px; */
  background: rgba(0, 0, 0, 0.8); color:#fff;
  padding: 18px 22px; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  display: flex;               /* 常時クリックできるように */
  flex-direction: column; gap: 12px;
  cursor: pointer;             /* クリックできる見た目 */  
  transition:  right .11s ease, bottom .11s ease,
              transform .11s ease, opacity .11s ease, visibility .11s ease;
  transform-origin: bottom right; /* 収縮時の基準点 */
}

#subtitle-area.collapsed{
  left: auto !important;
  right: 0px !important;     
  bottom: 0px !important; 
  transform: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#subtitle-area.active{ display:flex; flex-direction:column; gap:12px; }
/* 字幕をOFFにしたときに本当に消えるようにする */

#subtitle-text{ text-align:center; font-size:42px; line-height:1.7; }

#subtitle-controls{ display:flex; justify-content:center; gap:8px; }
#subtitle-controls button{
  padding: 8px 18px; border:0; border-radius:6px; cursor:pointer;
  background:#d4af37; color:#fff; font-size:14px;
}
#subtitle-controls button.pause{ background:#e74c3c; }

#start-wrap{
  position: fixed; left:50%; transform: translateX(-50%);
  bottom: 20px; z-index: 100001;
}
#start-wrap button{
  padding: 12px 28px; border:0; border-radius:999px; cursor:pointer;
  background:#d4af37; color:#fff; font-size:16px;
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* バナー表示中のみ、バナーの高さ分だけ押し上げる */
#subtitle-area.with-banner,
#start-wrap.with-banner{
  bottom: calc(var(--banner-h, 0px) + 20px);
}

/* 到達目印。固定ヘッダーがあればここを調整 */
.cue{ display:block; height:0px; scroll-margin-top:110px; }

/* 字幕高さに依存させず、常に一定の高さに固定  */
#bl-controls{
  position: fixed;
  right: auto;
  left: 16px;
  bottom: 200px;  /* 初期値：字幕の上に */
  z-index: 1001;  /* 字幕より前面に */
  display: grid;
  grid-template-columns: repeat(2, auto);  /* 字幕列 / 音声列 */
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
}

/* ラベルとボタン */
.ctrl-label{ font-weight: 700; text-align: center; line-height: 1.1; }
.ctrl-btn{
  appearance: none;
  border: 1px solid #c9c9c9;
  background: #eee;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1.2;
  cursor: pointer;
}

