@charset "utf-8";
/* お問い合わせ（page-contact.php）専用
   表の見た目は style.css の dl#mail-form（前のフォームと同じ）を使い、ここではメールフォームのプログラムが出す部品を整える */

.contact-intro { margin-bottom: 2.5em; }
.contact-intro p { margin-bottom: 1em; }

/* ご用意いただくもの（出店者ヒアリング） */
.contact-prepare { margin: 0 0 3em; padding: 1.8em 2em; background: #f4f8fb; border: 1px solid #d3e0ec; border-radius: 5px; }
.contact-prepare h3 { margin: 0 0 .6em; font-size: 2rem; color: #004785; }
.contact-prepare h4 { margin: 1.4em 0 .4em; font-size: 1.6rem; }
.contact-prepare h4 span { font-size: 1.3rem; font-weight: normal; color: #666; }
.contact-prepare p { margin-bottom: .5em; }
.contact-prepare ul.list { margin-bottom: .5em; }
.contact-prepare ul.list > li { line-height: 1.8; }
@media screen and (max-width: 767px) {
	.contact-prepare { padding: 1.4em 1.2em; }
}

/* 必須・任意（プログラムが dt の <i> に入れる） */
dl#mail-form dt i { font-style: normal; }
dl#mail-form dt span.required,
dl#mail-form dt span.optional {
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%); /* 項目名と同じ高さに（top がないと項目名の下にずれる） */
	display: inline-block;
	padding: 5px 9px;
	border-radius: 3px;
	line-height: 1;
	font-size: 12px;
	color: #fff;
	background: #c6b198;
}
dl#mail-form dt span.optional { background: #aaa; }

/* 入力欄 */
.contact-input,
.contact-textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-size: 1.6rem; /* 16px未満だと iPhone で入力時に画面が拡大される */
	line-height: 1.5;
	font-family: inherit;
}
.contact-input.-short { max-width: 280px; }
.contact-textarea { min-height: 200px; resize: vertical; }
.contact-input:focus,
.contact-textarea:focus { border-color: #004785; outline: 2px solid rgba(0, 71, 133, .2); }

.contact-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; line-height: 1.5; font-size: 1.5rem; }
.contact-choices input { width: 18px; height: 18px; flex: none; }
.contact-choices.-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; }
/* 写真の欄（スペース登録など。添付ファイルアドオンの部品） */
.contact-files { list-style: none; margin: 0; padding: 0; }
.contact-files li:first-child { display: none; }
.contact-files p.change_image { margin: 0; } /* 選んだ写真のプレビュー */
.contact-files p.change_image img { margin: 0 0 10px; }
.contact-files input[type="file"] { margin: 0 !important; }
.contact-files .resize-note { display: block; margin-top: 6px; font-size: 1.3rem; color: #666; }
dl#mail-form dd p.accept_filetype { margin: 4px 0 0; font-size: 1.3rem; color: #666; line-height: 1.7; } /* 「対応ファイル形式」（プログラムが足す） */
dl#mail-form dd p.contact-lead { margin: 0 0 12px; line-height: 1.8; } /* 入力欄の前の説明（利用規約など） */
.contact-note { margin: 8px 0 0 !important; font-size: 1.3rem; color: #666; line-height: 1.7; }

/* エラー（プログラムが dd の中に入れる） */
dl#mail-form .error_blank,
dl#mail-form .error_format,
dl#mail-form .error_match { display: block; margin-top: 6px; color: #c33; font-size: 1.4rem; }
dl#mail-form .error_blank:empty,
dl#mail-form .error_format:empty,
dl#mail-form .error_match:empty { display: none; }

/* ボタン */
/* スパム対策（Cloudflare Turnstile）のウィジェット。送信ボタンの上の中央 */
.contact-turnstile { display: flex; justify-content: center; margin: 2.5em 0 0; min-height: 65px; }
.contact-turnstile + .contact-submit { margin-top: 1.5em !important; }

.contact-submit { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 2.5em 0 0 !important; }
.contact-button {
	min-width: 240px;
	padding: 18px 40px;
	border: none;
	border-radius: 3px;
	background: #fcce00;
	color: #000;
	font-family: inherit;
	font-size: 100%;
	font-weight: bold;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
}
.contact-button.-back { background: #ccc; }
.contact-button:hover { opacity: .8; }

/* 確認画面（プログラムが表示を切り替える。#confirm_window の中に dl が入る） */
.contact-confirm { display: none; }
.contact-confirm h2 { font-size: 2.2rem; margin-bottom: .5em; color: #004785; }
#confirm_window { margin-top: 1.5em; border-top: 1px solid #ccc; }
#confirm_window dl { display: flex; flex-wrap: wrap; border-bottom: 1px solid #ccc; margin: 0; }
#confirm_window dt { width: 30%; padding: 1.2em 0; font-weight: bold; }
#confirm_window dd { width: 70%; padding: 1.2em 0 1.2em 1em; margin: 0; overflow-wrap: anywhere; }
#confirm_window dt span,
#confirm_window dt i { display: none; }

/* 送信中の表示 */
.loading-layer { position: fixed; inset: 0; z-index: 10000; display: grid; place-content: center; background: rgba(0, 0, 0, .6); }
.loading { width: 48px; height: 48px; border: 4px solid rgba(255, 255, 255, .3); border-left-color: #fff; border-radius: 50%; animation: contact-loading 1s linear infinite; }
@keyframes contact-loading { to { transform: rotate(360deg); } }

/* 送信完了 */
.contact-sent h2 { font-size: 2.4rem; color: #004785; margin-bottom: 1em; }
.contact-sent p { margin-bottom: 1.5em; }

@media (max-width: 760px) {
	dl#mail-form dt,
	dl#mail-form dd,
	#confirm_window dt,
	#confirm_window dd { width: 100%; }
	dl#mail-form dt { border-bottom: none; padding-bottom: .3em; }
	dl#mail-form dd { padding-left: 0; padding-top: .3em; }
	#confirm_window dt { padding-bottom: 0; }
	#confirm_window dd { padding-left: 0; padding-top: .3em; }
	.contact-button { width: 100%; min-width: 0; }
}
