/* -- reset --*/
:where(.document *, .document ::before, .document ::after) {
	box-sizing: border-box;
}


/* -- お届け資料 -- */

.document-materials {
	background-color: var(--color-background-secondary);
}

.document-materials-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.document-materials-description {
	margin-bottom: 1.5rem;
}

.document-materials-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.document-materials-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.document-materials-item-label {
	display: grid;
	place-content: center;
	position: relative;
	z-index: 1;
	margin-bottom: -1.5rem;
	margin-left: -0.8rem;
	width: 72px;
	height: 72px;
	background-color: var(--color-primary);
	color: var(--color-neutral-white);
	font-size: 0.8rem;
	font-weight: bold;
	border-radius: 50%;
	line-height: 1.2;
}

.document-materials-item-label::after {
	content: "";
	position: absolute;
	bottom: 2px;
	right: 2px;
	width: 14px;
	height: 14px;
	background-color: var(--color-primary);
	clip-path: polygon(70% 0, 0 70%, 100% 100%);
}

.document-materials-item-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 100%;
	background-color: var(--color-background-primary);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
}

.document-materials-item-header {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.document-materials-item-subtitle {
	font-weight: bold;
	font-size: 0.8rem;
	min-height: 1.2em;
	line-height: 1;
}

.document-materials-item-title {
	font-weight: bold;
	font-size: 1.2rem;
	min-height: 1.2em;
	line-height: 1;
}

.document-materials-item-image {
	max-width: 200px;
	aspect-ratio: 7 / 10;
}

.document-materials-item-text {
	min-height: 5em;
	line-height: 1.5em;
}

/* -- こんなお悩みはありませんか？ -- */

.document-concerns-title {
	font-size: var(--font-size-large);
	font-weight: bold;
	margin-top: 2rem;
	margin-bottom: 1.5rem;
}

.document-concerns-title-emphasis {
	font-size: 1.5em;
	font-weight: bold;
	background: linear-gradient(transparent 64%, var(--color-accent) 0%);
	padding: 0 0.15em;
}

.document-concerns-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.document-concerns-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.document-concerns-item-icon {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.document-concerns-item-text {
	font-weight: bold;
}

.document-concerns-description {
	margin-top: 2rem;
	line-height: 1.8;
}

/* -- 資料請求フォーム -- */

.document-form-section {
	background-color: var(--color-background-primary);
}

.document-form-section .contact-form {
	--contact-color-bg: var(--color-background-tertiary);
	--contact-color-input-bg: #fff;
	--contact-color-placeholder: #aaa;
	--contact-color-divider: #d0d0d0;
}

.document-form-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
}

/* -- ステップインジケーター -- */

.document-steps {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 3rem;
}

.document-steps-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	opacity: 0.4;
	position: relative;
}

.document-steps-item:not(:last-child) .document-steps-item-number::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 100%;
	width: 3rem;
	height: 3px;
	background-color: #ccc;
	transform: translateY(-50%);
}

.document-steps-item--active {
	opacity: 1;
}

.document-steps-item-label {
	font-size: 0.8rem;
	font-weight: bold;
}

.document-steps-item-number {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--color-primary);
	color: var(--color-neutral-white);
	font-weight: bold;
	font-size: 1rem;
}

.document-support-message {
	font-size: 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 0.5rem;
}

.document-support-message span {
	display: inline-block;
}

.document-support-message-image {
	flex-shrink: 0;
	max-width: 28px;
	aspect-ratio: 1 / 2;
}

.document-support-message strong {
	color: var(--color-primary);
	font-size: 1.2rem;
	font-weight: bold;
	padding: 0 0.15em;
}

/* -- フォーム固有 -- */

.document-select {
	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 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}


/* -- PC (min-width: 769px) -- */

@media (min-width: 769px) {
	.document-materials-list {
		flex-direction: row;
		justify-content: center;
	}

	.document-materials-item {
		flex: 1;
		max-width: 300px;
	}

	.document-concerns-list {
		flex-direction: row;
		justify-content: center;
	}

}

/* -- confirm / thanks -- */

.document-confirm-section,
.document-thanks-section {
	background-color: var(--color-background-secondary);
}
