:root {
	--tc-green: #163f32;
	--tc-green-soft: #244f40;
	--tc-charcoal: #252421;
	--tc-muted: #6f6a61;
	--tc-ivory: #fbf8f0;
	--tc-beige: #eee3d0;
	--tc-line: #ded3bf;
	--tc-terracotta: #a85f3d;
	--tc-white: #ffffff;
	--tc-shadow: 0 10px 30px rgba(37, 36, 33, 0.08);
}

body {
	margin: 0;
	color: var(--tc-charcoal);
	background: var(--tc-ivory);
	font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
	line-height: 1.75;
}

body a {
	color: inherit;
	text-decoration: none;
}

.tc-skip-link {
	position: fixed;
	top: -100px;
	left: 20px;
	z-index: 10000;
	padding: 10px 16px;
	background: var(--tc-green);
	color: var(--tc-white);
}

.tc-skip-link:focus { top: 10px; }

.tc-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid var(--tc-line);
	background: rgba(251, 248, 240, 0.95);
	backdrop-filter: blur(10px);
}

.admin-bar .tc-site-header { top: 32px; }

.tc-header-inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 28px;
	align-items: center;
	width: min(1440px, 100%);
	margin: 0 auto;
	padding: 18px 5vw;
}

.tc-brand,
.tc-brand-wrap .custom-logo-link {
	display: inline-flex;
	align-items: center;
	color: var(--tc-green);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.tc-brand-wrap .custom-logo { width: auto; max-height: 50px; }

.tc-primary-navigation { justify-self: center; }
.tc-menu,
.tc-footer-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tc-menu a {
	color: #3d3a35;
	font-size: 14px;
	font-weight: 600;
}

.tc-menu .current-menu-item > a,
.tc-menu .current_page_item > a,
.tc-menu a:hover { color: var(--tc-terracotta); }

.tc-header-actions,
.tc-hero-actions,
.tc-post-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.tc-menu-toggle {
	display: none;
	padding: 8px 12px;
	border: 1px solid var(--tc-green);
	border-radius: 6px;
	background: transparent;
	color: var(--tc-green);
	font-weight: 700;
}

.tc-text-link { color: var(--tc-green); font-size: 14px; }

.tc-button,
input[type="submit"].submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.tc-button-primary,
input[type="submit"].submit {
	border-color: var(--tc-green);
	background: var(--tc-green);
	color: var(--tc-white);
}

.tc-button-secondary {
	border-color: var(--tc-green);
	background: transparent;
	color: var(--tc-green);
}

.tc-button-light {
	border-color: var(--tc-ivory);
	background: var(--tc-ivory);
	color: var(--tc-green);
}

.tc-full { width: 100%; }

.tc-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.6fr);
	gap: 40px;
	align-items: end;
	min-height: 680px;
	padding: 96px 5vw 70px;
	color: var(--tc-white);
	background:
		linear-gradient(90deg, rgba(22, 63, 50, 0.92), rgba(22, 63, 50, 0.74) 45%, rgba(22, 63, 50, 0.2)),
		url("../images/table-circle-hero.png") center / cover no-repeat;
}

