@charset "utf-8";

/* ==========================================================================
   Page Common Styles
   ========================================================================== */
.sub_page_wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 80px;
    /* Drastically reduced top padding */
}

/* Sub Navigation (LNB) */
.sub_nav_bar {
    margin-bottom: 60px;
    padding-bottom: 20px;
    position: relative;
    overflow: hidden;
    /* Ensure wave stays inside */
}

/* Animated Wave Border (Fine Line Style) */
.sub_nav_bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    /* Enough width to scroll */
    height: 4px;
    /* Thin line height */
    /* High-frequency sine wave SVG */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath d='M0 2 Q5 0 10 2 T20 2' stroke='%23000' fill='none' stroke-width='1'/%3E%3C/svg%3E") repeat-x;
    background-size: 20px 4px;
    opacity: 0.8;
    animation: waveMove 1s linear infinite;
    transform: translate3d(0, 0, 0);
}

/* Animation Classes with "Birth" & "Fly-in" effects */
.h_list li {
    opacity: 0;
    transform: translateX(60px);
    /* Fly in from right */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    /* Smooth easing */
}

/* Initial Dot State (Hidden) */
.h_list li::after {
    transform: scale(0);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy "Birth" effect */
}

/* Visible State */
.h_list li.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Visible Dot State (Pop up) */
.h_list li.visible::after {
    transform: scale(1);
    transition-delay: 0.2s;
    /* Slight delay for dot to pop after text starts appearing */
}

/* Keep active state slightly larger if needed, or just let visible play out */
.h_list li.active::after {
    background: #000;
    transform: scale(1.2);
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-20px);
    }
}


.sub_title_area {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Title on left, or center? User said "Horizontal". Usually generic LNB aligns left or center. Let's try consistent alignment */
    gap: 80px;
    /* Increased gap for better breathing room */
    margin-bottom: 0;
    padding-bottom: 0;
    /* Remove padding to sit right above wave */
}

.sub_title_area h2 {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    letter-spacing: -0.5px;
    margin: 0;
    white-space: nowrap;
    /* padding-bottom: 10px; Removed to prevent double line */
}

.lnb_list {
    display: flex;
    justify-content: flex-start;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lnb_list li a {
    font-size: 17px;
    font-weight: 400;
    /* Regular weight for inactive */
    color: #888;

    /* Force Remove Underlines */
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;

    padding-bottom: 10px;
    /* Adjusted padding */
    display: block;
    transition: color 0.3s;
    position: relative;
    letter-spacing: -0.02em;
}

.lnb_list li a:hover,
.lnb_list li.active a {
    color: #000;
    /* Black instead of red */
    font-weight: 600;
}

/* Smooth Underline Animation (60fps style) */
.lnb_list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #000;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lnb_list li a:hover::after,
.lnb_list li.active a::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ==========================================================================
   Greeting Page Styles (CEO Message)
   ========================================================================== */
.greeting_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    /* Reduced gap from 60px */
    padding-top: 50px;
}

/* Left: Catchphrase */
.greeting_left {
    flex: 1;
    text-align: left;
    position: relative;
    padding-right: 20px;
}

.app_catchphrase {
    font-size: 54px;
    font-weight: 900;
    line-height: 1.25;
    color: #111;
    letter-spacing: -2px;
    word-break: keep-all;
}

.app_catchphrase .highlight {
    color: #000;
    position: relative;
    z-index: 1;
}

.app_desc {
    margin-top: 30px;
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

/* Center: Photo */
.greeting_center {
    flex: 1.2;
    /* Increased flex ratio for larger image area */
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* Align bottom */
}

.ceo_photo_frame {
    position: relative;
    display: inline-block;
    z-index: 2;
    width: 100%;
    /* Use full width of container */
    max-width: 500px;
    /* Increased max width */
}

.ceo_photo_frame img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
    /* Enhanced shadow */
    border-radius: 0;
    /* Remove border radius */
    transform: scale(1.1);
    /* Slightly scale up image */
    transform-origin: bottom center;
}

/* Graphic element behind photo */
.greeting_center::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    /* Larger background circle */
    height: 450px;
    /* background: radial-gradient(circle, rgba(200, 200, 200, 0.15) 0%, rgba(255, 255, 255, 0) 70%); */
    border-radius: 50%;
    z-index: 0;
}

