/* ============================================================
 * WP 診断ツール - フロント用 CSS
 * 3パターン + 結果ページ
 * ============================================================ */

.wpd-form,
.wpd-form *,
.wpd-form *::before,
.wpd-form *::after {
	box-sizing: border-box;
}

.wpd-form {
	max-width: 700px;
	margin: 32px auto;
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	color: #222;
	line-height: 1.6;
}

/* h2と被らないように、診断フォーム内のhタグは独自スタイルで完結 */
.wpd-form h2,
.wpd-form h3,
.wpd-form h4 {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
}

.wpd-hint {
	font-size: 0.8rem;
	color: #777;
	margin: 8px 0 0;
}

/* 共通：選択ボタン */
.wpd-opt {
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.15s ease;
	min-height: 42px;
}

.wpd-opt:focus-visible {
	outline: 2px solid #e60012;
	outline-offset: 2px;
}

/* ============================================================
 * スタイルA：ポップで目立つ
 * ============================================================ */
.wpd-style-a .wpd-a-hero {
	background: linear-gradient(135deg, #ff5566 0%, #e60012 100%);
	color: #fff;
	border-radius: 16px 16px 0 0;
	padding: 28px 24px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.wpd-style-a .wpd-a-hero::before {
	content: '';
	position: absolute;
	top: -30px;
	right: -30px;
	width: 140px;
	height: 140px;
	background: rgba(255,255,255,0.1);
	border-radius: 50%;
}

.wpd-style-a .wpd-a-hero::after {
	content: '';
	position: absolute;
	bottom: -40px;
	left: -20px;
	width: 100px;
	height: 100px;
	background: rgba(255,255,255,0.08);
	border-radius: 50%;
}

.wpd-style-a .wpd-a-badge {
	display: inline-block;
	background: rgba(255,255,255,0.2);
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 0.85rem;
	font-weight: 700;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
}

.wpd-style-a .wpd-a-title {
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 8px;
	color: #fff;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (max-width: 480px) {
	.wpd-style-a .wpd-a-title { font-size: 1.3rem; }
}

.wpd-style-a .wpd-a-lead {
	font-size: 0.95rem;
	margin: 0;
	opacity: 0.95;
	position: relative;
	z-index: 1;
	font-weight: 600;
}

.wpd-style-a .wpd-a-form {
	background: #fff;
	border: 3px solid #e60012;
	border-top: none;
	border-radius: 0 0 16px 16px;
	padding: 8px 24px 28px;
}

.wpd-style-a .wpd-a-question {
	margin: 20px 0;
	padding-bottom: 18px;
	border-bottom: 1px dashed #eee;
}

/* 未回答時のエラー表示 */
.wpd-question-error {
	background: #fef2f2;
	border-radius: 8px;
	padding: 12px 14px !important;
	margin-left: -14px !important;
	margin-right: -14px !important;
	box-shadow: 0 0 0 2px #fca5a5;
	transition: background 0.2s, box-shadow 0.2s;
}

.wpd-question-error-msg {
	margin: 10px 0 0;
	color: #b32d2e;
	font-size: 0.85rem;
	font-weight: 600;
}

.wpd-style-a .wpd-a-question:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.wpd-style-a .wpd-a-qhead {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.wpd-style-a .wpd-a-qnum {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #ff5566 0%, #e60012 100%);
	color: #fff;
	font-weight: 800;
	font-size: 1rem;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(230,0,18,0.3);
}

.wpd-style-a .wpd-a-qlabel {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #222;
}

.wpd-style-a .wpd-a-options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wpd-style-a .wpd-a-opt {
	background: #fff;
	border: 2px solid #e2e2e2;
	color: #222;
	padding: 10px 18px;
	border-radius: 999px;
}

.wpd-style-a .wpd-a-opt:hover {
	border-color: #e60012;
	background: #fff0f1;
}

.wpd-style-a .wpd-a-opt.is-selected {
	background: linear-gradient(135deg, #ff5566 0%, #e60012 100%);
	border-color: #e60012;
	color: #fff;
	box-shadow: 0 2px 6px rgba(230,0,18,0.3);
}

.wpd-style-a .wpd-a-submit-wrap {
	margin-top: 28px;
	text-align: center;
}

.wpd-style-a .wpd-a-submit {
	appearance: none;
	-webkit-appearance: none;
	background: linear-gradient(180deg, #ff5566 0%, #e60012 60%, #b8000e 100%);
	color: #fff;
	border: none;
	font-family: inherit;
	font-size: 1.2rem;
	font-weight: 800;
	padding: 16px 48px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 4px 0 #b8000e, 0 6px 14px rgba(230,0,18,.25);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: transform 0.1s, box-shadow 0.1s;
	letter-spacing: 0.05em;
}

.wpd-style-a .wpd-a-submit:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #b8000e, 0 3px 8px rgba(230,0,18,.25);
}

.wpd-style-a .wpd-a-submit:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 #b8000e;
}

.wpd-style-a .wpd-a-arrow {
	font-size: 0.85rem;
}

/* ============================================================
 * 結果ページ（スタイル共通）
 * ============================================================ */
.wpd-result-wrap {
	max-width: 760px;
	margin: 24px auto;
	padding: 0 16px;
	font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
	color: #222;
}

.wpd-result-wrap *,
.wpd-result-wrap *::before,
.wpd-result-wrap *::after {
	box-sizing: border-box;
}

.wpd-empty-result {
	padding: 40px 20px;
	text-align: center;
	color: #777;
	background: #f7f7f7;
	border-radius: 12px;
}

.wpd-card-result {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.wpd-card-result-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.wpd-rank-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 28px;
	padding: 0 10px;
	background: #e60012;
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
	border-radius: 4px;
}

.wpd-rank-1 .wpd-rank-badge { background: #d4af37; }
.wpd-rank-2 .wpd-rank-badge { background: #a5a5a5; }
.wpd-rank-3 .wpd-rank-badge { background: #c89e6a; }

.wpd-pr-tag {
	font-size: 1.1rem;
	font-weight: 800;
	color: #222;
}

.wpd-catch {
	background: #fff0f1;
	color: #e60012;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 4px;
	display: inline-block;
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.wpd-banner {
	display: block;
	margin: 0 0 16px;
}

.wpd-banner img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 4px;
}

.wpd-spec {
	display: grid;
	gap: 1px;
	background: #e2e2e2;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	margin: 0 0 16px;
}

/* 項目数に応じた列数（最大6列まで） */
.wpd-spec-cols-1 { grid-template-columns: 1fr; }
.wpd-spec-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wpd-spec-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wpd-spec-cols-4 { grid-template-columns: repeat(4, 1fr); }
.wpd-spec-cols-5 { grid-template-columns: repeat(5, 1fr); }
.wpd-spec-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 600px) {
	.wpd-spec-cols-3,
	.wpd-spec-cols-4,
	.wpd-spec-cols-5,
	.wpd-spec-cols-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wpd-spec-item {
	background: #fff;
	padding: 10px;
	text-align: center;
	margin: 0;
}

.wpd-spec-item dt {
	font-size: 0.75rem;
	color: #777;
	font-weight: 600;
	margin-bottom: 4px;
}

.wpd-spec-item dd {
	margin: 0;
	font-weight: 800;
	color: #e60012;
	font-size: 1rem;
	line-height: 1.3;
}

/* 申込条件など複数行フィールドはグリッドの全幅・左寄せ・通常ウェイトで表示 */
.wpd-spec-item-multiline {
	grid-column: 1 / -1;
	text-align: left;
}

.wpd-spec-item-multiline dd {
	font-weight: 500;
	color: #2c3338;
	font-size: 0.9rem;
	line-height: 1.6;
}

.wpd-points {
	background: #f7f7f7;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 0 0 16px;
}

.wpd-points-title {
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 2px solid #e60012;
	font-size: 1rem;
	font-weight: 700;
}

.wpd-points ul {
	margin: 0;
	padding-left: 1.2em;
	list-style: disc;
}

.wpd-points li {
	margin: 4px 0;
	font-size: 0.95rem;
}

.wpd-cta {
	text-align: center;
	margin-top: 12px;
}

.wpd-cta-btn {
	display: inline-block;
	background: linear-gradient(180deg, #ffd84d 0%, #ffb800 100%);
	color: #222;
	font-weight: 800;
	font-size: 1.1rem;
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 0 #c08800, 0 6px 14px rgba(0,0,0,.12);
	transition: transform 0.1s, box-shadow 0.1s;
	letter-spacing: 0.05em;
}

.wpd-cta-btn:hover {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #c08800, 0 3px 8px rgba(0,0,0,.12);
}

.wpd-cta-btn:active {
	transform: translateY(4px);
	box-shadow: 0 0 0 #c08800;
}

/* ============================================================
 * スタイルB：シンプル（ホワイト）
 * ============================================================ */
.wpd-style-b {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

.wpd-style-b .wpd-b-card {
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 32px 28px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.wpd-style-b .wpd-b-head {
	text-align: center;
	margin-bottom: 28px;
}

.wpd-style-b .wpd-b-eyebrow {
	display: inline-block;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	color: #2271b1;
	font-weight: 700;
	margin-bottom: 10px;
}

.wpd-style-b .wpd-b-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px;
	line-height: 1.5;
}

.wpd-style-b .wpd-b-lead {
	font-size: 0.9rem;
	color: #666;
	margin: 0 0 16px;
}

.wpd-style-b .wpd-b-divider {
	width: 40px;
	height: 2px;
	background: #2271b1;
	margin: 0 auto;
}

.wpd-style-b .wpd-b-question {
	padding: 22px 0;
	border-bottom: 1px solid #f0f0f0;
}

.wpd-style-b .wpd-b-question:last-of-type {
	border-bottom: none;
}

.wpd-style-b .wpd-b-qhead {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}

.wpd-style-b .wpd-b-qnum {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: #2271b1;
	color: #fff;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
}

.wpd-style-b .wpd-b-qlabel {
	font-size: 1.05rem;
	font-weight: 600;
	color: #1a1a1a;
	margin: 2px 0 0;
	line-height: 1.5;
}

.wpd-style-b .wpd-b-options {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

@media (max-width: 480px) {
	.wpd-style-b .wpd-b-options {
		grid-template-columns: 1fr;
	}
}

.wpd-style-b .wpd-b-opt {
	background: #fff;
	border: 1.5px solid #d8d8d8;
	border-radius: 8px;
	padding: 14px 16px;
	font-size: 0.95rem;
	color: #333;
	cursor: pointer;
	transition: all 0.15s;
	text-align: left;
}

.wpd-style-b .wpd-b-opt:hover {
	border-color: #2271b1;
	background: #f5f9fc;
}

.wpd-style-b .wpd-b-opt.is-selected {
	border-color: #2271b1;
	background: #2271b1;
	color: #fff;
}

.wpd-style-b .wpd-b-submit-wrap {
	margin-top: 24px;
	text-align: center;
}

.wpd-style-b .wpd-b-submit {
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px 36px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s;
	min-width: 220px;
}

.wpd-style-b .wpd-b-submit:hover {
	background: #135e96;
}

