@charset "utf-8";

html {
	--search-icon: oklch(45% 0.00 149.84);
	--button-border: oklch(75% 0.00 149.84);
	--text-color-sub: oklch(35% 0.00 149.84);
	--background-input: oklch(99% 0 0);


	--count-comment: oklch(55% 0.21 261);
	--count-like: oklch(55% 0.21 315);
	--count-mylist: oklch(55% 0.21 15);
	--count-comment-back: oklch(90% 0.05 261);
	--count-like-back: oklch(90% 0.05 315);
	--count-mylist-back: oklch(90% 0.05 15);
	--rank-box-rank: oklch(92% 0 0);
	--rank-box: oklch(99% 0 0);
	--thumbnail-back: oklch(32% 0 0);
}

html.Dark {
	--background-body: oklch(5% 0.00 149.84);
	--search-icon: oklch(70% 0.00 149.84);
	--button-border: oklch(55% 0.00 149.84);
	--text-color-sub: oklch(75% 0.00 149.84);
	--background-input: oklch(30% 0 0);


	--count-comment: oklch(80% 0.21 261);
	--count-like: oklch(80% 0.21 315);
	--count-mylist: oklch(80% 0.21 15);
	--count-comment-back: oklch(30% 0.05 261);
	--count-like-back: oklch(30% 0.05 315);
	--count-mylist-back: oklch(30% 0.05 15);

	--rank-box-rank: oklch(30% 0 0);
	--rank-box: oklch(21% 0 0);
	--thumbnail-back: oklch(10% 0 0);
}

/* ローディング */
#loading-php {
	display: none;
}

/* 全体*/
.result_main {
	display: flex;
	gap: 15px;
	padding: 15px;
}

/* 検索枠 */
.sidebar {
	width: 240px;
	min-width: 240px;
	min-height: calc(100vh - 40px);
}

.search-bar {
	position: relative;
	height: 50px;
}

.abso {
	display: grid;
	position: absolute;
	top: 0;
	left: 0;
	min-width: 240px;
}


/*ラジオボタン*/
.search-targets {
	display: flex;
	align-items: center;
}

.targets {
	display: inline-block;
	border: solid 1px var(--button-border);
	border-bottom: solid 2px var(--button-border);
	background-color: var(--background-input);
	padding: 0;
	width: 50%;
	height: 40px;
	color: var(--text-color-sub);
	font-size: 14px;
	line-height: 40px;
	text-align: center;
}

.search-targets input[type="radio"] {
	display: none;
}

.search-targets input[type="radio"]:checked+label {
	border-bottom: solid 0px #c4c4c4;
	background: #184424;
	color: #ffffff;
}

.search-menu .targets {
	height: 30px;
	line-height: 30px;
}


.cond {
	border: solid 1px var(--button-border);
	background-color: var(--background-input);
	padding: 0px 4px;
	width: 110px;
	height: 27px;
	font-size: 15px;
}

.word {
	padding: 5px;
	width: 540px;
	height: 40px;
	font-size: 24px;
	line-height: 28px;
}

/* h2 */
.title-border {
	display: flex;

	align-items: center;
	font-weight: normal;
	font-size: 14px;
}

.title-border:before,
.title-border:after {

	flex-grow: 1;
	border-top: 1px solid;
	content: "";
}

.title-border:before {
	margin-right: 1rem;
}

.title-border:after {
	margin-left: 1rem;
}


/*チェックボックス*/
.search-menu {
	margin-top: 0px;
}

.search-menu label,
.search-menu .search-label {
	display: inline-block;
	padding: 0;
	width: 100%;
	height: 20px;
	font-size: 13px;
	line-height: 20px;
}

.search-menu label::before {
	display: inline-block;
	vertical-align: bottom;
	mask-image: url("/search/image/check_box_outline_blank-24px.svg");
	mask-size: 21px 21px;
	margin-right: 5px;
	margin-left: -3px;
	background-color: var(--search-icon);
	width: 21px;
	height: 21px;
	content: "";
}

.search-bar input, .topflex input {
	background: var(--background-input);
}



.search-menu .targets::before,
.search-menu input[type="checkbox"] {
	display: none;
}

.search-menu input[type="checkbox"]:checked+label::before {
	mask-image: url("/search/image/check_box-24px.svg");
}

