/*
Theme Name: Proposal Theme
Description: プロポーザル収集・検索用テーマ
Version: 2.5
Author: AI Assistant
*/

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--primary-light: #3b82f6;
	--secondary: #64748b;
	--success: #10b981;
	--warning: #f59e0b;
	--danger: #ef4444;
	--dark: #1e293b;
	--light: #f8fafc;
	--white: #ffffff;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
	--radius: 8px;
	--radius-lg: 12px;
	--radius-xl: 16px;
	--transition: all 0.2s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
	color: var(--gray-800);
	line-height: 1.6;
	background: var(--gray-50);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-dark);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--gray-200);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.95);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

.site-logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--dark);
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-logo svg {
	color: var(--primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: var(--white);
	padding: 60px 0 80px;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
	opacity: 0.5;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	max-width: 800px;
	margin: 0 auto;
}

.hero-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 16px;
	letter-spacing: -0.02em;
}

.hero-subtitle {
	font-size: 1.125rem;
	opacity: 0.9;
	margin-bottom: 32px;
	line-height: 1.7;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 40px;
}

.stat-item {
	text-align: center;
}

.stat-number {
	font-size: 2.5rem;
	font-weight: 700;
	display: block;
}

.stat-label {
	font-size: 0.875rem;
	opacity: 0.8;
}

/* ==========================================================================
   Search Section
   ========================================================================== */
.search-section {
	margin-top: 24px;
	position: relative;
	z-index: 10;
	padding-bottom: 40px;
}

.search-box {
	background: var(--white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-xl);
	padding: 24px;
}

.search-main {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
}

.search-input-wrapper {
	flex: 1;
	position: relative;
}

.search-input-wrapper svg {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--gray-400);
}

.search-input {
	width: 100%;
	padding: 14px 16px 14px 48px;
	font-size: 1rem;
	border: 2px solid var(--gray-200);
	border-radius: var(--radius-lg);
	transition: var(--transition);
	background: var(--white);
}

.search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input::placeholder {
	color: var(--gray-400);
}

.btn-search {
	padding: 14px 32px;
	background: var(--primary);
	color: var(--white);
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: var(--radius-lg);
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.btn-search:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.btn-search:active {
	transform: translateY(0);
}

.btn-search.loading {
	opacity: 0.7;
	pointer-events: none;
}

.btn-search .spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.btn-search.loading .spinner {
	display: block;
}

.btn-search.loading .btn-text {
	display: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.filters-toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	color: var(--gray-600);
	font-size: 0.875rem;
	cursor: pointer;
	padding: 8px 0;
	transition: var(--transition);
}

.filters-toggle:hover {
	color: var(--primary);
}

.filters-toggle svg {
	transition: transform 0.3s ease;
}

.filters-toggle.active svg {
	transform: rotate(180deg);
}

.filters-panel {
	display: none;
	padding-top: 16px;
	border-top: 1px solid var(--gray-100);
	margin-top: 16px;
	animation: slideDown 0.3s ease;
}

.filters-panel.show {
	display: block;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}

.filter-group label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

.filter-select {
	width: 100%;
	padding: 10px 12px;
	font-size: 0.9375rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	background: var(--white);
	cursor: pointer;
	transition: var(--transition);
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.filter-select:focus {
	outline: none;
	border-color: var(--primary);
}

.active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--primary);
	color: var(--white);
	font-size: 0.8125rem;
	border-radius: 20px;
	animation: fadeIn 0.2s ease;
}

.filter-chip button {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	padding: 0;
	display: flex;
	opacity: 0.8;
}

.filter-chip button:hover {
	opacity: 1;
}

.btn-clear-all {
	background: var(--gray-100);
	color: var(--gray-600);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-section {
	padding: 40px 0 80px;
}

/* 修正: コントロールエリアのレイアウト調整 */
.results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 16px;
}

.results-count {
	font-size: 0.9375rem;
	color: var(--gray-600);
}

.results-count strong {
	color: var(--dark);
	font-weight: 700;
}

