/* =========================================================
   Fujimotors 公開フォーム共通スタイル（contact / recruit-apply）
   WordPress/Elementor 由来のマークアップを脱却した手書きCSS。
   配色はサイトのグローバルカラーに準拠。
   ========================================================= */
.fm-form-page {
    --fm-primary: #0063B1;
    --fm-primary-dark: #00518f;
    --fm-accent: #377EE4;
    --fm-light: #EFF8FF;
    --fm-border: #DDE8F2;
    --fm-text: #333333;
    --fm-muted: #7A7A7A;
    --fm-danger: #d63b3b;
    color: var(--fm-text);
}

/* ---- ヒーローバナー ---- */
.fm-contact-page,
.fm-profile-page,
.fm-form-page.fm-recruit {
    font-size: 14px;
    line-height: 1.5;
}

.fm-hero {
    position: relative;
    background: url('/images/2020/07/index_service03.jpg') center / cover no-repeat;
    background-color: #1a2330;
}
.fm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.fm-hero__inner {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 72px 16px;
}
/* 見出しの specificity を上げてベースCSSに確実に勝たせる */
.fm-form-page .fm-hero__title {
    margin: 0 0 14px;
    font-size: 30px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
}
.fm-form-page .fm-hero__sub {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    letter-spacing: 0.08em;
    color: #fff;
}
.fm-form-page .fm-hero__sub::before,
.fm-form-page .fm-hero__sub::after {
    content: "";
    width: 36px;
    height: 1px;
    background: #fff;
}

/* ---- コンテナ ---- */
/* ---- 上部ページフレーム ---- */
.fm-frame-band {
    background-image: url('/images/2020/07/service02_form_top_bg.png');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    padding: 80px 0;
}
.fm-frame-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    background: #fff;
    box-sizing: border-box;
}
.fm-frame-hero {
    margin: 0 0 40px;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}
.fm-frame-hero .fm-hero__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 350px;
    padding: 0;
}
.fm-form-page .fm-frame-hero .fm-hero__title {
    margin: 0;
    line-height: 1;
}
.fm-form-page .fm-frame-hero .fm-hero__sub {
    width: 190px;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: 0;
}
.fm-form-page .fm-frame-hero .fm-hero__sub::before,
.fm-form-page .fm-frame-hero .fm-hero__sub::after {
    flex: 1 1 auto;
    width: auto;
    height: 2px;
}
.fm-contact-page .fm-contact-hero {
    background-image: url('/images/2020/07/index_service03.jpg');
}
.fm-contact-page .fm-contact-container {
    max-width: none;
    padding: 0;
}
.fm-contact-page .fm-lead {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 21px;
}
.fm-contact-page .fm-form {
    max-width: 800px;
    margin: 0 auto;
}
.fm-recruit-apply-page .fm-recruit-apply-hero {
    background-image: url('/images/2020/07/index_service03.jpg');
}
.fm-recruit-apply-page .fm-recruit-apply-container {
    max-width: none;
    padding: 0;
}
.fm-recruit-apply-page .fm-form {
    max-width: 800px;
    margin: 0 auto;
}

.fm-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 72px;
}
.fm-lead {
    text-align: center;
    margin: 0 0 28px;
    color: var(--fm-text);
}
.fm-note {
    color: var(--fm-accent);
    font-weight: bold;
    text-align: center;
    margin: -16px 0 24px;
    font-size: 0.93rem;
}

/* ---- 採用担当直通の電話ボックス ---- */
.fm-phonebox {
    max-width: 420px;
    margin: 0 auto 28px;
    text-align: center;
    border: 2px solid var(--fm-accent);
    border-radius: 8px;
    padding: 20px 24px;
    box-sizing: border-box;
}
.fm-phonebox__label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--fm-accent);
    letter-spacing: 0.08em;
    margin: 0 0 6px;
}
.fm-phonebox__tel {
    margin: 0 0 10px;
}
.fm-phonebox__tel a {
    font-size: 1.6rem;
    font-weight: bold;
    color: inherit;
    text-decoration: none;
}
.fm-phonebox__person {
    font-size: 1rem;
    margin: 0 0 2px;
}
.fm-phonebox__hours {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

/* ---- フォーム本体 ---- */
.fm-form {
    width: 100%;
}
.fm-field {
    margin-bottom: 18px;
}
.fm-field > label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--fm-text);
}
.fm-field .fm-req {
    color: var(--fm-danger);
    font-size: 0.85em;
    margin-left: 4px;
}
.fm-field input,
.fm-field textarea,
.fm-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--fm-border);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--fm-text);
    background: #fff;
    font-family: inherit;
}
.fm-field textarea {
    resize: vertical;
}
.fm-field input:focus,
.fm-field textarea:focus,
.fm-field select:focus {
    outline: none;
    border-color: var(--fm-primary);
    box-shadow: 0 0 0 3px rgba(0, 99, 177, 0.12);
}
.fm-field.has-error input,
.fm-field.has-error textarea,
.fm-field.has-error select {
    border-color: var(--fm-danger);
}
.fm-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--fm-danger);
}

