@charset "utf-8";

/*============================================================================

	ツールページ共通(都内の練習場 /gyms/ ・卓球大会ポータル /tournaments/)

============================================================================*/

#tool {
	max-width: 1080px;
	margin: 0 auto;
	/* 上はパンくず側のmargin(50px)に任せる(二重の余白でヒーロー前が空きすぎるため) */
	padding: 0 20px 90px;
}

/* ツールページはmainvisual(タイトル帯)を置かないため、
   上に被さるヘッダー(absolute・高さ80px)のぶんパンくずを下げる */
.breadcrumbs {
	padding-top: 100px;
}
@media (max-width: 640px) {
	.breadcrumbs {
		padding-top: 90px;
	}
}

/* ---- ヒーロー(サービス風の導入パネル) ---- */

.tool_hero {
	position: relative;
	margin-bottom: 35px;
	padding: 45px 50px;
	background: linear-gradient(130deg, #7d151b 0%, #901d22 55%, #a8272e 100%);
	border-radius: 18px;
	color: #fff;
	overflow: hidden;
}
/* 卓球ボールをモチーフにした円の飾り */
.tool_hero::before,
.tool_hero::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .10);
	pointer-events: none;
}
.tool_hero::before {
	width: 300px;
	height: 300px;
	right: -70px;
	top: -110px;
}
.tool_hero::after {
	width: 160px;
	height: 160px;
	right: 130px;
	bottom: -70px;
	border-color: rgba(255, 255, 255, .07);
}
.tool_hero_label {
	margin-bottom: 14px;
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	letter-spacing: 3px;
	color: rgba(255, 255, 255, .75);
}
.tool_hero_catch {
	margin-bottom: 16px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 1px;
}
.tool_hero_lead {
	max-width: 720px;
	font-size: 14px;
	line-height: 2;
	color: rgba(255, 255, 255, .92);
}
.tool_hero_lead strong {
	font-weight: 700;
	color: #ffd9a8;
}
.tool_hero_lead a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tool_hero_lead a:hover {
	color: #ffd9a8;
}
.tool_hero_stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 0;
	margin-top: 28px;
	list-style: none;
	padding: 0;
}
.tool_hero_stats li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 34px;
	border-left: 1px solid rgba(255, 255, 255, .25);
}
.tool_hero_stats li:first-child {
	padding-left: 0;
	border-left: none;
}
.tool_hero_stats strong {
	font-family: 'Oswald', sans-serif;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 1px;
}
.tool_hero_stats strong em {
	font-style: normal;
	font-size: 20px;
	margin-left: 1px;
}
.tool_hero_stats span {
	font-size: 12px;
	color: rgba(255, 255, 255, .75);
}

/* ---- 地図(/gyms/) ---- */

#gyms_map {
	height: 480px;
	margin-bottom: 12px;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	z-index: 0;
}
.gmap_legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 40px;
	font-size: 13px;
	color: #444;
}
.gmap_legend i {
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px rgba(0,0,0,.15);
	vertical-align: -1px;
}
.gmap_pop_name {
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #111;
}
.gmap_pop_meta {
	font-size: 12px;
	color: #666;
	line-height: 1.6;
}
.gmap_pop_link {
	margin-top: 6px;
	font-size: 13px;
}
.gmap_pop_link a {
	color: #901d22;
	font-weight: 600;
}

/* ---- 評価・口コミ ---- */

.tool_rating {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin: -6px 0 12px;
	font-size: 14px;
}
.tool_rating_star {
	color: #e1a231;
	font-weight: 600;
}
.tool_rating_votes {
	color: #666;
	font-size: 13px;
}
.tool_rating_gmap {
	font-size: 12px;
	color: #004c99;
	text-decoration: underline;
}
.tool_meta_note {
	display: block;
	font-size: 12px;
	color: #888;
}
.tool_reviews {
	margin-top: 14px;
	padding: 14px 16px;
	background: #fafafa;
	border-radius: 8px;
}
.tool_reviews_label {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #888;
}
.tool_reviews blockquote {
	margin: 0;
	font-size: 13px;
	line-height: 1.8;
	color: #555;
}
.tool_reviews blockquote + blockquote {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e2e2e2;
}
.tool_reviews_src {
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid #eee;
	font-size: 11px;
	line-height: 1.7;
	color: #999;
}
.tool_reviews_src a {
	color: #004c99;
	text-decoration: underline;
}

