/*
 * Portal Core — C案「Contemporary Art Book」4CPTシングル用。
 * 子テーマ未配備の検証環境でも成立するよう、必要なトークンを再宣言する。
 */

:root {
	--book-ivory: #F1EADF;
	--editorial-ink: #11110F;
	--fog-blue: #B7CED5;
	--kiln-rust: #9E4328;
	--paper-line: #CFC4B5;
	--caption-stone: #625E57;
	--display-jp: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
	--display-latin: 'Cormorant Garamond', Georgia, serif;
	--body-sans: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, sans-serif;

	--iron-ink: var(--editorial-ink);
	--mill-gray: var(--caption-stone);
	--galv-gray: var(--paper-line);
	--plate-white: var(--book-ivory);
	--select-yellow: var(--kiln-rust);
}

body.single-company,
body.single-selection,
body.single-question,
body.single-story {
	background: var(--book-ivory);
	color: var(--editorial-ink);
}

.portal-single,
.portal-single *,
.portal-single *::before,
.portal-single *::after {
	box-sizing: border-box;
}

.portal-single {
	width: min(100%, 74rem);
	max-width: 74rem;
	margin-right: auto;
	margin-left: auto;
	padding-right: clamp(1rem, 3.4vw, 3.5rem);
	padding-left: clamp(1rem, 3.4vw, 3.5rem);
	padding-top: clamp(3rem, 8vw, 7rem);
	padding-bottom: clamp(5rem, 10vw, 9rem);
	color: var(--editorial-ink);
	font-family: var(--body-sans);
	overflow-wrap: anywhere;
}

.portal-single :focus-visible {
	outline: 3px solid var(--kiln-rust);
	outline-offset: 4px;
}

.portal-kicker {
	margin: 0 0 1.5rem;
	color: var(--caption-stone);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.5;
	text-transform: uppercase;
}

.portal-kicker span {
	font-family: var(--display-latin);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .08em;
}

.portal-single-header {
	max-width: 58rem;
	margin-bottom: clamp(2rem, 5vw, 4rem);
}

.portal-single .c-postTitle {
	margin: 0;
}

.portal-single .c-postTitle__ttl {
	margin: 0;
	color: var(--editorial-ink);
	font-family: var(--display-jp);
	font-size: clamp(2.6rem, 6.8vw, 6.4rem);
	font-weight: 400;
	letter-spacing: -.055em;
	line-height: 1.25;
}

.portal-single > .post_content,
.portal-single > .portal-disclosure,
.portal-single > .portal-asof,
.portal-company-context,
.portal-single > .portal-criteria-line,
.portal-single > .portal-selection-meta {
	width: min(100%, 52rem);
	margin-right: auto;
	margin-left: auto;
}

.portal-single .post_content {
	color: var(--editorial-ink);
	font-size: .98rem;
	line-height: 2;
}

.portal-single .post_content > p,
.portal-single .post_content > ul,
.portal-single .post_content > ol {
	max-width: 46rem;
}

.portal-single .post_content h2 {
	margin: clamp(4rem, 8vw, 7rem) 0 2rem;
	padding: 0 0 1rem;
	border: 0;
	border-bottom: 1px solid var(--editorial-ink);
	background: transparent;
	color: var(--editorial-ink);
	font-family: var(--display-jp);
	font-size: clamp(1.9rem, 4.5vw, 3.2rem);
	font-weight: 400;
	letter-spacing: -.035em;
	line-height: 1.45;
}

.portal-single .post_content h2::before,
.portal-single .post_content h2::after,
.portal-single .post_content h3::before,
.portal-single .post_content h3::after {
	display: none;
	content: none;
}

.portal-single .post_content h3 {
	margin: 2.5rem 0 1rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--editorial-ink);
	font-family: var(--display-jp);
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.65;
}

.portal-single .post_content a {
	color: var(--kiln-rust);
}

/* ---- 企業詳細ヒーロー ---- */

.portal-single-company {
	max-width: 90rem;
	width: min(100%, 90rem);
}

