/**
 * 相性診断 — compatibility.css
 */

.cp-page { min-height: 80vh; padding-bottom: 60px; }

/* ===== ヒーロー ===== */
.cp-hero {
	position: relative;
	padding: 60px 0 50px;
	text-align: center;
	overflow: hidden;
}
.cp-hero__bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #fdf0f6, #f3ecfb, #e8daf5);
	z-index: -1;
}
.cp-hero__label {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: #d65c9a;
	margin-bottom: 10px;
}
.cp-hero__title {
	font-size: 1.9rem;
	font-weight: 900;
	background: linear-gradient(135deg, #d65c9a, #6b3fa0);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: 12px;
}
.cp-hero__desc {
	font-size: 0.9rem;
	color: #4a3560;
	line-height: 1.7;
}

/* ===== 入力フォーム ===== */
.cp-form {
	background: rgba(255,255,255,0.9);
	border-radius: 20px;
	padding: 28px 20px;
	margin: 20px 0 32px;
	box-shadow: 0 6px 20px rgba(214,92,154,0.1);
}
.cp-form__row {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: stretch;
	margin-bottom: 24px;
}
.cp-form__box {
	flex: 1;
	background: linear-gradient(135deg, #fff, #faf6fe);
	border-radius: 16px;
	padding: 18px;
	border: 2px solid rgba(139,108,193,0.15);
}
.cp-form__box--me { border-left: 4px solid #8b6cc1; }
.cp-form__box--you { border-left: 4px solid #d65c9a; }
.cp-form__label {
	font-size: 0.9rem;
	font-weight: 800;
	color: #4a3560;
	margin-bottom: 12px;
}
.cp-form__select {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid rgba(139,108,193,0.2);
	border-radius: 10px;
	background: #fff;
	font-size: 0.85rem;
	color: #2d2055;
	font-family: inherit;
	cursor: pointer;
	margin-bottom: 10px;
}
.cp-form__select:last-child { margin-bottom: 0; }
.cp-form__select:focus { outline: none; border-color: #8b6cc1; }
.cp-form__heart {
	font-size: 2.2rem;
	text-align: center;
	padding: 10px 0;
}
.cp-form__submit {
	display: block;
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #d65c9a, #6b3fa0);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 900;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(214,92,154,0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}
.cp-form__submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(214,92,154,0.4);
}
.cp-form__note {
	font-size: 0.78rem;
	color: #6b5f7d;
	text-align: center;
	margin-top: 16px;
}
.cp-form__note a {
	color: #8b6cc1;
	font-weight: 700;
	text-decoration: underline;
}

/* ===== 結果表示 ===== */
.cp-result__inner {
	animation: fadeInUp 0.5s ease-out;
}
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

/* スコアカード */
.cp-result__scorecard {
	border-radius: 24px;
	padding: 30px 24px;
	text-align: center;
	color: #fff;
	margin-bottom: 24px;
	box-shadow: 0 10px 30px rgba(139,108,193,0.2);
}
.cp-result__rank {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-bottom: 20px;
}
.cp-result__rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255,255,255,0.25);
	backdrop-filter: blur(10px);
	font-size: 2rem;
	font-weight: 900;
	font-family: "Poppins", sans-serif;
}
.cp-result__rank-label {
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	margin: 0;
}
.cp-result__score {
	font-size: 0.9rem;
	margin-bottom: 16px;
}
.cp-result__score span {
	font-size: 4.5rem;
	font-weight: 900;
	font-family: "Poppins", sans-serif;
	line-height: 1;
}
.cp-result__score small {
	font-size: 1.2rem;
	opacity: 0.7;
	margin-left: 4px;
}
.cp-result__rank-desc {
	font-size: 0.9rem;
	line-height: 1.7;
	margin: 0;
	color: rgba(255,255,255,0.95);
}

/* ペアカード */
.cp-result__pair {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 28px;
}
.cp-result__pair-card {
	flex: 1;
	max-width: 200px;
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	text-align: center;
	box-shadow: 0 4px 14px rgba(139,108,193,0.12);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.cp-result__pair-card img {
	width: 100px;
	height: 100px;
	border-radius: 12px;
	object-fit: cover;
	margin-bottom: 8px;
}
.cp-result__pair-code {
	font-size: 0.88rem;
	font-weight: 800;
	color: #8b6cc1;
	font-family: "Poppins", sans-serif;
}
.cp-result__pair-name {
	font-size: 0.95rem;
	font-weight: 700;
	color: #2d2055;
}
.cp-result__pair-sub {
	font-size: 0.7rem;
	color: #a093b5;
	margin-top: 4px;
}
.cp-result__pair-heart {
	font-size: 2rem;
	flex-shrink: 0;
}

/* 分析理由 & 公式データ */
.cp-result__reasons,
.cp-result__official,
.cp-result__advice {
	background: rgba(255,255,255,0.9);
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 3px 12px rgba(139,108,193,0.08);
}
.cp-result__reasons h3,
.cp-result__official h3,
.cp-result__advice h3 {
	font-size: 1rem;
	font-weight: 800;
	color: #4a3560;
	margin: 0 0 14px;
}
.cp-result__reasons ul,
.cp-result__advice ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.cp-result__reasons li,
.cp-result__advice li {
	font-size: 0.88rem;
	line-height: 1.7;
	color: #374151;
	padding: 10px 0 10px 24px;
	position: relative;
	border-bottom: 1px solid rgba(139,108,193,0.08);
}
.cp-result__reasons li:last-child,
.cp-result__advice li:last-child { border-bottom: none; }
.cp-result__reasons li::before,
.cp-result__advice li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 10px;
	color: #8b6cc1;
	font-weight: 900;
}
.cp-result__official-item {
	background: linear-gradient(135deg, #f3ecfb, #fdf0f6);
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 10px;
}
.cp-result__official-item strong {
	display: block;
	font-size: 0.9rem;
	color: #4a3560;
	margin-bottom: 6px;
}
.cp-result__official-item p {
	font-size: 0.82rem;
	color: #6b5f7d;
	margin: 0;
	line-height: 1.6;
}

/* シェア */
.cp-result__share {
	text-align: center;
	padding: 24px;
	background: linear-gradient(135deg, #f3ecfb, #fdf0f6);
	border-radius: 16px;
}
.cp-result__share p {
	font-size: 0.88rem;
	font-weight: 700;
	color: #4a3560;
	margin-bottom: 12px;
}
.cp-result__share-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}
.cp-result__share-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	color: #fff !important;
	border: none;
	cursor: pointer;
	font-family: inherit;
}
.cp-result__share-btn--x { background: #000; }
.cp-result__share-btn--line { background: #06c755; }
.cp-result__share-btn--copy { background: #8b6cc1; }

/* PC */
@media (min-width: 768px) {
	.cp-hero__title { font-size: 2.6rem; }
	.cp-hero__desc { font-size: 1rem; }
	.cp-form__row {
		flex-direction: row;
		gap: 20px;
		align-items: center;
	}
	.cp-form__heart { font-size: 2.8rem; padding: 0 10px; }
}
