@charset "UTF-8";

/* ============================================================
 * 30秒診断ページ専用 CSS（テーマ非依存）
 * ============================================================ */

:root {
	--ychk-color-base: #1a2438;
	--ychk-color-muted: #6b7585;
	--ychk-color-bg: #f3f6fb;
	--ychk-color-card: #ffffff;
	--ychk-color-line: #e5eaf2;
	--ychk-color-primary: #3983c7;
	--ychk-color-primary-dark: #2a6aa6;
	--ychk-color-accent: #f39800;
	--ychk-color-red: #e33967;
	--ychk-color-green: #06c755;
	--ychk-color-yellow: #fde14d;
	--ychk-shadow-card: 0 6px 24px rgba(26, 36, 56, 0.08);
	--ychk-radius-lg: 18px;
	--ychk-radius-md: 12px;
	--ychk-radius-sm: 8px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body.ychk-body {
	margin: 0;
	font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--ychk-color-base);
	background: var(--ychk-color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*
 * リセットは .ychk-main 配下のみ。
 * :where() で詳細度をゼロにし、各コンポーネントの class 指定（margin-bottom 等）を
 * 確実に勝たせる。
 */
.ychk-main :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
.ychk-main :where(ul, ol) { list-style: none; }
.ychk-main :where(a) { color: inherit; text-decoration: none; }
.ychk-main :where(img, svg) { display: block; max-width: 100%; height: auto; }
.ychk-main :where(button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ヘッダー/フッターは yane-shared/header-footer.css 側で定義 */

/* ============================================================
 * Hero
 * ============================================================ */
.ychk-hero {
	background: radial-gradient(120% 80% at 50% 0%, #eaf2fb 0%, var(--ychk-color-bg) 70%);
	padding: 48px 20px 32px;
}
.ychk-hero__inner {
	max-width: 920px;
	margin: 0 auto;
	text-align: center;
}
.ychk-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ychk-color-yellow);
	color: #5a3a00;
	font-size: 13px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.ychk-hero__title {
	font-size: clamp(28px, 6vw, 40px);
	font-weight: 900;
	line-height: 1.3;
	letter-spacing: 0.01em;
	margin: 0 0 16px;
}
.ychk-hero__title-em {
	background: linear-gradient(180deg, transparent 60%, var(--ychk-color-yellow) 60%);
	padding: 0 4px;
	color: var(--ychk-color-primary-dark);
}
.ychk-hero__lead {
	font-size: clamp(14px, 3.6vw, 16px);
	color: var(--ychk-color-muted);
	margin-bottom: 22px;
}
.ychk-hero__lead strong {
	color: var(--ychk-color-base);
	font-weight: 800;
}
.ychk-hero__br-sp { display: none; }
@media (max-width: 480px) {
	.ychk-hero__br-sp { display: inline; }
}
.ychk-hero__features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	font-size: 13px;
	color: var(--ychk-color-muted);
}
.ychk-hero__features li { display: inline-flex; align-items: center; gap: 6px; }
.ychk-hero__features i { color: var(--ychk-color-green); }

@media (max-width: 480px) {
	.ychk-hero { padding: 32px 16px 24px; }
}

/* ============================================================
 * Quiz
 * ============================================================ */
.ychk-quiz {
	max-width: 920px;
	margin: 0 auto;
	padding: 24px 20px 48px;
}

.ychk-quiz__panel {
	background: var(--ychk-color-card);
	border-radius: var(--ychk-radius-lg);
	box-shadow: var(--ychk-shadow-card);
	padding: 28px 24px;
}

.ychk-q__progress-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 12px;
	color: var(--ychk-color-muted);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.ychk-q__progress-bar {
	position: relative;
	width: 100%;
	height: 6px;
	background: #e9eef6;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 22px;
}
.ychk-q__progress-bar-fill {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--ychk-color-primary), var(--ychk-color-primary-dark));
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ychk-q__title {
	font-size: clamp(18px, 4.6vw, 22px);
	font-weight: 800;
	line-height: 1.5;
	margin-bottom: 14px;
}

.ychk-q__help {
	font-size: 13px;
	color: var(--ychk-color-muted);
	line-height: 1.7;
	margin-bottom: 28px;
}

.ychk-q__options {
	display: grid;
	gap: 10px;
}

.ychk-q__option {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 16px 18px;
	text-align: left;
	background: #fff;
	border: 2px solid var(--ychk-color-line);
	border-radius: var(--ychk-radius-md);
	font-size: 15px;
	font-weight: 600;
	color: var(--ychk-color-base);
	transition: background 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}
.ychk-q__option:hover {
	border-color: var(--ychk-color-primary);
	background: #f6fafe;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(57, 131, 199, 0.12);
}
.ychk-q__option:active { transform: translateY(0); }
.ychk-q__option.is-selected {
	border-color: var(--ychk-color-primary);
	background: #eaf2fb;
}
.ychk-q__option-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #eaf2fb;
	color: var(--ychk-color-primary-dark);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.ychk-q__option-label { flex: 1 1 auto; }
.ychk-q__option-chevron {
	color: var(--ychk-color-muted);
	font-size: 14px;
}

.ychk-q__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 22px;
	gap: 12px;
}
.ychk-q__back {
	color: var(--ychk-color-muted);
	font-size: 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
}
.ychk-q__back:hover { color: var(--ychk-color-primary-dark); }
.ychk-q__back[disabled] { opacity: 0; pointer-events: none; }
.ychk-q__step-hint {
	font-size: 12px;
	color: var(--ychk-color-muted);
}

