/*
Theme Name: 湘南経営研究所
Theme URI: https://shonankeiei.com
Author: 湘南経営研究所
Author URI: https://shonankeiei.com
Description: 湘南経営研究所（DX/AXコンサルティング・補助金支援）コーポレートサイト用オリジナルテーマ
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: shonan-keiei
*/

/* ==========================================================================
   基本設定
   ========================================================================== */
:root {
	--color-navy: #0b3d66;
	--color-blue: #1e6fb0;
	--color-blue-light: #eaf3fb;
	--color-green: #4c9a54;
	--color-text: #263238;
	--color-text-light: #5b6b73;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f9fc;
	--color-border: #e0e8ee;
	--font-base: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
	--max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.8;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--color-navy); line-height: 1.5; margin: 0 0 .6em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.4em; }

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

.btn {
	display: inline-block;
	padding: .9em 2em;
	border-radius: 6px;
	background: var(--color-blue);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
	border: none;
	cursor: pointer;
	font-size: 1rem;
}
.btn:hover { background: var(--color-navy); text-decoration: none; transform: translateY(-1px); }
.btn-outline {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.15); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--color-border);
}
.site-header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 56px; width: auto; }

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

.main-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	margin: 0;
	padding: 0;
}
.main-nav a {
	color: var(--color-text);
	font-weight: 600;
	font-size: .95rem;
	padding: 6px 2px;
	border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--color-blue); text-decoration: none; border-bottom-color: var(--color-blue); }

@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.main-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--color-border);
		box-shadow: 0 6px 12px rgba(0,0,0,.06);
	}
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 16px 24px; gap: 14px; }
}

/* ==========================================================================
   ヒーロー・共通ページヘッダー
   ========================================================================== */
.hero {
	background: linear-gradient(120deg, var(--color-navy), var(--color-blue) 70%, var(--color-green));
	color: #fff;
	padding: 80px 0 90px;
	text-align: center;
}
.hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .5em; }
.hero p.lead { font-size: 1.15rem; max-width: 680px; margin: 0 auto 1.8em; opacity: .95; }
.hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.page-header {
	background: linear-gradient(120deg, var(--color-navy), var(--color-blue));
	color: #fff;
	padding: 56px 0;
	text-align: center;
}
.page-header h1 { color: #fff; margin: 0; font-size: 1.9rem; }
.page-header p { margin: .6em 0 0; opacity: .9; }

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; margin-bottom: 2em; }
.section-title h2 { position: relative; display: inline-block; }
.section-title h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--color-green);
	margin: 14px auto 0;
}
.section-title p { color: var(--color-text-light); }

.grid {
	display: grid;
	gap: 24px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 780px) {
	.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
	background: #fff;
	border: 1px solid var(--color-border);
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 2px 10px rgba(11,61,102,.05);
}
.card h3 { margin-top: 0; }
.card .tag {
	display: inline-block;
	background: var(--color-blue-light);
	color: var(--color-blue);
	font-size: .78rem;
	font-weight: bold;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: .8em;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.badge {
	background: var(--color-bg-alt);
	border: 1px solid var(--color-border);
	border-radius: 999px;
	padding: 8px 18px;
	font-size: .9rem;
	color: var(--color-navy);
	font-weight: 600;
}

.two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
@media (max-width: 780px) {
	.two-col { grid-template-columns: 1fr; }
}
.two-col img { border-radius: 10px; }

.cta-band {
	background: var(--color-navy);
	color: #fff;
	text-align: center;
	padding: 56px 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: .9; margin-bottom: 1.6em; }

/* ==========================================================================
   表
   ========================================================================== */
table.info-table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
table.info-table th, table.info-table td {
	text-align: left;
	padding: 14px 16px;
	border-bottom: 1px solid var(--color-border);
	vertical-align: top;
}
table.info-table th {
	width: 200px;
	color: var(--color-navy);
	background: var(--color-bg-alt);
	white-space: nowrap;
}

/* ==========================================================================
   フォーム
   ========================================================================== */
.contact-form { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-navy); }
.form-row .required { color: #c0392b; font-size: .8em; margin-left: 6px; }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font-size: 1rem;
	font-family: inherit;
}
.form-row textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--color-text-light); }
.form-message { padding: 16px 20px; border-radius: 6px; margin-bottom: 24px; }
.form-message.success { background: #e7f6ec; color: #1e6f3a; border: 1px solid #b7e3c4; }
.form-message.error { background: #fdecea; color: #b3261e; border: 1px solid #f3b9b3; }
.hp-field { position: absolute; left: -9999px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item {
	border-bottom: 1px solid var(--color-border);
	padding: 18px 0;
}
.faq-item h3 { margin: 0 0 .5em; font-size: 1.05rem; }
.faq-item h3::before { content: "Q. "; color: var(--color-blue); }
.faq-item p::before { content: "A. "; color: var(--color-green); font-weight: bold; }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
	background: #0a2a45;
	color: #cfe0ee;
	padding: 48px 0 24px;
	margin-top: 40px;
}
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #cfe0ee; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
	text-align: center;
	font-size: .82rem;
	color: #8fa9bd;
	border-top: 1px solid rgba(255,255,255,.1);
	padding-top: 20px;
}

.breadcrumb { font-size: .85rem; color: var(--color-text-light); margin-bottom: 1.4em; }
.breadcrumb a { color: var(--color-text-light); }
