@charset "utf-8";

/* =========================================
   1. Global Common Layout
   ========================================= */
:root {
    --primary-navy: #0050bb;
    --primary-sky: #00a6ff;
    --text-dark: #111827;
    --text-gray: #4b5563;
    --bg-light: #f9fafb;
}

.page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    word-break: keep-all;
}

#contents {
    margin-bottom: 120px;
}

/* Common Title Style */
.title {
    margin: 100px 0 60px;
    font-size: 40px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: -0.03em;
    position: relative;
}

.title span {
    color: var(--primary-navy);
}

/* Decorative heavy underline */
.title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-navy), var(--primary-sky));
    margin: 24px auto 0;
    border-radius: 2px;
}

.title.left { text-align: left; }
.title.left::after { margin: 24px 0 0; }

@media (max-width: 768px) {
    .title {
        margin: 60px 0 40px;
        font-size: 28px;
    }
}

/* =========================================
   2. Page Top Visual (Banner)
   ========================================= */
.pagetop {
    position: relative;
    width: 100%;
    height: 380px;
    background: #0f172a;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pagetop::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: url("/img/main_slide/m1.webp") no-repeat center/cover;
    opacity: 0.5;
    mix-blend-mode: overlay;
}

.pagetop ul {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}

.pagetop ul li h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.pagetop ul li h3 {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    display: inline-block;
}

.pagetop ul li h3 span { color: var(--primary-sky); font-weight: 700; }

@media (max-width: 768px) {
    .pagetop { height: 280px; }
    .pagetop ul li h2 { font-size: 32px; }
    .pagetop ul li h3 { font-size: 15px; padding: 8px 16px; }
}


.onframe {
  width: 100%;
  height: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .onframe {
    width: 99%;
    height: 1500px;
  }
}



/* =========================================
   3. Tap Navigation (Pill Style)
   ========================================= */
#tap {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

#tap ul {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    margin: 0 auto;
    max-width: 1200px;
}

#tap li {
    list-style: none;
}

#tap li::before { display: none; }

#tap li a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-gray);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: block;
}

/* Hover & Active: Pill Shape */
#tap li a:hover,
#tap li.active a {
    background: var(--primary-navy);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 80, 187, 0.3);
}

/* Remove underline style from previous version */
#tap li a::after { display: none; }

@media (max-width: 768px) {
    #tap ul {
        justify-content: center;
        padding: 15px 10px;
        flex-wrap: wrap; /* Allow items to wrap */
        overflow-x: visible; /* Disable scroll */
        gap: 6px; /* Reduce gap */
    }
    #tap li a {
        font-size: 13px;
        padding: 8px 12px;
        white-space: nowrap;
    }
}


/* =========================================
   4. Feature Box (Legacy)
   ========================================= */
.feature {
    background: #eff6ff; /* Light Blue BG */
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}
.feature li {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 18px;
    margin: 8px 0;
}


/* =========================================
   5. Subpage Content Sections (Brand Styling)
   ========================================= */

/* --- .office01: Hero Split with Accent Border --- */
.office01 {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.office01 .img {
    flex: 1;
    position: relative;
}

.office01 .img ul li:last-child {
    display: none;
}

/* Double image effect or Frame */
.office01 .img::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 2px solid var(--primary-sky);
    border-radius: 30px;
    z-index: -1;
}

.office01 .img

.office01 .img img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.office01 .text-content {
    flex: 1;
}

.office01 .text-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}
.office01 .text-content h2::after {
    content: '.';
    color: var(--primary-sky);
}

.office01 .text-content ul li {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--primary-navy);
}

@media (max-width: 1024px) {
    .office01 { flex-direction: column; gap: 40px; }
    .office01 .img::after { display: none; }
    .office01 .img img { height: 300px; }
    .office01 .text-content h2 { font-size: 28px; }
}


/* --- .office02: "Blue Card" Grid --- */
.office02 {
    margin-bottom: 120px;
    position: relative;
}

.office02 > h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-dark);
}

.office02 > ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.office02 > ul > li {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.office02 > ul > li:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 80, 187, 0.15);
    border-color: var(--primary-sky);
}

