/* ApparelX Wiki の用語の目印とカード(商品ページ) */
.wikiterm {
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-color: #7ea8df;
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
	border-radius: 3px;
	cursor: help;
	transition: background-color .12s ease, text-decoration-color .12s ease;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.wikiterm:hover, .wikiterm.is-active, .wikiterm:focus-visible {
	background-color: #dce8f9;
	text-decoration-color: #1b5bb3;
	outline: none;
}
.wikiterm:focus-visible {
	box-shadow: 0 0 0 2px #7ea8df;
}
.wikitermcard, .wikitermsheet, .wikitermcard div, .wikitermsheet div {
	word-break: normal;
	overflow-wrap: anywhere;
}
.wikitermcard {
	position: absolute;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 396px;
	max-width: calc(100vw - 24px);
	box-sizing: border-box;
	padding: 16px 18px 14px;
	border: 1px solid #dce3ee;
	border-radius: 14px;
	background: #ffffff;
	color: #2a3442;
	box-shadow: 0 18px 40px rgba(22, 52, 95, .16), 0 2px 6px rgba(22, 52, 95, .06);
	font-size: 14px;
	line-height: 1.8;
	text-align: right;
}
.wikitermcard[hidden], .wikitermsheet[hidden], .wikitermsheet_back[hidden], .wikitermcard [hidden], .wikitermsheet [hidden] {
	display: none;
}
.wikitermcard_caret {
	position: absolute;
	top: -7px;
	right: var(--wikiterm-caret-left, 36px);
	width: 12px;
	height: 12px;
	margin-right: -6px;
	box-sizing: border-box;
	border-top: 1px solid #dce3ee;
	border-right: 1px solid #dce3ee;
	background: #ffffff;
	transform: rotate(45deg);
}
.wikitermcard.is-above .wikitermcard_caret {
	top: auto;
	bottom: -7px;
	border: 0;
	border-left: 1px solid #dce3ee;
	border-bottom: 1px solid #dce3ee;
}
.wikitermcard_eyebrow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: #1b5bb3;
	font-size: 11px;
	font-weight: bold;
	line-height: 16px;
	letter-spacing: .06em;
}
.wikitermcard_mark {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 2px;
	background: repeating-linear-gradient(135deg, #1b5bb3 0 2px, transparent 2px 4.5px);
}
.wikitermcard_dot {
	flex-shrink: 0;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #1b5bb3;
}
.wikitermcard_head {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
}
.wikitermcard_name {
	color: #16345f;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.4;
}
.wikitermcard_sub {
	color: #5f6b7a;
	font-size: 12px;
	line-height: 1.5;
}
.wikitermcard_definition {
	margin: 0;
	color: #2a3442;
	font-size: 14px;
	line-height: 1.8;
}
.wikitermcard_foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid #eef1f5;
}
.wikitermcard_link, .wikitermsheet_link {
	border-radius: 10px;
	background: #1b5bb3;
	color: #ffffff;
	font-weight: bold;
	text-decoration: none;
	transition: background-color .12s ease;
}
.wikitermcard_link {
	padding: 9px 14px;
	font-size: 13px;
	line-height: 18px;
}
.wikitermcard_link:hover, .wikitermcard_link:focus-visible, .wikitermsheet_link:active {
	background: #16345f;
	color: #ffffff;
	text-decoration: none;
}
.wikitermcard_products, .wikitermsheet_products {
	color: #1b5bb3;
	font-weight: bold;
	text-decoration: none;
}
.wikitermcard_products {
	font-size: 13px;
	line-height: 18px;
}
.wikitermcard_products:hover, .wikitermcard_products:focus-visible {
	color: #16345f;
	text-decoration: underline;
}
.wikitermsheet_back {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(22, 52, 95, .32);
	opacity: 0;
	transition: opacity .22s ease;
	touch-action: none;
}
.wikitermsheet_back.is-open {
	opacity: 1;
}
.wikitermsheet {
	position: fixed;
	right: 0;
	left: 0;
	bottom: 0;
	z-index: 1001;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 85vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	padding: 8px 20px calc(26px + env(safe-area-inset-bottom, 0px));
	border-radius: 20px 20px 0 0;
	background: #ffffff;
	color: #2a3442;
	box-shadow: 0 -10px 34px rgba(22, 52, 95, .22);
	text-align: right;
	transform: translateY(100%);
	transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.wikitermsheet.is-open {
	transform: translateY(0);
}
.wikitermsheet.is-dragging {
	transition: none;
}
.wikitermsheet_grip {
	flex-shrink: 0;
	align-self: center;
	width: 40px;
	height: 5px;
	border-radius: 3px;
	background: #cbd3df;
}
.wikitermsheet_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.wikitermsheet_close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin: -6px 0 -6px -10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f2f5fa;
	color: #465262;
	cursor: pointer;
}
.wikitermsheet_close:focus-visible {
	outline: 2px solid #7ea8df;
	outline-offset: 1px;
}
.wikitermsheet .wikitermcard_head {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.wikitermsheet .wikitermcard_name {
	font-size: 21px;
	line-height: 1.35;
}
.wikitermsheet .wikitermcard_sub {
	font-size: 13px;
}
.wikitermsheet .wikitermcard_definition {
	font-size: 15px;
	line-height: 1.85;
}
.wikitermsheet_link {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	margin-top: 8px;
	padding: 6px 16px;
	box-sizing: border-box;
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}
.wikitermsheet_products {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}
@media (prefers-reduced-motion: reduce) {
	.wikiterm, .wikitermsheet, .wikitermsheet_back, .wikitermcard_link, .wikitermsheet_link {
		transition: none;
	}
}
