﻿/*
Theme Name: Proposal Theme
Description: Proposal search and collection theme
Version: 2.5.1
Author: AI Assistant
*/

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
	--primary: #2563eb;
	--primary-dark: #1d4ed8;
	--primary-light: #3b82f6;
	--secondary: #64748b;
	--success: #047857;
	--warning: #b45309;
	--danger: #b91c1c;
	--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: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
	color: var(--gray-800);
	line-height: 1.6;
	background: var(--gray-50);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	width: 100%;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition);
}

a:hover {
	color: var(--primary-dark);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.no-scroll {
	overflow: hidden !important;
}

.stretched-link::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	content: "";
}

.sp-br {
	display: none;
}


.display-sp-only {
	display: none !important;
}

@media screen and (max-width: 768px) {
	.sp-br {
		display: inline;
	}

	.display-pc-only {
		display: none !important;
	}

	.display-sp-only {
		display: block !important;
	}
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Common Container & Layout */
.contact-page .container,
.about-page .container,
.operator-page .container {
	max-width: 800px;
	margin: 40px 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);
}

/* ==========================================================================
   Responsive & Mobile Menu
   ========================================================================== */
.site-nav ul,
.site-nav .nav-list,
.site-nav .menu {
	display: flex;
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav ul a,
.site-nav .nav-list a {
	color: var(--gray-600);
	font-weight: 500;
	font-size: 0.9375rem;
}

.site-nav ul a:hover,
.site-nav .nav-list a:hover {
	color: var(--primary);
}

/* Combined Login/Register Button */
.menu-item-login-combined a {
	background: var(--primary);
	color: var(--white) !important;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	transition: var(--transition);
}

.menu-item-login-combined a:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: var(--shadow-sm);
}

/* PC adjustment for logged-in state */
@media screen and (min-width: 769px) {
	.frontend-logged-in .site-nav .menu-item {
		padding-top: 3px;
	}

	/* Prevent double padding for account item which has flex centering */
	.frontend-logged-in .site-nav .menu-item-account {
		padding-top: 0;
	}
}

.hamburger-menu {
	display: none;
}

/* ==========================================================================
   Tooltip Styles (追加)
   ========================================================================== */
.tooltip-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid var(--gray-400);
	color: var(--gray-500);
	font-size: 11px;
	font-weight: bold;
	margin-left: 6px;
	cursor: help;
	position: relative;
	background: #fff;
}

.tooltip-trigger:hover {
	color: var(--primary);
	border-color: var(--primary);
}

.tooltip-bubble {
	visibility: hidden;
	opacity: 0;
	width: 240px;
	background-color: var(--gray-800);
	color: #fff;
	text-align: left;
	border-radius: 6px;
	padding: 10px;
	position: absolute;
	z-index: 1;
	bottom: 135%;
	/* アイコンの上に表示 */
	left: 50%;
	transform: translateX(-50%);
	font-size: 0.75rem;
	font-weight: normal;
	line-height: 1.5;
	transition: opacity 0.3s;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	/* 吹き出しの下 */
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: var(--gray-800) transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-bubble {
	visibility: visible;
	opacity: 1;
}

.hamburger-menu {
	display: none;
}

.site-footer {
	background: var(--dark);
	color: var(--gray-400);
	padding: 40px 0;
	text-align: center;
	font-size: 0.875rem;
}

/* ==========================================================================
   Proposal Card Base Styles (for archive pages, etc.)
   ========================================================================== */
.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);
}

@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;
	}

	/* Force 1 column and prevent overflow */
	.filters-grid {
		grid-template-columns: 1fr !important;
	}

	/* Fix Dropdown & Input overflow */
	.dropdown-btn {
		min-width: 0;
		width: 100%;
		font-size: 16px !important;
	}

	.control-select {
		width: 100%;
		font-size: 16px !important;
	}

	/* Prevent iOS Zoom on focus */
	.search-input,
	.filter-input-date,
	input[type="text"],
	input[type="number"],
	select,
	textarea {
		font-size: 16px !important;
	}

	/* Layout Toggle: Hide on SP */
	.layout-toggle {
		display: none !important;
	}

	/* Results Grid: Force 1 column & Compact styles */
	.results-grid,
	.results-grid.list-view {
		grid-template-columns: 1fr !important;
		gap: 12px;
		padding-left: 0;
		padding-right: 0;
	}

	/* List View Reset (Treat as Grid Card) */
	.results-grid.list-view .proposal-card,
	.results-grid .proposal-card {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 12px;
		min-width: 0;
		/* Prevent flex overflow */
		height: auto;
	}

	/* Force Title Compact */
	.results-grid.list-view .proposal-title,
	.results-grid .proposal-title {
		font-size: 0.95rem;
		margin-bottom: 4px;
		line-height: 1.4;
		padding-right: 0;
	}

	/* Show Summary (clamp 2 lines) */
	.results-grid.list-view .proposal-summary,
	.results-grid .proposal-summary {
		display: -webkit-box !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		font-size: 0.8rem;
		color: var(--gray-600);
		margin-bottom: 8px;
		line-height: 1.5;
	}

	/* Compact Meta */
	.results-grid.list-view .proposal-meta,
	.results-grid .proposal-meta {
		width: 100%;
		border: none;
		padding: 0;
		margin-bottom: 4px;
		gap: 8px;
		font-size: 0.75rem;
		flex-wrap: wrap;
	}

	/* Hide Detail Button on List View in SP */
	.results-grid.list-view .btn-detail,
	.results-grid .btn-detail {
		display: none !important;
	}

	/* Scrollable Tags */
	.results-grid.list-view .proposal-tags,
	.results-grid .proposal-tags {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		width: 100%;
		padding-bottom: 4px;
		margin-bottom: 0;
		-webkit-overflow-scrolling: touch;
		gap: 6px;
	}

	/* Scrollbar hiding */
	.proposal-tags::-webkit-scrollbar {
		display: none;
	}

	.proposal-tags {
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	/* Tags compact */
	.results-grid.list-view .tag,
	.results-grid.list-view .tag-hash,
	.results-grid .tag,
	.results-grid .tag-hash {
		font-size: 0.7rem;
		padding: 2px 6px;
		white-space: nowrap;
		flex-shrink: 0;
	}

	.results-grid.list-view .deadline-badge,
	.results-grid .deadline-badge {
		position: static;
		margin-bottom: 4px;
		display: inline-block;
		font-size: 0.7rem;
		padding: 2px 6px;
	}

	.deadline-badge {
		position: static;
		display: inline-block;
		margin-bottom: 12px;
	}

	/* Controls */
	.results-controls {
		width: 100%;
		justify-content: space-between;
	}

	.controls-group {
		width: 100%;
		justify-content: space-between;
	}

	/* Hamburger Menu */
	.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 Overlay */
	.site-nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background: rgba(0, 0, 0, 0.5);
		z-index: 999;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
		display: block;
		overflow: hidden;
	}

	.site-nav.active {
		opacity: 1;
		visibility: visible;
	}

	.site-nav ul,
	.site-nav .nav-list,
	.site-nav .menu {
		position: absolute;
		top: 0;
		right: 0;
		width: 80%;
		max-width: 320px;
		height: 100%;
		background: var(--white);
		padding: 80px 24px 40px;
		box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
		overflow-y: auto;
	}

	.site-nav.active ul,
	.site-nav.active .nav-list,
	.site-nav.active .menu {
		transform: translateX(0);
	}

	.site-nav ul li,
	.site-nav .nav-list li,
	.site-nav .menu li {
		width: 100%;
	}

	.site-nav ul a,
	.site-nav .nav-list a {
		color: var(--gray-800);
		font-size: 1.125rem;
		font-weight: 600;
		display: block;
		width: 100%;
		padding: 8px 0;
		border-bottom: 1px solid var(--gray-100);
	}

	.hamburger-menu.active span:nth-child(1),
	.hamburger-menu.active span:nth-child(3) {
		background-color: var(--gray-800);
	}

	.action-buttons-area {
		flex-direction: column-reverse;
	}

	.btn-official {
		width: 100%;
		justify-content: center;
	}

	.btn-secondary {
		width: 100%;
		justify-content: center;
		display: flex;
		align-items: center;
		padding: 12px 16px;
		/* Adjust padding */
		color: var(--white) !important;
		/* Force white text */
	}

	.proposal-detail {
		padding: 30px 10px 60px;
	}

	/* SP時のみログイン/新規登録ボタンのpadding調整と中央揃え */
	.menu-item-login-combined a {
		padding: 8px 12px !important;
		display: flex !important;
		justify-content: center !important;
		align-items: center !important;
		text-align: center !important;
	}
}

