@charset "utf-8";
/**
 * 관리의 달인 - 정적 콘텐츠 페이지 통합 스타일
 * gree.php, fee.php, building.php 등 서브 정적 페이지 공통
 */

/* ── 기본 레이아웃 (mercury gc-page-content 내부) ── */
.tong-sub #content.tong-content {
    padding: 0;
}

.tong-sub #content section {
    padding: 0;
}

.tong-sub #content section > article.mw1200,
.tong-sub #content section article.mw1200 {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    float: none;
    width: auto;
}

.tong-sub #content section article > h2,
.tong-sub #content section > article > h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--primary);
    line-height: 1.4;
}

.tong-sub #content section article > p,
.tong-sub #content section > article > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 16px;
}

.tong-sub #content .color-red,
.tong-sub #content .red {
    color: #dc2626 !important;
    font-weight: 500;
}

.tong-sub #content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ── CTA 버튼 ── */
.tong-sub #content .myButton,
.tong-sub #content a.myButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary-dark) !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.tong-sub #content .myButton:hover,
.tong-sub #content a.myButton:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.tong-sub #content center {
    display: block;
    text-align: center;
    margin: 32px 0;
}

/* ── gree.php 전용 (구 sub.css 충돌 방지) ── */
.tong-sub #content .tong-gree {
    padding: 0;
    margin: 0;
}

.tong-gree-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.tong-gree-head {
    text-align: center;
    margin-bottom: 56px;
}

.tong-gree-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.tong-gree-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 16px;
    border: none;
    padding: 0;
    line-height: 1.35;
}

.tong-gree-title span {
    color: var(--primary);
    font-family: var(--font-display);
}

.tong-gree-lead {
    font-size: 17px;
    color: var(--gray);
    margin: 0;
    line-height: 1.7;
}

.tong-gree-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(30, 58, 95, 0.06);
}

.tong-gree-block--reverse .tong-gree-block__media {
    order: 2;
}

.tong-gree-block--reverse .tong-gree-block__body {
    order: 1;
}

.tong-gree-block__media {
    margin: 0;
    text-align: center;
}

.tong-gree-block__media img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.tong-gree-block__body h3 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 20px;
    line-height: 1.35;
    border: none;
    padding: 0;
}

.tong-gree-block__body p {
    font-size: 16px;
    line-height: 1.85;
    color: var(--gray);
    margin: 0 0 14px;
    text-align: left;
}

.tong-gree-block__body p:last-child {
    margin-bottom: 0;
}

.tong-gree-history {
    margin-top: 72px;
    padding: 56px 40px;
    background: linear-gradient(180deg, #f0f6ff 0%, #fff 100%);
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.tong-gree-history__title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.1em;
    margin: 0 0 40px;
    border: none;
    padding: 0;
}

.tong-gree-timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 28px;
}

.tong-gree-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.tong-gree-timeline__item {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 20px;
    align-items: start;
    padding: 16px 0 16px 20px;
    position: relative;
}

.tong-gree-timeline__item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 22px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--primary-light);
}

.tong-gree-timeline__item--year {
    margin-top: 12px;
    padding-top: 28px;
    border-top: 2px solid rgba(37, 99, 235, 0.2);
}

.tong-gree-timeline__date {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    line-height: 1.5;
}

.tong-gree-timeline__text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--dark);
}

@media (max-width: 900px) {
    .tong-gree-block,
    .tong-gree-block--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 28px 20px;
    }

    .tong-gree-block--reverse .tong-gree-block__media,
    .tong-gree-block--reverse .tong-gree-block__body {
        order: unset;
    }

    .tong-gree-history {
        padding: 40px 20px;
    }

    .tong-gree-timeline__item {
        grid-template-columns: 72px 1fr;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .tong-gree-wrap {
        padding: 32px 16px 60px;
    }

    .tong-gree-timeline__item {
        grid-template-columns: 1fr;
        gap: 6px;
        padding-left: 16px;
    }

    .tong-gree-timeline__date {
        text-align: left;
    }
}

/* ── history 타임라인 (기타 페이지 호환) ── */
section.history {
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%) !important;
    background-image: none !important;
    padding: 80px 0 100px !important;
    height: auto !important;
    margin-bottom: 0 !important;
}

section.history .subj {
    display: none !important;
}

