/*! サンプルテーマ共通ベースCSS(リセット・レイアウト・共通部品)。配色・書体は各テーマの style.css で CSS変数を上書きする */
:root {
	--c-primary: #1f6f50;
	--c-accent: #e08a2e;
	--c-bg: #fff;
	--c-text: #222;
	--c-muted: #6b7280;
	--c-line: #e5e7eb;
	--c-surface: #f6f7f5;
	--c-card: #fff;
	--c-on-primary: #fff;
	--c-on-accent: #fff;
	--radius: 12px;
	--btn-radius: 999px;
	--maxw: 1120px;
	--narrow: 760px;
	--header-h: 72px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
	--font-head: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--c-text);
	background: var(--c-bg);
	font-size: 16px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: anywhere;
}
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-primary); text-decoration: none; transition: .2s; }
a:hover { opacity: .75; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.4em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #000; color: #fff; padding: 10px 16px; border-radius: 6px; }

/* ---------- レイアウト ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--narrow); }
.section { padding: 88px 0; }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-dark, #111); color: var(--c-on-dark, #fff); }
@media (max-width: 700px) { .section { padding: 60px 0; } }
.section__head { margin-bottom: 44px; }
.section__head--center { text-align: center; }
.eyebrow {
	display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase;
	color: var(--c-accent); font-weight: 700; margin-bottom: 10px; font-family: var(--font-en, var(--font-head));
}
.section__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .4em; }
.section__lead { color: var(--c-muted); max-width: 44em; }
.section__head--center .section__lead { margin-left: auto; margin-right: auto; }
.section__more { margin-top: 40px; text-align: center; }

.grid { display: grid; gap: 28px; }
.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: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- ヘッダー ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50; height: var(--header-h);
	background: var(--hdr-bg, rgba(255, 255, 255, .92)); color: var(--hdr-text, var(--c-text));
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid var(--hdr-line, var(--c-line)); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 700; font-size: 1.12rem; line-height: 1.25; flex-shrink: 0; }
.brand:hover { opacity: 1; }
.brand__mark svg { width: 38px; height: 38px; display: block; }
.brand small { display: block; font-weight: 400; font-size: .66rem; opacity: .7; letter-spacing: .08em; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.gnav a:not(.btn) { color: inherit; font-size: .9rem; font-weight: 500; padding: 6px 0; position: relative; display: inline-block; }
.gnav li:not(.menu-item-has-children) > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gnav li > a:hover { opacity: 1; }
.gnav li > a:hover::after, .gnav .current-menu-item > a::after { transform: scaleX(1); }
.site-header .gnav__cta { display: none; }
.site-header .header-cta { padding: 10px 22px; font-size: .88rem; flex-shrink: 0; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; color: inherit; position: relative; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; position: absolute; left: 11px; transition: .25s; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; left: 0; }
.nav-toggle__bar::after { top: 7px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-block; margin-left: auto; }
	.site-header .header-cta { display: none; }
	.gnav {
		position: fixed; top: var(--header-h); left: 0; right: 0; margin: 0; max-height: calc(100vh - var(--header-h)); overflow: auto;
		background: var(--hdr-solid, var(--c-bg)); color: var(--hdr-text, var(--c-text)); padding: 8px 20px 28px;
		border-bottom: 1px solid var(--c-line); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s;
	}
	.gnav.is-open { opacity: 1; visibility: visible; transform: none; }
	.gnav ul { flex-direction: column; gap: 0; }
	.gnav li a:not(.btn) { display: block; padding: 16px 4px; border-bottom: 1px solid var(--hdr-line, var(--c-line)); }
	.gnav li > a::after { display: none; }
	.site-header .gnav__cta { display: flex; justify-content: center; margin-top: 22px; }
}

/* ---------- ボタン ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 28px; border-radius: var(--btn-radius);
	font-weight: 700; font-size: .95rem; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; text-align: center;
}
.btn:hover { opacity: 1; }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn--accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn--accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; color: var(--c-primary); background: transparent; }
.btn--ghost:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--c-primary); }
.btn--lg { padding: 18px 38px; font-size: 1.02rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- カード・タイル ---------- */
.card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__link { display: block; color: inherit; height: 100%; }
.card__link:hover { opacity: 1; }
.card__thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; color: var(--c-muted); margin-bottom: 8px; }
.card__title { font-size: 1.05rem; margin: 0 0 .4em; }
.card__text { font-size: .88rem; color: var(--c-muted); margin: 0; }

.tile {
	position: relative; width: 100%; height: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden;
	background: linear-gradient(var(--tang, 135deg), var(--ta, #2f7d5b), var(--tb, #e9b44c));
}
.tile::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .35), transparent 45%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 14px);
}
.tile__label { position: relative; font-family: var(--font-en, var(--font-head)); font-size: clamp(3rem, 8vw, 5rem); font-weight: 700; color: rgba(255, 255, 255, .85); line-height: 1; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }

