@charset "UTF-8";
/* お問い合わせフォーム（サイトのNEWSページなどと同じ雰囲気に合わせる） */

#formWrap {
	--ink: #222;
	--sub: #777;
	--line: #cfcfcf;
	--gold: #bfab28;
	--err: #b3261e;
	position: relative;
	width: auto;
	max-width: 760px;
	margin: 0 auto;
	padding: 140px 24px 160px;
	color: var(--ink);
	font-family: 'Shippori Mincho', serif;
	font-size: 1.6rem;
	line-height: 1.9;
	text-align: center;
}

/* 大きな「CONTACT」見出し（NEWSページの見出しと同じ表現） */
#formWrap::before {
	content: "CONTACT";
	display: block;
	font-family: 'Abril Fatface', cursive;
	font-size: clamp(6rem, 14vw, 14rem);
	line-height: 1;
	color: #d7d7d7;
	letter-spacing: .02em;
	margin-bottom: 12px;
}
#formWrap::after {
	content: "Contact us";
	position: absolute;
	top: calc(140px + clamp(3rem, 7vw, 7rem));
	left: 50%;
	font-family: 'Homemade Apple', cursive;
	font-size: clamp(2.4rem, 4.5vw, 4.6rem);
	color: #b5b5b5;
	opacity: .55;
	white-space: nowrap;
	transform: translateX(-60%) rotate(-6deg);
	pointer-events: none;
}

#formWrap .contact-title {
	display: inline-block;
	margin: 0 0 20px;
	padding: 6px 18px 6px 20px;
	background: #000;
	color: #fff;
	font-size: 2rem;
	font-weight: 500;
	letter-spacing: .08em;
}
#formWrap p {
	margin: 0 0 1.2em;
	color: #444;
}

/* 表をやめて、1項目ずつ線で区切る */
table.formTable {
	width: 100%;
	margin: 40px 0 48px;
	border-collapse: collapse;
	border-top: 1px solid var(--ink);
}
table.formTable th,
table.formTable td {
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	padding: 26px 0;
	vertical-align: middle;
	text-align: left;
	font-weight: 500;
}
table.formTable th {
	width: 32%;
	padding-right: 24px;
	letter-spacing: .05em;
}
table.formTable th .req {
	display: inline-block;
	margin-left: 10px;
	padding: 0 8px;
	border: 1px solid var(--gold);
	color: var(--gold);
	font-size: 1.1rem;
	line-height: 1.8;
	letter-spacing: .1em;
	vertical-align: 2px;
}

/* 入力欄 */
table.formTable input[type="text"],
table.formTable textarea,
table.formTable select {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font-family: inherit;
	font-size: 1.6rem;
	line-height: 1.6;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
}
table.formTable textarea {
	min-height: 200px;
	resize: vertical;
}
table.formTable select {
	padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
	background-position: right 20px center, right 14px center;
	background-size: 6px 6px;
	background-repeat: no-repeat;
	cursor: pointer;
}
table.formTable input::placeholder,
table.formTable textarea::placeholder {
	color: #b0b0b0;
}
table.formTable input[type="text"]:focus,
table.formTable textarea:focus,
table.formTable select:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(191, 171, 40, .25);
}

/* ラジオボタン */
table.formTable td > label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 32px 0 0;
	cursor: pointer;
}
table.formTable input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #000;
	cursor: pointer;
}

/* 確認画面の値 */
table.formTable td {
	word-break: break-word;
}

/* エラー */
.form-error {
	margin: 8px 0 0 !important;
	color: var(--err) !important;
	font-size: 1.3rem;
}
.form-error::before {
	content: "※ ";
}
.form-notice {
	padding: 14px 18px;
	border-left: 3px solid var(--err);
	background: #fbeeee;
	color: var(--err) !important;
}
table.formTable tr:has(.form-error) input[type="text"],
table.formTable tr:has(.form-error) textarea,
table.formTable tr:has(.form-error) select {
	border-color: var(--err);
	background-color: #fffafa;
}

/* ボタン */
.form-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}
.form-buttons button,
.form-back {
	min-width: 240px;
	margin: 0;
	padding: 18px 40px;
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font-family: 'Shippori Mincho', serif;
	font-size: 1.6rem;
	letter-spacing: .15em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .25s, color .25s, border-color .25s;
}
.form-buttons button:hover,
.form-back:hover {
	background: var(--gold);
	border-color: var(--gold);
	color: #fff;
}
/* 「内容を修正する」は控えめに */
.form-buttons button[value="back"] {
	background: transparent;
	color: #000;
}
.form-buttons button[value="back"]:hover {
	background: #000;
	border-color: #000;
	color: #fff;
}
.form-buttons button:focus-visible,
.form-back:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

/* 確認画面：メインビジュアルなし。ヘッダーを黒帯にして、大見出しも省いて詰める */
.header.header--solid {
	position: relative;
	background: #000;
}
#formWrap.is-compact {
	padding-top: 32px;
}
#formWrap.is-compact::before,
#formWrap.is-compact::after {
	content: none;
}
#formWrap.is-compact .contact-title {
	margin-bottom: 12px;
}
#formWrap.is-compact table.formTable {
	margin: 16px 0 28px;
}
#formWrap.is-compact table.formTable th,
#formWrap.is-compact table.formTable td {
	padding-top: 11px;
	padding-bottom: 11px;
}

/* スパム対策の見えない欄 */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* スマホ */
@media screen and (max-width: 640px) {
	#formWrap {
		padding: 80px 16px 100px;
		font-size: 1.5rem;
	}
	#formWrap::after {
		top: calc(80px + 3rem);
	}
	#formWrap .contact-title {
		font-size: 1.7rem;
	}
	#formWrap.is-compact {
		padding-top: 32px;
	}
	#formWrap.is-compact > p {
		font-size: 1.4rem;
	}
	/* 確認画面は項目名と内容を横並びにして、送信ボタンまでの距離を縮める */
	#formWrap.is-compact table.formTable tr {
		display: flex;
		border-bottom: 1px solid var(--line);
	}
	#formWrap.is-compact table.formTable th,
	#formWrap.is-compact table.formTable td {
		padding: 10px 0;
		border-bottom: 0;
		font-size: 1.4rem;
	}
	#formWrap.is-compact table.formTable th {
		flex: 0 0 8.5em;
		padding-right: 10px;
		color: var(--sub);
	}
	#formWrap.is-compact table.formTable td {
		flex: 1;
		min-width: 0;
	}
	table.formTable,
	table.formTable tbody,
	table.formTable tr,
	table.formTable th,
	table.formTable td {
		display: block;
		width: auto;
	}
	table.formTable th {
		padding: 22px 0 8px;
		border-bottom: 0;
	}
	table.formTable td {
		padding: 0 0 22px;
	}
	.form-buttons {
		flex-direction: column-reverse;
	}
	.form-buttons button,
	.form-back {
		width: 100%;
		min-width: 0;
	}
}