/* 入退場アニメーション */
.ychk-q { animation: ychkFadeIn 0.32s ease-out both; }
@keyframes ychkFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
	.ychk-quiz { padding: 16px 14px 36px; }
	.ychk-quiz__panel { padding: 22px 18px; border-radius: 14px; }
	.ychk-q__option { padding: 14px 14px; font-size: 14px; gap: 12px; }
	.ychk-q__option-icon { width: 36px; height: 36px; font-size: 16px; }
}

/* ============================================================
 * Result
 * ============================================================ */
.ychk-result {
	background: var(--ychk-color-card);
	border-radius: var(--ychk-radius-lg);
	box-shadow: var(--ychk-shadow-card);
	padding: 28px 24px;
	animation: ychkFadeIn 0.4s ease-out both;
}

.ychk-result__head { text-align: center; margin-bottom: 24px; }
.ychk-result__label {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: var(--ychk-color-muted);
	letter-spacing: 0.16em;
	margin-bottom: 10px;
}
.ychk-result__title {
	font-size: clamp(24px, 5.4vw, 30px);
	font-weight: 900;
	line-height: 1.4;
	margin-bottom: 18px;
}

.ychk-result__gauge {
	max-width: 320px;
	margin: 0 auto 16px;
	height: 10px;
	background: #e9eef6;
	border-radius: 999px;
	overflow: hidden;
}
.ychk-result__gauge-bar {
	height: 100%;
	width: 0;
	border-radius: inherit;
	transition: width 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), background 0.3s;
}

.ychk-result__lead {
	font-size: 14px;
	color: var(--ychk-color-muted);
	max-width: 540px;
	margin: 0 auto;
	text-align: center;
}

