@charset "UTF-8";

/* ==========================================================================
   .eg-order（オーダー作品のご相談）
   ========================================================================== */
.eg-order {
	--eg-order-field-line: #b3b3b3;
	--eg-order-error: #ba000c;
	--eg-order-required-bg: #fbdada;
	--eg-order-optional-bg: #e5e5e5;
	--eg-order-white: #fff;
	padding-block-end: 0;
	word-break: normal;
	overflow-wrap: anywhere;
}

.eg-order__title {
	margin: 0;
	color: var(--eg-ink);
	font-family: var(--eg-font-head);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.5;
	text-align: center;
}

.eg-order__note {
	margin: 40px 0 0;
	font-family: var(--eg-font-body);
	font-size: 14px;
	line-height: 1.5;
	opacity: 0.5;
}

@media (min-width: 768px) {
	.eg-order__title {
		font-size: 32px;
	}

	.eg-order__note {
		margin-block-start: 50px;
	}
}

/* ヒーロー */
.eg-order__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: 60px;
	color: var(--eg-order-white);
}

.eg-order__hero::before,
.eg-order__hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.eg-order__hero::before {
	background: rgba(33, 33, 33, 0.6);
}

.eg-order__hero::after {
	background: rgba(255, 255, 255, 0.02);
	-webkit-backdrop-filter: blur(2.5px);
	backdrop-filter: blur(2.5px);
}

.eg-order__heroImage {
	position: absolute;
	inset: 0;
	z-index: -2;
	inline-size: 100%;
	block-size: 100% !important;
	object-fit: cover;
}

.eg-order__heroTitle {
	display: grid;
	gap: 8px;
}

.eg-order__heroEn {
	margin: 0;
	font-family: var(--eg-font-en);
	font-size: 14px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: calc(1.6 / 16 * 1em);
}

.eg-order__heroJa {
	margin: 0;
	font-family: var(--eg-font-head);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.5;
}

.eg-order__heroText {
	max-inline-size: 702px;
	margin: 20px 0 0;
	font-family: var(--eg-font-body);
	font-size: 15px;
	line-height: 1.8;
}