/* 修正: コントロールグループ */
.results-controls {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.controls-group {
	display: flex;
	align-items: center;
	gap: 16px;
}

.control-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.control-item label {
	font-size: 0.8125rem;
	color: var(--gray-500);
	white-space: nowrap;
	font-weight: 500;
}

/* 修正: セレクトボックスをモダンに（フィルターと統一） */
.control-select {
	padding: 8px 32px 8px 12px;
	font-size: 0.875rem;
	color: var(--gray-700);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	background-color: var(--white);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	transition: var(--transition);
}

.control-select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* 修正: レイアウトボタンのデザイン調整 */
.layout-toggle {
	display: flex;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	overflow: hidden;
}

.layout-btn {
	background: transparent;
	border: none;
	padding: 8px 12px;
	color: var(--gray-400);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.layout-btn:not(:last-child) {
	border-right: 1px solid var(--gray-200);
}

.layout-btn:hover {
	color: var(--primary);
	background: var(--gray-50);
}

.layout-btn.active {
	background: var(--gray-100);
	color: var(--primary);
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Results Grid & Cards
   ========================================================================== */
.results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 24px;
	min-height: 200px;
}

.results-grid.loading {
	opacity: 0.5;
	pointer-events: none;
}

.proposal-card {
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	padding: 24px;
	transition: var(--transition);
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gray-100);
	cursor: pointer;
}

.proposal-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-2px);
	border-color: var(--gray-200);
}

.proposal-card.expired {
	opacity: 0.6;
}

.proposal-card.urgent {
	border-left: 4px solid var(--danger);
}

.proposal-card.soon {
	border-left: 4px solid var(--warning);
}

/* Badge */
.deadline-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 4px 10px;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 4px;
}

.deadline-badge.expired {
	background: var(--gray-100);
	color: var(--gray-500);
}

.deadline-badge.urgent {
	background: #fef2f2;
	color: var(--danger);
}

.deadline-badge.soon {
	background: #fffbeb;
	color: var(--warning);
}

/* Card Content */
.proposal-title {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 12px;
	padding-right: 80px;
	/* バッジ分の余白 */
}

.proposal-title a {
	color: var(--dark);
}

.proposal-title a:hover {
	color: var(--primary);
}

.proposal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 12px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	color: var(--gray-600);
}

.meta-item svg {
	flex-shrink: 0;
	color: var(--gray-400);
}

.meta-item.budget {
	color: var(--success);
	font-weight: 600;
}

.meta-item.budget svg {
	color: var(--success);
}

.proposal-summary {
	font-size: 0.875rem;
	color: var(--gray-600);
	line-height: 1.7;
	margin-bottom: 16px;
	flex-grow: 1;
}

/* Tags */
.proposal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 16px;
}

.tag {
	display: inline-block;
	padding: 4px 10px;
	font-size: 0.75rem;
	background: var(--gray-100);
	color: var(--gray-600);
	border-radius: 4px;
}

.tag.industry {
	background: #dbeafe;
	color: var(--primary-dark);
}

.tag-hash {
	color: var(--primary);
	font-size: 0.8125rem;
	text-decoration: none;
	margin-right: 8px;
	font-weight: 500;
}

.tag-hash:hover {
	text-decoration: underline;
	color: var(--primary-dark);
}

.btn-detail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--primary);
	background: var(--gray-50);
	border-radius: var(--radius);
	transition: var(--transition);
	margin-top: auto;
	position: relative;
	z-index: 2;
}

.btn-detail:hover {
	background: var(--primary);
	color: var(--white);
}

.proposal-card a.stop-propagation {
	position: relative;
	z-index: 2;
}

/* ==========================================================================
   List View Styles (修正版)
   ========================================================================== */
.results-grid.list-view {
	grid-template-columns: 1fr !important;
}

.results-grid.list-view .proposal-card {
	flex-direction: row;
	align-items: flex-start;
	padding: 24px;
	gap: 24px;
}

.results-grid.list-view .deadline-badge {
	position: static;
	/* 絶対配置を解除 */
	order: -1;
	margin-bottom: 0;
	margin-top: 4px;
	flex-shrink: 0;
}