section.history .subt {
    display: block !important;
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 48px;
    letter-spacing: 0.08em;
}

section.history article {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

section.history article .his {
    width: 100% !important;
    float: none !important;
    position: relative;
    padding-left: 32px;
}

section.history article .his::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 3px;
}

section.history .tong-timeline-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 20px 0 20px 24px;
    position: relative;
}

section.history .tong-timeline-item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 26px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--primary-light);
}

section.history .tong-timeline-item.upline-item {
    border-top: none;
    padding-top: 32px;
    margin-top: 8px;
}

section.history .tong-timeline-item.upline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

section.history article .his .date {
    float: none !important;
    width: 100px !important;
    flex-shrink: 0;
    text-align: right !important;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    margin: 0 !important;
    padding: 0 !important;
}

section.history article .his .txt {
    float: none !important;
    width: auto !important;
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark);
    padding: 0 !important;
}

section.history article .his .upline {
    border: none !important;
}

/* ── 그리드 (svc_needs2, svc_effect2, svc_needs) ── */
.tong-sub #content .svc_needs2,
.tong-sub #content .svc_effect2,
.tong-sub #content .svc_needs {
    display: grid !important;
    gap: 20px;
    margin: 24px 0 40px;
}

.tong-sub #content .svc_needs2 {
    grid-template-columns: repeat(2, 1fr);
}

.tong-sub #content .svc_needs2 .box,
.tong-sub #content .svc_effect2 .box,
.tong-sub #content .svc_needs .box {
    float: none !important;
    width: auto !important;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tong-sub #content .svc_needs2 .box:hover,
.tong-sub #content .svc_effect2 .box:hover,
.tong-sub #content .svc_needs .box:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.tong-sub #content .svc_needs2 .box img,
.tong-sub #content .svc_needs .box img {
    max-height: 64px;
    margin-bottom: 12px;
}

.tong-sub #content .svc_needs2 .box p,
.tong-sub #content .svc_needs .box p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray);
    margin: 0;
}

.tong-sub #content .svc_effect2 {
    grid-template-columns: repeat(4, 1fr);
}

.tong-sub #content .svc_effect2 .box {
    border-top: 4px solid var(--primary);
}

.tong-sub #content .svc_effect2 .box h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    border: none;
    padding: 0;
    margin-bottom: 8px;
}

.tong-sub #content .svc_effect2 .box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray);
}

.tong-sub #content .svc_needs {
    grid-template-columns: repeat(3, 1fr);
}

/* ── 서비스 절차 (article.proc) ── */
.tong-sub #content article.proc {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 48px 32px !important;
    margin-top: 24px;
}

.tong-sub #content article.proc > h2 {
    text-align: center;
    border: none;
    margin-bottom: 32px;
}

.tong-sub #content article.proc ul {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tong-sub #content article.proc ul li {
    float: none !important;
    width: auto !important;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    padding: 20px 16px;
    min-width: 130px;
    max-width: 150px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.tong-sub #content article.proc ul li.arrow {
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: auto;
    padding: 0 4px;
    color: var(--primary);
    font-size: 24px;
}

.tong-sub #content article.proc ul li img {
    max-height: 48px;
    margin-bottom: 10px;
}

.tong-sub #content article.proc ul li p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
    margin: 0;
}

/* ── sim_exam (진단 소개) ── */
section.sim_exam {
    padding: 40px 0 80px;
}

section.sim_exam .wrapper {
    background: #fff;
    border-radius: 20px;
    padding: 48px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    text-align: center;
}

section.sim_exam .wrapper p {
    margin-top: 32px;
}

section.sim_exam h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 24px;
    border: none;
    padding: 0;
}

section.sim_exam h2 i {
    color: var(--primary);
    margin-right: 8px;
}

section.sim_exam img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* ── building / franchise 공통 ── */
section.bld article,
section.franchise article,
section.rm_intro article,
section.fee article,
section.dan article,
section.jip article,
section.gang article,
section.bm_plan article,
section.bld_check article,
section.ma_check article {
    margin-bottom: 16px;
}

.tong-sub #content article.svc ul.latest {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tong-sub #content article.svc ul.latest li {
    flex: 1 1 280px;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition);
}

.tong-sub #content article.svc ul.latest li:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

