:root {
	--ccsj-red: #7f1218;
	--ccsj-red-dark: #4d0b10;
	--ccsj-gold: #a9843a;
	--ccsj-ink: #242426;
	--ccsj-muted: #6b6661;
	--ccsj-border: #e5ded5;
	--ccsj-paper: #fbfaf7;
	--ccsj-white: #ffffff;
	--ccsj-container: 1180px;
	--ccsj-radius: 6px;
	--ccsj-shadow-soft: 0 14px 36px rgba(36, 36, 38, 0.08);
	--ccsj-header-height: 72px;
}

body.ccsj-site {
	background: var(--ccsj-paper);
	color: var(--ccsj-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
	line-height: 1.75;
}

.ccsj-site a {
	color: var(--ccsj-red);
	text-underline-offset: 0.18em;
}

.ccsj-site a:hover,
.ccsj-site a:focus {
	color: var(--ccsj-red-dark);
}

.ccsj-site .site-header {
	border-bottom: 0;
}

.ccsj-site .site-footer {
	background: transparent;
}

.ccsj-site .inside-header,
.ccsj-site .grid-container,
.ccsj-site .site-content {
	max-width: var(--ccsj-container);
}

.ccsj-container {
	width: min(var(--ccsj-container), calc(100% - 40px));
	margin-right: auto;
	margin-left: auto;
}

.ccsj-breadcrumbs {
	position: relative;
	z-index: 1;
	margin-bottom: 18px;
	color: var(--ccsj-muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.ccsj-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.ccsj-breadcrumbs li:not(:last-child)::after {
	margin-left: 8px;
	color: var(--ccsj-gold);
	content: ">";
}

.ccsj-breadcrumbs a {
	color: var(--ccsj-muted);
	text-decoration: none;
}

.ccsj-breadcrumbs a:hover,
.ccsj-breadcrumbs a:focus {
	color: var(--ccsj-red);
}

.ccsj-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.98);
	border-bottom: 1px solid rgba(127, 18, 24, 0.14);
	transition: box-shadow 160ms ease;
}

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

.ccsj-header.is-scrolled {
	box-shadow: 0 8px 26px rgba(36, 36, 38, 0.08);
}

.ccsj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	width: min(var(--ccsj-container), calc(100% - 40px));
	min-height: var(--ccsj-header-height);
	margin: 0 auto;
}

.ccsj-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	color: var(--ccsj-ink);
	text-decoration: none;
}

.ccsj-brand:hover,
.ccsj-brand:focus {
	color: var(--ccsj-red-dark);
}

.ccsj-brand__logo,
.ccsj-footer__logo {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
}

.ccsj-brand__logo img {
	display: block;
	width: auto;
	max-width: 42px;
	max-height: 42px;
}

.ccsj-brand--fallback-logo .ccsj-brand__logo img {
	width: min(255px, 32vw);
	max-width: none;
	max-height: 44px;
}

.ccsj-brand__name {
	overflow: hidden;
	color: inherit;
	font-size: 1.04rem;
	font-weight: 800;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ccsj-header__right {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ccsj-nav {
	display: block;
}

.ccsj-menu,
.ccsj-footer-menu {
	padding: 0;
	margin: 0;
	list-style: none;
}

.ccsj-menu {
	display: flex;
	align-items: center;
	gap: 2px;
}

.ccsj-menu > li {
	position: relative;
}

.ccsj-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 11px;
	color: var(--ccsj-ink);
	font-size: 0.94rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
}

.ccsj-menu > li > a:hover,
.ccsj-menu > li > a:focus,
.ccsj-menu > li:hover > a,
.ccsj-menu > .current-menu-item > a,
.ccsj-menu > .current-menu-ancestor > a {
	color: var(--ccsj-red);
}

.ccsj-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1001;
	display: block;
	min-width: 190px;
	padding: 8px;
	margin: 0;
	list-style: none;
	background: var(--ccsj-white);
	border: 1px solid var(--ccsj-border);
	border-top: 3px solid var(--ccsj-red);
	box-shadow: var(--ccsj-shadow-soft);
	opacity: 0;
	visibility: hidden;
	transition: opacity 120ms ease, visibility 0s linear 160ms;
}

