/* =========================================================
   ツール帳 - メインスタイルシート
   方針：白 + 薄い水色 + 青。清潔感・軽さ・親しみやすさ。
   モバイルファースト。カードUI中心。角丸・薄い影・余白広め。
   ========================================================= */

:root {
	--bg: #ffffff;
	--bg-soft: #f5fbff;
	--bg-soft-2: #eaf7ff;

	--blue: #1e9be0;
	--blue-dark: #147bb5;
	--blue-deep: #0f5f91;

	--text: #16324f;
	--text-muted: #4c6b85;
	--border: #dceef8;

	--neta: #ee6a44;
	--neta-bg: #fff0e8;
	--neta-text: #b84420;

	--majime: #1e9be0;
	--majime-bg: #eaf7ff;
	--majime-text: #0f5f91;

	--game: #7c5cff;
	--game-bg: #f1eeff;
	--game-text: #5b3fd9;

	--radius-lg: 20px;
	--radius-md: 14px;
	--radius-sm: 10px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 10px rgba(20, 60, 90, 0.07);
	--shadow-md: 0 8px 24px rgba(20, 60, 90, 0.10);

	--container: 1120px;
	color-scheme: light;
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; color: var(--text); }

p { margin: 0 0 1em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { cursor: pointer; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 10000;
	width: auto; height: auto; clip: auto;
	background: var(--blue-deep); color: #fff;
	padding: 10px 16px; border-radius: var(--radius-sm);
}

/* キーボードフォーカスを明確に */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* ---------- レイアウト共通 ---------- */
.section { padding: 40px 0; }
.section__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 20px;
}
.section__inner--narrow { max-width: 720px; }

.section__title {
	font-size: clamp(22px, 4vw, 30px);
	font-weight: 800;
}
.section__title-sm {
	font-size: 20px;
	font-weight: 800;
}
.section__note { color: var(--text-muted); }

.section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 16px;
}
.section__head .section__title { margin: 0; }

.section__cta-center { text-align: center; margin: 24px 0 8px; }

.section--neta { background: var(--neta-bg); }
.section--game { background: var(--game-bg); }
.section--majime { background: var(--majime-bg); }
.section--genres { background: var(--bg-soft); }
.section--request { background: var(--bg-soft-2); }

/* ---------- ヘッダー ---------- */
.site-header {
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}
/* 注意：backdrop-filter / filter / transform はここでは使わない。
   .primary-nav（モバイルメニュー）が position:fixed で画面全体に
   かぶさる仕組みのため、祖先要素にこれらを指定すると
   fixed の基準位置がヘッダー内に閉じ込められてしまう。 */
.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 10px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
}
.site-logo {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 800;
	font-size: 19px;
	color: var(--blue-deep);
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark { font-size: 22px; }

.menu-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	border-radius: var(--radius-sm);
}
.menu-toggle:hover { background: var(--bg-soft); }
.menu-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text);
	margin: 0 auto;
	transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
	position: fixed;
	inset: 56px 0 0 0;
	background: var(--bg);
	padding: 12px 20px 32px;
	transform: translateY(-8px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	overflow-y: auto;
}
.primary-nav.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.primary-nav__list li { border-bottom: 1px solid var(--border); }
.primary-nav__list a {
	display: block;
	padding: 16px 4px;
	font-size: 17px;
	font-weight: 700;
	color: var(--text);
	min-height: 44px;
}

