@charset "UTF-8";

.l-page-ttl {
	background-image: url("../img/contact/contact_page-ttl.webp");
}


/* お問い合わせフォーム利用規約 */
body.is-contact-terms-open {
	overflow: hidden;
}

.p-contact-terms {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(255, 255, 255, 0.9);
}

.p-contact-terms__panel {
	width: min(100%, 1000px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	padding: 56px 72px;
	background: #f7fafb;
	box-shadow: 0 8px 32px rgba(55, 74, 131, 0.08);
	overscroll-behavior: contain;
}

.p-contact-terms__title {
	margin-bottom: 16px;
	font-size: clamp(20px, calc(24 / 768 * 100vw), 24px);
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.1em;
}

.p-contact-terms__introduction {
	color: var(--color01);
	line-height: 2.1;
}

.p-contact-terms__introduction p + p {
	margin-top: 4px;
}

.p-contact-terms__introduction strong {
	font-weight: var(--fw_jp_bold);
}

.p-contact-terms__sub-title {
	margin-top: 48px;
	margin-bottom: 20px;
	font-size: clamp(15px, calc(17 / 768 * 100vw), 17px);
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.08em;
}

.p-contact-terms__list {
	display: grid;
	gap: 8px;
}

.p-contact-terms__list li {
	position: relative;
	padding-left: 1.5em;
	line-height: 2.15;
}

.p-contact-terms__list li::before {
	content: "";
	position: absolute;
	top: 0.72em;
	left: 0;
	width: 0.75em;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--color_gray02);
}

.p-contact-terms__list a {
	text-decoration: underline;
}

.p-contact-terms__buttons {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-top: 48px;
}

.p-contact-terms__form {
	margin: 0;
}

