@charset "utf-8";

/* 色は変数1か所に集める。明るい版へ戻すときもここだけ差し替える */
:root {
	--bg: #121212;
	--bg-head: #1c1c1c;
	--bg-card: #1e1e1e;
	--line: #2a2a2a;
	--text: #e9e6e3;
	--sub: #8d8880;
	--accent: #FF3700;      /* myfans */
	--accent-dim: #c72c00;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background-color: var(--bg);
	color: var(--text);
	font-size: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
}

img { max-width: 100%; height: auto; }

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

/* ヘッダー */
header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1080;
	transition: all 500ms;
}

header .head_bar {
	position: relative;
	height: 48px;
	background-color: var(--bg-head);
	border-bottom: 1px solid var(--line);
}

.site_title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	text-align: center;
}

.site_title h1 { margin: 0; font-size: 20px; font-weight: 700; }

.site_title h1 a {
	display: inline-block;
	color: var(--text);
	font-family: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: 2.5px;
}

.site_title h1 a::first-letter { color: var(--accent); }

.show_pop {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	padding: 4px 6px;
	cursor: pointer;
}

.show_pop span {
	display: block;
	width: 20px;
	height: 2px;
	margin: 4px 0;
	background-color: var(--text);
}

/* メニュー */
.modal_pop {
	display: none;
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9997;
}

.modal_pop.open { display: block; }

.modal_pop .bg {
	background-color: rgba(0, 0, 0, 0.55);
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: 9998;
}

.modal_header_menu {
	position: absolute;
	right: 12px;
	top: 48px;
	z-index: 9999;
	width: 240px;
	padding: 16px 18px;
	background-color: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: 10px;
}

.h_m_title { font-size: 13px; margin-bottom: 12px; color: var(--sub); letter-spacing: 1px; }
.modal_header_menu ul { list-style: none; margin: 0; padding: 0; }
.modal_header_menu ul li a { display: block; padding: 7px 2px; font-size: 15px; }
.modal_header_menu ul li a::before { content: "\25B8"; margin-right: 8px; color: var(--accent); }

/* 本文 */
.main_content { margin-top: 48px; padding-top: 18px; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 10px; }
.margin_area { margin-bottom: 24px; }
.text_center { text-align: center; }

h2.page { margin: 8px 0 6px; font-size: 21px; font-weight: 700; text-align: center; }
.explanation { color: var(--sub); margin-bottom: 16px; text-align: center; font-size: 11px; }

/* タブ */
.tabs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 8px;
	max-width: 400px;
}

.tabs + .tabs { margin-bottom: 18px; }

.tab_btn {
	flex: 1;
	text-align: center;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--accent-dim);
	background: transparent;
	color: var(--accent) !important;
	font-weight: 700;
	font-size: 13px;
}

