@charset "UTF-8";
/*
 * Kobe-shi Kenchiku Kyouryokukai - public site stylesheet
 * Responsive (smartphone / tablet / PC). Used by top.html, about.html, member.html, topics.html,
 * regist/reply.php and attend/reply.php. Keep this file ASCII only (pages are Shift_JIS).
 */

:root {
	--green: #207130;
	--green-dark: #175626;
	--green-weak: #e8f3eb;
	--navy: #101f66;
	--text: #1d2722;
	--muted: #5f6c65;
	--line: #e2e7e3;
	--bg: #f5f7f5;
	--surface: #ffffff;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(16, 32, 24, .06), 0 4px 16px rgba(16, 32, 24, .06);
	--wrap: 1120px;
	--font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", YuGothic, Meiryo, system-ui, sans-serif;
	--font-serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: .02em; }
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid rgba(32, 113, 48, .45); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--green); color: #fff; border-radius: var(--radius-sm); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-top: 4px solid var(--green); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 240px; height: auto; }
.gnav ul { display: flex; gap: 4px; list-style: none; }
.gnav a { display: block; padding: 10px 14px; color: var(--text); font-weight: 600; font-size: 15px; border-radius: var(--radius-sm); }
.gnav a:hover { background: var(--green-weak); color: var(--green-dark); text-decoration: none; }
.gnav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -3px 0 var(--green); border-radius: 0; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle .bar { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
	.site-header .wrap { min-height: 60px; }
	.brand img { width: 200px; }
	.nav-toggle { display: block; }
	.gnav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .08); display: none; }
	.gnav.open { display: block; }
	.gnav ul { flex-direction: column; gap: 0; padding: 8px 12px 16px; }
	.gnav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.gnav li:last-child a { border-bottom: 0; }
	.gnav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); padding-left: 16px; }
}

/* ---------- main / sections ---------- */
main { display: block; padding-bottom: 56px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { font-size: 24px; line-height: 1.4; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--green); }
.section-title small { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: .12em; text-transform: uppercase; }
.more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.more::after { content: " \2192"; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 26px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--green-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--green); box-shadow: inset 0 0 0 2px var(--green); }
.btn-outline:hover { background: var(--green-weak); }