.p-contact-terms__button {
	width: 280px;
	min-height: 60px;
	padding: 0.9em 1.5em;
	font-size: clamp(15px, calc(17 / 768 * 100vw), 17px);
	letter-spacing: 0.1em;
	cursor: pointer;
	transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

.p-contact-terms__button--decline {
	border: 1px solid #b3b3b3;
	color: var(--color_white);
	background: #b3b3b3;
}

.p-contact-terms__button--decline:hover,
.p-contact-terms__button--decline:focus-visible {
	color: #777;
	background: var(--color_white);
}

.p-contact-terms__button--agree {
	border: 1px solid var(--color01);
	color: var(--color_white);
	background: var(--color01);
}

.p-contact-terms__button--agree:hover,
.p-contact-terms__button--agree:focus-visible {
	color: var(--color01);
	background: var(--color_white);
}

.p-contact-terms__button:focus-visible,
.p-contact-terms__list a:focus-visible {
	outline: 3px solid rgba(55, 74, 131, 0.35);
	outline-offset: 3px;
}


/* メールフォーム */
.p-form {
	margin-top: 80px;
}

.p-form__content {
	max-width: 920px;
	margin: 0 auto;
}


.p-form__lead h2 {
	font-size: clamp(18px, calc(18 / 768 * 100vw), 24px);
	text-align: center;
	color: var(--color01);
	margin-bottom: 50px;
	letter-spacing: 0.1em;
}

.p-form__unit dl {
	display: flex;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 24px 0;
}

.p-form__unit dl dt {
	padding-top: 0.5em;
	width: calc(45% - 16px);
}


.p-form__unit dl dd {
	width: 70%;
}

.p-form__unit dl dd span {
	display: block;
    margin-top: 10px;
	color: #d12926;
	font-weight: var(--fw_jp_bold);
}


.p-form__privacy {
	padding: 16px 0;
}

.p-form__privacy label {
    display: flex;
    justify-content: center;
	align-items: flex-start;
    width: fit-content;
    gap: 0.5em;
    margin: 0 auto;
}

.p-form__privacy label a {
	display: inline;
}

.p-form__privacy label input[type="checkbox"] {
	margin-top: 0.6em;
	width: 1.2em;
	height: 1.2em;
}

.p-form__req {
	font-size: clamp(14px, calc(16 / 768 * 100vw), 16px);
	line-height: 1.0;
	letter-spacing: 0.1em;
	padding: 0.4em 0.6em;
	margin-right: 1.5em;
	background: #d12926;
	color: var(--color_white);
}

.p-form__any {
	font-size: clamp(14px, calc(16 / 768 * 100vw), 16px);
	line-height: 1.0;
	letter-spacing: 0.1em;
	padding: 0.4em 0.6em;
	margin-right: 1.5em;
	background: var(--color_gray02);
	color: var(--color_white);
}

::placeholder {
	color: var(--color_gray02);
}

.p-form__unit input[type="text"],
.p-form__unit textarea {
	padding: 10px;
	width: 100%;
	border: 1px solid var(--color_gray03);
	background: var(--color_white);
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-ms-border-radius: 4px;
	-o-border-radius: 4px;
}

.p-form__unit select,
.p-form__unit input[type="date"] {
	border: 1px solid var(--color_gray03);
	background: var(--color_white);
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-ms-border-radius: 4px;
	-o-border-radius: 4px;
	color: var(--color_gray02);
}

.p-form__unit input[type="text"],
.p-form__unit input[type="date"],
.p-form__unit select {
	height: 48px;
	padding: 10px;
}

.p-form__unit textarea {
	height: 320px;
}

.p-form__btns {
	text-align: center;
}

.p-form__conf-btn {
	width: 320px;
	font-size: clamp(14px, calc(15 / 768 * 100vw), 18px);
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-decoration: none;
	display: inline-block;
	margin: 0;
	padding: 1em 2em;
	position: relative;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
	min-width: 240px;
	font-family: var(--ff_jp_serif);
}

.p-form__conf-btn {
	color: var(--color_white);
	background-color: var(--color01);
	border: 1px solid var(--color01);
}
.p-form__conf-btn:hover {
	color: var(--color01);
	background-color: var(--color_white);
}


/* スマートフォン用 - ブレイクポイント768 */
@media screen and (max-width: 768px) {
	/* お問い合わせフォーム利用規約 */
	.p-contact-terms {
		place-items: start center;
		padding: 12px;
	}

	.p-contact-terms__panel {
		max-height: calc(100dvh - 24px);
		padding: 32px 20px;
	}

	.p-contact-terms__title {
		margin-bottom: 12px;
	}

	.p-contact-terms__introduction,
	.p-contact-terms__list li {
		line-height: 1.9;
	}

	.p-contact-terms__sub-title {
		margin-top: 32px;
		margin-bottom: 16px;
	}

	.p-contact-terms__buttons {
		flex-direction: column-reverse;
		gap: 12px;
		margin-top: 32px;
	}

	.p-contact-terms__form,
	.p-contact-terms__button {
		width: 100%;
	}

	/* メールフォーム */
	.p-form__content {
		max-width: 480px;
	}

	.p-form__lead {
		padding: 12px;
		margin-bottom: 8px;
	}
	
	.p-form__lead h2{
		margin-bottom: 10px;
	}

	.p-form__lead p {
		text-align: justify;
	}

	.p-form__unit dl {
		flex-direction: column;
	}

	.p-form__unit dl dt {
		width: 100%;
	}

	.p-form__unit dl dd {
		margin-top: 8px;
		width: 100%;
	}

	.p-form__btns {
		margin-top: 32px;
	}

	.p-form__conf-btn {
		width: 220px;
	}

}



/* 確認画面用 */
.p-confirm {
	margin-top: 80px;
}

.p-confirm__ttl {
	font-size: clamp(18px, calc(24 / 768 * 100vw), 24px);
	line-height: 1.5;
	font-weight: var(--fw_jp_bold);
	letter-spacing: 0.1em;
	text-align: center;
	color: var(--color_gray02);
	margin-bottom: 32px;
}

.p-confirm__lead {
	margin-bottom: 32px;
	text-align: center;
}

.p-confirm__content {
	max-width: 720px;
	margin: 0 auto;
}

.p-confirm__unit dl {
	display: flex;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 32px 0;
	border-bottom: 1px solid var(--color_gray03);
}

.p-confirm__unit dl:first-of-type {
	border-top: 1px solid var(--color_gray03);
}

.p-confirm__unit dl dt {
	width: calc(30% - 16px);
	font-weight: var(--fw_jp_bold);
}

.p-confirm__unit dl dd {
	width: 70%;
}

.p-confirm__err {
	color: var(--color_err);
}

.p-confirm__btns {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: 48px;
	gap: 16px 24px;
}

.p-confirm__submit-btn {
	font-size: clamp(14px, calc(15 / 768 * 100vw), 18px);
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-decoration: none;
	display: inline-block;
	margin: 0;
	padding: 1em 2em;
	position: relative;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
	min-width: 240px;
	text-align: center;
	color: var(--color_white);
	background-color: var(--color01);
	border: 1px solid var(--color01);
}

.p-confirm__submit-btn:hover {
	color: var(--color01);
	background-color: var(--color_white);
}

.p-confirm__back-btn {
	font-size: clamp(14px, calc(15 / 768 * 100vw), 18px);
	line-height: 1.5;
	letter-spacing: 0.1em;
	text-decoration: none;
	display: inline-block;
	margin: 0;
	padding: 1em 2em;
	position: relative;
	transition: .3s;
	-webkit-transition: .3s;
	-moz-transition: .3s;
	-ms-transition: .3s;
	-o-transition: .3s;
	min-width: 240px;
	text-align: center;
	color: var(--color01);
	background-color: var(--color_white);
	border: 1px solid var(--color01);
}

.p-confirm__back-btn:hover {
	color: var(--color_white);
	background-color: var(--color01);
	border: 1px solid var(--color_white);
}



/* スマートフォン用 */
@media screen and (max-width: 768px) {

	/* 確認画面用 */
	.p-confirm__ttl {
		letter-spacing: 0;
		margin-bottom: 24px;
	}

	.p-confirm__lead {
		margin-bottom: 24px;
	}

	.p-confirm__content {
		max-width: 480px;
	}

	.p-confirm__unit dl {
		flex-direction: column;
	}

	.p-confirm__unit dl dt {
		width: 100%;
		color: var(--color_gray02);
	}

	.p-confirm__unit dl dd {
		width: 100%;
	}

	.p-confirm__btns {
		flex-direction: column;
		margin-top: 32px;
	}

	.p-confirm__submit-btn {
		margin: 0 auto;
		min-width: 200px;
	}
	
	.p-confirm__back-btn {
		margin: 0 auto;
		min-width: 200px;
	}

}



/* 送信完了用 */
.p-finish__comment {
	font-size: clamp(15px, calc(18 / 768 * 100vw), 18px);
	line-height: 2.0;
	text-align: center;
	margin: 50px auto;
}

.p-finish .c-btns {
	text-align: center;
}

.p-finish .c-btn {
	margin: 0 auto;
}
