/* デザインプレビューの問い合わせ導線と最下部フッターを共通レイアウトへ適用する。 */
.contact-panel {
    --contact-primary: #d7567d;
    --contact-primary-dark: #bd4266;
    --contact-text: #222222;
    --contact-text-muted: #777777;
    padding: 72px 24px 64px;
    background: #fff;
    color: var(--contact-text);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, sans-serif;
}

.contact-panel *,
.contact-panel *::before,
.contact-panel *::after {
    box-sizing: border-box;
}

.contact-panel__inner {
    width: min(100%, 980px);
    margin: 0 auto;
    text-align: center;
}

.contact-panel h2,
.contact-panel h3,
.contact-panel p {
    margin: 0;
}

.contact-panel h2 {
    color: var(--contact-text);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.contact-panel__lead {
    margin-top: 16px !important;
    color: var(--contact-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.contact-panel__lead a {
    color: var(--contact-primary);
    font-weight: 700;
}

.contact-panel__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.contact-panel__item {
    min-height: 208px;
    padding: 0 30px 28px;
    border: 1px solid #f0e3e8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(79, 46, 57, .08);
}

.contact-panel__item h3 {
    display: flex;
    min-height: 54px;
    margin: 0 -30px 22px;
    padding: 12px 18px;
    align-items: center;
    justify-content: center;
    border-radius: 11px 11px 0 0;
    background: var(--contact-primary);
    color: #fff;
    font-family: "Zen Maru Gothic", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-panel__organization {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
}

.contact-panel__tel {
    display: flex;
    margin-top: 14px !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.contact-panel__tel img {
    flex: none;
    width: 30px;
    height: 30px;
}

.contact-panel__tel a {
    color: var(--contact-primary);
    font-family: "Zen Maru Gothic", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.35;
    text-decoration: none;
}

.contact-panel__hours,
.contact-panel__form-note {
    margin-top: 12px !important;
    color: var(--contact-text-muted);
    font-size: 12px;
    line-height: 1.65;
}

.contact-panel__action {
    display: flex;
    min-height: 52px;
    margin-top: 28px;
    padding: 10px 16px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--contact-primary);
    color: #fff !important;
    font-family: "Zen Maru Gothic", "BIZ UDPGothic", "Yu Gothic", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
}

.contact-panel__action:hover,
.contact-panel__action:focus-visible {
    background: var(--contact-primary-dark);
}

#footer.footer--contact-panel {
    height: auto;
    background: #303030;
}

.inquiry.inquiry--contact-panel {
    padding-top: 0;
}

#footer.footer--contact-panel .mini-site-map {
    display: flex;
    margin: 0;
    padding: 28px 24px 12px;
    justify-content: center;
    gap: 0 36px;
    background: #303030;
}

#footer.footer--contact-panel .mini-site-map ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    list-style: none;
}

#footer.footer--contact-panel .mini-site-map li,
#footer.footer--contact-panel .mini-site-map p {
    margin: 0;
}

#footer.footer--contact-panel .mini-site-map a {
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

#footer.footer--contact-panel #copywriter {
    margin: 0;
    padding: 10px 24px 24px;
    background: #303030;
    color: #b8b8b8;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* ログイン前・エラー画面は既存のログイン用問い合わせカード構成を維持する。 */
.login-site-footer .contact-panel {
    padding: 68px 24px 60px;
    background: #f7f7f7;
}

.login-site-footer .contact-panel__inner {
    width: min(100%, 720px);
    padding: 44px 40px;
    border: 1px solid #f0e3e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(79, 46, 57, .11);
}

.login-site-footer .contact-panel h2 {
    font-size: 22px;
}

.login-site-footer .contact-panel__organization {
    margin-top: 18px !important;
    font-size: 15px;
}

.login-site-footer .contact-panel__tel {
    margin-top: 16px !important;
}

.login-site-footer .contact-panel__tel img {
    width: 34px;
    height: 34px;
}

.login-site-footer .contact-panel__tel a {
    font-size: 24px;
}

.login-site-footer .contact-panel__hours {
    margin-top: 14px !important;
    font-size: 13px;
}

.login-site-footer .contact-panel__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.login-site-footer .contact-panel__actions .contact-panel__action {
    margin-top: 0;
}

/* ログイン後画面でもログイン画面と同じフッターナビゲーションを表示する。 */
#footer.login-site-footer .login-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin: 0;
    padding: 34px 24px;
    background: var(--login-footer, #3f3f3f);
}

#footer.login-site-footer .login-footer-nav a {
    color: #f7f7f7;
    font-size: 13px;
    text-decoration: none;
}

#footer.login-site-footer .login-footer-nav a:hover,
#footer.login-site-footer .login-footer-nav a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* クライアント指定の文字組みと文字階層。 */
.contact-panel,
#footer.footer--contact-panel {
    font-family: "Yu Gothic", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", メイリオ, Meiryo, sans-serif !important;
}

.contact-panel {
    color: #666666;
    font-size: 15px;
}

.contact-panel h2,
.contact-panel h3 {
    color: #222222;
}

.contact-panel h2 {
    font-size: 20px;
}

.contact-panel__lead,
.contact-panel__form-note,
.contact-panel__hours {
    color: #777777;
    font-size: 13px;
}

.contact-panel__lead a,
#footer.footer--contact-panel .mini-site-map a,
#footer.login-site-footer .login-footer-nav a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#footer.login-site-footer .login-site-footer__copyright {
    margin: 0;
    padding: 18px 24px;
    background: #222;
    color: #c9c9c9;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-panel {
        padding: 52px 16px 48px;
    }

    .contact-panel h2 {
        font-size: 18px;
    }

    .contact-panel__lead {
        font-size: 12px;
        line-height: 1.7;
    }

    .contact-panel__body {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .contact-panel__item {
        min-height: 0;
        padding: 0 20px 24px;
    }

    .contact-panel__item h3 {
        min-height: 48px;
        margin: 0 -20px 18px;
        font-size: 14px;
    }

    .contact-panel__organization {
        font-size: 13px;
    }

    .contact-panel__tel a {
        font-size: 18px;
    }

    .contact-panel__action {
        margin-top: 20px;
    }

    .login-site-footer .contact-panel {
        padding: 48px 16px;
    }

    .login-site-footer .contact-panel__inner {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .login-site-footer .contact-panel h2 {
        font-size: 19px;
    }

    .login-site-footer .contact-panel__organization {
        margin-top: 16px !important;
        font-size: 14px;
    }

    .login-site-footer .contact-panel__tel {
        margin-top: 14px !important;
    }

    .login-site-footer .contact-panel__tel a {
        font-size: 20px;
    }

    .login-site-footer .contact-panel__hours {
        font-size: 12px;
    }

    .login-site-footer .contact-panel__actions {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
    }

    #footer.login-site-footer .login-footer-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: center;
        gap: 10px 18px;
        padding: 28px 16px;
    }

    #footer.login-site-footer .login-footer-nav a {
        font-size: 12px;
    }

    #footer.footer--contact-panel .mini-site-map {
        display: grid;
        padding: 26px 20px 8px;
        gap: 8px;
    }

    #footer.footer--contact-panel .mini-site-map ul {
        gap: 8px 16px;
    }

    #footer.footer--contact-panel .mini-site-map a {
        font-size: 12px;
    }
}