.breadcrumbs-wrap { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.breadcrumbs { max-width: var(--container); margin: 0 auto; padding: 10px 20px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }

@media (min-width: 860px) {
	.menu-toggle { display: none; }
	.primary-nav {
		position: static;
		inset: auto;
		background: transparent;
		padding: 0;
		opacity: 1;
		transform: none;
		pointer-events: auto;
		overflow: visible;
	}
	.primary-nav__list { display: flex; gap: 4px; }
	.primary-nav__list li { border-bottom: none; }
	.primary-nav__list a {
		padding: 10px 14px;
		border-radius: var(--radius-pill);
		min-height: auto;
	}
	.primary-nav__list a:hover { background: var(--bg-soft); text-decoration: none; }
}

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 22px;
	border-radius: var(--radius-pill);
	font-weight: 700;
	font-size: 15px;
	border: 2px solid transparent;
	transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
	white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color: #fff; }
.btn--primary.is-game { background: var(--game); }
.btn--primary.is-game:hover { background: #6a47f0; }
.btn--primary.is-neta { background: var(--neta); }
.btn--primary.is-neta:hover { background: #d95a35; }
.btn--primary.is-majime { background: var(--majime); }

.btn--xl { min-height: 56px; padding: 14px 28px; font-size: 17px; width: 100%; }
@media (min-width: 560px) { .btn--xl { width: auto; } }

.btn--soft { background: var(--bg-soft); color: var(--blue-deep); border-color: var(--border); }
.btn--soft.is-neta { background: var(--neta-bg); color: var(--neta-text); }
.btn--soft.is-majime { background: var(--majime-bg); color: var(--majime-text); }
.btn--soft.is-game { background: var(--game-bg); color: var(--game-text); }
.btn--soft:hover { filter: brightness(0.97); }

.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }

/* ---------- ヒーロー ---------- */
.hero {
	background: linear-gradient(180deg, var(--bg-soft-2) 0%, var(--bg) 100%);
	padding: 48px 0 40px;
	text-align: center;
}
.hero__inner { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.hero__title {
	font-size: clamp(34px, 8vw, 48px);
	font-weight: 900;
	color: var(--blue-deep);
	letter-spacing: .02em;
}
.hero__copy { font-size: clamp(17px, 3.6vw, 20px); font-weight: 700; color: var(--text); }
.hero__sub { color: var(--text-muted); margin-bottom: 20px; }

.hero__search {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 440px;
	margin: 0 auto 22px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 4px 4px 4px 18px;
	box-shadow: var(--shadow-sm);
}
.hero__search input[type="search"] {
	flex: 1;
	border: 0;
	outline: none;
	font-size: 15px;
	min-height: 44px;
	background: transparent;
}
.hero__search-btn {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--blue);
	color: #fff;
	font-size: 17px;
	cursor: pointer;
}
.hero__search-btn:hover { background: var(--blue-dark); }

.hero__cta-main { margin-bottom: 14px; }
.hero__cta-sub {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
	max-width: 420px;
	margin: 0 auto;
}
@media (min-width: 560px) {
	.hero__cta-sub { grid-template-columns: repeat(3, 1fr); max-width: none; }
}

/* ---------- 収録ツール数 ---------- */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 20px 14px;
	text-align: center;
}
.stat-card.is-neta { background: var(--neta-bg); }
.stat-card.is-majime { background: var(--majime-bg); }
.stat-card.is-game { background: var(--game-bg); }

.stat-card__num { display: block; font-size: 28px; font-weight: 900; color: var(--blue-deep); }
.stat-card.is-neta .stat-card__num { color: var(--neta-text); }
.stat-card.is-game .stat-card__num { color: var(--game-text); }
.stat-card__unit { font-size: 14px; font-weight: 700; margin-left: 2px; }
.stat-card__label { display: block; margin-top: 4px; font-size: 13px; color: var(--text-muted); font-weight: 700; }

.stats-note { margin-top: 14px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* コンパクト版（ホーム下部「ツール帳の現在」用）：1行に収まる小さめカード、クリック可能 */
.stats-grid--compact {
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
}
.stat-card--compact {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 8px;
	text-decoration: none;
	transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.stat-card--compact:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.stat-card--compact .stat-card__num { display: inline; font-size: 18px; }
.stat-card--compact .stat-card__label { display: inline; margin-top: 0; font-size: 12.5px; }
@media (max-width: 480px) {
	.stats-grid--compact { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ツールカード / グリッド ---------- */
.tool-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 560px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }

.tool-grid-empty { color: var(--text-muted); padding: 24px 0; }

/* ---------- ジャンル別ツールのカルーセル（トップページ） ---------- */
.tool-carousel { position: relative; }
.tool-carousel__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px 2px 8px;
	margin: -2px -2px 0;
}
.tool-carousel__track::-webkit-scrollbar { display: none; }
.tool-carousel__track:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; }

.tool-carousel__slide {
	flex: 0 0 auto;
	width: 87%;
	scroll-snap-align: start;
	display: flex;
}
.tool-carousel__slide .tool-card { width: 100%; }

@media (min-width: 560px) {
	.tool-carousel__slide { width: 46%; }
}
@media (min-width: 860px) {
	.tool-carousel__slide { width: 31%; }
}
@media (min-width: 1080px) {
	.tool-carousel__slide { width: 23.5%; }
}

.tool-carousel__nav {
	display: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--border);
	background: var(--bg);
	box-shadow: var(--shadow-md);
	font-size: 20px;
	line-height: 1;
	color: var(--text);
	cursor: pointer;
	z-index: 2;
}
.tool-carousel__nav--prev { left: 0; }
.tool-carousel__nav--next { right: 0; }
.tool-carousel__nav:hover { background: var(--bg-soft); }

@media (min-width: 700px) {
	.tool-carousel__nav { display: flex; }
	/* ボタン分の余白を確保し、先頭・末尾のカードの文字とボタンが重ならないようにする */
	.tool-carousel__track { padding-left: 46px; padding-right: 46px; }
}

.tool-card {
	display: flex;
	flex-direction: column;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	color: var(--text);
	transition: transform .14s ease, box-shadow .14s ease;
}
.tool-card:hover {
	text-decoration: none;
	transform: translateY(-3px);
	box-shadow: var(--shadow-md);
}

.tool-card__thumb {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--bg-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.tool-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tool-card__emoji { font-size: 44px; }

.tool-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tool-card__title { font-size: 16px; font-weight: 800; margin: 0; }
.tool-card__desc { font-size: 13.5px; color: var(--text-muted); margin: 0; flex: 1; }
.tool-card__cta { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--blue-deep); }
.tool-card.is-neta .tool-card__cta { color: var(--neta-text); }
.tool-card.is-game .tool-card__cta { color: var(--game-text); }

/* ---------- バッジ ---------- */
.badge {
	position: absolute;
	top: 10px; left: 10px;
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	font-size: 12px;
	font-weight: 800;
	background: var(--bg);
	color: var(--text);
	box-shadow: var(--shadow-sm);
}
a.badge { position: static; margin-bottom: 12px; }
.badge.is-neta { background: var(--neta-bg); color: var(--neta-text); }
.badge.is-majime { background: var(--majime-bg); color: var(--majime-text); }
.badge.is-game { background: var(--game-bg); color: var(--game-text); }

/* ---------- ジャンルから探す ---------- */
.genre-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
.genre-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 22px 8px;
	border-radius: var(--radius-lg);
	background: var(--bg);
	border: 1px solid var(--border);
	box-shadow: var(--shadow-sm);
	color: var(--text);
	font-weight: 800;
	text-align: center;
}
.genre-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.genre-card__emoji { font-size: 30px; }
.genre-card__count { font-size: 11.5px; font-weight: 700; opacity: .7; }
.genre-card.is-neta { background: var(--neta-bg); color: var(--neta-text); }
.genre-card.is-majime { background: var(--majime-bg); color: var(--majime-text); }
.genre-card.is-game { background: var(--game-bg); color: var(--game-text); }

