@charset "utf-8";

/* 이원조경 테마 스타일 - 충돌 방지를 위해 iwon-theme 클래스로 감쌈 */
.iwon-theme {
    /* 전역 변수 */
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #FDD835;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #666;
    --white: #fff;
}

/* 기본 스타일 재정의 */
.iwon-theme {
    font-family: 'Noto Sans KR', sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.iwon-theme * {
    box-sizing: border-box;
}

.iwon-theme a {
    text-decoration: none;
    color: inherit;
}

.iwon-theme ul, .iwon-theme li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 컨테이너 */
.iwon-theme .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 섹션 공통 */
.iwon-theme section {
    padding: 80px 0;
}

.iwon-theme .section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #333;
}

/* 헤더 스타일 */
.iwon-theme #header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.iwon-theme .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.iwon-theme #logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.iwon-theme .iwon-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    height: 100%;
    padding: 0;
    margin: 0;
}

.iwon-theme .iwon-logo-symbol {
    position: relative;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

.iwon-theme .iwon-logo-leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50% 0 50% 50%;
    transition: transform 0.3s ease;
    margin: 0;
}

.iwon-theme .iwon-logo-leaf:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-45deg);
}

.iwon-theme .iwon-logo-leaf:nth-child(2) {
    bottom: 0;
    right: 0;
    transform: rotate(135deg);
}

.iwon-theme .iwon-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.iwon-theme .iwon-logo-text span {
    color: var(--primary-color);
}

.iwon-theme .iwon-logo-wrap:hover .iwon-logo-leaf {
    animation: wiggle 0.6s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-45deg); }
    25% { transform: rotate(-30deg); }
    75% { transform: rotate(-60deg); }
}

/* 네비게이션 */
.iwon-theme .gnb {
    display: flex;
    align-items: center;
}

.iwon-theme .gnb ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.iwon-theme .gnb li {
    margin: 0 20px;
}

.iwon-theme .gnb a {
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.iwon-theme .gnb a:hover {
    color: var(--primary-color);
}

/* 모바일 메뉴 버튼 */
.iwon-theme .menu-button {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.iwon-theme .menu-button span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 메인 콘텐츠 */
.iwon-theme .main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    padding-top: 0;
}

/* 게시판 컨테이너 */
.iwon-theme #container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

.iwon-theme #container_wr {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
}

/* 그누보드 기본 컨테이너 재정의 */
.iwon-theme #wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.iwon-theme #container_wr {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 게시판 내부 요소들 */
.iwon-theme .tbl_wrap {
    max-width: 100% !important;
    overflow-x: auto;
}

.iwon-theme .tbl_head01,
.iwon-theme .tbl_head02 {
    max-width: 100% !important;
}

.iwon-theme .tbl_head01 table,
.iwon-theme .tbl_head02 table {
    width: 100% !important;
    max-width: 100% !important;
}

/* 게시판 제목 영역 */
.iwon-theme #container_title {
    max-width: 1200px !important;
    margin: 0 auto 30px !important;
    padding: 0 20px !important;
    text-align: center;
}

/* 게시판 검색 영역 */
.iwon-theme .sch_wrap {
    max-width: 1200px !important;
    margin: 0 auto 20px !important;
    padding: 0 20px !important;
}

/* 게시판 전체 영역 강제 제한 */
.iwon-theme #bo_list,
.iwon-theme #bo_v,
.iwon-theme #bo_write,
.iwon-theme #bo_search {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 게시판 테이블 강제 제한 */
.iwon-theme table {
    max-width: 100% !important;
}

/* 게시판 폼 요소들 */
.iwon-theme .tbl_frm01,
.iwon-theme .tbl_frm02 {
    max-width: 100% !important;
}

/* 그누보드 기본 레이아웃 완전 재정의 */
.iwon-theme #hd,
.iwon-theme #wrapper,
.iwon-theme #ft {
    min-width: auto !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

.iwon-theme #hd_wrapper,
.iwon-theme #container_wr,
.iwon-theme #ft_wr {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 게시판 목록 페이지 특별 처리 */
.iwon-theme body:not(.is_index) #container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    float: none !important;
    width: 100% !important;
}

.iwon-theme body:not(.is_index) #aside {
    display: none !important;
}