.tc-hero-copy { max-width: 780px; }
.tc-eyebrow {
	margin: 0 0 10px;
	color: var(--tc-terracotta);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.tc-hero .tc-eyebrow { color: #e8bfa4; }

.tc-hero h1 {
	margin: 0 0 6px;
	color: var(--tc-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(46px, 7vw, 92px);
	line-height: 1;
	letter-spacing: 0.06em;
}

.tc-hero h2 {
	margin: 0 0 20px;
	color: var(--tc-white);
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.35;
}

.tc-hero p { max-width: 760px; font-size: 17px; }

.tc-hero-panel {
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(22, 63, 50, 0.58);
	backdrop-filter: blur(12px);
}

.tc-hero-panel h3 { color: var(--tc-white); font-size: 20px; line-height: 1.55; }
.tc-panel-label { color: #e8d7c1; font-size: 13px; }
.tc-mini-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-mini-stats span {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	font-size: 13px;
}

.tc-section,
.tc-page {
	width: min(1180px, 90vw);
	margin: 0 auto;
	padding: 72px 0;
}

.tc-page { min-height: 72vh; }
.tc-section-heading {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: end;
	margin-bottom: 26px;
}
.tc-section-heading h2,
.tc-page-heading h1 {
	margin: 0;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1.25;
}
.tc-compact { margin-bottom: 18px; }
.tc-view-more { color: var(--tc-green); font-weight: 700; }

.tc-topic-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tc-topic-list { display: grid; gap: 14px; }
.tc-topic-grid .tc-topic-card,
.tc-topic-list .tc-topic-card,
.tc-page-card,
.tc-detail-main,
.tc-side-panel,
.tc-callout,
.tc-buddypress-card,
.tc-messages-card,
.tc-widget {
	border: 1px solid var(--tc-line);
	border-radius: 8px;
	background: var(--tc-white);
	box-shadow: var(--tc-shadow);
}

.tc-topic-card { min-height: 190px; padding: 22px; }
.tc-topic-list .tc-topic-card { min-height: auto; }
.tc-topic-title {
	margin: 10px 0 12px;
	font-size: 20px;
	line-height: 1.45;
}
.tc-topic-title a:hover { color: var(--tc-terracotta); }

.tc-category,
.tc-tags a {
	display: inline-flex;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	background: #efe2d0;
	color: #79452f;
	font-size: 12px;
	font-weight: 800;
}

.tc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin: 0 0 10px;
	color: var(--tc-muted);
	font-size: 13px;
}
.tc-card-excerpt { color: var(--tc-muted); font-size: 14px; }
.tc-card-excerpt p { margin-bottom: 12px; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tc-tags a { border: 1px solid var(--tc-line); background: #f4efe5; color: var(--tc-muted); }

.tc-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 28px;
	align-items: start;
}

.tc-list { display: grid; gap: 10px; }
.tc-list-row {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--tc-line);
}
.tc-list-row span { color: var(--tc-muted); font-size: 13px; white-space: nowrap; }
.tc-callout { padding: 28px; background: #f6efe1; }

.tc-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.tc-category-card {
	padding: 16px;
	border: 1px solid var(--tc-line);
	border-radius: 6px;
	background: var(--tc-white);
	color: var(--tc-green);
	font-weight: 700;
}
.tc-category-card:hover { color: var(--tc-terracotta); }

.tc-page-heading { max-width: 760px; margin-bottom: 34px; }
.tc-page-card { padding: clamp(24px, 5vw, 54px); }
.tc-entry-content { font-size: 16px; }
.tc-entry-content > *:last-child { margin-bottom: 0; }
.tc-featured-image { margin: 0 0 30px; }
.tc-featured-image img { width: 100%; border-radius: 8px; }
.tc-edit-link { margin-top: 24px; color: var(--tc-green); font-weight: 700; }

.tc-detail-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	align-items: start;
}

.tc-detail-main { padding: clamp(24px, 4vw, 42px); }
.tc-detail-main > h1 {
	margin: 12px 0 20px;
	font-size: clamp(30px, 4vw, 48px);
	line-height: 1.25;
}
.tc-author-box {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px;
	margin-bottom: 24px;
	border-radius: 6px;
	background: #f7f1e6;
}
.tc-author-box img { border-radius: 50%; }
.tc-author-box p { margin: 0; color: var(--tc-muted); font-size: 13px; }
.tc-side-panel { position: sticky; top: 110px; padding: 24px; text-align: center; }
.tc-side-panel img { border-radius: 50%; }
.admin-bar .tc-side-panel { top: 142px; }
.tc-post-actions { margin-top: 28px; }

.tc-comments { margin-top: 40px; }
.tc-comment-list { margin: 0; padding: 0; list-style: none; }
.tc-comment-list .comment {
	padding: 20px 0;
	border-top: 1px solid var(--tc-line);
}
.tc-comment-list .children { margin-left: 36px; list-style: none; }
.tc-comment-list .avatar { float: left; margin-right: 12px; border-radius: 50%; }
.tc-comment-list .comment-meta { color: var(--tc-muted); font-size: 13px; }
.tc-comment-form {
	display: grid;
	gap: 14px;
	padding: 24px;
	margin-top: 30px;
	border: 1px solid var(--tc-line);
	border-radius: 8px;
	background: #f7f1e6;
}
.tc-comment-form textarea,
.tc-comment-form input {
	width: 100%;
	padding: 12px 13px;
	border: 1px solid #cfc2ad;
	border-radius: 6px;
	background: var(--tc-white);
}

.tc-empty-state {
	grid-column: 1 / -1;
	padding: 36px;
	border: 1px dashed var(--tc-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.65);
	text-align: center;
}
.tc-not-found { margin: 50px auto; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: 8px 13px; border: 1px solid var(--tc-line); border-radius: 5px; background: var(--tc-white); }
.page-numbers.current { border-color: var(--tc-green); background: var(--tc-green); color: var(--tc-white); }

.tc-community-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: start;
}
.tc-community-shell:not(:has(.tc-community-sidebar)) { grid-template-columns: 1fr; }
.tc-buddypress-card,
.tc-messages-card { padding: clamp(18px, 4vw, 36px); }
.tc-community-sidebar { display: grid; gap: 18px; }
.tc-widget { padding: 20px; }

/* BuddyPress theme compatibility */
#buddypress,
.buddypress-wrap {
	color: var(--tc-charcoal);
	font-family: inherit;
}
#buddypress a,
.buddypress-wrap a { color: var(--tc-green); }
#buddypress .item-list-tabs ul,
.buddypress-wrap .item-list-tabs ul,
.buddypress-wrap .bp-navs ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
#buddypress .item-list-tabs a,
.buddypress-wrap .bp-navs a {
	display: block;
	padding: 9px 13px;
	border: 1px solid var(--tc-line);
	border-radius: 999px;
	background: var(--tc-white);
}
#buddypress .current a,
.buddypress-wrap .selected a,
.buddypress-wrap .current a {
	border-color: var(--tc-green);
	background: var(--tc-green);
	color: var(--tc-white);
}
#buddypress ul.item-list,
.buddypress-wrap ul.item-list { padding: 0; list-style: none; }
#buddypress ul.item-list > li,
.buddypress-wrap ul.item-list > li {
	padding: 18px;
	border: 1px solid var(--tc-line);
	border-radius: 8px;
	background: var(--tc-white);
}
#buddypress button,
#buddypress input[type="submit"],
.buddypress-wrap button,
.buddypress-wrap input[type="submit"],
.buddypress-wrap .button {
	border-color: var(--tc-green);
	border-radius: 6px;
	background: var(--tc-green);
	color: var(--tc-white);
}
#buddypress input,
#buddypress select,
#buddypress textarea,
.buddypress-wrap input,
.buddypress-wrap select,
.buddypress-wrap textarea {
	border: 1px solid #cfc2ad;
	border-radius: 6px;
}

/* Better Messages inherits the TABLE CIRCLE surface and colors. */
.tc-messages-card .bp-messages-wrap,
body.tc-has-better-messages .bp-messages-wrap {
	--main-color: var(--tc-green);
	border-color: var(--tc-line);
	border-radius: 8px;
	font-family: inherit;
	overflow: hidden;
}

/* WordPress login and Members plugin widgets */
.tc-widget .widget-login-form,
.tc-widget form { display: grid; gap: 12px; }
.tc-widget input,
.tc-widget select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tc-line);
	border-radius: 6px;
}

