@charset "UTF-8";

/*
 * Event form page styles
 * eiwa2021
 */

/* --------------------------------
 * Base
 * -------------------------------- */
.form-event-page {
	background: #fff;
	color: #2f2f2f;
	font-family: inherit;
}

.form-event-page *,
.form-event-page *::before,
.form-event-page *::after {
	box-sizing: border-box;
}

/* --------------------------------
 * Hero
 * -------------------------------- */
.form-event-hero {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 72px 24px 64px;
	background: #FFDB45;
	text-align: center;
}

.form-event-hero__inner {
	width: min(100%, 1080px);
	margin: 0 auto;
}

.form-event-hero__en {
	margin: 0 0 6px;
	font-family: "Oswald", sans-serif;
	font-size: clamp(4rem, 2.4vw, 5rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
}

.form-event-hero__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 1.7rem);
	font-weight: 700;
	line-height: 1.4;
}

/* --------------------------------
 * Content
 * -------------------------------- */
.form-event-content {
	padding: clamp(48px, 6vw, 88px) 24px clamp(72px, 8vw, 112px);
	background: #fff;
}

.form-event-content__inner {
	width: min(100%, 800px);
	margin: 0 auto;
}

/* --------------------------------
 * Present banner
 * -------------------------------- */
.form-event-present {
	width: min(100%, 749px);
	margin: 0 auto clamp(40px, 5vw, 64px);
}

.form-event-present__picture {
	display: block;
}

.form-event-present__image {
	display: block;
	width: 100%;
	height: auto;
}

/* --------------------------------
 * Selected event
 * -------------------------------- */
.form-event-selected {
	margin: 0 auto;
	padding-bottom: clamp(28px, 4vw, 40px);
	border-bottom: 1px solid #d9d9d9;
	text-align: center;
}

.form-event-selected__label {
	margin: 0 0 4px;
	color: #2f2f2f;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.form-event-selected__title {
	margin: 0;
	color: #2f2f2f;
	font-size: clamp(1.8rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.7;
	letter-spacing: 0.04em;
}

/* --------------------------------
 * Contact Form 7 wrapper
 * -------------------------------- */
.form-event-form {
	width: 100%;
	margin: 0 auto;
}

.event-form {
	width: 100%;
	margin: 0;
}

.event-form p {
	margin: 0;
}

/* --------------------------------
 * Form rows
 * -------------------------------- */
.event-form__row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	padding: 20px 0;
}

.event-form__label {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-start;
	min-height: 42px;
	color: #2f2f2f;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.35;
}

.event-form__label-text {
	display: inline-block;
}

.event-form__required {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	margin: 0 0 0 6px;
	padding: 3px 8px;
	border-radius: 4px;
	background: #DE4D00;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0.04em;
}

.event-form__note {
	display: inline-block;
	margin-left: 0;
	color: #777;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.5;
}

.event-form__field {
	min-width: 0;
	width: 100%;
}

/* --------------------------------
 * Preferred date and time
 * -------------------------------- */
.event-form__request {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
	padding: 48px 0 44px;
	border-bottom: 1px solid #d9d9d9;
}

.event-form__request-label {
	display: flex;
	align-items: center;
	min-height: 42px;
	color: #2f2f2f;
	font-weight: 700;
	line-height: 1.6;
}

.event-form__request-body {
	display: grid;
	gap: 10px;
}

.event-form__request-row {
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.event-form__request-heading {
	display: flex;
	align-items: center;
	min-height: 42px;
	color: #555;
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
}

.event-form__request-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	min-width: 0;
}

/* CF7が自動で入れるbr/p対策 */
.event-form__request-fields br {
	display: none;
}

.event-form__request-fields p {
	display: contents;
	margin: 0;
}

.event-form__request-fields .wpcf7-form-control-wrap {
	display: block;
	min-width: 0;
}

.event-form__request-fields .event-form__select {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 8px 16px;
	border: 1px solid #d2d2d2;
	border-radius: 0;
	color: #555;
	font: inherit;
	line-height: 1.6;
	cursor: pointer;
	appearance: auto;
}


/* --------------------------------
 * Inputs
 * -------------------------------- */
.event-form__input,
.event-form__textarea {
	display: block;
	width: 100%;
	border: 1px solid #d2d2d2;
	border-radius: 0;
	background: #fff;
	color: #2f2f2f;
	font: inherit;
	font-size: 1.4rem;
	line-height: 1.6;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
}

.event-form__input {
	min-height: 42px;
	padding: 8px 16px;
}

.event-form__textarea {
	min-height: 180px;
	padding: 14px 16px;
	resize: vertical;
}

.event-form__input--postal {
	max-width: none;
}

