/* Modern CSS for Greenspace Website */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
	/* Color Palette - Unified Green Theme */
	--color-primary: #2E7D32;
	/* Deep Green (Company Color) */
	--color-secondary: #66BB6A;
	/* Lighter Green */
	--color-accent: #FFA726;
	/* Warm Orange (Accent) */
	--color-surface: #F1F8E9;
	/* Very Light Green Background */
	--color-text-main: #333333;
	--color-text-light: #666666;
	--color-background: #FFFFFF;
	--color-white: #FFFFFF;
	--color-border: #E0E0E0;

	/* Typography */
	--font-family-base: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
	--font-size-base: 16px;
	--line-height-base: 1.6;

	/* Spacing */
	--spacing-xs: 0.5rem;
	--spacing-sm: 1rem;
	--spacing-md: 2rem;
	--spacing-lg: 4rem;

	/* Layout */
	--container-width: 1000px;
	/* Reduced for side margins on PC */
	--header-height: 80px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-padding-top: calc(var(--header-height) + 20px);
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-base);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	color: var(--color-text-main);
	background-color: var(--color-background);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-secondary);
}

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

ul {
	list-style: none;
}

/* Utility Classes */
.container {
	width: 90%;
	/* Responsive width */
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0;
	/* Margin handled by max-width + auto margin */
}

.section {
	padding: var(--spacing-lg) 0;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.text-left {
	text-align: left;
}

.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-primary {
	background-color: var(--color-primary);
	color: white;
	border: 2px solid var(--color-primary);
}

.btn-primary:hover {
	background-color: var(--color-secondary);
	border-color: var(--color-secondary);
}

.btn-outline {
	background-color: transparent;
	color: var(--color-primary);
	border: 2px solid var(--color-primary);
}

.btn-outline:hover {
	background-color: var(--color-surface);
}

/* Header & Navigation */
.site-header {
	background-color: rgba(255, 255, 255, 0.95);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
	height: var(--header-height);
	display: flex;
	align-items: center;
}

.site-header .container {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	height: 100%;
}

@media (min-width: 769px) {
	.main-nav>ul>li:first-child>a {
		padding-left: 0;
	}
}

/* Image Modal */
.image-modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.8);
	align-items: center;
	justify-content: center;
}

.image-modal.open {
	display: flex;
}


/* Clickable Feature Card */
.clickable-card {
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
	display: flex;
	flex-direction: column;
}

.clickable-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.click-hint {
	font-size: 0.8rem;
	color: #999;
	margin-top: auto;
	padding-top: 10px;
	text-align: right;
}

.close-modal {
	position: absolute;
	top: 15px;
	right: 25px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	z-index: 2001;
}

.close-modal:hover,
.close-modal:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

.main-nav>ul {
	display: flex;
	gap: 20px;
}

.main-nav a {
	color: var(--color-text-main);
	font-weight: 500;
	padding: 10px;
}

.main-nav a:hover,
.main-nav a.active {
	color: var(--color-primary);
}

/* Dropdown Menu */
.main-nav li {
	position: relative;
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	background-color: white;
	min-width: 200px;
	box-shadow: var(--shadow-md);
	border-radius: 4px;
	padding: 10px 0;
	z-index: 1001;
}

.main-nav li:hover .dropdown-menu {
	display: block;
}

.dropdown-menu li {
	display: block;
	width: 100%;
}

.dropdown-menu a {
	display: block;
	padding: 10px 20px;
	white-space: nowrap;
}

.dropdown-menu a:hover {
	background-color: var(--color-surface);
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
	display: none;
	font-size: 1.5rem;
	background: none;
	border: none;
	cursor: pointer;
}


.main-nav a[href="catalog.html"] {
	border: 2px solid #29B6F6;
	/* Light Blue */
	border-radius: 4px;
	color: #0288D1;
	/* Darker blue text for contrast */
	padding: 8px 16px;
	margin-left: 10px;
	transition: all 0.3s ease;
}

.main-nav a[href="catalog.html"]:hover {
	background-color: #E1F5FE;
	color: #0277BD;
}

.main-nav a.btn-nav-download {
	color: white;
	background-color: var(--color-secondary);
	padding: 8px 16px;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	margin-left: 10px;
}

.main-nav a.btn-nav-download:hover {
	background-color: var(--color-primary);
	/* Dark Green */
	color: white;
}

