@charset "UTF-8";
*,*::before,*::after{box-sizing:border-box}html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role='list'],ol[role='list']{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4,button,input,label{line-height:1.1}h1,h2,h3,h4{text-wrap:balance}a:not([class]){text-decoration-skip-ink:auto;color:currentColor}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}textarea:not([rows]){min-height:10em}:target{scroll-margin-block:5ex}


html{
    overflow: auto;
}
body{
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Yu Gothic','ヒラギノ角ゴシック','Hiragino Sans', 
sans-serif;
    font-weight: bold;
    line-height: 2;
    color: #000;
    background-color: #fff;
    background-image: url("http://novel.test2223.com/wp-content/uploads/2025/11/Group-28-scaled.webp");
    background-size: cover;
}
img{
    width: 70%;
}
.start-img,.popup img{
  width: 90%;
}
#test{
  display: none;
}

#screen{
    position: relative;
    max-width: 420px;
    width: 100%;
    max-height: 700px;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    background-color: #000;
    overflow: hidden;
	border: 2px solid #000;
}


.left-in{
    transition: transform 3s;
    transform: translateX(250px) !important;
}
.right-in{
    transition: transform 3s;
    transform: translateX(-250px) !important;
}



.bottom-up{
    
    transform: translateY(500px) !important;
    
}



#overlay-button {
    position: absolute;
    right: 15px;
    top: 15px;
    padding: 23.5px 16px;
    z-index: 500;
    cursor: pointer;
    user-select: none;
    
    background-image: linear-gradient(125deg, rgba(255, 255, 255, 1) 50%, rgba(244, 244, 244, 1) 50%);
    
    border-radius: 50%;
    
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
  }
  #overlay-button span {
    height: 3px;
    width: 18px;
    border-radius: 2px;
    background-color: #593118;
    position: relative;
    display: block;
    transition: all .2s ease-in-out;
  }
  #overlay-button span:before {
    top: -8px;
    visibility: visible;
  }
  #overlay-button span:after {
    top: 8.5px;
  }
  #overlay-button span:before, #overlay-button span:after {
    height: 3px;
    width: 18px;
    border-radius: 2px;
    background-color: #593118;
    position: absolute;
    content: "";
    transition: all .2s ease-in-out;
  }
  #overlay-button:hover span, #overlay-button:hover span:before, #overlay-button:hover span:after {
    background: #593118;
  }
  
  input[type=checkbox] {
    display: none; 
    
  }
  
  input[type=checkbox]:checked ~ #overlay {
    visibility: visible; 
  }
  
  input[type=checkbox]:checked ~ #overlay-button:hover span, input[type=checkbox]:checked ~ #overlay-button span {
    background: transparent;
    
    
  }
  input[type=checkbox]:checked ~ #overlay-button span:before {
    transform: rotate(45deg) translate(6px, 6px);
  
  }
  input[type=checkbox]:checked ~ #overlay-button span:after {
    transform: rotate(-45deg) translate(6px, -6px);
  
  
  }
  
  #overlay {
    height: 100vh;
    max-height: 900px;
    width: 100%;
    background-image: url("http://novel.test2223.com/wp-content/uploads/2025/11/Group-1.webp");
    z-index: 200;
    visibility: hidden;
    position: absolute;
    background-size: cover;
  }
  #overlay.active {
  
  }
  #overlay ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    height: 100vh;
    max-height: 900px;
    padding-left: 0;
    list-style-type: none;
  }
  #overlay ul li {
    padding: 1em;
    width: 100%;
  }
  #overlay ul li a {
    
  }
  #overlay ul li a:hover {
    color: #000!important;
  }




#bgimg{
    position: absolute;
    width: 110%;
    z-index: 1;
    object-fit: cover;
    
}

.charabox{
  position: relative;
  height: -webkit-fill-available;
}

  .charaposition {
    
    position: absolute;
    
    width: 220px;
    height: 615px;
    bottom: -35px;
    text-align: center;
    
    z-index: 2;
}