/* 緊急度別カラー */
.ychk-result.is-level-3 .ychk-result__title { color: var(--ychk-color-red); }
.ychk-result.is-level-3 .ychk-result__gauge-bar { background: linear-gradient(90deg, #ff8c8c, var(--ychk-color-red)); }
.ychk-result.is-level-2 .ychk-result__title { color: var(--ychk-color-accent); }
.ychk-result.is-level-2 .ychk-result__gauge-bar { background: linear-gradient(90deg, #ffd07a, var(--ychk-color-accent)); }
.ychk-result.is-level-1 .ychk-result__title { color: var(--ychk-color-primary); }
.ychk-result.is-level-1 .ychk-result__gauge-bar { background: linear-gradient(90deg, #8ec1e9, var(--ychk-color-primary)); }
.ychk-result.is-level-0 .ychk-result__title { color: #1f9f55; }
.ychk-result.is-level-0 .ychk-result__gauge-bar { background: linear-gradient(90deg, #8ed9a8, #1f9f55); }

.ychk-result__advice {
	background: #f8fafd;
	border-radius: var(--ychk-radius-md);
	padding: 18px 20px;
	margin-bottom: 22px;
}
.ychk-result__advice-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--ychk-color-primary-dark);
	margin-bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.ychk-result__advice-list {
	display: grid;
	gap: 8px;
}
.ychk-result__advice-list li {
	font-size: 14px;
	color: var(--ychk-color-base);
	padding-left: 22px;
	position: relative;
	line-height: 1.7;
}
.ychk-result__advice-list li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 0.65em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ychk-color-primary);
}

/* ============================================================
 * 修理プランカード（部分修理 / 広域修理）
 * ============================================================ */
.ychk-plans {
	margin-bottom: 28px;
}
.ychk-plans__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 800;
	color: var(--ychk-color-base);
	margin-bottom: 32px;
}
.ychk-plans__title i {
	color: var(--ychk-color-primary);
}
.ychk-plans__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.ychk-plans__disclaimer {
	margin-top: 28px;
	padding: 12px 14px;
	background: #f8fafd;
	border-radius: var(--ychk-radius-sm);
	font-size: 12px;
	color: var(--ychk-color-muted);
	line-height: 1.6;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.ychk-plans__disclaimer i {
	color: var(--ychk-color-primary);
	margin-top: 2px;
	flex: 0 0 auto;
}

.ychk-plan {
	position: relative;
	background: #fff;
	border: 2px solid var(--ychk-color-line);
	border-radius: var(--ychk-radius-md);
	padding: 22px 18px 18px;
	display: flex;
	flex-direction: column;
}

.ychk-plan__header {
	text-align: center;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px dashed var(--ychk-color-line);
}
.ychk-plan__icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #eaf2fb;
	color: var(--ychk-color-primary-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
}
.ychk-plan__name {
	font-size: 18px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--ychk-color-base);
}
.ychk-plan__sub {
	font-size: 12px;
	color: var(--ychk-color-muted);
	line-height: 1.6;
	margin: 0;
}

.ychk-plan__stats {
	display: grid;
	gap: 12px;
	margin: 0 0 14px;
}
.ychk-plan__stat {
	background: #f8fafd;
	border-radius: var(--ychk-radius-sm);
	padding: 10px 12px;
	text-align: center;
}
.ychk-plan__stat dt {
	font-size: 11px;
	font-weight: 700;
	color: var(--ychk-color-muted);
	letter-spacing: 0.06em;
	margin-bottom: 6px;
}
.ychk-plan__price {
	font-size: clamp(16px, 4vw, 19px);
	font-weight: 900;
	color: var(--ychk-color-primary-dark);
	margin: 0;
	letter-spacing: -0.01em;
}
.ychk-plan__duration {
	font-size: clamp(14px, 3.6vw, 16px);
	font-weight: 800;
	color: var(--ychk-color-base);
	margin: 0;
}

.ychk-plan__list {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
}
.ychk-plan__list li {
	font-size: 13px;
	color: var(--ychk-color-base);
	display: flex;
	align-items: flex-start;
	gap: 8px;
	line-height: 1.5;
}
.ychk-plan__list li i {
	color: var(--ychk-color-green);
	font-size: 11px;
	margin-top: 5px;
	flex: 0 0 auto;
}

.ychk-plan__note {
	font-size: 11px;
	color: var(--ychk-color-muted);
	margin: auto 0 0;
	padding-top: 8px;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.ychk-plans__grid {
		grid-template-columns: 1fr;
		gap: 22px;
	}
	.ychk-plan { padding: 22px 16px 16px; }
}

/* Result actions: LINE + 電話 */
.ychk-result__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 24px;
}
.ychk-result__line,
.ychk-result__phone {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 14px;
	border-radius: 10px;
	font-weight: 800;
	font-size: 16px;
	transition: opacity 0.18s, transform 0.12s;
}
.ychk-result__line {
	background: var(--ychk-color-green);
	color: #fff;
}
.ychk-result__line:hover { opacity: 0.92; transform: translateY(-1px); }
.ychk-result__phone {
	background: #fff;
	color: var(--ychk-color-primary-dark);
	border: 2px solid var(--ychk-color-primary);
}
.ychk-result__phone:hover { background: #f6fafe; transform: translateY(-1px); }
.ychk-result__line i { font-size: 22px; }

@media (max-width: 480px) {
	.ychk-result { padding: 22px 18px; border-radius: 14px; }
	.ychk-result__actions { grid-template-columns: 1fr; }
}

/* ============================================================
 * Form (Result section)
 * ============================================================ */
.ychk-result__form {
	border: 2px solid var(--ychk-color-primary);
	border-radius: var(--ychk-radius-md);
	padding: 22px 20px;
	background: #fff;
}
.ychk-result__form-head {
	text-align: center;
	margin-bottom: 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ychk-color-line);
}
.ychk-result__form-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ychk-color-yellow);
	color: #5a3a00;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-bottom: 8px;
}
.ychk-result__form-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ychk-color-base);
	margin: 0 0 4px;
}
.ychk-result__form-note {
	font-size: 12px;
	color: var(--ychk-color-muted);
	margin: 0;
}