/* Footer Styles */
.site-footer {
	background-color: #333;
	color: white;
	padding: var(--spacing-lg) 0;
}

.hero {
	position: relative;
	height: 600px;
	background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/common/header-img-final.jpg') center/cover no-repeat;
	/* Fallback if new image not ready */
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-white);
	text-align: center;
}

.hero-content h1 {
	font-size: 3rem;
	margin-bottom: var(--spacing-sm);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
	font-size: 1.5rem;
	margin-bottom: var(--spacing-md);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Features Section (Icons) */
.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-md);
	margin-top: var(--spacing-md);
}

.feature-card {
	background: var(--color-white);
	padding: var(--spacing-md);
	border-radius: 8px;
	box-shadow: var(--shadow-sm);
	text-align: center;
	transition: transform 0.3s ease;
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-md);
}

.feature-card img {
	margin: 0 auto var(--spacing-sm);
	max-height: 80px;
}

#procedure .feature-card img {
	max-height: 160px;
}

/* Main Content Text */
.content-block {
	max-width: 800px;
	margin: 0 auto;
	line-height: 1.8;
}

.content-block h2 {
	color: var(--color-primary);
	margin-bottom: var(--spacing-md);
	font-size: 2rem;
	text-align: center;
}

.content-block p {
	margin-bottom: var(--spacing-sm);
}

/* Footer */
.site-footer {
	background-color: #1a1a1a;
	color: #cccccc;
	padding: var(--spacing-lg) 0;
	margin-top: var(--spacing-xl);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-md);
}

.footer-section h3 {
	color: var(--color-white);
	margin-bottom: var(--spacing-sm);
	font-size: 1.2rem;
}

.footer-section ul li {
	margin-bottom: 0.5rem;
}

.footer-section a {
	color: #cccccc;
}

.footer-section a:hover {
	color: var(--color-white);
}

.copyright {
	text-align: center;
	border-top: 1px solid #333;
	padding-top: var(--spacing-md);
	font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: block;
	}

	.main-nav {
		display: none;
		/* Add JS to toggle */
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--color-white);
		box-shadow: var(--shadow-md);
		padding: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
		margin-top: 0;
	}

	.main-nav.open {
		display: block;
	}

	.main-nav>ul {
		flex-direction: column;
		gap: var(--spacing-sm);
	}

	.hero {
		height: 300px;
	}

	.hero-content h1 {
		font-size: 1.5rem;
		white-space: nowrap;
	}

	.hero-content p {
		font-size: 1rem;
	}

	.content-block h2 {
		font-size: 1.5rem;
	}

	:root {
		--spacing-lg: 2rem;
		--spacing-xl: 4rem;
	}

	/* Fix Dropdown for Mobile */
	.main-nav li {
		width: 100%;
	}

	.dropdown-menu {
		position: static;
		width: 100%;
		transform: none;
		box-shadow: none;
		border: 1px solid var(--color-border);
		background-color: #f9f9f9;
		padding-left: 20px;
		/* Indent */
		margin-top: 5px;
	}

	.dropdown-menu a {
		padding: 8px 15px;
	}
}

/* Product Page Specific Styles */
.product-hero {
	padding-top: 40px;
	padding-bottom: 20px;
	background-color: var(--color-surface);
}

.product-hero h1 {
	color: var(--color-primary);
	font-size: 2.5rem;
	margin-bottom: 10px;
}

.product-hero p {
	font-size: 1.5rem;
	color: #666;
}

.toc-container {
	background: #f5f5f5;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 40px;
}

