/**
 * Visual parity for reviewed non-Japanese public information pages.
 * The existing Japanese component classes remain the source of layout truth;
 * these rules adapt vertical Japanese typography to translated copy.
 */

body.page-template-template-multilingual-page .l-subMv h1 span {
	max-width: min(86vw, 760px);
	white-space: normal;
	-webkit-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
	padding: 1.6rem 2.4rem;
	line-height: 1.35;
}

.tensha-ml-parity,
.tensha-ml-parity p,
.tensha-ml-parity li,
.tensha-ml-parity dt,
.tensha-ml-parity dd {
	font-family: 'Noto Serif JP', serif;
}

.tensha-ml-parity .tensha-ml-rich {
	font-size: 1.6rem;
	font-weight: 300;
	line-height: 1.9;
}

.tensha-ml-parity .tensha-ml-rich > * + * {
	margin-top: 1.5em;
}

.tensha-ml-parity .tensha-ml-rich h2,
.tensha-ml-parity .tensha-ml-rich h3 {
	font-weight: 500;
	line-height: 1.45;
}

.tensha-ml-parity .tensha-ml-rich h2 {
	margin-top: 2.2em;
	font-size: clamp(2rem, 2.6vw, 2.8rem);
}

.tensha-ml-parity .tensha-ml-rich h3 {
	margin-top: 1.8em;
	font-size: clamp(1.8rem, 2.1vw, 2.2rem);
}

.tensha-ml-parity .tensha-ml-rich img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2.4rem auto 0;
}

.tensha-ml-parity .tensha-ml-rich a {
	color: #67211c;
	text-decoration: underline;
	text-underline-offset: .2em;
}

.tensha-translation-history .p-saijin-contents__title h2,
.tensha-translation-deities .p-saijin-contents__title h2 {
	position: static;
	display: block;
	max-width: 24rem;
	-webkit-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
	font-size: clamp(2.6rem, 3vw, 4rem);
	line-height: 1.35;
	text-align: left;
}

.tensha-translation-history .p-saijin-contents__title h2::before,
.tensha-translation-history .p-saijin-contents__title h2::after,
.tensha-translation-deities .p-saijin-contents__title h2::before,
.tensha-translation-deities .p-saijin-contents__title h2::after {
	display: none;
}

.tensha-translation-history .p-saijin-contents__title,
.tensha-translation-deities .p-saijin-contents__title {
	padding-right: clamp(3rem, 5vw, 7rem);
}

.tensha-translation-history .p-saijin-contents__text,
.tensha-translation-deities .p-saijin-contents__text {
	border-left: 3px solid transparent;
	border-image: linear-gradient(to bottom, #493759 0 50%, #dc1c24 50% 100%) 1;
	padding-left: clamp(2.4rem, 4vw, 5rem);
}

.tensha-translation-deities .p-saijin-contents--reverse .p-saijin-contents__text {
	border-right: 3px solid transparent;
	border-left: 0;
	border-image: linear-gradient(to bottom, #493759 0 50%, #dc1c24 50% 100%) 1;
	padding-right: clamp(2.4rem, 4vw, 5rem);
	padding-left: 0;
}

.tensha-translation-deities .p-saijin-contents--reverse .p-saijin-contents__title {
	padding-right: 0;
	padding-left: clamp(3rem, 5vw, 7rem);
}

.tensha-translation-rituals .p-gyoji-item__title {
	flex: 0 0 clamp(180px, 19vw, 250px);
}

.tensha-translation-rituals .p-gyoji-item__title__contents {
	left: 0;
	width: calc(100% - 3rem);
	transform: none;
}

.tensha-translation-rituals .p-gyoji-item__title__date2 {
	font-size: 1.45rem !important;
	font-weight: 400;
	line-height: 1.6;
	text-align: left !important;
}

.tensha-translation-rituals .p-gyoji-item__title__contents h2 {
	display: block;
	-webkit-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
	margin-top: 2rem;
	padding-top: 2rem;
	font-size: clamp(2.2rem, 2.4vw, 3rem);
	line-height: 1.35;
}

.tensha-translation-rituals .p-gyoji-item__title__contents h2::before,
.tensha-translation-rituals .p-gyoji-item__title__contents h2::after {
	width: 50%;
}

.tensha-translation-rituals .p-gyoji-item__bottom {
	columns: 2;
	column-gap: clamp(3rem, 5vw, 8rem);
}

.tensha-translation-rituals .p-gyoji-item__bottom p {
	columns: auto !important;
	break-inside: avoid;
	margin: 0 0 1.5em;
	text-align: left;
}

.tensha-translation-rituals .tensha-translation-note,
.tensha-translation-rituals .tensha-visit-actions {
	column-span: all;
}

.tensha-ml-parity .tensha-translation-note {
	padding: 1.2em 1.4em;
	border-left: 3px solid #9a7d55;
	background: #f7f3ec;
}

.tensha-ml-parity .tensha-visit-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1.2rem;
}

.tensha-ml-parity .tensha-visit-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 4.8rem;
	padding: .9rem 1.8rem;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	text-decoration: none;
}

.tensha-translation-visit {
	max-width: 760px;
	margin: 0 auto;
	padding: 96px 24px 120px;
	font-size: 1.8rem;
}

.tensha-translation-visit .c-title {
	margin-bottom: 56px;
}

