* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nanum Gothic', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 1300px;
    margin: 0 auto;
    background-color: #fff;
}

/* 헤더 스타일 */
header {
    background-color: #fff;
    color: #333;
    padding: 0;
}

.header-main {
    background-color: #fff;
    padding: 15px 0;
}

.header-inner {
    width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    flex: 1;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #2E7DB3;
    display: inline-block;
}

.contact-section {
    display: flex;
    align-items: center;
}

.tel-link {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: 2px solid #85C1E9;
    border-radius: 25px;
    background-color: #85C1E9;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(133,193,233,0.2);
}

.tel-link:hover {
    background-color: #5DADE2;
    color: white;
    border-color: #5DADE2;
    box-shadow: 0 4px 10px rgba(93,173,226,0.3);
    transform: translateY(-2px);
}

.tel-icon {
    font-size: 20px;
}

.tel-number {
    font-weight: 800;
}

/* 네비게이션 */
.main-nav {
    background-color: #fff;
    border-bottom: 2px solid #2E7DB3;
}

.main-nav ul {
    list-style: none;
    width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.main-nav ul li {
    flex: 1;
    position: relative;
}

.main-nav ul li a {
    display: block;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    transition: all 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    background-color: #2E7DB3;
    color: white;
}

/* 메인 콘텐츠 */
.main-content {
    min-height: 500px;
    padding: 40px 0;
}

/* 첫 페이지 인트로 섹션 */
.intro-section {
    text-align: center;
    padding: 60px 0 40px;
}

.main-title {
    font-size: 42px;
    font-weight: 800;
    color: #2E7DB3;
    margin-bottom: 15px;
    line-height: 1.3;
}

.main-subtitle {
    font-size: 24px;
    color: #5DADE2;
    font-weight: 700;
    margin-bottom: 20px;
}

.main-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 말풍선 스타일 */
.speech-bubble {
    position: relative;
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.speech-bubble:before {
    content: '';
    position: absolute;
    top: -20px;
    left: 60px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 20px solid #e0e0e0;
}

.speech-bubble:after {
    content: '';
    position: absolute;
    top: -17px;
    left: 62px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 18px solid #f8f9fa;
}

.speech-bubble p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
    margin: 0;
    text-align: center;
}

/* 모바일 전용 현수막 종류 그리드 */
.mobile-banner-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: 1300px;
}

.banner-type-card {
    background: transparent;
    padding: 30px 20px;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.banner-type-card * {
    text-decoration: none !important;
}

.banner-type-card:hover {
    background-color: #f5f5f5;
}

.banner-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
}

.banner-type-title {
    font-size: 20px;
    font-weight: 700;
    color: #2E7DB3;
    margin-bottom: 12px;
}

.banner-type-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 핵심 전략 섹션 */
.strategy-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 40px;
    border-radius: 20px;
    margin-bottom: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.strategy-title {
    font-size: 28px;
    font-weight: 800;
    color: #2E7DB3;
    text-align: center;
    margin-bottom: 40px;
}

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.strategy-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(93,173,226,0.15);
    border-color: #5DADE2;
}

.strategy-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.strategy-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2E7DB3;
    margin-bottom: 15px;
}

.strategy-card-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    text-align: left;
}

/* 텍스트 슬라이더 */
.text-slider {
    background-color: rgba(255, 140, 0, 0.7);
    padding: 20px 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: 1300px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-weight:border;
}

.slider-text {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    max-width: 1300px;
    width: 100%;
    text-align: center;
    position: relative;
    
}

.slider-text span {
    display: inline-block;
    opacity: 0;
    transform: translateX(50px);
    white-space: pre;
}

.slider-text span.show {
    animation: slideInChar 0.5s forwards;
}

@keyframes slideInChar {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 특징 그리드 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 0;
    width: 100%;
    max-width: 1300px;
}

.feature-card {
    background: transparent;
    padding: 40px 30px;
    border-radius: 0;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    box-shadow: none;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.feature-card * {
    text-decoration: none !important;
}

.feature-card:nth-child(odd) {
    background-color: transparent;
}

.feature-card:nth-child(even) {
    background-color: transparent;
}

.feature-card:hover {
    background-color: #f5f5f5;
}

.feature-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    color: #2E7DB3;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, #5DADE2 0%, #85C1E9 100%);
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(93,173,226,0.2);
}

.cta-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 16px;
    color: white;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: white;
    color: #2E7DB3;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