.more_btn2 .search-btn,
.search-menu .search-btn {
	margin-top: 5px;
	border: solid 1px var(--button-border);
	border-bottom: solid 2px var(--button-border);
	background: var(--background-input);
	padding: 2px 0;
	width: 7em;
	font-size: 13px;
}

.more_btn2 .search-btn {
	margin-top: 0;
}

.sp_menu .search-btn {
	width: 24%;
	height: 30px;
	font-size: 12px;
}

.search-genre .search-btn {
	padding: 0 8px;
	width: 100%;
	height: 40px;
	line-height: 37px;
}


.more_btn2 .search-btn:active,
.search-menu .search-btn:active {
	margin-top: 6px;
	border-bottom: solid 1px var(--button-border);
}

.more_btn2 .search-btn:active {
	margin-top: 1px;
	padding-top: 3px;
}


.search-menu .flex {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.flex::after {
	display: block;
	width: 75px;
	content: "";
}

.flex::before {
	display: block;

	order: 1;
	width: 75px;
	content: "";
}

.search-menu img {
	opacity: 0.35;
}

.search-select {
	width: 100%;
}

.search-submit {
	margin: 20px 0 0;
	border: none;
	border-bottom: solid 4px #184424;
	background: #25723B;
	padding: 8px;
	width: 100%;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
}

.search-submit:active {
	margin: 23px 0 0;
	border-bottom: solid 1px #184424;
}

/* 結果表示前の情報 */
.result-box2 {
	display: grid;
	grid-template-rows: auto auto;
	grid-template-columns: 100px auto;
	align-items: center;
	gap: 5px;
	margin-bottom: 10px;
}

.more_btn {
	display: flex;
	grid-area: 1 / 1 / 2 / 2;
	justify-content: space-evenly;
	border: solid 1px var(--button-border);
}

.more_btn input {
	display: none;
}

.search_svg.module {
	mask-image: url("/search/image/view_module-24px.svg");
	mask-size: 24px 24px;
	width: 24px;
	height: 24px;
}

.search_svg.stream {
	mask-image: url("/search/image/view_stream-24px.svg");
	mask-size: 24px 24px;
	width: 24px;
	height: 24px;
}


.more_btn2 {
	grid-area: 2 / 1 / 3 / 2;
}

.more_btn2 .search-btn {
	width: 100px;
}


.result-keyword {
	grid-area: 1 / 2 / 2 / 3;
}

.result-datatime {
	grid-area: 2 / 2 / 3 / 3;
	font-size: 14px;
}

/* 結果表示 */
.result {
	display: block;
	margin-top: 50px;
	width: 100%;
}

.result-keyword {
	display: inline-block;
	vertical-align: baseline;
	font-weight: normal;
	font-size: 14px;
	letter-spacing: 0;
}

.result-keyword b {
	margin: 0 0.2em 0 0.5em;
	font-weight: bold;
	font-size: 18px;
}


.search-label:has(> .search_svg) {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	height: 20px;
}

.search_svg {
	display: block;
	mask-size: 12px 12px;
	mask-repeat: no-repeat;
	background-color: var(--search-icon);
	width: 12px;
	height: 12px;
}

.search_svg.wave {
	mask-image: url("/search/image/wave_dash.svg");
}

.search_svg.view {
	mask-image: url("/search/image/baseline-play_arrow-24px.svg");
}

.search_svg.comment {
	mask-image: url("/search/image/baseline-notes-24px.svg");
}

.search_svg.like {
	mask-image: url("/search/image/baseline-favorite-24px.svg");
}

.search_svg.mylist {
	mask-image: url("/search/image/baseline-folder-24px.svg");
}

.search_svg.more_toggle {
	mask-image: url("/search/image/more_vert-24px.svg");
	mask-size: 24px 24px;
	width: 24px;
	height: 24px;
}



.result-box {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	column-gap: 4px;
	row-gap: 15px;
	justify-content: left;
}

@media screen and (max-width: 1270px) {
	.result-box {

		grid-template-columns: repeat(auto-fit, 320px);
	}
}

.result-box.result-gacha {
	display: block;
}

.result-box.result-gacha .rank-box {
	max-width: 480px;
}


.result-box::before,
.result-box::after {
	display: block;
	flex-grow: 1;
	flex-basis: 320px;
	order: 9;
	height: 0;
	content: "";
}

.result-box>li::before {
	position: absolute;
	right: 5px;
	bottom: 5px;
	order: 0;
	z-index: 0;
	content: attr(data-rank);
	color: var(--rank-box-rank);
	font-weight: bold;
	font-size: 54px;
	line-height: 1;
}



/* 検索結果ボックス */

.rank-box {
	display: grid;
	position: relative;
	grid-template-rows: 22px 24px auto 0px auto 1fr auto;
	grid-template-columns: auto 90px;
	box-shadow: 0px 2px 6px -1px var(--shadow-color);
	border-radius: 3px;
	background: var(--rank-box);
	min-width: 320px;
	max-width: 400px;
}

.rank-box>* {
	z-index: 1;
}

.result-box a {
	color: var(--link-normal);
}

.result-box a:visited {
	color: var(--link-visited) !important;
}

.rank-date {
	display: flex;
	grid-area: 1 / 1 / 2 / 2;
	justify-content: space-between;
	align-items: end;
	height: 20px;

}

.rank-date .rank {
	display: flex;
	align-items: baseline;
	padding-left: 4px;
	color: var(--text-color-sub);
	font-size: 10px;
	line-height: 1;
}

.rank-date .rank span {
	color: var(--text-color-sub);
	font-weight: bold;
	font-size: 18px;
}

.rank-date .time {
	display: flex;
	align-items: baseline;
	gap: 2px;
	color: var(--text-color-sub);
	font-size: 10px;
	line-height: 1;
}

.rank-date .time span {
	color: var(--text-color-sub);
	font-size: 13px;
}

.thumbnail-time {
	grid-area: 2 / 1 / 4 / 2;
	min-height: 129px;
}

.thumbnail-time a {
	position: relative;
	background: var(--thumbnail-back);
	width: 100%;
	height: auto;
}

.thumbnail-time img {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.thumbnail-time a span {
	display: inline-block;
	position: absolute;
	right: 0;
	bottom: 0;
	background: #000000bb;
	padding: 2px;
	color: #fff;
	font-size: 14px;
	line-height: 1;
}

.more_toggle {
	display: flex;
	align-items: start;
}

.icon-toggle {
	display: flex;
	grid-area: 1 / 2 / 3 / 3;
	justify-content: space-between;
	z-index: 2;
	border-bottom: solid 1px var(--button-border);
	padding: 6px;
	height: 45px;
}

.icon-toggle .userico img {
	border-radius: 2px;
	width: 32px;
	height: 32px;
}

.icon-toggle .userico {
	position: relative;
	opacity: 1;
}

.user_name div {
	position: absolute;
	top: -20px;
	right: 0;
	z-index: 5;
	box-shadow: 0px 1px 10px -3px var(--shadow-color);
	border-radius: 3px;
	background: var(--background-body);
	padding: 4px;
	max-width: max-content;
	color: var(--text-color);
	font-size: 14px;
	line-height: 1;
	white-space: nowrap;
}



.count {
	display: flex;
	grid-area: 3 / 2 / 5 / 3;
	flex-direction: column;
	justify-content: space-evenly;
	gap: 4px;
	padding: 4px 4px 0;
	max-height: 120px;
}

.count>li {
	display: grid;
	grid-template-columns: 12px 1fr;
	column-gap: 0px;
	align-items: center;
}

.count>li span {
	color: var(--text-color-sub);
	font-size: 14px;
	line-height: 1;
	text-align: right;
}

.count>li span b {
	padding-left: 5px;
	font-weight: bold;
	font-size: 13px;
	line-height: 1;
}

.combtn {
	display: none;
	color: var(--count-comment);
}

.libtn {
	display: none;
	color: var(--count-like);
}

.mybtn {
	display: none;
	color: var(--count-mylist);
}

.result-box .count .liper0,
.result-box .count .comper0,
.result-box .count .myper0 {
	font-weight: normal;
}


.result-box .count .comper5,
.result-box .count span:has(.comper10) {
	background-color: var(--count-comment-back);
}

.result-box .count .liper5,
.result-box .count span:has(.liper10) {
	background-color: var(--count-like-back);
}

.result-box .count .myper5,
.result-box .count span:has(.myper10) {
	background-color: var(--count-mylist-back);
}


.per_on {
	display: inline-block !important;
}

.count>li>*:nth-child(1) {
	grid-area: 1 / 1 / 3 / 2;
}

.count>li>*:nth-child(2) {
	grid-area: 1 / 2 / 2 / 3;
}

.count>li>*:nth-child(3) {
	grid-area: 2 / 2 / 3 / 3;
}


.title {
	grid-area: 5 / 1 / 6 / 3;
	padding: 4px;
}

.title a {

	font-weight: bold;
	font-size: 15px;
	line-height: 1.5;
}

.more-box {
	grid-area: 6 / 1 / 7 / 3;
}

.more-box .detail {
	margin: 0 4px;
	border-top: solid 1px var(--button-border);
	padding: 4px 0;
	color: var(--text-color-sub);
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.more-box .lastres {
	margin: 0 4px;
	border-top: solid 1px var(--button-border);
	border-bottom: solid 1px var(--button-border);
	padding: 4px 0;
	color: var(--text-color-sub);
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.lastres .search_svg {
	display: inline-block;
	vertical-align: middle;
	mask-image: url(/search/image/baseline-notes-24px.svg);
	mask-size: 18px 18px;
	margin: -2px 4px 0 0;
	background-size: contain;
	width: 18px;
	height: 18px;
	content: "";
}

.more-box .tags {
	padding: 0 4px;
	color: var(--text-color-sub);
	font-size: 13px;
	line-height: 1.5;
	text-align: left;
}

.tags .search_svg {
	display: inline-block;
	vertical-align: middle;
	mask-image: url(/search/image/local_offer-24px.svg);
	mask-size: 16px 16px;
	margin: 0 4px 0 0;
	background-size: contain;
	width: 16px;
	height: 16px;
	content: "";
}


/* 詳細モード */
.result-box .more-box {
	display: none;
}

.result-box .more .more-box {
	display: block;
	position: relative;
}

/* 次ページ */
.nextprev {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 20px auto 0;
	max-width: 600px;
	height: 40px;
}

.nextprev a {
	display: flex;
	flex-grow: 1;
	justify-content: center;
	align-items: center;
	border: solid 1px var(--button-border);
	border-bottom: solid 2px var(--button-border);
	background: var(--background-input);
	padding: 0;
	color: var(--text-color);
}

.nextprev a.osenai {
	color: #a1a1a1;
}

.nextprev a:active {
	margin-top: 1px;
	border-bottom: solid 1px var(--button-border);
}

a.nextpage_num {

	flex-grow: 0;
	cursor: pointer;
	margin-left: -11px;
	width: 40px;
}

input.nextpage_num {
	border: solid 1px var(--button-border);
	background-color: var(--background-input);
	padding: 5px 0;
	width: 90px;
	color: var(--text-color);
	font-size: 18px;
	text-align: right;
}

#sp_menu_btn {
	display: none;
}

/* TOPページ用 */
@media screen and (min-width: 641px) {
	#toppage h1 {
		margin: 0 0 10px;
		color: var(--text-color);
		font-size: 24px;
	}

	#toppage.sidebar {
		float: none;
		margin: 0 auto;
		width: 700px;
	}

	#toppage .topflex {
		display: flex;

		flex-wrap: wrap;
		justify-content: space-between;
	}

	#toppage .w240 {
		width: 320px;
	}

	#toppage .cond {
		width: 140px;
	}

	#toppage .word {
		width: 670px;
	}

	#toppage .search-select {
		width: 100%;
	}

	#toppage .search-bar {
		width: auto;
		height: 60px;
	}

	#toppage .search-submit {
		margin: 40px auto 0;
		padding: 12px;
		width: 60%;
	}

	#toppage .search-submit:active {
		margin: 43px auto 0;
	}
}

