body {
    color: #222;
    margin: 0;
    background: #fff;
    overflow-x: hidden;

}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    background: #fff;
}

.header .logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    line-height: 1.5;
    letter-spacing: 3.5px;
}

.header .logo img {
    width: 60px;
}

.header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.header nav ul li a {
    text-decoration: none;
    color: #223366;
    font-weight: 500;
    font-size: 16px;
}

.header nav ul li a:hover,
.header nav ul li a:focus {
    color: #FF8800;
    transition: background 0.16s, color 0.16s;
}

.header nav ul li a.active {
    color: #FF8800 !important;
}

.header nav ul li .btn {
    background: #223366;
    color: #fff;
    padding: 10px 22px;
    border-radius: 32px;
    font-weight: bold;
    transition: background 0.2s;
}

.header nav ul li .btn:hover,
.header nav ul li .btn:focus {
    background: #FF8800;
    color: #fff !important;
    transition: background 0.16s, color 0.16s;
}

.header nav ul li .btn.active {
    background: #FF8800;
    color: #fff !important;
}

.main-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 500px;
    background: radial-gradient(ellipse at 85% 50%, #3355b3 -50%, #070F3B 100%);
    /* background: linear-gradient(135deg, #070F3B 70%, #3355b3 100%); */
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow: hidden;
}

.main-text {
    flex: 1 1 0;
    max-width: 800px;
    padding-left: 50px;
    color: #fff;
    z-index: 5;
}

.main-text h1 {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.main-text .desc {
    font-size: 1.09rem;
    opacity: 0.95;
    margin-bottom: 80px;
    font-weight: 400;
}

.btn-group {
    display: flex;
    gap: 14px;
}

.btn {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    border: none;
    outline: none;
}

.btn-main {
    background: #3D5275;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30, 40, 80, 0.07);
}

.btn-main:hover {
    background: #223366;
}

.btn-sub {
    color: #fff;
    border: 1px solid #b9c7e0;
}

.btn-sub:hover {
    background: #223366;
}

.main-img {
    position: relative;
    width: 330px;
    height: 260px;
}

.main-img img {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    transition: box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(30, 40, 60, 0.10);
}

@keyframes bookInLeft {
    0% {
        opacity: 0;
        transform: translateY(70px) rotate(-25deg) scale(0.91);
    }

    70% {
        opacity: 1;
        transform: translateY(-8px) rotate(-8deg) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(-7deg) scale(1);
    }
}

@keyframes bookInRight {
    0% {
        opacity: 0;
        transform: translateY(70px) rotate(25deg) scale(0.93);
    }

    70% {
        opacity: 1;
        transform: translateY(-8px) rotate(1deg) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.book-front {
    z-index: 2;
    transform: rotate(-7deg);
    left: -168px !important;
    top: 45px !important;
    width: 200px;
    opacity: 0;
    animation: bookInLeft 1.5s 0.1s cubic-bezier(.65, .04, .36, 1) forwards;
}

.book-back {
    z-index: 1;
    left: -50px !important;
    top: -20px !important;
    width: 326px;
    opacity: 0;
    animation: bookInRight 1.6s 0.4s cubic-bezier(.65, .04, .36, 1) forwards;
}

.about {
    background: #f6f8fb;
    text-align: center;
    padding: 50px 20px 80px 20px;
}

.about .dot {
    color: #D9D9D9;
    padding-bottom: 25px;
}

.about h2 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #070F3B;
}

.about .about-text {
    color: #070F3B;
    font-size: 15px;
    font-weight: 400;
}

.about-cards {
    display: flex;
    justify-content: center;
    gap: 150px;
    margin-top: 35px;
}

.about-card img {
    height: 80px;
    margin-bottom: 15px;
}

.about-card p {
    font-size: 16px;
    color: #223366;
    font-weight: 600;
}

.portfolio {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio h2 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #070F3B;
}

.portfolio-list {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.portfolio-item {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    background: #f6f8fb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px 0 rgba(35, 50, 90, 0.11),
        0 1.5px 7px 0 rgba(90, 110, 140, 0.10);
    transition: box-shadow 0.25s;
    position: relative;
}

.portfolio-thumb img {
    width: 60%;
    margin: 20px;
    object-fit: contain;
    display: block;
}

.portfolio-item p {
    font-size: 16px;
    color: #192449;
    font-weight: 500;
    margin: 0;
    letter-spacing: -0.5px;
}

.portfolio-thumb:hover {
    box-shadow: 0 12px 36px 0 rgba(35, 50, 90, 0.16),
        0 2px 12px 0 rgba(90, 110, 140, 0.13);
    transform: translateY(-7px) scale(1.03);
    transition: box-shadow 0.25s, transform 0.2s;
}

.portfolio a {
    background: #3D5275;
    color: #fff;
    box-shadow: 0 2px 6px rgba(30, 40, 80, 0.07);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 26px;
    margin-top: 60px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}

.portfolio a img {
    width: 18px;
    margin-left: 5px;
}

.service {
    position: relative;
    width: 100%;
}

.service-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('../img/service_bg.png') center center/cover no-repeat;
    filter: grayscale(25%) brightness(0.7);
    z-index: 1;
}

.service-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 0;
}

.service h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 38px;
    letter-spacing: 1px;
}