.office02 > ul > li .img {
    height: 260px;
    overflow: hidden;
    position: relative;
}
.office02 > ul > li .img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s;
}
.office02 > ul > li:hover .img img { transform: scale(1.1); }

/* Overlay on Hover */
.office02 > ul > li .img::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0; transition: 0.3s;
}
.office02 > ul > li:hover .img::after { opacity: 1; }


.office02 > ul > li > ul {
    padding: 40px;
    background: #fff;
    flex: 1;
}

.office02 > ul > li > ul h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Arrow Icon */
.office02 > ul > li > ul h2::after {
    content: '\e93e'; /* XEIcon arrow right */
    font-family: 'xi';
    font-size: 20px;
    color: var(--primary-sky);
    opacity: 0; transform: translateX(-10px);
    transition: 0.3s;
}
.office02 > ul > li:hover > ul h2::after {
    opacity: 1; transform: translateX(0);
}

.office02 > ul > li > ul > li {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}
/* Check Icon */
.office02 > ul > li > ul > li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    font-weight: 900;
    color: var(--primary-sky);
}

@media (max-width: 768px) {
    .office02 > h2 { font-size: 28px; }
    .office02 > ul { grid-template-columns: 1fr; gap: 30px; }
    .office02 > ul > li > ul { padding: 30px 20px; }
}


/* --- .office03: Icon Grid with Brand Gradient --- */
.office03 {
    margin-bottom: 120px;
    background: var(--bg-light);
    padding: 80px 0;
    border-radius: 40px;
}

.office03 > h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}

.office03 .img { margin-bottom: 60px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.office03 .img ul {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.office03 .img ul li img {
    border-radius: 20px;
    height: 320px;
    width: 100%;
    object-fit: cover;
}

.office03 > ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Changed from 4 to 2 columns */
    gap: 24px;
}

.office03 > ul > li {
    background: #fff;
    padding: 40px 20px;
    border-radius: 20px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.office03 > ul > li:hover {
    background: var(--primary-navy);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 80, 187, 0.2);
}

.office03 > ul > li h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    transition: 0.3s;
}

/* Icon Box - Using Font Awesome Building Icon */
.office03 > ul > li h2::before {
    display: flex;
    justify-content: center;
    align-items: center;
    content: '\f1ad'; /* FontAwesome Building */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 32px;
    color: var(--primary-navy);
    width: 80px; height: 80px;
    background: #e0f2fe;
    border-radius: 50%;
    margin: 0 auto 24px;
    transition: 0.3s;
}

.office03 > ul > li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
    transition: 0.3s;
}

/* Hover State Changes */
.office03 > ul > li:hover h2,
.office03 > ul > li:hover { color: #fff; }

.office03 > ul > li:hover h2::before {
    background: #fff;
    color: var(--primary-navy);
}

@media (max-width: 1024px) {
    .office03 .img ul { grid-template-columns: 1fr; }
    .office03 > ul { grid-template-columns: 1fr; } /* Mobile/Tablet: 1 column */
}
@media (max-width: 640px) {
    .office03 > ul { grid-template-columns: 1fr; }
    .office03 > h2 { font-size: 28px; }
}


/* --- .office04: Process Steps (Numbered) --- */
.office04 {
    margin-bottom: 100px;
}
.office04 > h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
}

.office04 .img ul {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 50px;
}
.office04 .img ul li { height: 320px; border-radius: 24px; overflow: hidden; }
.office04 .img ul li img { width: 100%; height: 100%; object-fit: cover; }

.office04 > ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.office04 > ul > li {
    background: #fff;
    border: 2px solid #f3f4f6;
    border-radius: 20px;
    padding: 40px;
    transition: 0.3s;
}

.office04 > ul > li:hover {
    border-color: var(--primary-navy);
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.office04 > ul > li h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Numbered Badge */
.office04 > ul > li h2::before {
    content: "\f00c"; /* Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-sky));
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 80, 187, 0.3);
}

.office04 > ul > li {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .office04 .img ul { grid-template-columns: 1fr; }
    .office04 > ul { grid-template-columns: 1fr; padding: 20px; border: none; }
    .office04 > ul > li { padding: 30px 20px; }
}