.ccsj-menu .sub-menu a {
	display: flex;
	min-height: 38px;
	padding: 8px 10px;
	color: var(--ccsj-ink);
	font-size: 0.88rem;
	font-weight: 600;
}

.ccsj-menu .sub-menu a:hover,
.ccsj-menu .sub-menu a:focus {
	background: #f7f2eb;
	color: var(--ccsj-red);
}

.ccsj-menu > .menu-item-has-children:hover > .sub-menu,
.ccsj-menu > .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s;
}

.ccsj-menu-toggle,
.ccsj-submenu-toggle {
	display: none;
}

.ccsj-language-switcher {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--ccsj-muted);
	font-size: 0.82rem;
	font-weight: 700;
	white-space: nowrap;
}

.ccsj-language-switcher a {
	color: var(--ccsj-muted);
	text-decoration: none;
}

.ccsj-language-switcher a:hover,
.ccsj-language-switcher a:focus {
	color: var(--ccsj-red);
}

.ccsj-language-switcher--mobile {
	display: none;
}
.ccsj-language-picker {
	flex: 0 0 auto;
}

.ccsj-language-select {
	min-width: 126px;
	height: 38px;
	padding: 0 32px 0 11px;
	background-color: var(--ccsj-white);
	border: 1px solid rgba(127, 18, 24, 0.25);
	border-radius: var(--ccsj-radius);
	color: var(--ccsj-ink);
	font: inherit;
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.ccsj-language-select:hover,
.ccsj-language-select:focus {
	border-color: var(--ccsj-red);
	box-shadow: 0 0 0 3px rgba(127, 18, 24, 0.09);
	outline: none;
}

.ccsj-language-picker--mobile {
	display: none;
}

.ccsj-footer {
	background: #2f2d2d;
	color: rgba(255, 255, 255, 0.78);
	border-top: 4px solid var(--ccsj-red);
}

.ccsj-footer__inner {
	width: min(var(--ccsj-container), calc(100% - 40px));
	margin: 0 auto;
}

.ccsj-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.8fr) minmax(220px, 0.75fr);
	gap: 48px;
	padding: 52px 0 38px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.ccsj-footer__logo img {
	width: auto;
	max-width: 48px;
	max-height: 48px;
	margin-bottom: 16px;
}

.ccsj-footer__brand--fallback-logo .ccsj-footer__logo {
	display: inline-flex;
	padding: 8px 12px;
	margin-bottom: 16px;
	background: var(--ccsj-white);
	border-radius: 4px;
}

.ccsj-footer__brand--fallback-logo .ccsj-footer__logo img {
	width: min(300px, 100%);
	max-width: none;
	max-height: none;
	margin-bottom: 0;
}

.ccsj-footer__name,
.ccsj-footer__heading {
	margin: 0 0 14px;
	color: var(--ccsj-white);
	line-height: 1.4;
}

.ccsj-footer__name {
	font-size: 1.05rem;
	font-weight: 700;
}

.ccsj-footer__heading {
	position: relative;
	padding-bottom: 12px;
	font-size: 0.94rem;
	font-weight: 700;
}

.ccsj-footer__heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 34px;
	height: 1px;
	background: var(--ccsj-gold);
	content: "";
}

.ccsj-footer p {
	margin: 0;
}

.ccsj-footer a {
	color: rgba(255, 255, 255, 0.84);
	text-decoration: none;
}

.ccsj-footer a:hover,
.ccsj-footer a:focus {
	color: var(--ccsj-white);
}

.ccsj-footer-menu {
	display: grid;
	gap: 8px;
}

.ccsj-footer__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	margin-top: 18px;
	background: var(--ccsj-red);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--ccsj-radius);
	color: var(--ccsj-white);
	font-weight: 700;
}

.ccsj-footer__button:hover,
.ccsj-footer__button:focus {
	background: var(--ccsj-red-dark);
	color: var(--ccsj-white);
}

.ccsj-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 0;
	font-size: 0.85rem;
}