@media (max-width: 480px) {
	.filters-grid {
		grid-template-columns: 1fr;
	}

	.hero-stats {
		flex-direction: row;
		gap: 4px;
		justify-content: space-between;
	}

	.stat-item {
		flex: 1;
		padding: 0 2px;
	}

	.stat-number {
		font-size: 1.6rem;
	}

	.stat-label {
		font-size: 1rem;
		white-space: nowrap;
	}

	.controls-group {
		flex-direction: column;
		align-items: flex-start;
	}

	.control-item {
		width: 100%;
		justify-content: flex-start;
	}

	.control-select {
		width: auto;
		min-width: 140px;
	}

	/* スマホでのフィルター修正 */
	/* インラインスタイルのgrid-columnを強制上書きして1カラムにする */
	.filters-grid .filter-group {
		grid-column: 1 / -1 !important;
	}

	/* 日付・金額入力欄の縦並び対応 */
	.date-inputs {
		flex-wrap: wrap;
		gap: 8px;
	}

	.filter-input-date {
		width: 100%;
		flex: 1 1 100%;
	}

	.date-sep {
		display: none;
		/* 縦並びの時は「〜」を消すか、あるいはblockにして真ん中に置く */
	}
}

/* ==========================================================================
   Search Form Components (for Search Popup - used across all pages)
   ========================================================================== */
.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-wrapper .search-input {
	width: 100%;
	padding: 14px 16px 14px 40px;
	font-size: 1rem;
	border: 2px solid var(--gray-200);
	border-radius: var(--radius-lg);
	transition: var(--transition);
	background: var(--white);
}

@media screen and (max-width: 768px) {
	.search-input-wrapper .search-input {
		padding-left: 48px;
	}

	.search-main {
		flex-direction: column;
	}
}

.search-input-wrapper .search-input:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper .search-input::placeholder {
	color: var(--gray-400);
}

.btn-search {
	-webkit-tap-highlight-color: transparent;
	outline: none;
	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.btn-clear-condition {
	background: var(--gray-500);
}

.btn-search.btn-clear-condition:hover {
	background-color: var(--gray-600);
}

.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);
	}
}

@media screen and (max-width: 768px) {
	.btn-search {
		width: 100%;
		justify-content: center;
	}
}

/* ==========================================================================
   Filter Components (for Search Popup - used across all pages)
   ========================================================================== */
.filters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 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;
}

.count-text {
	font-size: 0.85em;
	color: var(--gray-500);
	margin-left: 4px;
	font-weight: 400;
}

.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);
}

.dropdown-btn {
	width: 260px;
}

@media screen and (max-width: 768px) {
	.dropdown-btn {
		width: 100%;
	}
}

/* Date input additional layout */
.date-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	/* No line breaks */
}

.filter-input-date {
	width: auto;
	flex: 1;
	min-width: 0;
	/* Allow flex item shrink */
	padding: 10px 12px;
	font-size: 0.9375rem;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	background: var(--white);
	transition: var(--transition);
}

@media screen and (max-width: 768px) {
	.date-inputs {
		gap: 4px;
	}

	.filter-input-date {
		padding: 8px;
		font-size: 14px;
	}
}

.filter-input-date:focus {
	outline: none;
	border-color: var(--primary);
}

.date-sep {
	color: var(--gray-400);
	font-size: 0.9rem;
	flex-shrink: 0;
}

/* Budget filter layout adjustment (inline display for upper limit) */
.budget-upper-group {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: 1;
	min-width: 0;
}

.budget-upper-group .filter-input-date {
	width: 100%;
}

.budget-unit {
	font-size: 0.8em;
	color: #666;
	white-space: nowrap;
	flex-shrink: 0;
	padding-left: 4px;
}

@media screen and (max-width: 768px) {
	.budget-upper-group {
		gap: 2px;
	}
}

@media (max-width: 425px) {
	.hero-title {
		font-size: 1.60rem;
	}
}

/* ==========================================================================
   Hero News Area (Hero内に移動)
   ========================================================================== */
.hero-news-area {
	margin-top: 48px;
	background: rgba(255, 255, 255, 0.1);
	/* 半透明の白背景 */
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--radius-lg);
	padding: 20px 24px;
	text-align: left;
	/* テキスト左寄せ */
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	backdrop-filter: blur(4px);
	/* すりガラス効果 */
}

.hero-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-news-label {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--white);
	display: flex;
	align-items: center;
	gap: 8px;
}

.hero-news-label::before {
	content: '';
	display: block;
	width: 4px;
	height: 16px;
	background: var(--white);
	/* アクセント白 */
	border-radius: 2px;
}

.hero-news-link {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	position: relative;
	display: inline-block;
	padding-bottom: 2px;
}

.hero-news-link:hover {
	color: var(--white);
	text-decoration: none;
}

.hero-news-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--white);
	transition: width 0.3s ease;
}

.hero-news-link:hover::after {
	width: 100%;
}

/* 追加: カルーセルのはみ出し防止用コンテナ */
.hero-news-slider-container {
	overflow: hidden;
	width: 100%;
}

.hero-news-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hero-news-item {
	display: flex;
	align-items: baseline;
	padding: 8px 0;
	font-size: 0.9375rem;
	color: var(--white);
}

.hero-news-date {
	font-family: monospace;
	color: rgba(255, 255, 255, 0.7);
	margin-right: 16px;
	font-size: 0.875rem;
	flex-shrink: 0;
}

.hero-news-title {
	color: var(--white);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	position: relative;
	display: inline-block;
	padding-bottom: 2px;
}

.hero-news-item a.hero-news-title:hover,
.hero-news-title:hover {
	color: var(--white);
	text-decoration: none;
	opacity: 1;
}

/* Animated Underline */
.hero-news-item a.hero-news-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--white);
	transition: width 0.3s ease;
}

.hero-news-item a.hero-news-title:hover::after {
	width: 100%;
}

@media (max-width: 768px) {
	.hero-news-item {
		flex-direction: column;
		gap: 2px;
	}

	.hero-news-date {
		font-size: 0.75rem;
	}

	.hero-news-title {
		white-space: normal;
		/* スマホでは折り返す */
	}
}


/* ==========================================================================
   追加: 複数選択ドロップダウン & 日付指定スタイル
   ========================================================================== */

/* 日付範囲入力 */
.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;
	transform: translateY(3px);
}

/* 選択された項目の数バッジ */
.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;
	}
}

/* 追加: 非活性時のドロップダウンボタンスタイル */
.dropdown-btn.disabled {
	background-color: #f3f4f6;
	/* var(--gray-100) */
	color: #9ca3af;
	/* var(--gray-400) */
	cursor: not-allowed;
	opacity: 0.7;
	pointer-events: none;
	/* クリック無効化 */
}

