.shugen-diagnosis-page {
	--ink: #342d39;
	--ink-soft: #514857;
	--soft: #756b79;
	--muted: #9b909f;
	--lav: #765a88;
	--lav-deep: #5f476f;
	--lav-mid: #9a82aa;
	--lav-pale: #f7f2f9;
	--lav-wash: #fbf8fc;
	--gold: #b79a69;
	--gold-pale: #efe5d3;
	--line: #e9e0ed;
	--line-soft: #f2ecf4;
	--paper: #fff;
	--shadow: 0 28px 80px rgba(70, 48, 83, .10);
	position: relative;
	min-height: 100vh;
	color: var(--ink);
	background:
		radial-gradient(circle at 5% 4%, rgba(224, 210, 234, .40), transparent 29rem),
		radial-gradient(circle at 96% 22%, rgba(244, 227, 233, .34), transparent 26rem),
		linear-gradient(180deg, #fbf9fc 0%, #f6f2f7 100%);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
	overflow: hidden;
}

.shugen-diagnosis-page--shortcode {
	min-height: 0;
}

.shugen-diagnosis-page,
.shugen-diagnosis-page * {
	box-sizing: border-box;
}

.shugen-diagnosis-page::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .38;
	background-image: radial-gradient(rgba(117, 89, 134, .07) .55px, transparent .55px);
	background-size: 8px 8px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 58%);
	mask-image: linear-gradient(180deg, #000, transparent 58%);
}

.shugen-diagnosis-page > * {
	position: relative;
	z-index: 1;
}

.shugen-app,
.shugen-app * {
	box-sizing: border-box;
}

.shugen-app {
	position: relative;
	width: min(calc(100% - 56px), 1180px);
	margin: 34px auto 72px;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.85;
}

.shugen-app::before {
	display: none !important;
	content: none !important;
}

.shugen-app__card {
	position: relative;
	width: 100%;
	padding: clamp(44px, 5vw, 68px) clamp(40px, 5vw, 72px) clamp(42px, 5vw, 64px);
	border: 1px solid rgba(118, 90, 136, .12);
	border-radius: 30px;
	background: rgba(255, 255, 255, .975);
	box-shadow: var(--shadow);
	overflow: hidden;
	isolation: isolate;
}

.shugen-app__card::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -130px;
	right: -105px;
	width: 390px;
	height: 390px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(222, 205, 232, .34) 0%, rgba(244, 229, 237, .14) 43%, rgba(255, 255, 255, 0) 72%);
}

.shugen-app__card::after {
	display: none !important;
	content: none !important;
}

.shugen-app__card > * {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.shugen-app__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--lav);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
}

.shugen-app__eyebrow::before {
	content: "";
	width: 24px;
	height: 1px;
	flex: 0 0 24px;
	background: var(--gold);
}

.shugen-app__progress {
	display: inline-flex;
	width: auto;
	margin: 0 0 13px;
	padding: 6px 11px;
	border: 1px solid #eadfee;
	border-radius: 999px;
	background: #faf7fb;
	color: #8c7499;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
}

.shugen-app .shugen-app__title,
.shugen-app .shugen-app__question {
	display: block !important;
	position: static !important;
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-indent: 0 !important;
	text-align: left !important;
	text-shadow: none !important;
	transform: none !important;
	color: #392f3f !important;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
	font-size: 24px !important;
	font-style: normal !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
	letter-spacing: .03em !important;
}

.shugen-app .shugen-app__title {
	margin-bottom: 14px !important;
}

.shugen-app .shugen-app__title::before,
.shugen-app .shugen-app__title::after,
.shugen-app .shugen-app__question::before,
.shugen-app .shugen-app__question::after {
	content: none !important;
	display: none !important;
}

.shugen-app__lead,
.shugen-app__notice p {
	margin: 0;
	max-width: 710px;
	color: var(--soft);
	font-size: 13px;
	line-height: 1.95;
}

.shugen-app__card:not(:has(.shugen-app__question)):not(:has(.shugen-app__section)) .shugen-app__choices {
	counter-reset: choice;
}

.shugen-app__choices {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 13px;
	margin-top: 31px;
}

.shugen-app__choice,
.shugen-app__button {
	font: inherit;
	cursor: pointer;
	transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease, color .18s ease;
}