.portal-company-hero {
	display: grid;
	grid-template-columns: minmax(18rem, .88fr) minmax(0, 1.12fr);
	min-height: 39rem;
	margin-bottom: clamp(2.5rem, 6vw, 5rem);
	border: 1px solid var(--editorial-ink);
}

.portal-company-hero__media,
.portal-company-hero__copy {
	min-width: 0;
}

.portal-company-hero__media {
	background: var(--fog-blue);
}

.portal-company-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.8) contrast(.96);
}

.portal-company-hero__graphic {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	min-height: 38rem;
	padding: clamp(2rem, 5vw, 4.5rem);
}

.portal-company-hero__graphic span {
	font-family: var(--display-latin);
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: .12em;
}

.portal-company-hero__graphic strong {
	align-self: end;
	font-family: var(--display-latin);
	font-size: clamp(4.5rem, 8vw, 8rem);
	font-weight: 400;
	letter-spacing: -.065em;
	line-height: .72;
}

.portal-company-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 6vw, 6rem);
	background: var(--editorial-ink);
	color: var(--book-ivory);
}

.portal-company-hero .portal-kicker,
.portal-company-hero__terms {
	color: var(--paper-line);
}

.portal-company-hero__terms {
	margin: 0 0 clamp(2rem, 4vw, 4rem);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .1em;
}

.portal-company-hero .c-postTitle__ttl {
	color: var(--book-ivory);
	font-size: clamp(2.7rem, 5.8vw, 6rem);
}

.portal-company-hero__summary {
	max-width: 38rem;
	margin: 2rem 0 0;
	color: var(--paper-line);
	font-family: var(--display-jp);
	font-size: 1rem;
	line-height: 1.9;
}

.portal-editorial-reason {
	margin: 0 0 1.5rem;
	padding: 1rem 0 0;
	border-top: 1px solid var(--kiln-rust);
}

.portal-editorial-reason p {
	margin: 0;
	color: var(--book-ivory);
	font-family: var(--display-jp);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.85;
}

.portal-editorial-reason span {
	display: block;
	margin-bottom: .45rem;
	color: var(--kiln-rust);
	font-family: var(--display-latin);
	font-size: .82rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
}

/* ---- 関係性・時点情報 ---- */

.portal-company-context {
	margin-bottom: 3rem;
}

.portal-disclosure {
	margin: 0 0 1rem;
	padding: 1rem 0;
	border-top: 1px solid var(--kiln-rust);
	border-bottom: 1px solid var(--paper-line);
	background: transparent;
	color: var(--editorial-ink);
	font-size: .74rem;
	line-height: 1.8;
}

.portal-asof {
	margin: 0 0 2rem;
	color: var(--caption-stone);
	font-size: .72rem;
	line-height: 1.7;
}

/* ---- 企業詳細: 判断要点とCTA ---- */

.portal-notice {
	margin-bottom: 2rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--kiln-rust);
	background: var(--book-ivory);
	color: var(--kiln-rust);
	font-size: .82rem;
}

.portal-decision-summary {
	margin: 0 0 clamp(4rem, 8vw, 7rem);
	padding: 0;
	border-top: 1px solid var(--editorial-ink);
	border-bottom: 1px solid var(--editorial-ink);
}

.portal-single .post_content .portal-decision-summary h2 {
	margin: 0;
	padding: 1.2rem 0;
	border: 0;
	border-bottom: 1px solid var(--editorial-ink);
	font-family: var(--display-jp);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	font-weight: 400;
}

.portal-decision-summary dl {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.portal-decision-summary dl > div {
	display: grid;
	grid-template-columns: minmax(7rem, .8fr) minmax(0, 1.2fr);
	gap: 1rem;
	padding: 1.2rem 0;
	border-bottom: 1px solid var(--paper-line);
}

.portal-decision-summary dl > div:nth-child(odd) {
	padding-right: 1.5rem;
	border-right: 1px solid var(--paper-line);
}

.portal-decision-summary dl > div:nth-child(even) {
	padding-left: 1.5rem;
}

.portal-decision-summary dt {
	color: var(--caption-stone);
	font-size: .72rem;
	font-weight: 600;
}

.portal-decision-summary dd {
	margin: 0;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.75;
}

.portal-company-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin-top: 1.5rem;
}