.ccsj-footer__legal {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.ccsj-language-switcher--footer {
	color: rgba(255, 255, 255, 0.66);
}

.ccsj-language-switcher--footer a {
	color: rgba(255, 255, 255, 0.78);
}

.ccsj-site .button,
.ccsj-site button,
.ccsj-site input[type="button"],
.ccsj-site input[type="submit"] {
	border-radius: var(--ccsj-radius);
}

.ccsj-site .ccsj-section {
	padding: clamp(48px, 7vw, 88px) 0;
}

.ccsj-front-page {
	background: var(--ccsj-paper);
}

.ccsj-section-header {
	max-width: 760px;
}

.ccsj-site .ccsj-section-title {
	margin: 0 0 24px;
	color: var(--ccsj-red-dark);
	font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem);
	font-weight: 700;
	line-height: 1.35;
}

.ccsj-section-subtitle {
	margin: 0;
	color: var(--ccsj-muted);
	font-size: 1rem;
	line-height: 1.8;
}

.ccsj-site .ccsj-kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	color: var(--ccsj-gold);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ccsj-site .ccsj-kicker::before {
	width: 28px;
	height: 1px;
	background: currentColor;
	content: "";
}

.ccsj-mourning-mode .site,
.ccsj-mourning-mode .site-footer,
.ccsj-mourning-mode .ccsj-header {
	filter: grayscale(1);
}

.ccsj-mourning-banner {
	position: relative;
	z-index: 1200;
	background: #1f1f1f;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	color: #f5f5f5;
}

.ccsj-mourning-banner__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: min(var(--ccsj-container), calc(100% - 40px));
	min-height: 42px;
	margin: 0 auto;
	padding: 8px 0;
	text-align: center;
}

.ccsj-mourning-banner p {
	margin: 0;
	line-height: 1.55;
}

.ccsj-mourning-banner__ja {
	font-weight: 800;
}

.ccsj-mourning-banner__zh {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9rem;
}

.ccsj-cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1100;
	padding: 14px 0;
	background: rgba(251, 250, 247, 0.98);
	border-top: 1px solid var(--ccsj-border);
	box-shadow: 0 -12px 30px rgba(36, 36, 38, 0.08);
}

.ccsj-cookie-banner[hidden] {
	display: none;
}

.ccsj-cookie-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(var(--ccsj-container), calc(100% - 40px));
	margin: 0 auto;
}

.ccsj-cookie-banner__text {
	display: grid;
	gap: 4px;
	min-width: 0;
	color: var(--ccsj-ink);
	font-size: 0.9rem;
	line-height: 1.65;
}

.ccsj-cookie-banner p {
	margin: 0;
}

.ccsj-cookie-banner__zh {
	color: var(--ccsj-muted);
	font-size: 0.84rem;
}

.ccsj-cookie-banner__actions {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 14px;
	white-space: nowrap;
}

.ccsj-cookie-banner__actions a {
	color: var(--ccsj-red);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ccsj-cookie-banner__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 18px;
	background: var(--ccsj-red);
	border: 0;
	border-radius: var(--ccsj-radius);
	color: var(--ccsj-white);
	font-weight: 800;
	cursor: pointer;
}

.ccsj-cookie-banner__button:hover,
.ccsj-cookie-banner__button:focus {
	background: var(--ccsj-red-dark);
	color: var(--ccsj-white);
}

.ccsj-site .entry-content > * {
	max-width: 860px;
}

.ccsj-site .entry-content > .alignwide {
	max-width: var(--ccsj-container);
}

.ccsj-site .entry-content > .alignfull {
	max-width: none;
}

@media (max-width: 768px) {
	.ccsj-container {
		width: min(var(--ccsj-container), calc(100% - 28px));
	}

	.ccsj-site .ccsj-section {
		padding: 40px 0;
	}

	.ccsj-mourning-banner__inner {
		flex-direction: column;
		gap: 2px;
		width: min(var(--ccsj-container), calc(100% - 28px));
		min-height: 0;
		padding: 9px 0;
	}

	.ccsj-mourning-banner__ja {
		font-size: 0.95rem;
	}

	.ccsj-mourning-banner__zh {
		font-size: 0.84rem;
	}

	.ccsj-cookie-banner {
		padding: 12px 0;
	}

	.ccsj-cookie-banner__inner {
		align-items: stretch;
		flex-direction: column;
		gap: 12px;
		width: min(var(--ccsj-container), calc(100% - 28px));
	}

	.ccsj-cookie-banner__actions {
		justify-content: space-between;
		width: 100%;
		white-space: normal;
	}

	.ccsj-cookie-banner__button {
		flex: 0 0 auto;
	}
}

