/*
Theme Name: satou-autoshop-lp
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* Reset for .all-wrap to prevent theme interference */
.all-wrap,
.all-wrap * {
    box-sizing: border-box;
}

.all-wrap img {
    max-width: 100%;
    height: auto;
    /* display: block; removed to allow standard text-center behavior */
    vertical-align: middle;
}

.all-wrap h1,
.all-wrap h2,
.all-wrap h3,
.all-wrap h4,
.all-wrap h5,
.all-wrap h6 {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    line-height: 1.4;
    letter-spacing: normal;
}

.all-wrap h1::before,
.all-wrap h1::after,
.all-wrap h2::before,
.all-wrap h2::after,
.all-wrap h3::before,
.all-wrap h3::after {
    content: none !important;
    border: 0 !important;
}

.all-wrap p {
    margin: 0;
    line-height: 1.6;
}

.all-wrap ul,
.all-wrap ol {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.all-wrap a {
    text-decoration: none !important;
}

/* --- Specific Custom Overrides for Lightning G3 Conflict (Extreme Specificity) --- */

/* Hero Section Fixes */
@media (min-width: 992px) {

    body .all-wrap #hero .sato-hero-left,
    body.page-template-default .all-wrap #hero .sato-hero-left {
        text-align: left !important;
    }

    body .all-wrap #hero .sato-hero-left-flex,
    body.page-template-default .all-wrap #hero .sato-hero-left-flex {
        justify-content: flex-start !important;
    }

    body .all-wrap #hero .sato-hero-right,
    body.page-template-default .all-wrap #hero .sato-hero-right {
        align-self: flex-start !important;
        align-items: flex-end !important;
        margin-top: 0 !important;
    }

    body .all-wrap #hero .sato-hero-right .hero-logos,
    body.page-template-default .all-wrap #hero .sato-hero-right .hero-logos {
        justify-content: flex-end !important;
    }
}

/* Image Centering Fix */
body .all-wrap #needs .sato-needs-img-wrap,
body.page-template-default .all-wrap #needs .sato-needs-img-wrap {
    text-align: center !important;
}

body .all-wrap #needs .sato-needs-img,
body.page-template-default .all-wrap #needs .sato-needs-img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

/* Background Color Fixes */
body .all-wrap #lineup.sato-bg-dark,
body.page-template-default .all-wrap #lineup.sato-bg-dark {
    background-color: #212529 !important;
}

body .all-wrap .bg-sato-light,
body.page-template-default .all-wrap .bg-sato-light {
    background-color: var(--sato-blue-light) !important;
}

/* Container & Layout Width Fixes */
body .all-wrap .container,
body.page-template-default .all-wrap .container {
    max-width: 1320px !important;
    width: 100% !important;
    padding-right: var(--bs-gutter-x, .75rem) !important;
    padding-left: var(--bs-gutter-x, .75rem) !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

/* Step Badge Fix (also fixes card overflow) */
body .all-wrap #flow .sato-step-badge,
body.page-template-default .all-wrap #flow .sato-step-badge {
    transform: translate(-50%, -50%) !important;
    z-index: 10 !important;
    top: 0 !important;
    position: absolute !important;
}

body .all-wrap #flow .card,
body.page-template-default .all-wrap #flow .card {
    overflow: visible !important;
}

/* --- Navigation & Hero --- */
/* Fixed Navbar Adjustment for Lightning */
body .all-wrap .navbar-nav,
body.page-template-default .all-wrap .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
}

@media (max-width: 991.98px) {

    body .all-wrap .navbar-nav,
    body.page-template-default .all-wrap .navbar-nav {
        flex-direction: column !important;
    }
}

/* Header Premium Styling */
.sato-header {
    border-bottom: 2px solid var(--sato-blue-light);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.97) !important;
}

/* Custom Styles for Sato Auto Shop */
.all-wrap {
    --sato-blue: #0F4C81;
    --sato-blue-light: #e6f0fa;
    --sato-orange: #f97316;
}

.all-wrap body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

/* Typography overrides */
.all-wrap h1,
.all-wrap h2,
.all-wrap h3,
.all-wrap h4,
.all-wrap h5,
.all-wrap h6 {
    font-weight: 700;
}

.all-wrap .text-sato-blue {
    color: var(--sato-blue) !important;
}

.all-wrap .bg-sato-blue {
    background-color: var(--sato-blue) !important;
}

.all-wrap .bg-sato-light {
    background-color: var(--sato-blue-light) !important;
}

/* Button overrides */
.all-wrap .btn-primary {
    background-color: var(--sato-blue);
    border-color: var(--sato-blue);
}

.all-wrap .btn-primary:hover {
    background-color: #0b3d6b;
    border-color: #0b3d6b;
}