.eg-order__heroButton {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	inline-size: min(100%, 340px);
	min-block-size: 60px;
	margin-block-start: 30px;
	padding: 12px 20px;
	border: 1px solid var(--eg-ink);
	background: var(--eg-paper);
	color: var(--eg-ink);
	font-family: var(--eg-font-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	transition: opacity 0.3s;
}

.eg-order__heroButton::before {
	content: "";
	flex: none;
	inline-size: 24px;
	block-size: 24px;
	background: url("../img/common/icon-mail.svg") center / contain no-repeat;
}

@media (any-hover: hover) {
	.eg-order__heroButton:hover {
		opacity: 0.8;
	}
}

@media (min-width: 768px) {
	.eg-order__hero {
		padding-block: 114px;
	}

	.eg-order__hero::before {
		background: linear-gradient(to right, rgba(33, 33, 33, 0.8), rgba(33, 33, 33, 0) calc(1177 / 1440 * 100%));
	}

	.eg-order__heroEn {
		font-size: 16px;
	}

	.eg-order__heroJa {
		font-size: 38px;
	}

	.eg-order__heroText {
		font-size: 16px;
	}
}

/* ご相談のきっかけ */
.eg-order__cases {
	padding-block: 60px;
}

.eg-order__lead {
	margin-block-start: 20px;
}

.eg-order__caseList {
	display: grid;
	gap: 40px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.eg-order__caseImage {
	inline-size: 100%;
}

.eg-order__caseTitle {
	margin: 16px 0 0;
	font-family: var(--eg-font-head);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}

.eg-order__caseText {
	margin: 8px 0 0;
	font-family: var(--eg-font-body);
	font-size: 15px;
	line-height: 1.8;
}

@media (min-width: 768px) {
	.eg-order__cases {
		padding-block: 80px;
	}

	.eg-order__lead {
		margin-block-start: 30px;
	}

	.eg-order__caseList {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		margin-block-start: 40px;
	}

	.eg-order__caseTitle {
		margin-block-start: 20px;
		font-size: 24px;
	}

	.eg-order__caseText {
		margin-block-start: 10px;
		font-size: 16px;
	}
}

/* ギャラリーの役割と流れ */
.eg-order__support {
	padding-block: 60px;
}

.eg-order__supportLead {
	margin-block-start: 16px;
}

.eg-order__roles {
	display: grid;
	gap: 16px;
	margin: 30px 0 0;
	padding: 0;
	list-style: none;
}

.eg-order__role {
	padding: 24px;
	background: var(--eg-paper);
}

.eg-order__roleNumber {
	margin: 0;
	font-family: var(--eg-font-en);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

.eg-order__roleTitle {
	margin: 15px 0 0;
	font-family: var(--eg-font-head);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}

.eg-order__roleText {
	margin: 10px 0 0;
	font-family: var(--eg-font-body);
	font-size: 15px;
	line-height: 1.8;
}

.eg-order__flowTitle {
	margin: 40px 0 0;
	font-family: var(--eg-font-head);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
}

.eg-order__flow {
	display: grid;
	gap: 24px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.eg-order__step {
	position: relative;
	padding-inline-start: 32px;
}

.eg-order__step::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 16px;
	block-size: 16px;
	border-radius: 50%;
	background: var(--eg-ink);
}

.eg-order__step:not(:last-child)::after {
	content: "";
	position: absolute;
	inset-block: 16px -24px;
	inset-inline-start: 7px;
	border-inline-start: 2px solid var(--eg-line);
}

.eg-order__stepNumber {
	margin: 0;
	font-family: var(--eg-font-en);
	font-size: 12px;
	font-weight: 500;
	line-height: calc(16 / 12);
}

.eg-order__stepTitle {
	margin: 5px 0 0;
	font-family: var(--eg-font-head);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.8;
}

.eg-order__stepText {
	margin: 5px 0 0;
	font-family: var(--eg-font-body);
	font-size: 15px;
	line-height: 1.8;
}

@media (min-width: 768px) {
	.eg-order__support {
		padding-block: 80px;
	}

	.eg-order__supportLead {
		margin-block-start: 20px;
	}

	.eg-order__roles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 30px;
		margin-block-start: 40px;
	}

	.eg-order__role {
		padding: 30px;
	}

	.eg-order__roleNumber {
		font-size: 18px;
	}

	.eg-order__roleTitle {
		font-size: 22px;
		line-height: 1;
	}

	.eg-order__roleText {
		margin-block-start: 15px;
		font-size: 16px;
	}

	.eg-order__flowTitle {
		margin-block-start: 50px;
		font-size: 24px;
	}

	.eg-order__stepText {
		font-size: 16px;
	}
}

@media (min-width: 1024px) {
	.eg-order__flow {
		position: relative;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 40px;
		margin-block-start: 30px;
	}

	.eg-order__flow::before {
		content: "";
		position: absolute;
		inset-block-start: 7px;
		inset-inline: 0;
		border-block-start: 2px solid var(--eg-line);
	}

	.eg-order__step {
		padding-block-start: 46px;
		padding-inline-start: 0;
	}

	.eg-order__step::before {
		z-index: 1;
	}

	.eg-order__step:not(:last-child)::after {
		content: none;
	}

	.eg-order__stepNumber {
		line-height: 1;
	}
}

/* よくあるご質問 */
.eg-order__faq {
	padding-block: 60px;
}

.eg-order__faqList {
	display: grid;
	gap: 24px;
	margin: 30px 0 0;
}

.eg-order__faqItem {
	padding-block-end: 20px;
	border-block-end: 1px solid var(--eg-ink);
}

.eg-order__question {
	display: grid;
	grid-template-columns: 33px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	font-family: var(--eg-font-head);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.6;
}

.eg-order__question::before {
	content: "Q";
	display: grid;
	place-items: center;
	inline-size: 33px;
	block-size: 33px;
	border-radius: 50%;
	background: var(--eg-ink);
	color: var(--eg-paper);
	font-family: var(--eg-font-en);
	font-size: 20px;
	font-weight: 500;
	line-height: 1;
}

.eg-order__answer {
	margin: 10px 0 0;
	padding-inline-start: 43px;
	font-family: var(--eg-font-body);
	font-size: 15px;
	line-height: 1.8;
}

@media (min-width: 768px) {
	.eg-order__faq {
		padding-block: 80px;
	}

	.eg-order__faqList {
		gap: 30px;
		margin-block-start: 40px;
	}

	.eg-order__question {
		gap: 11px;
		font-size: 18px;
		line-height: 1.8;
	}

	.eg-order__answer {
		font-size: 16px;
	}
}

/* ご相談フォーム */
.eg-order__contact {
	padding-block: 60px;
}

.eg-order__contactLead {
	margin-block-start: 24px;
}

.eg-order__line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	inline-size: min(100%, 340px);
	min-block-size: 60px;
	margin: 20px auto 0;
	padding: 12px 20px;
	border: 1px solid var(--eg-line-green);
	background: var(--eg-paper);
	color: var(--eg-line-green);
	font-family: var(--eg-font-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	transition: opacity 0.3s;
}

.eg-order__line::before {
	content: "";
	flex: none;
	inline-size: 26px;
	block-size: 26px;
	background: url("../img/common/icon-line.svg") center / contain no-repeat;
}

@media (any-hover: hover) {
	.eg-order__line:hover {
		opacity: 0.7;
	}
}

.eg-order__formBox {
	margin-block-start: 30px;
	padding: 30px 20px;
	background: var(--eg-order-white);
}

.eg-order__recaptcha {
	margin: 20px 0 0;
	color: var(--eg-muted);
	font-family: var(--eg-font-body);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.eg-order__recaptchaLink {
	display: inline;
	color: inherit;
	text-decoration: underline;
}

@media (min-width: 768px) {
	.eg-order__contact {
		padding-block: 80px;
	}

	.eg-order__contactLead {
		margin-block-start: 30px;
	}

	.eg-order__formBox {
		padding: 60px;
	}
}

/* ==========================================================================
   .eg-orderForm
   ========================================================================== */
.eg-orderForm__fields {
	display: grid;
	gap: 24px;
}

.eg-orderForm__label {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-family: var(--eg-font-body);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
}

.eg-orderForm__badge {
	padding: 5px 10px;
	border-radius: 30px;
	background: var(--eg-order-required-bg);
	color: var(--eg-order-error);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
}

.eg-orderForm__badge--optional {
	background: var(--eg-order-optional-bg);
	color: var(--eg-ink);
}

.eg-orderForm__field .wpcf7-form-control-wrap {
	display: block;
	margin-block-start: 16px;
}

.eg-orderForm__input {
	display: block;
	inline-size: 100%;
	min-block-size: 56px;
	padding: 10px;
	border: 1px solid var(--eg-order-field-line);
	border-radius: 8px;
	background: var(--eg-paper);
	color: var(--eg-ink);
	font-family: var(--eg-font-body);
	font-size: 16px;
	line-height: 1.5;
}

.eg-orderForm__input::placeholder {
	color: var(--eg-order-field-line);
	opacity: 1;
}

.eg-orderForm__input:focus {
	border-color: var(--eg-ink);
	outline: none;
}

.eg-orderForm__input--textarea {
	min-block-size: 201px;
	padding-block: 20px;
	resize: vertical;
}

.eg-orderForm__input--select {
	padding-inline-end: 35px;
	background: url("../img/common/icon-chevron-down.svg") right 10px center / 15px no-repeat var(--eg-paper);
	-webkit-appearance: none;
	appearance: none;
}

.eg-orderForm__agreement {
	display: grid;
	gap: 20px;
	max-inline-size: 605px;
	margin: 40px auto 0;
}

.eg-orderForm__check .wpcf7-list-item {
	margin: 0;
}

.eg-orderForm__check label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--eg-font-body);
	font-size: 16px;
	line-height: 1.5;
	cursor: pointer;
}

.eg-orderForm__check input {
	flex: none;
	display: grid;
	place-items: center;
	inline-size: 26px;
	block-size: 26px;
	margin: 0;
	border: 1px solid var(--eg-order-field-line);
	border-radius: 3px;
	background: var(--eg-order-white);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.eg-orderForm__check input::before {
	content: "";
	inline-size: 14px;
	block-size: 8px;
	border-block-end: 2px solid var(--eg-paper);
	border-inline-start: 2px solid var(--eg-paper);
	transform: translateY(-2px) rotate(-45deg);
	opacity: 0;
}

.eg-orderForm__check input:checked {
	border-color: var(--eg-ink);
	background: var(--eg-ink);
}

.eg-orderForm__check input:checked::before {
	opacity: 1;
}

.eg-orderForm__check input:focus-visible {
	outline: 2px solid var(--eg-ink);
	outline-offset: 2px;
}

.eg-orderForm__link {
	display: inline;
	color: var(--eg-ink);
	text-decoration: underline;
}

.eg-orderForm__note {
	margin: 0;
	color: var(--eg-black);
	font-family: var(--eg-font-body);
	font-size: 14px;
	line-height: 1.5;
}

.eg-orderForm__actions {
	margin-block-start: 40px;
}

.eg-orderForm__submit {
	display: block;
	inline-size: min(100%, 340px);
	min-block-size: 60px;
	margin-inline: auto;
	border: 1px solid var(--eg-ink);
	background: var(--eg-ink);
	color: var(--eg-paper);
	font-family: var(--eg-font-head);
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.eg-orderForm__submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

@media (any-hover: hover) {
	.eg-orderForm__submit:hover:not(:disabled) {
		background: var(--eg-paper);
		color: var(--eg-ink);
	}
}

@media (min-width: 768px) {
	.eg-orderForm__fields {
		gap: 30px;
	}

	.eg-orderForm__check label {
		line-height: 1;
	}
}

/* Contact Form 7 が出力する要素 */
.eg-order .wpcf7-form .hidden-fields-container {
	display: none;
}

.eg-order .wpcf7 .screen-reader-response {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.eg-order .wpcf7-not-valid-tip {
	display: block;
	margin-block-start: 8px;
	color: var(--eg-order-error);
	font-family: var(--eg-font-body);
	font-size: 13px;
	line-height: 1.5;
}

.eg-order .wpcf7-not-valid {
	border-color: var(--eg-order-error);
}

.eg-order .wpcf7-response-output {
	margin: 30px 0 0;
	padding: 12px 15px;
	border: 1px solid var(--eg-line);
	font-family: var(--eg-font-body);
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.eg-order .wpcf7-form.init .wpcf7-response-output {
	display: none;
}

.eg-order .wpcf7-form.invalid .wpcf7-response-output,
.eg-order .wpcf7-form.failed .wpcf7-response-output,
.eg-order .wpcf7-form.spam .wpcf7-response-output {
	border-color: var(--eg-order-error);
	color: var(--eg-order-error);
}

.eg-order .wpcf7-spinner {
	display: none;
}

.eg-order .wpcf7-form.submitting .eg-orderForm__submit {
	opacity: 0.5;
	pointer-events: none;
}

.grecaptcha-badge {
	visibility: hidden;
}
