/* ========================================
   フッター
   ======================================== */
.site-footer,
#sf.site-footer {
    /* 可視化を確保するための基本スタイル */
    position: relative;
    z-index: 10;
    width: 100%;
    background: var(--c-secondary);
    color: var(--c-white);
    padding: var(--space-8) 0 var(--space-4);
    /* 非表示にならないように強制 */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* フレックスレイアウトで最下部に配置 */
    flex-shrink: 0;
    /* 他の要素の後ろに隠れないように */
    clear: both;
    /* デバッグ用（問題が解決したら削除） */
    /* outline: 1px solid red; */
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    margin-bottom: calc(var(--space-8) + -3rem);
    margin-top: 50px;
}

.footer-col--company {
    grid-column: 1;
}

.footer-col--sitemap {
    grid-column: span 1;
    min-width: 0;
}

.footer-col--social {
    grid-column: 6;
}

.footer-logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    display: block;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-address__text,
.footer-address__contact {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-weight: normal;
    font-style: normal !important;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--c-white);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: calc(var(--space-2) + 4px);
}

.footer-link {
    color: var(--c-gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-link:hover {
    color: var(--c-accent-blue);
}

.footer-contact {
    margin-bottom: var(--space-6);
}

.footer-contact__btn {
    display: block;
    background: var(--c-white);
    color: var(--c-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--space-2);
    transition: all 0.3s ease;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-contact__btn:hover {
    background-color: #0F71FF;
    /* 青色に統一 */
    color: #fff;
    /* 文字を白に */
    box-shadow: 0 4px 12px rgba(15, 113, 255, 0.3);
    /* 軽い発光感を追加 */
    transform: translateY(-2px);
}

.footer-contact__btn--entry {
    background: #0F71FF;
    color: #fff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.footer-contact__btn--entry::before {
    content: "";
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.5s ease-in-out;
    z-index: 0 !important;
    pointer-events: none !important;
    border-radius: inherit;
}

.footer-contact__btn--entry {
    z-index: 1;
    position: relative !important;
}

.footer-contact__btn--entry>* {
    position: relative !important;
    z-index: 2 !important;
    mix-blend-mode: normal !important;
}

.footer-contact__btn--entry:hover {
    background-color: #0F71FF !important;
    color: #000000 !important;
}

/* タップ端末/キーボード操作でも確実に可視化 */
.site-footer .footer-contact .footer-contact__btn--entry:hover,
.site-footer .footer-contact .footer-contact__btn--entry:active,
.site-footer .footer-contact .footer-contact__btn--entry:focus,
.site-footer .footer-contact .footer-contact__btn--entry:focus-visible {
    color: #000000 !important;
}

.footer-contact__btn--entry:hover::before {
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
    z-index: 0 !important;
}

.footer-contact__btn--entry:hover * {
    color: #000000 !important;
    z-index: 2 !important;
    box-shadow: none !important;
}

.footer-contact__btn--entry:focus-visible::before {
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
    z-index: 0 !important;
}

.footer-contact__btn--entry:focus-visible,
.footer-contact__btn--entry:focus-visible * {
    color: #000000 !important;
    z-index: 2 !important;
}

.footer-social__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-social__links {
    display: flex;
    gap: var(--space-3);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--c-white);
    color: var(--c-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social__link:hover {
    background: var(--c-accent-blue);
    color: var(--c-white);
    transform: translateY(-2px);
}

.footer-social__icon {
    font-size: 1.2rem;
}

.footer-copy {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-gray-dark);
    /* 可視化を確保 */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-copy__text {
    font-size: 0.9rem;
    color: var(--c-gray-light);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    /* テキストが確実に表示されるように */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.6;
}

/* 旧スタイルとの互換性のため残しておく */
.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.footer-logo {
    font-weight: 900;
    font-size: 18px;
}

.footer-nav .footer-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    opacity: .92;
}

.footer-bottom {
    margin-top: 24px;
    font-size: 12px;
    opacity: .7;
}

@media (max-width: 840px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer address font-style fix */
.footer-address {
    font-style: normal !important;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
    background: var(--c-secondary);
    color: var(--c-white);
    padding: var(--space-4) 0 var(--space-4);
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1.5fr;
    margin-bottom: calc(var(--space-8) + -3rem);
    margin-top: 50px;
}

.footer-col--company {
    grid-column: 1;
}

.footer-col--sitemap {
    grid-column: span 1;
    min-width: 0;
}

.footer-col--social {
    grid-column: 6;
}

.footer-logo__text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    display: block;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-address__text,
.footer-address__contact {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
    font-weight: normal;
}

.footer-heading {
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--c-white);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: calc(var(--space-2) + 4px);
}

.footer-link {
    color: var(--c-gray-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-link:hover {
    color: var(--c-accent-blue);
}

.footer-contact {
    margin-bottom: var(--space-6);
}

.footer-contact__btn {
    display: block;
    background: var(--c-white);
    color: var(--c-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: var(--space-2);
    transition: all 0.3s ease;
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-contact__btn:hover {
    background-color: #0F71FF;
    /* 青色に統一 */
    color: #fff;
    /* 文字を白に */
    box-shadow: 0 4px 12px rgba(15, 113, 255, 0.3);
    /* 軽い発光感を追加 */
    transform: translateY(-2px);
}

.footer-contact__btn--entry {
    background: #0F71FF;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-contact__btn--entry::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #FFFFFF;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.5s ease-in-out;
    z-index: 0 !important;
    pointer-events: none !important;
}

.footer-contact__btn--entry {
    z-index: 1;
    position: relative !important;
}

.footer-contact__btn--entry>* {
    position: relative !important;
    z-index: 2 !important;
    mix-blend-mode: normal !important;
}

.footer-contact__btn--entry:hover {
    background-color: #0F71FF !important;
    color: #000000 !important;
}

.footer-contact__btn--entry:hover::before {
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
    z-index: 0 !important;
}

.footer-contact__btn--entry:hover * {
    color: #000000 !important;
    z-index: 2 !important;
    box-shadow: none !important;
}

.footer-contact__btn--entry:focus-visible::before {
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
    z-index: 0 !important;
}

.footer-contact__btn--entry:focus-visible,
.footer-contact__btn--entry:focus-visible * {
    color: #000000 !important;
    z-index: 2 !important;
}

.footer-social__heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}

.footer-social__links {
    display: flex;
    gap: var(--space-3);
}

.footer-social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--c-white);
    color: var(--c-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social__link:hover {
    background: var(--c-accent-blue);
    color: var(--c-white);
    transform: translateY(-2px);
}

.footer-social__icon {
    font-size: 1.2rem;
}

.footer-copy {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid var(--c-gray-dark);
}

.footer-copy__text {
    font-size: 0.9rem;
    color: var(--c-gray-light);
    font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
}


/* 省モーション対応 */
@media (prefers-reduced-motion: reduce) {

    .btn-sweep,
    .btn-sweep::before,
    .btn-sweep__label {
        transition: none !important;
    }

    .btn-sweep:hover::before,
    .btn-sweep:focus-visible::before {
        transform: scaleX(1) !important;
    }
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .footer-contact__btn {
        border: 2px solid currentColor;
    }
}

/* ========================================
   SNSアイコン
   ======================================== */
.footer-social__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 12px;
}

.footer-social__link {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
}

.footer-social__icon {
    display: block;
    /* テキスト行高の影響を受けない */
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 比率保持で収める */
    border-radius: 0;
    /* 既存の丸角指定を無効化 */
    background: transparent;
    /* 白丸背景が残っている場合の初期化 */
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.footer-social__link:hover .footer-social__icon {
    transform: scale(1.08);
    opacity: 0.9;
}

/* 省モーション対応 */
@media (prefers-reduced-motion: reduce) {
    .footer-social__icon {
        transition: none;
    }

    .footer-social__link:hover .footer-social__icon {
        transform: none;
        opacity: 1;
    }
}

/* ===== 強制最終上書き（フッター限定） ===== */
/* 基本：エントリーボタンは青地・白文字 */
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry {
    background: #0F71FF !important;
    color: #FFFFFF !important;
}

/* ホバー/フォーカス時：白地・黒文字に反転（テキストも確実に黒へ） */
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:hover,
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:active,
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:focus,
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:focus-visible {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:hover::before,
.site-footer .footer-col--social .footer-contact .footer-contact__btn--entry:focus-visible::before {
    transform: scaleX(1) !important;
    background-color: #FFFFFF !important;
}

/* ===== Final override: keep shape; ensure hover text turns black and stays above mask ===== */
.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry {
    position: relative;
    z-index: 1;
}

.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry::before {
    z-index: 0;
}

/* テキストを常に前面に（.btn-sweep と同じ発想、HTMLは変更しない） */
.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry {
    color: transparent !important;
    /* 元テキストは透明化して重なり防止 */
}

.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry::after {
    content: "資料請求";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    color: #FFFFFF;
    transition: color 0.5s ease-in-out;
    pointer-events: none;
    font-weight: inherit;
    font-size: inherit;
    line-height: 1.2;
}

.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry:hover::after,
.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry:focus-visible::after {
    color: #000000;
}

.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry:hover,
.site-footer .footer-contact .footer-contact__btn.footer-contact__btn--entry:focus-visible {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* エントリーボタンだけは浮き上がり(translateY)を無効化して隙間(白バー)を防止 */
.site-footer .footer-contact .footer-contact__btn--entry:hover,
.site-footer .footer-contact .footer-contact__btn--entry:focus-visible {
    transform: none !important;
}

/* ===== SNS 見出しをアイコンの直上に配置（フッター限定） ===== */
.site-footer .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer .footer-social__heading {
    order: 0;
    margin: 0 0 8px !important;
    text-align: center;
}

.site-footer .footer-social__links {
    order: 1;
    margin-top: 0 !important;
    justify-content: center;
}