
.category-hero {
	position: relative;
	height: 343px;
	background: url("/beautytechnologylab/images/pore/hero-surface.webp") center / cover no-repeat;
}

.category-hero__title {
	position: absolute;
	/* top: 122px; */
	left: max(40px, calc((100vw - 1280px) / 2));
	bottom: 60px;
	margin: 0;
}

.category-hero__title-en {
	display: block;
	font-family: var(--font-en);
	font-size: 56px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

.category-hero__title-ja {
	display: block;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.category-intro {
	width: min(800px, calc(100% - 48px));
	margin: 0 auto;
	padding: 60px 59px 80px;
}

.category-intro h2 {
	margin: 0 0 24px;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.8;
	letter-spacing: 0.04em;
}

.category-intro__body {
	font-size: 18px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.06em;
}

.category-intro__body p {
	margin: 0 0 20px;
}

.category-intro__body p:last-child {
	margin-bottom: 0;
}

.category-contents {
	width: min(960px, calc(100% - 48px));
	margin: 0 auto;
	padding-bottom: 60px;
}

.category-contents__heading,
.category-related__heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 0;
	margin-bottom: 20px;
}

.category-contents__heading-en,
.category-related__heading-en {
	display: block;
	margin: 0;
	font-family: var(--font-en);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.04em;
}

.category-contents__heading-en > span,
.category-related__heading-en > span {
	color: var(--green);
}

.category-contents__heading-ja,
.category-related__heading-ja {
	display: block;
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	letter-spacing: 0.03em;
}

.category-contents__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.category-contents__card {
	display: flex;
	min-height: 136px;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	transition: border-color 300ms ease, background 300ms ease;
}

.category-contents__card:hover {
	border-color: var(--green-bright);
	background: var(--green-bright);

	.round-arrow {
		background: black;
	}
}

.category-contents__image {
	width: 100px;
	height: 100px;
	flex: 0 0 auto;
	border-radius: 4px;
	object-fit: cover;
}

.category-contents__text {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	align-self: stretch;
}

.category-contents__meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: var(--font-en);
	font-size: 16px;
	line-height: 1.5;
}

.category-new {
	padding: 1px 3px;
	background: var(--red);
	color: #fff;
	font-family: var(--font-jp);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
}

.category-contents__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.03em;
}

.category-contents__text .round-arrow {
	width: 30px;
	height: 30px;
	align-self: flex-end;
	margin-top: auto;
	transition: background 300ms ease;
}

.category-contents__text .round-arrow__icon img,
.category-contents__text .round-arrow__sizer img {
	width: 13.5px;
	height: 13.5px;
	transform: rotate(90deg);
}

.category-article-list {
	padding: 60px 24px 80px;
	background: var(--soft-gray);
}

.category-chapter {
	width: min(960px, 100%);
	margin: 0 auto 16px;
	padding: 48px 80px;
	background: #fff;
}

.category-chapter:last-of-type {
	margin-bottom: 0;
}

.category-chapter__heading {
	display: flex;
	min-height: 74px;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
}

.category-chapter__heading > span {
	align-self: stretch;
	display: flex;
	align-items: center;
	padding-right: 20px;
	border-right: 1px solid var(--muted);
	color: var(--green);
	font-family: var(--font-en);
	font-size: 28px;
	line-height: 1.5;
}

.category-chapter__heading h2 {
	margin: 0;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.06em;
}

.category-chapter__content {
	width: min(800px, 100%);
	margin: 0 auto;
}

.category-dialogue {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-bottom: 20px;
}

.speech-line {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	align-items: start;
	gap: 15px;
	padding-bottom: 30px;
}

.speech-line--visitor {
	grid-template-columns: minmax(0, 1fr) 112px;
}

.speech-speaker {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	line-height: 1.3;
	white-space: nowrap;
}

.speech-avatar {
	position: relative;
	width: 60px;
	height: 60px;
}


.speech-message {
	position: relative;
	grid-column: 2;
	width: fit-content;
	max-width: 589px;
	min-height: 60px;
	padding: 16px;
	border-radius: 8px;
	background: var(--green-light);
	z-index: 2;
}

.speech-line--visitor .speech-message {
	grid-column: 1;
	justify-self: end;
	background: var(--soft-gray);
}

.speech-message--emphasis {
	background: var(--green);
	color: #fff;
}

.speech-message__tail {
	position: absolute;
	width: 12px;
	height: 10px;
	top: 24px;
}

.speech-line--researcher .speech-message__tail {
	left: -9px;
}

.speech-line--visitor .speech-message__tail {
	right: -9px;
}

.speech-message__content > p {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: 0.03em;
}

.speech-message--emphasis .speech-message__content > p {
	font-weight: 500;
}