/* ── menu5 배경 섹션 ── */
section.menu5.section3.bg,
section.menu5.section4.bg,
section.menu5.section5.bg {
    border-radius: 20px;
    margin: 24px auto;
    max-width: 1200px;
    overflow: hidden;
}

/* ── 법적 페이지 (privacy, term) ── */
.etc,
.guard.etc {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.etc ul {
    padding-top: 16px;
    list-style: disc;
    padding-left: 24px;
}

.etc ul li {
    padding: 4px 0;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.etc p {
    padding: 12px 0;
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
}

.etc h3 {
    padding: 36px 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--light-gray);
    margin-bottom: 8px;
}

.etc h4 {
    color: var(--primary-dark);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    margin: 16px 0 8px;
}

/* term tabs */
.term-tabs,
ul.tabs {
    display: flex !important;
    gap: 0;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--light-gray);
    padding: 0;
    list-style: none;
    overflow: visible;
}

.term-tabs li,
ul.tabs li {
    float: none !important;
    flex: 1;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    text-align: center;
}

.term-tabs li > a,
ul.tabs li > a {
    display: block;
    padding: 14px 24px;
    font-weight: 600;
    color: var(--gray);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    line-height: 1.4 !important;
    transition: var(--transition);
}

.term-tabs li.active_tab > a,
ul.tabs li.active_tab > a,
.term-tabs li > a:hover,
ul.tabs li > a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

ul.tabs li.active_tab {
    background: transparent !important;
    border: none !important;
}

ul.tabs li.active_tab > a {
    color: var(--primary) !important;
}

/* ── 테이블 ── */
.tong-sub #content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.tong-sub #content table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    text-align: center;
}

.tong-sub #content table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--gray);
    vertical-align: middle;
}

.tong-sub #content table tr:nth-child(even) td {
    background: var(--bg-light);
}

/* ── datalab 폼 ── */
section.datalab .dataform {
    padding: 24px 0 60px;
}

section.datalab .dataform .tit_box h2 {
    font-size: clamp(20px, 3vw, 26px);
    color: var(--primary-dark);
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

section.datalab .dataform .optWrap label {
    border-radius: 8px;
}

section.datalab .dataform .addWrap {
    width: 100% !important;
    max-width: 726px;
    border-color: var(--light-gray) !important;
    border-radius: 12px;
    overflow: visible !important;
}

/* ── incu (채용정보) ── */
section.incu .rib {
    display: none !important;
}

section.incu .box_gr {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

section.incu .box_gr > div {
    float: none !important;
    width: auto !important;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

section.incu ul.yogang,
section.incu ul.proc {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 32px;
    margin: 24px 0;
}

section.incu ul.yogang li,
section.incu ul.proc li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray);
    padding: 6px 0;
}

/* ── bussArea (사업분야) ── */
.bussArea.sec1 ul {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.bussArea.sec1 ul li {
    float: none !important;
    width: auto !important;
    background: #fff;
    border: 1px solid var(--light-gray);
    border-radius: 14px;
    padding: 24px 12px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.bussArea.sec1 ul li:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.bussArea.sec2 ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.bussArea.sec2 ul li {
    float: none !important;
    width: auto !important;
}

.bussArea.sec3 {
    border-radius: 20px;
    overflow: hidden;
}

/* gree 페이지 하단 여백 */
.tong-sub #container:has(.tong-gree) {
    padding-bottom: 0;
}

@media (max-width: 992px) {
    section.gree article.narrow,
    section.gree article.narrow:nth-child(even) {
        flex-direction: column !important;
        padding: 32px 20px !important;
        max-width: none;
        margin: 0 16px 16px;
    }

    section.gree article.narrow > div.img {
        flex: none;
        width: 100%;
    }

    .tong-sub #content .svc_effect2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .tong-sub #content .svc_needs {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tong-sub #content .svc_needs2,
    .tong-sub #content .svc_effect2,
    .tong-sub #content .svc_needs {
        grid-template-columns: 1fr;
    }

    section.history .tong-timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    section.history article .his .date {
        text-align: left !important;
        width: auto !important;
    }

    .tong-sub #content article.proc ul li:not(.arrow) {
        min-width: 100px;
        flex: 1 1 40%;
    }

    .tong-sub #content article.proc ul li.arrow {
        display: none;
    }
}