.event-form__input::placeholder,
.event-form__textarea::placeholder {
	color: #a0a0a0;
}

.event-form__input:focus,
.event-form__textarea:focus {
	border-color: #d6a900;
	box-shadow: 0 0 0 3px rgba(244, 196, 0, 0.18);
	outline: none;
}

/* --------------------------------
 * Address
 * -------------------------------- */
.event-form__address {
	display: grid;
	gap: 10px;
}

.event-form__address-item {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
}

.event-form__sub-label {
	display: flex;
	align-items: center;
	min-height: 42px;
	margin: 0;
	color: #555;
	font-size: 1.4rem;
	font-weight: 400;
	line-height: 1.5;
}

/* --------------------------------
 * Checkbox
 * -------------------------------- */
.event-form__row--checkbox .event-form__label {
	align-items: flex-start;
	flex-direction: column;
	gap: 4px;
}

.event-form__checkbox {
	display: block;
}

.event-form__checkbox .wpcf7-list-item {
	display: inline-block;
	margin: 0 22px 12px 0;
}

.event-form__checkbox .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #2f2f2f;
	font-size: 1.6rem;
	line-height: 1.6;
	cursor: pointer;
}

.event-form__checkbox input[type="checkbox"] {
	position: relative;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid #c9c9c9;
	background: #fff;
	cursor: pointer;
	appearance: none;
}

.event-form__checkbox input[type="checkbox"]:checked {
	border-color: #f4c400;
	background: #f4c400;
}

.event-form__checkbox input[type="checkbox"]:checked::after {
	position: absolute;
	top: 2px;
	left: 5px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
}

/* --------------------------------
 * Privacy
 * -------------------------------- */
.event-form__privacy {
	margin-top: 34px;
	padding: 0;
	background: transparent;
	text-align: center;
}

.event-form__privacy-text {
	color: #2f2f2f;
	font-size: 1.2rem;
}

.event-form__privacy-text a {
	color: #2f2f2f;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.event-form__privacy-text a:hover {
	text-decoration: none;
}

.event-form__acceptance {
	color: #2f2f2f;
	font-weight: 700;
	font-size: 1.5rem;
}

.event-form__acceptance .wpcf7-list-item {
	margin: 0;
}

.event-form__acceptance label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 20px 0 0;
	text-align: left;
	cursor: pointer;
}

.event-form__acceptance input[type="checkbox"] {
	position: relative;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0.25em 0 0;
	border: 1px solid #c9c9c9;
	background: #fff;
	cursor: pointer;
	appearance: none;
}

.event-form__acceptance input[type="checkbox"]:checked {
	border-color: #f4c400;
	background: #f4c400;
}

.event-form__acceptance input[type="checkbox"]:checked::after {
	position: absolute;
	top: 2px;
	left: 5px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	transform: rotate(45deg);
}

/* --------------------------------
 * Submit
 * -------------------------------- */
.event-form__submit {
	position: relative;
	width: min(100%, 420px);
	height: 64px;
	margin: clamp(32px, 5vw, 48px) auto 0;
	background: #FFDB45;
}

.event-form__submit::after {
	position: absolute;
	top: calc(50% - 4px);
	right: 28px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #2f2f2f;
	border-right: 2px solid #2f2f2f;
	content: "";
	pointer-events: none;
	transform: rotate(45deg);
	transform-origin: center;
}

.event-form__submit-button {
	display: block;
	width: 100%;
	height: 64px;
	padding: 0 56px 0 32px;
	border: none;
	border-radius: 0;
	background: transparent;
	color: #2f2f2f;
	font: inherit;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 64px;
	letter-spacing: 0.06em;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
	appearance: none;
}

.event-form__submit-button:hover {
	opacity: 0.86;
}

/* --------------------------------
 * Contact Form 7 messages
 * -------------------------------- */
.event-form .wpcf7-not-valid-tip {
	margin-top: 8px;
	color: #d43c2f;
	font-size: 0.875rem;
	line-height: 1.5;
}

.event-form .wpcf7-not-valid {
	border-color: #d43c2f;
}

.event-form .wpcf7-response-output {
	margin: 32px 0 0;
	padding: 16px 18px;
	border-width: 1px;
	font-size: 0.95rem;
	line-height: 1.7;
	text-align: center;
}

.event-form .wpcf7-spinner {
	display: block;
	margin: 16px auto 0;
}

/* --------------------------------
 * Input filled state
 * -------------------------------- */
.form-event-page .event-form__input,
.form-event-page .event-form__textarea,
.form-event-page .event-form__select {
	background-color: #fff;
}

