/*
Theme Name: Lyric Corporate
Theme URI: https://example.com
Author:
Description: シンプルで清潔感のあるコーポレートサイト向けオリジナルテーマ
Version: 1.0
Requires PHP: 7.4
Text Domain: lyric-theme
*/

:root {
	--color-bg: #ffffff;
	--color-bg-alt: #f7f8fa;
	--color-text: #333333;
	--color-text-light: #666666;
	--color-accent: #2f5d8a;
	--color-accent-dark: #1f3f5f;
	--color-border: #e2e5e9;
	--max-width: 1080px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Helvetica Neue", Arial, sans-serif;
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.8;
	font-size: 16px;
}

h1, h2, h3,
.site-title,
.hero h1,
.section-title,
.card h3,
.product-card h3,
.page-content h1 {
	font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
	font-weight: 700;
	letter-spacing: 0.02em;
}

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

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

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
.site-header {
	border-bottom: 1px solid var(--color-border);
	background: var(--color-bg);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	max-width: var(--max-width);
	margin: 0 auto;
}

.site-title {
	font-size: 1.4rem;
	font-weight: bold;
	margin: 0;
}

.site-title a {
	color: var(--color-text);
	text-decoration: none;
}

.site-logo img {
	max-height: 48px;
	width: auto;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.6rem;
	cursor: pointer;
	color: var(--color-text);
}

.main-nav ul {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

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

.main-nav a:hover {
	color: var(--color-accent);
	text-decoration: none;
}

@media (max-width: 780px) {
	.nav-toggle {
		display: block;
	}
	.main-nav {
		display: none;
		width: 100%;
	}
	.main-nav.is-open {
		display: block;
	}
	.main-nav ul {
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--color-border);
	}
	.main-nav a {
		display: block;
		padding: 14px 20px;
		border-bottom: 1px solid var(--color-border);
	}
	.site-header-inner {
		flex-wrap: wrap;
	}
}

/* Hero */
.hero {
	background: var(--color-bg-alt);
	padding: 80px 20px;
	text-align: center;
}

.hero h1 {
	font-size: 2.2rem;
	margin: 0 0 16px;
}

.hero p {
	color: var(--color-text-light);
	font-size: 1.1rem;
	margin: 0 auto 28px;
	max-width: 600px;
}

.hero--has-image {
	background-size: cover;
	background-position: center;
	position: relative;
	padding: 140px 20px;
}

.hero--has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 30, 40, 0.55);
}

.hero--has-image h1,
.hero--has-image p,
.hero--has-image .button-subtle {
	position: relative;
	z-index: 1;
	color: #fff;
}

.hero--has-image .button-subtle {
	border-color: rgba(255, 255, 255, 0.6);
}

.hero--has-image .button-subtle:hover {
	color: #fff;
	border-color: #fff;
}

.button {
	display: inline-block;
	background: var(--color-accent);
	color: #fff;
	padding: 12px 32px;
	border-radius: 4px;
	font-weight: bold;
}

.button:hover {
	background: var(--color-accent-dark);
	color: #fff;
	text-decoration: none;
}

.button-subtle {
	display: inline-block;
	background: none;
	color: var(--color-text-light);
	padding: 4px 0;
	font-size: 0.85rem;
	font-weight: normal;
	border-bottom: 1px solid var(--color-border);
}

.button-subtle:hover {
	color: var(--color-accent);
	border-color: var(--color-accent);
	text-decoration: none;
}

/* Sections */
.section {
	padding: 64px 20px;
}

.section-title {
	text-align: center;
	font-size: 1.6rem;
	margin: 0 0 40px;
}

.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 28px;
}

.card {
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: 28px;
	background: var(--color-bg);
}

.card h3 {
	margin-top: 0;
}

/* Product grid */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}

.product-card {
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
	background: var(--color-bg);
}

.product-card .thumb {
	aspect-ratio: 4 / 3;
	background: var(--color-bg-alt);
	overflow: hidden;
}

.product-card .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.product-card .body {
	padding: 16px;
}

.product-card h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
}

.product-card p {
	color: var(--color-text-light);
	font-size: 0.92rem;
	margin: 0;
}

/* Page content */
.page-content {
	padding: 56px 20px;
	max-width: 800px;
	margin: 0 auto;
}

.page-content h1 {
	font-size: 1.8rem;
	margin-bottom: 32px;
}

.page-content table {
	border-collapse: collapse;
	width: 100%;
}

.page-content table th,
.page-content table td {
	border: 1px solid var(--color-border);
	padding: 12px;
	text-align: left;
}

.page-content table th {
	background: var(--color-bg-alt);
	width: 30%;
}

/* Contact form */
.contact-form {
	max-width: 640px;
	margin: 0 auto;
}

.form-row {
	margin-bottom: 20px;
}

.form-row label {
	display: block;
	font-weight: bold;
	margin-bottom: 6px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
}

.form-row textarea {
	min-height: 160px;
}

.required {
	color: #c0392b;
	font-size: 0.8rem;
	margin-left: 6px;
}

.form-message {
	padding: 14px 18px;
	border-radius: 4px;
	margin-bottom: 24px;
}

.form-message.success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.form-message.error {
	background: #fdecea;
	color: #c0392b;
	border: 1px solid #f5c6cb;
}

/* Footer */
.site-footer {
	background: var(--color-bg-alt);
	border-top: 1px solid var(--color-border);
	padding: 40px 20px;
	text-align: center;
	color: var(--color-text-light);
	font-size: 0.9rem;
}

/* Honeypot field - hidden from real users, catches bots */
.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}