.portal-company-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.75rem;
	padding: .6rem 1.25rem;
	border: 1px solid var(--kiln-rust);
	background: var(--kiln-rust);
	color: var(--book-ivory) !important;
	font-size: .82rem;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.portal-company-actions a + a {
	border-left: 0;
	background: var(--book-ivory);
	color: var(--kiln-rust) !important;
}

.portal-company-actions a:hover {
	background: var(--editorial-ink);
	border-color: var(--editorial-ink);
}

.portal-company-actions a + a:hover {
	color: var(--book-ivory) !important;
}

.portal-company-actions__note {
	margin: .8rem 0 1.5rem;
	color: var(--caption-stone);
	font-size: .68rem;
	line-height: 1.7;
}

/* ---- データ表 ---- */

.portal-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.portal-company-table,
.portal-corp-table {
	width: 100%;
	margin: 1rem 0;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.portal-company-table th,
.portal-company-table td,
.portal-corp-table th,
.portal-corp-table td {
	padding: 1rem 0;
	border: 0;
	border-bottom: 1px solid var(--paper-line);
	background: transparent;
	font-size: .84rem;
	line-height: 1.8;
	text-align: left;
	vertical-align: top;
}

.portal-company-table th,
.portal-corp-table th {
	width: 29%;
	min-width: 8rem;
	padding-right: 1.5rem;
	color: var(--caption-stone);
	font-size: .72rem;
	font-weight: 600;
}

/* ---- FAQ ---- */

.portal-faq-item {
	margin: 0;
	padding: 1.3rem 0;
	border-top: 1px solid var(--paper-line);
}

.portal-faq-item:last-child {
	border-bottom: 1px solid var(--paper-line);
}

.portal-single .post_content .portal-faq-q {
	position: relative;
	margin: 0 0 .8rem;
	padding-left: 2.2rem;
	font-family: var(--display-jp);
	font-size: 1.05rem;
	font-weight: 500;
}

.portal-faq-q::before {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--kiln-rust);
	font-family: var(--display-latin);
	font-size: 1.35rem;
	content: 'Q.';
}

.portal-faq-a {
	margin: 0;
	padding-left: 2.2rem;
	font-size: .9rem;
	line-height: 1.9;
}

/* ---- 選定リスト／誘導カード ---- */

.portal-criteria-line {
	margin-top: 0;
	margin-bottom: 1rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--kiln-rust);
}

.portal-criteria-line p {
	margin: 0;
	color: var(--kiln-rust);
	font-family: var(--display-jp);
	font-size: clamp(1.1rem, 2.5vw, 1.5rem);
	font-weight: 500;
	line-height: 1.75;
}

.portal-selection-meta {
	margin-top: 0;
	margin-bottom: 2rem;
	color: var(--caption-stone);
	font-size: .72rem;
}

.portal-survey-scope {
	margin: 0 0 2rem;
	padding: 1.25rem 0;
	border-top: 1px solid var(--paper-line);
	border-bottom: 1px solid var(--paper-line);
	color: var(--caption-stone);
	font-size: .78rem;
	line-height: 1.8;
}

.portal-company-cards {
	display: grid;
	margin: 1rem 0 1.5rem;
	border-top: 1px solid var(--editorial-ink);
}

.portal-company-card,
.portal-selection-card {
	display: block;
	padding: 1.5rem 0;
	border: 0;
	border-bottom: 1px solid var(--editorial-ink);
	background: transparent;
	color: var(--editorial-ink) !important;
	text-decoration: none;
}

.portal-company-card:hover,
.portal-selection-card:hover {
	color: var(--kiln-rust) !important;
}

.portal-single .post_content .portal-company-card h3,
.portal-single .post_content .portal-selection-card h3 {
	margin: 0 0 .65rem;
	padding: 0;
	border: 0;
	font-family: var(--display-jp);
	font-size: clamp(1.35rem, 3vw, 2rem);
	font-weight: 400;
	line-height: 1.5;
}

.portal-company-card p,
.portal-selection-card p {
	margin: 0;
	color: var(--caption-stone);
	font-size: .8rem;
	line-height: 1.8;
}