.form-event-page .event-form__input:not(:placeholder-shown),
.form-event-page .event-form__textarea:not(:placeholder-shown) {
	background-color: #eef5ff;
}

.form-event-page .event-form__input:not(:placeholder-shown):focus,
.form-event-page .event-form__textarea:not(:placeholder-shown):focus {
	background-color: #eef5ff;
}

.form-event-page .event-form__input:placeholder-shown:focus,
.form-event-page .event-form__textarea:placeholder-shown:focus,
.form-event-page .event-form__select:focus {
	background-color: #fff;
}

/* セレクトはJSで is-filled が付いた時だけ背景色を付ける */
.form-event-page .event-form__select:not(.is-filled) {
	background-color: #fff;
}

.form-event-page .event-form__select.is-filled,
.form-event-page .event-form__select.is-filled:focus {
	background-color: #eef5ff;
}

.form-event-page .event-form__input:-webkit-autofill,
.form-event-page .event-form__input:-webkit-autofill:hover,
.form-event-page .event-form__input:-webkit-autofill:focus,
.form-event-page .event-form__textarea:-webkit-autofill,
.form-event-page .event-form__textarea:-webkit-autofill:hover,
.form-event-page .event-form__textarea:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #eef5ff inset;
	box-shadow: 0 0 0 1000px #eef5ff inset;
	-webkit-text-fill-color: #2f2f2f;
}

/* --------------------------------
 * Thanks page
 * -------------------------------- */
.form-event-page--thanks .form-event-hero {
	min-height: 260px;
	padding: 72px 24px 64px;
}

.form-event-thanks {
	padding: 80px 24px 0;
	background: #fff;
}

.form-event-thanks__inner {
	width: min(100%, 800px);
	margin: 0 auto;
}

.form-event-thanks__box {
	padding: 56px 64px 64px;
	border: 1px solid #e3e3e3;
	background: #fff;
	text-align: center;
}

.form-event-thanks__label {
	margin: 0 0 4px;
	color: #DE4D00;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.form-event-thanks__heading {
	margin: 0 0 26px;
	color: #2f2f2f;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
}

.form-event-thanks__text {
	margin: 0;
	color: #2f2f2f;
	line-height: 2;
}

.form-event-thanks__note {
	margin: 22px 0 0;
	color: #555;
	line-height: 2;
}

.form-event-thanks__tel {
	width: min(100%, 520px);
	margin: 42px auto 0;
	padding: 28px 32px;
	background: #f8f8f8;
	text-align: center;
}

.form-event-thanks__tel-label {
	margin: 0 0 4px;
	color: #2f2f2f;
	font-weight: 700;
	line-height: 1.6;
}

.form-event-thanks__tel-number {
	margin: 0;
	font-size: 3.2rem;
	font-weight: 400;
	line-height: 1.3;
}

.form-event-thanks__tel-number-text {
	color: #2f2f2f;
	text-decoration: none;
}

.form-event-thanks__tel-number-text--pc {
	display: inline;
}

.form-event-thanks__tel-number-text--sp {
	display: none;
}

.form-event-thanks__tel-hours {
	margin: 8px 0 0;
	color: #555;
	line-height: 1.6;
}

.form-event-thanks__buttons {
	display: flex;
	justify-content: center;
	gap: 18px;
	margin-top: 44px;
}

.form-event-thanks__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 240px;
	min-height: 58px;
	padding: 14px 24px;
	border: 1px solid #2f2f2f;
	color: #2f2f2f;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.form-event-thanks__button--primary {
	border-color: #FFDB45;
	background: #FFDB45;
}

.form-event-thanks__button--secondary {
	background: #fff;
}

.form-event-thanks__button:hover {
	opacity: 0.82;
}

/* --------------------------------
 * Responsive - Form page
 * -------------------------------- */