.service-list {
    display: flex;
    gap: 110px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 38px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 180px;
}

.service-item img {
    width: 64px;
    margin-bottom: 18px;
    filter: brightness(1.2) drop-shadow(0 1.5px 6px rgba(60, 90, 150, 0.07));
}

.service-item p {
    color: #b3d0ff;
    font-size: 17px;
    font-weight: 500;
    margin: 0;
    margin-top: 7px;
    letter-spacing: -0.2px;
}

.service-desc {
    margin-top: 10px;
    color: #fff;
    font-size: 1.42rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 6px rgba(30, 40, 80, 0.08);
}

.process {
    padding: 80px 0;
    text-align: center;
}

.process h2 {
    color: #192449;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 38px;
    letter-spacing: -1px;
}

.process-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.process-step {
    width: 176px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process-step img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    margin-bottom: 15px;
    margin-top: 6px;
}

.process-step h3 {
    font-size: 20px;
    color: #192449;
    font-weight: 700;
    margin: 0 0 7px 0;
    letter-spacing: -0.7px;
}

.process-step p {
    font-size: 15px;
    color: #6f7a92;
    margin: 0;
    font-weight: 400;
}

.process-arrow {
    font-size: 42px;
    color: #b7c0cf;
    display: flex;
    align-items: center;
    font-weight: 600;
    margin: 0 2px;
    user-select: none;
}

.process-arrow img {
    width: 30px;
}

.process-arrow .arrow-down {
    display: none;
}

.process-arrow .arrow-right {
    display: inline;
}