.toc-list {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.toc-list.center {
	justify-content: center;
}

.section-heading {
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.section-heading.left-bar {
	border-bottom: none;
	border-left: 5px solid var(--color-primary);
	padding-left: 15px;
	margin-bottom: 30px;
	color: var(--color-primary);
}

/* Table Styles */
.product-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.product-table th,
.product-table td {
	padding: 10px;
	border: 1px solid #ddd;
}

.product-table th {
	background-color: #f5f5f5;
}

.product-table td.highlight {
	background-color: var(--color-surface);
	font-weight: bold;
}

.product-table td.center {
	text-align: center;
}

.product-table th.bg-softer-a10 {
	background-color: #fff3e0;
}

.product-table th.bg-saver-e50 {
	background-color: #e3f2fd;
}

.product-table th.bg-saver-e60 {
	background-color: #e8f5e9;
}

.product-table th.bg-oct-p90 {
	background-color: #e8f5e9;
}

.product-table th.bg-oct-p80 {
	background-color: #e3f2fd;
}

.product-table th.bg-oct-p70 {
	background-color: #fff3e0;
}

.design-note {
	background-color: #e3f2fd;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.product-list-image {
	width: 100%;
	border-radius: 8px;
}

.product-main-img {
	width: 100%;
	border-radius: 8px;
}

.product-figure {
	margin: 0;
	position: relative;
}

.product-list {
	list-style-type: disc;
	padding-left: 20px;
	line-height: 1.8;
}

.product-list li {
	margin-bottom: 10px;
}

.section-bg-gray {
	background-color: #f0f4f8;
}

.flex-center {
	display: flex;
	justify-content: center;
}

.certification-card {
	max-width: 400px;
	width: 100%;
}

/* Privacy Page Styling */
.content-card {
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	max-width: 900px;
	margin: 0 auto;
}

@media (max-width: 768px) {
	.content-card {
		padding: 20px;
	}
}

.policy-section {
	margin-bottom: 40px;
}

.policy-section:last-child {
	margin-bottom: 0;
}

.policy-section h3 {
	font-size: 1.5rem;
	color: var(--color-primary);
	border-bottom: 2px solid var(--color-surface);
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.policy-list {
	counter-reset: policy-counter;
	list-style: none;
	padding-left: 0;
}

.policy-list li {
	position: relative;
	padding-left: 40px;
	margin-bottom: 15px;
	line-height: 1.8;
}

.policy-list li::before {
	counter-increment: policy-counter;
	content: counter(policy-counter);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background-color: var(--color-surface);
	color: var(--color-primary);
	border-radius: 50%;
	text-align: center;
	line-height: 28px;
	font-weight: bold;
	font-size: 0.9rem;
}

.address-box {
	background-color: var(--color-surface);
	padding: 20px;
	border-radius: 4px;
	margin-top: 20px;
}

/* Sitemap Styling */
.sitemap-list {
	list-style: none;
	padding: 0;
}

.sitemap-list>li {
	margin-bottom: 20px;
	font-size: 1.1rem;
	font-weight: bold;
}

.sitemap-list a {
	text-decoration: none;
	color: var(--color-text-main);
	transition: color 0.3s;
}

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

.sitemap-list ul {
	list-style: none;
	padding-left: 20px;
	margin-top: 10px;
}

.sitemap-list ul li {
	margin-bottom: 10px;
	font-weight: normal;
	font-size: 1rem;
}

.sitemap-list ul li a::before {
	content: "・";
	margin-right: 5px;
	color: var(--color-primary);
}

/* Image Caption Styles */
.image-caption {
	position: absolute;
	bottom: 0;
	right: 0;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.4);
	padding: 2px 8px;
	font-size: 0.8rem;
	font-weight: 300;
	border-bottom-right-radius: 8px;
	/* Match image border radius */
	border-top-left-radius: 4px;
	pointer-events: none;
}

/* Refactoring Utilities */
.mb-10 {
	margin-bottom: 10px;
}

.mb-20 {
	margin-bottom: 20px;
}

.mb-40 {
	margin-bottom: 40px;
}

.mb-60 {
	margin-bottom: 60px;
}

.mt-10 {
	margin-top: 10px;
}

.mt-40 {
	margin-top: 40px;
}

.w-full {
	max-width: 100%;
}

.text-primary {
	color: var(--color-primary);
}

.features-grid-2col {
	grid-template-columns: 1fr 1fr;
}

.note-box {
	background-color: #e3f2fd;
	padding: 15px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.drawing-image {
	margin-top: 10px;
}

/* PDF Download Section */
.pdf-download-box {
	margin-top: 40px;
	text-align: center;
}

.pdf-download-link {
	display: block;
	width: 25%;
	margin: 0 auto;
	border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
	.features-grid-2col {
		grid-template-columns: 1fr;
	}

	.pdf-download-link {
		width: 60%;
	}
}

/* Additional Utilities */
.text-light {
	color: #666;
}

.text-sm {
	font-size: 0.9em;
}

.text-blue {
	color: #1976D2;
}

.cursor-pointer {
	cursor: pointer;
}

.w-30p {
	width: 30%;
}

.border-none {
	border: none !important;
}

.ratio-4-3 {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 769px) {
	.grid-2fr-1fr {
		grid-template-columns: 2fr 1fr;
	}
}