:root {
	--color-item1: black;
	--color-item2: red;
	--color-item3: green;
}

.compare-close {
	position: absolute;
	z-index: 3;
	appearance: none;
	top: -12px;
	right: -12px;
	cursor: pointer;
	width: 24px;
	height: 24px;
	border: none;
	background: transparent url(../../resources/defaults/compare_close.png) center center no-repeat;
}

.item-value div {
	max-height: 100px;
	overflow: auto;
}

.products-strip {
	display: flex;
	gap: 15px;
	padding: 15px 0;
	border: 1px solid lightgray;
	overflow-x: auto;
}

.products-strip::before,
.products-strip::after {
  content: "";
  flex: 0 1 50%;
}

.products-strip>* {
	flex: 0 0 200px;
	position: relative;
}

.products-strip figure {
	--space: 5px;
	height: 135px;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #e9e9e9;
	border: 3px solid #e9e9e9;
	margin: 0;
	/* padding: var(--space); */
	cursor: pointer;
	overflow: hidden;
}
.product-strip-link {
	display: block;
	padding-top: 10px;
	text-align: center;
	text-decoration: none;
}

.products-strip figure.style1.selected {
	border-color: var(--color-item1);
}
.products-strip figure.style2.selected {
	border-color: var(--color-item2);
}
.products-strip figure.style3.selected {
	border-color: var(--color-item3);
}

.products-strip figcaption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	line-height: 1.1;
	padding: var(--space);
	background: #00000055;
	color: white;
}

/* 写真の表示 */
.bending-curve-frame {
	margin-left: auto;
	margin-right: auto;
	position: relative;
	/* pic size: 1500x1500 */
	max-width: 860px;
	max-height: 860px;
	width: 90vw;
	height: 90vw;
	aspect-ratio: 1/1;
	background: url(../../resources/defaults/compare_grid.png?updt=20230303) bottom left repeat;
	background-size: contain;
	border: 1px solid lightgray;
	/* ズームを使いたい時にautoにする（JSも直しが必要） */
	overflow: hidden;
}

/* img tag */
.bending-curve {
	display: none;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 1;
	opacity: 0.65;
	height: auto;
	max-width: 1500px;
	max-height: 1500px;
}

.bending-curve.selected.on {
	display: block;
}

.bending-curve.style1 {
	opacity: 0.8;
}
.bending-curve.style2 {
	opacity: 0.5;
	filter: sepia(100%) saturate(100);
	z-index: 3;
}
.bending-curve.style3 {
	opacity: 0.5;
	filter: sepia(100%) saturate(100) hue-rotate(100deg);
	z-index: 5;
}

/* 数字ボタン */
.bending-curve-controls {
	display: flex;
	justify-content: center;
	align-items: center;
}

.bending-curve-controls .btn-bending {
	min-width: 2em;
	margin-bottom: 10px;
}

.bending-curve-controls>label {
	padding: 10px;
}
.bending-curve-controls>.curve-slider {
	flex: 1 1 250px;
	display: flex;
	flex-direction: column;
	padding: 10px;
}

.curve-slider input {
	flex: 1;
}
.curve-slider datalist {
  margin-top: 10px;
	display: flex;
  flex-direction: column;
  justify-content: space-between;
  writing-mode: vertical-lr;
	align-content: flex-start;
	flex: 1;
}

.btn-bending {
	/* appearance: none; */
  border-width:1px;
  color:#ffffff;
  border-color:#124d77;
  border-top-left-radius:3px;
  border-top-right-radius:3px;
  border-bottom-left-radius:3px;
  border-bottom-right-radius:3px;
  background:linear-gradient(#007dc1, #0061a7);
}
.btn-bending.on {
	background:linear-gradient(#00C160, #10a700);
}

.bending-curve-frame .btn-bending {
	position: sticky;
	top: 10px;
	left: 10px;
	z-index: 99;
	width: 3em;
}

#names-container {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 98;
}

#names-container>.style1 {
	color: var(--color-item1);
	font-weight: bold;
	text-shadow: 1px 1px 0 white, 0 0 10px var(--color-item1);
}
#names-container>.style2 {
	color: var(--color-item2);
	font-weight: bold;
	text-shadow: 1px 1px 0 white, 0 0 10px var(--color-item2);
}
#names-container>.style3 {
	color: var(--color-item3);
	font-weight: bold;
	text-shadow: 1px 1px 0 white, 0 0 10px var(--color-item3);
}

.curve-selector {
	width: 100%;
	max-width: 860px;
	display: flex;
	justify-content: center;
}
.curve-selector>* {
	margin: 0 10px;
	display: block;
}

.weights-scroller {
	overflow-x: auto;
	display: flex;
}
.weights-scroller::before,
.weights-scroller::after {
	content: "";
	flex: 0 1 50%;
}

.weights-scroller>* {
	margin: 0 5px;
	padding: 5px;
	display: flex;
	align-items: center;
}
.weights-scroller span {
	writing-mode: vertical-lr;
}

/* 比較詳細 */
.compare-grid {
	display: flex;
	flex-direction: column;
}

.compare-line {
	display: flex;
	flex-direction: row;
}

.compare-line:nth-child(n + 2)>* {
	border-top: 1px dotted gray;
}

/* each product column */
.compare-line>* {
	flex: 1;
	padding: 5px;
	min-width: 10em;
}
.compare-line :first-child {
	font-weight: bold;
}

.compare-line :nth-child(n + 2) {
	display: none;
	border-left: 1px dotted gray;
}

/* specific columns */
.compare-line .product_name {
	font-weight: bold;
	text-align: center;
}

.compare-line .list_price:nth-child(n + 2),
.compare-line .ft_length:nth-child(n + 2),
.compare-line .m_length:nth-child(n + 2),
.compare-line .closed_dimensions:nth-child(n + 2),
.compare-line .rod_weight:nth-child(n + 2),
.compare-line .lure_weight:nth-child(n + 2),
.compare-line .conformity_line:nth-child(n + 2),
.compare-line .conformity_line_pe:nth-child(n + 2)
{
	text-align: right	;
}

.compare-line .evaluation:nth-child(n + 2) {
	text-align: center;
}

.comment-ful {
	display: none;
}

.btn-compare-comment {
	display: inline-block;
	line-height: 1;
	padding: 0 10px;
}

@media (max-width: 700px) {
	.compare-scroller {
		position: relative;
	}
	.compare-scroller:not(.maxscroll)::after {
		position: absolute;
		content: "";
		top: 0;
		bottom: 0;
		right: 0;
		width: 10px;
		background: rgb(255,255,255);
		background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(225,225,225,1) 100%);
	}

	.compare-grid {
		overflow-x: auto;
	}

	.compare-line {
		padding-left: 11em;
		font-size: 10pt;
		min-height: 2em;
	}
	/* .compare-line>* {
		font-size: 10pt;
		min-height: 2em;
	} */
	.compare-line>:first-child {
		position: absolute;
		left: 0;
		width: 11em;
		background: #eee;
	}
}

@media (max-width: 600px) {
	.products-strip figure {
		flex: 0 0 150px;
	}
}

@media screen and (max-width:459px) {
	.md-min-h-40 {
		min-height: 40px;
	}
}

@media (min-width: 768px) {
	.font-14 {
		font: unset !important;
	}

	.item-key {
		font-family: Kozuka B;
	}
}