@charset "UTF-8";

/* ==========================================================================
   お問い合わせフォーム
   既存 app.css / style.css のトーン（アクセント #00c8ff、罫線 #e5e5e5、
   ラベル背景 #f8f8f8、本文色 #555）に合わせています。
   ========================================================================== */

.p-contact {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px 100px;
}

.p-contact__lead {
	color: #555;
	font-size: 15px;
	line-height: 1.9;
	margin-bottom: 30px;
}

.p-contact__note {
	color: #888;
	font-size: 13px;
	line-height: 1.8;
	margin-bottom: 30px;
}

/* --- 入力テーブル ------------------------------------------------------- */

.p-form {
	width: 100%;
	border-top: 1px solid #e5e5e5;
	margin-bottom: 30px;
}

.p-form__row {
	display: flex;
	border-bottom: 1px solid #e5e5e5;
}

.p-form__th {
	color: #555;
	font-size: 14px;
	line-height: 22px;
	width: 230px;
	flex-shrink: 0;
	text-align: left;
	padding: 20px;
	background: #f8f8f8;
	font-weight: 400;
}

.p-form__td {
	color: #555;
	font-size: 14px;
	line-height: 22px;
	padding: 16px 20px;
	flex: 1;
	min-width: 0;
}

.p-form__required {
	color: #FFF;
	background: #d64545;
	font-size: 11px;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: 2px;
	display: inline-block;
}

.p-form__optional {
	color: #888;
	background: #ececec;
	font-size: 11px;
	line-height: 1;
	padding: 4px 6px;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: 2px;
	display: inline-block;
}

/* --- 入力部品 ----------------------------------------------------------- */

.p-form__input,
.p-form__select,
.p-form__textarea {
	width: 100%;
	max-width: 460px;
	color: #333;
	font-size: 15px;
	line-height: 1.6;
	font-family: inherit;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.p-form__textarea {
	max-width: 100%;
	min-height: 180px;
	resize: vertical;
}

.p-form__select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 34px;
}

.p-form__input:focus,
.p-form__select:focus,
.p-form__textarea:focus {
	outline: none;
	border-color: #00c8ff;
	box-shadow: 0 0 0 3px rgba(0, 200, 255, .15);
}

.p-form__input.is-error,
.p-form__select.is-error,
.p-form__textarea.is-error {
	border-color: #d64545;
	background: #fffafa;
}

.p-form__help {
	color: #888;
	font-size: 12px;
	line-height: 1.7;
	margin-top: 6px;
}

.p-form__error {
	color: #d64545;
	font-size: 13px;
	line-height: 1.7;
	margin-top: 6px;
	display: none;
}

.p-form__error.is-visible {
	display: block;
}

/* --- Honeypot：人間には見えない。CSS で隠すのみで JS には依存しない --------- */

.p-form__hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* --- 同意チェック ------------------------------------------------------- */

.p-form__agree {
	text-align: center;
	margin: 30px 0;
	color: #555;
	font-size: 14px;
	line-height: 1.9;
}

.p-form__agree label {
	cursor: pointer;
}

.p-form__agree input[type="checkbox"] {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	vertical-align: -2px;
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
	appearance: checkbox;
}

.p-form__agree a {
	color: #0087b3;
	text-decoration: underline;
}

.p-form__agree a:hover {
	text-decoration: none;
}

/* --- Turnstile ---------------------------------------------------------- */

.p-form__turnstile {
	display: flex;
	justify-content: center;
	margin: 24px 0;
	min-height: 65px;
}

/* --- ボタン ------------------------------------------------------------- */

.p-form__actions {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 30px;
}

.c-btn {
	color: #FFF;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	text-align: center;
	min-width: 240px;
	height: 54px;
	line-height: 54px;
	padding: 0 30px;
	display: inline-block;
	border: none;
	border-radius: 6px;
	background: #00c8ff;
	cursor: pointer;
	transition: opacity .2s;
	opacity: 1;
	-webkit-appearance: none;
	appearance: none;
}

.c-btn:hover {
	opacity: .7;
}

.c-btn:disabled {
	background: #b9b9b9;
	cursor: not-allowed;
	opacity: 1;
}

.c-btn--back {
	color: #555;
	background: #ececec;
}

.c-btn--back:hover {
	opacity: .7;
}

/* --- 確認画面 ----------------------------------------------------------- */