.subgenre-list { display: flex; flex-wrap: wrap; gap: 8px; }
.subgenre-pill {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 13.5px;
	font-weight: 700;
}
.subgenre-pill:hover { background: var(--bg-soft); text-decoration: none; }

.link-more { font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-more.is-neta { color: var(--neta-text); }
.link-more.is-game { color: var(--game-text); }
.link-more.is-majime { color: var(--majime-text); }

/* ---------- ツールリクエスト箱（トップページCTA） ---------- */
.request-box { text-align: center; max-width: 640px; }
.request-box p { color: var(--text-muted); }

/* ---------- ツール個別ページ ---------- */
.tool-single { max-width: var(--container); margin: 0 auto; padding: 28px 20px 8px; }
.tool-single__head { max-width: 720px; }
.tool-single__title { font-size: clamp(24px, 5vw, 32px); font-weight: 900; }
.tool-single__excerpt { color: var(--text-muted); font-size: 16px; }

.tool-single__embed { margin: 20px 0; }
.tool-embed-wrap {
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
}
.tool-embed-frame {
	display: block;
	width: 100%;
	min-height: 260px;
	border: 0;
}
.tool-embed-empty { padding: 40px 20px; text-align: center; color: var(--text-muted); }

.tool-single__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.tool-single__desc { max-width: 720px; margin: 24px 0; }
.tool-single__desc :is(h2, h3) { margin-top: 1.2em; }

.tool-disclaimer {
	max-width: 720px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 14px 16px;
	font-size: 13.5px;
	color: var(--text-muted);
}

.tool-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0 8px;
}

/* ---------- ツールを探す ---------- */
.tool-filter-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 16px;
	margin: 18px 0 26px;
}
.tool-filter-form input[type="search"],
.toolcho-form__input,
.toolcho-form__textarea,
#tool-search-sub {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border-radius: var(--radius-md);
	border: 1px solid var(--border);
	background: var(--bg);
	font-size: 16px;
	color: var(--text);
	font-family: inherit;
}
.toolcho-form__textarea { min-height: 120px; padding-top: 12px; }