/* ★追加: 結果に寄与していない都道府県チップ（グレー表示） */
.filter-chip.chip-gray {
	background-color: var(--gray-200);
	color: var(--gray-600);
	border: 1px solid var(--gray-300);
}

.filter-chip.chip-gray button {
	color: var(--gray-500);
}

.filter-chip.chip-gray button:hover {
	color: var(--danger);
}

/* ==========================================================================
   追加: 検索条件保存機能スタイル
   ========================================================================== */
.save-search-area {
	display: none;
	/* デフォルト非表示 */
	border-top: 1px dashed var(--gray-300);
	margin-top: 24px;
	padding-top: 16px;
	animation: slideDown 0.3s ease;
	/* アニメーション追加 */
}

/* 表示用クラス */
.save-search-area.show {
	display: block;
}

.save-btn-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.btn-save-search {
	background-color: var(--success);
	/* 緑色 */
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}

.btn-save-search:hover {
	background-color: #059669;
	/* 少し濃い緑 */
}

/* 処理中状態 */
.btn-save-search.saving,
.btn-save-search:disabled {
	background-color: var(--gray-400);
	cursor: not-allowed;
	opacity: 0.7;
}

.saved-searches-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.875rem;
}

.saved-search-item {
	color: var(--primary);
	text-decoration: underline;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-family: inherit;
}

.saved-search-item:hover {
	color: var(--primary-dark);
}

.saved-search-remove {
	color: var(--gray-400);
	margin-left: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 0.75rem;
}

.saved-search-remove:hover {
	color: var(--danger);
}

/* ★追加: 保存条件の編集アイコン */
.saved-search-edit {
	color: var(--gray-400);
	margin-left: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
}

.saved-search-edit:hover {
	color: var(--primary);
}



/* ==========================================================================
   Customize: Taxonomy Row (業種とタグの横並び調整)
   ========================================================================== */

/* 業種とタグを囲むコンテナ：グリッドの全幅を使い、中はFlexboxで横並びにする */
.info-grid .taxonomy-row {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	/* スマホなどで幅が足りないときは折り返す */
	gap: 16px;
	/* .info-grid の gap と合わせる */
}

/* 通常のアイテムは中身の分だけ幅を取る */
.info-grid .taxonomy-row .item {
	width: auto;
}

/* flex-expandクラスがついたアイテム（タグ）は、残りの幅すべてを埋める */
.info-grid .taxonomy-row .item.flex-expand {
	flex: 1;
	min-width: 200px;
	/* 極端に狭くなるのを防ぐ */
}

@media screen and (max-width: 768px) {

	/* スマホ時は業種・タグのパネルをそれぞれ100%幅にして縦積みにする */
	.info-grid .taxonomy-row .item,
	.info-grid .taxonomy-row .item.flex-expand {
		width: 100%;
		flex: 0 0 100%;
		min-width: 0;
	}
}



/* ==========================================================================
   Front Page Layout (2 Column) & Column Sidebar
   ========================================================================== */
.front-layout-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 32px;
	align-items: start;
}

.main-search-area {
	/* 検索ボックスは既存のスタイルを継承しつつグリッド内に収める */
}

/* Column Sidebar Styles */
.column-sidebar {
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(8px);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-xl);
	padding: 24px;
	box-shadow: var(--shadow);
}

.column-section {
	margin-bottom: 32px;
}

.column-header {
	font-size: 1rem;
	font-weight: 700;
	color: var(--dark);
	border-bottom: 2px solid var(--primary);
	padding-bottom: 8px;
	margin-bottom: 16px;
}

.column-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.column-card {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	transition: var(--transition);
	background: var(--white);
	padding: 8px;
	border-radius: var(--radius);
	border: 1px solid transparent;
}

.column-card:hover {
	background: var(--white);
	transform: translateX(4px);
	border-color: var(--gray-200);
	box-shadow: var(--shadow-sm);
}

.column-thumb {
	width: 80px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 4px;
	overflow: hidden;
	background: var(--gray-100);
}

.column-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.no-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: var(--gray-500);
	background: var(--gray-100);
}

.column-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.column-title {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--dark);
	line-height: 1.4;
	margin-bottom: 4px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.column-date {
	font-size: 0.75rem;
	color: var(--gray-500);
}

.btn-column-all {
	display: block;
	width: 100%;
	padding: 12px;
	text-align: center;
	background: var(--white);
	color: var(--primary);
	border: 1px solid var(--primary);
	border-radius: var(--radius);
	font-size: 0.875rem;
	font-weight: 600;
	transition: var(--transition);
}

.btn-column-all:hover {
	background: var(--primary);
	color: var(--white);
}

@media (max-width: 900px) {
	.front-layout-grid {
		grid-template-columns: 1fr;
	}

	.column-sidebar {
		margin-top: 24px;
	}
}

/* ==========================================================================
   New Front Page Layout (2 Columns)
   ========================================================================== */
.container.front-page-layout {
	max-width: 1600px;
	/* Increase width for 2-column layout */
}

.front-page-layout {
	display: grid;
	gap: 32px;
	padding-bottom: 80px;
	align-items: start;
}

/* Mobile Default: Stacked (Main then Sidebar) */
.layout-main {
	min-width: 0;
}

.layout-sidebar {
	min-width: 0;
}

.layout-main .search-section,
.layout-main .results-section {
	padding-top: 0;
	padding-bottom: 24px;
	margin-top: 0;
}

/* Sidebar Styles */
.column-section {
	background: var(--white);
	padding: 24px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	margin-bottom: 24px;
	border: 1px solid var(--gray-100);
}

.column-header {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--gray-100);
}

.column-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.column-card {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.column-card:hover .column-title {
	color: var(--primary);
}

.column-thumb {
	width: 80px;
	height: 60px;
	flex-shrink: 0;
	background: var(--gray-100);
	border-radius: var(--radius);
	overflow: hidden;
}

.column-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.no-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.625rem;
	color: var(--gray-500);
	background: var(--gray-50);
}

.column-info {
	flex: 1;
	min-width: 0;
}