.tc-site-footer {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	align-items: center;
	padding: 34px 5vw;
	border-top: 1px solid var(--tc-line);
	background: #f1e7d7;
}
.tc-site-footer p { margin: 5px 0 0; color: var(--tc-muted); }
.tc-footer-menu { justify-content: flex-end; }

:focus-visible {
	outline: 3px solid rgba(168, 95, 61, 0.35);
	outline-offset: 3px;
}

@media (max-width: 980px) {
	.admin-bar .tc-site-header { top: 46px; }
	.tc-header-inner { grid-template-columns: 1fr auto; }
	.tc-menu-toggle { display: inline-flex; }
	.tc-primary-navigation,
	.tc-header-actions {
		display: none;
		grid-column: 1 / -1;
		justify-self: stretch;
	}
	body.tc-nav-open .tc-primary-navigation,
	body.tc-nav-open .tc-header-actions { display: flex; }
	.tc-menu { align-items: stretch; flex-direction: column; }
	.tc-menu a { display: block; padding: 7px 0; }
	.tc-hero,
	.tc-split,
	.tc-detail-layout,
	.tc-community-shell { grid-template-columns: 1fr; }
	.tc-hero { min-height: auto; padding-top: 74px; }
	.tc-topic-grid,
	.tc-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tc-side-panel { position: static; }
}

@media (max-width: 782px) {
	.admin-bar .tc-site-header { top: 46px; }
}

@media (max-width: 640px) {
	.tc-topic-grid,
	.tc-category-grid { grid-template-columns: 1fr; }
	.tc-hero { padding: 62px 5vw; }
	.tc-hero-actions,
	.tc-list-row,
	.tc-site-footer,
	.tc-footer-menu { align-items: stretch; flex-direction: column; }
	.tc-list-row span { white-space: normal; }
	.tc-detail-main,
	.tc-page-card,
	.tc-buddypress-card,
	.tc-messages-card { padding: 22px; }
	.tc-header-actions { flex-direction: column; align-items: stretch; }
	.tc-header-actions .tc-button,
	.tc-header-actions .tc-text-link { justify-content: center; text-align: center; }
	.tc-comment-list .children { margin-left: 16px; padding-left: 0; }
}