/**
 * NitoVote — プラグイン固有。テーマ（SWELL含む）の要素は上書きしない。
 */

.ntv,
.ntv * {
	box-sizing: border-box;
}

.ntv {
	--ntv-pink: #e91e63;
	--ntv-pink-bg: #fce4ec;
	--ntv-pink-bd: #f8bbd0;
	--ntv-blue: #1e88e5;
	--ntv-blue-bg: #e3f2fd;
	--ntv-blue-bd: #90caf9;
	--ntv-text: #222;
	--ntv-muted: #6b6b6b;
	--ntv-line: #eee;
	max-width: 720px;
	margin: 0 auto;
	color: var(--ntv-text);
	font-size: 16px;
	line-height: 1.65;
	word-break: break-word;
	font-family: inherit;
}

.ntv a {
	color: inherit;
}

.ntv button,
.ntv input,
.ntv select,
.ntv textarea {
	font-family: inherit;
}

.ntv-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.ntv-ico {
	display: inline-block;
	vertical-align: -3px;
	flex-shrink: 0;
}

.ntv-ico--lg {
	vertical-align: middle;
}

.ntv-search {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
}

.ntv .ntv-search__input {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
}

.ntv .ntv-search__btn,
.ntv .ntv-more,
.ntv .ntv-submit {
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: var(--ntv-pink);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.ntv .ntv-more,
.ntv .ntv-submit {
	width: 100%;
	margin-top: 12px;
}

.ntv-filters {
	margin-bottom: 16px;
}

.ntv-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.ntv .ntv-cat {
	height: 36px;
	padding: 0 12px;
	border: 1px solid #e0e0e0;
	border-radius: 18px;
	background: #fff;
	color: #333;
	font-size: 13px;
	cursor: pointer;
}

.ntv .ntv-cat.is-on {
	border-color: var(--ntv-pink);
	background: var(--ntv-pink);
	color: #fff;
}

.ntv .ntv-sort__select {
	height: 36px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	padding: 0 8px;
}

.ntv-theme-list,
.ntv-rank {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ntv-card {
	border: 1px solid var(--ntv-line);
	border-radius: 12px;
	margin-bottom: 10px;
	background: #fff;
}

.ntv-card__link {
	display: block;
	padding: 14px 14px;
	text-decoration: none;
}

.ntv-card__title {
	display: block;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.45;
}

.ntv-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
	color: var(--ntv-muted);
	font-size: 13px;
}

.ntv-card__state.is-voted {
	color: var(--ntv-pink);
	font-weight: 700;
}

.ntv-back {
	margin: 0 0 10px;
	font-size: 13px;
}

.ntv-back a {
	color: var(--ntv-muted);
	text-decoration: none;
}

.ntv-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.ntv-head__main {
	flex: 1;
	min-width: 0;
}

.ntv-crumb {
	margin: 0 0 6px;
	font-size: 12px;
	color: var(--ntv-pink);
	font-weight: 700;
}

.ntv h1,
.ntv h2,
.ntv h3,
.ntv h4 {
	all: unset;
	display: block;
	box-sizing: border-box;
	color: var(--ntv-text);
	font-family: inherit;
	font-style: normal;
	font-variant: normal;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: 0;
	padding: 0;
	max-width: none;
}

.ntv h1::before,
.ntv h1::after,
.ntv h2::before,
.ntv h2::after,
.ntv h3::before,
.ntv h3::after {
	content: none !important;
	display: none !important;
	border: 0 !important;
	background: none !important;
	width: 0 !important;
	height: 0 !important;
}

.ntv h1.ntv-title,
.ntv h2.ntv-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 800;
	letter-spacing: -0.02em;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.ntv-head__meta {
	flex: 0 0 auto;
	text-align: right;
}

.ntv-count,
.ntv-date {
	margin: 0;
	color: var(--ntv-muted);
	font-size: 12px;
	line-height: 1.5;
}

.ntv-hint {
	margin: 4px 0 14px;
	color: var(--ntv-muted);
	font-size: 13px;
}

.ntv-choices {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ntv .ntv-choice {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 120px;
	padding: 16px 8px;
	border: 2px solid #ddd;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.ntv .ntv-choice--a {
	border-color: var(--ntv-pink-bd);
	color: var(--ntv-pink);
	background: var(--ntv-pink-bg);
}

.ntv .ntv-choice--b {
	border-color: var(--ntv-blue-bd);
	color: var(--ntv-blue);
	background: var(--ntv-blue-bg);
}

.ntv .ntv-choice:disabled {
	opacity: 0.7;
	cursor: default;
}

.ntv-choice__label {
	display: block;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
}

.ntv-gate {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fff5f7;
	color: #c2185b;
	font-size: 13px;
	line-height: 1.5;
}

.ntv-gate__icon {
	color: #e53935;
	margin-top: 2px;
}

.ntv-gate__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ntv-gate__text strong {
	font-size: 14px;
}

.ntv-gate__text span {
	color: #8d4b63;
	font-size: 12px;
}

.ntv-results,
.ntv-reviews {
	margin: 20px 0 0;
	padding-top: 4px;
}

.ntv h2.ntv-sec-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 800;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.ntv-donut-wrap {
	display: grid;
	grid-template-columns: 1fr 148px 1fr;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.ntv-donut {
	position: relative;
	width: 148px;
	height: 148px;
	margin: 0 auto;
}

.ntv-donut__ring {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: conic-gradient(from 270deg, var(--ntv-pink) 0 var(--ntv-a, 50%), var(--ntv-blue) var(--ntv-a, 50%) 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
	mask: radial-gradient(farthest-side, transparent 62%, #000 63%);
}

.ntv-donut__center {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	line-height: 1.3;
}

.ntv-donut__center span {
	display: block;
	font-size: 11px;
	color: var(--ntv-muted);
}

.ntv-donut__center strong {
	display: block;
	font-size: 16px;
}

.ntv-donut-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ntv-donut-stat--a {
	text-align: right;
	color: var(--ntv-pink);
	padding-right: 4px;
}

.ntv-donut-stat--b {
	text-align: left;
	color: var(--ntv-blue);
	padding-left: 4px;
}

.ntv-donut-stat__label {
	font-size: 13px;
	font-weight: 700;
}

.ntv-donut-stat__pct {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.ntv-donut-stat__n {
	font-size: 12px;
	opacity: 0.85;
}

.ntv-share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 2px 0 0;
}

.ntv-share__label {
	margin-right: 2px;
	font-size: 11px;
	color: #9a9a9a;
	letter-spacing: 0.04em;
}

.ntv .ntv-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid #e6e6e6;
	border-radius: 50%;
	background: transparent;
	color: #9a9a9a;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.ntv .ntv-share__btn.is-copied {
	color: #666;
	border-color: #ccc;
}

.ntv-you {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--ntv-muted);
	text-align: center;
}

.ntv-reviews__tools {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--ntv-line);
}

.ntv-tabs {
	display: flex;
	gap: 0;
	min-width: 0;
}

.ntv .ntv-tab {
	height: 40px;
	padding: 0 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	white-space: nowrap;
}

.ntv .ntv-tab.is-on {
	border-bottom-color: var(--ntv-pink);
	color: var(--ntv-text);
	font-weight: 800;
}

.ntv-review-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ntv-review {
	padding: 14px 12px;
	border: 1px solid var(--ntv-line);
	border-radius: 12px;
	background: #fff;
}

.ntv-review__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 6px;
	font-size: 13px;
}

.ntv-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
}