/* リスト表示時のコンテンツラッパー */
.results-grid.list-view .proposal-title {
	margin-bottom: 8px;
	padding-right: 0;
	flex: 1;
	font-size: 1.125rem;
	order: 0;
}

.results-grid.list-view .proposal-meta {
	flex-direction: column;
	gap: 8px;
	width: 180px;
	flex-shrink: 0;
	order: 2;
	/* 右側に配置 */
	margin-bottom: 0;
	border-left: 1px solid var(--gray-200);
	padding-left: 24px;
}

/* タイトルとサマリーをまとめる仮想的なグループが必要だが
   HTML構造を変えられないためCSS Gridで擬似的にレイアウト */
.results-grid.list-view .proposal-card {
	display: grid;
	grid-template-columns: auto 1fr 180px auto;
	grid-template-areas:
		"badge title meta action"
		". summary meta action"
		". tags meta action";
	align-items: start;
}

.results-grid.list-view .deadline-badge {
	grid-area: badge;
	margin-right: 16px;
}

.results-grid.list-view .proposal-title {
	grid-area: title;
	margin-bottom: 8px;
}

.results-grid.list-view .proposal-summary {
	grid-area: summary;
	margin-bottom: 12px;
	display: block;
}

.results-grid.list-view .proposal-tags {
	grid-area: tags;
	margin-bottom: 0;
}

.results-grid.list-view .proposal-meta {
	grid-area: meta;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.results-grid.list-view .btn-detail {
	grid-area: action;
	width: auto;
	margin-top: 0;
	padding: 8px 16px;
	height: fit-content;
	margin-left: 16px;
	align-self: center;
}

/* ==========================================================================
   No Results & Pagination
   ========================================================================== */
.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 80px 20px;
	color: var(--gray-500);
}

.no-results svg {
	margin-bottom: 16px;
}

.no-results p {
	font-size: 1.125rem;
	margin-bottom: 8px;
}

.no-results .sub {
	font-size: 0.875rem;
	color: var(--gray-400);
}

.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 48px;
}

.page-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--gray-600);
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	cursor: pointer;
	transition: var(--transition);
}

.page-btn:hover {
	background: var(--gray-50);
	border-color: var(--gray-300);
}

.page-btn.active {
	background: var(--primary);
	color: var(--white);
	border-color: var(--primary);
}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* ==========================================================================
   Single Proposal (Detail Page)
   ========================================================================== */
.proposal-detail {
	padding: 40px 0 80px;
}

.proposal-detail h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--dark);
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	background: var(--white);
	padding: 24px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	margin-bottom: 32px;
}

.info-grid .item {
	padding: 12px;
	background: var(--gray-50);
	border-radius: var(--radius);
}

.info-grid .item strong {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--gray-500);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 4px;
}

.info-grid .item a {
	color: var(--primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.info-grid .item a:hover {
	color: var(--primary-dark);
}

.proposal-detail h2 {
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 16px;
	color: var(--dark);
}

.summary-box {
	background: var(--white);
	padding: 24px;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-lg);
	margin-bottom: 32px;
	line-height: 1.8;
	white-space: pre-wrap;
}

.files-section {
	margin-bottom: 32px;
}

.files-section ul {
	list-style: none;
	background: var(--white);
	padding: 16px;
	border-radius: var(--radius-lg);
	border: 1px solid var(--gray-200);
}

.files-section li {
	padding: 12px;
	border-bottom: 1px solid var(--gray-100);
}

.files-section li:last-child {
	border-bottom: none;
}

.files-section a {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--gray-700);
}

.files-section a:hover {
	color: var(--primary);
}

.action-buttons-area {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 48px;
	flex-wrap: wrap;
}

.btn-official {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--primary);
	color: var(--white);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.btn-official:hover {
	background: var(--primary-dark);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 16px 32px;
	background: var(--white);
	color: var(--gray-700);
	border: 1px solid var(--gray-300);
	font-size: 1rem;
	font-weight: 600;
	border-radius: var(--radius-lg);
	transition: var(--transition);
}