.all-wrap .btn-orange {
    background-color: var(--sato-orange);
    border-color: var(--sato-orange);
    color: white;
    font-weight: bold;
}

.all-wrap .btn-orange:hover {
    background-color: #ea580c;
    border-color: #ea580c;
    color: white;
}

/* Navbar adjustments */
.sato-header .navbar-brand {
    color: #0F4C81 !important;
    font-weight: bold;
}

/* Logo size constraint in header */
#site-header.sato-header img,
.sato-header .site-header-logo img,
.sato-header .navbar-brand img {
    max-width: 260px !important;
    width: auto !important;
    height: 40px !important;
}

/* Constrain logo wrapper width + vertical centering */
.sato-header .site-header-logo {
    max-width: 280px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    padding: 0.25rem 0 !important;
}

.sato-header .navbar-brand {
    max-width: 260px !important;
    display: flex !important;
    align-items: center !important;
}

/* Nav Link — Premium style with animated underline */
/* Works for both manual .sato-nav-link and WordPress .menu-item > a */
.sato-header .sato-nav-link,
.sato-header .menu-item>a {
    display: block;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    color: #444 !important;
    letter-spacing: 0.03em;
    padding: 0.5rem 0.65rem !important;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.sato-header .sato-nav-link::after,
.sato-header .menu-item>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #0F4C81;
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.sato-header .sato-nav-link:hover,
.sato-header .menu-item>a:hover {
    color: #0F4C81 !important;
}

.sato-header .sato-nav-link:hover::after,
.sato-header .menu-item>a:hover::after {
    width: 70%;
    left: 15%;
}

/* WordPress menu-item acts as nav-item */
.sato-header .menu-item {
    list-style: none !important;
}

/* 下層ページではナビを非表示（トップのアンカーリンクのため） */
body:not(.home) .sato-header .navbar-nav,
body:not(.home) .sato-header .navbar-toggler {
    display: none !important;
}

/* Ensure navbar-nav horizontal layout for WordPress menu */
.sato-header .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
}

@media (max-width: 991.98px) {
    .sato-header .navbar-nav {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
}

/* Prevent Lightning theme from hiding logo on scroll */
.sato-header.header_scrolled .site-header-logo,
#site-header.sato-header.header_scrolled .site-header-logo,
body .sato-header.header_scrolled .site-header-logo,
body #site-header.header_scrolled .site-header-logo {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.25rem 0 !important;
    transition: none !important;
}

/* Also prevent any child elements from being hidden */
.sato-header.header_scrolled .site-header-logo *,
body .sato-header.header_scrolled .site-header-logo * {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

/* Phone number area in header */
.sato-header .sato-header-phone {
    border-left: 2px solid #e6f0fa;
    padding-left: 1rem;
}

.sato-header .sato-phone-number {
    font-size: 1.15rem;
}

/* Header utility classes (outside .all-wrap scope) */
.sato-header .sato-fs-xs {
    font-size: 0.75rem;
}

.sato-header .text-sato-blue {
    color: #0F4C81 !important;
}

.sato-header .text-muted {
    color: #6c757d !important;
}

/* Delivery Room Card — Premium styling */
.all-wrap .sato-delivery-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 1px solid rgba(255, 193, 7, 0.15);
}