/* ハニーポット（人間には見えない） */
.fm-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ---- エラーサマリー ---- */
.fm-alert {
    background: #fdecea;
    border: 1px solid #f5c2c0;
    color: #a4242b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.fm-alert ul {
    margin: 0;
    padding-left: 1.2em;
}
.fm-alert ul:empty {
    display: none;
}

/* ---- 確認画面 ---- */
.fm-confirm-note {
    background: var(--fm-light);
    border: 1px solid var(--fm-accent);
    color: var(--fm-text);
    padding: 12px 16px;
    border-radius: 6px;
    margin: 0 0 18px;
}
.fm-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
}
.fm-confirm-table th {
    width: 180px;
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    color: var(--fm-text);
    border-bottom: 1px solid var(--fm-border);
    white-space: nowrap;
}
.fm-confirm-table td {
    padding: 12px 14px;
    color: var(--fm-text);
    border-bottom: 1px solid var(--fm-border);
    word-break: break-word;
}
.fm-confirm-table tr:last-child th,
.fm-confirm-table tr:last-child td {
    border-bottom: none;
}
.fm-confirm-table .fm-confirm-message {
    line-height: 1.6;
}

/* ---- ボタン ---- */
.fm-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 6px;
    background: var(--fm-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.fm-btn:hover {
    background: var(--fm-primary-dark);
}
.fm-btn--sub {
    background: #8a9099;
}
.fm-btn--sub:hover {
    background: #6f757d;
}
.fm-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.fm-buttons .fm-btn {
    flex: 1;
}

@media screen and (max-width: 600px) {
    .fm-hero__inner { padding: 52px 16px; }
    .fm-hero__title { font-size: 24px; }
    .fm-confirm-table th { width: 110px; padding: 10px; }
    .fm-confirm-table td { padding: 10px; }
}

@media screen and (max-width: 1024px) {
    .fm-frame-band {
        background-size: 1300px auto;
        padding: 50px;
    }
    .fm-frame-hero .fm-hero__inner {
        min-height: 160px;
    }
}

@media screen and (max-width: 767px) {
    .fm-frame-band {
        background-size: 1100px auto;
        padding: 40px 25px 30px;
    }
    .fm-frame-shell {
        padding: 20px;
    }
    .fm-frame-hero {
        margin-bottom: 20px;
    }
    .fm-frame-hero .fm-hero__inner {
        min-height: 135px;
    }
    .fm-form-page .fm-frame-hero .fm-hero__title {
        font-size: 24px;
        line-height: 24px;
    }
    .fm-contact-page .fm-lead {
        font-size: 13px;
        text-align: justify;
    }
}

/* ===== Thanks / 完了ページ ===== */
.fm-thanks {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.9;
    color: var(--fm-text);
}
.fm-thanks p {
    margin: 0 0 10px;
}
.fm-thanks .fm-btn {
    width: auto;
    display: inline-block;
    margin-top: 28px;
    padding: 14px 44px;
}

/* ===== サイトマップ ===== */
.fm-sitemap {
    max-width: 720px;
    margin: 0 auto;
}
.fm-sitemap ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fm-sitemap > ul > li {
    border-bottom: 1px solid #e3e8ef;
}
.fm-sitemap a {
    display: block;
    padding: 13px 4px;
    color: var(--fm-primary);
    text-decoration: none;
}
.fm-sitemap > ul > li > a {
    font-weight: 700;
}
.fm-sitemap a:hover {
    text-decoration: underline;
}
.fm-sitemap ul ul {
    padding-left: 20px;
}
.fm-sitemap ul ul a {
    padding: 10px 4px;
    font-size: 0.95em;
    color: var(--fm-text);
}
.fm-sitemap ul ul a::before {
    content: "\2014\00a0"; /* — */
    color: var(--fm-primary);
    opacity: 0.55;
}

/* ===== 文章ページ（個人情報保護方針など）===== */
.fm-prose {
    max-width: 820px;
    margin: 0 auto;
    line-height: 1.9;
    color: var(--fm-text);
}
.fm-prose > p {
    margin: 0 0 20px;
}
.fm-prose h2 {
    margin: 38px 0 14px;
    padding-left: 14px;
    border-left: 4px solid var(--fm-primary);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--fm-text);
}
.fm-prose > h2:first-child {
    margin-top: 0;
}
.fm-prose ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.fm-prose ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
}
.fm-prose ul li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--fm-primary);
}
