* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: "Helvetica Neue",
		Arial,
		"Hiragino Kaku Gothic ProN",
		"Hiragino Sans",
		Meiryo,
		sans-serif;
	background: #000;
	color: #fff;
	padding: 20px;
	font-size: 18px;
}

a {
	text-decoration: none;
	color: #94ebff;
}

p {
	margin: 20px 0;
}

ul {
	list-style: none;
}

/* ヘッダー */
header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
}

.logo-container {
	display: flex;
	justify-content: center;
	margin-bottom: 10px;
}

.site-logo {
	width: 100px;
	height: auto;
	transition: transform 6s ease-out;
}

.site-logo:hover {
	filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.6));
	transform: rotate(360deg);
}

.site-title {
	font-size: 2.5rem;
	margin-bottom: 10px;
	font-weight: bold;
}

.site-subtitle {
	font-size: 1rem;
}

/* メインコンテナ */
main {
	max-width: 1200px;
	margin: 0 auto;
}

main.item-page {
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 20px;
	position: relative;
}


h1 {
	font-size: 2rem;
	margin-bottom: 10px;
	font-weight: bold;
}

h2 {
	font-size: 1.5rem;
	font-weight: bold;
}

.item-info {
	display: flex;
	align-items: center;
	flex-direction: column;
	margin: 20px 0;
}

.about-use {
	margin: 20px 0;
}

/* アイコン一覧 */
.item-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 15px;
	margin: 20px;
}

.item-card {
	background: #222;
	border-radius: 10px;
	padding: 10px;
	transition: all 0.3s ease;
	border: 1px solid #111;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
	position: relative;
}

.item-card:hover {
	transform: translateY(-5px);
	border-color: #00d2ff;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: 0 10px 30px rgba(0, 210, 255, 0.2);
}

.item-image {
	width: 80px;
	height: 80px;
	margin: 10px 0;
}

.item-list .item-name {
	text-align: center;
	font-size: 0.9rem;
	margin: 6px 0;
}

.item-desc {
	font-size: 0.9rem;
}

footer {
	text-align: center;
	margin-top: 20px;
	padding: 20px;
}

label {
	display: block;
	margin: 20px 0;
}

/* プレビュー */
.preview-area-wrapper {
	margin: 2rem 0;
	position: relative;
	color: #2a9271;
	font-weight: bold;
}

.item-preview-reload-btn {
	position: absolute;
	bottom: 5px;
	right: 5px;
	cursor: pointer;
	transition: all 0.3s;
	z-index: 10;
	padding: 0;
	margin: 0;
	background-color: transparent;
}

.preview-reload-btn:hover {
	transform: rotate(45deg);
}

.preview-box {
	background-color: #222;
	border: 1px solid #333;
	border-radius: 8px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-direction: column;
	width: 100%;
	height: 610px;
	overflow: hidden;
	position: relative;
	padding-top: 10px;
}

.preview-format-switcher {
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: rgba(0, 0, 0, 0.6);
	width: 100%;
	padding: 15px 20px;
	border-radius: 0;
	backdrop-filter: blur(8px);
	z-index: 10;
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-filename {
	font-size: 0.8rem;
	color: #FFF;
	margin: 5px 0;
}

.preview-format-btns {
	display: flex;
	gap: 25px;
}

.format-btn {
	background: none;
	border: none;
	color: #999;
	font-weight: bold;
	cursor: pointer;
	padding: 4px 0;
	font-size: 0.9rem;
	position: relative;
	transition: color 0.3s;
}

.format-btn:hover {
	color: #fff;
}

.format-btn.active {
	color: #00d2ff;
}

.format-btn::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: #00d2ff;
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.format-btn.active::after {
	width: 100%;
}

.preview-header {
	display: flex;
	justify-content: end;
	margin-bottom: 10px;
}

.preview-header p {
	margin: 0;
	font-weight: bold;
}

.preview-bg-switcher {
	display: flex;
	gap: 10px;
}

.bg-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid rgba(255, 255, 255, 0.3);
	cursor: pointer;
	padding: 0;
	margin: 0;
	outline: none;
	transition: transform 0.2s, border-color 0.2s;
}

