/* Cryptn トップページ */

/* トップページだけ Snow Monkey の本文エリアの余白をなくす */
.has-cryptn-top .p-section-front-page-content,
.has-cryptn-top .l-contents__main > .c-section,
.has-cryptn-top .l-contents,
.has-cryptn-top .l-contents__body,
.has-cryptn-top .l-contents__inner,
.has-cryptn-top .l-contents__container,
.has-cryptn-top .l-contents__main,
.has-cryptn-top .l-contents .c-container,
.has-cryptn-top .c-entry,
.has-cryptn-top .c-entry__body,
.has-cryptn-top .p-entry-content {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.has-cryptn-top .p-entry-content > * {
	max-width: none !important;
	margin: 0 !important;
}

.crt {
	--crt-navy: #363e54;
	--crt-ink: #2a2e3a;
	--crt-sub: #555b6e;
	--crt-gray: #f2f2ef;
	--crt-line: #d9dade;
	--crt-pad: clamp(20px, 5.5%, 80px);
	--crt-max: 1200px;
	--crt-side: max(var(--crt-pad), calc((100% - var(--crt-max)) / 2));
	--crt-inset: clamp(20px, 4%, 48px);
	position: relative;
	width: 100%;
	max-width: none !important;
	margin: 0 !important;
	color: var(--crt-ink);
	font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
	font-size: 16px;
	line-height: 2;
	letter-spacing: 0.04em;
}
.crt *,
.crt *::before,
.crt *::after {
	box-sizing: border-box;
}
.crt a {
	color: inherit;
	text-decoration: none;
}
.crt a:hover {
	opacity: 0.8;
}
.crt img {
	display: block;
	max-width: none;
}
.crt h2,
.crt p {
	margin: 0;
}

/* 固定ページなどに埋め込むとき（[cryptn_voices]） */
.crt.crt--embed {
	margin: 48px 0 !important;
}
.crt--embed .crt-section {
	padding: 0;
}

/* 共通 */
.crt-section {
	padding: 96px var(--crt-side);
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.crt-section--gray {
	background: var(--crt-gray);
}
.crt-section--navy {
	background: var(--crt-navy);
	color: #fff;
}
.crt-section--works {
	padding-bottom: 48px;
}
.crt-section--voice {
	padding-top: 48px;
}
.crt-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	flex-wrap: wrap;
}
.crt-head--border {
	padding-top: 48px;
	border-top: 1px solid var(--crt-line);
}
.crt-heading {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.crt-heading__en {
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: clamp(40px, 4.4vw, 60px);
	line-height: 1.1;
	letter-spacing: 0.04em;
}
.crt .crt-heading__ja {
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.24em;
	line-height: 1.6;
	color: inherit;
	border: 0;
	padding: 0;
	background: none;
}
.crt-more {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 44px;
	font-family: 'Jost', sans-serif;
	font-size: 15px;
	letter-spacing: 0.16em;
}
.crt-more__line {
	display: block;
	width: 72px;
	height: 1px;
	background: currentColor;
}

/* カード（横4・スマホ2×2） */
.crt-cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px 16px;
}
.crt-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}
.crt-card__img {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e6e6e2;
}
.crt-card__img--3x2 {
	aspect-ratio: 3 / 2;
	background: #fff;
}
.crt-card__img--16x9 {
	aspect-ratio: 16 / 9;
	background: var(--crt-navy);
}
.crt-card__img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.crt-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	line-height: 1.6;
}
.crt-card__meta time {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.08em;
	color: var(--crt-sub);
}
.crt-tag {
	padding: 1px 10px;
	border: 1px solid var(--crt-ink);
	font-size: 11px;
	letter-spacing: 0.14em;
}
.crt-card__text {
	display: flex;
	flex-direction: column;
	line-height: 1.7;
}
.crt-card__sub {
	font-size: 12px;
	letter-spacing: 0.2em;
	color: var(--crt-sub);
}
.crt-card__sub--en {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
}
.crt-card__title {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.7;
}
.crt-card__title--small {
	font-size: 13px;
	font-weight: 400;
}
.crt-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background: rgba(31, 36, 52, 0.75);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* メインビジュアル */
.crt-hero-band {
	background: var(--crt-navy);
}
.crt-hero {
	position: relative;
	width: calc(100% - 2 * var(--crt-pad));
	max-width: 1440px;
	height: clamp(440px, 46vw, 680px);
	margin: 0 auto !important;
	overflow: hidden;
	background: #1f2434;
	color: #fff;
}
/* メインビジュアル：動画 */
.crt-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.crt-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0.8s;
}
.crt-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}
.crt-hero__slide img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.crt-hero__shade {
	position: absolute;
	inset: 0;
	background: rgba(31, 36, 52, 0.3);
}
.crt-hero__caption {
	position: absolute;
	left: var(--crt-inset);
	bottom: 48px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	max-width: min(600px, calc(100% - 2 * var(--crt-inset)));
	padding: 28px 32px;
	background: rgba(31, 36, 52, 0.72);
	color: #fff !important;
}
.crt-hero__label {
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.24em;
	line-height: 1.4;
}
.crt-hero__title {
	font-size: clamp(20px, 2.2vw, 28px);
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.06em;
}
.crt-hero__read {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 13px;
	letter-spacing: 0.14em;
	line-height: 1.4;
}
.crt-hero__read-line {
	display: block;
	width: 48px;
	height: 1px;
	background: #fff;
}
.crt-hero__controls {
	position: absolute;
	right: var(--crt-inset);
	bottom: 48px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 0;
}
.crt .crt-hero__arrow {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s ease;
}
.crt .crt-hero__arrow svg {
	width: 14px;
	height: 14px;
}
.crt .crt-hero__arrow:hover {
	color: #fff;
}
.crt .crt-hero__dot {
	position: relative;
	width: 24px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.crt .crt-hero__dot::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	transition: background 0.3s ease;
}
.crt .crt-hero__dot.is-active::before {
	background: #fff;
}
.crt .crt-hero__arrow:focus,
.crt .crt-hero__dot:focus {
	outline: none;
}
.crt .crt-hero__arrow:focus-visible,
.crt .crt-hero__dot:focus-visible {
	outline: 1px solid #fff;
	outline-offset: -6px;
}

