/* ============================================
 * Site Footer  |  共通フッター（Page / Single / 全テンプレート）
 * ダークネイビー基調 × 青グロー × まるっと円モチーフ
 * ============================================ */

.site-footer {
    --sf-bg:         #ffffff;
    --sf-bg-2:       #f7f9fc;
    --sf-line:       rgba(15, 30, 55, 0.08);
    --sf-line-strong:rgba(15, 30, 55, 0.15);
    --sf-text:       #2d3b52;
    --sf-text-sub:   #5a6b82;
    --sf-text-mute:  #8594a8;
    --sf-heading:    #1a2a44;
    --sf-blue:       #4ba3d9;
    --sf-blue-deep:  #2d6bb8;
    --sf-blue-light: #7bc4e8;
    --sf-accent:     #d4b87a;

    position: relative;
    overflow: hidden;
    background: var(--sf-bg);
    color: var(--sf-text);
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic Medium", "Meiryo", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    margin-top: 0;
    border-top: 1px solid var(--sf-line);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
    box-sizing: border-box;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.sf-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.sf-sp-only { display: none; }
@media (max-width: 767px) {
    .sf-sp-only { display: inline; }
}

/* ============ 装飾 ============ */
.site-footer__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: rgba(45, 107, 184, 0.10);
}

.sf-ring {
    position: absolute;
    display: block;
    animation: sfRotate 90s linear infinite;
}
.sf-ring-1 {
    width: 420px; height: 420px;
    top: -140px; right: -120px;
    opacity: 0.55;
}
.sf-ring-2 {
    width: 280px; height: 280px;
    bottom: 40px; left: -80px;
    opacity: 0.5;
    animation-duration: 120s;
    animation-direction: reverse;
}
.sf-ring-3 {
    width: 180px; height: 180px;
    top: 50%; left: 48%;
    opacity: 0.35;
    animation-duration: 70s;
}

@keyframes sfRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.sf-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
}
.sf-glow-1 {
    width: 500px; height: 500px;
    top: -200px; left: 10%;
    background: radial-gradient(circle, rgba(123, 196, 232, 0.35) 0%, transparent 70%);
}
.sf-glow-2 {
    width: 400px; height: 400px;
    bottom: -100px; right: 15%;
    background: radial-gradient(circle, rgba(45, 107, 184, 0.18) 0%, transparent 70%);
}

/* ============ 上部CTAバンド ============ */
.site-footer__cta {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    border-bottom: 1px solid var(--sf-line);
    background: linear-gradient(180deg, var(--sf-bg-2) 0%, transparent 100%);
}

.sf-cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
}

.sf-cta-eyebrow {
    display: inline-block;
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--sf-blue-deep);
    margin-bottom: 10px;
    padding-left: 34px;
    position: relative;
}
.sf-cta-eyebrow::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 24px; height: 1px;
    background: currentColor;
    transform: translateY(-50%);
}

.sf-cta-main {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--sf-heading);
    line-height: 1.5;
    letter-spacing: 0.03em;
}

.sf-cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.sf-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.sf-cta-btn:hover {
    transform: translateY(-2px);
}

.sf-cta-btn-phone {
    background: #ffffff;
    color: var(--sf-heading);
    border: 1px solid var(--sf-line-strong);
}
.sf-cta-btn-phone:hover {
    background: var(--sf-bg-2);
    border-color: var(--sf-blue-deep);
    color: var(--sf-heading);
}

.sf-cta-btn-mail {
    background: linear-gradient(135deg, var(--sf-blue-deep) 0%, var(--sf-blue) 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(45, 107, 184, 0.25);
}
.sf-cta-btn-mail:hover {
    box-shadow: 0 10px 28px rgba(45, 107, 184, 0.4);
    color: #ffffff;
}

.sf-cta-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    background: rgba(45, 107, 184, 0.08);
    color: var(--sf-blue-deep);
    flex-shrink: 0;
}
.sf-cta-btn-mail .sf-cta-btn-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.sf-cta-btn-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.sf-cta-btn-sub {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.1em;
}
.sf-cta-btn-main {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.sf-cta-btn-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}
.sf-cta-btn-mail:hover .sf-cta-btn-arrow {
    transform: translateX(4px);
}

/* ============ メインフッター ============ */
.site-footer__main {
    position: relative;
    z-index: 2;
    padding: 70px 0 50px;
}

.sf-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.1fr 1fr;
    gap: 48px;
}

.sf-col-title {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--sf-heading);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sf-line);
    position: relative;
}
.sf-col-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 32px; height: 1px;
    background: var(--sf-blue-deep);
}

/* ブランド列 */
.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--sf-heading);
}
.sf-brand:hover { color: var(--sf-heading); opacity: 0.75; }

.sf-brand-mark {
    display: inline-flex;
    width: 52px; height: 52px;
    color: var(--sf-blue-deep);
    flex-shrink: 0;
}
.sf-brand-mark svg { width: 100%; height: 100%; }

.sf-brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}
.sf-brand-en {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--sf-heading);
    line-height: 1.2;
}
.sf-brand-jp {
    font-size: 13px;
    color: var(--sf-text-sub);
    letter-spacing: 0.05em;
}