.charaposition img{
    transition: transform 0.5s;
    margin: 0 auto;
}
.chara-none{
  opacity: 0.4;
  transform: scale(0.95 , 0.95);
  transition: transform 0.2s;
}

.chara-none1{
    opacity: 0.4;
    transform: scale(0.95 , 0.95);
    /*transform: translateX(-20px);
    transform: translateY(20px);*/
    transition: transform 0.2s;
}
.chara-none2{
    opacity: 0.4;
    transform: scale(0.95 , 0.95);
    /*transform: translateX(20px);
    transform: translateY(20px);*/
    transition: transform 0.2s;
}
.chara-none3{
    opacity: 0.4;
    transform: scale(0.95 , 0.95);
    /*transform: translateX(-20px);
    transform: translateY(20px);*/
    transition: transform 0.s;
}

#charaposition1{
    left: -30px;
    bottom: -50px;
    width: 70%;
}
#charaposition2{
  right: -30px;
  bottom: -50px;
	width: 70%;
}
#charaposition3{
    left: 0;
    right: 0;
    margin: auto;
    width: 270px;
    transition: transform 3s;
}
.itembox {
  position: absolute;
  width: 100px;
  top: -100px;
  
  
  right: 90px;
  text-align: center;
  z-index: 10;
}

.time{
  position: absolute;
  width: 100%;
  max-width: 420px;
  bottom: 0;
  background-color: white;
  height: 80px;
  z-index: 2;
}
.time-box{
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 0 auto;
  margin-top: 8px;
 
}
.time-box img{
  width: 64px;
  opacity: 0.3;
  animation-duration: 3s;
  animation-timing-function: ease;
  transition: 1s;
}
.time-box p{
  color: #593118;
}

#messbox{
    position: absolute;
    height: 45%;
    bottom: 24px;
    width: 92%;
    left: 0px;
    right: 0px;
    max-height: 320px;
    margin: auto;
    background-image: url("http://novel.test2223.com/wp-content/uploads/2025/11/Group-1.webp");
    z-index: 3;
    box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
    border: 4px solid transparent; /* 一旦透明に */
  border-image: linear-gradient(90deg, #2BCCCC 0%, #0681D3 100%) 1;
    background-size: cover;
}
.sound-change{
    display: none;
    background-color: #02ADF9;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    opacity: 0;
}
#textbox{
    position: relative;
    width: 90%;
    height: 90%;
    margin: -10px auto;
    margin-top: 20px;
    
}
.tap{
    position: absolute;
    color: #593118;
    bottom: 20px;
    right: 0;
    animation: rightLeft 1s ease-in-out;
    animation-iteration-count: infinite;
}
#text{
    color: #1E1E1E;
    font-size: 18px;
    line-height: 2;
    margin: 0;
}
#namebox{
    display: none;
}
#name{
    border-bottom: 1px solid #aaaaaa;
    padding-bottom: 8px;
    color: #1E1E1E;
    font-size: 20px;
    margin: 12px 0;
}
.next{
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    z-index: 10;
    display: none;
}

.selectBox{
    position: absolute;
    top: 0px;
	padding-top: 80px;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,.5);
    z-index: 10;
    display: none;
}

.timechange{
  opacity: 1 !important;
  animation-duration: 3s;
  animation-timing-function: ease;
}

.select {
    border: solid 4px #0681D3;
	border-radius: 50px;
    width: 350px;
    margin: 0 auto;
	margin-top: 30px;
	display: grid;
    background: #fff;
}
.select a{
    text-decoration: none; 
}
.selectText{
    margin: 15px auto;
    text-align: center;
    color: #0681D3;
    font-size: 14px;
	padding: 0 20px;
    line-height: 1.5;
}

@keyframes fadein{
  0%{
      opacity: 0;
  }100%{
      opacity: 1;
  }
}
@keyframes fadeout{
  0%{
      opacity: 1;
  }100%{
      opacity: 0;
  }
}
@keyframes fadeoutin{
  0%{
      opacity: 1;
  }50%{
      opacity: 0;
  }100%{
      opacity: 1;
  }
}