/* ---- 絞り込みUI(ヒーローに重なる操作パネル) ---- */

.tool_filter {
	position: relative;
	z-index: 1;
	margin: 0 0 45px;
	padding: 26px 32px;
	background: #fff;
	border: 1px solid #f0eaea;
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(60, 10, 12, .06);
}
.tool_filter_row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 15px;
}
.tool_filter_row + .tool_filter_row {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f4f0f0;
}
.tool_filter_label {
	flex-shrink: 0;
	min-width: 5.5em;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .5px;
	color: #901d22;
}
.tool_filter_btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
}
.tool_filter_btns button {
	padding: 8px 20px;
	background: #f7f5f5;
	border: 1px solid transparent;
	border-radius: 30px;
	font-size: 14px;
	font-family: inherit;
	color: #444;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.tool_filter_btns button:hover {
	border-color: #901d22;
	color: #901d22;
	background: #fff;
}
.tool_filter_btns button.is-active {
	background: #901d22;
	border-color: #901d22;
	color: #fff;
	box-shadow: 0 4px 12px rgba(144, 29, 34, .35);
}
.tool_filter select,
.tool_filter input[type="search"] {
	padding: 10px 14px;
	background: #f7f5f5;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #111;
	transition: border-color .2s, background .2s;
}
.tool_filter input[type="search"] {
	flex: 1;
	min-width: 200px;
}
.tool_filter select:focus,
.tool_filter input[type="search"]:focus {
	outline: none;
	border-color: #901d22;
	background: #fff;
}

.tool_count {
	margin-bottom: 25px;
	font-size: 14px;
	color: #666;
}
.tool_count strong {
	font-family: 'Oswald', sans-serif;
	font-size: 20px;
	color: #901d22;
	font-weight: 500;
	margin: 0 2px;
}
.tool_empty {
	padding: 60px 0;
	text-align: center;
	font-size: 15px;
	color: #666;
	background: #fafafa;
	border-radius: 14px;
}

/* ---- よくある質問(/gyms/) ---- */

.tool_faq {
	margin-top: 55px;
	padding-top: 45px;
	border-top: 1px solid #e2e2e2;
}
.tool_faq_head {
	margin-bottom: 25px;
	font-size: 20px;
	font-weight: 600;
	color: #222;
}
.tool_faq dt {
	margin-bottom: 8px;
	padding-left: 24px;
	position: relative;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	color: #222;
}
.tool_faq dt::before {
	content: 'Q';
	position: absolute;
	left: 0;
	font-family: 'Oswald', sans-serif;
	color: #901d22;
}
.tool_faq dd + dt {
	margin-top: 22px;
}
.tool_faq dd {
	padding-left: 24px;
	font-size: 14px;
	line-height: 1.9;
	color: #555;
}

/* ---- エリア別セクション(/gyms/) ---- */

.tool_area + .tool_area {
	margin-top: 50px;
}
.tool_area_head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #901d22;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.4;
	color: #222;
}
.tool_area_head span {
	padding: 2px 12px;
	background: #f7ecec;
	border-radius: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #901d22;
}

/* ---- カード共通 ---- */

