/*
Theme Name: BLADE NOTE
Theme URI: https://blade-note.com
Author: BLADE NOTE Team
Description: BYD & 中国EVニュースメディア向けクラシックテーマ
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blade-note
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
	--color-primary: #0d1b3e;
	--color-primary-light: #1a3268;
	--color-accent: #c4281c;
	--color-bg: #ffffff;
	--color-surface: #f6f6f4;
	--color-border: #e2e0dc;
	--color-muted: #767676;
	--color-text: #2a2a2a;
	--color-text-light: #606060;
	--color-link: #1a3268;

	--font-heading: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	--font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
	--font-accent: 'Nunito', sans-serif;

	--width-site: 1100px;
	--width-narrow: 720px;
	--radius: 0.5rem;
}

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

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

a {
	color: var(--color-link);
	text-decoration: none;
	transition: color 0.15s ease;
}
a:hover { color: var(--color-primary-light); }

/* H4: focus-visible — キーボードフォーカス表示 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

/* ========================================
   Header
   ======================================== */
.site-header {
	background: var(--color-primary);
	color: #fff;
}

.header-nav-bar {
	border-bottom: 1px solid var(--color-primary-light);
	padding: 6px 0;
}

.header-nav-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-nav-bar ul {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}

.header-nav-bar a {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.75rem;
	font-weight: 400;
	transition: color 0.15s;
}
.header-nav-bar a:hover { color: #fff; }

.header-brand {
	text-align: center;
	padding: 24px 0;
}

.header-brand h1 {
	font-family: var(--font-accent);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 2px;
}
.header-brand h1 a { color: #fff; }
.header-brand h1 a:hover { color: rgba(255,255,255,0.85); }

.header-brand .site-title {
	font-family: var(--font-accent);
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 2px;
}
.header-brand .site-title a { color: #fff; }
.header-brand .site-title a:hover { color: rgba(255,255,255,0.85); }

.header-brand .tagline {
	font-family: var(--font-accent);
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 400;
}

/* ========================================
   Hero Section (front page top)
   ======================================== */
.hero-section {
	background: var(--color-surface);
	padding: 40px 0;
}

.hero-grid {
	display: grid;
	grid-template-columns: 55% 1fr;
	gap: 32px;
	align-items: start;
}

.hero-image a { display: block; border-radius: var(--radius); overflow: hidden; }
.hero-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.4s ease; }
.hero-image a:hover img { transform: scale(1.02); }

.hero-content { padding-top: 8px; }

.hero-content .cat-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--color-primary);
	background: none;
	padding: 2px 0 2px 10px;
	border-left: 3px solid var(--color-accent);
	border-radius: 0;
	margin-bottom: 14px;
}

.hero-content h2 {
	font-family: var(--font-heading);
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 14px;
}
.hero-content h2 a { color: var(--color-text); }
.hero-content h2 a:hover { color: var(--color-primary); }

.hero-content .excerpt {
	font-size: 0.85rem;
	color: var(--color-text-light);
	line-height: 1.8;
	margin-bottom: 12px;
}

.hero-content .date {
	font-size: 0.7rem;
	color: var(--color-muted);
}

.hero-sub {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-top: 28px;
}

.hero-sub-item img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	border-radius: var(--radius);
	margin-bottom: 8px;
	transition: transform 0.3s ease;
}
.hero-sub-item:hover img { transform: scale(1.03); }

.hero-sub-item h3 {
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.5;
}
.hero-sub-item h3 a { color: var(--color-text); }
.hero-sub-item h3 a:hover { color: var(--color-primary); }

/* ========================================
   Section Headers (OREFOLDER style)
   ======================================== */
.section-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 28px;
}

.section-header h2 {
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 700;
	white-space: nowrap;
}

.section-header::after {
	content: '';
	flex: 1;
	height: 2px;
	background: var(--color-border);
	border-radius: 1px;
}

.section-header .sub-label {
	font-size: 0.7rem;
	color: var(--color-muted);
	white-space: nowrap;
}

/* ========================================
   Article Cards
   ======================================== */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.card {
	background: var(--color-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,0.09);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.card-thumb { overflow: hidden; }
.card-thumb img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

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

.card-body .cat-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--color-primary);
	background: none;
	padding: 1px 0 1px 8px;
	border-left: 3px solid var(--color-accent);
	border-radius: 0;
	margin-bottom: 8px;
}

.card-body h3 {
	font-family: var(--font-heading);
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: 8px;
}
.card-body h3 a { color: var(--color-text); }
.card-body h3 a:hover { color: var(--color-primary); }

.card-body .date {
	font-size: 0.7rem;
	color: var(--color-muted);
}

/* ========================================
   Category Columns Section
   ======================================== */