.shugen-app__choice {
	position: relative;
	display: grid;
	grid-template-columns: 42px 1fr 22px;
	align-items: center;
	width: 100%;
	min-height: 72px;
	padding: 12px 17px 12px 14px;
	border: 1px solid #e8deec;
	border-radius: 18px;
	background: linear-gradient(135deg, #fff 0%, #fefcfe 100%);
	color: #4a414f;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.55;
	text-align: left;
	box-shadow: 0 5px 16px rgba(76, 57, 89, .025);
}

.shugen-app__card:not(:has(.shugen-app__question)):not(:has(.shugen-app__section)) .shugen-app__choice::before {
	counter-increment: choice;
	content: counter(choice, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 31px;
	height: 31px;
	border: 1px solid #eadfce;
	border-radius: 50%;
	background: #fffdf9;
	color: #a1855c;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .05em;
}

.shugen-app__choice::after {
	content: "›";
	justify-self: end;
	color: #9b84aa;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.shugen-app__choice:hover,
.shugen-app__choice:focus-visible {
	border-color: #c9b5d3;
	background: linear-gradient(135deg, #fff, #faf5fc);
	box-shadow: 0 12px 28px rgba(88, 65, 104, .085);
	transform: translateY(-2px);
}

.shugen-app__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 29px;
	padding-top: 20px;
	border-top: 1px solid var(--line-soft);
}

.shugen-app__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 25px;
	border: 1px solid var(--lav);
	border-radius: 999px;
	background: linear-gradient(135deg, #8a6e9b 0%, #684f79 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: center;
	box-shadow: 0 10px 24px rgba(103, 75, 121, .17);
}

.shugen-app__button--secondary {
	border-color: #e1d6e6;
	background: rgba(255, 255, 255, .84);
	color: #6a5b72;
	box-shadow: none;
}

.shugen-app__button:hover,
.shugen-app__button:focus-visible {
	transform: translateY(-1px);
}

.shugen-app__button--secondary:hover,
.shugen-app__button--secondary:focus-visible {
	border-color: #c8b5d2;
	background: #faf6fc;
	color: #5d4967;
}

.shugen-app__choice:focus-visible,
.shugen-app__button:focus-visible {
	outline: 3px solid rgba(118, 90, 136, .16);
	outline-offset: 3px;
}

.shugen-app__choice:disabled,
.shugen-app__button:disabled {
	opacity: .62;
	cursor: wait;
	transform: none;
}

.shugen-app:has(.shugen-app__question) {
	width: min(calc(100% - 56px), 920px);
}

.shugen-app__card:has(.shugen-app__question) {
	padding: 58px clamp(46px, 7vw, 78px) 50px;
}

.shugen-app__card:has(.shugen-app__question)::before {
	top: -165px;
	right: -160px;
	width: 430px;
	height: 430px;
	background: radial-gradient(circle, rgba(222, 205, 232, .24), rgba(255, 255, 255, 0) 70%);
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__choices {
	grid-template-columns: 1fr;
	gap: 11px;
	margin-top: 30px;
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__choice {
	grid-template-columns: 28px 1fr 18px;
	min-height: 66px;
	padding: 14px 17px 14px 16px;
	border-radius: 17px;
	font-weight: 500;
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__choice::before {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	border: 1.5px solid #bcaac5;
	border-radius: 50%;
	background: radial-gradient(circle, #fff 0 45%, transparent 46%);
	box-shadow: inset 0 0 0 4px #fff;
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__choice:hover::before,
.shugen-app__card:has(.shugen-app__question) .shugen-app__choice:focus-visible::before {
	border-color: #866d95;
	background: #866d95;
}


/* Touch devices can keep a tapped element in a synthetic :hover state.
   Reset question choices so every newly rendered question starts visually unselected. */
@media (hover: none), (pointer: coarse) {
	.shugen-app__card:has(.shugen-app__question) .shugen-app__choice:hover:not(:focus-visible) {
		border-color: #e8deec;
		background: linear-gradient(135deg, #fff 0%, #fefcfe 100%);
		box-shadow: 0 5px 16px rgba(76, 57, 89, .025);
		transform: none;
	}

	.shugen-app__card:has(.shugen-app__question) .shugen-app__choice:hover:not(:focus-visible)::before {
		border-color: #bcaac5;
		background: radial-gradient(circle, #fff 0 45%, transparent 46%);
	}
}

/* iOS Safari can keep a synthetic :hover on the same screen position after
   the question DOM is replaced. Touch capability is also marked by JS so
   the next question never inherits the previous tap's selected appearance. */
.shugen-app--touch .shugen-app__card:has(.shugen-app__question) .shugen-app__choice:hover {
	border-color: #e8deec;
	background: linear-gradient(135deg, #fff 0%, #fefcfe 100%);
	box-shadow: 0 5px 16px rgba(76, 57, 89, .025);
	transform: none;
}

.shugen-app--touch .shugen-app__card:has(.shugen-app__question) .shugen-app__choice:hover::before {
	border-color: #bcaac5;
	background: radial-gradient(circle, #fff 0 45%, transparent 46%);
}

.shugen-app--touch .shugen-app__card:has(.shugen-app__question) .shugen-app__choice {
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

/* Explicit short-lived selection feedback. This class is controlled by JS and
   disappears with the current question DOM, so iOS synthetic :hover cannot
   carry the selected appearance into the next question. */
.shugen-app__card:has(.shugen-app__question) .shugen-app__choice.shugen-app__choice--selected,
.shugen-app--touch .shugen-app__card:has(.shugen-app__question) .shugen-app__choice.shugen-app__choice--selected {
	border-color: #9d82ab;
	background: linear-gradient(135deg, #fbf7fd 0%, #f5eef8 100%);
	box-shadow: 0 8px 22px rgba(88, 65, 104, .11);
	transform: scale(.995);
	pointer-events: none;
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__choice.shugen-app__choice--selected::before,
.shugen-app--touch .shugen-app__card:has(.shugen-app__question) .shugen-app__choice.shugen-app__choice--selected::before {
	content: "✓";
	display: grid;
	place-items: center;
	border-color: #866d95;
	background: #866d95;
	box-shadow: none;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.shugen-app__card:has(.shugen-app__question) .shugen-app__actions {
	margin-top: 25px;
	justify-content: flex-start;
}

.shugen-app:has(.shugen-app__section) {
	width: min(calc(100% - 56px), 1160px);
}

.shugen-app__card:has(.shugen-app__section) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	padding: 58px clamp(40px, 5vw, 64px) 48px;
}

.shugen-app__card:has(.shugen-app__section) > * {
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow,
.shugen-app__card:has(.shugen-app__section) > .shugen-app__title,
.shugen-app__card:has(.shugen-app__section) > .shugen-app__actions {
	grid-column: 1 / -1;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow {
	justify-content: center;
	gap: 12px;
	margin: 0 0 16px;
	color: #6f587d;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .22em;
	text-align: center;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow::before,
.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow::after {
	content: "" !important;
	display: block !important;
	width: 34px !important;
	height: 1px !important;
	flex: 0 0 34px !important;
	background: linear-gradient(90deg, rgba(183, 154, 105, 0), rgba(183, 154, 105, .95), rgba(183, 154, 105, 0)) !important;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__title {
	display: flex !important;
	align-items: flex-start;
	gap: .45em;
	max-width: 820px;
	margin-bottom: 13px !important;
	font-size: 30px !important;
	line-height: 1.45 !important;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__title::before {
	content: "" !important;
	display: block !important;
	width: 1em;
	height: 1em;
	flex: 0 0 1em;
	margin-top: .2em;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='ring' x1='3' y1='3' x2='21' y2='21'%3E%3Cstop stop-color='%23EDE3F5'/%3E%3Cstop offset='.5' stop-color='%239A7AB4'/%3E%3Cstop offset='1' stop-color='%235A406B'/%3E%3C/linearGradient%3E%3ClinearGradient id='gold' x1='8' y1='6' x2='16' y2='18'%3E%3Cstop stop-color='%23F7E9B2'/%3E%3Cstop offset='.55' stop-color='%23D2A64A'/%3E%3Cstop offset='1' stop-color='%23996B1F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.2' fill='url(%23ring)'/%3E%3Ccircle cx='12' cy='12' r='8.05' fill='%23FFF9FF' fill-opacity='.68' stroke='%23745A86' stroke-width='.55'/%3E%3Cg fill='%23624A75'%3E%3Cpath d='M12 3.6l1.15 5.72L12 11.1 10.85 9.32Z'/%3E%3Cpath d='M20.4 12l-5.72 1.15L12.9 12l1.78-1.15Z'/%3E%3Cpath d='M12 20.4l-1.15-5.72L12 12.9l1.15 1.78Z'/%3E%3Cpath d='M3.6 12l5.72-1.15L11.1 12l-1.78 1.15Z'/%3E%3C/g%3E%3Cg fill='url(%23gold)'%3E%3Cpath d='M16.95 7.05l-2.9 4.01-1.11.99 1-1.12Z'/%3E%3Cpath d='M16.95 16.95l-4.01-2.9-.99-1.11 1.12 1Z'/%3E%3Cpath d='M7.05 16.95l2.9-4.01 1.11-.99-1 1.12Z'/%3E%3Cpath d='M7.05 7.05l4.01 2.9.99 1.11-1.12-1Z'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.1' fill='%23F7ECBE' stroke='%23624A75' stroke-width='.7'/%3E%3Ccircle cx='12' cy='12' r='.9' fill='%23624A75'/%3E%3Cg fill='%23C79C43'%3E%3Ccircle cx='12' cy='1.6' r='.65'/%3E%3Ccircle cx='22.4' cy='12' r='.65'/%3E%3Ccircle cx='12' cy='22.4' r='.65'/%3E%3Ccircle cx='1.6' cy='12' r='.65'/%3E%3C/g%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.shugen-app__section {
	position: relative;
	margin: 0;
	padding: 24px 24px 23px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff, #fefcfe);
	overflow: hidden;
}

.shugen-app__section:first-of-type {
	grid-column: 1 / -1;
	margin-top: 10px;
	padding: 29px 30px 28px;
	border-color: #e4d7e9;
	background: linear-gradient(135deg, #f7f1fa 0%, #fff 62%, #fffaf5 100%);
}

.shugen-app__section:last-of-type {
	grid-column: 1 / -1;
	padding: 30px 31px 29px;
	border-color: transparent;
	background: linear-gradient(135deg, #725981 0%, #5c4669 100%);
	box-shadow: 0 16px 32px rgba(91, 67, 105, .18);
}

.shugen-app__section:last-of-type::after {
	content: none !important;
	display: none !important;
}

.shugen-app__section--shugen {
	display: grid;
	grid-template-columns: 154px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
}

.shugen-app__guide-media {
	width: 154px;
	height: 190px;
	border-radius: 18px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .18);
	background: rgba(255, 255, 255, .08);
	box-shadow: 0 12px 28px rgba(29, 19, 35, .18);
}

.shugen-app__guide-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

.shugen-app__guide-copy {
	min-width: 0;
}

.shugen-app__section--shugen p {
	margin: 0;
}

/* Result section titles are fully isolated from WordPress theme heading styles. */
.shugen-app .shugen-app__section-title {
	display: block !important;
	position: static !important;
	float: none !important;
	clear: none !important;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 0 9px !important;
	padding: 0 !important;
	border: 0 !important;
	border-top: 0 !important;
	border-right: 0 !important;
	border-bottom: 0 !important;
	border-left: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	text-indent: 0 !important;
	text-align: left !important;
	text-shadow: none !important;
	transform: none !important;
	color: var(--lav-deep) !important;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif !important;
	font-size: 17px !important;
	font-style: normal !important;
	font-weight: 600 !important;
	line-height: 1.6 !important;
	letter-spacing: .03em !important;
}

.shugen-app .shugen-app__section-title::before {
	content: "" !important;
	display: inline-block !important;
	position: static !important;
	width: 20px !important;
	height: 1px !important;
	margin: 0 9px 5px 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: var(--gold) !important;
	box-shadow: none !important;
	transform: none !important;
}

.shugen-app .shugen-app__section-title::after {
	content: none !important;
	display: none !important;
}

.shugen-app__section--shugen .shugen-app__section-title {
	margin-bottom: 10px !important;
}

.shugen-app__section p {
	margin: 0;
	color: #6c6270;
	font-size: 13px;
	line-height: 2;
}

.shugen-app__section:first-of-type p {
	font-size: 14px;
	line-height: 2.05;
}

.shugen-app__section:last-of-type .shugen-app__section-title {
	color: #fff !important;
}

.shugen-app__section:last-of-type .shugen-app__section-title::before {
	background: #decba9 !important;
}

.shugen-app__section:last-of-type p {
	color: #f6eff8;
	font-size: 14px;
	line-height: 2.05;
}

.shugen-app__sponsor-link {
	position: relative;
	grid-column: 1 / -1;
	margin-top: 2px;
	padding: 13px 20px 7px;
	border: 1px solid #e6ddea;
	border-radius: 14px;
	background: linear-gradient(135deg, #fcfafd 0%, #f6f1fa 100%);
	box-shadow: 0 5px 16px rgba(80, 59, 93, .04);
	text-align: center;
}

.shugen-app__sponsor-label {
	margin: 0 0 6px;
	color: #b2acb5;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: .04em;
	text-align: center;
}

.shugen-app__sponsor-text {
	margin: 0;
	color: #514b56;
	font-size: 16px;
	line-height: 1.65;
	text-align: center;
}


.shugen-app__sponsor-mobile-break {
	display: none;
}

.shugen-app__sponsor-arrow {
	display: inline-block;
	margin: 0 4px 0 2px;
	color: #b58a46;
	font-size: .86em;
	font-weight: 700;
	line-height: 1;
	vertical-align: .03em;
}

.shugen-app__sponsor-anchor {
	color: #745587;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.shugen-app__sponsor-anchor:hover,
.shugen-app__sponsor-anchor:focus-visible {
	color: #5d416f;
}

.shugen-app__sponsor-anchor:focus-visible {
	outline: 2px solid rgba(116, 85, 135, .22);
	outline-offset: 3px;
	border-radius: 2px;
}


.shugen-app__affiliate-tracking-pixel {
	position: absolute;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0;
	pointer-events: none;
}

.shugen-app__saved-affiliate {
	position: relative;
	margin: 14px auto 0;
	text-align: center;
}

.shugen-app__saved-affiliate-label {
	margin: 0 0 6px;
	color: #b2acb5;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: .04em;
	text-align: center;
}

.shugen-app__saved-affiliate-anchor {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.shugen-app__saved-affiliate-image {
	display: block;
	width: 234px;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border: 0;
}

.shugen-app__card:has(.shugen-app__section) > .shugen-app__actions {
	justify-content: center;
	margin-top: 8px;
	padding-top: 0;
	border-top: 0;
}

.shugen-app__result-note {
	grid-column: 1 / -1;
	margin: 2px 8px 0;
	color: #aaa1ad;
	font-size: 10.5px;
	font-weight: 400;
	line-height: 1.65;
	text-align: center;
}

.shugen-app__mobile-save,
.shugen-saved-results-entry {
	display: none;
}

.shugen-app__saved-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.shugen-app__saved-item {
	padding: 18px;
	border: 1px solid #e6dce9;
	border-radius: 18px;
	background: rgba(255, 255, 255, .88);
	box-shadow: 0 8px 24px rgba(81, 60, 94, .055);
}

.shugen-app__saved-meta,
.shugen-app__saved-detail-meta {
	margin: 0 0 7px;
	color: #8a7b91;
	font-size: 11px;
	line-height: 1.6;
}

.shugen-app__saved-title {
	margin: 0;
	color: #493e50;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: .02em;
}

.shugen-app__saved-item-actions {
	display: flex;
	gap: 8px;
	margin-top: 14px;
}

.shugen-app__saved-open,
.shugen-app__saved-delete {
	min-height: 38px;
	padding: 0 15px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.shugen-app__saved-open {
	border: 1px solid #846994;
	background: #796087;
	color: #fff;
}

.shugen-app__saved-delete {
	border: 1px solid #e1d6e6;
	background: #fff;
	color: #76667d;
}

.shugen-app__saved-empty {
	margin: 24px 0 0;
	color: #766d7b;
	font-size: 13px;
	line-height: 1.9;
}

.shugen-app__loading {
	text-align: center;
}

.shugen-app__error {
	border-color: #d8aaaa;
	color: #702a2a;
}

.shugen-hero,
.shugen-hero * {
	box-sizing: border-box;
}

.shugen-hero {
	--shugen-ink: #342d39;
	--shugen-soft: #6c6271;
	position: relative;
	min-height: 480px;
	overflow: hidden;
	color: var(--shugen-ink);
	background:
		radial-gradient(circle at 18% 14%, rgba(220, 203, 232, .18), transparent 26rem),
		linear-gradient(118deg, #fff 0%, #fdfbfd 45%, #fbf5fa 100%);
}

.shugen-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.shugen-hero .hero-inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 24px;
	max-width: 1200px;
	min-height: 480px;
	margin: auto;
	padding: 0 32px;
}

.shugen-hero .copy {
	max-width: 500px;
	padding: 48px 8px 42px 0;
}

#shugen-hero-title {
	margin: 0 0 22px;
	color: #342d39;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: clamp(42px, 4vw, 54px);
	font-weight: 500;
	line-height: 1.34;
	letter-spacing: .045em;
}

.shugen-hero .lead {
	margin: 0 0 30px;
	color: var(--shugen-soft);
	font-size: 16px;
	line-height: 1.9;
}

.shugen-hero .lead-line {
	display: block;
	white-space: nowrap;
}

.shugen-hero .lead strong {
	color: #4a3f53;
	font-weight: 700;
}

.shugen-hero .actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
}

.shugen-hero .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 270px;
	min-height: 56px;
	padding: 0 32px;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(135deg, #8b6d9c, #6e547f);
	box-shadow: 0 14px 30px rgba(103, 75, 121, .2);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05em;
	text-decoration: none;
}

.shugen-hero .visual {
	position: relative;
	align-self: stretch;
	min-height: 410px;
}

.shugen-hero .visual-img {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right top;
	filter: saturate(.9) brightness(1.06);
	-webkit-mask-image:
		linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 12%, #000 30%, #000 76%, rgba(0, 0, 0, .45) 88%, transparent 100%),
		linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image:
		linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 12%, #000 30%, #000 76%, rgba(0, 0, 0, .45) 88%, transparent 100%),
		linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
	mask-composite: intersect;
}

.shugen-hero .visual::before,
.shugen-hero .visual::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.shugen-hero .visual::before {
	z-index: 2;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 10%, rgba(255, 255, 255, .66) 23%, rgba(255, 255, 255, .24) 38%, rgba(255, 255, 255, 0) 56%),
		linear-gradient(90deg, rgba(244, 224, 233, .38) 18%, rgba(244, 224, 233, .16) 54%, rgba(244, 224, 233, 0) 100%),
		linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .03) 24%, rgba(255, 255, 255, .04) 76%, rgba(255, 255, 255, .58) 100%);
}

.shugen-hero .visual::after {
	z-index: 3;
	background:
		radial-gradient(circle at 66% 20%, rgba(255, 255, 255, .36), rgba(255, 255, 255, 0) 24%),
		radial-gradient(circle at 72% 36%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 32%);
}

.shugen-hero .bottom-note {
	position: absolute;
	left: 50%;
	bottom: 96px;
	z-index: 4;
	width: min(84%, 420px);
	transform: translateX(-50%);
	color: #4B3F72;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: .06em;
	text-align: center;
	text-shadow:
		-1px -1px 0 rgba(255, 255, 255, .98),
		1px -1px 0 rgba(255, 255, 255, .98),
		-1px 1px 0 rgba(255, 255, 255, .98),
		1px 1px 0 rgba(255, 255, 255, .98),
		0 0 4px #fff,
		0 0 10px rgba(255, 255, 255, .98),
		0 0 22px rgba(255, 255, 255, .94);
}

.shugen-top-features {
	padding: 32px 32px 32px;
	background: #fff;
	border-top: 1px solid #f1ebf3;
}

.shugen-top-features__wrap {
	max-width: 1120px;
	margin: 0 auto;
}

.shugen-top-features__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.shugen-top-feature {
	min-height: 136px;
	padding: 18px 20px 12px;
	border: 1px solid #ece4ef;
	border-radius: 22px;
	background: linear-gradient(180deg, #fff, #fdfbfe);
}

.shugen-top-feature__heading {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	column-gap: 8px;
	margin-bottom: 12px;
}

.shugen-top-feature__icon {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: inline-block;
	margin: 2px 0 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='ring' x1='3' y1='3' x2='21' y2='21'%3E%3Cstop stop-color='%23EDE3F5'/%3E%3Cstop offset='.5' stop-color='%239A7AB4'/%3E%3Cstop offset='1' stop-color='%235A406B'/%3E%3C/linearGradient%3E%3ClinearGradient id='gold' x1='8' y1='6' x2='16' y2='18'%3E%3Cstop stop-color='%23F7E9B2'/%3E%3Cstop offset='.55' stop-color='%23D2A64A'/%3E%3Cstop offset='1' stop-color='%23996B1F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='12' cy='12' r='10.2' fill='url(%23ring)'/%3E%3Ccircle cx='12' cy='12' r='8.05' fill='%23FFF9FF' fill-opacity='.68' stroke='%23745A86' stroke-width='.55'/%3E%3Cg fill='%23624A75'%3E%3Cpath d='M12 3.6l1.15 5.72L12 11.1 10.85 9.32Z'/%3E%3Cpath d='M20.4 12l-5.72 1.15L12.9 12l1.78-1.15Z'/%3E%3Cpath d='M12 20.4l-1.15-5.72L12 12.9l1.15 1.78Z'/%3E%3Cpath d='M3.6 12l5.72-1.15L11.1 12l-1.78 1.15Z'/%3E%3C/g%3E%3Cg fill='url(%23gold)'%3E%3Cpath d='M16.95 7.05l-2.9 4.01-1.11.99 1-1.12Z'/%3E%3Cpath d='M16.95 16.95l-4.01-2.9-.99-1.11 1.12 1Z'/%3E%3Cpath d='M7.05 16.95l2.9-4.01 1.11-.99-1 1.12Z'/%3E%3Cpath d='M7.05 7.05l4.01 2.9.99 1.11-1.12-1Z'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.1' fill='%23F7ECBE' stroke='%23624A75' stroke-width='.7'/%3E%3Ccircle cx='12' cy='12' r='.9' fill='%23624A75'/%3E%3Cg fill='%23C79C43'%3E%3Ccircle cx='12' cy='1.6' r='.65'/%3E%3Ccircle cx='22.4' cy='12' r='.65'/%3E%3Ccircle cx='12' cy='22.4' r='.65'/%3E%3Ccircle cx='1.6' cy='12' r='.65'/%3E%3C/g%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	border: 0;
	color: transparent;
	font-size: 0;
	line-height: 0;
	text-indent: -9999px;
	overflow: hidden;
}

#shugen-feature-psychology-heading,
#shugen-feature-situation-heading,
#shugen-feature-next-step-heading {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
	background: none !important;
	background-image: none !important;
	box-shadow: none !important;
	text-decoration: none !important;
	color: #4a3f50;
	font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.58;
	letter-spacing: .03em;
}

#shugen-feature-psychology-heading::before,
#shugen-feature-psychology-heading::after,
#shugen-feature-situation-heading::before,
#shugen-feature-situation-heading::after,
#shugen-feature-next-step-heading::before,
#shugen-feature-next-step-heading::after {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}



.shugen-top-feature p {
	margin: 0;
	color: #807684;
	font-size: 13px;
	line-height: 1.82;
}

.shugen-top-features__cta {
	margin-top: 14px;
	text-align: center;
}

.shugen-top-features__start {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 4px;
	border: 0;
	border-bottom: 1px solid rgba(117, 101, 125, .28);
	background: transparent;
	color: #75657d;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .04em;
	cursor: pointer;
}

.shugen-top-features__start:hover,
.shugen-top-features__start:focus-visible {
	color: #5f4e68;
	border-bottom-color: #8b7197;
	transform: translateY(-1px);
}

.shugen-app--noscript {
	margin-top: 24px;
}

@media (max-width: 900px) {
	.shugen-app,
	.shugen-app:has(.shugen-app__question),
	.shugen-app:has(.shugen-app__section) {
		width: calc(100% - 36px);
		margin: 25px auto 52px;
	}

	.shugen-app__card {
		padding: 42px 30px 38px;
	}

	.shugen-app__choices {
		grid-template-columns: 1fr;
	}

	.shugen-app__card:has(.shugen-app__question) {
		padding: 46px 36px 40px;
	}

	.shugen-app__card:has(.shugen-app__section) {
		grid-template-columns: 1fr;
		padding: 46px 30px 40px;
	}

	.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow,
	.shugen-app__card:has(.shugen-app__section) > .shugen-app__title,
	.shugen-app__card:has(.shugen-app__section) > .shugen-app__actions,
	.shugen-app__section:first-of-type,
	.shugen-app__section:last-of-type {
		grid-column: 1;
	}

	.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow {
		margin-bottom: 14px;
		font-size: 12px;
		gap: 10px;
	}

	.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow::before,
	.shugen-app__card:has(.shugen-app__section) > .shugen-app__eyebrow::after {
		width: 26px !important;
		flex-basis: 26px !important;
	}


	.shugen-app__section--shugen {
		grid-template-columns: 132px minmax(0, 1fr);
		gap: 18px;
	}

	.shugen-app__guide-media {
		width: 132px;
		height: 164px;
	}

	.shugen-hero {
		min-height: auto;
	}

	.shugen-hero .hero-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 32px 22px 24px;
		gap: 16px;
	}

	.shugen-hero .copy {
		max-width: none;
		padding: 0;
	}

	#shugen-hero-title {
		font-size: 36px;
	}

	.shugen-hero .lead {
		font-size: 14px;
		line-height: 2.02;
	}

	.shugen-hero .lead-line {
		white-space: normal;
	}

	.shugen-hero .actions {
		display: block;
	}

	.shugen-hero .btn {
		width: 100%;
		min-width: 0;
		font-size: 15px;
	}

	.shugen-hero .visual {
		order: -1;
		min-height: 300px;
		margin-bottom: 8px;
	}

	.shugen-hero .visual-img {
		top: 0;
		right: -7%;
		width: 114%;
		height: 100%;
		object-fit: cover;
		object-position: center top;
		-webkit-mask-image:
			linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 12%, #000 28%, #000 78%, rgba(0, 0, 0, .50) 90%, transparent 100%),
			linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
		mask-image:
			linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 12%, #000 28%, #000 78%, rgba(0, 0, 0, .50) 90%, transparent 100%),
			linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
	}

	.shugen-hero .visual::before {
		left: -7%;
		right: -7%;
		background:
			linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .72) 10%, rgba(255, 255, 255, .18) 30%, rgba(255, 255, 255, .08) 72%, rgba(255, 255, 255, .80) 100%),
			linear-gradient(90deg, rgba(244, 224, 233, .25) 16%, rgba(244, 224, 233, 0) 100%);
	}

	.shugen-hero .visual::after {
		left: -7%;
		right: -7%;
	}

	.shugen-hero .bottom-note {
		bottom: 28px;
		width: min(86%, 300px);
		font-size: 18px;
	}

	.shugen-top-features__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.shugen-saved-results-entry {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 44px;
		margin-top: 10px;
		padding: 0 18px;
		border: 1px solid #ded2e3;
		border-radius: 999px;
		background: rgba(255, 255, 255, .88);
		color: #67566f;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .03em;
	}

	.shugen-app__mobile-save {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-top: 20px;
		padding-top: 18px;
		border-top: 1px solid #eadfeb;
	}

	.shugen-app__mobile-save .shugen-app__button {
		width: 100%;
	}

	.shugen-app__button--save {
		background: linear-gradient(135deg, #816391 0%, #634a74 100%);
	}

	.shugen-app__button--saved:disabled {
		opacity: .78;
		cursor: default;
	}

	.shugen-app__save-note {
		margin: 3px 4px 0;
		color: #8a7d90;
		font-size: 10.5px;
		line-height: 1.7;
		text-align: center;
	}

	.shugen-app__save-status {
		margin: 0;
		color: #5e4a69;
		font-size: 12px;
		font-weight: 700;
		text-align: center;
	}

	.shugen-app__saved-card {
		padding: 30px 15px 25px;
	}

	.shugen-app__saved-card .shugen-app__lead {
		margin-bottom: 0;
	}

	.shugen-app__saved-list {
		gap: 11px;
		margin-top: 20px;
	}

	.shugen-app__saved-item {
		padding: 15px;
		border-radius: 17px;
		background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(251, 247, 252, .96));
		box-shadow: 0 9px 24px rgba(81, 60, 94, .06);
	}

	.shugen-app__saved-meta {
		margin-bottom: 6px;
		font-size: 10.5px;
	}

	.shugen-app__saved-title {
		font-size: 15px;
		font-weight: 600;
		line-height: 1.72;
	}

	.shugen-app__saved-detail > .shugen-app__saved-detail-meta {
		display: inline-flex;
		width: auto;
		margin: 0 0 13px;
		padding: 5px 9px;
		border: 1px solid #eadfee;
		border-radius: 999px;
		background: #faf7fb;
		color: #8a7b91;
		font-size: 10px;
	}

	.shugen-app__saved-card .shugen-app__actions,
	.shugen-app__saved-detail .shugen-app__actions {
		margin-top: 20px;
	}

	.shugen-app__saved-item-actions {
		align-items: stretch;
		gap: 8px;
		margin-top: 13px;
	}

	.shugen-app__saved-open,
	.shugen-app__saved-delete {
		min-height: 44px;
		font-size: 12px;
	}

	.shugen-app__saved-open {
		flex: 1 1 auto;
	}

	.shugen-app__saved-delete {
		flex: 0 0 76px;
	}
	.shugen-diagnosis-page {
		background: linear-gradient(180deg, #fbf9fc 0%, #f6f2f7 100%);
	}

	.shugen-top-page .shugen-hero .hero-inner {
		padding-top: 0;
	}

	.shugen-app,
	.shugen-app:has(.shugen-app__question),
	.shugen-app:has(.shugen-app__section) {
		width: calc(100% - 20px);
		margin: 12px auto 28px;
		font-size: 15px;
	}

	.shugen-app__card,
	.shugen-app__card:has(.shugen-app__question),
	.shugen-app__card:has(.shugen-app__section) {
		padding: 30px 17px 25px;
		border-radius: 23px;
		box-shadow: 0 16px 44px rgba(70, 48, 83, .08);
	}

	.shugen-app__card > * {
		max-width: none;
	}

	.shugen-app__eyebrow {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.shugen-app__eyebrow::before {
		width: 18px;
		flex-basis: 18px;
	}

	.shugen-app__progress {
		font-size: 10px;
		margin-bottom: 11px;
		padding: 5px 9px;
	}

	.shugen-app .shugen-app__title,
	.shugen-app .shugen-app__question {
		font-size: 20px !important;
		line-height: 1.55 !important;
	}

	.shugen-app .shugen-app__title {
		margin-bottom: 12px !important;
	}

	.shugen-app__card:has(.shugen-app__section) > .shugen-app__title {
		font-size: 25px !important;
		line-height: 1.45 !important;
	}

	.shugen-app__lead {
		font-size: 12px;
		line-height: 1.9;
	}

	.shugen-app__choices,
	.shugen-app__card:has(.shugen-app__question) .shugen-app__choices {
		gap: 9px;
		margin-top: 23px;
	}

	.shugen-app__choice {
		min-height: 62px;
		grid-template-columns: 36px 1fr 18px;
		padding: 11px 13px 11px 11px;
		border-radius: 16px;
		font-size: 13px;
	}

	.shugen-app__card:not(:has(.shugen-app__question)):not(:has(.shugen-app__section)) .shugen-app__choice::before {
		width: 28px;
		height: 28px;
		font-size: 9px;
	}

	.shugen-app__card:has(.shugen-app__question) .shugen-app__choice {
		grid-template-columns: 25px 1fr 16px;
		min-height: 60px;
		padding: 12px 13px;
	}

	.shugen-app__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		margin-top: 21px;
		padding-top: 17px;
	}

	.shugen-app__button {
		width: 100%;
		min-height: 48px;
		padding: 0 15px;
	}

	.shugen-app__result-note {
		margin: 1px 3px 0;
		font-size: 10px;
		line-height: 1.65;
	}

	.shugen-app__section,
	.shugen-app__section:first-of-type,
	.shugen-app__section:last-of-type {
		padding: 19px 16px 18px;
		border-radius: 17px;
	}

	.shugen-app__section:first-of-type {
		margin-top: 6px;
	}

	.shugen-app .shugen-app__section-title {
		font-size: 16px !important;
	}

	.shugen-app__section p,
	.shugen-app__section:first-of-type p,
	.shugen-app__section:last-of-type p {
		font-size: 12.5px;
		line-height: 1.92;
	}

	.shugen-app__section:last-of-type::after {
		right: 15px;
		font-size: 34px;
	}

	.shugen-app__card:has(.shugen-app__section) > .shugen-app__actions {
		margin-top: 4px;
		padding-top: 0;
		border-top: 0;
	}

	.shugen-app__section--shugen {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.shugen-app__guide-media {
		width: 138px;
		height: 172px;
		margin: 0 auto;
	}

	.shugen-app__guide-copy {
		text-align: left;
	}

	.shugen-app__sponsor-link {
		padding: 11px 14px 5px;
		border-radius: 13px;
	}

	.shugen-app__sponsor-label {
		font-size: 10px;
	}

	.shugen-app__sponsor-text {
		font-size: 15px;
		line-height: 1.6;
	}

	.shugen-app__sponsor-mobile-break {
		display: block;
		height: 4px;
	}

	.shugen-top-features {
		padding: 24px 20px 26px;
	}

	.shugen-top-feature {
		min-height: 0;
		padding: 14px 16px 12px;
	}

	#shugen-feature-psychology-heading,
	#shugen-feature-situation-heading,
	#shugen-feature-next-step-heading {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shugen-app__choice,
	.shugen-app__button,
	.shugen-top-features__start {
		transition: none;
	}
}

/* Desktop hero: retain the original ~480px hero height while filling the rectangular image area. */
@media (min-width: 901px) {
  .shugen-hero .visual-img {
    object-fit: cover;
    object-position: center 45%;
  }
  .shugen-hero .visual::before {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .76) 9%, rgba(255, 255, 255, .35) 22%, rgba(255, 255, 255, .10) 37%, rgba(255, 255, 255, 0) 54%),
      linear-gradient(90deg, rgba(244, 224, 233, .20) 18%, rgba(244, 224, 233, .07) 54%, rgba(244, 224, 233, 0) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, .03) 24%, rgba(255, 255, 255, .04) 76%, rgba(255, 255, 255, .58) 100%);
  }
}