.btn-secondary:hover {
	background: var(--gray-50);
	border-color: var(--gray-400);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

/* ==========================================================================
   Responsive & Mobile Menu
   ========================================================================== */
.site-nav .nav-list {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav .nav-list a {
	color: var(--gray-600);
	font-weight: 500;
	font-size: 0.9375rem;
}

.site-nav .nav-list a:hover {
	color: var(--primary);
}

.hamburger-menu {
	display: none;
}

.site-footer {
	background: var(--dark);
	color: var(--gray-400);
	padding: 40px 0;
	text-align: center;
	font-size: 0.875rem;
}

@media (max-width: 900px) {

	/* タブレット・狭いPCでリストビューを崩さないための調整 */
	.results-grid.list-view .proposal-card {
		grid-template-areas:
			"badge title"
			"summary summary"
			"tags tags"
			"meta meta"
			"action action";
		grid-template-columns: auto 1fr;
	}

	.results-grid.list-view .proposal-meta {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		border-left: none;
		padding-left: 0;
		margin-top: 12px;
		border-top: 1px solid var(--gray-100);
		padding-top: 12px;
	}

	.results-grid.list-view .btn-detail {
		margin-left: 0;
		margin-top: 16px;
		width: 100%;
	}
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 1.75rem;
	}

	.hero-stats {
		gap: 24px;
	}

	.stat-number {
		font-size: 1.75rem;
	}

	.search-main {
		flex-direction: column;
	}

	.btn-search {
		width: 100%;
		justify-content: center;
	}

	.filters-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* スマホではGridもListも縦並びカード（標準スタイル）に戻す */
	.results-grid,
	.results-grid.list-view {
		grid-template-columns: 1fr !important;
	}

	/* リストビューの強制解除（スマホ最適化） */
	.results-grid.list-view .proposal-card {
		display: flex;
		/* Grid解除 */
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.results-grid.list-view .proposal-meta {
		width: 100%;
		border: none;
		padding: 0;
		margin-bottom: 12px;
	}

	.results-grid.list-view .btn-detail {
		width: 100%;
		margin: 0;
	}

	.results-grid.list-view .proposal-title {
		padding-right: 0;
	}

	.results-grid.list-view .deadline-badge {
		position: static;
		margin-bottom: 12px;
	}

	.proposal-title {
		padding-right: 0;
	}

	.deadline-badge {
		position: static;
		display: inline-block;
		margin-bottom: 12px;
	}

	/* コントロールエリアの調整 */
	.results-controls {
		width: 100%;
		justify-content: space-between;
	}

	.controls-group {
		width: 100%;
		justify-content: space-between;
	}

	/* ハンバーガーメニュー */
	.hamburger-menu {
		display: block;
		width: 30px;
		height: 30px;
		position: relative;
		background: none;
		border: none;
		cursor: pointer;
		z-index: 1000;
		padding: 0;
	}

	.hamburger-menu span {
		position: absolute;
		width: 100%;
		height: 2px;
		background-color: var(--dark);
		border-radius: 2px;
		transition: all 0.3s ease;
		left: 0;
	}

	.hamburger-menu span:nth-child(1) {
		top: 4px;
	}

	.hamburger-menu span:nth-child(2) {
		top: 14px;
	}

	.hamburger-menu span:nth-child(3) {
		top: 24px;
	}

	.hamburger-menu.active span:nth-child(1) {
		transform: rotate(45deg);
		top: 14px;
		background-color: var(--white);
	}

	.hamburger-menu.active span:nth-child(2) {
		opacity: 0;
	}

	.hamburger-menu.active span:nth-child(3) {
		transform: rotate(-45deg);
		top: 14px;
		background-color: var(--white);
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 100%;
		height: 100vh;
		background: rgba(30, 41, 59, 0.98);
		z-index: 999;
		transition: right 0.3s ease;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.site-nav.active {
		right: 0;
	}

	.site-nav .nav-list {
		flex-direction: column;
		align-items: center;
		gap: 32px;
	}

	.site-nav .nav-list a {
		color: var(--white);
		font-size: 1.25rem;
		font-weight: 700;
	}

	.action-buttons-area {
		flex-direction: column-reverse;
	}

	.btn-secondary,
	.btn-official {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.filters-grid {
		grid-template-columns: 1fr;
	}

	.hero-stats {
		flex-direction: column;
		gap: 16px;
	}

	.controls-group {
		flex-direction: column;
		align-items: flex-start;
	}

	.control-item {
		width: 100%;
		justify-content: space-between;
	}

	.control-select {
		width: 100px;
	}
}



/* ==========================================================================
   追加: News Section
   ========================================================================== */
.news-section {
	margin-top: -40px;
	/* ヒーローセクションに重ねる */
	position: relative;
	z-index: 20;
}

.news-box {
	background: var(--white);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	padding: 24px 32px;
	max-width: 1000px;
	margin: 0 auto;
}

.news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gray-100);
}

.news-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.news-title::before {
	content: '';
	display: block;
	width: 4px;
	height: 18px;
	background: var(--primary);
	border-radius: 2px;
}

.news-link {
	font-size: 0.875rem;
	color: var(--gray-500);
	font-weight: 600;
}

.news-link:hover {
	color: var(--primary);
}

.news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.news-item {
	display: flex;
	align-items: baseline;
	/* 日付とタイトルの位置合わせ */
	padding: 10px 0;
	border-bottom: 1px solid var(--gray-100);
	font-size: 0.9375rem;
}

.news-item:last-child {
	border-bottom: none;
}

.news-date {
	font-family: monospace;
	/* 日付の幅を揃える */
	color: var(--gray-500);
	margin-right: 20px;
	font-weight: 600;
	flex-shrink: 0;
	/* 日付が改行されないようにする */
}

.news-item-title {
	color: var(--dark);
	transition: var(--transition);
}

.news-item-title:hover {
	color: var(--primary);
	text-decoration: underline;
}

@media (max-width: 768px) {
	.news-box {
		padding: 20px;
	}

	.news-item {
		flex-direction: column;
		gap: 4px;
		align-items: flex-start;
	}

	.news-date {
		font-size: 0.8125rem;
		margin-right: 0;
	}
}









/* ==========================================================================
   追加: 複数選択ドロップダウン & 日付指定スタイル
   ========================================================================== */

/* 日付範囲入力 */
.date-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-input-date {
	flex: 1;
	padding: 10px 12px;
	font-size: 0.9375rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	background: var(--white);
	color: var(--gray-700);
}

.date-sep {
	color: var(--gray-500);
}

/* カスタムドロップダウン（複数選択用） */
.custom-dropdown {
	position: relative;
	width: 100%;
}

.dropdown-btn {
	width: 100%;
	padding: 10px 12px;
	font-size: 0.9375rem;
	text-align: left;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	color: var(--gray-700);
	cursor: pointer;
	position: relative;
	transition: var(--transition);
}

.dropdown-btn::after {
	content: '';
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid var(--gray-500);
}

.dropdown-btn:hover,
.dropdown-btn.active {
	border-color: var(--primary);
}

/* ドロップダウンの中身 */
.dropdown-content {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	z-index: 50;
	max-height: 250px;
	overflow-y: auto;
	margin-top: 4px;
	padding: 8px 0;
}

.dropdown-content.show {
	display: block;
}

.checkbox-item {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	cursor: pointer;
	transition: background 0.1s;
	font-size: 0.875rem;
	color: var(--gray-700);
}

.checkbox-item:hover {
	background: var(--gray-50);
}

.checkbox-item input[type="checkbox"] {
	margin-right: 8px;
	accent-color: var(--primary);
	width: 16px;
	height: 16px;
}

/* 選択された項目の数バッジ */
.badge-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--primary);
	color: white;
	font-size: 10px;
	height: 18px;
	min-width: 18px;
	border-radius: 9px;
	padding: 0 5px;
	margin-left: 6px;
	vertical-align: middle;
}

@media (max-width: 480px) {
	.date-inputs {
		flex-direction: column;
		align-items: stretch;
	}

	.date-sep {
		text-align: center;
		transform: rotate(90deg);
		height: 20px;
	}
}