.tensha-translation-visit__content > p:first-child {
	margin-bottom: 72px;
}

.tensha-translation-visit__content > h2 {
	display: block;
	margin: 72px 0 28px;
	padding-bottom: 14px;
	font-size: 2rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .08em;
	border-bottom: 1px solid rgba(0,0,0,.18);
}

.tensha-translation-visit__content p,
.tensha-translation-visit__content dd {
	line-height: 2.1;
}

.tensha-translation-visit__content dt {
	margin-top: 2.4rem;
	font-weight: 500;
}

.tensha-translation-visit .tensha-visit-address span {
	display: block;
}

.tensha-translation-visit .tensha-visit-map {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 10;
	margin-top: 2.4rem;
}

.tensha-translation-visit .tensha-visit-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tensha-translation-koyomi__hero-title {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 28rem;
	padding: 4rem 8vw;
	text-align: center;
}

.tensha-translation-koyomi__hero-title h2 {
	max-width: 1000px;
	font-size: clamp(3.4rem, 6vw, 7rem);
	font-weight: 500;
	line-height: 1.25;
	color: #fff;
	text-shadow: 0 2px 20px rgba(0,0,0,.65);
}

.tensha-translation-koyomi .p-koyomi-about__title h2 {
	max-width: 80%;
	-webkit-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
	font-size: clamp(2.6rem, 4vw, 4.4rem);
	line-height: 1.35;
	text-align: center;
}

.tensha-translation-koyomi .p-koyomi-about__text .tensha-visit-photo {
	max-width: 540px;
	margin: 4rem auto 0;
}

.tensha-translation-koyomi .c-link-block__title h2 {
	font-size: clamp(2.4rem, 3vw, 3.6rem);
	line-height: 1.35;
}

.tensha-translation-koyomi .c-link-block__text {
	font-size: 1.6rem;
	line-height: 1.9;
}

html[lang^="en"] .tensha-translation-koyomi .c-link-block__title {
	position: static;
	display: block;
	width: auto;
	height: auto;
	margin: 0 0 2.4rem;
	-webkit-writing-mode: horizontal-tb;
	writing-mode: horizontal-tb;
	text-align: left;
}

html[lang^="en"] .tensha-translation-koyomi .c-link-block__title h2 {
	max-width: none;
	font-size: clamp(2.6rem, 3vw, 3.8rem);
	line-height: 1.3;
}

html[lang^="en"] .tensha-translation-koyomi .c-link-block__contents__inner,
html[lang^="en"] .tensha-translation-koyomi .c-link-block--reverse .c-link-block__contents__inner {
	text-align: left;
}

html[lang^="en"] .tensha-translation-koyomi .c-link-block__text {
	padding-top: 3rem;
}

@media screen and (max-width: 767px) {
	body.page-template-template-multilingual-page .l-subMv h1 span {
		max-width: 86vw;
		padding: 1.2rem 1.6rem;
		font-size: clamp(2rem, 6vw, 3rem);
	}

	.tensha-translation-history .p-saijin-contents__title,
	.tensha-translation-deities .p-saijin-contents__title,
	.tensha-translation-deities .p-saijin-contents--reverse .p-saijin-contents__title {
		margin-bottom: 3rem;
		padding: 0;
	}

	.tensha-translation-history .p-saijin-contents__title h2,
	.tensha-translation-deities .p-saijin-contents__title h2 {
		max-width: none;
		margin: 0;
		text-align: center;
	}

	.tensha-translation-history .p-saijin-contents__text,
	.tensha-translation-deities .p-saijin-contents__text,
	.tensha-translation-deities .p-saijin-contents--reverse .p-saijin-contents__text {
		padding: 2.4rem 0 0;
		border: 0;
		border-top: 3px solid transparent;
		border-image: linear-gradient(to right, #493759 0 50%, #dc1c24 50% 100%) 1;
	}

	.tensha-translation-rituals .p-gyoji-item__title {
		margin-bottom: 3rem;
		text-align: center;
	}

	.tensha-translation-rituals .p-gyoji-item__title__contents {
		position: static;
		width: 100%;
	}

	.tensha-translation-rituals .p-gyoji-item__title__date2 {
		text-align: center !important;
	}

	.tensha-translation-rituals .p-gyoji-item__title__contents h2 {
		margin: 1.6rem auto 0;
	}

	.tensha-translation-rituals .p-gyoji-item__bottom {
		columns: 1;
	}

	.tensha-translation-visit {
		padding: 64px 20px 88px;
	}

	.tensha-translation-visit .c-title {
		margin-bottom: 40px;
	}

	.tensha-translation-visit__content > p:first-child {
		margin-bottom: 56px;
	}

	.tensha-translation-visit__content > h2 {
		margin-top: 56px;
		font-size: 1.8rem;
	}

	.tensha-translation-koyomi__hero-title {
		min-height: 22rem;
		padding: 3rem 6vw;
	}

	.tensha-translation-koyomi__hero-title h2 {
		font-size: clamp(2.8rem, 9vw, 4.6rem);
	}

	html[lang^="en"] .tensha-translation-koyomi .c-link-block__title {
		margin-bottom: 2rem;
	}

	html[lang^="en"] .tensha-translation-koyomi .c-link-block__title h2 {
		font-size: clamp(2.4rem, 7vw, 3.2rem);
	}
}
