/**
 * Materials (資料ダウンロード) archive + single + thanks
 */

/* -------------------------------------------------------------------------- */
/* Shared download button
/* -------------------------------------------------------------------------- */

.c-mat-dl-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 48px;
	padding: 12px 4px 12px 12px;
	border: 1px solid var(--color-main-dark, #333);
	border-radius: 37px;
	background: #fff;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.c-mat-dl-btn:hover,
.c-mat-dl-btn:focus-visible,
.c-mat-feature-card:hover .c-mat-dl-btn,
.c-mat-feature-card:focus-visible .c-mat-dl-btn,
.c-mat-card:hover .c-mat-dl-btn,
.c-mat-card:focus-visible .c-mat-dl-btn {
	border-color: var(--color-primary, #af322c);
	color: var(--color-primary, #af322c);
	text-decoration: none;
}

.c-mat-dl-btn__icon,
.c-mat-dl-btn__spacer {
	display: block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.c-mat-dl-btn__icon {
	background: currentColor;
	mask: url("../img/common/icon-download.svg") center / 16px 16px no-repeat;
	-webkit-mask: url("../img/common/icon-download.svg") center / 16px 16px no-repeat;
}

.c-mat-dl-btn__label {
	flex: 1;
	text-align: center;
}

.c-mat-back-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 202px;
	height: 48px;
	padding: 0 4px 0 12px;
	border: 1px solid #333;
	border-radius: 37px;
	background: #fff;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.c-mat-back-btn:hover,
.c-mat-back-btn:focus-visible {
	background: var(--color-main-dark, #333);
	color: #fff;
	text-decoration: none;
}

.c-mat-back-btn__icon,
.c-mat-back-btn__spacer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.c-mat-back-btn__chevron {
	width: 0.55em;
	height: 0.9em;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	transform: scaleX(-1);
}

.c-mat-back-btn__label {
	flex: 1 1 auto;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Featured carousel — Figma 515:14059 / Card 515:14063 (PC)
/* -------------------------------------------------------------------------- */

.c-mat-featured {
	box-sizing: border-box;
	width: 100%;
	padding: 48px 40px;
	background: #fff;
	border-bottom: 1px solid #d9d9d9;
}

.c-mat-featured__inner {
	box-sizing: border-box;
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.c-mat-featured__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-primary, #af322c);
	text-align: center;
}

/* PC: [chevron] [card] [chevron] / dots below — Figma Frame 116121 */
.c-mat-carousel {
	box-sizing: border-box;
	width: 100%;
	display: grid;
	grid-template-columns: 40px minmax(0, 1120px) 40px;
	grid-template-rows: auto auto;
	column-gap: 20px;
	row-gap: 20px;
	align-items: center;
	justify-content: center;
}

.c-mat-carousel__viewport {
	grid-column: 2;
	grid-row: 1;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.c-mat-carousel__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	will-change: transform;
	transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.c-mat-carousel.is-instant .c-mat-carousel__track {
	transition: none;
}

.c-mat-carousel__slide {
	box-sizing: border-box;
	flex: 0 0 100%;
	min-width: 0;
	width: 100%;
}

.c-mat-carousel__slide:not([data-carousel-slide]) {
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.c-mat-carousel__track,
	.c-mat-feature-card,
	.c-mat-feature-card__title,
	.c-mat-card,
	.c-mat-card__title {
		transition: none;
	}
}

/* Featured card — Figma 515:14063 */
.c-mat-feature-card {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	width: 100%;
	padding: 24px 32px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease;
}

.c-mat-feature-card:hover,
.c-mat-feature-card:focus-visible {
	background: #faf5f6;
	border-color: #af322c;
	color: inherit;
	text-decoration: none;
}

.c-mat-feature-card__media {
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 568 / 315;
	background: #e4e4e4;
}

.c-mat-feature-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-mat-feature-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 240px;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
}

.c-mat-feature-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 32px;
	min-width: 0;
}

.c-mat-feature-card__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.c-mat-feature-card__cat {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-primary, #af322c);
}

.c-mat-feature-card__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-main-dark, #333);
	transition: color 0.3s ease;
}

.c-mat-feature-card:hover .c-mat-feature-card__title,
.c-mat-feature-card:focus-visible .c-mat-feature-card__title {
	color: #af322c;
}

.c-mat-feature-card__desc {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-gray, #838586);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.c-mat-feature-card .c-mat-dl-btn {
	min-width: 170px;
	height: 48px;
	min-height: 48px;
	padding: 0 4px 0 12px;
}

/* Carousel chevrons — same assets / layout as works */
.c-mat-carousel__nav {
	box-sizing: border-box;
	grid-row: 1;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 40px 40px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.c-mat-carousel__nav:hover,
.c-mat-carousel__nav:focus-visible {
	opacity: 0.75;
}

.c-mat-carousel__nav--prev {
	grid-column: 1;
	background-image: url("../img/common/carousel-chevron-prev.svg");
}

.c-mat-carousel__nav--next {
	grid-column: 3;
	background-image: url("../img/common/carousel-chevron-next.svg");
}

.c-mat-carousel__dots {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	justify-content: center;
	gap: 12px;
}

.c-mat-carousel__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #b6b6b6;
	cursor: pointer;
}

.c-mat-carousel__dot.is-active {
	background: var(--color-primary, #af322c);
}

/* -------------------------------------------------------------------------- */
/* Archive toolbar + flat grid — Figma 485:12784 / 485:13174
/* -------------------------------------------------------------------------- */

.c-mat-archive {
	box-sizing: border-box;
	width: 100%;
	padding: 80px 120px;
	background: #fff;
}

.c-mat-archive__inner {
	box-sizing: border-box;
	max-width: 1120px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.c-mat-toolbar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	width: 100%;
}

.c-mat-toolbar__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.c-mat-toolbar__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 148px;
	height: 40px;
	padding: 0 24px;
	white-space: nowrap;
	border: 1px solid #d9d9d9;
	border-radius: 56px;
	background: #fff;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.c-mat-toolbar__pill:hover,
.c-mat-toolbar__pill:focus-visible {
	border-color: var(--color-main-dark, #333);
	color: var(--color-main-dark, #333);
	text-decoration: none;
}

.c-mat-toolbar__pill.is-active {
	border-color: var(--color-main-dark, #333);
	background: var(--color-main-dark, #333);
	color: #fff;
}

.c-mat-toolbar__cat {
	display: none;
	width: 100%;
}

.c-mat-toolbar__sort {
	display: block;
	width: 160px;
	max-width: 100%;
	flex-shrink: 0;
	margin: 0;
}

.c-mat-toolbar__sort label {
	display: block;
	margin: 0;
}

.c-mat-toolbar__cat select,
.c-mat-toolbar__sort select {
	box-sizing: border-box;
	width: 100%;
	min-height: 41px;
	padding: 8px 36px 8px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E")
		right 12px center / 12px no-repeat;
	appearance: none;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-groups {
	display: flex;
	flex-direction: column;
	gap: 64px;
}

.c-mat-group {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.c-mat-group__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(36 * 100vw / 410), 36px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-primary, #af322c);
}

.c-mat-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.c-mat-archive__empty {
	margin: 0;
	color: var(--color-gray, #838586);
	text-align: center;
}

/* Load more — Figma 1260:51027 (PC) / 1260:51097 (SP) */
.c-mat-archive__more {
	display: flex;
	justify-content: center;
}

.c-mat-archive__more[hidden] {
	display: none;
}

@keyframes tokumori-load-enter {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.c-mat-grid > .is-load-enter {
	animation: tokumori-load-enter 0.45s ease both;
	animation-delay: var(--load-enter-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.c-mat-grid > .is-load-enter {
		animation: none;
	}
}

.c-mat-more {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 202px;
	height: 48px;
	padding: 0 4px 0 12px;
	border: 1px solid #333;
	border-radius: 37px;
	background: #fff;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.c-mat-more:hover {
	background: #fafafa;
}

.c-mat-more:disabled,
.c-mat-more.is-loading {
	opacity: 0.6;
	cursor: wait;
}

.c-mat-more__icon,
.c-mat-more__spacer {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.c-mat-more__icon {
	font-size: clamp(10px, calc(20 * 100vw / 410), 20px);
	line-height: 1;
	font-weight: 400;
}

.c-mat-more__label {
	flex: 1 1 auto;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Card
/* -------------------------------------------------------------------------- */

.c-mat-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	padding: 20px;
	border: 1px solid #cfcece;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease;
}

.c-mat-card:hover,
.c-mat-card:focus-visible {
	background: #faf5f6;
	border-color: #af322c;
	color: inherit;
	text-decoration: none;
}

.c-mat-card__media {
	margin: 0;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 346 / 200;
	background: #eee;
}

.c-mat-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.c-mat-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
}

.c-mat-card__body {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	min-width: 0;
}

.c-mat-card__cat {
	margin: 0;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-primary, #af322c);
}

.c-mat-card__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: color 0.3s ease;
}

.c-mat-card:hover .c-mat-card__title,
.c-mat-card:focus-visible .c-mat-card__title {
	color: #af322c;
}

.c-mat-card__desc {
	margin: 0;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-gray, #838586);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.c-mat-card__action {
	display: flex;
	justify-content: center;
}

.c-mat-card .c-mat-dl-btn {
	width: auto;
	min-width: 170px;
}

/* TOP logo marquee — same as home `.p-home-logos` */
.p-home-logos {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	box-sizing: border-box;
	height: auto;
	min-height: 0;
	padding: 32px 0;
	overflow: hidden;
	background: #fff;
	border-top: 1px solid #d9d9d9;
	border-bottom: 1px solid #d9d9d9;
}

.p-home-logos--titled {
	gap: 24px;
	padding-top: 40px;
}

.p-home-logos__title {
	margin: 0;
	padding: 0 24px;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(24 * 100vw / 410), 24px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	text-align: center;
	color: var(--color-main-dark, #333);
}

.p-home-logos__track {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: max-content;
	gap: 40px;
	will-change: transform;
}

.p-home-logos__set {
	display: flex;
	flex-direction: row;
	align-items: center;
	flex-shrink: 0;
	gap: 40px;
}

.p-home-logos__track--upper {
	animation: p-home-marquee var(--logo-marquee-duration, 40s) linear infinite;
}

.p-home-logos__track img {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: 72px;
	max-height: 72px;
	max-width: none;
	object-fit: contain;
}

.p-home-logos__track--lower {
	animation: p-home-marquee-ltr var(--logo-marquee-duration, 40s) linear infinite;
}

@keyframes p-home-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-1 * var(--logo-marquee-shift, 50%)));
	}
}

@keyframes p-home-marquee-ltr {
	from {
		transform: translateX(calc(-1 * var(--logo-marquee-shift, 50%)));
	}

	to {
		transform: translateX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.p-home-logos__track {
		animation-play-state: paused;
	}
}

/* -------------------------------------------------------------------------- */
/* Single hero
/* -------------------------------------------------------------------------- */

/* Hero — Figma 1260:51488 */
.c-mat-hero {
	box-sizing: border-box;
	width: 100%;
	padding: 48px 100px;
	background: #f7f6f6;
}

.c-mat-hero__inner {
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 624px) minmax(0, 560px);
	grid-template-areas: "copy media";
	gap: 56px;
	align-items: center;
	justify-content: space-between;
}

.c-mat-hero__copy {
	grid-area: copy;
	display: flex;
	flex-direction: column;
	gap: 32px;
	min-width: 0;
}

.c-mat-hero__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(40 * 100vw / 410), 40px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-primary, #af322c);
}

.c-mat-hero__lead {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-hero__media {
	grid-area: media;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	width: 100%;
	aspect-ratio: 560 / 320;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
}

.c-mat-hero__media img,
.c-mat-hero__thumb {
	display: block;
	width: auto;
	height: auto;
	max-width: 81%;
	max-height: 81%;
	object-fit: contain;
}

.c-mat-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 200px;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	font-weight: 700;
	letter-spacing: 1.2px;
}

/* -------------------------------------------------------------------------- */
/* Detail 2-col + form — Figma 1260:51488 / 1260:51581 */
.c-mat-detail {
	box-sizing: border-box;
	width: 100%;
	padding: 80px 100px;
	background: #fff;
}

.c-mat-detail__inner {
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 440px) minmax(0, 744px);
	gap: 56px;
	align-items: start;
	justify-content: space-between;
}

.c-mat-detail__inner--form-only {
	grid-template-columns: minmax(0, 880px);
	justify-content: center;
}

.c-mat-sidebar {
	box-sizing: border-box;
	padding: 24px;
	border: 0;
	border-radius: 8px;
	background: #f7f6f6;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.c-mat-sidebar__block {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.c-mat-sidebar__rule {
	box-sizing: border-box;
	width: 100%;
	height: 0;
	margin: 0;
	border: 0;
	border-top: 1px solid #d9d9d9;
}

.c-mat-sidebar__title {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(24 * 100vw / 410), 24px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-main-dark, #333);
}

.c-mat-points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.c-mat-points li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-points__icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.2 10.4l3.4 3.4 8.2-8.2' stroke='%23af322c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.c-mat-previews {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.c-mat-previews li {
	width: 100%;
	max-width: 280px;
}

.c-mat-previews img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 280 / 160;
	object-fit: cover;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8.5px 25.6px -8.5px rgba(0, 0, 0, 0.08);
}

.c-mat-form {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	max-width: 880px;
}

.c-mat-form__fields {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.c-mat-form__field {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	column-gap: 64px;
	align-items: center;
}

.c-mat-form__field--tel {
	align-items: start;
}

.c-mat-form__field--tel .c-mat-form__label {
	min-height: 41px;
}

.c-mat-form__label {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	max-width: 100%;
	white-space: nowrap;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__br {
	display: none;
}

.c-mat-form__req {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	min-width: 40px;
	height: 20px;
	padding: 0 8px;
	border: 1px solid var(--color-primary, #af322c);
	border-radius: 56px;
	background: #fff;
	color: var(--color-primary, #af322c);
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(12 * 100vw / 410), 12px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0;
	white-space: nowrap;
}

.c-mat-form__control {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	width: 100%;
}

.c-mat-form__input,
.c-mat-form__select {
	box-sizing: border-box;
	width: 100%;
	height: 41px;
	padding: 8px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__input--tel {
	width: 200px;
	max-width: 100%;
}

.c-mat-form__input::placeholder {
	color: var(--color-gray, #838586);
	opacity: 1;
}

.c-mat-form__select:required:invalid {
	color: var(--color-gray, #838586);
}

.c-mat-form__select option {
	color: var(--color-main-dark, #333);
}

.c-mat-form__input:focus,
.c-mat-form__select:focus {
	outline: 2px solid rgba(175, 50, 44, 0.25);
	border-color: var(--color-primary, #af322c);
}

.c-mat-form__input--error,
.c-mat-form__select--error,
.c-mat-form__field.is-invalid .c-mat-form__input,
.c-mat-form__field.is-invalid .c-mat-form__select {
	border-color: var(--color-primary, #af322c);
	background: #fff8f7;
}

.c-mat-form__error {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-primary, #af322c);
}

.c-mat-form__error[hidden] {
	display: none;
}

.c-mat-form__error--agree {
	text-align: center;
}

.c-mat-form__agree-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.c-mat-form__agree-wrap.is-invalid .c-mat-form__agree {
	color: var(--color-primary, #af322c);
}

.c-mat-form__select {
	padding-right: 40px;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
}

.c-mat-form__hint {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-gray, #838586);
}

.c-mat-form__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	min-inline-size: 0;
}

.c-mat-form__legend {
	display: block;
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__checks {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 16px 32px;
}

.c-mat-form__checks--challenge {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.c-mat-form__checks--status {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 40px;
	row-gap: 16px;
}

.c-mat-form__check {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
	cursor: pointer;
}

.c-mat-form__check input {
	appearance: none;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.c-mat-form__check input:checked {
	border-color: var(--color-primary, #af322c);
	background-color: var(--color-primary, #af322c);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.2l3.2 3.2 7.8-7.8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}

.c-mat-form__check input:focus-visible {
	outline: 2px solid rgba(175, 50, 44, 0.35);
	outline-offset: 2px;
}

.c-mat-form__other {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 16px;
	width: 100%;
}

.c-mat-form__other[hidden] {
	display: none;
}

.c-mat-form__other-label {
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 72px;
	padding: 8px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	background: #fff;
	resize: vertical;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__textarea::placeholder {
	color: var(--color-gray, #838586);
	opacity: 1;
}

.c-mat-form__textarea:focus {
	outline: 2px solid rgba(175, 50, 44, 0.25);
	border-color: var(--color-primary, #af322c);
}

.c-mat-form__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.c-mat-form__footer .c-form-policy {
	align-self: stretch;
}

.c-mat-form__agree {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-form__agree input {
	appearance: none;
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
}

.c-mat-form__agree input:checked {
	border-color: var(--color-primary, #af322c);
	background-color: var(--color-primary, #af322c);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6.5 12.2l3.2 3.2 7.8-7.8' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
}

.c-mat-form__agree input:focus-visible {
	outline: 2px solid rgba(175, 50, 44, 0.35);
	outline-offset: 2px;
}

.c-mat-form__agree a {
	color: #4a63f1;
	text-decoration: none;
	box-shadow: inset 0 -1px 0 transparent;
	transition: box-shadow 0.25s ease;
}

.c-mat-form__agree a:hover,
.c-mat-form__agree a:focus-visible {
	color: #4a63f1;
	box-shadow: inset 0 -1px 0 currentColor;
}

.c-mat-form__submit {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: auto;
	min-width: 220px;
	height: 56px;
	padding: 0 16px 0 4px;
	border: 0;
	border-radius: 37px;
	background: var(--color-primary, #af322c);
	color: #fff;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	white-space: nowrap;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.c-mat-form__submit:hover,
.c-mat-form__submit:focus-visible {
	opacity: 0.9;
}

.c-mat-form__submit:disabled,
.c-mat-form__submit[aria-disabled='true'] {
	opacity: 0.4;
	cursor: not-allowed;
}

.c-mat-form__submit:disabled:hover,
.c-mat-form__submit:disabled:focus-visible,
.c-mat-form__submit[aria-disabled='true']:hover,
.c-mat-form__submit[aria-disabled='true']:focus-visible {
	opacity: 0.4;
}

.c-mat-form__submit-spacer,
.c-mat-form__submit-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.c-mat-form__submit-label {
	flex: 0 1 auto;
	padding: 0 8px;
	text-align: center;
	white-space: nowrap;
}

.c-mat-form__submit-chevron {
	width: 0.55em;
	height: 0.9em;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	color: #fff;
}

.c-mat-form__submit.is-sending {
	opacity: 0.7;
	pointer-events: none;
}

.c-mat-form-wrap {
	position: relative;
}

.c-mat-form__send-error {
	margin: 12px 0 0;
	font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	font-weight: 700;
	line-height: 1.8;
	color: var(--color-primary, #af322c);
}

.c-mat-form__send-error[hidden] {
	display: none;
}

.c-mat-cf7-mount {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Section gap 80 → line → gap 24 → button (Figma 515:14955) */
.c-mat-detail__back {
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 80px auto 0;
	padding-top: 24px;
	border-top: 1px solid #d9d9d9;
	display: flex;
	justify-content: center;
}

/* -------------------------------------------------------------------------- */
/* Thanks — Figma 1260:51064 / 1260:51135 */
.c-mat-thanks {
	box-sizing: border-box;
	width: 100%;
	padding: 80px 280px;
	background: #fff;
}

.c-mat-thanks__inner {
	box-sizing: border-box;
	position: relative;
	max-width: 880px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 48px;
	text-align: center;
}

.c-mat-thanks__title {
	margin: 0;
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(40 * 100vw / 410), 40px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.6;
	color: var(--color-main-dark, #333);
}

.c-mat-thanks__text {
	margin: 0;
	font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	font-weight: 400;
	letter-spacing: 1.2px;
	line-height: 1.8;
	color: var(--color-main-dark, #333);
}

.c-mat-thanks__br {
	display: inline;
}

.c-mat-thanks__file {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.c-mat-thanks__home {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 270px;
	height: 61px;
	padding: 16px 20px;
	border: 1px solid #333;
	border-radius: 37px;
	background: #fff;
	color: var(--color-main-dark, #333);
	font-family: var(--tokumori-font-display);
	font-size: clamp(10px, calc(16 * 100vw / 410), 16px);
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.8;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.c-mat-thanks__home:hover,
.c-mat-thanks__home:focus-visible {
	background: var(--color-main-dark, #333);
	color: #fff;
	text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* Responsive
/* -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.c-mat-archive {
		padding: 40px 16px;
	}

	.c-mat-archive__inner {
		gap: 40px;
	}

	.c-mat-toolbar {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 16px;
	}

	.c-mat-toolbar__pills {
		display: none;
	}

	.c-mat-toolbar__cat,
	.c-mat-toolbar__sort {
		display: block;
		width: 100%;
	}

	.c-mat-groups {
		gap: 40px;
	}

	.c-mat-group__title {
		font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	}

	.c-mat-hero {
		padding: 40px 16px;
	}

	.p-home-logos {
		height: auto;
		min-height: 0;
		padding: 16px 0;
	}

	.p-home-logos--titled {
		gap: 16px;
		padding-top: 24px;
	}

	.p-home-logos__title {
		padding: 0 16px;
		font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	}

	.p-home-logos__track,
	.p-home-logos__set {
		gap: 24px;
	}

	.p-home-logos__track img {
		width: auto;
		height: 52px;
		max-height: 52px;
	}

	.c-mat-hero__inner {
		grid-template-columns: 1fr;
		grid-template-areas:
			"media"
			"copy";
		gap: 24px;
		justify-content: stretch;
	}

	.c-mat-hero__copy {
		gap: 16px;
	}

	.c-mat-hero__title {
		font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	}

	.c-mat-hero__lead {
		font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	}

	.c-mat-hero__media {
		aspect-ratio: 343 / 196;
	}

	.c-mat-detail {
		padding: 40px 16px;
	}

	.c-mat-detail__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.c-mat-detail__back {
		margin-top: 40px;
		padding-top: 40px;
	}

	.c-mat-sidebar {
		padding: 24px 16px;
	}

	.c-mat-sidebar__title {
		font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
	}

	.c-mat-previews li,
	.c-mat-previews img {
		max-width: none;
	}

	.c-mat-previews img {
		aspect-ratio: 311 / 178;
		box-shadow: 0 8.5px 25.6px -8.5px rgba(0, 0, 0, 0.08);
	}

	.c-mat-form {
		max-width: none;
	}

	.c-mat-form__footer .c-form-policy {
		width: calc(100% + 32px);
		max-width: none;
		margin-left: -16px;
		margin-right: -16px;
		border-radius: 0;
		border-left: 0;
		border-right: 0;
	}

	.c-mat-form__field {
		grid-template-columns: 1fr;
		row-gap: 8px;
		align-items: stretch;
	}

	.c-mat-form__field--tel {
		align-items: stretch;
	}

	.c-mat-form__field--tel .c-mat-form__label {
		min-height: 0;
	}

	.c-mat-form__label {
		white-space: nowrap;
	}

	.c-mat-form__input--tel {
		width: 200px;
	}

	.c-mat-form__checks--challenge,
	.c-mat-form__checks--status {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.c-mat-form__br {
		display: inline;
	}

	.c-mat-back-btn {
		width: 100%;
		max-width: 343px;
	}

	.c-mat-thanks {
		padding: 40px 16px;
	}

	.c-mat-thanks__inner {
		gap: 40px;
	}

	.c-mat-thanks__title {
		font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	}

	.c-mat-thanks__text {
		font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
	}

	.c-mat-thanks__home {
		width: 100%;
		max-width: 270px;
	}

	.c-mat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.c-mat-featured {
		padding: 32px 16px;
	}

	.c-mat-featured__inner {
		gap: 16px;
	}

	.c-mat-feature-card {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 20px;
		border-color: #cfcece;
	}

	.c-mat-feature-card__body {
		align-items: stretch;
		gap: 16px;
	}

	.c-mat-feature-card__content {
		gap: 0;
	}

	.c-mat-feature-card__cat {
		font-size: clamp(10px, calc(14 * 100vw / 410), 14px);
		line-height: 1.8;
	}

	.c-mat-feature-card__title {
		font-size: clamp(10px, calc(18 * 100vw / 410), 18px);
		line-height: 1.8;
	}

	.c-mat-feature-card__desc {
		-webkit-line-clamp: 3;
	}

	.c-mat-feature-card__media {
		aspect-ratio: 303 / 200;
		border-radius: 10px;
	}

	.c-mat-feature-card .c-mat-dl-btn {
		align-self: center;
	}

	.c-mat-carousel {
		grid-template-columns: 40px minmax(0, 1fr) 40px;
		column-gap: 16px;
		row-gap: 16px;
	}

	.c-mat-carousel__viewport {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.c-mat-carousel__nav--prev,
	.c-mat-carousel__nav--next {
		grid-row: 2;
	}

	.c-mat-carousel__dots {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
	}
}

@media (max-width: 767px) {
	.c-mat-featured__title {
		font-size: clamp(10px, calc(28 * 100vw / 410), 28px);
	}

	.c-mat-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}