.fadein{
  animation-name: fadein;/*どのkeyframesを使うか*/
  animation-fill-mode: forwards;/*アニメーションの最後の値を保持するか*/
  animation-duration: .5s;/*アニメーション1回あたりの再生時間*/
  animation-timing-function: ease;/*アニメーションの再生方法*/
}
.fadeout{
  animation-name: fadeout;
  animation-fill-mode: forwards;
  animation-duration: .5s;
  animation-timing-function: ease;
}
.fadeoutin{
  animation-name: fadeoutin;
  animation-fill-mode: forwards;
  animation-duration: 3s;
  animation-timing-function: ease;
}

/*注意画面*/
.title-screen{
    background-color: rgb(255 243 215);
    height: 100vh;
    position: relative;
    position: absolute;
    max-width: 420px;
    width: 100%;
    max-height: 900px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 10;
    margin: auto;
    
    
}
.title-screen-box{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 900px;
    margin: auto;
    text-align: center;
    height: fit-content;
}
.title-screen-text{
    color: #4A1900;
    text-align: center;
    margin: 32px;
}
.title-screen-text-2{
    animation: tenmetsu 1s;
    animation-iteration-count: infinite;
}
.sankaku-img{
    width: 100px;
    margin: 0 auto;
}
.title-screen-button{
    padding: 20px;
    border-radius: 50px;
    background-color: orange;
    width: 70%;
    margin: 0 auto;
    margin-top: 40px;
    color: white;
}

/*タイトル画面*/
.logo-img{
    width: 95%;
    transition: transform 5s;
    transform: translateY(-400px);
    margin: 0 auto;
    opacity: 0;
}
.logo-img.logo-end{
    transform: translateY(0px);
    opacity: 1;
}


.start-img{
    transition: transform 0.1s;
    transform: scale(0 , 0);
}
.start-img.start-img-end{
    transform: scale(1 , 1);
}



.title-screen-2,.title-screen-3{
    background: url(https://template-banban.com/wp-content/themes/banban/img/title-back.webp) repeat-x;
    background-position: 0 0;
    -webkit-animation: bgroop 30s linear infinite;
    animation: bgroop 40s linear infinite;
    height: 100vh;
    position: relative;
    position: absolute;
    max-width: 420px;
    max-height: 900px;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 9;
    margin: auto;
    
    
}
@-webkit-keyframes bgroop {
    from {
        background-position: 0  0;
    }
    to {
        background-position: -2000px 0;
    }
}
@keyframes bgroop {
    from {
        background-position: 0 0;
    }
    to {
        background-position: -2000px 0;
    }
}

.title-screen-text-2{
    color: #fff;
    box-shadow: tomato;
    text-align: center;
    margin: 0 auto;
    margin-top: 32px;
}
#title-screen-3{
    z-index: 8;
}
.start-button{
    width: 80%;
    background-image: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
    color: #fff;
    margin: 0 auto;
    
    padding: 12px 0;
    border-radius: 50px;
    margin-top: 12px;
    border: 4px solid;
    font-size: 18px;
}

.sp-onegai{
  display: flex;
  width: 90%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}
.sp-onegai img{
  width: 18px;
  height: 28px;
  margin-right: 10px;
}
.sp-onegai p{
  font-weight: normal;
  font-size: 12px;
  margin: 0;
  color: #4A1900;
}
@media(max-width: 600px) {
  body{
    
    
    background-image: unset;
    
}
  .time,.title-screen,.title-screen-2,.title-screen-3{
    
    max-width: 600px;
    
    
    
}
#screen{
  max-width: 600px;
}
}
/*アニメーション*/
.left-lean{
  transform: rotate(-5deg);
}
.right-lean{
  transform: rotate(5deg);
}

.pyon {
	animation: pyon 0.4s linear 1;
}
@keyframes pyon {
	0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
  10%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
  30%  { transform: scale(1.2, 0.8) translate(0%, 15%); }
  50%  { transform: scale(1.0, 1.0) translate(0%, 0%); }
  60%  { transform: scale(0.9, 1.2) translate(0%, -80%); }
  75%  { transform: scale(0.9, 1.2) translate(0%, -20%); }
  85%  { transform: scale(1.2, 0.8) translate(0%, 15%); }
  100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}