.category-columns {
	background: var(--color-surface);
	padding: 48px 0 56px;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.category-col .section-header h2 {
	font-size: 1rem;
}

.category-col .post-list li {
	padding: 10px 0;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.category-col .post-list li:last-child { border-bottom: none; }

.category-col .post-list a {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
	color: var(--color-text);
}
.category-col .post-list a:hover { color: var(--color-primary); }

.category-col .post-list .date {
	font-size: 0.65rem;
	color: var(--color-muted);
	display: block;
	margin-top: 2px;
}

/* ========================================
   Recent Posts Section
   ======================================== */
.recent-section {
	padding: 48px 0;
}

/* ========================================
   Single Post — 2 Column Layout
   ======================================== */
.single-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 48px;
	padding-top: 40px;
	padding-bottom: 56px;
	align-items: start;
}

@media (max-width: 768px) {
	.single-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.single-main {
	min-width: 0;
}

.single-article {
	max-width: none;
	margin: 0;
	padding: 0;
}

.single-article .cat-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--color-primary);
	background: none;
	padding: 2px 0 2px 10px;
	border-left: 3px solid var(--color-accent);
	border-radius: 0;
	margin-bottom: 14px;
}

.single-article h1 {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.45;
	margin-bottom: 12px;
}

.single-meta {
	font-size: 0.75rem;
	color: var(--color-muted);
	margin-bottom: 28px;
	display: flex;
	gap: 16px;
}

.single-thumb {
	margin-bottom: 32px;
	border-radius: var(--radius);
	overflow: hidden;
}
.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.single-content {
	font-size: 1rem;
	line-height: 2;
}
.single-content p { margin-bottom: 1.6em; }
.single-content h2 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin: 2em 0 0.8em; padding-bottom: 0.4em; border-bottom: 2px solid var(--color-primary); }
.single-content h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin: 1.8em 0 0.6em; }
.single-content blockquote { border-left: 3px solid var(--color-primary); padding-left: 20px; color: var(--color-text-light); margin: 1.6em 0; }
.single-content ul, .single-content ol { margin: 0 0 1.6em 1.5em; }
.single-content ul { list-style-type: disc; }
.single-content ol { list-style-type: decimal; }
.single-content li { margin-bottom: 0.4em; }

.single-tags {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--color-border);
}
.single-tags a {
	display: inline-block;
	font-size: 0.75rem;
	padding: 3px 12px;
	background: var(--color-surface);
	border-radius: 2px;
	margin: 0 6px 6px 0;
}

/* M9: SNS シェアボタン */
.single-share {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--color-border);
	display: flex;
	align-items: center;
	gap: 12px;
}
.single-share .share-label {
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--color-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.single-share a {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 500;
	padding: 5px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	color: var(--color-text);
	transition: background 0.15s, color 0.15s;
}
.single-share a:hover {
	background: var(--color-primary);
	color: #fff;
	border-color: var(--color-primary);
}

/* M7: 前後記事リンク */
.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}
.post-nav-prev, .post-nav-next {
	display: block;
	padding: 16px;
	background: var(--color-surface);
	border-radius: var(--radius);
	color: var(--color-text);
	transition: background 0.15s;
}
.post-nav-prev:hover, .post-nav-next:hover {
	background: var(--color-border);
}
.post-nav-next { text-align: right; }
.post-nav-label {
	display: block;
	font-size: 0.7rem;
	color: var(--color-muted);
	margin-bottom: 4px;
}
.post-nav-title {
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.5;
}
@media (max-width: 480px) {
	.post-navigation { grid-template-columns: 1fr; }
}

/* M8: 関連記事 */
.related-posts {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--color-border);
}

/* ========================================
   Archive / Search
   ======================================== */
.archive-header {
	padding: 40px 0 0;
}
.archive-header h1 {
	font-family: var(--font-heading);
	font-size: 1.4rem;
	font-weight: 700;
}
.archive-header .description {
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin-top: 6px;
}