.column-title {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: 4px;
	color: var(--dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.column-date {
	font-size: 0.75rem;
	color: var(--gray-500);
	display: block;
}

.btn-column-all {
	display: block;
	text-align: center;
	font-size: 0.875rem;
	color: var(--primary);
	font-weight: 600;
	margin-top: 16px;
}

.btn-column-all:hover {
	text-decoration: underline;
}

/* PC View (> 900px): 2 Column Side-by-Side */
@media (min-width: 900px) {
	.front-page-layout {
		grid-template-columns: 1fr 300px;
		margin-top: 40px;
	}

	.layout-sidebar {
		position: sticky;
		top: 80px;
	}
}

/* ==========================================================================
   SP Layout Adjustment: Overlap Search Box
   ========================================================================== */
@media (max-width: 768px) {
	.search-section {
		margin-top: -60px;
		position: relative;
		z-index: 20;
		padding-left: 10px;
		padding-right: 10px;
	}
}

/* Search form checkbox responsive text */
.label-text-sp {
	display: none;
}

@media (max-width: 768px) {
	.label-text-pc {
		display: none;
	}

	.label-text-sp {
		display: inline;
	}
}

/* ==========================================================================
   Cookie Consent Popup
   ========================================================================== */
.cookie-consent-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	background: var(--white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	padding: 24px;
	width: 460px;
	z-index: 9000;
	border: 1px solid var(--gray-200);
	animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.cookie-text {
	font-size: 0.875rem;
	color: var(--gray-700);
	margin-bottom: 20px;
	line-height: 1.6;
}

.cookie-buttons {
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.cookie-btn {
	padding: 10px 20px;
	border-radius: var(--radius);
	font-size: 0.875rem;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	transition: var(--transition);
	border: none;
	white-space: nowrap;
}

.cookie-btn.accept {
	background: var(--white);
	color: var(--gray-600);
	border: 1px solid var(--gray-200);
}

.cookie-btn.accept:hover {
	background: var(--gray-50);
	color: var(--gray-900);
	border-color: var(--gray-300);
}

.cookie-btn.more {
	background: var(--primary);
	color: var(--white);
}

.cookie-btn.more:hover {
	background: var(--primary-dark);
}


.cookie-btn.more:hover {
	background: #000;
}

@media (max-width: 480px) {
	.cookie-consent-popup {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		border-radius: 8px 8px 0 0;
		border-bottom: none;
	}
}

@media (max-width: 425px) {
	.cookie-buttons {
		flex-direction: column;
		gap: 8px;
	}

	.cookie-btn {
		width: 100%;
		text-align: center;
		padding: 12px 20px;
	}

	.cookie-consent-popup {
		padding: 20px;
	}
}

/* ==========================================================================
   Privacy Policy Styles
   ========================================================================== */
#privacy-policy {
	margin-top: 60px;
	scroll-margin-top: 100px;
	/* Header height (approx 64px) + margin */
}

#privacy-policy .privacy-content h3 {
	font-size: 1.25rem;
	margin-top: 32px;
	margin-bottom: 16px;
	border-left: 4px solid var(--primary);
	padding-left: 12px;
	color: var(--dark);
	font-weight: 700;
}

#privacy-policy .privacy-content p {
	margin-bottom: 16px;
	line-height: 1.8;
}

#privacy-policy .privacy-content ol {
	margin-bottom: 24px;
	padding-left: 0;
	list-style: none;
}

#privacy-policy .privacy-content ol li {
	margin-bottom: 8px;
	padding-left: 1rem;
	text-indent: -1rem;
}

/* Table Styles */
.table-responsive {
	overflow-x: auto;
	margin-bottom: 24px;
}

.privacy-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
	min-width: 600px;
}

.privacy-table th,
.privacy-table td {
	border: 1px solid #ddd;
	padding: 12px;
	text-align: left;
	vertical-align: top;
}

.privacy-table th {
	background: #f9fafb;
	font-weight: 600;
	width: 20%;
	color: var(--gray-700);
}

#privacy-policy .date {
	margin-top: 40px;
	text-align: right;
	color: #666;
}

/* ==========================================================================
   Accessibility (WCAG 2.4.7 Focus Visible)
   ========================================================================== */
/* 全てのインタラクティブ要素（リンク、ボタン、フォーム要素など）に
   キーボード操作時の明確なフォーカススタイルを適用 */
:focus-visible {
	outline: 3px solid var(--primary);
	outline-offset: 2px;
	z-index: 1000;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ==========================================================================
   AI Disclaimer
   ========================================================================== */
.ai-disclaimer {
	border: 1px solid #ef4444;
	background-color: #fef2f2;
	color: #b91c1c;
	padding: 16px 40px 16px 16px;
	margin-top: 24px;
	margin-bottom: 24px;
	border-radius: 8px;
	font-size: 0.9rem;
	line-height: 1.6;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	position: relative;
}

.ai-disclaimer svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	margin-top: 2px;
}

.ai-disclaimer-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: none;
	border: none;
	color: #ef4444;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.ai-disclaimer-close:hover {
	opacity: 1;
}

/* Adjustments for front-page placement */
.front-page-disclaimer .container {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   News Archive Animation
   ========================================================================== */
.news-link-animated {
	color: var(--dark);
	font-weight: 600;
	flex: 1;
	min-width: 250px;
	text-decoration: none;
	transition: color 0.3s ease;
	display: block;
	/* Ensure block behavior if needed, flex item handles width */
}

.news-link-animated .news-title-text {
	position: relative;
	display: inline-block;
}

.news-link-animated:hover {
	color: var(--primary);
}

.news-link-animated .news-title-text::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 1px;
	background-color: var(--primary);
	transition: width 0.3s ease;
}

.news-link-animated:hover .news-title-text::after {
	width: 100%;
}

/* ==========================================================================
   Search Loader Animation
   ========================================================================== */
.search-loader {
	display: none;
	width: 100%;
	min-height: 200px;
	justify-content: center;
	align-items: center;
	background: rgba(255, 255, 255, 0.8);
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 10;
}

.results-section {
	position: relative;
	/* For loader positioning */
	min-height: 200px;
	/* To prevent collapse when empty */
}

