/* 診断フォームコンテナ */
.diagnostic-form-container {
	width: 90%;
	max-width: 768px;
	margin: 0 auto;
	padding: 20px;
}

/* セクション */
.diagnostic-form-section {
	margin-bottom: 40px;
    padding: 0 20px 0px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* セクション見出し */
.diagnostic-form-header {
	position: relative;
	margin-bottom: 30px;
	text-align: center;
	padding: 0;
}

.diagnostic-form-header-line {
	position: relative;
	height: 4px;
	background: linear-gradient(to right,
		transparent 0%,
		transparent 10%,
		#4dd0e1 10%,
		#4dd0e1 45%,
		#4dd0e1 45%,
		#4dd0e1 55%,
		#4dd0e1 55%,
		#4dd0e1 90%,
		transparent 90%,
		transparent 100%
	);
}

.diagnostic-form-header-line::before,
.diagnostic-form-header-line::after {
	content: '';
	position: absolute;
	top: 0;
	width: 10%;
	height: 4px;
	background: repeating-linear-gradient(
		to right,
		#4dd0e1 0px,
		#4dd0e1 4px,
		transparent 4px,
		transparent 8px
	);
}

.diagnostic-form-header-line::before {
	left: 0;
}

.diagnostic-form-header-line::after {
	right: 0;
}

.diagnostic-form-header-banner {
	position: relative;
    display: inline-block;
    margin-top: 0px;
    background: #4dd0e1;
    color: #fff;
    padding: 5px 14px 7px;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 10% 100%);
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
    min-width: 60px;
}

.diagnostic-form-header-banner span {
	display: block;
	position: relative;
	z-index: 1;
}

/* セクションフッター */
.diagnostic-form-footer {
	position: relative;
	margin-top: 30px;
	text-align: center;
	padding: 0;
}

.diagnostic-form-footer-line {
	position: relative;
	height: 4px;
	background: linear-gradient(to right,
		transparent 0%,
		transparent 10%,
		#4dd0e1 10%,
		#4dd0e1 45%,
		#4dd0e1 45%,
		#4dd0e1 55%,
		#4dd0e1 55%,
		#4dd0e1 90%,
		transparent 90%,
		transparent 100%
	);
}

.diagnostic-form-footer-line::before,
.diagnostic-form-footer-line::after {
	content: '';
	position: absolute;
	top: 0;
	width: 10%;
	height: 4px;
	background: repeating-linear-gradient(
		to right,
		#4dd0e1 0px,
		#4dd0e1 4px,
		transparent 4px,
		transparent 8px
	);
}

.diagnostic-form-footer-line::before {
	left: 0;
}

.diagnostic-form-footer-line::after {
	right: 0;
}

/* 質問文 */
.diagnostic-form-question {
	margin-bottom: 20px;
	font-size: 18px;
	line-height: 1.6;
	text-align: center;
	word-wrap: break-word;
}

/* 画像 */
.diagnostic-form-image {
	margin-bottom: 20px;
	text-align: center;
}

.diagnostic-form-image img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

/* 回答選択肢 */
.diagnostic-form-answers {
	margin-top: 20px;
}

.diagnostic-form-answer-item {
	display: flex;
	align-items: center;
	column-gap: 10px;
	width: fit-content;
	line-height: 1;
	cursor: pointer;
}

.diagnostic-form-answer-item:not(:last-of-type) {
	margin-bottom: 16px;
}

.diagnostic-form-answer-item input[type="radio"],
.diagnostic-form-answer-item input[type="checkbox"] {
	appearance: none;
	position: relative;
	width: 25px;
	height: 25px;
	border: 2px solid #ff0095;
	border-radius: 5px;
	background-color: #ffffff;
	cursor: pointer;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
}

.diagnostic-form-answer-item input[type="radio"] {
	border-radius: 50%;
}

.diagnostic-form-answer-item input[type="radio"]:checked,
.diagnostic-form-answer-item input[type="checkbox"]:checked {
	background-color: #ff0095;
}

.diagnostic-form-answer-item input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 1px;
	width: 15px;
	height: 9px;
	border-bottom: 4px solid #ffffff;
	border-left: 4px solid #ffffff;
	transform: rotate(-45deg);
}

.diagnostic-form-answer-item input[type="radio"]:checked::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #ffffff;
}

.diagnostic-form-answer-item span {
	line-height: 1;
}

/* CTA */
.diagnostic-form-cta {
	margin-top: 40px;
	text-align: center;
}

.diagnostic-form-cta-text {
	margin-bottom: 20px;
	font-size: 18px;
	line-height: 1.6;
    color: #333;
}

/* 光るボタンのスタイル */
.shine-button {
	background: #0073aa;
	margin: 1.5em auto;
	text-align: center;
	display: block;
	width: 100%;
	max-width: 500px;
	border-radius: 100px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	border: none;
	padding: 1em;
	color: white;
	font-size: 16px;
	font-weight: bold;
	transition: background 0.3s ease;
}

.shine-button:hover {
	background: #005a87;
}

.shine-button::before {
	content: "";
	position: absolute;
	display: block;
	background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,0.9));
	width: 50px;
	height: 50px;
	top: -60px;
	left: -60px;
	animation-name: shine-run;
	animation-delay: 0s;
	animation-duration: 3s;
	animation-timing-function: ease-in;
	animation-iteration-count: infinite;
}

@keyframes shine-run {
	0% {
		transform: scale(0) rotate(50deg);
		opacity: 0;
	}
	40% {
		transform: scale(1) rotate(50deg);
		opacity: 1;
	}
	100% {
		transform: scale(250) rotate(50deg);
		opacity: 0;
	}
}

/* 紙吹雪アニメーション用 */
.confetti {
	position: fixed;
	width: 10px;
	height: 10px;
	background: #f00;
	top: -10px;
	z-index: 9999;
	border-radius: 50%;
	pointer-events: none;
}

.confetti:nth-child(1) { background: #f00; }
.confetti:nth-child(2) { background: #0f0; }
.confetti:nth-child(3) { background: #00f; }
.confetti:nth-child(4) { background: #ff0; }
.confetti:nth-child(5) { background: #f0f; }
.confetti:nth-child(6) { background: #0ff; }

/* スクロール用 */
html {
	scroll-behavior: smooth;
}