.archive-posts {
	padding: 32px 0 48px;
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
	text-align: center;
	margin-top: 40px;
}
.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 4px;
}
.pagination a, .pagination span {
	display: inline-block;
	padding: 6px 12px;
	font-size: 0.8rem;
	border-radius: var(--radius);
}
.pagination a { background: var(--color-surface); color: var(--color-text); }
.pagination a:hover { background: var(--color-border); }
.pagination .current { background: var(--color-primary); color: #fff; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
	background: var(--color-primary);
	color: rgba(255, 255, 255, 0.78);
	padding: 56px 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.footer-col h3 {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
	margin-bottom: 16px;
}

.footer-col .footer-brand {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}

.footer-col p {
	font-size: 0.8rem;
	line-height: 1.8;
}

.footer-col ul li { margin-bottom: 6px; }
.footer-col a {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8rem;
	transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }

.footer-contact {
	margin-top: 14px;
	font-size: 0.75rem;
}

.footer-bottom {
	margin-top: 48px;
	padding: 16px 0;
	border-top: 1px solid var(--color-primary-light);
	text-align: center;
	font-size: 0.65rem;
	letter-spacing: 0.05em;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-sub { grid-template-columns: repeat(3, 1fr); }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.hero-sub { grid-template-columns: repeat(2, 1fr); }
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
	.category-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.single-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
	.hero-sub { grid-template-columns: repeat(2, 1fr); }
	.hero-sub-item:nth-child(n+3) { display: none; }
	.posts-grid { grid-template-columns: 1fr; }
	.header-brand h1 { font-size: 1.3rem; }
	.hero-content h2 { font-size: 1.35rem; }
}

/* ========================================
   Sidebar
   ======================================== */
.sidebar {
	position: sticky;
	top: 24px;
}

.sidebar-widget {
	margin-bottom: 32px;
}

.sidebar-header {
	margin-bottom: 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--color-border);
}

.sidebar-header h3 {
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-weight: 700;
}

/* Sidebar Search */
.sidebar-search {
	display: flex;
	align-items: center;
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 8px 12px;
	gap: 6px;
}

.sidebar-search input[type="search"] {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	font-family: var(--font-body);
	font-size: 0.8rem;
	color: var(--color-text);
}
.sidebar-search input[type="search"]:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: -2px;
}
.sidebar-search input::placeholder { color: var(--color-muted); }

.sidebar-search button {
	background: none;
	border: none;
	color: var(--color-muted);
	cursor: pointer;
	padding: 2px;
	transition: color 0.15s;
}
.sidebar-search button:hover { color: var(--color-text); }

/* Sidebar Posts */
.sidebar-posts { list-style: none; }