/* 최강력 CSS 재정의 - 모든 그누보드 기본 스타일 덮어쓰기 */
.iwon-theme #hd,
.iwon-theme #wrapper,
.iwon-theme #ft,
.iwon-theme #hd_wrapper,
.iwon-theme #container_wr,
.iwon-theme #ft_wr,
.iwon-theme #container,
.iwon-theme #bo_list,
.iwon-theme #bo_v,
.iwon-theme #bo_write,
.iwon-theme #bo_search,
.iwon-theme .tbl_wrap,
.iwon-theme .tbl_head01,
.iwon-theme .tbl_head02,
.iwon-theme .tbl_frm01,
.iwon-theme .tbl_frm02,
.iwon-theme table,
.iwon-theme #container_title,
.iwon-theme .sch_wrap {
    min-width: auto !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    width: 100% !important;
    float: none !important;
}

/* 게시판 테이블 강제 제한 */
.iwon-theme table,
.iwon-theme .tbl_wrap table,
.iwon-theme .tbl_head01 table,
.iwon-theme .tbl_head02 table,
.iwon-theme .tbl_frm01 table,
.iwon-theme .tbl_frm02 table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: auto !important;
}

/* 서브페이지 상단 비주얼 */
.iwon-theme .sub-visual {
    background: linear-gradient(rgba(46, 125, 50, 0.4), rgba(76, 175, 80, 0.4)), url('../img/sub-visual-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 0 20px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 300px;
    height: 300px;
    padding-bottom: 80px;
    margin-top: 80px;
}

.iwon-theme .sub-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.iwon-theme .sub-visual h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    position: relative;
    z-index: 2;
    letter-spacing: 3px;
    line-height: 1.2;
    transform: translateY(0);
}

/* 게시판별 배경 이미지 변경 */
.iwon-theme .sub-visual.architecture-bg {
    background: linear-gradient(rgba(34, 51, 92, 0.4), rgba(191, 161, 74, 0.4)), url('../img/sub-visual-architecture.jpg');
}

.iwon-theme .portfolio-bg {
    background: linear-gradient(rgba(34, 51, 92, 0.4), rgba(191, 161, 74, 0.4)), url('../img/services/design.jpg');
}

.iwon-theme .sub-visual.remodel-bg {
    background: linear-gradient(rgba(34, 51, 92, 0.4), rgba(191, 161, 74, 0.4)), url('../img/sub-visual-remodel.jpg');
}

.iwon-theme .sub-visual.service-bg {
    background: linear-gradient(rgba(34, 51, 92, 0.4), rgba(191, 161, 74, 0.4)), url('../img/service-bg.jpg');
}

/* 회사소개 페이지 배경 */
.iwon-theme .sub-visual.company-bg {
    background: linear-gradient(rgba(46, 125, 50, 0.4), rgba(76, 175, 80, 0.4)), url('../img/company-bg.jpg');
}

/* 고객센터 페이지 배경 */
.iwon-theme .sub-visual.notice-bg {
    background: linear-gradient(rgba(46, 125, 50, 0.4), rgba(76, 175, 80, 0.4)), url('../img/notice-bg.jpg');
}

/* 모바일에서 배경 고정 해제 */
@media (max-width: 768px) {
    .iwon-theme .sub-visual {
        background-attachment: scroll;
        padding: 0 20px 30px 20px;
        min-height: 180px;
        height: 180px;
        align-items: flex-end;
        margin-top: 80px;
    }
    
    .iwon-theme .sub-visual h2 {
        font-size: 2.2rem;
        line-height: 1.3;
        letter-spacing: 2px;
    }
}

/* 서비스 섹션 */
.iwon-theme .services {
    padding: 80px 0;
    background: #f9f9f9;
}


/* 포트폴리오 섹션 */
.iwon-theme .portfolio {
    padding: 80px 0;
    background: #fff;
}

.iwon-theme .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.iwon-theme .portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.iwon-theme .portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.iwon-theme .portfolio-item:hover img {
    transform: scale(1.05);
}

.iwon-theme .portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    color: #fff;
}

.iwon-theme .portfolio-item .overlay h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.iwon-theme .portfolio-item .overlay p {
    font-size: 14px;
    opacity: 0.8;
}


/* 버튼 스타일 */
.iwon-theme .iwon-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

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

.iwon-theme .iwon-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.4);
}

.iwon-theme .iwon-btn:hover::before {
    left: 100%;
}

.iwon-theme .text-center {
    text-align: center;
}

.iwon-theme .mt-4 {
    margin-top: 40px;
}