@media (max-width: 767px) {
	/* Hero */
	.form-event-hero {
		min-height: clamp(180px, 48vw, 220px);
		padding:
			clamp(48px, 12vw, 64px)
			clamp(16px, 5vw, 24px);
	}
	
	.form-event-hero__inner {
		width: 100%;
	}
	
	/* Content */
	.form-event-content {
		padding:
			clamp(36px, 9vw, 56px)
			clamp(16px, 5vw, 24px)
			clamp(64px, 14vw, 88px);
	}
	
	.form-event-content__inner {
		width: 100%;
	}
	
	/* Present banner */
	.form-event-present {
		width: min(100%, 321px);
		margin-bottom: clamp(32px, 8vw, 44px);
	}
	
	/* Selected event */
	.form-event-selected {
		padding-bottom: clamp(24px, 7vw, 34px);
	}
	
	.form-event-selected__label {
		margin-bottom: 4px;
	}
	
	/* Preferred date and time */
	.event-form__request {
		display: block;
		padding:
			clamp(30px, 8vw, 44px)
			0
			clamp(34px, 9vw, 48px);
	}
	
	.event-form__request-label {
		min-height: auto;
		margin-bottom: clamp(12px, 3vw, 18px);
	}
	
	.event-form__request-body {
		gap: clamp(12px, 3vw, 16px);
	}
	
	.event-form__request-row {
		display: block;
	}
	
	.event-form__request-heading {
		min-height: auto;
		padding-bottom: clamp(2px, 1vw, 4px);
	}
	
	.event-form__request-fields {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(8px, 2.5vw, 12px);
	}
	
	.event-form__request-fields .event-form__select {
		min-height: 42px;
		padding: 8px clamp(10px, 3vw, 14px);
	}
	
	/* Form rows */
	.event-form__row {
		display: block;
		padding: clamp(20px, 5vw, 28px) 0;
	}
	
	.event-form__label {
		min-height: auto;
		margin-bottom: clamp(8px, 2.5vw, 12px);
	}
	
	.event-form__field {
		width: 100%;
	}
	
	.event-form__input,
	.event-form__textarea,
	.event-form__select {
		width: 100%;
	}
	
	.event-form__textarea {
		min-height: clamp(150px, 36vw, 180px);
	}
	
	/* Address */
	.event-form__address {
		gap: clamp(12px, 3vw, 16px);
	}
	
	.event-form__address-item {
		display: block;
	}
	
	.event-form__sub-label {
		min-height: auto;
		padding-bottom: clamp(2px, 1vw, 4px);
	}
	
	/* Checkbox */
	.event-form__row--checkbox .event-form__label {
		margin-bottom: clamp(12px, 3vw, 16px);
	}
	
	.event-form__checkbox {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(10px, 3vw, 16px);
		row-gap: clamp(8px, 2.5vw, 12px);
	}
	
	.event-form__checkbox .wpcf7-list-item {
		display: block;
		min-width: 0;
		margin: 0;
	}
	
	.event-form__checkbox .wpcf7-list-item label {
		align-items: flex-start;
		gap: 6px;
		font-size: clamp(1.2rem, 3.4vw, 1.3rem);
		line-height: 1.45;
	}
	
	.event-form__checkbox input[type="checkbox"] {
		flex: 0 0 auto;
		margin-top: 0.2em;
	}
	
	/* Privacy */
	.event-form__privacy {
		margin-top: clamp(32px, 8vw, 44px);
		text-align: left;
	}
	
	.event-form__acceptance label {
		align-items: flex-start;
	}
	
	/* Submit */
	.event-form__submit {
		width: 100%;
		height: clamp(56px, 14vw, 64px);
	}
	
	.event-form__submit-button {
		height: clamp(56px, 14vw, 64px);
		padding-right: 48px;
		padding-left: 20px;
		line-height: clamp(56px, 14vw, 64px);
	}
	
	.event-form__submit::after {
		right: clamp(20px, 5vw, 28px);
	}
	
	/* Thanks page */
	.form-event-page--thanks .form-event-hero {
		min-height: clamp(180px, 48vw, 220px);
		padding:
			clamp(48px, 12vw, 64px)
			clamp(16px, 5vw, 24px);
	}
	
	.form-event-thanks__inner {
		width: 100%;
	}
	
	.form-event-thanks__box {
		padding:
			clamp(32px, 8vw, 48px)
			clamp(18px, 5vw, 28px)
			clamp(36px, 9vw, 52px);
	}
	
	.form-event-thanks__heading {
		margin-bottom: clamp(20px, 5vw, 28px);
	}
	
	.form-event-thanks__text,
	.form-event-thanks__note {
		text-align: left;
	}
	
	.form-event-thanks__note {
		margin-top: clamp(18px, 5vw, 24px);
	}
	
	.form-event-thanks__tel {
		width: 100%;
		margin-top: clamp(32px, 8vw, 44px);
		padding:
			clamp(22px, 6vw, 30px)
			clamp(16px, 5vw, 24px);
	}
	
	.form-event-thanks__tel-number-text--pc {
		display: none;
	}
	
	.form-event-thanks__tel-number-text--sp {
		display: inline;
	}
	
	.form-event-thanks__buttons {
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: clamp(32px, 8vw, 44px);
	}
	
	.form-event-thanks__button {
		width: 100%;
		min-height: 56px;
	}
}

/* Very small screens */
@media (max-width: 359px) {
	.event-form__request-fields {
		grid-template-columns: 1fr;
	}

	.event-form__checkbox {
		grid-template-columns: 1fr;
	}