.portal-selection-reason {
	padding-left: 1rem;
	border-left: 1px solid var(--kiln-rust);
}

.portal-order-note,
.portal-selection-lead {
	color: var(--caption-stone);
	font-size: .72rem;
}

.portal-order-note {
	margin: 0 0 1rem;
}

.portal-selection-lead {
	margin: 2rem 0 .4rem;
}

/* ---- 質問ページ ---- */

.portal-single-question .portal-answer-capsule {
	max-width: none;
	margin: 0 0 1rem;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 0;
	background: var(--fog-blue);
	font-family: var(--display-jp);
	font-size: clamp(1.15rem, 2.6vw, 1.6rem);
	line-height: 1.85;
}

.portal-single-question .portal-answer-reason {
	margin: 0 0 3rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--paper-line);
	color: var(--caption-stone);
	font-size: .82rem;
	line-height: 1.8;
}

/* ---- 取材記事 ---- */

.portal-video {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: 0 0 2.5rem;
	background: var(--editorial-ink);
}

.portal-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.portal-single *,
	.portal-single *::before,
	.portal-single *::after {
		transition-duration: .01ms !important;
	}
}

@media (max-width: 1023px) {
	.portal-company-hero {
		grid-template-columns: minmax(16rem, .82fr) minmax(0, 1.18fr);
	}

	.portal-decision-summary dl > div {
		grid-template-columns: minmax(6rem, .7fr) minmax(0, 1.3fr);
	}
}

@media (max-width: 767px) {
	.portal-single {
		padding-top: 2.75rem;
	}

	.portal-single .c-postTitle__ttl {
		font-size: clamp(2.4rem, 12vw, 4rem);
	}

	.portal-company-hero {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
		border: 0;
	}

	.portal-company-hero__graphic {
		min-height: min(86vw, 28rem);
		padding: 1.5rem;
	}

	.portal-company-hero__graphic strong {
		font-size: clamp(4rem, 20vw, 6.5rem);
	}

	.portal-company-hero__copy {
		padding: 3rem 1.25rem 3.5rem;
	}

	.portal-company-hero .c-postTitle__ttl {
		font-size: clamp(2.5rem, 12vw, 4rem);
	}

	.portal-company-context,
	.portal-single > .post_content,
	.portal-single > .portal-disclosure,
	.portal-single > .portal-asof,
	.portal-single > .portal-criteria-line,
	.portal-single > .portal-selection-meta {
		width: 100%;
	}

	.portal-decision-summary dl {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-decision-summary dl > div,
	.portal-decision-summary dl > div:nth-child(odd),
	.portal-decision-summary dl > div:nth-child(even) {
		grid-template-columns: minmax(6.5rem, .8fr) minmax(0, 1.2fr);
		padding: 1rem 0;
		border-right: 0;
	}

	.portal-company-actions {
		grid-template-columns: minmax(0, 1fr);
	}

	.portal-company-actions a + a {
		border-top: 0;
		border-left: 1px solid var(--kiln-rust);
	}

	.portal-table-scroll {
		overflow: visible;
	}

	.portal-company-table,
	.portal-company-table tbody,
	.portal-company-table tr,
	.portal-company-table th,
	.portal-company-table td,
	.portal-corp-table,
	.portal-corp-table tbody,
	.portal-corp-table tr,
	.portal-corp-table th,
	.portal-corp-table td {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.portal-company-table tr,
	.portal-corp-table tr {
		padding: .75rem 0;
		border-bottom: 1px solid var(--paper-line);
	}

	.portal-company-table th,
	.portal-company-table td,
	.portal-corp-table th,
	.portal-corp-table td {
		padding: .25rem 0;
		border: 0;
	}
}

@media (max-width: 374px) {
	.portal-company-hero__graphic strong {
		font-size: 3.6rem;
	}

	.portal-decision-summary dl > div,
	.portal-decision-summary dl > div:nth-child(odd),
	.portal-decision-summary dl > div:nth-child(even) {
		grid-template-columns: minmax(0, 1fr);
		gap: .35rem;
	}
}