/* おまけ */
hr.omake {
	margin: 10px 0;
	border: none;
	border-top: solid 1px #c5c5c5;
}

.sp_h {
	background-color: #FFE8FE !important;
}

.result-box>li.sp_h::before {
	color: #b7b7b7;
}

.sp_n {
	display: none !important;
}

.pcnone {
	display: none;
}

@media screen and (max-width: 640px) {
	.sidebar {
		float: none;
		margin: 0 auto;
		width: calc(100vw - 30px);
		min-height: auto;
	}

	.search-bar {
		margin: 0 auto;
		margin-bottom: 0px;
		width: calc(100vw - 30px);
		height: auto;
	}

	.cond {
		padding: 4px;
		width: 45%;
		height: auto;
	}

	.word {
		width: 100%;
	}

	.result_main {
		gap: 0;
	}


	.result-box2 {
		grid-template-columns: auto auto;
	}

	.more_btn {
		grid-area: 1 / 1 / 2 / 2;
	}

	.more_btn2 {
		grid-area: 1 / 2 / 2 / 3;
	}

	.result-keyword {
		display: inline-block;
		grid-area: 2 / 1 / 3 / 3;
	}

	.result-datatime {
		display: inline-block;
		grid-area: 3 / 1 / 4 / 3;
	}


	.flex::before,
	.flex::after {
		display: none;
	}

	.search-select {
		width: 100%;
	}


	.nextprev {
		gap: 5px;
		margin-bottom: 40px;
	}

	.nextprev a {
		flex-grow: 1;
		font-size: 12px;
		text-align: center;
	}

	a.nextpage_num {
		flex-grow: 0;
		margin-left: -6px;
		width: 40px;
	}

	input.nextpage_num {
		flex-grow: 1;
		width: auto;
		font-size: 14px;
		text-align: right;
	}


	#sp_menu_btn {
		display: block;
		margin-bottom: 15px;
		border: solid 1px var(--button-border);
		border-bottom: solid 3px var(--button-border);
		background: var(--background-input);
		padding: 12px;
		width: 100%;
		text-align: center;
	}

	#sp_menu_btn:active {
		margin-top: 2px;
		border-bottom: solid 1px var(--button-border);
	}

	.sp_menu {
		display: none;
	}

	.sp_menu_open {
		display: block !important;
	}


	/* TOPページ用 */
	.topflex {
		display: block;
	}

	.topflex .title-border {
		margin-top: 20px;
	}

	#toppage .search-submit {
		margin-bottom: 10vh;
	}

	/* 結果 */
	.result_main {
		flex-direction: column;
	}

	.sidebar .abso {
		position: static;
	}

	.result {
		margin-top: 0;
	}

	.result-box {
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
		row-gap: 5px;
	}

	.rank-box {
		border-radius: 0;
		min-width: 280px;
		max-width: 640px;
	}

}