.tool_cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
}
.tool_card {
	display: flex;
	flex-direction: column;
	padding: 26px 28px;
	background: #fff;
	border: 1px solid #eee7e7;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(60, 10, 12, .04);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tool_card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: 0 14px 32px rgba(60, 10, 12, .12);
}
.tool_card[hidden] {
	display: none;
}
.tool_card_head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.tool_card_name {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	color: #111;
}
.tool_badge {
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}
.tool_badge--private { background: #901d22; }
.tool_badge--public  { background: #004c99; }
.tool_badge--bar     { background: #e1a231; }
.tool_badge--open    { background: #1e8e4e; }
.tool_badge--closed  { background: #9a9a9a; }

/* 申込締切済みの大会カードは少しトーンを落とす */
.tool_card.is-closed {
	opacity: .7;
}
.tool_card.is-closed:hover {
	opacity: 1;
}

.tool_card_meta {
	flex: 1;
	font-size: 14px;
	line-height: 1.9;
	color: #444;
}
.tool_card_meta dt {
	float: left;
	clear: left;
	min-width: 5.5em;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .5px;
	color: #9a8b8b;
	line-height: 2.15;
}
.tool_card_meta dd {
	overflow: hidden;
	padding-left: .5em;
}
.tool_tags {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
}
.tool_tags span {
	padding: 3px 12px;
	background: #faf7f7;
	border: 1px solid #f0e8e8;
	border-radius: 20px;
	font-size: 12px;
	color: #776a6a;
}
.tool_card_link {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.tool_card_link a {
	display: inline-block;
	padding: 9px 22px;
	border: 1px solid #901d22;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	color: #901d22;
	text-decoration: none;
	transition: background .2s, color .2s, box-shadow .2s;
}
.tool_card_link a:hover {
	background: #901d22;
	color: #fff;
	box-shadow: 0 4px 12px rgba(144, 29, 34, .3);
}
/* 個人開放の詳細ページ側を主導線にする */
.tool_card_link a.is-primary {
	background: #901d22;
	color: #fff;
}
.tool_card_link a.is-primary:hover {
	background: #b02229;
	border-color: #b02229;
}

/* ---- 大会ポータル固有 ---- */

.tool_card_date {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed #e8dede;
}
.tool_card_date .date_main {
	font-family: 'Oswald', sans-serif;
	font-size: 30px;
	font-weight: 500;
	color: #901d22;
	letter-spacing: 1px;
	line-height: 1;
}
.tool_card_date .date_sub {
	font-size: 13px;
	color: #666;
}
/* 申込状況バッジは日付行の右端へ */
.tool_card_date .tool_badge {
	margin-left: auto;
	align-self: center;
}
.tool_section_head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 60px 0 30px;
	padding-left: 15px;
	border-left: 4px solid #901d22;
	font-size: 22px;
	font-weight: 600;
	color: #111;
}
.tool_section_head:first-of-type {
	margin-top: 0;
}
.tool_section_head span {
	padding: 2px 12px;
	background: #f7ecec;
	border-radius: 20px;
	font-family: 'Oswald', sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #901d22;
}
.tool_note {
	margin-top: 45px;
	padding: 20px 25px;
	background: #faf7f7;
	border: 1px solid #f0e8e8;
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.9;
	color: #666;
}

/* ---- スマホ ---- */

@media (max-width: 800px) {
	.tool_cards {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 640px) {
	#tool {
		padding: 0 15px 60px;
	}
	.tool_hero {
		padding: 30px 24px;
		border-radius: 14px;
		margin-bottom: 28px;
	}
	.tool_hero_catch {
		font-size: 23px;
	}
	.tool_hero_lead {
		font-size: 13px;
	}
	.tool_hero_stats {
		margin-top: 20px;
	}
	.tool_hero_stats li {
		padding: 0 18px;
	}
	.tool_hero_stats li:first-child {
		padding-left: 0;
	}
	.tool_hero_stats strong {
		font-size: 26px;
	}
	.tool_hero_stats span {
		font-size: 11px;
	}
	#gyms_map {
		height: 340px;
	}
	.tool_filter {
		padding: 18px 18px;
	}
	.tool_filter_row + .tool_filter_row {
		margin-top: 14px;
		padding-top: 14px;
	}
	.tool_filter_label {
		width: 100%;
		min-width: 0;
	}
	.tool_filter_btns button {
		padding: 7px 15px;
		font-size: 13px;
	}
	.tool_card {
		padding: 20px 18px;
	}
	.tool_card_name {
		font-size: 16px;
	}
	.tool_section_head {
		font-size: 19px;
	}
}