.all-wrap .sato-delivery-title {
    color: #ffc107;
    font-size: 1.4rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.all-wrap .letter-spacing-1 {
    letter-spacing: 0.15em;
}

/* Section spacing */
.all-wrap section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Hero Section */
.all-wrap .hero-section {
    background-image: url('https://lp.satou-autoshop.com/wp-content/themes/sato-lp/assets/images/fvimage2.jpg');
    background-size: cover;
    background-position: center;
    /* Mobile: 60% height, higher padding-top for fixed header */
    min-height: 60vh;
    padding-top: 9rem;
    padding-bottom: 3.5rem;
    position: relative;
    color: white;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .all-wrap .hero-section {
        min-height: 70vh;
        padding-top: 13rem;
        padding-bottom: 8rem;
    }
}

/* Hero Logo specifics */
.all-wrap .hero-logos img {
    max-height: 120px;
    /* Smaller on mobile */
    width: auto;
    transition: transform 0.3s;
}

@media (min-width: 992px) {
    .all-wrap .hero-logos img {
        max-height: 160px;
        /* Original size on PC */
    }
}

/* Card hover effect (Informational, Non-clickable appearance) */
.all-wrap .hover-card {
    transition: box-shadow 0.3s ease;
}

.all-wrap .hover-card:hover {
    transform: translateY(0) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Button & Clickable Card hover effect (Lift and Press) */
.all-wrap .hover-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.all-wrap .hover-btn:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.all-wrap .hover-btn:active {
    transform: translateY(2px) !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* FAQ Accordion Focus Fix — prevent blue box-shadow from overflowing */
.all-wrap .accordion-button:focus {
    box-shadow: none !important;
    outline: 2px solid rgba(13, 110, 253, 0.25);
    outline-offset: -2px;
}

.all-wrap .accordion-item {
    overflow: hidden;
}

/* LINE Button Hover Color Fix */
.all-wrap .bg-line:hover {
    background-color: #05a647 !important;
}

/* Mobile sticky footer */
.all-wrap .sticky-footer-btn {
    font-size: 0.85rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Scroll margin for fixed header */
.all-wrap section {
    scroll-margin-top: 90px;
}

.all-wrap .support-card-title {
    font-size: 1.125rem;
}

/* PC Sticky CTA */
.all-wrap .pc-sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    z-index: 1040;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
}

.all-wrap .pc-sticky-cta.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 767.98px) {
    .all-wrap .pc-sticky-cta {
        display: none !important;
    }
}

.all-wrap .pc-sticky-btn {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.all-wrap .pc-sticky-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.all-wrap .pc-sticky-btn:hover::after {
    left: 100%;
    transition: 0.5s;
}

/* Needs Section Redesign */
.all-wrap .needs-bubble {
    display: inline-block;
    background-color: #f8f9fa;
    padding: 1rem 2rem;
    border-radius: 2rem;
    position: relative;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.all-wrap .needs-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #f8f9fa transparent transparent;
}

.all-wrap .needs-solution-text {
    font-size: 2.5rem;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

@media (max-width: 767.98px) {
    .all-wrap .needs-solution-text {
        font-size: 1.75rem;
    }
}

.all-wrap .text-decoration-underline-sato {
    background: linear-gradient(transparent 70%, var(--sato-blue-light) 70%);
    padding: 0 0.2em;
}

/* Sato Utility Classes for Refactoring */
/* Global scope — header is outside .all-wrap */
.sato-logo {
    height: 40px;
    width: auto;
}

.all-wrap .sato-logo {
    height: 40px;
    width: auto;
}

.all-wrap .sato-fs-xs {
    font-size: 0.75rem;
}

.all-wrap .sato-fs-08 {
    font-size: 0.8rem;
}

.all-wrap .sato-lh-16 {
    line-height: 1.6;
}

.all-wrap .sato-lh-18 {
    line-height: 1.8;
}

/* Icon Sizes */
.all-wrap .sato-icon-xs {
    width: 16px;
    height: 16px;
}

.all-wrap .sato-icon-sm {
    width: 18px;
    height: 18px;
}

.all-wrap .sato-icon-md {
    width: 20px;
    height: 20px;
}

.all-wrap .sato-icon-lg {
    width: 24px;
    height: 24px;
}

.all-wrap .sato-icon-xl {
    width: 32px;
    height: 32px;
}

.all-wrap .sato-icon-xxl {
    width: 40px;
    height: 40px;
}

/* Components */

.all-wrap .sato-overlay-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Layout & Constraints */
.all-wrap .sato-mw-850 {
    max-width: 850px;
}

.all-wrap .sato-mw-950 {
    max-width: 950px;
}

.all-wrap .sato-mh-300 {
    min-height: 300px;
}

.all-wrap .sato-mh-400 {
    min-height: 400px;
}

.all-wrap .sato-img-limit-h {
    max-height: 450px;
    width: auto;
}

.all-wrap .sato-img-limit-h-lg {
    max-width: 100%;
}

@media (min-width: 992px) {
    .all-wrap .sato-img-limit-h-lg {
        max-width: 700px;
    }
}

.all-wrap .sato-page-header {
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Unified Notes */
.all-wrap .sato-note {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* Additional Colors */
.all-wrap .bg-line {
    background-color: #06C755 !important;
    border-color: #06C755 !important;
}

/* Components */
.all-wrap .sato-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}

.all-wrap .sectionfull {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

/* ============================
   Footer — 全ページ共通ダークデザイン
   ============================ */
.site-footer {
    background-color: #1a1a2e !important;
    color: rgba(255, 255, 255, 0.5) !important;
    padding-top: 2rem;
}

/* Footer nav links */
.site-footer .footer-nav a {
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
    color: #fff !important;
}

/* Footer nav center alignment */
.site-footer .footer-nav ul,
.site-footer .footer-nav-list {
    justify-content: center !important;
    text-align: center !important;
}

/* Footer copyright area */
.site-footer .site-footer-copyright {
    color: rgba(255, 255, 255, 0.5) !important;
    background: transparent !important;
}

.site-footer .site-footer-copyright a {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Lightning テーマクレジット行を非表示 */
.site-footer-copyright p:nth-child(2) {
    display: none !important;
}

/* Footer widget area text colors */
.site-footer .site-footer-content,
.site-footer .site-footer-content * {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer .site-footer-content a {
    color: rgba(255, 255, 255, 0.7) !important;
}

.site-footer .site-footer-content a:hover {
    color: #fff !important;
}

/* ============================
   Lightning モバイルナビ — 全ページ非表示
   ============================ */
#vk-mobile-nav-menu-btn,
#vk-mobile-nav,
.vk-mobile-nav-menu-btn,
.vk-mobile-nav,
.mobile-fix-nav {
    display: none !important;
}

/* ============================
   Hero Section — スマホ最適化
   ============================ */
@media (max-width: 575.98px) {

    /* 上部パディングを詰める */
    .all-wrap .hero-section {
        padding-top: 5.5rem;
        padding-bottom: 1.5rem;
        min-height: auto;
    }

    /* h2タイトルの余白を詰める */
    .all-wrap .hero-section h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem !important;
        line-height: 1.35;
    }

    /* サブテキスト（整備のプロが選ぶ…）を一回り小さく */
    .all-wrap .hero-section .fs-4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.5;
    }

    /* バッジ（国産車の…etc）の余白 */
    .all-wrap .hero-section .sato-hero-left-flex {
        margin-bottom: 0.5rem !important;
        gap: 0.2rem !important;
    }

    .all-wrap .hero-section .sato-hero-left-flex span {
        font-size: 0.68rem;
        padding: 0.1rem 0.5rem !important;
    }

    /* CTAボタン周りの余白を詰める */
    .all-wrap .hero-section .pt-3 {
        padding-top: 0.25rem !important;
    }

    .all-wrap .hero-section .btn-lg {
        font-size: 0.9rem;
        padding: 0.55rem 1.2rem !important;
    }

    /* 「希望の日時だけでもOK」テキスト */
    .all-wrap .hero-section .pt-3 .small {
        font-size: 0.72rem;
        margin-top: 0.35rem !important;
    }

    /* 右側ディーラーロゴエリア — 上下の間隔を詰める */
    .all-wrap .hero-section .sato-hero-right {
        margin-top: 0.75rem !important;
    }

    /* ロゴ画像を小さく */
    .all-wrap .hero-logos img {
        max-height: 65px;
    }

    /* ロゴ下テキストを小さく */
    .all-wrap .hero-logos .small {
        font-size: 0.65rem;
    }

    /* ロゴ間のギャップを詰める */
    .all-wrap .hero-logos {
        gap: 0.75rem !important;
    }

    /* ロゴ内のmargin-bottomを詰める */
    .all-wrap .hero-logos .sato-dealer-logo-wrapper {
        margin-bottom: 0.15rem !important;
    }

    /* 左側カラムの下マージンを詰める */
    .all-wrap .hero-section .sato-hero-left {
        margin-bottom: 0 !important;
    }
}

/* ============================
   CF7 送信ボタン スピナー対策
   ============================ */
.wpcf7-form .wpcf7-submit {
    position: relative;
}

.wpcf7-form .wpcf7-spinner {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* ============================
   Lightning テーマ デフォルト トップへ戻るボタン非表示
   電話・PCすべてのサイズで非表示
   ============================ */
.vk-page-top,
#page-top,
.page-top,
.vk_pageTop,
#vk_pageTop,
[class*="page-top"],
[id*="page-top"],
[class*="pageTop"],
[id*="pageTop"],
.vk-scroll-to-top,
#scroll-to-top,
.scroll-to-top,
a[href="#top"].page-top,
a[href="#"].page-top,
/* Lightning G3 実際のセレクタ */
#page_top,
.page_top_btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ============================
   カスタム トップへ戻るボタン
   ============================ */
.sato-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 1050;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 76, 129, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease;
    pointer-events: none;
}

.sato-back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sato-back-to-top:hover {
    background: rgba(15, 76, 129, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.sato-back-to-top:active {
    transform: scale(0.92);
}

.sato-back-to-top i,
.sato-back-to-top svg {
    width: 20px;
    height: 20px;
}

/* スマホ: スティッキーフッターと被らないように上にずらす */
@media (max-width: 767.98px) {
    .sato-back-to-top {
        bottom: 80px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .sato-back-to-top i,
    .sato-back-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* PC: 少し大きく */
@media (min-width: 768px) {
    .sato-back-to-top {
        width: 48px;
        height: 48px;
        bottom: 32px;
        right: 28px;
    }

    .sato-back-to-top i,
    .sato-back-to-top svg {
        width: 22px;
        height: 22px;
    }
}