@charset "utf-8";
/* 健康之家 共通スタイル（2026-10 作り直し）
   サブディレクトリ（病気との闘い・武漢ウィルス・求人系）は従来の style.css のまま */

:root {
	--brown: #464034;
	--brown-dark: #2f2a22;
	--cream: #f3e5d8;
	--beige: #e8e3de;
	--paper: #faf8f5;
	--text: #3d3a35;
	--muted: #7a746b;
	--line: #ddd6cd;
	--accent: #b5050a;
	--link: #6b4f2a;
	--radius: 10px;
	--wrap: 1120px;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	color: var(--text);
	background: #fff;
	font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
	font-size: 16px;
	line-height: 1.9;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--link); }
a:hover { color: var(--brown); text-decoration: none; }
figure { margin: 0; }

/* ヘッダー
--------------------------------------------------*/
/* JSで描画されるまでの仮の枠（描画時のガタつき防止） */
.site-header-slot { display: block; min-height: 113px; background: var(--brown); }
.noscript { margin: 0; padding: 8px 16px; background: var(--brown); text-align: center; }
.noscript a { color: #fff; }
.site-header {
	background: var(--brown);
	background: radial-gradient(circle 420px at 50% -260px, var(--cream), var(--brown));
	color: #fff;
}
.site-header .inner {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 18px 16px 0;
	text-align: center;
}
.site-logo { margin: 0; line-height: 0; }
.site-logo img { width: 300px; }
.site-logo a { display: inline-block; }

.gnav-toggle {
	display: none;
	position: absolute;
	top: 14px; left: 14px;
	width: 44px; height: 40px;
	padding: 0;
	background: transparent;
	border: 1px solid #fff;
	border-radius: 4px;
	cursor: pointer;
}
.gnav-toggle span,
.gnav-toggle span::before,
.gnav-toggle span::after {
	display: block;
	position: relative;
	width: 22px; height: 2px;
	margin: 0 auto;
	background: #fff;
	content: "";
}
.gnav-toggle span::before { position: absolute; top: -7px; }
.gnav-toggle span::after { position: absolute; top: 7px; }

.gnav ul {
	display: flex;
	justify-content: center;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.gnav li { flex: 0 1 220px; min-width: 0; }
.gnav li:first-child a { border-left: 1px solid rgba(255,255,255,.5); }
.gnav a {
	display: block;
	padding: 8px 6px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: .08em;
	border-right: 1px solid rgba(255,255,255,.5);
	transition: background .3s, color .3s;
}
.gnav a:hover,
.gnav .current a { background: #fff; color: var(--brown); }

/* レイアウト
--------------------------------------------------*/
.contents {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 40px;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 36px 16px 48px;
}
.main { min-width: 0; }
.sub { min-width: 0; font-size: 14px; }

/* パンくず */
.breadcrumb {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}
.breadcrumb li { display: inline; }
.breadcrumb li + li::before { content: "›"; margin: 0 .5em; }
.breadcrumb a { color: var(--muted); }

/* 記事
--------------------------------------------------*/
.article h1 {
	margin: 0 0 20px;
	font-size: 26px;
	line-height: 1.5;
	color: var(--brown-dark);
	letter-spacing: .02em;
}
.eyecatch { margin: 0 0 28px; }
.eyecatch img {
	display: block;
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--paper);
}
.article h2 {
	clear: both;
	margin: 40px 0 18px;
	padding: 8px 18px;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.5;
	color: #fff;
	background: var(--brown);
	border-radius: var(--radius);
}
.article h3 {
	clear: both;
	margin: 32px 0 14px;
	padding: 4px 16px;
	font-size: 18px;
	line-height: 1.6;
	border: 1px solid var(--line);
	border-left: 5px solid var(--brown);
	border-radius: 6px;
}
.article h4 {
	margin: 24px 0 10px;
	padding-bottom: 4px;
	font-size: 17px;
	border-bottom: 2px solid var(--brown);
}
.article h2 > img,
.article h3 > img { display: block; width: 100%; border-radius: var(--radius); }
.article p { margin: 0 0 1.2em; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.6em; }
.article li { margin-bottom: .4em; }
.article ul > li { list-style: disc; }
.article ol > li { list-style: decimal; }
.article table {
	width: 100%;
	margin: 0 0 1.6em;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.7;
}
.article th, .article td {
	padding: 10px 12px;
	border: 1px solid var(--line);
	vertical-align: top;
	text-align: left;
}
.article th { background: var(--paper); color: var(--brown-dark); white-space: nowrap; }
.article blockquote {
	margin: 0 0 1.6em;
	padding: 14px 18px;
	background: var(--paper);
	border-left: 5px solid var(--line);
}
.article small { display: inline-block; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }

/* 表は横スクロールできるように（スマホ用） */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.6em; }
.table-scroll table { margin: 0; min-width: 520px; }

/* 記事内のスペース（広告など） */
.article .space {
	clear: both;
	margin: 32px 0;
	text-align: center;
	min-height: 1px;
}

/* シェア */
.share { margin: 40px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.sns-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 28px; }
.sns-buttons .sns-fb {
	display: inline-block;
	padding: 2px 12px;
	font-size: 12px;
	line-height: 24px;
	color: #fff;
	text-decoration: none;
	background: #1877f2;
	border-radius: 4px;
}
.sns-buttons .sns-fb:hover { color: #fff; opacity: .85; }

/* カード（トップの記事一覧・関連記事）
--------------------------------------------------*/
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}
.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: 0 6px 18px rgba(70,64,52,.15); transform: translateY(-2px); }
.card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper); }
.card-body { padding: 12px 14px 16px; }
.card-title { margin: 0 0 6px; font-size: 15px; font-weight: bold; line-height: 1.55; color: var(--brown-dark); }
.card-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.7;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.section-title {
	margin: 0 0 18px;
	padding: 6px 16px;
	font-size: 19px;
	color: #fff;
	background: var(--brown);
	border-radius: var(--radius);
}
.related { margin-top: 48px; }

