/* カード全体 */
.chatblc {
	display: flex;
	flex-direction: column;
	animation: fadeIn 0.5s ease-in;
	max-width: 900px;
	width: 100%;
	margin: 0 auto !important;
	background: #F54E56;
	border-radius: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.chat_form_common {
    padding: 0;
    margin: 2rem auto;
}

/* 女性と吹き出しエリア */
.chatmes.chat_form_text.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
	margin: 1rem 0 1.5rem 0;
	gap: 2rem;
	background: transparent;
}

/* 女性の画像 */
.chatblc figure {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    margin: 0;
}

.chatblc figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
	background: #fff;
}

.chatblc figure img:hover {
	transform: scale(1.05);
}
.done {
	display: none;
}
/* 選択済みボタン */
input.kibou:checked + label.btn {
	background: #2563eb !important;
	color: #fff !important;
	transform: scale(1.05);
	box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6) !important;
	border: 3px solid #1e40af !important;
	font-weight: 700 !important;
}

.article-content .pn .btn {
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.5) !important;
}
.article-content .pn .btn:hover {
	box-shadow: rgba(37, 99, 235, 0.5) 0px 4px 12px !important;
}

#pn7 input.submit.btn {
	border: 2px solid #10B981 !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #10B981 !important;
}

/* ボタン */
.chat_form_btn .btn, label.big.btn, a.big.btn, .chat_form_btn a.btn {
	padding: 0.75rem 1.5rem !important;
	margin: 0 0.5rem;
	border: 2px solid #2563eb !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #2563eb !important;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: none;
	max-width: 180px;
}

.chat_form_btn .btn:hover, #pn3 .chat_form_btn .btn:hover, #pn4 .chat_form_btn .btn:hover, #pn5 .chat_form_btn .btn:hover, #pn7 .chat_form_btn .btn:hover, .wpcf7-submit.has-spinner.btn:hover, .chat_form_common input.submit.btn:hover, #pn7 input.submit.btn:hover {
	background: #2563eb !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.chat_form_btn .btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* ボタンエリア */
.pn {
	padding: 2rem 0;
}
.chat_form_btn a {
	text-decoration: none;
	color: inherit;
}
.next_btn_step textarea {
    width: 100%;
    height: 120px;
    margin-bottom: 2rem;
	padding: 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
	resize: vertical;
}

.next_btn_step textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.next_btn_step input[type="text"], .next_btn_step input[type="email"], .next_btn_step input[type="tel"], .next_btn_step select {
	width: 50%;
	height: 50px;
	display: block;
	margin: 0 auto 1rem auto;
	padding: 0.75rem 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.3s ease;
}

.next_btn_step input[type="text"]:focus,
.next_btn_step input[type="email"]:focus,
.next_btn_step input[type="tel"]:focus,
.next_btn_step select:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.next_btn_step input[type="email"], .next_btn_step input[type="tel"] {
	margin-bottom: 3rem;
}
#pn2 span.chat_form_btn.flex {
    margin-top: 3rem;
}
span.chat_form_btn.flex {
	display: block;
	text-align: center;
}

/* 3つボタンがある場合は縦並びに */
span.chat_form_btn.flex_d {
	display: flex !important;
	flex-direction: column !important;
	align-items: center;
	gap: 1rem;
}

span.chat_form_btn.flex_d .btn {
	width: 300px !important;
	display: block !important;
	margin: 0 0 1rem 0 !important;
}
.pn.next_btn_step {
	width: 60%;
	margin-left: auto;
	margin-right: auto;
}
input.submit.btn, .wpcf7-submit.has-spinner.btn {
	border: 2px solid #2563eb !important;
	border-radius: 8px !important;
	background: #fff !important;
	color: #2563eb !important;
	margin-bottom: 3rem;
}
.candidate input[type="text"], .next_btn_step select {
    margin: 1rem 1.5rem 0 1.5rem;
}

/* 吹き出し */
.balloon2 {
	position: relative;
	background: #fff;
	padding: 0.8rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-height: 60px;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	font-size: 0.95rem;
	line-height: 1.6;
	color: #1f2937;
	font-weight: 500;
	animation: balloonAppear 0.4s ease-out;
}

@keyframes balloonAppear {
	from {
		opacity: 0;
		transform: scale(0.98);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* 吹き出しの矢印 */
.balloon2::before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	left: -10px;
	top: 50%;
	transform: translateY(-50%);
	border-right: 10px solid #fff;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	filter: drop-shadow(-2px 0px 2px rgba(0, 0, 0, 0.05));
}
.text_strong {
	font-weight: bold;
	font-size: 1.5rem;
	position: relative;
	display: inline;
	border-bottom: 5px dashed yellow;
}

@media screen and (max-width:1000px) {
	.chatblc {
		max-width: 95%;
		margin: 0 auto;
	}
}
@media screen and (max-width:870px) {
	.chatmes.chat_form_text.flex {
		width: 100%;
	}
	.chat_form_btn .btn, label.big.btn, a.big.btn {
		padding: 1.2rem 0 !important;
		margin: 0;
		display: block;
		width: 320px;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 1rem;
	}
	.pn.next_btn_step {
		width: initial;
	}
	.next_btn_step input[type="text"],
	.next_btn_step input[type="email"],
	.next_btn_step input[type="tel"],
	.next_btn_step select {
		width: 90%;
	}
	#pn4 label.big.btn {
		margin-bottom: 1rem;
	}

	/* 3つボタンがある場合は確実に縦並びに */
	span.chat_form_btn.flex_d .btn {
		margin-bottom: 1rem;
	}
}
@media screen and (max-width:600px) {
	.chatblc {
		padding: 1.5rem;
		border-radius: 12px;
	}
	.chatmes.chat_form_text.flex {
		flex-direction: column;
		padding: 1.5rem 1rem;
		gap: 2rem;
	}
	.chatblc figure {
		width: 100px;
		height: 100px;
	}
	.balloon2 {
		padding: 1rem 1.2rem;
		font-size: 0.95rem;
		min-height: 60px;
		margin-top: 1.5rem;
	}
	.balloon2::before {
		left: 50%;
		top: -8px;
		transform: translateX(-50%);
		border-right: 8px solid transparent;
		border-left: 8px solid transparent;
		border-bottom: 8px solid #fff;
		border-top: none;
		filter: drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.05));
	}
	.pn {
		padding: 1.5rem 0 0 0;
	}
	.chat_form_btn .btn, label.big.btn, a.big.btn {
		width: 280px !important;
		padding: 0.85rem 1.5rem !important;
	}
	.front_summary {
		width: 90%;
	}
	.pn label.big.btn, .pn a.big.btn, .article-content .pn .btn{
		min-width: 250px !important;
	}
}

.pn p.noteblack {
	color: #01294D;
}

.pn p.privacy-notice, .pn p.privacy-notice a {
	color: #fff !important;
}