/* Right: Greetings Body */
.greeting_right {
    flex: 1;
    padding-left: 40px;
    /* More padding instead of border */
    /* border-left removed */
}

.greeting_text {
    font-size: 16px;
    line-height: 1.1;
    color: #444;
    white-space: pre-line;
    /* pre-wrap might show HTML indentation, pre-line collapses spaces but keeps newlines */
    font-family: 'Pretendard', sans-serif;
    text-align: left;
    /* Ensure left alignment */
    margin-bottom: 40px;
}

.greeting_sign {
    margin-top: 40px;
    font-size: 18px;
    font-weight: 700;
    color: #111;
    text-align: right;
}


/* ==========================================================================
   History Page Styles
   ========================================================================== */
.history_container {
    padding-top: 30px;
    text-align: left;
    /* Changed to left for content */
}

/* Common Image Mode */
.history_image_wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.history_image_wrap img {
    max-width: 100%;
    width: auto;
    height: auto;
    border-radius: 4px;
    display: inline-block;
}

.history_placeholder {
    padding: 100px 0;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px dashed #ddd;
    color: #888;
}

/* HTML Timeline Mode */
.history_timeline_wrap {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 50px;
    position: relative;
    /* For scroll line */
}

.history_page_title {
    font-size: 32px;
    font-weight: 800;
    color: #111;
    margin-bottom: 50px;
    padding-left: 20px;
    padding-top: 20px;
}

.history_page_title small {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: #888;
    margin-top: 10px;
}

/* Continuous Scroll Line */
.timeline_line_track,
.timeline_line_progress {
    position: absolute;
    top: 130px;
    /* Start below title roughly */
    left: 155px;
    /* Matches dots position (20px padding + 135px li/dot offset) */
    width: 2px;
    height: 100%;
    /* Track is full height */
    z-index: 0;
}

.timeline_line_track {
    background: #f0f0f0;
    height: calc(100% - 130px);
    /* Adjust height to stop at bottom */
}

.timeline_line_progress {
    background: #000;
    height: 0;
    /* JS will animate this */
    z-index: 1;
    transition: height 0.1s linear;
    /* Smooth update */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Glowing effect */
}


.history_section {
    margin-bottom: 60px;
}

.h_sec_title {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-left: 20px;
}

