/* 共通 */
/* モーダル表示時に背景を固定 */
.modal-open {
    overflow: hidden;       /* スクロールバーを消す */
    height: 100vh;          /* 高さを画面いっぱいに固定 */
}
.challenge-message-wrapper{	
	background: #fffafc; /* 薄いピンク背景 */
    padding: 20px;
    border-radius: 16px;
    max-width: 800px;
    margin: 20px auto;
}

.challenge-message-banner-wrapper {
    background: linear-gradient(135deg, #fff0f6, #ffeaf3);
    border: 2px solid #ffb6c1;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 30px auto;
    width: 100%;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2);
    box-sizing: border-box;
}
.comment-submit-btn-container{
	text-align: center;
}
.challenge-message-banner-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #ff4081;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.challenge-message-banner-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.pulse {
    animation: pulse 1.5s infinite;
    color: #ff69b4;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
/* 呼びかけバナー */
.comment-invite-wrapper {
    background: linear-gradient(135deg, #fff0f6, #ffeaf3);
    border: 2px solid #ffb6c1;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2);
}

.comment-invite-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* モーダル */
/* モーダル全体 */
.modal.hidden { 
	display: none; 
/* 	display: flex; */
}
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex; justify-content: center; align-items: center;
    z-index: 9990;
    padding: 10px;
}

.modal-content {
    background: #fff0f6;
    padding: 30px 25px;
    border-radius: 20px;
    max-width: 500px;
    height: 80vh; /* 画面の80% */
    width: 100%;
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.3);
    position: relative;
    font-family: 'Noto Sans JP', sans-serif;
    animation: popIn 0.3s ease-out;

    display: flex;
    flex-direction: column;
    overflow: hidden; /* 子要素のスクロール領域を限定 */
}

.modal-scroll {
    overflow-y: auto;
    flex: 1; /* 高さを残り全部に */
    padding-right: 0px; /* スクロールバーが重ならないように */
    margin-top: 20px;
}


/* 見出し */
.modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(255,105,180,0.5);
    text-align: center;
}

/* アニメーション */
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* 閉じるボタン */
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3rem;
    font-weight: bold;
    color: #ff69b4;
    cursor: pointer;
    transition: 0.2s;
}
.modal-close:hover { transform: scale(1.2); }

/* モーダル内文言 */
.modal-instruction {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* フォーム */
.modal-form label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
}
.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #ffb6c1;
    border-radius: 12px;
    outline: none;
    font-size: 1.1rem;
    box-sizing: border-box;
    transition: 0.2s;
}
.modal-form textarea {
	height: 150px;
}
.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255,105,180,0.3);
}

/* 送信ボタン */
.modal-submit-btn {
    margin-top: 15px;
    background-color: #ff69b4;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
.modal-submit-btn:hover {
    background-color: #ff85c1;
}
.comment-form-box {
    background: #fff0f6;
    border: 2px solid #ffb6c1;
    border-radius: 16px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2);
}

.comment-form-box label {
    display: block;
    font-weight: bold;
    margin: 0;
    margin-bottom: 5px;
    color: #333;
}

.comment-form-box input,
.comment-form-box select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ffb6c1;
    border-radius: 12px;
    outline: none;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.comment-form-box input:focus,
.comment-form-box select:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 5px rgba(255,105,180,0.3);
}

.form-flex {
    display: flex;
    gap: 15px;
}

.form-note {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* レポートカード全体 */
.message-card {
  background: #ffffff; /* 薄いクリーム色で便箋感 */
  border: 1px solid #f0e4c2; /* 薄い紙の縁 */
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.05);
  position: relative;
  font-family: "Yu Mincho", "serif";
  color: #4a3f2c; /* セピア寄り文字色 */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 23px,
    rgba(220, 200, 160, 0.2) 24px
  ); /* 罫線風 */
  background-size: 100% 24px;
}
.message-meta .nickname {
  color: #a64b2a; /* 朱色っぽく */
  font-weight: bold;
  font-size: 12px;
}

/* コメント本文 */
.message-comment {
  padding: 8px 12px;
  background: rgba(255,255,255,0.5); /* 罫線の上でも文字が読みやすい */
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 1.4rem;
}

