/* =========================
   公式キャラクターページ用
========================= */

.character-page {
	position: relative;
	overflow: visible;
}

.character-page__inner {
	max-width: 1100px;
	margin: 0 auto;
}

.character-page__inner--narrow {
	max-width: 1100px;
}

.character-hero {
	padding: 40px 0 120px;
}

.character-hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 72px;
	align-items: center;
}

.character-page__title {
	margin: 0 0 12px;
	font-size: 4rem;
	font-weight: 700;
	line-height: 1.2;
	color: #123b67;
	border: none !important;
}

.character-page__title::after,
.character-hero__name::after,
.character-profile__title::after {
	display: none !important;
	content: none !important;
}

.character-page__subtitle {
	margin: 0 0 72px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.5;
}

.character-hero__name {
	margin: 0 0 24px;
	color: var(--color-text);
	font-size: var(--font-size-label);
	font-weight: 700;
	line-height: 1.5;
	border: none !important;
}

.character-hero__catch {
	margin: 0 0 32px;
	font-size: var(--font-size-meta);
	font-weight: 700;
	line-height: 1.75;
	letter-spacing: 0.04em;
}

.character-hero__lead {
	width: 165%;
	font-size: var(--font-size-body);
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.04em;
	text-wrap: nowrap;
}
.character-hero__lead p {
	margin-bottom: 0;
}

.character-hero__visual {
	position: relative;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	bottom: 100px;
}

.character-hero__blob {
	position: absolute;
	inset: 8% 0 0 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.character-hero__blob img {
	width: min(100%, 390px);
	height: auto;
	display: block;
}

.character-hero__image {
	position: relative;
	z-index: 1;
	width: min(100%, 300px);
	margin: 0 auto;
}

.character-hero__image img {
	width: 100%;
	height: auto;
	display: block;
}

.character-profile {
	padding: 0 0 140px;
}

.character-profile__box {
	padding: 56px 72px 64px;
	background: #f5f9ef;
	border-radius: 12px;
}

.character-profile__title {
	margin: 0 0 40px;
	text-align: center;
	color: var(--color-primary);
	font-size: var(--font-size-label);
	font-weight: 700;
	line-height: 1.4;
	border: none !important;
}

.character-profile__rows {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 72px;
	row-gap: 14px;
	max-width: 620px;
	margin: 0 auto 48px;
	justify-items: center;
}

.character-profile__row {
	display: grid;
	grid-template-columns: 95px 1fr;
	gap: 16px;
	align-items: start;
	font-size: var(--font-size-body);
	line-height: 1.6;
	width: 100%;
	max-width: 340px;
}

.character-profile__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	padding: 0 50px;
	background: #fff;
	border-radius: 999px;
	color: var(--color-primary);
	font-weight: 700;
	white-space: nowrap;
}

.character-profile__value {
	font-weight: 500;
	text-wrap: nowrap;
}

.character-profile__image {
	max-width: 620px;
	margin: 0 auto;
}