@media (max-width: 1024px) {
	.ccsj-header__inner {
		gap: 18px;
	}

	.ccsj-menu a {
		padding: 0 8px;
		font-size: 0.86rem;
	}
}

@media (max-width: 920px) {
	:root {
		--ccsj-header-height: 64px;
	}

	.admin-bar .ccsj-header {
		top: 46px;
	}

	.ccsj-header__inner {
		width: min(var(--ccsj-container), calc(100% - 28px));
	}

.ccsj-brand__name {
		max-width: calc(100vw - 112px);
		font-size: 0.94rem;
	}

	.ccsj-language-picker--desktop {
		display: none;
	}

	.ccsj-menu-toggle {
		display: inline-flex;
		position: relative;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		background: transparent;
		border: 1px solid rgba(127, 18, 24, 0.24);
		border-radius: var(--ccsj-radius);
	}

	.ccsj-menu-toggle__bar {
		position: absolute;
		width: 20px;
		height: 2px;
		background: var(--ccsj-red-dark);
		transition: transform 160ms ease, opacity 160ms ease;
	}

	.ccsj-menu-toggle__bar:nth-child(1) {
		transform: translateY(-7px);
	}

	.ccsj-menu-toggle__bar:nth-child(3) {
		transform: translateY(7px);
	}

	.ccsj-menu-open .ccsj-menu-toggle__bar:nth-child(1) {
		transform: rotate(45deg);
	}

	.ccsj-menu-open .ccsj-menu-toggle__bar:nth-child(2) {
		opacity: 0;
	}

	.ccsj-menu-open .ccsj-menu-toggle__bar:nth-child(3) {
		transform: rotate(-45deg);
	}

	.ccsj-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		max-height: calc(100vh - var(--ccsj-header-height));
		overflow-y: auto;
		background: var(--ccsj-white);
		border-top: 1px solid rgba(127, 18, 24, 0.14);
		box-shadow: 0 18px 34px rgba(36, 36, 38, 0.12);
	}

	.ccsj-menu-open .ccsj-nav {
		display: block;
	}

	.ccsj-menu {
		display: block;
		width: min(var(--ccsj-container), calc(100% - 28px));
		padding: 12px 0;
		margin: 0 auto;
	}

	.ccsj-menu > li {
		border-bottom: 1px solid var(--ccsj-border);
	}

	.ccsj-menu a {
		display: flex;
		min-height: 50px;
		padding: 0 44px 0 0;
		font-size: 0.96rem;
	}

	.ccsj-menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 8px 16px;
		background: transparent;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
	}

	.ccsj-menu .is-submenu-open > .sub-menu {
		display: block;
	}

	.ccsj-menu .sub-menu a {
		min-height: 42px;
		padding: 0;
		color: var(--ccsj-muted);
	}

	.ccsj-submenu-toggle {
		position: absolute;
		top: 4px;
		right: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		background: transparent;
		border: 0;
	}

	.ccsj-submenu-toggle::before,
	.ccsj-submenu-toggle::after {
		position: absolute;
		width: 12px;
		height: 2px;
		background: var(--ccsj-red);
		content: "";
	}

	.ccsj-submenu-toggle::after {
		transform: rotate(90deg);
	}

	.is-submenu-open > .ccsj-submenu-toggle::after {
		transform: rotate(0);
	}

	.ccsj-language-picker--mobile {
		display: flex;
		width: min(var(--ccsj-container), calc(100% - 28px));
		min-height: 50px;
		margin: 0 auto;
		padding: 8px 0 18px;
	}

	.ccsj-language-picker--mobile .ccsj-language-select {
		width: 100%;
		height: 44px;
	}

	.ccsj-footer__top {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 42px 0 32px;
	}

	.ccsj-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 600px) {
	.admin-bar .ccsj-header {
		top: 0;
	}

	.ccsj-brand__logo img {
		max-width: 36px;
		max-height: 36px;
	}

	.ccsj-brand--fallback-logo .ccsj-brand__logo img {
		width: min(210px, calc(100vw - 112px));
		max-width: none;
		max-height: 36px;
	}
	.ccsj-brand__name {
		max-width: calc(100vw - 96px);
	}
}
