@charset "UTF-8";
/* CSS Document */

/* ========================= [ base ] */

body,
div,
button {
  margin: 0 auto;
  padding: 0;
  
  }



dl,
dt,
dd,
ul,
ol,
li,
h1,
h2,
h3,
h4,
h5,
h6,
pre,
code,
form,
fieldset,
legend,
input,
textarea,
p,
blockquote,
th,
td {
margin: 0 auto;
padding: 0;
overflow-x: hidden;

}

ul,
ol,
dl {
list-style: none;
}

img {
vertical-align: bottom;
}

body {
text-align: center;
font-family: 'Zen Kurenaido', sans-serif;
-webkit-text-size-adjust:100%;
background:#ffffff;
font-weight: bold;
}

a {
text-decoration: none;
}

a:hover {
text-decoration: underline;
}

a:visited {
color: #909;
text-decoration: none;
}

a:link,
.d-txtlink {
color: #005fc0;
text-decoration: none;
cursor: pointer;
}
header, footer {
  background: #333;
  color: #fff;
  padding: 10px;
}



button{
        background-color: transparent;
        border: none;
        cursor: pointer;
        outline: none;
        padding: 0;
        appearance: none;
}


.invisible-sp {
display: none;
}


	

#input_box{
margin:0% auto 0% auto;
width: 100%;
background-image: url("../assets/praise_bg.webp");
background-repeat: no-repeat;
background-position: center;
background-size:cover;
background-color: #fff9e4;	
}


#input_box h2{
margin:0% auto 0% auto;
color: #FFFFFF;
text-align: center;
padding:3% 0% 5% 0%;
background-image: url("../assets/pattern.webp");
background-repeat: repeat;
background-color: #22a2b9;
}

#input_box .capt01{
width:98%;
height:auto;
}


#input_box .input-area {
  margin:0% auto 0% auto;
  width:100%;
  height:auto;
}
	
	
#input_box .input-area .chara_box{
margin:2% auto 0% auto;
width:100%;
height:auto;
position: relative;
}

#input_box .input-area .chara_box .pic01{
margin:0% auto 0% auto;
width:100%;
height:auto;
}


#input_box .input-area .praise_box{
margin:-10% 0% 0% 0%;
width:100%;
height:auto;
position: relative;
}
	
	
#input_box .input-area .praise_box .capt02{
margin:1px auto 0% auto;
width:95%;
height: auto;
}	
	
	
textarea {
  margin:3% auto 0% auto;
  padding:2%;     
  width:90%;       
  height:100px;    
  line-height: 1.4;  
  resize: vertical;  
  font-size:4.5vw;
  border:2px solid #8b7564;
}

/* placeholder のスタイルは疑似要素でカスタマイズ */
textarea::placeholder {
  line-height: 1.4;     
  vertical-align: top;  
  color: #aaa;          
  
}	
	
	
#input_box .input-area .praise_box .btn01{
margin:3% auto 5% auto;
width:95%;
height: auto;
animation: puni 1.5s ease-in-out infinite;
}

	
@keyframes puni {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1); }
  30% { transform: scale(0.95); }
  50% { transform: scale(1); }
  70% { transform: scale(0.98); }
  90% { transform: scale(1); }
}


#input_box .banner{
margin:0% 0% 10% 0%;
width:95%;
}

.input-area {
  margin-bottom: 15px;
	
}

/* オーバーレイ (同じく, ふわっと表示) */
.overlay {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  padding-top: 20px; 
  padding-bottom: 20px;
  
  -webkit-overflow-scrolling: touch;
}
.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* モーダル本体 (16:9固定、320x180) */
.popup-content {
  width: 95vw;             /* ビューポート幅の80% */
  aspect-ratio: 1 / 1;     /* 幅と高さを同じにする（1:1） */
  max-width: 750px;        /* 上限サイズ */
  background: #ffffff;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.5s ease;
  overflow: hidden;
}

.overlay.active .popup-content {
  transform: translateY(0);
}

.hanamaru{
  top:60px;
  right:40px;
  width:120px;
  height: auto;
  position: absolute;
  animation: yurayura 1s infinite ease-in-out alternate;
  transform-origin: center bottom;
}

@keyframes yurayura {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}


.character-img {
  bottom:0px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  position: absolute;
}


.date-text {
  left:3.2%;
  bottom:0px;
  font-size: 2.3vw;
  color: #333;
  margin-bottom:18.5%;
  position: absolute;
   font-family: 'Zen Kurenaido';
}

.praise-text {
  font-size: 3vw;
  padding:2px 2px 0px 2px;
  bottom:7px;
  left:3.2%;
  width:92%;
  height:14vw;
  background:rgba(255,249,228,0.8);
  position: absolute;
  border:2px solid #8b7564;
  color:#6d5543;
  font-family: 'Zen Kurenaido';
}

.voice-btn{
  position: absolute;
  top:55px;
  left:15px;
}

.voice-btn .btn_voice{
width:96px;
height: auto;
}



#saveImageButton{
  top: 20px;
  left: 15px;
  position: absolute;
  }

  #saveImageButton .btn_save{
  width:95px;
  height: auto;
  }

  #shareButton .btn_share{
    bottom:23%;
    right: 5%;
    width:30px;
    height:30px;
    position: absolute;

    }


.buttons {
  margin-top: 10px;
}



#closeButton .close-btn {
  top: 5px;
  right: 5px;
  width:25px;
  height: auto;
  position: absolute;
  
}

.banner_btn{
  margin:5% auto 5% auto;
  width: 90%;
  max-width: 750px;
  height: auto;
}