.clients {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(120deg, #0E295A 80%, #172255 100%);
    padding: 60px 0 70px 0;
    text-align: center;
}

.clients h2 {
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 38px;
    letter-spacing: -0.8px;
}

.clients .client-logos {
    background: #fff;
}

.client-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px 0 rgba(40, 60, 120, 0.11), 0 1.5px 8px 0 rgba(60, 100, 180, 0.09);
    width: 900px;
    margin: 0 auto;
    padding: 38px 24px 18px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.client-logos-img {
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding: 20px 20px 10px 20px;
}

.client-note {
    font-size: 13px;
    color: #0F2959;
    font-weight: 500;
    text-align: right;
    width: 100%;
    padding-right: 20px;
    padding-bottom: 20px;
}

.contact {
    background: linear-gradient(120deg, #0E295A 80%, #172255 100%);
}

.contact-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 100px 20px;
    text-align: center;
}

.contact h2 {
    color: #fff;
    font-size: 27px;
    font-weight: 700;
    margin-bottom: 36px;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.contact-row {
    display: flex;
    gap: 18px;
}

.contact-row input {
    flex: 1;
}

.contact input[type="text"],
.contact input[type="email"],
.contact input[type="tel"],
.contact textarea {
    border: 1px solid #B3B9C9;
    border-radius: 5px;
    font-size: 15px;
    font-family: inherit;
    padding: 15px;
    margin-bottom: 0;
    background: #fff;
    color: #192449;
    transition: border-color 0.18s;
    box-sizing: border-box;
}

.contact input[type="text"]:focus,
.contact input[type="email"]:focus,
.contact input[type="tel"]:focus,
.contact textarea:focus {
    border-color: #13235B;
    outline: none;
}

.contact textarea {
    min-height: 160px;
    resize: none;
}

.contact button[type="submit"] {
    margin-top: 20px;
    width: 100%;
    background: #0C1536;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -1px;
    cursor: pointer;
    transition: background 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact button[type="submit"] img {
    width: 22px;
    height: 22px;
    margin-left: 8px;
    vertical-align: -5px;
}

.contact button[type="submit"]:hover {
    background: #FF8800;
}

.footer {
    background: #0C1536;
    color: #929292;
    font-size: 13px;
    font-weight: 300;
    margin: 0;
}

.footer-inner {
    margin: 0 auto;
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    padding: 35px 30px;
    gap: 30px;
}

.footer-wrap {
    display: flex;
}

.footer-logo {
    width: 125px;
    margin-top: 5px;
}

.footer-center {
    /* flex: 1 1 0; */
    padding-left: 80px;
}

.footer-center {
    padding-left: 80px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-info-row {
    display: flex;
    align-items: baseline;
    color: #929292;
    line-height: 1.5;
    margin-bottom: 1px;
}

.footer-info-row a {
    color: #929292;
}

.footer-info-label {
    min-width: 62px;
    color: #929292;
    font-weight: 300;
    display: inline-block;
}

.footer-right {
    text-align: left;
}

.footer-call {
    color: #929292;
    font-size: 15px;
    font-weight: 400;
    margin: 5px 0 0 0;
}

/**  span으로 고객센터 전화번호 넣었을 때 스타일 **
    .footer-call span {
    color: #929292;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    line-height: 1.2;
    display: block;
    margin: 5px 0 0 0;
} 
*/

.footer-call-number {
    color: #929292;
    font-size: 25px;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
}

.footer-call-number:hover {
    text-decoration: none;
}

.footer-info {
    color: #929292;
    font-size: 12px;
    line-height: 1.5;
}

.footer-desc {
    color: #929292;
    font-size: 11px;
    margin-left: 3px;
}

.footer-bottom {
    border-top: 1px solid #232e4b;
    color: #929292;
    text-align: center;
    font-size: 12px;
    padding: 20px 0;
    letter-spacing: 0;
}


/* 아이폰 사파리 모바일 스타일 강제 적용 */
.footer-call-number,
.footer-call-number:link,
.footer-call-number:visited,
.footer-call-number:active,
.footer-call-number:focus,
.footer-call-number:hover {
    color: #929292 !important;
    text-decoration: none !important;
    -webkit-text-decoration-color: transparent;
}

a[href^="tel"] {
    color: #929292 !important;
    text-decoration: none !important;
    -webkit-text-decoration-color: transparent;
}





/************************************************************************
* 모바일 버전 출력 *
************************************************************************/
@media (max-width: 1100px) {
    .main-img {
        width: 280px;
        height: 220px;
    }

    .book-front {
        width: 150px;
        left: -100px !important;
    }

    .book-back {
        width: 250px;
        left: 0 !important;
        top: -5px !important;
    }
}

@media (max-width: 900px) {
    .main-visual {
        padding: 40px 0 10px 0;
        text-align: left;
        height: 305px;
    }

    .main-text {
        max-width: 100%;
    }

    .main-img {
        padding-right: 0;
    }

    .about-cards {
        gap: 50px;
    }

    .portfolio-list {
        flex-wrap: nowrap;
        gap: 20px;
    }

    .service-list {
        gap: 30px;
    }

    .service-item {
        min-width: 120px;
    }

    .process-list {
        align-items: flex-start;
        flex-wrap: unset;
    }

    .process-arrow {
        margin: 35px 0 0;
    }

    .process-arrow img {
        width: 20px;
    }

    .process-step {
        width: 100%;
    }

    .process-step img {
        width: 50px;
        height: 50px;
    }

    .client-card {
        width: 90%;
        padding: 20px 20px 12px 20px;
    }

    .clients .client-logos {
        margin: 20px;
    }

    .client-logos-img {
        max-width: 95%;
        padding: 20px 0;
    }

    .contact {
        max-width: 90%;
    }

    .contact form {
        gap: 13px;
    }

    .contact-row {
        flex-direction: column;
        gap: 10px;
    }

    .contact button[type="submit"] {
        font-size: 1.08rem;
        padding: 15px 0;
    }

    .footer-center,
    .footer-right {
        padding-left: 0;
        min-width: 0;
    }

    .footer-logo {
        margin-bottom: 14px;
    }
}

@media (max-width: 880px) {
    .book-front {
        width: 125px;
        left: -70px !important;
    }

    .book-back {
        width: 223px;
    }
}

@media (max-width: 820px) {
    .footer-inner {
        flex-direction: column;
        gap: 23px;
        padding: 32px 20px 16px 20px;
        align-items: flex-start;
    }

    .footer-wrap {
        flex-direction: column;
    }
    
    .footer-center {
        padding-top: 10px;
        gap: 2px;
    }

    .footer-info-row {
        line-height: 1.3;
    }
}

@media (max-width: 798px) {
    .book-front {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-visual {
        flex-direction: column;
        text-align: center;
    }

    .main-visual .main-text {
        padding: 0;
        margin-right: 0;
    }

    .main-text .desc {
        margin-bottom: 20px;
    }

    .main-img {
        display: none;
    }

    .btn-group {
        justify-content: center;
    }

    .clients {
        padding: 40px 0;
    }

    .client-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 6px;
    }

    .client-card {
        padding: 22px 7px 12px 7px;
        border-radius: 8px;
    }

    .client-note {
        font-size: 12px;
        padding-right: 20px;
        text-align: right;
    }
}

/* 600px 이하: 모바일 최적화 */
@media (max-width: 600px) {
    .header {
        display: flex;
        align-items: center;
        padding: 18px 12px;
        gap: 14px;
    }

    .header .logo {
        font-size: 10px;
        line-height: unset;
        letter-spacing: 1.1px;
    }
    .header .logo img {
        width: 42px;
    }

    .header nav ul {
        gap: 12px;
        font-size: 15px;
        flex-wrap: wrap;
        padding-left: 0;
    }

    .main-visual {
        flex-direction: unset;
        text-align: unset;
        padding: 20px;
    }

    .main-text {
        padding-left: 0;
        text-align: center;
    }

    .main-text h1 {
        font-size: 1.6rem;
    }

    .main-img {
        width: 170px;
        height: 130px;
        margin-top: 10px;
    }

    .book-front,
    .book-back {
        width: 100px !important;
        left: -28px !important;
        top: 25px !important;
    }

    .about-cards {
        flex-direction: column;
        gap: 30px;
    }

    .about-card img {
        height: 55px;
    }

    .portfolio-item {
        width: 90%;
    }

    .service {
        padding: 80px 0;
    }

    .service-list {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        min-width: 100px;
        margin-bottom: 10px;
    }

    .service-item img {
        width: 44px;
    }

    .service-inner {
        padding: 0 20px;
        gap: 28px;
    }

    .service-desc {
        font-size: 20px;
    }

    .process-list {
        display: flex;
        align-items: center;
        flex-direction: column;
        gap: 0;
    }

    .process-arrow {
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 20px 0;
        width: 100%;
        display: flex;
    }

    .process-arrow .arrow-down {
        display: inline;
        width: 28px !important;
        height: 28px !important;
    }

    .process-arrow .arrow-right {
        display: none;
    }

    .process-step {
        width: 90%;
        margin: 0 auto;
    }

    .process-arrow img {
        width: 18px;
    }

    .clients {
        padding: 25px 0 35px 0;
    }

    .client-logos-img {
        max-width: 90%;
        padding: 10px 0;
    }

    .contact {
        max-width: 100%;
        padding-bottom: 30px;
    }

    .contact-row {
        flex-direction: column;
        gap: 8px;
    }

    .portfolio-thumb img {
        width: 80%;
        margin: 10px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px 10px 20px;
        gap: 16px;
    }

    .footer-logo {
        width: 85px;
        margin-bottom: 0;
    }

    .footer-center {
        padding-left: 0;
    }

    .footer-bottom {
        padding: 15px 0;
    }

}

/* 400px 이하: 초소형 모바일 */
@media (max-width: 400px) {
    .main-text h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .main-text .desc {
        font-size: 0.8rem;
        margin-bottom: 40px;
    }

    .main-img {
        width: 120px;
        height: 80px;
    }

    .about h2,
    .portfolio h2,
    .service h2,
    .process h2,
    .clients h2,
    .contact h2 {
        font-size: 25px;
    }

    .visual-desc {
        margin-top: 5px;
    }

    .footer-logo {
        width: 80px;
    }

    .footer-bottom {
        font-size: 10px;
    }
}