/**
 * デザイナータイプ診断 専用スタイルシート
 *
 * 対象: page-designer-type.php テンプレートを使用する16の固定ページのみ
 * 読み込み: functions.php 側で is_page_template('page-designer-type.php') のときだけ
 *           wp_enqueue_style() する(下記スニペット参照)ため、他ページのCSSには影響しません。
 *
 * 変数の値(--dtype-main / --dtype-sub)は、サイトの既存カラー
 * (メイン #0f2f4c / サブ #256197)に合わせています。サイト全体のカラーを
 * 変更した場合はここも合わせて更新してください。
 */
 .main{
	background-color: #f4f5f7 !important;
 }
.dtype-page {
	--dtype-main: #0f2f4c;
	--dtype-sub: #256197;
	--dtype-bg: #ffffff;
	--dtype-bg-soft: #f7f9fb;
	--dtype-text-primary: #1a1a1a;
	--dtype-text-secondary: #5c5c5c;
	--dtype-text-muted: #898781;
	--dtype-border: #e3e8ec;

	max-width: 720px;
	margin: 80px auto 0;
	padding: 8px 10px 40px;
	line-height: 1.75;
	color: var(--dtype-text-primary);
}
.dtype-page * { box-sizing: border-box; }

/* 診断結果バナー */
.dtype-result-banner {
	display: none;
	background: linear-gradient(90deg, var(--dtype-sub), var(--dtype-main));
	color: #fff;
	text-align: center;
	padding: 10px 16px;
	font-size: 13.5px;
	font-weight: 700;
	border-radius: 10px;
	margin-bottom: 20px;
}
.dtype-result-banner.show { display: block; }

/* 1・2. タイプ名 / コード */
.dtype-hero { text-align: center; }
.dtype-eyebrow {
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--dtype-sub);
	margin: 0 0 10px;
}
.dtype-name { font-size: 34px; font-weight: 800; margin: 0 0 10px; }
.dtype-code-badge {
	display: inline-block;
	padding: 6px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.06em;
}
.dtype-tagline { margin: 14px 0 0; font-size: 14.5px; color: var(--dtype-text-secondary); }

/* 3. イラストプレースホルダー */
.dtype-illust-placeholder {
	width: 240px;
	height: 240px;
	margin: 0 auto;
	border: 2px dashed var(--dtype-border);
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--dtype-text-muted);
	background: var(--dtype-bg);
}
.dtype-illust-icon { font-size: 40px; margin-bottom: 8px; }
.dtype-illust-label { font-size: 12.5px; }

/* 3. イラスト本番表示(inc/designer-type-data.php の illust にURLを入れると自動でこちらに切り替わる) */
.dtype-illust {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	border-radius: 20px;
	overflow: hidden;
}
.dtype-illust img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* SNSシェア(イラスト下、他タイプ一覧の上の2箇所に設置。固定表示ではなく本文内インライン表示) */
.dtype-share {
	margin: 20px 0 28px;
	text-align: center;
}
.dtype-share__label {
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--dtype-text-muted);
	margin-bottom: 10px;
}
.dtype-share__row {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
}
.dtype-share__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	transition: transform 0.2s, opacity 0.2s;
}
.dtype-share__btn:hover { transform: scale(1.12); opacity: 0.85; }
.dtype-share__btn--x    { background: #000; }
.dtype-share__btn--fb   { background: #1877f2; }
.dtype-share__btn--line { background: #06c755; }
.dtype-share__btn--copy { background: #888; }
.dtype-share__btn--copy.is-copied { background: #2a9d5c; }

/* 4. パーセンテージ */
.dtype-stat-card {
	background: var(--dtype-bg);
	border: 1px solid var(--dtype-border);
	border-radius: 16px;
	padding: 22px 22px 18px;
	margin-bottom: 28px;
}
.dtype-stat-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--dtype-main);
	margin: 0 0 4px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.dtype-stat-source { font-weight: 400; color: var(--dtype-text-muted); font-size: 11px; }
.dtype-stat-note { font-size: 11.5px; color: var(--dtype-text-muted); margin: 0 0 18px; }
.dtype-stat-row { margin-bottom: 16px; }
.dtype-stat-row:last-of-type { margin-bottom: 10px; }
.dtype-stat-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	color: var(--dtype-text-secondary);
	margin-bottom: 6px;
	font-weight: 700;
}
.dtype-stat-track {
	height: 10px;
	background: var(--dtype-bg-soft);
	border-radius: 999px;
	overflow: hidden;
	border: 1px solid var(--dtype-border);
}
.dtype-stat-fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--dtype-sub), var(--dtype-main));
	transition: width 0.3s ease, margin-left 0.3s ease;
}
.dtype-stat-pct { font-size: 11px; color: var(--dtype-text-muted); margin-top: 4px; text-align: right; }
.dtype-soc-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	font-size: 13px;
	background: var(--dtype-bg-soft);
	border-radius: 999px;
	padding: 6px 14px;
}