/* ボタン */
.message-button-container button {
/*   background: #ffffff; */
  border: 1px solid #d6c3a1;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  color: #5b4636;
  cursor: pointer;
  transition: all 0.2s ease;
}

.message-button-container button:hover {
  opacity: 0.7;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}
.message-comment.collapsible {
  max-height: 120px;   /* ここで高さ制限 */
  overflow: hidden;
}

.message-comment.expanded {
  max-height: none;    /* 展開後は制限解除 */
}
.toggle-btn {
  margin-top: 5px;
  background:-webkit-linear-gradient(#ffb0e9 0%, #ffd2f2 100%);
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
}

/* 呼びかけバナーは背景を少し変えて一体感を出す */
.comment-invite-wrapper.unified {
    background: linear-gradient(135deg, #ffe6f0, #fff0f6);
    border: 2px solid #ffb6c1;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-top: -10px; /* バナーとの距離を詰めて一体感 */
    box-shadow: 0 4px 10px rgba(255, 182, 193, 0.2);
}

.comment-invite-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

.comment-submit-btn {
    background-color: #ff69b4;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.comment-submit-btn:hover {
    background-color: #ff85c1;
    transform: scale(1.05);
}
#closeThanksModal {
    display: inline-block;
    padding: 8px 20px;
    background-color: #ff69b4;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

#closeThanksModal:hover {
    background-color: #ff3fa0;
    transform: translateY(-1px);
}
.campaign-link {
  text-align: center;
  margin: 20px 0;
}

.link-button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.link-button.main {
  background: #fe456e;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.link-button.main:hover {
/*   background: linear-gradient(90deg, #ff9bbd, #ff8ea1); */
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.modal-instruction-box {
    background: #fff8f8;        /* 優しいピンク背景 */
    border-left: 4px solid #ff4f79; /* アクセントカラーのライン */
    border-radius: 12px;
    padding: 16px 20px;
    margin: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: left;
}
.modal-instruction-greeting {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff4f79;
    margin-bottom: 12px;
}
.modal-instruction-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ff4f79;
    margin-bottom: 12px;
}

.modal-instruction-text {
    font-size: 1rem;
    line-height: 1.6;       /* 行間を広くして読みやすく */
    color: #5c5c5c;
}

.modal-instruction-text strong {
    color: #ff4f79;         /* 強調部分を目立たせる */
}
.message-button-container{
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.thanks-btn {
  background: #ffffff;
  color: #ff82c0;
  border: 1px solid #ff82c0;
  border-radius: 25px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(255, 130, 192, 0.3);
}

.thanks-btn:active {
  transform: scale(0.95);
  background: #ff82c0;
  color: white;
}

.thanks-btn i {
  animation: twinkle 1.5s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.thanks-btn.active {
  background: linear-gradient(135deg, #ff4fa2, #ff82c0);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 79, 162, 0.4);
  transform: scale(1.05);
}

.thanks-btn.active i {
  content: "✨"; /* アイコンを変える場合 */
  animation: pop 0.4s ease;
}
.report-title{
	font-size: 3rem;
	font-family: "Zen Maru Gothic", sans-serif;
	font-weight: 600;
	font-style: normal;
	margin-bottom: 20px;
	letter-spacing: 0.2em; /* 文字の間隔を広げる */
	color:#ff4fb3;
	border-bottom: 1px solid #ff4fb3;
	text-align: center;
	padding: 5px 0;
}

/* 押した瞬間だけのキラキラアニメ */
@keyframes pop {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-btn i.pop-animation {
  animation: pop 0.4s ease forwards;
}
.code-name{
	font-size: 10px;
	margin-left: 10px;
	color: #818181;
	font-weight: bold;
}
/* スマホ用 */
@media (max-width: 600px) {
	.challenge-message-wrapper{	
		padding-top: 60px;
	}
	/* 閉じるボタン */
	.modal-close {
	    position: absolute;
	    top: 10px;
	    right: 15px;
	    font-size: 4rem;
	}
	.modal-instruction-box {
        padding: 12px 16px;
        border-radius: 10px;
    }
    .modal-instruction-title {
        font-size: 1.2rem;
    }
    .modal-instruction-text {
        font-size: 0.95rem;
    }
}