/* お問い合わせ・採用応募フォーム（サイトのブランドカラーに合わせたデザイン） */
.fm-section {padding-bottom: 6rem;}
.fm-lead {max-width: 46em;margin: -1rem auto 2rem;text-align: center;font-size: 0.95rem;line-height: 2;font-weight: normal;}

/* ステップ表示 */
.fm-steps {list-style: none;margin: 0 auto 2rem;padding: 0;display: flex;justify-content: center;gap: 0;max-width: 420px;}
.fm-steps li {flex: 1;margin: 0;text-align: center;font-size: 0.85rem;font-weight: 700;color: #999;position: relative;line-height: 1.4;}
.fm-steps li span {display: flex;align-items: center;justify-content: center;width: 34px;height: 34px;margin: 0 auto 0.3rem;border-radius: 50%;background: #ddd;color: #fff;font-family: "Jost", sans-serif;position: relative;z-index: 1;}
.fm-steps li::before {content: "";position: absolute;top: 17px;left: -50%;width: 100%;height: 2px;background: #ddd;}
.fm-steps li:first-child::before {display: none;}
.fm-steps li.now {color: var(--primary-color);}
.fm-steps li.now span {background: var(--primary-color);box-shadow: 0 0 0 4px rgba(10,80,161,0.18);}
.fm-steps li.done {color: var(--primary-color);}
.fm-steps li.done span {background: var(--primary-color);}
.fm-steps li.done::before, .fm-steps li.now::before {background: var(--primary-color);}

/* カード */
.fm-card {max-width: 820px;margin: 0 auto;background: #fff;border-top: 4px solid var(--primary-color);padding: 2rem 1.3rem 2rem;box-shadow: 3px 3px 14px rgba(0,0,0,0.1);}
	@media screen and (min-width:700px) {.fm-card {padding: 3rem 3.5rem;}}

/* 項目 */
.fm-field {margin-bottom: 0.9rem;}
.fm-field > label, .fm-field legend {display: block;font-weight: 700;font-size: 1rem;line-height: 1.6;margin-bottom: 0.5rem;padding: 0;}
.fm-field fieldset {border: 0;margin: 0;padding: 0;min-width: 0;}
.req, .opt {display: inline-block;margin-left: 0.6em;padding: 0 0.6em;border-radius: 3px;font-size: 0.7rem;font-weight: 700;line-height: 1.7;vertical-align: 0.1em;}
.req {background: #c62828;color: #fff;}
.opt {background: #e5e5e5;color: #555;}
.fm-field input[type=text], .fm-field input[type=email], .fm-field input[type=tel], .fm-field input[type=date], .fm-field textarea {
	display: block;width: 100%;font: inherit;font-size: 16px;font-weight: 500;line-height: 1.6;color: var(--base-inverse-color);
	background: #fafafa;border: 2px solid #d3d3d3;border-radius: 6px;padding: 0.75rem 0.9rem;min-height: 3rem;transition: border-color .2s, box-shadow .2s, background .2s;appearance: none;-webkit-appearance: none;
}
.fm-field textarea {resize: vertical;min-height: 9rem;}
.fm-field input:focus, .fm-field textarea:focus {outline: none;background: #fff;border-color: var(--primary-color);box-shadow: 0 0 0 4px rgba(10,80,161,0.15);}
.fm-field input::placeholder, .fm-field textarea::placeholder {color: #aaa;font-weight: normal;}
.fm-note {margin: 0.4rem 0 0;font-size: 0.8rem;line-height: 1.7;color: #666;font-weight: normal;}
.fm-count {text-align: right;font-size: 0.75rem;color: #888;margin-top: 0.2rem;}
.fm-count.over {color: #c62828;font-weight: 700;}

/* ラジオ（大きくタップしやすい選択肢） */
.fm-choices {display: flex;flex-wrap: wrap;gap: 0.6rem;}
.fm-choice {position: relative;margin: 0;cursor: pointer;}
.fm-choice input {position: absolute;opacity: 0;width: 1px;height: 1px;}
.fm-choice span {display: block;padding: 0.65rem 1.2rem;border: 2px solid #d3d3d3;border-radius: 6px;background: #fafafa;font-weight: 600;font-size: 0.95rem;line-height: 1.5;transition: .2s;}
.fm-choice:hover span {border-color: var(--primary-color);}
.fm-choice input:checked + span {border-color: var(--primary-color);background: #eaf1fa;color: var(--primary-color);box-shadow: inset 0 0 0 1px var(--primary-color);}
.fm-choice input:focus-visible + span {box-shadow: 0 0 0 4px rgba(10,80,161,0.25);}

/* エラー */
/* エラー表示欄は常に領域を確保（表示/非表示でレイアウトがずれてクリックを外すのを防ぐ） */
.fm-error {margin: 0.3rem 0 0;min-height: 1.6em;font-size: 0.85rem;font-weight: 700;color: #c62828;line-height: 1.6;}
.fm-field.has-error input[type=text], .fm-field.has-error input[type=email], .fm-field.has-error input[type=tel], .fm-field.has-error input[type=date], .fm-field.has-error textarea {border-color: #c62828;background: #fff6f6;}
.fm-field.has-error .fm-choice span {border-color: #e8a5a5;}
.fm-alert {max-width: 820px;margin: 0 auto 1.5rem;padding: 1rem 1.3rem;border-left: 5px solid #c62828;background: #fff;box-shadow: 2px 2px 10px rgba(0,0,0,0.08);color: #c62828;line-height: 1.8;}
.fm-alert ul {margin: 0.4rem 0 0;padding-left: 1.2rem;}
.fm-alert li {margin: 0;font-size: 0.9rem;font-weight: 500;}
.fm-alert a {color: #c62828;}
.fm-alert:focus {outline: none;}

/* 個人情報・同意 */
.fm-privacy {margin: 0 0 1rem;font-size: 0.85rem;border: 1px solid #ddd;border-radius: 6px;padding: 0.6rem 1rem;background: #fafafa;}
.fm-privacy summary {cursor: pointer;font-weight: 700;color: var(--primary-color);}
.fm-privacy p {margin: 0.6rem 0 0.2rem;line-height: 1.8;font-weight: normal;}
.fm-consent {display: flex;align-items: flex-start;gap: 0.7rem;cursor: pointer;font-weight: 700;line-height: 1.6;}
.fm-consent input {flex: 0 0 auto;width: 1.4rem;height: 1.4rem;margin: 0.1rem 0 0;accent-color: var(--primary-color);}
.fm-field[data-type=consent] {margin-bottom: 0.8rem;}

/* ボタン */
.fm-actions {margin-top: 2rem;text-align: center;}
.fm-btn {display: inline-block;min-width: 16rem;max-width: 100%;padding: 1rem 2rem;border: 2px solid var(--primary-color);border-radius: 100px;font: inherit;font-size: 1.05rem;font-weight: 700;line-height: 1.4;text-decoration: none;text-align: center;cursor: pointer;transition: .25s;}
.fm-btn.primary {background: var(--primary-color);color: #fff;}
.fm-btn.primary:hover {background: #083f80;border-color: #083f80;}
.fm-btn.ghost {background: #fff;color: var(--primary-color);}
.fm-btn.ghost:hover {background: #eaf1fa;}
.fm-btn[disabled] {opacity: .6;cursor: wait;}

/* 確認画面 */
.fm-confirm {margin: 0 0 1rem;}
.fm-confirm dt {margin: 0;padding: 1rem 0 0.2rem;font-size: 0.85rem;font-weight: 700;color: #666;border-top: 1px dashed #d5d5d5;}
.fm-confirm dt:first-child {border-top: 0;padding-top: 0;}
.fm-confirm dd {margin: 0;padding: 0 0 0.6rem;font-size: 1rem;line-height: 1.8;word-break: break-word;}
.fm-confirm dd.empty {color: #aaa;}
.fm-captcha {display: flex;justify-content: center;margin-top: 1.5rem;}
.fm-back {text-align: center;margin-top: 1rem;}
.fm-back .fm-btn {min-width: 12rem;padding: 0.7rem 1.5rem;font-size: 0.95rem;}

/* 完了画面 */
.fm-done {text-align: center;}
.fm-done h3 {font-size: 1.5rem;margin: 0.5rem 0 1rem;}
.fm-done p {line-height: 1.9;font-weight: normal;}
.fm-check {width: 72px;height: 72px;margin: 0 auto;border-radius: 50%;background: var(--primary-color);color: #fff;font-size: 2.2rem;line-height: 72px;font-weight: 700;}

/* ハニーポット（画面外へ。display:noneにしない） */
.fm-hp {position: absolute !important;left: -9999px;top: auto;width: 1px;height: 1px;overflow: hidden;}

	@media screen and (max-width:599px) {
	.fm-btn {width: 100%;min-width: 0;}
	.fm-choices {flex-direction: column;}
	.fm-choice span {padding: 0.8rem 1rem;}
	}

/* ヘッダーは position:absolute でページ上に重なるため、ヘッダーの高さ（スマホ60px／600px以上90px）＋余白を確保 */
.fm-section {padding-top: calc(60px + 2.5rem);}
	@media screen and (min-width:600px) {.fm-section {padding-top: calc(90px + 3rem);}}
.fm-consent span .req {margin-left: 0.5em;}

.fm-pow {margin: 0.8rem 0 0;text-align: center;font-size: 0.85rem;color: var(--primary-color);font-weight: 700;min-height: 1.4em;}
.fm-noscript {margin: 1rem 0 0;padding: 0.8rem 1rem;border-left: 5px solid #c62828;background: #fff6f6;color: #c62828;font-size: 0.9rem;font-weight: 700;line-height: 1.8;}


/* 電話ボタン */
.fm-tel {margin: 1.8rem 0 0;text-align: center;}
.fm-tel-lead {display: block;margin-bottom: 0.6rem;font-size: 0.9rem;font-weight: 500;line-height: 1.6;}
.fm-tel-btn {display: inline-flex;align-items: center;justify-content: center;gap: 0.8em;min-width: 18rem;max-width: 100%;padding: 0.8rem 1.6rem;border: 2px solid var(--primary-color);border-radius: 100px;background: #fff;color: var(--primary-color);text-decoration: none;font-weight: 700;line-height: 1.4;white-space: nowrap;transition: .25s;}
.fm-tel-btn .t {font-size: 0.95rem;}
.fm-tel-btn .n {font-family: "Jost", sans-serif;font-size: 1.25rem;letter-spacing: 0.04em;}
.fm-tel-btn:hover {background: #eaf1fa;}
	@media screen and (max-width:599px) {
	.fm-tel-btn {display: flex;flex-direction: column;gap: 0.1em;width: 100%;min-width: 0;padding: 0.7rem 1rem;border-radius: 12px;}
	.fm-tel-btn .n {font-size: 1.5rem;}
	}

/* 相互リンク（お問い合わせ⇔採用応募） */
.fm-switch {max-width: 820px;margin: 1.5rem auto 0;text-align: center;}
.fm-switch p {margin: 0 0 0.6rem;font-size: 0.9rem;font-weight: 500;}


/* エラーページ（404） */
.err-section {text-align: center;}
.err-code {margin: 0;font-family: "Jost", sans-serif;font-size: 6.5rem;font-weight: 600;line-height: 1;letter-spacing: 0.05em;color: var(--primary-color);opacity: 0.9;}
.err-title {margin: 0.6rem 0 0;font-size: 1.5rem;line-height: 1.6;}
.err-lead {margin: 1rem auto 0;max-width: 38em;font-size: 0.95rem;line-height: 2;font-weight: normal;}
.err-actions {margin: 1.8rem 0 2.2rem;display: flex;flex-wrap: wrap;gap: 0.8rem;justify-content: center;}
.err-card {text-align: left;}
.err-h2 {margin: 0 0 0.8rem;padding-bottom: 0.6rem;border-bottom: 1px solid #ddd;font-size: 1.1rem;}
.err-links {list-style: none;margin: 0;padding: 0;display: grid;grid-template-columns: 1fr;gap: 0 2rem;}
	@media screen and (min-width:700px) {.err-links {grid-template-columns: 1fr 1fr;}}
.err-links li {margin: 0;border-bottom: 1px dashed #d5d5d5;}
.err-links a {display: block;padding: 0.7rem 0.2rem 0.7rem 1.2rem;position: relative;color: var(--base-inverse-color);text-decoration: none;font-weight: 600;font-size: 0.92rem;line-height: 1.6;}
.err-links a::before {content: "";position: absolute;left: 0.1rem;top: 50%;width: 0.4rem;height: 0.4rem;margin-top: -0.28rem;border-top: 2px solid var(--primary-color);border-right: 2px solid var(--primary-color);transform: rotate(45deg);}
.err-links a:hover {color: var(--primary-color);}
	@media screen and (max-width:599px) {
	.err-code {font-size: 4.8rem;}
	.err-title {font-size: 1.25rem;}
	.err-actions .fm-btn {width: 100%;}
	}