/* When loading, show loader */
/* Note: We will use JS to toggle display, but we can also use a class */
.search-loader.active {
	display: flex !important;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 4px solid var(--gray-200);
	border-top: 4px solid var(--primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* 検索結果のローディング状態 */
.results-grid.loading {
	opacity: 0.3;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* ==========================================================================
   Proposal Detail Styles
   ========================================================================== */
.proposal-detail h1 {
	font-size: 1.5rem;
	/* Reduced from default */
	margin-bottom: 24px;
	line-height: 1.4;
	color: var(--dark);
	font-weight: 700;
}

/* Search form checkbox responsive text */
.label-text-sp {
	display: none;
}

@media (max-width: 768px) {
	.label-text-pc {
		display: none;
	}

	.label-text-sp {
		display: inline;
	}
}

/* ==========================================================================
   SP Button Unification (Added)
   ========================================================================== */
@media screen and (max-width: 768px) {

	/* Ensure Header is above Search Overlay (12000) but below Floating Button (13000) */
	.site-header {
		z-index: 12500 !important;
		position: sticky;
	}

	.btn-column-all,
	.btn-secondary {
		width: 100%;
		padding: 16px;
		display: flex;
		justify-content: center;
		align-items: center;
		min-height: 54px;
		font-size: 1rem;
		/* Ensure readable size */
		box-sizing: border-box;
	}

	/* Ensure margin for stacked buttons if needed */
	.btn-secondary+.btn-secondary {
		margin-top: 16px;
		margin-left: 0;
	}

	/* Column list "See all" specific adjustment if needed */
	.btn-column-all {
		margin-top: 24px;
	}
}

/* ==========================================================================
   Footer Menu
   ========================================================================== */
.footer-nav {
	margin-bottom: 20px;
}

.footer-menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 20px;
}

.footer-menu li a {
	color: var(--gray-400);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-menu li a:hover {
	color: var(--white);
}

/* ==========================================================================
   SP Floating Search Button & Popup (Revised)
   ========================================================================== */

/* 1. PC View adjustments (Always applied effectively, but scoped) */
.search-popup-close {
	/* Default hidden on PC */
	display: none;
}

@media (min-width: 769px) {
	.search-popup-close {
		display: none !important;
	}

	/* HIDE SP floating elements on PC */
	.sp-floating-group,
	#global-search-popup {
		display: none !important;
	}

	/* Fix panel internal scrolling on PC */
	.search-box {
		overflow: visible !important;
		height: auto !important;
		max-height: none !important;
	}

	/* Ensure Search Wrapper is normal flow on PC */
	#front-search-wrapper {
		display: block !important;
		position: static !important;
		background: transparent !important;
		box-shadow: none !important;
		padding: 0 !important;
		width: auto !important;
		height: auto !important;
	}

	/* Hide View Results Button on PC */
	.btn-view-results {
		display: none !important;
	}
}

/* 2. SP Styling (< 769px) */
@media (max-width: 768px) {

	/* --- Floating Action Button (FAB) --- */
	#sp-floating-search-btn {
		display: flex !important;
		/* Force visibility on SP */
		align-items: center;
		justify-content: center;
		position: fixed;
		bottom: 20px;
		right: 20px;
		width: 60px;
		height: 60px;
		border-radius: 50%;
		background: var(--primary);
		color: #fff;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
		z-index: 13600;
		/* Highest priority (Above Overlay 13500) */
		cursor: pointer;
		transition: transform 0.2s ease;
	}

	#sp-floating-search-btn:active {
		transform: scale(0.95);
	}

	/* Icon styles */
	#sp-floating-search-btn svg {
		width: 28px;
		height: 28px;
	}

	/* --- Popup Base --- */
	/* We use a common class approach plus ID specific handling */

	/* Overlay / Wrapper Base */
	.search-popup-overlay,
	#front-search-wrapper {
		display: none;
		/* Initial hidden */
		transition: background 0.3s ease;
	}

	/* IS OPEN (Common) */
	.search-popup-overlay.is-open,
	#front-search-wrapper.is-open {
		display: block;
		position: fixed;
		z-index: 13500;
		/* Above FAB and MyPage Menu */
	}

	/* --- Stage 1: Partial Popup (Fast Search) --- */
	.search-popup-overlay.is-partial,
	#front-search-wrapper.is-partial {
		background: transparent;
		/* No dim background yet */
		top: auto;
		bottom: 90px;
		/* Above FAB (20px bottom + 60px height + 10px gap) */
		left: 10px;
		right: 10px;
		height: auto;
		width: auto;
		pointer-events: none;
		/* Let clicks pass through transparent areas */
	}

	/* The "Card" inside Partial */
	.search-popup-overlay.is-partial .search-popup-inner,
	#front-search-wrapper.is-partial .search-box {
		/* Wrapper styling for the sheet */
		background: #fff;
		border-radius: 12px;
		padding: 16px;
		box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
		pointer-events: auto;
		/* Catch clicks on the card */

		position: static;
		/* Relative to wrapper is fine */
		display: block;
	}

	/* Partial Visibility Rules: SHOW only specific items */
	/* Hide basically everything first */
	.is-partial .search-box>*,
	.is-partial .search-popup-content>* {
		display: none;
	}

	/* Explicitly SHOW: */
	/* 0. Wrapper box */
	.is-partial .search-popup-content>.search-box {
		display: block !important;
	}

	/* 1. Search Main Input Area */
	.is-partial .search-box .search-main {
		display: flex !important;
		margin-bottom: 0 !important;
	}

	.is-partial .search-box .search-main .btn-search {
		display: none !important;
		/* Hide the magnifying glass button */
	}

	/* 2. Detailed Filter Link (Toggle) */
	.is-partial .search-box .filters-toggle {
		display: inline-flex !important;
		width: 100%;
		justify-content: center;
		padding: 12px;
		margin-top: 8px;
		border-top: 1px solid #eee;
	}

	/* 3. Search Status Display */
	.is-partial .search-box .search-status-display,
	.is-full .search-box .search-status-display {
		display: flex !important;
		margin-bottom: 12px;
	}

	/* 4. View Results Button */
	.is-partial .search-box .btn-view-results {
		display: block !important;
		margin-top: 12px;
		margin-bottom: 0 !important;
	}

	/* 5. Saved Search List (Show container, but hide button) */
	.is-partial .save-search-area {
		display: block !important;
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid #eee;
		position: static !important;
		/* Reset sticky if strictly bottom */
	}

	/* Hide the "Save Search Conditions" BUTTON in Stage 1 */
	.is-partial .save-search-area .btn-save-search,
	.is-partial .save-search-area .save-btn-wrapper {
		display: none !important;
	}

	/* Ensure the list itself is visible */
	.is-partial .saved-searches-list {
		display: flex !important;
		margin-bottom: 0;
	}

	/* Ensure Filter Panel is HIDDEN (even if JS tries to show it, CSS overrides in partial) */
	.is-partial .filters-panel {
		display: none !important;
	}

	.is-partial .search-popup-close {
		display: none !important;
	}


	/* --- Stage 2: Full Popup (Detailed Search) --- */
	.search-popup-overlay.is-full,
	#front-search-wrapper.is-full {
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		height: 100%;
		width: 100%;
		background: rgba(0, 0, 0, 0.5);
		/* Dim background */
		z-index: 13500;

	}

	/* 2. SP Styling (< 769px) */
	@media (max-width: 768px) {

		/* --- Floating Action Button (FAB) --- */
		#sp-floating-search-btn {
			display: flex !important;
			/* Force visibility on SP */
			align-items: center;
			justify-content: center;
			position: fixed;
			bottom: 20px;
			right: 20px;
			width: 60px;
			height: 60px;
			border-radius: 50%;
			background: var(--primary);
			color: #fff;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
			z-index: 13600;
			/* Highest priority */
			cursor: pointer;
			transition: transform 0.2s ease;
		}

		#sp-floating-search-btn:active {
			transform: scale(0.95);
		}

		/* Icon styles */
		#sp-floating-search-btn svg {
			width: 28px;
			height: 28px;
		}

		/* --- Popup Base --- */
		/* We use a common class approach plus ID specific handling */

		/* Overlay / Wrapper Base */
		.search-popup-overlay,
		#front-search-wrapper {
			display: none;
			/* Initial hidden */
			transition: background 0.3s ease;
		}

		/* IS OPEN (Common) */
		.search-popup-overlay.is-open,
		#front-search-wrapper.is-open {
			display: block;
			position: fixed;
			z-index: 13500;
			/* Above FAB */
		}

		/* --- Stage 1: Partial Popup (Fast Search) --- */
		.search-popup-overlay.is-partial,
		#front-search-wrapper.is-partial {
			background: rgba(0, 0, 0, 0.5);
			/* Dim background */
			top: 0;
			bottom: 0;
			left: 0;
			right: 0;
			height: 100%;
			width: 100%;
			pointer-events: auto;
			/* Catch clicks on background */
		}

		/* The "Card" inside Partial */
		.search-popup-overlay.is-partial .search-popup-inner,
		#front-search-wrapper.is-partial .search-popup-inner {
			/* Wrapper styling for the sheet */
			background: #fff;
			border-radius: 12px;
			padding: 16px;
			box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
			pointer-events: auto;
			/* Catch clicks on the card */

			position: absolute;
			bottom: 90px;
			/* Above FAB */
			left: 10px;
			right: 10px;
			display: block;
		}

		/* Partial Visibility Rules: SHOW only specific items */
		/* Hide basically everything first */
		.is-partial .search-box>*,
		.is-partial .search-popup-content>* {
			display: none;
		}

		/* Explicitly SHOW: */
		/* 0. Wrapper box */
		.is-partial .search-popup-content>.search-box {
			display: block !important;
		}

		/* 1. Search Main Input Area */
		.is-partial .search-box .search-main {
			display: flex !important;
			margin-bottom: 0 !important;
		}

		.is-partial .search-box .search-main .btn-search {
			display: none !important;
			/* Hide the magnifying glass button */
		}

		/* 2. Detailed Filter Link (Toggle) */
		.is-partial .search-box .filters-toggle {
			display: inline-flex !important;
			width: 100%;
			justify-content: center;
			padding: 12px;
			margin-top: 8px;
			border-top: 1px solid #eee;
		}

		/* 3. Search Status Display */
		/* Partial: Show within box */
		.is-partial .search-box .search-status-display {
			display: flex !important;
			margin-bottom: 12px;
		}

		/* Full: Hide within box (Moved to fixed top header) */
		.is-full .search-box .search-status-display {
			display: none !important;
		}

		/* 4. View Results Button */
		.is-partial .search-box .btn-view-results {
			display: block !important;
			margin-top: 12px;
			margin-bottom: 0 !important;
		}

		/* 5. Saved Search List (Show container, but hide button) */
		.is-partial .save-search-area {
			display: block !important;
			margin-top: 12px;
			padding-top: 12px;
			border-top: 1px solid #eee;
			position: static !important;
			/* Reset sticky if strictly bottom */
		}

		/* Hide the "Save Search Conditions" BUTTON in Stage 1 */
		.is-partial .save-search-area .btn-save-search,
		.is-partial .save-search-area .save-btn-wrapper {
			display: none !important;
		}

		/* Ensure the list itself is visible */
		.is-partial .saved-searches-list {
			display: flex !important;
			margin-bottom: 0;
		}

		/* Ensure Filter Panel is HIDDEN (even if JS tries to show it, CSS overrides in partial) */
		.is-partial .filters-panel {
			display: none !important;
		}

		.is-partial .search-popup-close {
			display: none !important;
		}


		/* --- Stage 2: Full Popup (Detailed Search) --- */
		.search-popup-overlay.is-full,
		#front-search-wrapper.is-full {
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			height: 100%;
			width: 100%;
			background: rgba(0, 0, 0, 0.5);
			/* Dim background */
		}

		/* The "Card" inside Full */
		/* .search-popup-inner acts as the fixed Frame */
		.search-popup-overlay.is-full .search-popup-inner,
		#front-search-wrapper.is-full .search-popup-inner {

			position: absolute;
			/* top set by js */
			left: 10px;
			right: 10px;
			bottom: 90px;
			/* Leave space for FAB at bottom */
			background: #fff;
			border-radius: 12px;
			/* No padding here, overflow hidden */
			padding: 0;
			overflow: hidden;
			box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);

			display: flex;
			/* Flex container */
			flex-direction: column;
		}

		/* Status Display - Fixed at Top (SP Full Mode) */
		.search-popup-overlay.is-full .fixed-status-display,
		#front-search-wrapper.is-full .fixed-status-display {
			display: block !important;
			position: absolute;
			top: 20px;
			left: 50%;
			transform: translateX(-50%);
			z-index: 10;
			/* Above content, below close button (if close button is z-index 20+) */
			width: auto;
			text-align: center;
			pointer-events: none;
			/* Allow clicks to pass through if needed, though text selection might be desired */
		}

		.fixed-status-display .status-text-area {
			background: var(--gray-100);
			padding: 6px 16px;
			border-radius: 20px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
		}

		.fixed-status-display .status-message {
			font-size: 0.85rem;
			font-weight: 600;
			color: var(--primary);
		}

		/* The Scrollable Area */
		.search-popup-overlay.is-full .search-popup-content,
		#front-search-wrapper.is-full .search-popup-content {
			flex: 1;
			overflow-y: auto;
			-webkit-overflow-scrolling: touch;
			padding: 20px;
			padding-top: 40px;
			/* Space for Close button */
			padding-bottom: 80px;
			/* Space for Fixed Bottom Button */
		}

		/* Restore standard visibility in Full Mode */
		.is-full .search-box>*,
		.is-full .search-popup-content>* {
			display: block;
			/* Or defaults */
		}

		/* Remove double padding/shadow for search-box inside popup on SP (Both Partial and Full) */
		.is-partial .search-popup-content .search-box,
		.is-full .search-popup-content .search-box {
			padding: 0 !important;
			box-shadow: none !important;
			background: transparent !important;
		}

		.is-full .save-search-area .btn-save-search,
		.is-full .save-search-area .save-btn-wrapper {
			display: flex !important;
			/* Restore button */
		}

		/* Fixed Bottom Button for Detailed Search (Stage 2) */
		.is-full .search-box .btn-view-results {
			position: absolute;
			bottom: 0;
			left: 0;
			width: 100%;
			margin: 0 !important;
			border-radius: 0 0 12px 12px;
			z-index: 10;
			box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
		}

		.is-full .search-box .search-main {

			display: flex;
		}

		/* Hide Detailed Filter Toggle in Full Mode */
		.is-full .filters-toggle {
			display: none !important;
		}

		.is-full .search-popup-close {
			display: block !important;
			position: absolute;
			top: 20px;
			right: 10px;
			width: 32px;
			height: 32px;
			border: none;
			background: #f1f5f9;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 1.2rem;
			color: #64748b;
			z-index: 20;
			cursor: pointer;
			box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		}

		/* Search wrapper specific overrides for consistency */
		#front-search-wrapper .search-box {
			/* Front page search box might have specific styles, reset them for popup mode */
			margin: 0 !important;
			width: auto !important;
		}

		/* Reset Search Box inside Inner Card on Front Page Popup */
		#front-search-wrapper.is-full .search-popup-inner .search-box {
			box-shadow: none !important;
			background: transparent !important;
			padding: 0 !important;
		}

		/* SP Floating Button Group */
		.sp-floating-group {
			-webkit-tap-highlight-color: transparent;
			outline: none;
			position: fixed;
			bottom: 20px;
			right: 20px;
			z-index: 13600;
			display: flex;
			/* Show on SP */
			align-items: center;
			justify-content: flex-end;
			gap: 12px;
			pointer-events: none;
			/* Wrapper itself shouldn't block, children will enable pointer-events */
		}

		.sp-floating-btn {
			-webkit-tap-highlight-color: transparent;
			outline: none;
			width: 56px;
			height: 56px;
			background: var(--primary);
			color: white;
			border-radius: 50%;
			display: flex;
			align-items: center;
			justify-content: center;
			box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
			cursor: pointer;
			transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
			pointer-events: auto;
		}

		#sp-floating-search-btn.is-active {
			background: var(--gray-600) !important;
		}

		#sp-floating-search-btn.is-active svg {
			display: none;
		}

		/* Create '×' using CSS */
		#sp-floating-search-btn.is-active::before,
		#sp-floating-search-btn.is-active::after {
			content: "";
			position: absolute;
			top: 50%;
			left: 50%;
			width: 24px;
			height: 2px;
			background-color: #fff;
			transform: translate(-50%, -50%) rotate(45deg);
			transition: all 0.3s ease;
		}

		#sp-floating-search-btn.is-active::after {
			transform: translate(-50%, -50%) rotate(-45deg);
		}

		.sp-floating-sub-btn {
			-webkit-tap-highlight-color: transparent;
			outline: none;
			background: var(--success);
			color: white;
			border: none;
			border-radius: 28px;
			/* Rounded pill matching height */
			padding: 0 20px;
			height: 56px;
			/* Match Main Button Height */
			display: flex;
			align-items: center;
			justify-content: center;
			font-size: 0.9rem;
			font-weight: 700;
			box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
			cursor: pointer;
			white-space: nowrap;
			opacity: 0;
			transform: translateX(20px) scale(0.8);
			pointer-events: none;
			transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
			position: absolute;
			right: 69px;
			bottom: 1.5px;
			/* Align with main button */
			user-select: none;
		}

		/* Clear button specific styling */
		.sp-floating-sub-btn-clear {
			background: #ef4444;
			/* Red color for clear action */
			box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
		}

		/* Show buttons when active */
		.sp-floating-group.show-detail-btn #sp-floating-sub-btn-detail {
			opacity: 1;
			transform: translateX(0) scale(1);
			pointer-events: auto;
		}

		.sp-floating-group.show-fast-btn #sp-floating-sub-btn-fast {
			opacity: 1;
			transform: translateX(0) scale(1);
			pointer-events: auto;
			background: var(--success);
			/* Ensure green */
		}

		/* Show clear button when detail button is shown - position based on detail button */
		.sp-floating-group.show-detail-btn #sp-floating-sub-btn-clear {
			opacity: 1;
			transform: translateX(0) scale(1);
			pointer-events: auto;
			right: 204px;
			/* Detail button width + 69px + 10px gap */
		}

		/* Show clear button when fast button is shown - position based on fast button */
		.sp-floating-group.show-fast-btn #sp-floating-sub-btn-clear {
			opacity: 1;
			transform: translateX(0) scale(1);
			pointer-events: auto;
			right: 232px;
			/* Fast button width + 69px + 10px gap */
		}

		.is-partial .search-checkbox-wrapper {
			margin-top: 8px !important;
			display: flex !important;
			margin-bottom: 8px !important;
		}

		/* Hide PC version clear button in SP popups */
		.is-partial .search-box #btn-condition-clear,
		.is-full .search-box #btn-condition-clear {
			display: none !important;
		}

		/* Restore View Search Results Button */
		.btn-view-results {
			-webkit-tap-highlight-color: transparent;
			outline: none;
			width: 100%;
			background: var(--primary);
			color: #fff;
			font-weight: 700;
			padding: 14px;
			border-radius: 8px;
			border: none;
			cursor: pointer;
			text-align: center;
			margin-top: 16px;
			display: block;
			text-decoration: none;
			font-size: 1rem;
		}

		.btn-view-results:hover {
			opacity: 0.9;
		}
	}

	/* ==========================================================================
   SP Fast Search Popup (Stage 1) - Hide Elements
   ========================================================================== */
	@media (max-width: 768px) {

		#front-search-wrapper.is-partial .filters-toggle,
		#global-search-popup.is-partial .filters-toggle,
		#front-search-wrapper.is-partial .search-checkbox-wrapper,
		#global-search-popup.is-partial .search-checkbox-wrapper {
			display: none !important;
		}

		/* Fix for Global Search Popup Input Overlap (Non-TOP pages) & Unify Design */
		#front-search-wrapper .search-input,
		#global-search-popup .search-input {
			padding-left: 40px;
		}

		#front-search-wrapper .search-input-wrapper svg,
		#global-search-popup .search-input-wrapper svg {
			left: 16px;
		}

		/* Untrap Search Popup from Stacking Context on SP TOP Page */
		.front-page-layout,
		.layout-main,
		.search-section {
			transform: none !important;
			filter: none !important;
			perspective: none !important;
			contain: none !important;
			z-index: auto !important;
		}
	}

	/* ==========================================================================
   SP News Carousel Fix (Moved from top to override global styles)
   ========================================================================== */
	@media screen and (max-width: 768px) {

		/* Make news area more compact */
		.hero-news-area {
			margin-top: 16px;
			overflow: hidden;
			position: relative;
			width: 100%;
			margin-bottom: 0;
		}

		.hero-news-list {
			display: flex;
			/* width is set by JS */
			padding: 0;
			margin: 0;
			list-style: none;
			transition: transform 0.3s ease-out;
			/* Match JS transition */
			will-change: transform;
		}

		.hero-news-item {
			/* display: flex to align date and title, overriding global if needed but keeping same structure */
			display: flex !important;
			flex-direction: row;
			align-items: center;
			justify-content: center;

			/* Remove flex: 0 0 100% because JS sets the width based on count */
			flex: 0 0 auto;
			/* width is set by JS */

			font-size: 0.8125rem;
			padding: 4px 0;
			/* Adjust padding */
			box-sizing: border-box;
			white-space: nowrap;
			overflow: hidden;
		}

		.hero-news-date {
			margin-right: 8px;
			/* Reset margin for SP */
			font-size: 0.75rem;
		}

		.hero-news-title {
			flex: 1;
			/* Allow title to take remaining space if needed */
			overflow: hidden;
			text-overflow: ellipsis;
			text-align: left;
			/* Align text left next to date */
		}

		.hero-news-item a {
			color: rgba(255, 255, 255, 0.95);
			text-decoration: none;
			/* Clean up link style */
		}

		.hero-news-item a:hover {
			text-decoration: underline;
		}

		/* Show the "See all" link on SP */
		.hero-news-header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 12px;
			/* Increased from 8px */
			padding: 0 4px 8px;
			/* Added bottom padding */
			border-bottom: 1px solid rgba(255, 255, 255, 0.3);
			/* Add explicit border for separation if visible in design, otherwise padding helps spacing */
		}

		.hero-news-label {
			font-size: 0.875rem;
			font-weight: 700;
		}

		.hero-news-link {
			font-size: 0.75rem;
			opacity: 0.9;
			text-decoration: underline;
		}
	}
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}