.bg-btn:hover {
	transform: scale(1.1);
	border-color: #fff;
}

.bg-btn.active {
	border-color: #00d2ff;
	box-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

.bg-grid {
	background-color: #fff;
	background-image:
		linear-gradient(45deg, #ccc 25%, transparent 25%),
		linear-gradient(-45deg, #ccc 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #ccc 75%),
		linear-gradient(-45deg, transparent 75%, #ccc 75%);
	background-size: 30px 30px;
	background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

.bg-grid-dark {
	background-color: #666;
	background-image:
		linear-gradient(45deg, #333 25%, transparent 25%),
		linear-gradient(-45deg, #333 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, #333 75%),
		linear-gradient(-45deg, transparent 75%, #333 75%);
	background-size: 30px 30px;
	background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

.bg-white {
	background-color: #ffffff;
}

.bg-gray {
	background-color: #222222;
}

.bg-black {
	background-color: #000000;
}

.bg-stripe {
	background: repeating-linear-gradient(90deg, #4169e1 0 15px, #87ceeb 15px 30px);
}

.bg-v-stripe {
	background: repeating-linear-gradient(90deg, #FF69B4 0 15px, #F892C5 15px 30px);
}

/* ダウンロードエリア */
.download-area {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin: 30px 0;
	background-color: #222;
	padding: 20px;
	border-radius: 10px;
}

.dl-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.label {
	font-weight: bold;
	color: #aaa;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.download-area .label {
	margin-top: 20px;
}

.download-area .buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.download-btn {
	padding: 10px 20px;
	min-height: 80px;
	border: none;
	border-radius: 15px;
	font-size: 0.9rem;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #053778;
	color: #fff;
	min-width: 180px;
	position: relative;
}

.download-btn:hover {
	background: #4d83cb;
	transform: translateY(-2px);
}

.filesize {
	display: block;
	margin-top: 2px;
	color: #90EE90;
}

.breadcrumb-separator {
	margin: 0 10px;
	color: #666;
}

/* ページネーション */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
	gap: 10px;
}

.page-link {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 45px;
	height: 45px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	font-weight: bold;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.05);
}

.page-link:hover:not(.current) {
	background: rgba(0, 210, 255, 0.2);
	border-color: #00d2ff;
	color: #fff;
}

.page-link.current {
	background: #00d2ff;
	color: #000;
	border-color: #00d2ff;
}

.page-link.disabled {
	color: #444;
	pointer-events: none;
	cursor: default;
}

.item-meta {
	display: flex;
	gap: 20px;
	margin-top: 40px;
	margin-bottom: 0;
	color: #aaa;
	flex-wrap: wrap;
	justify-content: flex-end;
}


/* ナビゲーションメニュー */
nav {
	margin-bottom: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 20px;
}

.nav-menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;
	margin: 0;
}

.nav-menu li a {
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 10px;
	font-size: 1rem;
	background: rgba(255, 255, 255, 0.1);
	transition: all 0.3s ease;
	display: block;
}

.nav-menu li a:hover {
	background: #00d2ff;
	color: #000;
	transform: translateY(-2px);
}

.nav-menu li a.current {
	background: #00d2ff;
	color: #000;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}


/* サイズ選択ボタン削除 */

aside {
	margin: 40px auto;
	max-width: 1200px;
	padding: 0 20px;
}

aside h3 {
	margin-bottom: 20px;
	font-size: 1.2rem;
	text-align: center;
}

.related-more-btn-container {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.related-more-btn {
	display: inline-block;
	padding: 10px 40px;
	border: 2px solid #00d2ff;
	color: #fff;
	text-decoration: none;
	border-radius: 30px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.related-more-btn:hover {
	background: #00d2ff;
	color: #000;
	box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* .size-btn 削除 */

.site-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.site-links a {
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: all 0.4s;
}

.site-links a:hover {
	transform: translateY(-5px);
}

.site-links .site-icon {
	width: 80px;
	height: 80px;
}

.site-links .site-name {
	font-size: 1.1rem;
	font-weight: bold;
	color: #00d2ff;
}

.site-links .site-desc {
	font-size: 0.95rem;
	color: #ccc;
}

/* リボン */
.ribbon-wrapper {
	width: 100px;
	height: 100px;
	overflow: hidden;
	position: absolute;
	top: -1px;
	right: -1px;
	border-radius: 0 10px 0 0;
	pointer-events: none;
}

.ribbon {
	font-size: 11px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	line-height: 26px;
	transform: rotate(45deg);
	position: relative;
	left: -15px;
	top: 22px;
	width: 160px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
	letter-spacing: 0.5px;
}

.ribbon-grayscale {
	background-color: #555;
	color: #eee;
}

.ribbon-monochrome {
	background-color: #222;
	color: #fff;
}

.about-use h2 {
	font-size: 1.2rem;
	margin-bottom: 15px;
	color: #00d2ff;
}

pre {
	background: #1a1a1a;
	padding: 15px;
	border-radius: 8px;
	margin-top: 15px;
	overflow-x: auto;
	border: 1px solid #333;
}

code {
	font-family: "Courier New", Courier, monospace;
	color: #94ebff;
	font-size: 0.9rem;
}


/* アニメーション */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* 検索窓 */
.search-container {
	max-width: 600px;
	margin: 0 auto 30px;
	padding: 0 20px;
}

.search-form {
	display: flex;
	gap: 10px;
}

.search-input {
	flex: 1;
	padding: 12px 20px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 1rem;
	outline: none;
	transition: all 0.3s ease;
}

.search-input:focus {
	border-color: #00d2ff;
	background: rgba(255, 255, 255, 0.15);
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.search-button {
	padding: 10px 25px;
	border-radius: 30px;
	border: none;
	background: #053778;
	color: #FFF;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
}

.search-button:hover {
	background: #00d2ff;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}

.no-results {
	text-align: center;
	padding: 50px 20px;
	color: #aaa;
	grid-column: 1 / -1;
}

/* 固定ページ・エラーページ */
.static-page-container,
.error-page-container {
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 40px;
	margin: 20px auto;
	max-width: 900px;
}

.static-page h1,
.error-page h1 {
	text-align: center;
	margin-bottom: 30px;
	color: #00d2ff;
}

.static-section {
	margin-bottom: 30px;
}

.static-section h2 {
	border-left: 4px solid #00d2ff;
	padding-left: 15px;
	margin-bottom: 15px;
	font-size: 1.4rem;
	font-weight: bold;
}

.static-page ul {
	margin: 20px 0 20px 20px;
	list-style: disc;
}

.static-page li {
	margin-bottom: 10px;
}

.error-page {
	text-align: center;
}

.footer-legal {
	margin-bottom: 30px;
}

.footer-legal a {
	color: #aaa;
	font-size: 0.9rem;
	border-bottom: 1px solid #333;
	padding-bottom: 2px;
}

.footer-legal a:hover {
	color: #00d2ff;
	border-color: #00d2ff;
}

@media screen and (max-width: 768px) {
	body {
		padding: 0;
	}

	main.tool-page {
		border-radius: 0;
	}

	#site-title {
		font-size: 1.5rem;
	}

	.site-links {
		grid-template-columns: 1fr;
	}

	.site-links a {
		margin: 0 20px;
	}

	.preview-box {
		height: 370px;
		justify-content: flex-start;
		padding-top: 10px;
	}

	.preview-box img {
		width: 256px;
		height: 256px;
	}

}