.buruburu {
	animation: buruburu01 .1s  infinite;
}
@keyframes buruburu01 {
  0% {
    transform: translate(0, 2px) rotateZ(0deg);
  }
  25% {
    transform: translate(2px, 0) rotateZ(1deg);
  }
  50% {
    transform: translate(2px, 2px) rotateZ(0deg);
  }
  75% {
    transform: translate(2px, 0) rotateZ(-1deg);
  }
  100% {
    transform: translate(0, 0) rotateZ(0deg);
  }
}

.step {
	animation: step 1s ease-in-out infinite;
}
@keyframes step {
	0% {
		transform: translate(0, 0);
	}
	25% {
		transform: translate(-60px, -80px) rotate(-20deg);
	}
	50% {
		transform: translate(0, 0);
	}
	75% {
		transform: translate(60px, -80px) rotate(20deg);
	}
	100% {
		transform: translate(0, 0);
	}
}




/*ポップアップ*/
.popupbox{
  position: absolute;
  top: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,.5);
  z-index: 10;
  transition: transform 0.1s;
  transform: scale(0 , 0);
}
.popup{
  margin-top: 80px;
  text-align: center;
  display: none;
}
.popup img{
  margin: 0 auto;
}
.popupbox.popup-end{
  transform: scale(1 , 1);
}


#popup1,#popup2,#popup3,#popup4{
  display: none;
}

.start-img{
  transition: transform 0.1s;
  transform: scale(0 , 0);
  margin: 0 auto;
}
.start-img.start-img-end{
  transform: scale(1 , 1);
}



.popupbutton{
  width: 80%;
  background-image: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
  color: #fff;
  margin: 0 auto;
  margin-top: 20px;
  padding: 12px 0;
  border-radius: 50px;
  
  border: 4px solid;
  font-size: 18px;
  text-align: center;
}

.contactbutton{
  width: 80%;
  background-image: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
  color: #fff;
  margin: 0 auto;
  
  
  border-radius: 50px;
  
  border: 4px solid;
  font-size: 18px;
  text-align: center;
  display: block;
  text-decoration: none;
  padding: 12px 0;
}