ul.page-numbers {
	display: flex;
	justify-content: center;
	gap: 8px;
	padding: 0;
	list-style: none;
}

.page-numbers:not(ul) {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--white);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	font-weight: 600;
	color: var(--gray-600);
	transition: var(--transition);
	text-decoration: none;
}

.page-numbers:not(ul):hover {
	background: var(--gray-50);
	color: var(--primary);
	border-color: var(--primary);
}

.page-numbers.current {
	background: var(--primary);
	color: var(--white);
	border-color: var(--primary);
	pointer-events: none;
}

.page-numbers.dots {
	border: none;
	background: transparent;
	color: var(--gray-400);
	pointer-events: none;
}

.page-numbers.disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: default;
	color: var(--gray-400);
}

@media screen and (max-width: 768px) {
	.page-numbers:not(ul) {
		min-width: 36px;
		height: 36px;
		font-size: 0.9rem;
		padding: 0 8px;
	}
}





/* ==========================================================================
   Static Pages (Contact, About, Operator)
   ========================================================================== */

/* Common Container & Layout */
.contact-page .container,
.about-page .container,
.operator-page .container {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

.page-title {
	text-align: center;
	margin-bottom: 40px;
	font-size: 2rem;
	font-weight: bold;
}

/* Page Panels / Cards */
.contact-form-wrapper,
.page-panel,
.profile-card {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Contact Page Specifics */
.spam-warning {
	color: #d00;
	font-weight: bold;
	margin-bottom: 20px;
	text-align: center;
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 8px;
}

.check-group label {
	cursor: pointer;
}

.required {
	background: #e00;
	color: #fff;
	font-size: 11px;
	padding: 2px 6px;
	border-radius: 3px;
	margin-left: 5px;
	vertical-align: middle;
}

.input-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.name-row input {
	flex: 0 0 48%;
}

.tel-row input {
	width: 80px;
	text-align: center;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
}

.full-width {
	width: 100%;
	box-sizing: border-box;
}

.btn-area {
	text-align: center;
	margin-top: 40px;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.btn-primary {
	background: #333;
	color: #fff;
	padding: 12px 40px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
}

.btn-primary:hover {
	background: #555;
}

.btn-secondary {
	background: var(--gray-700);
	color: #fff;
	padding: 12px 40px;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: var(--transition);
}

.btn-secondary:hover {
	background: var(--gray-800);
	color: #fff;
}

/* Action Buttons Area (for column/post detail pages) */
.action-buttons-area .btn-secondary,
.action-buttons-area .btn-secondary:visited,
.action-buttons-area .btn-secondary:active,
.action-buttons-area .btn-secondary:focus,
.action-buttons-area .btn-secondary:hover {
	color: #fff;
}

.action-buttons-area {
	display: flex;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
	margin-bottom: 60px;
}

.error-msg {
	color: #d00;
	font-size: 13px;
	margin-top: 5px;
}

.error-summary {
	background: #fee;
	color: #d00;
	padding: 15px;
	border: 1px solid #fcc;
	margin-bottom: 30px;
	border-radius: 4px;
}

.has-error input,
.has-error select,
.has-error textarea {
	border-color: #d00;
	background: #fff9f9;
}

.confirm-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 30px;
}

.confirm-table th {
	width: 30%;
	background: #f9f9f9;
	padding: 15px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: top;
}

.confirm-table td {
	padding: 15px;
	border-bottom: 1px solid #eee;
}

.contact-complete {
	text-align: center;
	padding: 60px 0;
}

.contact-complete h2 {
	font-size: 1.5rem;
	margin-bottom: 20px;
}

/* Privacy Policy Box */
.privacy-policy-box {
	height: 200px;
	overflow-y: scroll;
	border: 1px solid #ccc;
	padding: 15px;
	background: #fdfdfd;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
}

.privacy-policy-box h3 {
	font-size: 16px;
	margin-top: 0;
	margin-bottom: 15px;
	border-bottom: 1px solid #ddd;
	padding-bottom: 5px;
}

.privacy-policy-box p {
	margin-bottom: 15px;
}

.privacy-policy-box strong {
	display: block;
	margin-bottom: 5px;
	color: #333;
}

/* Contact Page specific styles */
.contact-page .privacy-policy-box ol[style*="list-style: none"] {
	margin-bottom: 15px;
}

/* About Page Specifics */
.about-section {
	margin-bottom: 60px;
}

.about-section h2 {
	font-size: 1.5rem;
	border-bottom: 2px solid #ddd;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

@media (min-width: 768px) {
	.features-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media screen and (max-width: 768px) {
	.features-grid {
		margin-top: 10px;
	}
}

.feature-item {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}

.feature-item h3 {
	font-size: 1.2rem;
	margin-bottom: 10px;
	color: #333;
}

.disclaimer-list {
	list-style: none;
	padding: 0;
}

.disclaimer-list li {
	margin-bottom: 25px;
}

.disclaimer-list strong {
	display: block;
	margin-bottom: 5px;
	color: #444;
}

.usage-item {
	margin-bottom: 40px;
}

.usage-item h3 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #1e40af;
	border-left: 4px solid #1e40af;
	padding-left: 10px;
	line-height: 1.4;
}

.usage-list {
	list-style: none;
	padding-left: 0;
}

.usage-list>li {
	margin-bottom: 20px;
	padding-left: 0;
}

.usage-list>li strong {
	color: #111;
	font-weight: 700;
	display: inline-block;
	margin-bottom: 4px;
	background: linear-gradient(transparent 70%, #e0e7ff 70%);
	padding: 0 4px;
}

.usage-list ul {
	margin-top: 8px;
	padding-left: 20px;
	list-style: disc;
	color: #555;
}

.usage-list ul li {
	margin-bottom: 4px;
}

/* Operator Page Specifics */
.profile-card p {
	margin-bottom: 1.5em;
	line-height: 1.8;
}

.profile-card p:last-child {
	margin-bottom: 0;
}

.profile-image {
	text-align: center;
	margin-bottom: 2rem;
}

.profile-image img {
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #f0f0f0;
}

/* SP Responsive Adjustments for Static Pages */
@media screen and (max-width: 768px) {

	/* Narrow padding for SP */
	.contact-form-wrapper,
	.page-panel,
	.profile-card,
	.single-column-article {
		padding: 20px !important;
		/* Force override if needed, but specificity should be enough */
	}

	/* Contact Page SP */
	.name-row {
		flex-direction: column;
		align-items: stretch;
	}

	.tel-row input {
		width: 100%;
	}

	.confirm-table,
	.confirm-table tbody,
	.confirm-table tr,
	.confirm-table th,
	.confirm-table td {
		display: block;
		width: 100%;
	}

	.confirm-table th {
		width: 100%;
		border-bottom: none;
		background: #eee;
		padding: 10px;
	}

	.confirm-table td {
		border-bottom: 1px solid #ccc;
		padding: 10px;
		margin-bottom: 10px;
	}

	.btn-area {
		flex-direction: column;
		gap: 10px;
	}

	.btn-primary,
	a.btn-primary,
	.btn-secondary,
	a.btn-secondary {
		width: 100%;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		text-align: center;
		min-height: 54px;
		padding: 0 16px !important;
		line-height: 1 !important;
	}
}

/* Footer Adjustments */
@media screen and (max-width: 768px) {
	.site-footer {
		padding: 40px 0 80px;
	}
}

/* Disable option buttons after selection */
.option-btn:disabled {
	cursor: default !important;
	pointer-events: none;
}

/* Quiz Ranking Adjustment */
.ranking-preview h3 {
	margin-bottom: 10px;
}

/* Quiz Buttons */
.btn-next {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

/* ==========================================================================


   Breadcrumb
   ========================================================================== */
.breadcrumb-nav {
	background: var(--light);
	padding: 12px 0;
	border-bottom: 1px solid var(--gray-200);
	font-size: 0.8125rem;
	color: var(--gray-600);
}

.breadcrumb-list {
	display: flex;
	flex-wrap: nowrap;
	/* Prevent wrapping to allow truncation */
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
	/* Ensure no overflow */
}

.breadcrumb-item {
	display: flex;
	align-items: center;
	white-space: nowrap;
	/* Keep items on one line locally */
	flex-shrink: 0;
	/* Don't shrink parents/links */
}

.breadcrumb-item a {
	color: var(--gray-500);
	text-decoration: none;
	transition: color 0.2s;
}

.breadcrumb-item a:hover {
	color: var(--primary);
	text-decoration: underline;
}

.breadcrumb-item::after {
	content: ">";
	margin: 0 8px;
	color: var(--gray-400);
	font-size: 0.7rem;
	flex-shrink: 0;
}

.breadcrumb-item:last-child::after {
	display: none;
}

.breadcrumb-item:last-child {
	color: var(--gray-800);
	font-weight: 500;
	pointer-events: none;
	/* Current page is not clickable */

	/* Truncation Logic */
	display: block;
	/* Required for ellipsis on many browsers */
	flex: 1;
	/* Take up remaining space */
	min-width: 0;
	/* Enable flex shrinking below content size */
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media screen and (max-width: 768px) {

	/* Ensure container doesn't force scroll if we want truncation */
	.breadcrumb-nav {
		overflow-x: hidden;
	}
}

/* ==========================================================================
   Search Internal Accordions (Unified Design)
   ========================================================================== */
.search-accordion-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #eff6ff;
	/* Light Blue Background */
	border: 1px solid #dbeafe;
	/* Light Blue Border */
	padding: 12px 16px;
	border-radius: var(--radius);
	cursor: pointer;
	color: #1e40af;
	/* Dark Blue Text */
	font-size: 0.95rem;
	font-weight: 600;
	transition: var(--transition);
	text-align: left;
	margin-bottom: 2px;
}

.search-accordion-toggle:hover {
	background: #dbeafe;
	/* Slightly darker blue on hover */
	color: #1e40af;
	/* Keep Dark Blue */
	border-color: #bfdbfe;
}

.search-accordion-toggle svg {
	transition: transform 0.3s ease;
	color: currentColor;
	flex-shrink: 0;
}

/* Rotate icon when active */
.search-accordion-toggle.active svg {
	transform: rotate(180deg);
	color: currentColor;
}

/* Ensure panel margin matches the new design */
.filters-panel.show {
	margin-top: 12px;
	padding-top: 0;
	border-top: none;
}

#qualifications-panel.show {
	margin-top: 12px;
	padding-top: 0;
	border-top: none;
	display: grid !important;
	/* Override inline display:none */
}