.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--c-surface); color: var(--c-primary); border: 1px solid var(--c-line); line-height: 1.7; }

.term-filter { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 36px; }
.term-filter a { display: inline-block; padding: 6px 18px; border: 1px solid var(--c-line); border-radius: 999px; font-size: .85rem; color: inherit; }
.term-filter a.is-current, .term-filter a:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); opacity: 1; }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.news-row a { display: flex; align-items: center; gap: 16px; padding: 20px 6px; border-bottom: 1px solid var(--c-line); color: inherit; flex-wrap: wrap; }
.news-row a:hover { opacity: 1; background: var(--c-surface); }
.news-row time { font-size: .85rem; color: var(--c-muted); font-variant-numeric: tabular-nums; min-width: 6.5em; }
.news-row__title { flex: 1 1 260px; font-weight: 500; }

/* ---------- 表・FAQ ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 18px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.table th { width: 28%; font-weight: 700; background: var(--c-surface); white-space: nowrap; }
@media (max-width: 600px) { .table th, .table td { display: block; width: 100%; } .table th { border-bottom: 0; padding-bottom: 6px; white-space: normal; } }

.faq details { border-bottom: 1px solid var(--c-line); padding: 20px 0; }
.faq details:first-child { border-top: 1px solid var(--c-line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--c-accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 14px 0 0; color: var(--c-muted); }

/* ---------- ページ見出し・本文 ---------- */
.page-header { padding: 64px 0 44px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.page-header__title { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.breadcrumb { font-size: .78rem; color: var(--c-muted); margin-top: 16px; }
.breadcrumb a { color: inherit; }
.breadcrumb span + span::before { content: "›"; margin: 0 8px; }

.entry { font-size: 1rem; }
.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.5rem; margin: 2.2em 0 .8em; padding-left: 14px; border-left: 5px solid var(--c-accent); }
.entry h2:first-child { margin-top: 0; }
.entry h3 { font-size: 1.2rem; margin: 1.8em 0 .6em; }
.entry ul, .entry ol { margin: 0 0 1.4em; }
.entry li { margin-bottom: .4em; }
.entry table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
.entry th, .entry td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry th { background: var(--c-surface); width: 28%; }
.entry blockquote { margin: 1.6em 0; padding: 18px 22px; background: var(--c-surface); border-left: 4px solid var(--c-line); }
.entry img { border-radius: 8px; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; font-size: .85rem; color: var(--c-muted); }
.entry__visual { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.entry__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.art { display: block; }
.entry__table { margin-top: 36px; }
.entry--lead { margin-bottom: 36px; color: var(--c-muted); }

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 8px; color: inherit; }
.pagination .current, .pagination a.page-numbers:hover { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); opacity: 1; }

.post-nav { display: flex; justify-content: space-between; gap: 20px; margin: 56px 0 32px; padding-top: 24px; border-top: 1px solid var(--c-line); font-size: .9rem; }
.post-nav a { color: inherit; }
.post-back { text-align: center; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 22px; }
.form__row label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.req { color: #fff; background: var(--c-accent); font-size: .68rem; padding: 2px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; font-weight: 700; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
	width: 100%; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff; font: inherit; color: #222;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
/* Contact Form 7 */
.form .wpcf7-form-control-wrap { display: block; }
.form .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #b91c1c; font-size: .82rem; }
.form .wpcf7-not-valid { border-color: #b91c1c; }
.form .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.form .wpcf7-acceptance label { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .9rem; font-weight: 400; }
.form .wpcf7-acceptance input { margin-top: .45em; }
.form .wpcf7-spinner { margin: 0 0 0 12px; vertical-align: middle; }
.form .wpcf7-submit { cursor: pointer; }
.form fieldset.hidden-fields-container { display: none; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 16px 20px; border: 0; border-radius: 8px; font-size: .92rem; }
.wpcf7 form.sent .wpcf7-response-output { background: #e8f6ee; color: #14532d; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { background: #fdecec; color: #7f1d1d; }
.form__agree { font-size: .9rem; }
.notice { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: .92rem; }
.notice--ok { background: #e8f6ee; color: #14532d; }
.notice--ng { background: #fdecec; color: #7f1d1d; }

/* ---------- フッター ---------- */
.site-footer { background: var(--c-footer-bg, #14211b); color: var(--c-footer-text, rgba(255, 255, 255, .85)); padding: 64px 0 0; font-size: .9rem; }
.site-footer a { color: inherit; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer__brand { display: block; font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.site-footer__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0; font-size: .76rem; opacity: .75; }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 700px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- アニメーション ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}
html.nav-open body { overflow: hidden; }
