/* ヒーローセクション */
.hero-section {
	text-align: center;
	padding: 50px 20px 30px 20px;
}

.hero-title {
	font-size: 38px;
	font-weight: 900;
	margin: 0 0 12px 0;
	letter-spacing: -1px;
	color: var(--text-main);
}

.hero-subtitle {
	font-size: 15.5px;
	color: var(--text-muted);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.6;
}

/* 検索コントロール */
.controls-wrapper {
	max-width: 960px;
	margin: 0 auto 30px auto;
	padding: 0 20px;
	display: flex;
	justify-content: center;
}

.search-box-wrapper {
	position: relative;
	width: 100%;
	max-width: 500px;
}

.search-input {
	width: 100%;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	color: var(--text-main);
	padding: 14px 20px 14px 48px;
	border-radius: 30px;
	font-size: 14.5px;
	transition: var(--transition);
	box-sizing: border-box;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15), 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.search-icon {
	position: absolute;
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	display: inline-block;
	background-color: var(--text-muted);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	pointer-events: none;
}

.icon-link-ref {
	display: inline-block;
	width: 12px;
	height: 12px;
	background-color: var(--primary);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-width='2.5' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* サイトリストレイアウト */
.site-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.no-results {
	text-align: center;
	padding: 60px 40px;
	background-color: var(--bg-card);
	border-radius: 16px;
	border: 1px solid var(--border-color);
	color: var(--text-muted);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.no-results h3 {
	font-size: 17px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 8px;
	color: var(--text-main);
}

.no-results p {
	font-size: 13.5px;
	margin: 0;
	color: var(--text-muted);
}

/* サイトカードデザイン（縦並び・白背景） */
.site-card {
	background-color: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02), 0 10px 15px -3px rgba(0, 0, 0, 0.03);
	transition: var(--transition);
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.site-card:hover {
	border-color: rgba(2, 132, 199, 0.3);
	transform: translateY(-3px);
	box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.site-image-wrapper {
	width: 260px;
	min-width: 260px;
	aspect-ratio: 3 / 2;
	height: auto;
	overflow: hidden;
	position: relative;
	background-color: #f1f5f9;
	border-right: 1px solid var(--border-color);
}

.site-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: var(--transition);
}

.site-card:hover .site-image {
	transform: scale(1.02);
}

.site-content {
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex: 1;
}

.site-title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.site-title {
	font-size: 19px;
	font-weight: 800;
	margin: 0;
	color: var(--text-main);
	text-decoration: none;
	transition: var(--transition);
}

.site-title:hover {
	color: var(--primary);
}

.site-desc {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.6;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.site-refs {
	margin-top: 12px;
	border-top: 1px dashed var(--border-color);
	padding-top: 10px;
}

.site-refs-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--primary);
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 4px;
}

.site-refs-list {
	margin: 0;
	padding: 0 0 0 16px;
	font-size: 12px;
	color: var(--text-muted);
	display: flex;
	flex-direction: column;
	gap: 5px;
	list-style-type: disc;
}

.site-refs-list a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 500;
	transition: var(--transition);
}

.site-refs-list a:hover {
	color: var(--primary);
}

.site-card-action {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
}

.btn-detail {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: var(--transition);
	box-sizing: border-box;
	background-color: var(--primary-light);
	border: 1px solid var(--primary-border);
	color: var(--primary);
	align-self: flex-start;
	gap: 6px;
}

.btn-detail:hover {
	background-color: var(--primary);
	border-color: var(--primary);
	color: #ffffff;
}

/* モバイル対応 */
@media (max-width: 768px) {
	.hero-title {
		font-size: 30px;
	}
	.controls-wrapper {
		padding: 0 20px;
	}
	.site-card {
		flex-direction: column;
	}
	.site-image-wrapper {
		width: 100%;
		min-width: 100%;
		aspect-ratio: 3 / 2;
		height: auto;
		border-right: none;
		border-bottom: 1px solid var(--border-color);
	}
	.site-title-row {
		flex-direction: column;
		gap: 8px;
	}
}