.h_sec_title h3 {
    font-size: 22px;
    /* Slightly smaller internal title to emphasize main title */
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.h_sec_title .bar {
    color: #1a1a1a;
    font-weight: 300;
    margin-right: 5px;
    display: none;
    /* Hide bar if redundant */
}

.h_list {
    position: relative;
    padding-left: 20px;
}

/* Remove individual section lines */
.h_list::before {
    display: none;
}

.h_list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.h_list li .year {
    display: inline-block;
    width: 80px;
    font-size: 20px;
    font-weight: 700;
    color: #000;
    /* Point Color changed to Black */
    text-align: right;
    margin-right: 10px;
    flex-shrink: 0;
    /* Prevent shrinking */
}

.h_list li .month {
    display: inline-block;
    width: 30px;
    font-size: 14px;
    color: #888;
    padding-top: 5px;
    /* Align slightly lower */
    text-align: center;
    margin-right: 60px;
    /* Increased margin to make space for line */
    flex-shrink: 0;
}

/* The Dot on the timeline */
.h_list li::after {
    content: '';
    position: absolute;
    left: 142px;
    /* Center on line (145px + 1.5px center - 4.5px half dot) */
    top: 9px;
    width: 9px;
    /* Slightly larger point */
    height: 9px;
    background: #fff;
    border: 3px solid #000;
    /* Thicker border */
    border-radius: 50%;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    box-shadow: 0 0 0 3px #fff;
    /* White ring to separate from line */
}

/* Active dot style for animation */
.h_list li.active::after {
    background: #000;
    /* Fill black when active */
    transform: scale(1.3);
}

.h_list li .desc {
    flex: 1;
    font-size: 16px;
    color: #444;
    line-height: 1.6;
    word-break: keep-all;
    padding-top: 2px;
}

.h_list li .desc b {
    color: #111;
    font-weight: 700;
}

/* Mobile Responsive for History */
@media (max-width: 768px) {
    .history_page_title {
        font-size: 24px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .h_sec_title h3 {
        font-size: 20px;
    }

    /* Adjust Line Position for Mobile */
    .timeline_line_track,
    .timeline_line_progress {
        left: 0px;
        /* Move to far left */
        top: 140px;
        height: calc(100% - 120px);
    }

    .h_list::before {
        left: 15px;
        /* Keep hidden or adjust if visible */
        display: none;
    }

    .h_list li {
        flex-direction: column;
        margin-bottom: 30px;
        padding-left: 35px;
    }

    .h_list li .year {
        text-align: left;
        margin-bottom: 5px;
    }

    .h_list li .month {
        display: none;
        /* Hide month on mobile if cramped, or put next to year */
    }

    .h_list li::after {
        left: 11px;
    }
}

/* ==========================================================================
   Location Page Styles
   ========================================================================== */
.location_container {
    padding-top: 50px;
    padding-bottom: 50px;
}

.location_info_area {
    margin-bottom: 50px;
    text-align: center;
}

.loc_title {
    font-size: 42px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.loc_subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

.info_box {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

.info_item {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.info_item .label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #c0392b;
    /* Brand Point Color? Or keeping black/grey theme. Let's use clean grey/black or subtle point */
    color: #888;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info_item .value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    word-break: keep-all;
}

.info_item .sub_value {
    display: block;
    font-size: 14px;
    color: #777;
    margin-top: 8px;
    font-weight: 400;
}

.location_map_wrap {
    width: 100%;
    height: 500px;
    /* Fixed height for consistency */
    border-radius: 20px;
    overflow: hidden;
    /* For rounded corners on map */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 1px solid #eee;
}

/* Custom Overlay Style */
.custom_map_overlay {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.custom_map_overlay::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
}

.custom_map_overlay a {
    display: block;
    color: #fff;
    text-decoration: none;
    text-align: center;
}

.custom_map_overlay .title {
    display: block;
    margin-bottom: 2px;
}

.custom_map_overlay .desc {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: -0.5px;
}

/* Mobile Responsive for Location */
@media (max-width: 768px) {
    .loc_title {
        font-size: 32px;
    }

    .info_box {
        flex-direction: column;
        gap: 20px;
    }

    .info_item {
        padding: 30px 20px;
    }

    .location_map_wrap {
        height: 350px;
        /* Smaller map on mobile */
        border-radius: 12px;
    }

    .info_item .value {
        font-size: 18px;
    }

    /* Mobile: LNB & Header Adjustments */
    .sub_nav_bar {
        margin-bottom: 40px;
    }

    .sub_title_area {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .sub_title_area h2 {
        font-size: 22px;
        padding-bottom: 10px;
        width: 100%;
        border-bottom: 1px solid #eee;
        /* Maintain border only on mobile for separation */
        margin-bottom: 10px;
    }

    .lnb_list {
        width: 100%;
        gap: 20px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
        /* Space for scrollbar if any */

        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .lnb_list::-webkit-scrollbar {
        display: none;
    }

    .lnb_list li {
        flex-shrink: 0;
    }

    /* Mobile: Greeting Page Layout */
    .greeting_container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 30px;
    }

    .greeting_left {
        text-align: center;
        padding-right: 0;
    }

    .app_catchphrase {
        font-size: 36px;
    }

    .greeting_center {
        width: 100%;
        flex: auto;
    }

    .ceo_photo_frame {
        max-width: 80%;
    }

    .greeting_center::before {
        width: 300px;
        height: 300px;
    }

    .greeting_right {
        border-left: none;
        padding-left: 0;
        padding-bottom: 40px;
    }

    .greeting_text {
        text-align: left;
        /* Keep left align as requested but stack vertically */
        font-size: 15px;
        padding: 0 10px;
    }

    .greeting_sign {
        text-align: center;
        margin-top: 30px;
    }

    /* Mobile: History Adjustments */
    .history_page_title {
        font-size: 24px;
        padding-left: 0;
        text-align: center;
        margin-bottom: 30px;
    }

    .h_sec_title h3 {
        font-size: 20px;
    }

    .timeline_line_track,
    .timeline_line_progress {
        left: 0px;
        top: 140px;
        height: calc(100% - 120px);
    }

    .h_list::before {
        display: none;
    }

    .h_list li {
        flex-direction: column;
        margin-bottom: 30px;
        padding-left: 35px;
    }

    .h_list li .year {
        text-align: left;
        margin-bottom: 5px;
    }

    .h_list li .month {
        display: none;
    }

    .h_list li::after {
        left: 11px;
    }
}