.tab_btn:hover { border-color: var(--accent); }
.tab_btn[data-active="true"] { background: var(--accent); border-color: var(--accent); color: #fff !important; }

/* 格子 */
.grids { display: flex; align-items: flex-start; }
.grid_col { flex: 0 0 auto; }

.art_li { display: block; width: 100%; padding: 3px; position: relative; }
.art_li[hidden] { display: none; }

.item_inner { position: relative; }

.item_image { width: 100%; background-color: #000; border-radius: 6px; overflow: hidden; }
.item_image img { width: 100%; height: auto; display: block; border-radius: 6px; }

.item_ranking {
	position: absolute;
	top: 4px;
	left: 4px;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 3px 7px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	border-radius: 999px;
}

.item_count {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 3px 7px;
	font-size: 10px;
	color: #fff;
	border-radius: 999px;
}

.item_user {
	position: absolute;
	bottom: 4px;
	left: 4px;
	max-width: 62%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 3px 7px;
	font-size: 10px;
	color: #fff !important;
	border-radius: 999px;
}

.item_user:hover { color: var(--accent) !important; }

.mf_icon {
	position: absolute;
	right: 5px;
	top: 5px;
	height: 24px;
	width: 24px;
	background-color: #fff;
	border-radius: 7px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mf_icon a { display: block; width: 100%; height: 100%; }

.mf_m {
	display: block;
	color: var(--accent);
	font-family: "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 24px;
}

/* クリエイター */
.creators { font-size: 0; }

.creator_li {
	display: inline-block;
	vertical-align: top;
	width: 16.6%;
	padding: 8px 6px;
	font-size: 14px;
	text-align: center;
}

.creator_avatar { width: 100%; border-radius: 50%; overflow: hidden; background-color: var(--bg-card); }
.creator_avatar img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.creator_name { margin-top: 6px; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.creator_meta { color: var(--sub); font-size: 10px; }

/* もっと読み込む */
.more {
	display: block;
	width: 60%;
	max-width: 320px;
	margin: 26px auto;
	padding: 10px 0;
	text-align: center;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	background-color: var(--accent);
	border: none;
	border-radius: 999px;
	cursor: pointer;
}

/* 末尾の断り書き */
.notice {
	max-width: 760px;
	margin: 28px auto 0;
	padding: 0 14px;
	font-size: 11px;
	line-height: 1.9;
	color: var(--sub);
}

.notice a { color: var(--accent); text-decoration: underline; }

.footer_note { text-align: center; color: var(--sub); font-size: 11px; padding: 20px 12px 12px; }

.footer {
	margin-top: 12px;
	padding: 18px;
	background-color: var(--bg-head);
	border-top: 1px solid var(--line);
	width: 100%;
}

.footer_bottom { text-align: center; color: var(--sub); font-size: 11px; letter-spacing: 1.2px; }
.footer_bottom a { color: var(--sub); }

#page_top {
	width: 88px;
	height: 44px;
	position: fixed;
	right: 0;
	bottom: 0;
	background: rgba(28, 28, 28, 0.85);
	border-top-left-radius: 8px;
	text-align: center;
}

#page_top a { display: block; width: 100%; height: 100%; padding-top: 13px; color: var(--sub); font-size: 12px; }

@media all and (max-width: 992px) {
	.creator_li { width: 20%; }
}

@media all and (max-width: 768px) {
	.creator_li { width: 25%; }
}

@media all and (max-width: 578px) {
	.creator_li { width: 33.3%; }
	h2.page { font-size: 18px; }
	.container { padding: 0 6px; }
}

/* クリエイターの頭 */
.creator_head { text-align: center; padding: 6px 0 14px; }
.creator_head_avatar { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden; background-color: var(--bg-card); }
.creator_head_avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.creator_head .more { margin: 14px auto 0; }

/* ユザネは飛べることを見せる */
.item_user { border: 1px solid rgba(255, 255, 255, 0.35); }
.item_user:hover { background-color: var(--accent); color: #fff !important; border-color: var(--accent); }
.item_user_go { margin-left: 4px; font-weight: 700; opacity: 0.85; }

/* ジャンルの帯 */
.genre_bar { max-width: 1000px; margin: 26px auto 0; padding: 0 12px; text-align: center; }
.genre_bar_head { color: var(--sub); font-size: 12px; letter-spacing: 1px; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.chip {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 12px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--bg-card);
	color: var(--text) !important; font-size: 12px; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); color: var(--accent) !important; }
.chip_n { color: var(--sub); font-size: 10px; }
.chip_big { padding: 8px 15px; font-size: 13px; }
.chips_page { max-width: 900px; margin: 0 auto; }
.genre_all { display: inline-block; margin-top: 12px; color: var(--accent) !important; font-size: 12px; }

/* 問い合わせ */
.form { max-width: 560px; margin: 0 auto; padding: 4px 14px 8px; }
.form label { display: block; margin-bottom: 14px; font-size: 13px; color: var(--sub); }
.form textarea, .form input[type=text] {
	display: block;
	width: 100%;
	margin-top: 6px;
	padding: 10px 12px;
	background: var(--bg-card);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
}
.form textarea:focus, .form input[type=text]:focus { outline: none; border-color: var(--accent); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .more { width: 100%; max-width: none; margin: 4px 0 0; }
.thanks { max-width: 560px; margin: 0 auto 18px; padding: 12px 14px; border: 1px solid var(--accent-dim); border-radius: 8px; color: var(--text); font-size: 14px; text-align: center; }

/* ジャンルの札 */
.genre_card { display: block; position: relative; }
.genre_card .item_image img { width: 100%; height: auto; display: block; }
.genre_veil {
	position: absolute; inset: 0; border-radius: 6px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.78));
}
.genre_name {
	position: absolute; left: 0; right: 0; bottom: 9px;
	text-align: center; color: #fff; font-size: 15px; font-weight: 700;
	text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.genre_n { display: block; font-size: 10px; font-weight: 400; color: #d9d4cf; margin-top: 2px; }
.genre_card:hover .genre_veil { background: linear-gradient(to bottom, rgba(255,55,0,0.1) 30%, rgba(255,55,0,0.72)); }

/* 問い合わせと規約 */
.form { max-width: 560px; margin: 0 auto; text-align: left; }
.form label { display: block; margin-bottom: 14px; font-size: 12px; color: var(--sub); }
.form input, .form select, .form textarea {
	display: block; width: 100%; margin-top: 5px; padding: 9px 11px;
	background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
	color: var(--text); font-size: 14px; font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .more { border: none; }

.doc { max-width: 700px; margin: 0 auto; text-align: left; font-size: 13px; line-height: 1.95; color: #bdb8b2; }
.doc h3 { margin: 22px 0 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.doc p { margin: 0 0 10px; }
.doc ul { padding-left: 20px; margin: 0 0 10px; }
.doc a { color: var(--accent); }

.foot_links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 22px 12px 6px; }
.foot_links a { color: var(--sub); font-size: 12px; text-decoration: underline; }
.done { max-width: 560px; margin: 40px auto; text-align: center; color: var(--text); }