.ychk-form__row { margin-bottom: 14px; }
.ychk-form__row--split {
	display: grid;
	grid-template-columns: 0.6fr 1fr;
	gap: 12px;
}
.ychk-form__col { display: flex; flex-direction: column; }

.ychk-form__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: var(--ychk-color-base);
	margin-bottom: 6px;
}
.ychk-form__req {
	color: #c0354c;
	background: #fde8e8;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	border-radius: 3px;
}
.ychk-form__input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	font-family: inherit;
	color: var(--ychk-color-base);
	background: #fff;
	border: 2px solid var(--ychk-color-line);
	border-radius: var(--ychk-radius-sm);
	transition: border-color 0.18s;
	outline: none;
	-webkit-appearance: none;
}
.ychk-form__input:focus { border-color: var(--ychk-color-primary); }
.ychk-form__input::placeholder { color: #a0a8b6; }
.ychk-form__input--area { resize: vertical; min-height: 88px; line-height: 1.6; }

.ychk-form__submit {
	width: 100%;
	padding: 16px;
	font-size: 16px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(180deg, #4fbd35, #3c9d26);
	border: none;
	border-radius: 10px;
	box-shadow: 0 4px 0 #2d7a1c;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: transform 0.12s, box-shadow 0.12s, opacity 0.18s;
}
.ychk-form__submit:hover { opacity: 0.95; }
.ychk-form__submit:active { transform: translateY(3px); box-shadow: 0 1px 0 #2d7a1c; }
.ychk-form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 #2d7a1c; }

.ychk-form__notes {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 10px;
}
.ychk-form__notes span {
	font-size: 11px;
	color: var(--ychk-color-muted);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ychk-form__notes i { color: var(--ychk-color-primary); }

.ychk-form__result {
	margin-top: 12px;
	padding: 10px;
	border-radius: 8px;
	font-size: 13px;
	text-align: center;
	display: none;
}
.ychk-form__result.is-success { background: #def7e3; color: #155724; display: block; }
.ychk-form__result.is-error   { background: #fde8e8; color: #721c24; display: block; }

@media (max-width: 480px) {
	.ychk-form__row--split { grid-template-columns: 1fr; }
}

/* ============================================================
 * Redo button
 * ============================================================ */
.ychk-result__redo {
	display: block;
	margin: 22px auto 0;
	color: var(--ychk-color-muted);
	font-size: 13px;
	font-weight: 600;
	border-bottom: 1px dashed var(--ychk-color-muted);
	padding-bottom: 2px;
}
.ychk-result__redo:hover { color: var(--ychk-color-primary-dark); border-bottom-color: var(--ychk-color-primary-dark); }

/* ============================================================
 * Trust strip
 * ============================================================ */
.ychk-trust {
	background: #fff;
	padding: 28px 20px;
	border-top: 1px solid var(--ychk-color-line);
}
.ychk-trust__inner {
	max-width: 920px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	text-align: center;
}
.ychk-trust__item p {
	font-size: 12px;
	color: var(--ychk-color-muted);
	margin: 4px 0 0;
}
.ychk-trust__num {
	font-size: clamp(20px, 5vw, 26px);
	font-weight: 900;
	color: var(--ychk-color-primary-dark);
	letter-spacing: 0.02em;
}
.ychk-trust__num span {
	font-size: 0.6em;
	margin-left: 2px;
	color: var(--ychk-color-base);
}

@media (max-width: 480px) {
	.ychk-trust { padding: 22px 16px; }
}

/* フッターは yane-shared/header-footer.css の .ytop-footer を使用 */
