@charset "utf-8";
/* 英語お問い合わせフォーム（/contact/）
   表の枠線や見出しなどは既存の layout.css / form.css の .contents table をそのまま使い、
   ここではフォーム固有の部品だけを定義する。 */

.contact-form { margin-top: 10px; }
.contact-form [hidden] { display: none !important; }

/* ステップ表示 */
.cf-steps {
	display: flex;
	list-style: none !important;
	margin: 20px 10px 0 !important;
	padding: 0 !important;
	counter-reset: step;
}
.cf-steps li {
	flex: 1;
	list-style: none !important; /* サイト共通CSSの番号付きリスト表示を打ち消す */
	margin: 0 !important;
	position: relative;
	padding: 8px 0;
	text-align: center;
	background: #e8eeed;
	color: #666;
	font-weight: bold;
	font-size: 93%;
	counter-increment: step;
}
.cf-steps li + li { margin-left: 4px !important; }
.cf-steps li::before { content: counter(step) ". "; }
.cf-steps li[aria-current="step"] { background: #168f95; color: #fff; }

/* 入力表 */
.contact-form table { table-layout: fixed; width: auto; margin-right: 10px; }
.contact-form table, .contact-form .cf-confirm { width: calc(100% - 20px); }
.contact-form th { width: 190px; vertical-align: top; text-align: left; }
.contact-form td { vertical-align: top; }
.contact-form th label { display: inline; }

.cf-req, .cf-opt {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 2px;
	font-size: 78%;
	font-weight: normal;
	line-height: 1.4;
	vertical-align: 1px;
}
.cf-req { background: #168f95; color: #fff; }
.cf-opt { background: #e2e2e2; color: #555; }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
	box-sizing: border-box;
	max-width: 100%;
	padding: 6px 8px;
	border: 1px solid #aaa;
	border-radius: 3px;
	font-size: 16px; /* iOS で入力時に拡大されないよう16px以上 */
	font-family: inherit;
	background: #fff;
	color: #333;
}
.contact-form .w-full { width: 100%; }
.contact-form .w-mid { width: 320px; }
.contact-form .w-short { width: 160px; }
.contact-form textarea { width: 100%; min-height: 10em; resize: vertical; line-height: 1.6; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: 2px solid #1665be;
	outline-offset: 1px;
	border-color: #1665be;
}
.contact-form [aria-invalid="true"] { border-color: #c00; background: #fff6f6; }

.cf-example { margin: 4px 0 0 !important; font-size: 85%; color: #666; }
.cf-counter { margin: 4px 0 0 !important; font-size: 85%; color: #666; text-align: right; }
.cf-counter.is-over { color: #c00; font-weight: bold; }

/* 項目直下のエラーと警告（色だけでなく記号と文言で示す） */
.cf-err, .cf-warn {
	margin: 6px 0 0 !important;
	font-size: 93%;
	line-height: 1.5;
}
.cf-err { color: #c00; font-weight: bold; }
.cf-err::before { content: "\26A0\FE0E  "; }
.cf-warn { color: #8a5a00; }
.cf-warn::before { content: "\2139\FE0E  "; }
.cf-link-button {
	margin-left: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: #1665be;
	text-decoration: underline;
	font-size: inherit;
	cursor: pointer;
}

/* 同意 */
.cf-consent { margin: 20px 10px 0 !important; padding: 12px 15px; background: #f4f7f6; border: 1px solid #d5dfdd; }
.cf-consent label { cursor: pointer; }
.cf-consent input { margin-right: 6px; transform: scale(1.2); }

/* エラー一覧 */
.cf-summary {
	margin: 20px 10px 0;
	padding: 12px 15px;
	border: 2px solid #c00;
	background: #fff6f6;
}
.cf-summary h3 { margin: 0; font-size: 100%; color: #c00; }
.cf-summary ul { margin: 8px 0 0 !important; padding-left: 1.4em; }
.cf-summary li { margin: 2px 0; }

/* ボタン */
.cf-actions { margin: 25px 0 0 !important; text-align: center; }
.cf-actions button + button { margin-left: 16px; }
.cf-btn {
	min-width: 200px;
	padding: 12px 24px;
	border-radius: 4px;
	font-size: 16px;
	font-weight: bold;
	font-family: inherit;
	cursor: pointer;
}
.cf-btn-primary {
	border: 1px solid #0f6f74;
	background: linear-gradient(#1fa3a9, #0f6f74);
	color: #fff;
}
.cf-btn-primary:hover:not(:disabled) { background: linear-gradient(#27b1b7, #127c81); }
.cf-btn-secondary {
	border: 1px solid #aaa;
	background: linear-gradient(#f5f5f5, #d5d5d5);
	color: #333;
}
.cf-btn:disabled { opacity: .5; cursor: not-allowed; }
.cf-btn:focus-visible { outline: 3px solid #1665be; outline-offset: 2px; }

/* 確認画面 */
.cf-confirm td { white-space: pre-wrap; word-break: break-all; }
.cf-turnstile { margin: 20px 0 0; display: flex; justify-content: center; min-height: 65px; }
.cf-note { margin-top: 10px !important; text-align: center; font-size: 93%; color: #555; }

/* 送信エラー・完了 */
.cf-alert {
	margin: 20px 10px 0 !important;
	padding: 12px 15px;
	border-left: 4px solid #c00;
	background: #fff6f6;
	line-height: 1.7;
}
.cf-done { margin: 20px 10px 0; padding: 20px; border: 1px solid #98afab; background: #f7faf9; line-height: 1.8; }
.cf-done h3 { margin: 0 0 10px; font-size: 130%; color: #168f95; }
.cf-receipt { font-size: 120%; font-weight: bold; letter-spacing: .05em; }

/* bot 用のおとり項目。画面にも読み上げにも出さない */
.cf-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.cf-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 電話でのお問い合わせ */
.cf-phone { margin: 15px 10px 0 !important; }
.cf-phone dt { font-weight: bold; }
.cf-phone dd { margin: 2px 0 0; }
