/* --- reset --- */
:where(.panda *, .panda ::before, .panda ::after) {
	box-sizing: border-box;
}


.text-ansin {
	color: var(--color-primary);
	font-weight: bold;
}

.text-panda {
	color: var(--color-panda-rose);
	font-weight: bold;
}

.text-heart {
	color: var(--color-panda-pink);
	font-weight: bold;
}


.panda-title {
	height: auto;
	padding: 1rem;
	line-height: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}


.panda-intro {
	background-image: url('/common/images/background/brand.jpg?20250718');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.panda-intro-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

.panda-intro-name {
	display: flex;
	justify-content: center;
	gap: 0.3em;
	color: var(--color-panda-lime);
	font-size: 24px;
	font-weight: bold;
	line-height: 1;
}

.panda-intro-name::before {
	content: '';
	background-image: url('/common/images/ansin-panda/heart.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 1em;
}

.panda-intro-name::after {
	content: '';
	background-image: url('/common/images/ansin-panda/heart.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	width: 1em;
}

.panda-intro-img {
	width: 80%;
	max-width: 640px;
	padding-bottom: 1rem;
}

.panda-intro-text {
	width: 100%;
	max-width: var(--max-width-text);
	padding: 1rem 1.5rem;
	background-color: var(--color-panda-lime);
	border-radius: var(--border-radius-text);
}

.panda-intro-data {
	grid-area: data;
	width: 100%;
	max-width: var(--max-width-data);
}

.panda-intro-data-item {
	display: flex;
}

.panda-intro-data-item-field {
	display: grid;
	place-content: center;
	min-width: 7em;
	padding: 0.5em;
	color: var(--color-text-white);
	background-color: var(--color-panda-pink);
	font-weight: bold;
}

.panda-intro-data-item-value {
	flex-grow: 1;
	padding: 0.5em 1em;
	color: var(--color-text-default);
	background-color: var(--color-panda-lime);
}

/* 改行制御 */
.panda-intro-data-item-value span {
	display: inline-block;
}

.panda-intro-data-item:not(:last-child) .panda-intro-data-item-field {
	background-image: linear-gradient(to right, var(--color-text-white) 2px, transparent 2px);
	background-size: 4px 1px;
	background-position: left bottom;
	background-repeat: repeat-x;
}

.panda-intro-data-item:not(:last-child) .panda-intro-data-item-value {
	background-image: linear-gradient(to right, var(--color-panda-pink) 2px, transparent 2px);
	background-size: 6px 1px;
	background-position: left bottom;
	background-repeat: repeat-x;
}


.panda-detail {
	background-color: var(--color-background-secondary);
}

.panda-detail-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.panda-detail-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	max-width: var(--max-width-text);
}

.panda-detail-body-data {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.panda-detail-body-data-item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.panda-detail-body-data-item-field {
	display: grid;
	grid-template-columns: 1.2rem 1fr;
	gap: 0.5rem;
	padding: 0.5rem;
	background-color: var(--color-background-primary);
	border-radius: var(--border-radius-text);
}

.panda-detail-body-data-item-field::before {
	content: '';
	display: block;
	margin-top: 0.3rem;
	background-image: url('/common/images/ansin-panda/nikukyu.png');
	background-position: top;
	background-repeat: no-repeat;
	background-size: contain;
}

.panda-detail-body-data-item-value {
	display: grid;
	grid-template-columns: 1.2rem 1fr;
	gap: 0.5rem;
	padding: 0.5rem;
	background-color: var(--color-background-primary);
	border-radius: var(--border-radius-text);
}

.panda-detail-body-data-item-value::before {
	content: '';
	display: block;
	margin-top: 0.3rem;
	background-image: url('/common/images/ansin-panda/face.png');
	background-position: top;
	background-repeat: no-repeat;
	background-size: contain;
}

.panda-detail-body-message {
	display: flex;
	align-items: center;
	justify-content: center;
}

.panda-detail-body-message-bubble {
	position: relative;
	padding: 1rem;
	margin-right: 0.5rem;
	background-color: var(--color-background-primary);
	border-radius: var(--border-radius-text);
}

.panda-detail-body-message-img {
	width: 20%;
	min-width: 3rem;
}

.panda-tvcm {
	background-color: var(--color-background-primary);
}