.character-profile__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 991px) {
	.character-hero__layout {
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.character-page__subtitle {
		margin-bottom: 48px;
	}

	.character-hero__lead {
		width: 100%;
		text-wrap: wrap;
	}

	.character-hero__visual {
		min-height: auto;
		bottom: 0;
	}

	.character-hero__image {
		max-width: 320px;
	}

	.character-hero__blob img {
		max-width: 350px;
	}
	.character-profile__rows {
		column-gap: unset;
	}
}

@media (max-width: 767px) {
	.character-page {
		overflow: visible !important;
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 0 20px;
		box-sizing: border-box;
	}

	.character-page__inner {
		width: 100%;
		max-width: 1100px;
		margin: 0 auto;
	}

	body.page-id-133 .entry-body,
	body.page-id-133 .entry-content {
		overflow-x: visible !important;
	}

	body.page-id-133 .site-body {
		position: relative;
		overflow-x: clip !important;
		overflow-y: visible !important;
	}

	body.page-id-133 .lower-page-deco-wrap {
		position: absolute;
		top: 0;
		left: 50%;
		width: 100vw;
		height: 0;
		transform: translateX(-50%);
		overflow: visible !important;
		pointer-events: none;
		z-index: 2;
	}

	/* パンくず・タイトルを装飾より前面に出す */
	body.page-id-133 .breadcrumb,
	body.page-id-133 .common-page-hero,
	body.page-id-133 .character-page {
		position: relative;
	}

	.character-page__title {
		font-size: 3rem;
	}

	.character-page__subtitle {
		margin-bottom: 44px;
		font-size: 1.15rem;
	}

	.character-profile {
		padding-bottom: 88px;
	}

	.character-profile__box {
		padding: 36px 22px 40px;
		border-radius: 10px;
	}

	.character-profile__title {
		margin-bottom: 32px;
		font-size: 1.55rem;
	}

	.character-profile__rows {
		grid-template-columns: 1fr;
		row-gap: 12px;
	}

	.character-profile__row {
		grid-template-columns: 68px 1fr;
		gap: 12px;
		font-size: var(--font-size-body);
	}

	.character-profile__label {
		font-size: var(--font-size-body);
		padding: 0;
	}

	/* ========================================
	   キャラクターヒーロー：SP
	======================================== */
	.character-hero {
		padding: 20px 0 56px;
	}

	.character-hero__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"name"
			"catch"
			"visual"
			"lead";
		gap: 0;
		width: 100%;
	}

	/*
	 * content要素自体をレイアウト上から外し、
	 * 中の各要素をlayoutのGridアイテムとして扱う
	 */
	.character-hero__content {
		display: contents;
	}

	/* アイズくん */
	.character-hero__name {
		grid-area: name;
		margin: 0 0 20px;
		color: var(--color-text);
		font-size: 1.75rem;
		font-weight: 700;
		line-height: 1.5;
	}

	/* キャッチコピー */
	.character-hero__catch {
		grid-area: catch;
		margin: 0 0 14px;
		font-weight: 700;
		line-height: 1.55;
		letter-spacing: 0.02em;
	}

	/* キャラクター画像 */
	.character-hero__visual {
		grid-area: visual;
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;

		width: 100%;
		min-height: 0;
		margin: 0 auto 18px;
		bottom: auto;
	}

	/* 背景の装飾画像 */
	.character-hero__blob {
		position: absolute;
		inset: auto;
		z-index: 0;
		display: flex;
		align-items: center;
		justify-content: center;

		width: 245px;
		height: 200px;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	.character-hero__blob img {
		display: block;
		width: 100%;
		max-width: none;
		height: auto;
	}

	/* キャラクター本体 */
	.character-hero__image {
		position: relative;
		z-index: 1;

		width: 180px;
		max-width: none;
		margin: 0 auto;
	}

	.character-hero__image img {
		display: block;
		width: 100%;
		height: auto;
	}

	/* キャラクター説明文 */
	.character-hero__lead {
		grid-area: lead;

		width: 100%;
		margin: 0;

		font-size: var(--font-size-body);
		font-weight: 500;
		line-height: 1.75;
		letter-spacing: 0.02em;
		text-wrap: wrap;
	}

	.character-hero__lead p {
		margin: 0;
	}
}

@media (max-width: 500px) {
	.character-hero__catch {
		font-size: 1.25rem;
	}
}

/* 共通装飾01,02の英字タイトル改行影響の補正 */
@media (max-width: 374px) {
	
	/* 共通装飾01,02の英字タイトル改行影響の補正 */
	body.page-id-133 .lower-header-deco-wrap .lower-common-header-deco-01 {
		top: -295px !important;
	}
	body.page-id-133 .lower-header-deco-wrap .lower-common-header-deco-02 {
		top: -385px !important;
	}
}