.tool-filter-form__genres { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 16px;
	border-radius: var(--radius-pill);
	background: var(--bg);
	border: 1px solid var(--border);
	color: var(--text);
	font-weight: 700;
	font-size: 14px;
}
.chip:hover { text-decoration: none; background: var(--bg-soft); }
.chip.is-active { background: var(--blue); color: #fff; border-color: var(--blue); }
.chip.is-neta.is-active { background: var(--neta); border-color: var(--neta); }
.chip.is-game.is-active { background: var(--game); border-color: var(--game); }
.chip.is-majime.is-active { background: var(--majime); border-color: var(--majime); }

.tool-filter-form__subs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-filter-form__sub-label { font-size: 13.5px; color: var(--text-muted); font-weight: 700; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; min-height: 40px; padding: 0 10px;
	border-radius: var(--radius-pill);
	background: var(--bg-soft); color: var(--text); font-weight: 700; font-size: 14px;
	border: 1px solid var(--border);
}
.pagination .page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .page-numbers:hover { text-decoration: none; background: var(--bg-soft-2); }

/* ---------- ジャンルアーカイブ ---------- */
.genre-archive.is-neta { background: var(--neta-bg); }
.genre-archive.is-majime { background: var(--majime-bg); }
.genre-archive.is-game { background: var(--game-bg); }

/* ---------- 固定ページ・フォーム共通 ---------- */
.page-content__body { font-size: 16px; }
.page-content__body :is(h2, h3) { margin-top: 1.4em; }
.page-content__body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.page-content__body ul li { margin-bottom: .4em; }

.toolcho-form { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.toolcho-form__label { font-weight: 700; font-size: 14px; margin-top: 10px; }
.toolcho-form button[type="submit"] { margin-top: 18px; }
.toolcho-form__honeypot { position: absolute; left: -9999px; }

.form-message {
	border-radius: var(--radius-md);
	padding: 12px 16px;
	margin-top: 20px;
	font-weight: 700;
}
.form-message--success { background: var(--majime-bg); color: var(--majime-text); }
.form-message--error { background: var(--neta-bg); color: var(--neta-text); }

/* ---------- フッター ---------- */
.site-footer {
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	margin-top: 48px;
}
.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 36px 20px 16px;
	display: grid;
	gap: 24px;
}
@media (min-width: 700px) {
	.site-footer__inner { grid-template-columns: 1fr 2fr; }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.site-footer__brand p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

.site-footer__list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer__list a { color: var(--text-muted); font-size: 14px; }
.site-footer__list a:hover { color: var(--blue-deep); }

.site-footer__bottom {
	border-top: 1px solid var(--border);
	text-align: center;
	padding: 14px 20px;
	font-size: 12.5px;
	color: var(--text-muted);
}

/* ---------- ツール共有UI ---------- */
.tool-share {
	margin: 20px 0;
	padding: 16px;
	background: var(--bg-soft);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}
.tool-share__label {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-muted);
}
.tool-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.tool-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.1s ease, filter 0.15s ease;
}
.tool-share__btn:hover { filter: brightness(0.97); }
.tool-share__btn:active { transform: translateY(1px); }
.tool-share__btn--x { background: #000; color: #fff; border-color: #000; }
.tool-share__btn--line { background: #06c755; color: #fff; border-color: #06c755; }
.tool-share__btn--copy.is-done,
.tool-share__btn--native.is-done { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- 利用回数カウンター ---------- */
.tool-usage-count {
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--text-muted);
}

/* ---------- 関連ツール強化（アイコンなし・簡易ラベル） ---------- */
.tool-related-empty {
	color: var(--text-muted);
	font-size: 14px;
}

/* ---------- 匿名ランキング ---------- */
.tool-ranking {
	margin: 20px 0;
	padding: 18px;
	background: var(--bg-soft-2);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
}
.ranking-title { margin: 0 0 8px; font-size: 16px; }
.ranking-your-score { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }
.ranking-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
}
.ranking-form input[type="text"] {
	flex: 1 1 180px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 15px;
}
.ranking-msg { font-size: 13.5px; color: var(--blue-deep); margin: 4px 0 10px; }
.ranking-loading, .ranking-empty { color: var(--text-muted); font-size: 14px; margin: 0; }
.ranking-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ranking-list__item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: var(--bg);
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
}
.ranking-list__rank { font-weight: 800; min-width: 28px; }
.ranking-list__name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-list__score { font-weight: 800; color: var(--blue-deep); }

.ranking-tabs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.ranking-tab {
	padding: 7px 14px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text-muted);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.ranking-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