.pop-box{
  background-image: url(https://template-banban.com/wp-content/themes/banban/img/popbox-back.webp);
  width: 90%;
  margin: 0 auto;
  border-radius: 7px;
  overflow: hidden;
  background-size: cover;
  box-shadow: 0px 5px 15px 0px rgba(0, 0, 0, 0.2);
}
.pop-head{
  background-image: url(https://template-banban.com/wp-content/themes/banban/img/pop-head.webp);
  padding: 12px;
}
.pop-head h2{
  color: #fff;
}
.pop-box p{
  font-size: 12px;
  font-weight: normal;
}
.pop-box h3{
  font-size: 14px;
  
}
.popbox-bottom{
  padding: 12px;
  text-align: left;
  color: #525252;
}
.lpkoukateki{
  margin: 0 auto;
  margin-top: 12px;
  margin-bottom: 12px;
}
.koukabox{
  margin-top: 16px;
}
.koukabox p{
  font-size: 12px;
}


/*マーク系*/
.markbox{
  position: relative;
}
.mark{
 position: absolute;
 top: -75px;
    left: 0;
    right: 0;
    margin: auto;
    transform: scale(0 , 0);
}
.hatena{
  width: 60px;
}
.bikkuri{
  width: 50px;
}
.open{
  transform: scale(1 , 1);
}

.messdesign{
  position: absolute;
    height: 40px;
    width: 100%;
    left: 0px;
    right: 0px;
    margin: auto;
    background-color: #525252;
    z-index: 4;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
}


.mokku-button{
  height: 14px;
  width: 14px;
  border-radius: 50px;
}

.mokku-box{
  display: flex;
  gap: 8px;
  margin-left: 12px;
}

.red{
  background-color: #FF6058;
}
.yellow{
  background-color: #FEBC2E;
}
.green{
  background-color: #27CD43;
}

.timeschedule{
  position: absolute;
    z-index: 10;
    width: 70%;
    top: 10px;
    right: 84px;
    
}

.timechange{
  opacity: 1 !important;
  transition: 1s;
}

.schedule-box{
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
}
.schedule-img{
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
  transition: 1s;
}
.schedule-dot{
  gap: 8px;
  display: flex;
  justify-content: center;
    margin-top: 50px;
    opacity: 0;
}
.dot{
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background-color: #FF6058;
  opacity: 0.3;
}


.show{
  display: block !important;
  z-index: 10;
}
.none{
display: none;
}

/* サンプルアニメーション */
@keyframes upDown {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(10px);
    }
  
    100% {
      transform: translateY(0px);
    }
  }
  @keyframes rightLeft {
    0% {
      transform: translateX(0px);
    }
    50% {
      transform: translateX(5px);
    }
  
    100% {
      transform: translateX(0px);
    }
  }
  .odoru{
    animation: odoru 1s ease-in-out;
    animation-iteration-count: infinite;
}
  @keyframes odoru {
    0% {
      transform: rotate(10deg);
    }
    50% {
      transform: rotate(-10deg);
    }
  
    100% {
      transform: rotate(10deg);
    }
  }
  @keyframes bound {
    0% {
      transform: scale(1 , 1);
    }
    50% {
      transform: scale(1.1 , 0.9);
    }
  
    100% {
      transform: scale(1 , 1);
    }
  }
  @keyframes tenmetsu {
    0% {
      opacity: 0;
    }
    
    100% {
        opacity: 1z;
    }
  }

 /* アーティファクト表示用CSS - 重ね合わせ版 */
.artifactbox {
  position: absolute; /* relative から absolute に変更 */
  top: 0; /* キャラクターボックスと同じ位置から開始 */
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* クリックイベントを通す */
  z-index: 3; /* キャラクターより上に表示（キャラクターのz-index: 2より大きく） */
}

.artifactposition {
  position: absolute;
  top: 75px; /* bottom指定からtop指定に変更 */
  text-align: center;
  pointer-events: none;
}

.artifactposition img {
  transition: transform 0.5s, opacity 0.5s;
  margin: 0 auto;
  object-fit: contain;
  max-height: 300px;
}

/* 位置指定 */
#artifactposition1 {
  left: 10px;
  max-width: 170px; /* 140px から 170px に変更 */
}

#artifactposition2 {
  right: 10px;
  max-width: 170px; /* 140px から 170px に変更 */
}

#artifactposition3 {
  left: 0;
  right: 0;
  margin: auto;
  max-width: 250px;
}

/* アーティファクトのフェード効果 */
.artifact-none {
  opacity: 0.6;
  transform: scale(0.95, 0.95);
  transition: transform 0.2s, opacity 0.2s;
}

.artifact-fadein {
  animation-name: fadein;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  animation-timing-function: ease;
}

.artifact-fadeout {
  animation-name: fadeout;
  animation-fill-mode: forwards;
  animation-duration: 0.5s;
  animation-timing-function: ease;
}



/* ★ style.css の既存シーンタイトル部分を以下に置き換え ★ */

/* シーンタイトルテロップのスタイル（改良版） */
#scene-title {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  opacity: 0;
  transform: translateX(-100px); /* 左から開始 */
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
  pointer-events: none;
}

#scene-title.show {
  opacity: 1;
  transform: translateX(0); /* 正常な位置に */
}

.scene-title-box {
  /* 黒いボタンスタイルを削除して、シンプルな白文字に */
  background: none; /* 背景なし */
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 0;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 白文字を見やすくする影 */
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  min-width: auto;
  text-align: left; /* 左寄せ */
}

/* 左右フェードアニメーション */
.scene-title-box.fade-in {
  animation: titleSlideInFromLeft 1.0s ease-out;
}