/* ---------- top: hero slider ---------- */
.hero { margin-top: 24px; }
.slider { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 955 / 400; background: #dfe6e1; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slider .slide.active { opacity: 1; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 20, 8, .6)); pointer-events: none; }
.hero-caption { position: absolute; left: 32px; bottom: 28px; right: 32px; z-index: 2; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.hero-caption .label { display: inline-block; padding: 2px 12px; margin-bottom: 8px; border-radius: 999px; background: var(--green); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-shadow: none; }
.hero-caption .label:empty, .hero-caption p:empty { display: none; }
.hero-caption p { font-size: 26px; font-weight: 700; line-height: 1.5; }
.dots { position: absolute; right: 24px; bottom: 24px; z-index: 3; display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.dots button[aria-current="true"] { background: #fff; width: 26px; border-radius: 5px; }

/* ---------- top: news ---------- */
.news-list { list-style: none; }
.news-item + .news-item { border-top: 1px solid var(--line); }
.news-item a { display: flex; gap: 20px; align-items: flex-start; padding: 20px 24px; color: inherit; text-decoration: none; transition: background .15s; }
.news-item a:hover { background: #fafcfa; }
.news-item a:hover .news-title { color: var(--green); text-decoration: underline; }
.news-thumb { flex: none; width: 180px; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); overflow: hidden; background: #e9eeea; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-date { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.news-title { font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--text); }
.news-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-empty { padding: 24px; color: var(--muted); }

/* ---------- top: about / links ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.intro-text { padding: 32px; border-left: 6px solid var(--green); }
.intro-text p { font-size: 16px; line-height: 2; }
.intro-text .btn { margin-top: 20px; }
.tiles { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 32, 24, .08), 0 10px 24px rgba(16, 32, 24, .1); }
.tile .ico { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-weak); color: var(--green); }
.tile .ico svg { width: 26px; height: 26px; }
.tile b { display: block; font-size: 16px; }
.tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tile::after { content: "\203A"; margin-left: auto; font-size: 28px; color: var(--green); line-height: 1; }

/* ---------- sub pages ---------- */
.page-head { background: linear-gradient(135deg, var(--green-dark), var(--green) 60%, #2f8f45); color: #fff; }
.page-head .wrap { padding-top: 36px; padding-bottom: 36px; }
.page-head h1 { font-size: 30px; line-height: 1.4; font-weight: 700; }
.page-head p { margin-top: 6px; opacity: .9; font-size: 14px; }
.crumbs { font-size: 13px; margin-bottom: 8px; opacity: .9; }
.crumbs a { color: #fff; }
.content { margin-top: 32px; padding: 40px; }
.prose { font-size: 16px; line-height: 2; }
.prose h2 { font-size: 22px; line-height: 1.5; margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); position: relative; clear: both; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--green); }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose figure { float: right; margin: 6px 0 16px 28px; max-width: 320px; }
.prose figure img { border-radius: var(--radius-sm); }
.prose figcaption { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.prose::after { content: ""; display: block; clear: both; }

/* topics */
.years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.years a { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #cfd8d2; color: var(--text); font-size: 14px; font-weight: 600; }
.years a:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--green); background: var(--green-weak); }
.years a[aria-current="page"] { background: var(--green); color: #fff; box-shadow: none; }
.article-meta { color: var(--muted); font-size: 14px; font-weight: 600; }
.article-title { font-size: 26px; line-height: 1.5; margin: 6px 0 24px; }
.article-body { font-size: 16px; line-height: 2; word-break: break-word; }
.article-body img { border-radius: var(--radius-sm); margin: 8px 0; }
.article-body img[src*="pdf.jpg"] { border-radius: 0; margin: 0 6px 0 0; width: 28px; }
.article-foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* member */
.member-count { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; list-style: none; }
.member-card { padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.member-card h2 { font-size: 18px; line-height: 1.5; }
.member-card h2 a { color: var(--text); }
.member-card h2 a:hover { color: var(--green); }
.member-card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 14px; line-height: 1.7; }
.member-card dt { color: var(--muted); font-weight: 600; white-space: nowrap; }
.member-card dd { margin: 0; word-break: break-all; }
.member-detail dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.member-detail dt, .member-detail dd { margin: 0; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.member-detail dt { color: var(--muted); font-weight: 700; }
.member-detail dd { word-break: break-all; }

/* ---------- footer ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--green-dark); text-decoration: none; }
.to-top svg { width: 22px; height: 22px; }
.site-footer { background: #13251a; color: #d5e0d8; font-size: 14px; }
.site-footer .wrap { padding-top: 40px; padding-bottom: 24px; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.footer-org b { display: block; font-size: 18px; color: #fff; margin-bottom: 8px; letter-spacing: .08em; }
.footer-org p { line-height: 1.9; }
.footer-org a { color: #9fdcae; }
.footer-nav ul { list-style: none; display: grid; gap: 6px; }
.footer-nav a { color: #fff; }
.copyright { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; color: #93a59a; }

/* ---------- smartphone ---------- */
@media (max-width: 860px) {
	.intro { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	body { font-size: 15px; }
	.wrap { padding: 0 16px; }
	.section { margin-top: 36px; }
	.section-title { font-size: 20px; }
	.hero { margin-top: 16px; }
	.slider { aspect-ratio: 4 / 3; border-radius: 12px; }
	.hero-caption { left: 18px; right: 18px; bottom: 40px; }
	.hero-caption p { font-size: 18px; }
	.hero-caption .label { font-size: 12px; }
	.dots { right: auto; left: 18px; bottom: 16px; }
	.news-item a { padding: 16px; gap: 14px; }
	.news-thumb { width: 104px; }
	.news-title { font-size: 15px; }
	.news-excerpt { -webkit-line-clamp: 2; font-size: 13px; }
	.intro-text { padding: 24px 20px; }
	.intro-text p { font-size: 15px; line-height: 1.9; }
	.page-head .wrap { padding-top: 24px; padding-bottom: 24px; }
	.page-head h1 { font-size: 23px; }
	.content { margin-top: 20px; padding: 24px 18px; border-radius: 12px; }
	.prose { font-size: 15px; line-height: 1.95; }
	.prose h2 { font-size: 19px; margin-top: 32px; }
	.prose figure { float: none; margin: 8px 0 16px; max-width: none; }
	.prose figure img { width: 100%; }
	.article-title { font-size: 21px; }
	.article-body { font-size: 15px; line-height: 1.95; }
	.member-grid { grid-template-columns: 1fr; }
	.member-detail dl { grid-template-columns: 1fr; }
	.member-detail dt { padding-bottom: 0; border-bottom: 0; }
	.member-detail dd { padding-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.slider .slide { transition: none; }
}