.content-wrapper {
    width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 메인 이미지 */
.main-image {
    width: 100%;
    max-width: 1300px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 페이지 제목 */
.page-title {
    font-size: 32px;
    color: #2E7DB3;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #5DADE2;
}

/* 회사소개 스타일 */
.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    font-size: 24px;
    color: #2E7DB3;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #5DADE2;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.info-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.info-box table {
    width: 100%;
    border-collapse: collapse;
}

.info-box table th {
    background-color: #4A9FD8;
    color: white;
    padding: 12px;
    text-align: left;
    width: 30%;
}

.info-box table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

/* 서비스 스타일 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid #5DADE2;
}

.service-item h3 {
    font-size: 20px;
    color: #2E7DB3;
    margin-bottom: 15px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.service-item ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #5DADE2;
    font-weight: bold;
}

/* 시공사례 그리드 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.portfolio-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 18px;
    color: #2E7DB3;
    margin-bottom: 10px;
}

.portfolio-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.portfolio-info .date {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* 시공사례 상세 */
.portfolio-detail {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
}

.portfolio-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.portfolio-detail h2 {
    font-size: 28px;
    color: #2E7DB3;
    margin-bottom: 20px;
}

.portfolio-detail .meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.portfolio-detail .description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4A9FD8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #3B8AC5;
}

/* 문의하기 */
.contact-box {
    background: linear-gradient(135deg, #5DADE2 0%, #4A9FD8 100%);
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 10px;
    margin-top: 30px;
}

.contact-box h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-box p {
    font-size: 18px;
    margin-bottom: 30px;
}

.phone-number {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 2px;
}

.btn-call {
    display: inline-block;
    padding: 20px 50px;
    background-color: white;
    color: #2E7DB3;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-call:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* 푸터 */
footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    width: 1300px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* 관리자 페이지 */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2E7DB3;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4A9FD8;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3B8AC5;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-full {
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: white;
}

.admin-table th,
.admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #4A9FD8;
    color: white;
}

.admin-table tr:hover {
    background-color: #f5f5f5;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons a {
    padding: 8px 15px;
    font-size: 14px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 반응형 디자인 */
@media (max-width: 1320px) {
    .container,
    .header-inner,
    .main-nav ul,
    .content-wrapper,
    .footer-content,
    .admin-container {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1024px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .main-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .contact-section {
        width: 100%;
    }
    
    .tel-link {
        width: 100%;
        justify-content: center;
        font-size: 16px;
    }
    
    .menu-toggle {
        display: block;
        background-color: #5DADE2;
    }
    
    .main-nav {
        background-color: #5DADE2;
    }
    
    .main-nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
    
    .main-nav ul li a {
        color: white;
    }
    
    .main-nav ul li a:hover,
    .main-nav ul li a.active {
        background-color: rgba(255,255,255,0.15);
    }
    
    .main-nav ul li:not(:last-child)::after {
        display: none;
    }
    
    nav ul li {
        border-bottom: 1px solid #5DADE2;
    }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin: 0;
    }
    
    .mobile-banner-types {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        margin: 0;
        width: 100%;
    }
    
    .main-title {
        font-size: 28px;
    }
    
    .main-subtitle {
        font-size: 20px;
    }
    
    .intro-section {
        padding: 0 0 30px;
    }
    
    .main-subtitle {
        margin-top: 20px;
    }
    
    .speech-bubble {
        margin: 10px auto;
    }
    
    .slider-text {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .strategy-section {
        padding: 30px 20px;
    }
    
    .strategy-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strategy-card {
        padding: 25px 20px;
    }
    
    .strategy-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .strategy-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .strategy-card-desc {
        font-size: 14px;
    }
    
    .cta-section {
        padding: 40px 20px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .feature-card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .feature-desc {
        font-size: 13px;
    }
    
    .banner-type-card {
        padding: 20px 15px;
        min-height: 180px;
    }
    
    .banner-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .banner-type-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .banner-type-desc {
        font-size: 13px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .contact-box {
        padding: 40px 20px;
    }
    
    .contact-box h2 {
        font-size: 28px;
    }
    
    .phone-number {
        font-size: 36px;
    }
    
    .btn-call {
        padding: 15px 40px;
        font-size: 18px;
    }
    
    .admin-table {
        font-size: 14px;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .action-buttons a {
        width: 100%;
        text-align: center;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .admin-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header-top {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo-area {
        padding: 15px 0;
    }
    
    nav ul li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .about-section h2 {
        font-size: 20px;
    }
    
    .service-item h3 {
        font-size: 18px;
    }
    
    .contact-box h2 {
        font-size: 24px;
    }
    
    .contact-box p {
        font-size: 16px;
    }
    
    .phone-number {
        font-size: 28px;
    }
    
    .info-box table {
        font-size: 14px;
    }
    
    .info-box table th,
    .info-box table td {
        padding: 8px;
    }
    
    .portfolio-item img {
        height: 200px;
    }
}
