/* Header Logo Sizing - PC */
.visual_w ul li.s1 img {
    max-width: 195px !important;
    /* Force PC size to 195px, overriding global img rule */
    height: auto;
    display: block;
}

/* Ensure header alignment - PC */
.visual_w ul {
    align-items: center;
    /* Basic.css handles justify-content: space-between */
}

/* Hero Image Adjustments - PC */
.visual_w>.container>p {
    margin-top: 60px !important;
}

.visual_w>.container>p>img {
    width: 50%;
    height: auto;
}

/* Global Fluid Images - Applied Globally but with lower specificity than ID or scoped classes if possible */
/* We removed !important to allow overrides, but kept it strong enough for general content */
img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------------------
   30-Year Designer's Touch: Full-Page Mobile Responsive Overrides
   Target: Width <= 768px (Strictly Mobile)
   ------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* 1. Global Layout & Typography */
    .visual_w .container,
    .container {
        width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box;
    }

    section {
        padding: 40px 0 !important;
    }

    h1 {
        font-size: 2.0rem !important;
        line-height: 1.3;
        margin-bottom: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
        letter-spacing: -1px !important;
    }

    p,
    li,
    dd,
    dt {
        font-size: 1rem !important;
        word-break: keep-all;
    }

    /* 2. Header & Hero Section */
    .visual_w {
        width: 100% !important;
        height: auto !important;
        min-height: 520px;
        /* Increased slightly to ensure coverage */
        background-size: cover !important;
        /* Revert to cover for better immersion */
        background-position: 55% top !important;
        /* Shifted further right (70% -> 55%) to move people Right */
        background-repeat: no-repeat !important;
        padding-bottom: 2rem;
        background-color: #1a90ea;
        /* Fallback color matching the blue bg */
    }

    /* Mobile Header Layout: Stack Logo and Menu */
    .visual_w ul {
        flex-direction: column;
        padding: 1.5rem 0;
        gap: 15px;
        display: flex !important;
        align-items: flex-start !important;
        /* Left align items */
    }

    /* Ensure onlyPC class doesn't hide logo on mobile */
    .visual_w .onlyPC {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start !important;
        /* Left align */
        width: 100%;
    }

    .visual_w ul li.s1 {
        float: none !important;
        width: 100%;
        text-align: left !important;
        /* Left align logo */
        padding-left: 0;
    }

    /* Mobile Logo Size */
    .visual_w ul li.s1 img {
        max-width: 130px !important;
        /* Slightly smaller for better proportion */
        margin: 0;
        /* Remove auto margin */
    }

    /* Hero Text & Image */
    .visual_w>.container>p {
        margin-top: 80px !important;
        /* Increased margin (30 -> 80) to move down */
        text-align: left !important;
        /* Align Left */
        padding-left: 10px;
        /* Subtle padding */
    }

    .visual_w>.container>p>img {
        width: 65% !important;
        /* Increased from 50% to 65% */
        max-width: 280px;
    }

    /* 3. Service Cards (.conts2) */
    .conts2 dl {
        width: 100% !important;
        height: auto !important;
        margin: 0 0 20px 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem !important;
        box-sizing: border-box;
    }

    .conts2 dl dd img {
        width: 80px;
        margin-bottom: 10px;
    }

    /* 4. Process Section (.process) */
    .process {
        display: block !important;
        border: none !important;
        margin-bottom: 2rem;
    }

    .process dt {
        width: 100% !important;
        padding: 1rem !important;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .process dd {
        width: 100% !important;
        padding: 1.5rem !important;
        border: 2px solid #1a90ea;
        border-top: none;
        box-sizing: border-box;
    }

    /* 5. Icons Section (.conts7) */
    .conts7 dl {
        padding: 15px 0;
    }

    .conts7 dl dt {
        font-size: 1.3rem !important;
        background-position: 0 12px;
        padding-left: 35px;
    }

    .conts7 dl dd {
        padding-left: 35px;
    }

    /* 6. Image Text (.img-txt) */
    .img-txt img {
        height: auto !important;
    }

    .img-txt dl {
        width: 90% !important;
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin: -30px auto 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px !important;
        box-sizing: border-box;
    }

    /* 7. Q&A Section (.qna_w) */
    .qna_w {
        height: auto !important;
        background-size: 60px !important;
        background-position: bottom 20px right 20px !important;
        padding: 2rem 1.5rem 6rem !important;
    }

    .qna_w dt {
        font-size: 1.5rem !important;
        line-height: 1.4;
        margin-top: 0;
    }

    .qna_w dd {
        padding: 0 !important;
    }

    /* 8. Footer */
    .footer {
        padding: 40px 20px !important;
    }

    .footer ul {
        width: 100% !important;
        padding: 0 !important;
    }

    .footer ul li {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }

    .footer ul li.s2 {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .footer div[style] {
        text-align: center !important;
        padding: 0 !important;
    }

    .footer p {
        line-height: 1.8 !important;
        margin-bottom: 15px;
        font-size: 0.9rem !important;
        color: #888;
    }

}

/* -------------------------------------------------------------------------
       New CTA Buttons (Shiny Effect) - Global
       ------------------------------------------------------------------------- */
.cta-btn-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    padding: 25px 0;
    width: 100%;
    box-sizing: border-box;
}

.shiny-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    /* Force remove underline */
    color: #fff !important;
    /* Force white text */
    font-weight: 900;
    font-size: 1.1rem;
    padding: 14px 0;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
    max-width: 180px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* Add border for definition */
}

.shiny-btn:active {
    transform: scale(0.95);
}

.shiny-btn.kakao {
    background: #FEE500;
    background: linear-gradient(135deg, #FEE500 0%, #FFD700 100%);
    color: #3C1E1E !important;
    /* Kakao text color */
    border: 2px solid rgba(60, 30, 30, 0.1);
    animation: blink-border-kakao 2s infinite;
}

.shiny-btn.tel {
    background: #1a90ea;
    background: linear-gradient(135deg, #1a90ea 0%, #0056b3 100%);
    animation: blink-border-tel 2.5s infinite;
    animation-delay: 0.5s;
}

/* Shining Animation - More visible */
.shiny-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    /* Fast pass */
    100% {
        left: 200%;
    }

    /* Rest */
}

/* Blinking Border Animations */
@keyframes blink-border-kakao {

    0%,
    100% {
        border-color: rgba(60, 30, 30, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    50% {
        border-color: #fff;
        box-shadow: 0 0 12px rgba(254, 229, 0, 0.8);
    }
}

@keyframes blink-border-tel {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

    50% {
        border-color: #fff;
        box-shadow: 0 0 12px rgba(26, 144, 234, 0.8);
    }
}
}