/* トップページ */
.hero { margin: 0 0 28px; }
.hero img { display: block; width: 100%; border-radius: var(--radius); }
.hero h1 { margin: 0; line-height: 0; }
.home-text { margin: 0 0 32px; }
.home-text h2 {
	margin: 32px 0 14px;
	padding: 6px 16px;
	font-size: 19px;
	color: #fff;
	background: var(--brown);
	border-radius: var(--radius);
}
.home-text p { margin: 0 0 1.2em; }

/* サイドバー
--------------------------------------------------*/
.sub .box {
	margin: 0 0 24px;
	padding: 16px 18px;
	background: var(--paper);
	border: 8px solid var(--beige);
	border-radius: var(--radius);
}
.sub h2 {
	margin: 0 0 10px;
	padding-left: 10px;
	font-size: 15px;
	color: var(--brown-dark);
	border-left: 4px solid var(--brown);
	line-height: 1.5;
}
.sub h3 {
	margin: 14px 0 4px;
	font-size: 13px;
	color: var(--muted);
}
.submenu { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.submenu li { border-bottom: 1px solid var(--line); }
.submenu a {
	display: block;
	padding: 6px 4px;
	color: var(--text);
	text-decoration: none;
	line-height: 1.5;
}
.submenu a:hover { color: var(--brown); background: #fff; }
.submenu .current a { font-weight: bold; color: var(--brown); }

/* ページトップ・フッター
--------------------------------------------------*/
.pagetop {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 16px;
	text-align: right;
}
.pagetop a {
	display: inline-block;
	padding: 0 26px;
	font-size: 18px;
	color: #fff;
	text-decoration: none;
	background: var(--brown);
	border-radius: 4px 4px 0 0;
}
.pagetop a:hover { background: var(--muted); }
.site-footer { background: var(--brown); color: #fff; font-size: 14px; }
.site-footer .inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 16px 18px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footermenu {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 28px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}
.copyright { display: block; text-align: center; font-size: 12px; opacity: .85; }

/* 画面幅900px以下
--------------------------------------------------*/
@media (max-width: 900px) {
	.contents { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* 画面幅700px以下
--------------------------------------------------*/
@media (max-width: 700px) {
	.site-header-slot { min-height: 64px; }
	.site-header .inner { position: relative; padding: 14px 16px; }
	.site-logo img { width: 200px; }
	.gnav-toggle { display: block; }
	.gnav { display: none; }
	.gnav.is-open { display: block; }
	.gnav ul { flex-direction: column; margin: 12px -16px -14px; border-top: 1px solid rgba(255,255,255,.5); }
	.gnav li { flex: none; }
	.gnav li:first-child a { border-left: 0; }
	.gnav a { padding: 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.5); }
	.contents { padding-top: 24px; }
	.article h1 { font-size: 22px; }
	.article h2 { font-size: 18px; padding: 7px 14px; }
	.article h3 { font-size: 17px; }
	.cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.card a { flex-direction: row; }
	.card img { width: 44%; aspect-ratio: 16 / 9; flex-shrink: 0; align-self: flex-start; }
	.card-body { padding: 8px 12px; }
	.card-title { font-size: 14px; }
	.card-text { -webkit-line-clamp: 2; font-size: 12px; }
}