.p-form__confirm-text {
	color: #555;
	font-size: 15px;
	line-height: 1.9;
	text-align: center;
	margin-bottom: 30px;
}

.p-form__value {
	color: #333;
	font-size: 15px;
	line-height: 1.9;
	white-space: pre-wrap;
	word-break: break-word;
	padding: 4px 0;
}

.p-form__value.is-empty {
	color: #999;
}

/* --- 完了画面 ----------------------------------------------------------- */

.p-form__complete {
	text-align: center;
	padding: 40px 0 20px;
}

.p-form__complete-title {
	color: #333;
	font-size: 22px;
	font-family: serif;
	line-height: 1.6;
	margin-bottom: 24px;
}

.p-form__complete-text {
	color: #555;
	font-size: 15px;
	line-height: 2;
	margin-bottom: 36px;
}

/* --- 全体エラー --------------------------------------------------------- */

.p-form__alert {
	color: #a33;
	background: #fdf0f0;
	border: 1px solid #f0c8c8;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.8;
	padding: 14px 18px;
	margin-bottom: 24px;
	display: none;
}

.p-form__alert.is-visible {
	display: block;
}

/* --- 画面切り替え ------------------------------------------------------- */

.p-form__panel {
	display: none;
}

.p-form__panel.is-active {
	display: block;
}

/* --- スマートフォン ------------------------------------------------------ */

@media screen and (max-width: 767px) {
	.p-contact {
		padding: 0 15px 50px;
	}

	.p-contact__lead {
		font-size: 14px;
		line-height: 1.8;
	}

	.p-form__row {
		display: block;
	}

	.p-form__th {
		width: 100%;
		padding: 12px 15px;
		font-size: 13px;
		font-weight: 700;
	}

	.p-form__td {
		padding: 14px 15px 18px;
		font-size: 14px;
	}

	.p-form__input,
	.p-form__select,
	.p-form__textarea {
		max-width: 100%;
		/* iOS の自動ズームを防ぐため 16px を下回らないようにする */
		font-size: 16px;
	}

	.p-form__actions {
		flex-direction: column-reverse;
		align-items: stretch;
		gap: 12px;
	}

	.c-btn {
		width: 100%;
		min-width: 0;
		font-size: 15px;
		height: 50px;
		line-height: 50px;
	}

	.p-form__complete-title {
		font-size: 18px;
	}

	.p-form__complete-text {
		font-size: 14px;
		text-align: left;
	}
}

/* ==========================================================================
   ページ上部のバナー

   画像に「Contact／お問い合わせ」の文字とデザイン（下部の曲線）が
   含まれているため、切り抜かずに全体を表示する。
   ========================================================================== */

.p-page-banner {
	width: 100%;
	position: relative;
	line-height: 0;
}

.p-page-banner__image {
	display: block;
	width: 100%;
	/* 元画像は 3:2 のため、全幅で高さ自動にすると 900px 近くになり
	   フォームが画面外へ追い出される。高さに上限を設けて切り出す。 */
	height: clamp(150px, 31vw, 430px);
	object-fit: cover;
	object-position: center 46%;
}

/* 見出しは読み上げ・検索エンジン用に残しつつ視覚的に隠す */
.u-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   個人情報保護方針のダイアログ

   別タブで開くと、戻ってきたときにフォームの状態が失われやすい。
   （タブの破棄・再読み込み、トークンの失効など）
   このページ内で読めるようにして、その原因を取り除く。
   ========================================================================== */

.p-policy-dialog {
	width: min(920px, 92vw);
	height: min(80vh, 780px);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .45);
}

.p-policy-dialog::backdrop {
	background: rgba(0, 0, 0, .55);
}

.p-policy-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid #e5e5e5;
	background: #f8f8f8;
}

.p-policy-dialog__title {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin: 0;
	line-height: 1.4;
}

.p-policy-dialog__close {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 auto;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
	color: #555;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	padding: 9px 16px;
	cursor: pointer;
}

.p-policy-dialog__close:hover {
	border-color: #00c8ff;
	color: #00789e;
}

.p-policy-dialog__frame {
	display: block;
	width: 100%;
	height: calc(100% - 51px);
	border: 0;
}

@media screen and (max-width: 767px) {
	.p-policy-dialog {
		width: 100vw;
		height: 100vh;
		max-width: 100vw;
		border-radius: 0;
	}
	.p-policy-dialog__title { font-size: 15px; }
	.p-policy-dialog__close { padding: 11px 16px; }
}