/* Concept */
.crt-concept {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 40px 72px;
}
.crt-concept__visual {
	position: relative;
	flex: 1 1 480px;
	min-height: 420px;
	overflow: hidden;
	background: #1f2434;
}
.crt-concept__img {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.04);
	transition: opacity 0.6s ease, transform 1.2s ease;
}
.crt-concept__img.is-active {
	opacity: 1;
	transform: scale(1);
}
.crt-concept__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
.crt-concept__badge {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 22px;
	background: #fff;
	color: var(--crt-ink);
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.2em;
	line-height: 1.4;
}
.crt-concept__badge-line {
	display: block;
	width: 28px;
	height: 1px;
	background: var(--crt-ink);
}
.crt-concept__body {
	flex: 1 1 400px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 36px;
}
.crt-concept__list {
	display: flex;
	flex-direction: column;
}
.crt-concept__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
	color: #a9aec0 !important;
	transition: color 0.3s ease;
}
.crt-concept__row.is-active {
	color: #fff !important;
}
.crt-concept__row-head {
	display: flex;
	align-items: baseline;
	gap: 20px;
}
.crt-concept__num {
	width: 22px;
	font-family: 'Jost', sans-serif;
	font-size: 13px;
	letter-spacing: 0.1em;
}
.crt-concept__en {
	font-family: 'Jost', sans-serif;
	font-weight: 300;
	font-size: 40px;
	line-height: 1.1;
	letter-spacing: 0.04em;
}
.crt-concept__ja {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
}
.crt-concept__line {
	flex: 1 1 auto;
	align-self: center;
	height: 1px;
	background: transparent;
	transition: background 0.3s ease;
}
.crt-concept__row.is-active .crt-concept__line {
	background: #fff;
}
.crt-concept__lead {
	margin-left: 42px !important;
	font-size: 14px;
	line-height: 1.8;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, opacity 0.4s ease;
}
.crt-concept__row.is-active .crt-concept__lead {
	max-height: 80px;
	opacity: 1;
}

/* Blog */
.crt-blog {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 40px 64px;
}
.crt-blog__head {
	flex: 0 1 300px;
}
.crt-blog__list {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.crt-blog__item {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 28px;
	padding: 20px 0;
	border-top: 1px solid #c9cbd2;
	line-height: 1.8;
}
.crt-blog__item time {
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: var(--crt-sub);
}
.crt-blog__cat {
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--crt-sub);
}
.crt-blog__title {
	flex: 1 1 320px;
	font-size: 16px;
}
.crt-blog__more {
	display: flex;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 4px;
	border-top: 1px solid #c9cbd2;
}

/* Movie */
.crt-youtube-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 0 24px;
	border: 1px solid var(--crt-ink);
	font-size: 14px;
	letter-spacing: 0.12em;
	line-height: 1.4;
}

/* スマホ・タブレット */
@media (max-width: 1023px) {
	.crt-section {
		padding-top: 72px;
		padding-bottom: 72px;
	}
	.crt-section--works {
		padding-bottom: 36px;
	}
	.crt-section--voice {
		padding-top: 36px;
	}
	.crt-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 639px) {
	.crt-hero {
		width: 100%;
		height: 60vh;
		height: 60svh;
		min-height: 380px;
	}
	.crt-hero__caption {
		gap: 8px;
	}
	.crt-hero__title {
		font-size: 18px;
		line-height: 1.5;
	}
	.crt-hero__caption {
		bottom: 88px;
		padding: 16px 18px;
	}
	.crt-hero__controls {
		left: var(--crt-inset);
		right: auto;
		bottom: 28px;
	}
	.crt-concept__visual {
		flex-basis: 100%;
		min-height: 280px;
	}
	.crt-concept__en {
		font-size: 32px;
	}
	.crt-concept__lead {
		margin-left: 0 !important;
	}
}

/* 写真の帯（[cryptn_slider]）：大きな写真が左へ一定の速さで流れる */
html:has(.crt--carousel) body {
	overflow-x: clip;
}
.crt.crt--carousel {
	width: 100vw !important;
	max-width: 100vw !important;
	margin: 0 0 72px calc(50% - 50vw) !important;
}
.crt-carousel {
	--crt-carousel-gap: 8px;
	overflow: hidden;
}
.crt-carousel__track {
	display: flex;
	gap: var(--crt-carousel-gap);
	width: max-content;
	animation: crt-carousel var(--crt-carousel-duration, 60s) linear infinite;
	will-change: transform;
}
.crt-carousel:hover .crt-carousel__track {
	animation-play-state: paused;
}
.crt-carousel__item {
	flex: 0 0 auto;
	width: min(50vw, 960px);
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: #e6e6e2;
}
.crt-carousel__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* 2周分並べて、1周分ずらしてつなぐ */
@keyframes crt-carousel {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-50% - var(--crt-carousel-gap) / 2)); }
}
@media (max-width: 639px) {
	.crt-carousel {
		--crt-carousel-gap: 4px;
	}
	.crt-carousel__item {
		width: 76vw;
	}
}
@media (prefers-reduced-motion: reduce) {
	.crt-carousel__track {
		animation: none;
	}
}