.sf-brand-tag {
    font-size: 14px;
    color: var(--sf-text);
    margin: 0 0 24px;
    line-height: 1.8;
}

.sf-offices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}
.sf-office {
    display: flex;
    gap: 12px;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.6;
    padding: 10px 14px;
    background: var(--sf-bg-2);
    border-left: 2px solid var(--sf-blue-deep);
}
.sf-office-label {
    flex-shrink: 0;
    font-weight: 600;
    color: var(--sf-blue-deep);
    font-size: 12px;
    letter-spacing: 0.08em;
}
.sf-office-addr {
    color: var(--sf-text-sub);
}

.sf-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--sf-heading);
    border: 1px solid var(--sf-line-strong);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.sf-phone:hover {
    border-color: var(--sf-blue-deep);
    background: rgba(45, 107, 184, 0.05);
    color: var(--sf-heading);
}
.sf-phone-icon {
    display: inline-flex;
    color: var(--sf-blue-deep);
}
.sf-phone-num {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.sf-phone-hours {
    font-size: 11px;
    color: var(--sf-text-mute);
    letter-spacing: 0.05em;
}

/* ナビ列 */
.sf-col-nav { min-width: 0; }

.sf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sf-list li { margin: 0; }
.sf-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--sf-text);
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}
.sf-list a::before {
    content: "";
    position: absolute;
    left: 0; top: 0.7em;
    width: 6px; height: 1px;
    background: var(--sf-text-mute);
    transition: width 0.25s ease, background 0.25s ease;
}
.sf-list a:hover {
    color: var(--sf-blue-deep);
}
.sf-list a:hover::before {
    width: 10px;
    background: var(--sf-blue-deep);
}

/* ============ ボトムバー ============ */
.site-footer__bottom {
    position: relative;
    z-index: 2;
    padding: 22px 0;
    border-top: 1px solid var(--sf-line);
    background: var(--sf-bg-2);
}

.sf-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sf-copyright {
    margin: 0;
    font-size: 12px;
    color: var(--sf-text-mute);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    letter-spacing: 0.05em;
}
.sf-copyright-en {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.sf-bottom-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}
.sf-bottom-links li {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    position: relative;
}
.sf-bottom-links li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 12px;
    background: var(--sf-line-strong);
    transform: translateY(-50%);
}
.sf-bottom-links li:first-child { padding-left: 0; }
.sf-bottom-links li:last-child  { padding-right: 0; }
.sf-bottom-links a {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 12px;
    color: var(--sf-text-sub);
    letter-spacing: 0.1em;
}
.sf-bottom-links a:hover {
    color: var(--sf-blue-deep);
}

/* ============ ページトップ ============ */
.sf-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px; height: 44px;
    background: #ffffff;
    color: var(--sf-heading);
    border: 1px solid var(--sf-line-strong);
    box-shadow: 0 4px 14px rgba(15, 30, 55, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    z-index: 90;
    backdrop-filter: blur(6px);
}
.sf-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sf-to-top:hover {
    background: var(--sf-blue-deep);
    border-color: var(--sf-blue-deep);
    color: #ffffff;
}

/* SP/タブレットでは下部固定CTA（電話する／無料見積）が常駐するため、
   ページトップボタンは冗長なので非表示 */
@media (max-width: 1100px) {
    .sf-to-top,
    #pagetop,
    .p-fixBtnWrap #pagetop {
        display: none !important;
    }
    /* 下部固定CTAに隠されないよう、ページ全体の下にクリアランス追加 */
    #body_wrap {
        padding-bottom: 96px;
    }
}

/* ============ SWELL親テーマの既存フッター関連ウィジェット補正 ============ */
.w-beforeFooter { background: transparent; }

/* ============ レスポンシブ ============ */
@media (max-width: 1023px) {
    .sf-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 32px;
    }
    .sf-col-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .sf-container { padding: 0 18px; }

    .site-footer { font-size: 15px; }

    .site-footer__cta { padding: 28px 0; }
    .sf-cta-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .sf-cta-main { font-size: 18px; }
    .sf-cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .sf-cta-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .site-footer__main { padding: 48px 0 36px; }
    .sf-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sf-col-title {
        font-size: 13px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .sf-brand-en { font-size: 18px; }
    .sf-brand-mark { width: 44px; height: 44px; }
    .sf-brand-tag { font-size: 13px; }
    .sf-office { font-size: 12px; padding: 8px 12px; }
    .sf-phone-num { font-size: 18px; }

    .site-footer__bottom { padding: 18px 0; }
    .sf-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .sf-bottom-links { gap: 16px; }

    .sf-ring-1 { width: 280px; height: 280px; top: -80px; right: -80px; }
    .sf-ring-2 { width: 200px; height: 200px; bottom: 60px; left: -60px; }
    .sf-ring-3 { display: none; }
}

/* ============ SWELL既存のフッターを非表示にする保険 ============ */
/* 子テーマfooter.phpで親のfooter.phpを完全オーバーライドしているため通常は不要だが、
   キャッシュ等で両方出る場合のフォールバック */
#footer.l-footer:not(.site-footer) { display: none; }