/* 仕様変更のお知らせ */

.bg_onetime_popup {
	position: fixed;
	top: 0px;
	left: 0px;
	visibility: hidden;
	opacity: 0;
	z-index: 9999;
	transition: 0.5s;
	background-color: rgba(0, 0, 0, 0.5);
	width: 100vw;
	height: 100vh;
}

.bg_onetime_popup.js_active {
	visibility: visible;
	opacity: 1;
}

.onetime_popup {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
	cursor: pointer;
	background-color: #fff;
	width: 500px;
	max-width: calc(100vw - 30px);
}

.onetime_popup h3 {
	text-align: center;
}

.onetime_popup ul {
	padding: 15px;
}

.onetime_popup p {
	padding: 15px;
	font-size: 14px;
}

.onetime_popup_title {
	position: relative;
	margin: 0px;
	background-color: #3388dd;
	padding: 10px 0px;
	color: #fff;
	font-size: 20px;
	line-height: 1.5;
	text-align: center;
}

.onetime_popup_title::before,
.onetime_popup_title::after {
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	background-color: #fff;
	width: 30px;
	height: 4px;
	content: "";
}

.onetime_popup_title::before {
	transform: rotate(45deg);
}

.onetime_popup_title::after {
	transform: rotate(-45deg);
}

/* 汎用 */
.marT20 {
	margin-top: 20px;
}

.marT30 {
	margin-top: 30px;
}


/* アニバボタン用 */
#anniv {
	margin: 0 auto;
	padding: 0 30px;
	width: 100%;
	max-width: 1920px;
}

.anniv_result h2 {
	margin-top: 20px;
	font-size: 25px;
}

.anniv_result h2 span {
	font-size: 150%;
}

.anniv_list {
	display: flex;
	gap: 20px;
	width: 192px;
}

.anniv_list p {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	/* 任意の行数を指定 */
}

/* ニコニコメンテ用 */
.mainte {
	display: flex;
	align-items: center;
	color: #0e6691;
	font-size: 12px;
}

.mainte:visited {
	color: #ce42f4 !important;
}

@media screen and (max-width: 640px) {
	.result-box .count {
		flex-wrap: wrap;
	}

	.mainte {
		width: 100%;
	}
}

/* 結果発表2 */