/* 슬라이더 스타일 */
.iwon-theme .main-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.iwon-theme .main-carousel .item {
    position: relative;
    height: 500px;
}

.iwon-theme .main-carousel .slide-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.iwon-theme .main-carousel .cover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.iwon-theme .main-carousel .copy_area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
}

.iwon-theme .main-carousel .copy_area h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.iwon-theme .main-carousel .copy_area h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.iwon-theme .main-carousel .copy_area h3 {
    font-size: 18px;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    /* 헤더 관련 스타일은 default.css에서 처리하므로 비활성화 */
    .iwon-theme #header {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    .iwon-theme .header-inner {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }
    
    .iwon-theme .main-content {
        margin-top: 0 !important;
    }
    
    .iwon-theme #container,
    .iwon-theme #container_wr {
        padding: 0 15px;
    }
    
    .iwon-theme #container_title,
    .iwon-theme .sch_wrap {
        padding: 0 15px;
    }
    
    .iwon-theme .sub-visual h2 {
        padding: 0 15px;
        font-size: 36px;
    }
    
    /* 헤더 관련 스타일은 default.css에서 처리 */
    .iwon-theme .menu-button {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .gnb {
        /* default.css에서 처리 */
    }
    
    .iwon-theme body.menu-open .gnb {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .gnb ul {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .gnb li {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .gnb li:last-child {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .gnb a {
        /* default.css에서 처리 */
    }
    
    .iwon-theme body.menu-open .menu-button span:nth-child(1) {
        /* default.css에서 처리 */
    }
    
    .iwon-theme body.menu-open .menu-button span:nth-child(2) {
        /* default.css에서 처리 */
    }
    
    .iwon-theme body.menu-open .menu-button span:nth-child(3) {
        /* default.css에서 처리 */
    }
    
    .iwon-theme .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .iwon-theme .service-item {
        padding: 30px 20px;
    }
    
    .iwon-theme .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .iwon-theme .service-icon i {
        font-size: 24px;
    }
    
    .iwon-theme .service-item h3 {
        font-size: 20px;
    }
    
    .iwon-theme .service-item p {
        font-size: 14px;
    }
    
    .iwon-theme .cta {
        padding: 80px 0;
        background-attachment: scroll;
    }
    
    .iwon-theme .cta-content h2 {
        font-size: 22px;
    }
    
    .iwon-theme .cta-content p {
        font-size: 18px;
    }
    
    .iwon-theme .iwon-btn {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .iwon-theme .main-carousel {
        height: 400px;
    }
    
    .iwon-theme .main-carousel .item {
        height: 400px;
    }
    
    .iwon-theme .main-carousel .copy_area h1 {
        font-size: 32px;
    }
    
    .iwon-theme .main-carousel .copy_area h2 {
        font-size: 18px;
    }
    
         .iwon-theme .main-carousel .copy_area h3 {
         font-size: 14px;
     }
 }

/* 푸터 스타일 */
.iwon-theme .iwon-footer {
    background: #333;
    color: #fff;
    padding: 60px 0 30px;
}

.iwon-theme .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.iwon-theme .footer-info h3,
.iwon-theme .footer-menu h3,
.iwon-theme .footer-business-hours h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.iwon-theme .footer-contact {
    list-style: none;
    padding: 0;
}

.iwon-theme .footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iwon-theme .footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.iwon-theme .footer-menu ul {
    list-style: none;
    padding: 0;
}

.iwon-theme .footer-menu li {
    margin-bottom: 10px;
}

.iwon-theme .footer-menu a {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.iwon-theme .footer-menu a:hover {
    opacity: 1;
}

.iwon-theme .footer-business-hours p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.iwon-theme .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.iwon-theme .copyright {
    opacity: 0.8;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .iwon-theme .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .iwon-theme .iwon-footer {
        padding: 40px 0 20px;
    }
}

/* 서브페이지 컨텐츠 최대 너비 */
.iwon-theme .main-content.sub-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
}

/* 서브페이지 섹션 스타일 */
.iwon-theme .about-section,
.iwon-theme .services-detail {
    padding: 10px 0;
}

.iwon-theme .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Content 페이지 추가 스타일 */
.iwon-theme .main-content.sub-content {
    min-height: calc(100vh - 80px);
}

.iwon-theme .main-content.sub-content .iwon-theme {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Content 페이지 내부 여백 조정 */
.iwon-theme .main-content.sub-content .iwon-theme #ctt {
    margin-top: 20px;
} 