/* ============================================
 * Site Footer  |  共通フッター（Page / Single / 全テンプレート）
 * ダークネイビー基調 × 青グロー × まるっと円モチーフ
 * ============================================ */

.site-footer {
    --sf-bg:         #0e1a3a;
    --sf-bg-2:       rgba(244, 239, 226, 0.04);
    --sf-line:       rgba(244, 239, 226, 0.10);
    --sf-line-strong:rgba(244, 239, 226, 0.20);
    --sf-text:       rgba(244, 239, 226, 0.85);
    --sf-text-sub:   rgba(244, 239, 226, 0.65);
    --sf-text-mute:  rgba(244, 239, 226, 0.5);
    --sf-heading:    #f4efe2;
    --sf-blue:       #6cabdf;
    --sf-blue-deep:  #6cabdf;
    --sf-blue-light: #7bc4e8;
    --sf-accent:     #c9a227;

    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(108, 171, 223, 0.18), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(201, 162, 39, 0.15), transparent 55%),
        linear-gradient(160deg, #0a1230 0%, #17224c 50%, #0e1a3a 100%);
    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: none;
}

.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: 60px 0 28px;
}

.sf-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.sf-brand-block {
    min-width: 0;
}

/* ===== 最新記事 ===== */
.sf-posts {
    min-width: 0;
}

.sf-posts-title {
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--sf-line);
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 14px;
    line-height: 1.2;
}
.sf-posts-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 32px; height: 2px;
    background: var(--sf-accent);
}
.sf-posts-title-en {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--sf-heading);
}
.sf-posts-title-jp {
    font-size: 14px;
    color: var(--sf-text-mute);
    letter-spacing: 0.08em;
}

.sf-post-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.sf-post-item + .sf-post-item {
    border-top: 1px dashed var(--sf-line);
}

.sf-post-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    color: var(--sf-text);
    transition: color 0.2s ease;
}
.sf-post-link:hover {
    color: var(--sf-accent);
}

.sf-post-date {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 14px;
    color: var(--sf-text-mute);
    letter-spacing: 0.06em;
}

.sf-post-title {
    font-size: 14px;
    line-height: 1.6;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sf-posts-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--sf-heading);
    border: 1px solid var(--sf-line-strong);
    background: rgba(244, 239, 226, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.sf-posts-more:hover {
    border-color: var(--sf-accent);
    background: rgba(201, 162, 39, 0.10);
    color: var(--sf-accent);
}

/* ブランド列（モダン編集スタイル：ロゴパネル + 縦罫線 + eyebrow付きタイポ） */
.sf-brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 0;
    color: var(--sf-heading);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sf-brand:hover {
    color: var(--sf-heading);
    opacity: 1;
    transform: translateX(2px);
}

/* ロゴパネル（クリーム背景でロゴを際立たせる） */
.sf-brand-logo-wrap {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    padding: 8px;
    background: #f4efe2;
    border: 1px solid var(--sf-line-strong);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sf-brand-logo-wrap::before {
    /* 左下→右上の細いゴールドアクセント */
    content: '';
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: 18px;
    height: 2px;
    background: var(--sf-accent);
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sf-brand:hover .sf-brand-logo-wrap {
    border-color: var(--sf-accent);
}
.sf-brand:hover .sf-brand-logo-wrap::before {
    width: 32px;
}
.sf-brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* テキスト列（ロゴと縦罫線で区切る） */
.sf-brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 18px;
    border-left: 1px solid var(--sf-line);
    align-self: stretch;
    justify-content: center;
}

/* eyebrow（小さな英字ラベル） */
.sf-brand-eyebrow {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sf-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.sf-brand-en {
    font-family: "Inter", "Helvetica Neue", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--sf-heading);
    line-height: 1.1;
}
.sf-brand-jp {
    font-size: 13px;
    color: var(--sf-text-sub);
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* モバイル対応 */
@media (max-width: 480px) {
    .sf-brand { gap: 14px; }
    .sf-brand-logo-wrap { width: 56px; height: 56px; padding: 6px; }
    .sf-brand-text { padding-left: 14px; }
    .sf-brand-eyebrow { font-size: 9px; letter-spacing: 0.24em; margin-bottom: 4px; }
    .sf-brand-en { font-size: 19px; }
    .sf-brand-jp { font-size: 12px; }
}

/* モーション抑制 */
@media (prefers-reduced-motion: reduce) {
    .sf-brand,
    .sf-brand-logo-wrap,
    .sf-brand-logo-wrap::before { transition: none !important; }
    .sf-brand:hover { transform: none !important; }
}

.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-accent);
}
.sf-office-label {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--sf-accent);
    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);
    background: rgba(244, 239, 226, 0.04);
    transition: border-color 0.25s ease, background 0.25s ease;
}
.sf-phone:hover {
    border-color: var(--sf-accent);
    background: rgba(201, 162, 39, 0.10);
    color: var(--sf-heading);
}
.sf-phone-icon {
    display: inline-flex;
    color: var(--sf-accent);
}
.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-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--sf-line);
}

.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-accent);
}

/* ============ ページトップ ============ */
.sf-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px; height: 44px;
    background: #17224c;
    color: #f4efe2;
    border: 1px solid #c9a227;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    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, color 0.25s ease;
    z-index: 90;
}
.sf-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.sf-to-top:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #17224c;
}

/* 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-top-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 767px) {
    .sf-container { padding: 0 18px; }

    .sf-top-grid { gap: 36px; }
    .sf-posts-title { margin-bottom: 16px; padding-bottom: 12px; }
    .sf-posts-title-en { font-size: 15px; }
    .sf-posts-title-jp { font-size: 14px; }

    .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: 44px 0 24px; }

    .sf-brand-en { font-size: 18px; }
    .sf-brand-tag { font-size: 14px; }
    .sf-office { font-size: 13px; padding: 8px 12px; }
    .sf-phone-num { font-size: 18px; }

    .sf-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: 28px;
        padding-top: 18px;
    }
    .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; }