.ntv-badge--a {
	color: var(--ntv-pink);
	background: var(--ntv-pink-bg);
}

.ntv-badge--b {
	color: var(--ntv-blue);
	background: var(--ntv-blue-bg);
}

.ntv-review__no {
	color: var(--ntv-muted);
	font-size: 13px;
	font-weight: 700;
}

.ntv-review__id {
	color: var(--ntv-muted);
	font-size: 12px;
}

.ntv .ntv-anchor {
	color: #1565c0;
	text-decoration: underline;
	font-size: 0.95em;
	cursor: pointer;
}

.ntv-review.is-target {
	animation: ntv-target 1.6s ease;
}

@keyframes ntv-target {
	0% {
		background: var(--ntv-blue-bg);
	}
	100% {
		background: #fff;
	}
}

.ntv-review__body {
	margin: 0;
	font-size: 15px;
}

.ntv-review__body p {
	margin: 0 0 0.5em;
}

.ntv-review__body p:last-child {
	margin-bottom: 0;
}

.ntv-review__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 12px;
	color: var(--ntv-muted);
}

.ntv .ntv-helpful {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: transparent;
	color: #555;
	padding: 0;
	cursor: pointer;
	font-size: 12px;
}

.ntv .ntv-helpful.is-on {
	color: var(--ntv-pink);
	font-weight: 700;
}

.ntv-review__aside {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ntv .ntv-reply,
.ntv .ntv-report {
	border: 0;
	background: transparent;
	color: #999;
	cursor: pointer;
	font-size: 12px;
	padding: 0;
	text-decoration: underline;
}

.ntv .ntv-reply {
	color: #1565c0;
}

.ntv-form-wrap {
	margin-top: 16px;
}

.ntv-form {
	position: relative;
	padding: 14px 12px;
	border: 1px solid var(--ntv-line);
	border-radius: 12px;
	background: #fafafa;
}

.ntv-form label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
}

.ntv .ntv-form input[type="text"],
.ntv .ntv-form textarea {
	width: 100%;
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fff;
	font-size: 16px;
}

.ntv .ntv-form textarea {
	min-height: 110px;
	resize: vertical;
}

.ntv-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.ntv-related {
	margin-top: 28px;
	padding-top: 8px;
}

.ntv h3.ntv-related__head {
	margin: 0 0 10px;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 800;
}

.ntv-msg {
	margin: 8px 0;
	font-size: 13px;
	color: #c62828;
}

.ntv-empty {
	padding: 16px 0;
	color: var(--ntv-muted);
	list-style: none;
}

.ntv-rank__item a {
	display: grid;
	grid-template-columns: 3.5em 1fr auto;
	gap: 8px;
	padding: 12px 14px;
	border: 1px solid var(--ntv-line);
	border-radius: 12px;
	margin-bottom: 8px;
	text-decoration: none;
	background: #fff;
}

.ntv-rank__pos {
	color: var(--ntv-pink);
	font-size: 13px;
	font-weight: 800;
}

.ntv-seo-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 16px;
}

@media (max-width: 520px) {
	.ntv-head {
		flex-wrap: wrap;
	}

	.ntv-head__meta {
		width: 100%;
		text-align: left;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px 12px;
	}

	.ntv h1.ntv-title,
	.ntv h2.ntv-title {
		font-size: 20px;
	}

	.ntv .ntv-choice {
		min-height: 108px;
	}

	.ntv-choice__label {
		font-size: 20px;
	}

	.ntv-donut-wrap {
		grid-template-columns: 1fr 120px 1fr;
	}

	.ntv-donut {
		width: 120px;
		height: 120px;
	}

	.ntv-donut-stat__pct {
		font-size: 22px;
	}

	.ntv .ntv-tab {
		padding: 0 8px;
		font-size: 12px;
	}
}