.scene-title-box.fade-out {
  animation: titleSlideOutToRight 0.8s ease-in;
}

@keyframes titleSlideInFromLeft {
  0% {
      opacity: 0;
      transform: translateX(-100px);
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes titleSlideOutToRight {
  0% {
      opacity: 1;
      transform: translateX(0);
  }
  100% {
      opacity: 0;
      transform: translateX(100px);
  }
}

/* スマホ対応 */
@media(max-width: 600px) {
  #scene-title {
      top: 15px;
      left: 15px;
  }
  
  .scene-title-box {
      font-size: 16px;
      padding: 6px 10px;
  }
}



/* ポップアップ拡張CSS - style.cssに追加 */

/* ポップアップコンテナの改良 */
.popup-container {
  position: relative;
  width: 90%; /* デフォルト幅、JavaScriptで動的に変更 */
  max-width: 500px;
  max-height: 500px; /* デフォルト最大高さ、JavaScriptで動的に変更 */
  margin: 60px auto 20px auto;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.3);
}

/* スクロール可能なコンテンツエリア */
.popup-content {
  max-height: inherit;
  overflow-y: auto;
  overflow-x: hidden;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* 画像ポップアップ用 */
.popup-image {
  width: 100%;
  height: auto;
  display: block;
}

/* HTMLポップアップ用 */
.popup-html {
  padding: 20px;
  line-height: 1.6;
}

/* ポップアップボタンエリア */
.popup-buttons {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* 既存のボタンスタイルを調整 */
.popupbutton, .contactbutton {
  min-width: 200px;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 480px) {
  .popup-container {
      width: 95%;
      margin: 40px auto 20px auto;
      max-height: 70vh;
  }
  
  .popup-html {
      padding: 15px;
  }
  
  .popup-buttons {
      bottom: 15px;
  }
  
  .popupbutton, .contactbutton {
      min-width: 180px;
      font-size: 16px;
  }
}

/* 高さが画面に収まらない場合の調整 */
@media (max-height: 600px) {
  .popup-container {
      max-height: 50vh;
      margin: 20px auto 10px auto;
  }
  
  .popup-buttons {
      bottom: 10px;
  }
}

/* フォーム要素のスタイリング（Contact Form 7対応） */
.popup-html .wpcf7-form {
  margin: 0;
}

.popup-html .wpcf7-form input[type="text"],
.popup-html .wpcf7-form input[type="email"],
.popup-html .wpcf7-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 10px;
}

.popup-html .wpcf7-form input[type="submit"] {
  background: linear-gradient(90deg, rgba(247, 208, 93, 1), rgba(254, 153, 64, 1));
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}

.popup-html .wpcf7-form input[type="submit"]:hover {
  opacity: 0.9;
}

/* ローディング状態のスタイル */
.popup-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.popup-loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-top: 2px solid #666;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* タップエフェクト */
.tap-effect {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  animation: tapRipple 0.6s ease-out;
  z-index: 9999;
}

@keyframes tapRipple {
  0% {
      width: 0;
      height: 0;
      opacity: 1;
  }
  100% {
      width: 100px;
      height: 100px;
      opacity: 0;
  }
}

/* 別バージョン：カラフルなエフェクト */
.tap-effect-color {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 204, 204, 0.6) 0%, rgba(6, 129, 211, 0.3) 50%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  animation: tapRipple 0.6s ease-out;
  z-index: 9999;
}

/* 別バージョン：リング状のエフェクト */
.tap-effect-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  pointer-events: none;
  animation: tapRing 0.5s ease-out;
  z-index: 9999;
  /* 初期状態で中央揃え */
  transform: translate(-50%, -50%) scale(0.5);
}

@keyframes tapRing {
  0% {
      width: 20px;
      height: 20px;
      opacity: 1;
      transform: translate(-50%, -50%) scale(0.5);
      
  }
  100% {
      width: 80px;
      height: 80px;
      opacity: 0;
      transform: translate(-50%, -50%) scale(1);
  }
}