.speech-media {
	position: relative;
	display: block;
	margin-top: 12px;
}
.speech-media__img {
	background: white;
	margin: 0 auto;
	width: var(--width);
	max-width: 100%;
}

.speech-media > img {
	width: 100%;
}

.image-zoom {
	position: absolute;
	right: 0;
	bottom: 0;
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--green);
	cursor: pointer;

	
}

.image-zoom img {
	width: 16px;
	height: 16px;
}

.category-figure {
	margin: 0;
	background: var(--soft-gray);
}

.category-figure figcaption {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.03em;
	text-align: center;
}

.category-figure--comparison {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 20px 24px;
}

.category-figure--comparison figure {
	position: relative;
	display: flex;
	width: 260px;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.category-figure--comparison figcaption {
	background: transparent;
}

.category-figure--comparison figure > img {
	width: 260px;
	height: 260px;
	object-fit: contain;
	background: #fff;
}

.category-diagram-label {
	position: absolute;
	z-index: 1;
	top: 44px;
	display: grid;
	justify-items: center;
	padding: 6px 8px;
	border-radius: 4px;
	background: var(--green);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.category-diagram-label img {
	position: absolute;
	top: 100%;
	width: 11.14px;
	height: 11.14px;
	transform: rotate(180deg) translateY(3.71px);
}

.category-figure--duct {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 40px;
}

.category-figure--duct img {
	width: var(--width);
	object-fit: contain;
}

.category-figure--ingredients {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 20px 24px;
}

.category-figure--ingredients > div {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.category-figure--ingredients > div > img {
	width: 280px;
	object-fit: contain;
}

.category-figure--photo {
	display: block;
	width: min(622px, 100%);
	height: 280px;
	margin: 0 auto;
	object-fit: cover;
}

.category-chapter__copy {
	padding-top: 30px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	letter-spacing: 0.03em;
}

.category-chapter__copy p {
	margin: 0 0 16px;
}

.category-chapter__copy p:last-child {
	margin-bottom: 0;
}

.category-video {
	position: relative;
	width: min(700px, 100%);
	aspect-ratio: 16 / 9;
	margin: 30px auto 0;
	background: #000;
	overflow: hidden;
	height: auto;
	min-height: 394px;
}

.category-more {
	display: flex;
	width: min(580px, 100%);
	min-height: 162px;
	align-items: center;
	gap: 16px;
	margin: 40px auto 0;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	transition: border-color 300ms ease, background 300ms ease;
}

.category-more:hover {
	border-color: var(--green-bright);
	background: var(--green-bright);

	.round-arrow {
		background: black;
	}
}

.category-more__image {
	width: 120px;
	height: 120px;
	flex: 0 0 auto;
	border-radius: 4px;
	background: var(--soft-gray);
	object-fit: cover;
}

.category-more__body,
.category-more__body > span:first-child {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
}

.category-more__body {
	align-self: stretch;
	justify-content: space-between;
}

.category-more__badge {
	width: fit-content;
	padding: 4px 6px;
	border-radius: 4px;
	background: #000;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.category-more__title {
	margin-top: 6px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.04em;
}

.category-more__action {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	font-size: 16px;
	line-height: 1.3;
}

.category-more__action .round-arrow {
	width: 30px;
	height: 30px;
}

.category-more__action .round-arrow img {
	width: 10.88px;
	height: 9.21px;
}

.category-references {
	width: min(800px, 100%);
	margin: 60px auto 0;
}

.category-references h2 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

.category-references ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.category-references a {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: var(--gray, #CCC);
	transition: 300ms text-decoration-color;

	&:hover {
		text-decoration-color: black;
	}
}

.category-references a img {
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
}

.category-related {
	padding: 80px 24px 120px;
}

.category-related__heading {
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 40px;
}

.category-related__heading-en {
	font-size: 40px;
}

.category-related__grid {
	width: min(1080px, 100%);
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15px;
	margin: 0 auto;
}

.category-related .technology-card {
	padding: 15px 15px 18px;
}

.category-related .technology-card__image {
	aspect-ratio: 229 / 194;
}

.category-related .technology-card__body {
	min-height: 190px;
	padding: 10px 3px 0;
}

.category-related .technology-card h3 {
	font-size: 20px;
	line-height: 1.5;
}

.category-related .technology-card__label,
.category-related .technology-card__copy {
	font-size: 14px;
	line-height: 1.65;
}

.category-related .technology-card__label {
	margin: 0 0 6px;
}

.category-related .text-link {
	padding-top: 12px;
	font-size: 16px;
}

.image-dialog {
	position: fixed;
	inset: 0;
	display: none;
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
	background: transparent;
}

.image-dialog[open] {
	display: flex;
}

.image-dialog::backdrop {
	background: rgb(116 116 116 / 80%);
}

.image-dialog form {
	position: static;
	flex: 0 0 auto;
}

.image-dialog__panel {
	width: min(960px, calc(100vw - 40px));
	max-height: calc(100dvh - 140px);
	flex: 0 1 auto;
	padding: 10px;
	background: #fff;
}

.image-dialog__close {
	display: flex;
	width: 119px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 14px 8px 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.3;
	letter-spacing: 0.03em;
}

.image-dialog__close > span:first-child {
	white-space: nowrap;
	flex: 1;
	color: black;
}

.image-dialog__close-icon {
	display: grid;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: var(--green);
}

.image-dialog__close-icon img {
	width: 13.5px;
	height: 13.5px;
}

.image-dialog__panel > img {
	width: 100%;
	 aspect-ratio: 804.6127 / 297.0826;
	max-height: calc(100dvh - 160px);
	object-fit: contain;
}

@media (max-width: 1000px) {
	.category-related__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.category-chapter {
		padding-right: 48px;
		padding-left: 48px;
	}
}

@media (max-width: 680px) {
	.category-hero {
		height: 211px;
		background-position: center;
	}

	.category-hero__title {
		bottom: 30px;
		left: 20px;
	}

	.category-hero__title-en {
		font-size: 28px;
	}

	.category-hero__title-ja {
		font-size: 14px;
	}

	.category-intro {
		width: calc(100% - 64px);
		padding: 40px 0 56px;
	}

	.category-intro h2 {
		font-size: 20px;
		line-height: 1.6;
		margin-bottom: 24px;
	}

	.category-intro__body {
		font-size: 16px;
		font-weight: 300;
		line-height: 1.75;
		letter-spacing: 0.03em;
	}

	.category-contents {
		width: 100%;
		padding: 0 32px 56px;
	}

	.category-contents__heading {
		margin-bottom: 10px;
	}

	.category-contents__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.category-contents__card {
		min-height: 122px;
		gap: 12px;
		padding: 10px;
	}

	.category-contents__image {
		width: 100px;
		height: 100px;
	}

	.category-contents__title {
		font-size: 14px;
	}

	.category-article-list {
		padding: 60px 16px;
	}

	.category-chapter {
		width: 100%;
		margin-bottom: 40px;
		padding: 40px 0;
	}

	.category-chapter__heading {
		min-height: 84px;
		gap: 12px;
		margin-bottom: 0;
		padding: 0 16px;
		margin-bottom: 30px;
	}

	.category-chapter__heading > span {
		padding-right: 12px;
		font-size: 22px;
	}

	.category-chapter__heading h2 {
		font-size: 18px;
	}

	.category-chapter__content {
		width: 100%;
	}

	.category-dialogue {
		width: calc(100% - 32px);
		margin: 0 auto;
	}

	.category-contents__text .round-arrow img {
		display: flex;
		width: 11.7px;
		height: 11.7px;
		padding: 2.124px 0.244px 1.593px 0.244px;
		justify-content: center;
		align-items: center;
		flex-shrink: 0;
	}

	.category-figure figcaption {
		font-size: 14px;
		margin-bottom: 10px;
	}

	.speech-line,
	.speech-line--visitor {
		grid-template-columns: 73px minmax(0, 1fr);
		gap: 11px;
		padding-bottom: 40px;
	}

	.speech-line--visitor {
		grid-template-columns: minmax(0, 1fr) 73px;
	}

	.speech-avatar {
		width: 52px;
		height: 52px;
	}
	.speech-avatar + span {
		height: 0;
	}

	.speech-speaker {
		font-size: 12px;
		line-height: 1.5;
		white-space: normal;
		text-align: center;
	}

	.speech-message {
		max-width: 100%;
		min-height: 48px;
		padding: 12px;
	}

	.speech-message--single {
		padding: 18.5px 12px;
	}

	.speech-message__content > p {
		font-size: 14px;
		line-height: 1.65;
		letter-spacing: 0.03em;
	}

	.category-figure--comparison,
	.category-figure--duct,
	.category-figure--ingredients,
	.category-figure--photo {
		width: calc(100% - 32px);
		margin-right: auto;
		margin-left: auto;
	}

	.speech-media {
		width: 100%;
	}
	.speech-media__img {
		width: var(--sp-width);
	}

	.category-figure--comparison {
		gap: 10px;
		padding: 14px 10px;
	}

	.category-figure--comparison figure {
		width: calc(50% - 5px);
		gap: 6px;
		font-size: 11px;
	}

	.category-figure--comparison figure > img {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.category-diagram-label {
		top: 34px;
		padding: 4px;
		font-size: 9px;
	}

	.category-figure--duct,
	.category-figure--ingredients {
		padding: 20px;
	}

	.category-figure--ingredients > div {
		width: 100%;
		gap: 8px;
	}

	.category-figure--ingredients > div > img:not(.process-arrow) {
		width: calc((100% - 27px) / 2);
	}

	.category-figure--ingredients .process-arrow {
		width: 11px;
		height: 16px;
	}

	.category-figure--photo {
		height: auto;
		aspect-ratio: 311 / 140;
	}

	.category-chapter__copy {
		width: calc(100% - 32px);
		margin-right: auto;
		margin-left: auto;
		padding-top: 20px;
		font-size: 14px;
		font-weight: 300;
		line-height: 1.65;
		letter-spacing: 0.03em;
	}

	.category-video {
		position: relative;
		width: calc(100% - 32px);
		aspect-ratio: 16 / 9;
		margin-right: auto;
		margin-left: auto;
		margin-top: 20px;
		background: #000;
		border-radius: 8px;
		overflow: hidden;
		height: auto;
		min-height: auto;
	}

	.category-video iframe {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		border: none;
	}

	.category-more {
		width: calc(100% - 32px);
		min-height: 122px;
		gap: 10px;
		margin: 30px auto 0;
		padding: 10px;
	}

	.category-more__image {
		width: 100px;
		height: 100px;
	}

	.category-more__title {
		font-size: 14px;
	}

	.category-more__action {
		gap: 6px;
		font-size: 14px;
	}

	.category-more__action .round-arrow {
		width: 26px;
		height: 26px;
		img {
			width: 11.7px;
			height: 11.7px;
		}
	}

	.image-zoom {
		width: 24px;
		height: 24px;
		padding: 0;
		right: -5.33px;

		.image-zoom img {
			width: 10.8px;
			height: 10.8px;
		}
	}

	.category-references {
		margin-top: 40px;
	}

	.category-references h2 {
		font-size: 16px;
		line-height: 1.5;
	}

	.category-references ul {
		width: calc(100% - 32px);
		gap: 16px;
		margin: 0 auto;
	}

	.category-references a {
		font-size: 14px;
		line-height: 1.65;
		letter-spacing: 0.03em;
	}

	.category-related {
		padding: 60px 0 100px;
	}

	.category-related__heading {
		gap: 4px;
		margin-bottom: 30px;
	}

	.category-related__heading-en {
		font-size: 28px;
	}

	.category-related__grid {
		width: calc(100% - 32px);
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.category-related .technology-card {
		min-height: 211px;
		grid-template-columns: 120px minmax(0, 1fr);
		align-items: stretch;
		gap: 16px;
		padding: 10px;
	}

	.category-related .technology-card__image {
		width: 120px;
		height: 189px;
		aspect-ratio: auto;
	}

	.category-related .technology-card__body {
		min-height: 0;
		padding: 0;
	}

	.category-related .technology-card h3 {
		font-size: 20px;
	}

	.category-related .technology-card__label {
		font-size: 12px;
		margin-bottom: 10px;
	}

	.category-related .technology-card__copy {
		display: block;
		font-size: 14px;
		font-weight: 300;
		line-height: 1.65;
	}

	.category-related .text-link {
		padding-top: 8px;
		font-size: 14px;
	}

	.image-dialog {
		position: fixed;
		top: 10px;
		left: 50%;
		display: none;
		width: min(376px, 100vw);
		height: min(670px, calc(100dvh - 20px));
		max-width: 100vw;
		max-height: calc(100dvh - 20px);
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 24px;
		margin: 0;
		padding: 20px;
		transform: translateX(-50%);
		border: 0;
		overflow: visible;
		background: transparent;
	}

	.image-dialog[open] {
		display: flex;
	}

	.image-dialog::backdrop {
		background: rgb(116 116 116 / 80%);
	}

	.image-dialog__panel {
		width: 100%;
		flex: 0 1 auto;
		padding: 7.5px 6px;
	}

	.image-dialog__panel > img {
		width: 100%;
		aspect-ratio: 804.6127 / 297.0826;
		max-height: calc(100dvh - 245px);
		object-fit: contain;
	}

	.image-dialog form {
		position: static;
		flex: 0 0 auto;
	}

	.image-dialog__close {
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 8px 12px 8px 14px;
		font-size: 14px;
		line-height: 1.3;
		letter-spacing: 0.03em;
		width: 101px;
	}

	.image-dialog__close-icon {
		display: grid;
		width: 26px;
		height: 26px;
		place-items: center;
		border-radius: 50%;
		background: var(--green);
	}

	.image-dialog__close-icon img {
		width: 11.7px;
		height: 11.7px;
	}
}