/* 5. 各解説 */
.dtype-section-block {
	background: var(--dtype-bg);
	border: 1px solid var(--dtype-border);
	border-radius: 16px;
	padding: 20px 22px;
	margin-bottom: 16px;
}
.dtype-section-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 14.5px;
	font-weight: 700;
	color: var(--dtype-main);
}
.dtype-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dtype-section-body { font-size: 14px; color: var(--dtype-text-primary); margin: 0; }
.dtype-arukaru-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dtype-arukaru-list li {
	background: var(--dtype-bg-soft);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--dtype-text-secondary);
}

/* 6. クリクル誘導 */
.dtype-cta {
	margin-top: 32px;
	text-align: center;
	background: var(--dtype-main);
	border-radius: 18px;
	padding: 32px 24px;
	color: #fff;
}
/* 見出し(h3)はテーマ(Cocoon)側の共通h3装飾(アイコン付与・下線・背景色など)と
   ぶつかりやすいため、.dtype-page を前置した高い詳細度 + !important で打ち消しています */
.dtype-page .dtype-cta .dtype-cta-title,
.dtype-page .dtype-cta h3.dtype-cta-title {
	font-size: 19px !important;
	line-height: 1.5 !important;
	font-weight: 800 !important;
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: #fff !important;
	background: none !important;
	border: none !important;
	text-align: center !important;
}
h3::first-letter {
  background: none !important;
  color: #fff !important;
  padding: 0 !important;
  border-radius: none !important;
}
.dtype-page .dtype-cta .dtype-cta-title::before,
.dtype-page .dtype-cta .dtype-cta-title::after {
	content: none !important;
	display: none !important;
}
.dtype-cta p { font-size: 12px; color: rgba(255, 255, 255, 0.85); margin: 0 0 20px; }
.dtype-cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dtype-cta-btn {
	display: inline-block;
	text-decoration: none;
	border-radius: 999px !important;
	padding: 12px 26px;
	font-size: 13.5px;
	font-weight: 700;
}
.dtype-cta-btn.primary { background: #fff; color: var(--dtype-main); }
.dtype-cta-btn.outline { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }

/* 他のタイプ一覧 */
.dtype-other-types { margin-top: 40px; }
.dtype-other-types h4 { font-size: 13.5px; color: var(--dtype-text-secondary); text-align: center; margin: 0 0 14px; }
.dtype-other-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dtype-chip {
	background: var(--dtype-bg);
	border: 1px solid var(--dtype-border);
	border-radius: 12px;
	padding: 12px 6px 10px;
	text-align: center;
	font-size: 11.5px;
	text-decoration: none;
	color: var(--dtype-text-secondary);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
/* タイプ別アイコン(現在は絵文字プレースホルダー。イラスト完成後は背景を画像に差し替え可能) */
.dtype-chip-icon {
	width: 90px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
	color: #fff;
}
.dtype-chip-label { line-height: 1.3; }
.dtype-chip.active {
	border-color: var(--dtype-main);
	color: var(--dtype-main);
	font-weight: 700;
	background: var(--dtype-bg-soft);
	pointer-events: none;
}
.dtype-retake-link { text-align: center; font-size: 13px; margin-top: 16px; }

@media (max-width: 480px) {
	.dtype-other-types-grid { grid-template-columns: repeat(3, 1fr); }
	.dtype-name { font-size: 27px; }
}