.sidebar-posts li {
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-posts li:last-child { border-bottom: none; }

.sidebar-posts a {
	display: flex;
	gap: 12px;
	padding: 10px 0;
	color: var(--color-text);
	align-items: start;
}
.sidebar-posts a:hover { color: var(--color-primary); }

.sidebar-post-thumb {
	flex-shrink: 0;
	width: 72px;
	border-radius: 4px;
	overflow: hidden;
}
.sidebar-post-thumb img {
	width: 100%;
	aspect-ratio: 3/2;
	object-fit: cover;
}

.sidebar-post-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.sidebar-post-title {
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.sidebar-post-date {
	font-size: 0.65rem;
	color: var(--color-muted);
}

/* Sidebar Categories */
.sidebar-categories { list-style: none; }

.sidebar-categories li {
	border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-categories li:last-child { border-bottom: none; }

.sidebar-categories li {
	padding: 7px 0;
	font-size: 0.8rem;
	color: var(--color-text);
	line-height: 1.6;
}
.sidebar-categories a {
	color: var(--color-text);
}
.sidebar-categories a:hover { color: var(--color-primary); }

.sidebar-categories .children {
	list-style: none;
	padding-left: 16px;
}

.sidebar-categories .children li {
	padding: 5px 0;
}
.sidebar-categories .children a {
	font-size: 0.75rem;
}
.sidebar-categories .cat-count {
	font-size: 0.7rem;
	color: var(--color-muted);
	margin-left: 4px;
}

/* ========================================
   Search
   ======================================== */
.search-toggle {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	padding: 10px;
	transition: color 0.15s;
}
.search-toggle:hover { color: #fff; }

.search-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0;
	background: var(--color-primary);
	z-index: 1000;
	padding: 0;
	box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.search-overlay.is-open { display: block; }

.search-overlay-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
}

.search-overlay form {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,0.1);
	border-radius: var(--radius);
	padding: 8px 16px;
}

.search-overlay input[type="search"] {
	flex: 1;
	background: none;
	border: none;
	outline: none;
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.95rem;
}
.search-overlay input[type="search"]:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: -2px;
}
.search-overlay input[type="search"]::placeholder { color: rgba(255,255,255,0.4); }

.search-overlay form button {
	background: none;
	border: none;
	color: rgba(255,255,255,0.6);
	cursor: pointer;
	padding: 2px;
}
.search-overlay form button:hover { color: #fff; }

.search-close {
	background: none;
	border: none;
	color: rgba(255,255,255,0.5);
	font-size: 1.6rem;
	cursor: pointer;
	padding: 0 4px;
	line-height: 1;
	transition: color 0.15s;
}
.search-close:hover { color: #fff; }

/* ========================================
   Utility
   ======================================== */
::selection {
	background: rgba(13, 27, 62, 0.12);
	color: var(--color-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-surface); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #999; }

/* ========================================
   H6: Reduced Motion — アニメーション過敏症対応
   ======================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ========================================
   M16: ユーティリティクラス
   ======================================== */
.image-placeholder {
	background: #dedad4;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
	justify-content: center;
}
.image-placeholder::after {
	content: '';
	display: block;
	width: 48px;
	height: 48px;
	background: rgba(0,0,0,0.12);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.text-muted-sm {
	font-size: 0.85rem;
	color: var(--color-muted);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-page {
	padding: 48px 20px 64px;
	max-width: var(--width-narrow);
	margin: 0 auto;
}
.contact-page h1 {
	font-family: var(--font-heading);
	font-size: 1.6rem;
	font-weight: 700;
	margin-bottom: 12px;
}
.contact-desc {
	font-size: 0.9rem;
	color: var(--color-text-light);
	line-height: 1.8;
	margin-bottom: 36px;
}
.contact-form-wrap {
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 36px;
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 6px;
	color: var(--color-text);
}
.form-group .required {
	color: var(--color-accent);
}
.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.9rem;
	color: var(--color-text);
	background: var(--color-bg);
	transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus {
	border-color: var(--color-primary);
	outline: none;
	box-shadow: 0 0 0 2px rgba(13, 27, 62, 0.1);
}
.form-group input:focus-visible,
.form-group textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 1px;
}
.contact-submit {
	display: inline-block;
	padding: 12px 36px;
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}
.contact-submit:hover {
	background: var(--color-primary-light);
}
.contact-success {
	text-align: center;
	padding: 40px 20px;
}
.contact-success p {
	font-size: 1rem;
	color: var(--color-primary);
	font-weight: 500;
}
@media (max-width: 480px) {
	.contact-form-wrap { padding: 24px 16px; }
}

/* ========================================
   L2: 印刷用スタイル
   ======================================== */
@media print {
	.site-header, .site-footer, .sidebar, .search-overlay,
	.mobile-menu-toggle, .single-share, .post-navigation,
	.related-posts, .breadcrumb, .skip-link { display: none !important; }
	.single-layout { grid-template-columns: 1fr !important; }
	body { font-size: 12pt; color: #000; background: #fff; }
	a { color: #000; text-decoration: underline; }
	.single-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ========================================
   Skip Link (#19)
   ======================================== */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 9999;
	background: var(--color-primary);
	color: #fff;
	padding: 8px 16px;
	font-size: 0.85rem;
}
.skip-link:focus {
	left: 0;
}

/* ========================================
   Breadcrumb (#15)
   ======================================== */
.breadcrumb {
	background: var(--color-surface);
	padding: 10px 0;
	font-size: 0.75rem;
	color: var(--color-muted);
}
.breadcrumb a {
	color: var(--color-text-light);
}
.breadcrumb a:hover {
	color: var(--color-primary);
}
.breadcrumb span {
	color: var(--color-text);
}

/* ========================================
   404 Page (#7)
   ======================================== */
.error-404 {
	padding: 80px 0;
	text-align: center;
}
.error-404-inner {
	max-width: 480px;
	margin: 0 auto;
}
.error-404 h1 {
	font-family: var(--font-accent);
	font-size: 5rem;
	font-weight: 700;
	color: var(--color-primary);
	line-height: 1;
	margin-bottom: 16px;
}
.error-message {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.error-desc {
	font-size: 0.85rem;
	color: var(--color-text-light);
	margin-bottom: 32px;
}
.error-search {
	margin-bottom: 24px;
}
.error-search .search-form {
	display: flex;
	gap: 8px;
	max-width: 360px;
	margin: 0 auto;
}
.error-search input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.85rem;
}
.error-search .search-submit {
	padding: 10px 20px;
	background: var(--color-primary);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	font-size: 0.85rem;
}
.error-home-link {
	display: inline-block;
	font-size: 0.85rem;
	color: var(--color-primary);
	border-bottom: 1px solid currentColor;
}

/* ========================================
   Mobile Menu (#20)
   ======================================== */
.mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px;
	flex-direction: column;
	gap: 4px;
}
.mobile-menu-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-toggle.is-open span:nth-child(1) {
	transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-toggle.is-open span:nth-child(2) {
	opacity: 0;
}
.mobile-menu-toggle.is-open span:nth-child(3) {
	transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 768px) {
	.mobile-menu-toggle {
		display: flex;
	}
	#primaryNav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-primary);
		border-top: 1px solid var(--color-primary-light);
		z-index: 100;
		padding: 12px 20px;
	}
	#primaryNav.is-open {
		display: block;
	}
	#primaryNav ul {
		flex-direction: column;
		gap: 0;
	}
	#primaryNav a {
		display: block;
		padding: 10px 0;
		border-bottom: 1px solid var(--color-primary-light);
		font-size: 0.85rem;
	}
	.header-nav-inner {
		position: relative;
	}
}
