/* ===== 고쳐주기 벌목업체 — 디자인 시스템 (White / Blue / Deep Green / Neutral Gray, 각진 절제된 톤) ===== */
:root {
    --bg: #FFFFFF;
    --bg-cool: #F3F7F9;
    --surface: #FFFFFF;
    --ink: #1B2420;
    --ink-soft: #5A6459;
    --line: #E1DED4;
    --accent: #245C3B;
    --accent-strong: #163E28;
    --accent-soft: #E7EFE8;
    --cta: #245C3B;
    --cta-strong: #163E28;
    /* Header/Hero 레퍼런스(Ontree) 색 관계 — White / Light-blue / Medium-blue / Dark charcoal + 제한적 green.
       기존 --accent(포레스트 그린)는 그대로 두고, Header·Hero 전용으로만 아래 2색을 추가한다. */
    --ref-blue: #2367a6;
    --ref-blue-tint: rgba(35, 103, 166, 0.08);
    --ref-charcoal: #414243;
    --max: 1600px;
    --gap: clamp(25px, 3.75vw, 50px);
    --section-pad: clamp(70px, 9.5vw, 140px);
    --side-pad: 30px;
    --side-pad-mobile: 25px;
    --radius: 0px;
    --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 116px; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
    word-break: keep-all;
    overflow-wrap: break-word;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.grj-skip-link {
    position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff;
    padding: 15px 25px; z-index: 999;
}
.grj-skip-link:focus { left: 15px; top: 15px; }

/* ===== Header — Ontree 레퍼런스 구조: [넓은 로고 영역][넓게 늘어나는 흰색 Navigation 영역] ===== */
.grj-header {
    position: sticky; top: 0; z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--ref-blue);
}
.grj-header__inner {
    max-width: var(--max); margin: 0 auto; padding: 0 50px;
    height: clamp(80px, 7.6vw, 108px);
    display: flex; align-items: stretch; gap: 32px;
}
.grj-logo {
    display: flex; align-items: center; flex-shrink: 0;
    font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em;
    color: var(--ink); margin-right: 8px;
}
.grj-nav { flex: 1 1 auto; display: flex; align-items: stretch; }
.grj-nav__list { display: flex; align-items: stretch; justify-content: flex-end; flex: 1 1 auto; }
.grj-nav__list > li { display: flex; align-items: center; }
.grj-nav__list a {
    display: flex; align-items: center; height: 100%;
    font-size: 15px; font-weight: 500; color: var(--ink);
    padding: 0 18px; border-bottom: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease;
}
.grj-nav__list a > span { border-bottom: 2px solid transparent; padding-bottom: 4px; transition: border-color .15s ease; }
.grj-nav__list a:hover,
.grj-nav__list a:focus-visible { background-color: #f4f4f4; color: var(--ink); }
.grj-nav__list a:hover > span,
.grj-nav__list a:focus-visible > span { border-bottom-color: var(--accent); }
.grj-nav__list > li:last-child > a { font-weight: 600; color: var(--accent-strong); }

.grj-header__search {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: none; border: none; cursor: pointer; color: var(--ink); padding: 0;
}
.grj-header__search:hover { color: var(--ref-blue); }

.grj-nav-toggle {
    display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 10px;
    align-self: center;
}
.grj-nav-toggle span { width: 30px; height: 2.5px; background: var(--ink); display: block; }
.grj-nav-toggle__label { display: none; }

/* ===== Header — dropdown submenu (서비스 안내) ===== */
.grj-nav__list li.menu-item-has-children { position: relative; }
.grj-nav__list li.menu-item-has-children > a { gap: 6px; }
.grj-nav__list li.menu-item-has-children > a::after {
    content: "▾"; font-size: 11px; transition: transform .2s ease;
}
.grj-nav__list li.menu-item-has-children:hover > a::after,
.grj-nav__list li.menu-item-has-children:focus-within > a::after { transform: rotate(180deg); }
.grj-nav__list .sub-menu {
    position: absolute; top: 100%; left: 0; margin-top: 0;
    min-width: 220px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
    padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    z-index: 120;
}
.grj-nav__list li.menu-item-has-children:hover > .sub-menu,
.grj-nav__list li.menu-item-has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.grj-nav__list .sub-menu a {
    display: block; height: auto; padding: 11px 22px; font-size: 14px; font-weight: 500;
    color: var(--ink); border-bottom: none; white-space: nowrap;
}
.grj-nav__list .sub-menu a:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ===== Quick FAB (front-page only, fixed right-center) ===== */
.grj-quick-fab {
    position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 150;
    opacity: 1; transition: opacity .2s ease;
}
.grj-quick-fab:hover { background: var(--accent-strong); }
.grj-quick-fab.is-hidden-for-cta { opacity: 0; pointer-events: none; }

/* ===== Buttons / CTA ===== */
.grj-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }
.grj-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 18px 34px; font-size: 16px; font-weight: 600; letter-spacing: 0.02em;
    border: 1.5px solid transparent; white-space: nowrap;
}
.grj-btn--call { background: var(--cta); color: #fff; }
.grj-btn--call:hover { background: var(--cta-strong); }
.grj-btn--sms { background: transparent; color: var(--ink); border-color: var(--ink); }
.grj-btn--sms:hover { background: var(--ink); color: #fff; }
.grj-cta-group--lg .grj-btn { padding: 20px 40px; font-size: 17px; }
.grj-btn--block { display: flex; justify-content: center; width: 100%; margin-top: 25px; }

/* ===== Section shell ===== */
.grj-main { overflow-x: clip; }
.grj-main > section { padding: var(--section-pad) var(--side-pad); max-width: var(--max); margin: 0 auto; }
.grj-section-head { max-width: 900px; margin-bottom: 56px; }
.grj-section-head h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.grj-lead { color: var(--ink-soft); font-size: 19px; margin-top: 14px; }
.grj-eyebrow {
    font-size: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 16px;
}
.grj-section-cta { margin-top: 44px; }
.grj-link-arrow { font-weight: 600; color: var(--accent); border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; }

.grj-note { font-size: 16px; color: var(--ink-soft); margin-top: 22px; }

/* ===== Hero — Ontree 레퍼런스 구조: 대형 가로 이미지 + 겹쳐진 밝은 텍스트 패널 + 분리된 CTA + 하단 블루바 =====
   레퍼런스는 진짜 가로(파노라마) 사진을 쓰지만, 보유한 실제 시공사진은 전부 세로 사진이라
   모바일에서는 세로 비율 그대로(주요 피사체 보존), PC에서는 완만한 크롭만 적용한다. */
.grj-hero {
    position: relative; overflow: hidden;
    max-width: 100% !important; padding: 0 !important;
}
.grj-hero__media { width: 100%; aspect-ratio: 3 / 4; background: var(--surface); }
.grj-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }

.grj-hero__panel {
    position: static; margin: -60px 20px 0; padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 36px);
    background: rgba(255,255,255,0.92); box-shadow: 0 20px 50px rgba(20,20,20,.14);
    text-align: center;
}
.grj-hero__panel .grj-eyebrow { justify-content: center; }
.grj-hero__title {
    font-size: clamp(34px, 4.2vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
    color: var(--ref-blue); margin: 0 0 16px;
}
.grj-hero__desc { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 46ch; margin: 0 auto; }
.grj-hero__cta {
    margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.grj-hero__cta .grj-cta-group { justify-content: center; }

.grj-hero__bar { height: 8px; background: var(--ref-blue); }

/* ===== Hero 직후 연결영역 — Dark charcoal 메시지 바 (Ontree #home-slogan 참고) ===== */
.grj-hero-message {
    max-width: 100% !important;
    padding: clamp(30px, 4.5vw, 46px) var(--side-pad) !important;
    background: var(--ref-charcoal); text-align: center;
}
.grj-hero-message h2 {
    color: #fff; font-size: clamp(21px, 2.4vw, 30px); font-weight: 600; line-height: 1.55;
    max-width: 880px; margin: 0 auto;
}

/* PC/태블릿 — 이미지 위에 패널을 겹쳐 배치(Ontree Hero 구조). 모바일은 위에서 이미지 아래 스택. */
@media (min-width: 881px) {
    .grj-hero__media { aspect-ratio: 21 / 10; }
    .grj-hero__media img { object-position: center 45%; }
    .grj-hero__panel {
        position: absolute; top: 50%; right: clamp(30px, 5vw, 70px);
        transform: translateY(-50%); margin: 0;
        width: min(44%, 520px);
    }
}

/* ===== Inspect (타일 점검 + 시공사례) — 화이트/라이트그레이 스트라이프, 컬러 패널 없음 ===== */
.grj-inspect {
    max-width: 100% !important;
    padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important;
}
.grj-inspect__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--side-pad); }
.grj-inspect__block { padding: 88px 0; }
.grj-inspect h2 { color: var(--ink); }

.grj-inspect__block--cases { background: var(--surface); border-top: 1px solid var(--line); }
.grj-inspect__block--cases .grj-section-head {
    max-width: 900px;
    margin: 0 0 50px;
    padding: 0;
}

.grj-check-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.grj-check-list li {
    position: relative; padding-left: 32px; font-size: 18px; color: var(--ink);
}
.grj-check-list li::before {
    content: "—"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700;
}

/* ===== 나무 상태 — Ontree 스타일 좌우 편집형 섹션(45%/55%), 사진 1장 + 정보. White 배경으로
   앞(시공사례)·뒤(서비스 표, Blue-Gray) 섹션과 자연스럽게 구분한다 ===== */
.grj-condition {
    background: var(--surface);
    display: grid; grid-template-areas: "intro" "media" "list"; row-gap: clamp(32px, 4vw, 48px);
}
.grj-condition__intro { grid-area: intro; max-width: 640px; }
.grj-condition__intro h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.grj-condition__intro .grj-lead { margin-top: 0; }
.grj-condition__media { grid-area: media; overflow: hidden; background: var(--surface); aspect-ratio: 4/5; }
.grj-condition__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; display: block; }
.grj-condition__list {
    grid-area: list; list-style: none; margin: 0; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px clamp(24px, 3vw, 40px);
}
.grj-condition__item { display: flex; align-items: flex-start; gap: 14px; }
.grj-condition__icon { flex: none; color: var(--accent); margin-top: 2px; }
.grj-condition__icon svg { width: 26px; height: 26px; display: block; }
.grj-condition__item h3 { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.grj-condition__item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

@media (min-width: 881px) {
    .grj-condition {
        grid-template-columns: 45% 55%; column-gap: var(--gap); row-gap: 0;
        grid-template-areas: "media intro" "media list"; align-items: center;
    }
}

/* ===== 타일 작업 진행 사례들 — 시공사례 카드 6개(Desktop 3열×2행), 흰 배경 + 이미지 중심 ===== */
.grj-projects__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    column-gap: var(--gap); row-gap: 50px; margin-top: 45px;
}
/* Tablet(768px·820px 포함) — 2열 × 3행 */
@media (max-width: 1000px) {
    .grj-projects__grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}
/* Mobile(360px·390px·430px) — 1열 × 6행 */
@media (max-width: 600px) {
    .grj-projects__grid { grid-template-columns: 1fr; row-gap: 38px; }
}
.grj-project-card {
    display: block; border-top: 1px solid var(--line); padding-top: 26px;
}
.grj-project-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.grj-project-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.grj-project-card:hover .grj-project-card__media img { transform: scale(1.03); }
.grj-project-card__body { padding-top: 18px; }
.grj-project-card__label {
    font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent);
    margin-bottom: 10px;
}
.grj-project-card__title {
    font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.grj-project-card__desc {
    margin-top: 10px; font-size: 14px; color: var(--ink-soft); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===== Services grid (세부페이지 "다른 서비스") ===== */
.grj-services__grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.grj-service-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.grj-service-card--feature { grid-column: span 4; display: flex; flex-direction: column; gap: 30px; border: none; background: none; }
.grj-service-card--feature .grj-service-card__media { aspect-ratio: 21/9; }
.grj-service-card__media { aspect-ratio: 1/1; overflow: hidden; background: var(--surface); }
.grj-service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.grj-service-card__body { padding: 26px; }
.grj-service-card--feature .grj-service-card__body { padding: 0; }
.grj-service-card h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }
.grj-service-card--feature h3 { font-size: 38px; margin-bottom: 16px; }
.grj-service-card p { color: var(--ink-soft); font-size: 17px; }
.grj-service-card--feature p { font-size: 20px; line-height: 1.7; }

/* ===== 서비스 표 요약 (홈 "타일 시공 서비스" 상단 — 연한 회색 풀블리드 독립 섹션, 카드 섹션과 배경으로 구분) ===== */
.grj-solutions-table {
    max-width: 100% !important;
    padding: 0 !important;
    background: var(--bg-cool);
}
.grj-solutions-table__inner { max-width: var(--max); margin: 0 auto; padding: var(--section-pad) var(--side-pad); }
.grj-solutions-table .grj-section-head { max-width: 900px; margin-bottom: 0; }
.grj-solutions-table .grj-table { max-width: 900px; }
.grj-solutions-table .grj-table th, .grj-solutions-table .grj-table td { padding: 18px 20px; }

/* ===== Solutions (홈 "타일 시공 서비스") — 반복형 텍스트/사진 교차 행, ABM 서비스 섹션 패턴 ===== */
/* ===== Solutions (홈 "타일 시공 서비스") — ABM 서비스 갤러리형: 2x2, 텍스트+큰 사진 결합 블록 ===== */
.grj-solutions__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grj-solutions__item {
    display: grid; grid-template-columns: 0.85fr 1.15fr; align-items: stretch;
    text-decoration: none; color: inherit;
}
.grj-solutions__media { overflow: hidden; background: var(--surface); aspect-ratio: 4/3; }
.grj-solutions__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.grj-solutions__item:hover .grj-solutions__media img { transform: scale(1.035); }
.grj-solutions__body { display: flex; flex-direction: column; justify-content: center; padding-right: clamp(20px, 3vw, 40px); }
.grj-solutions__body h3 { font-size: clamp(21px, 1.8vw, 26px); font-weight: 600; margin-bottom: 12px; color: var(--ink); }
.grj-solutions__body p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.grj-solutions__body .grj-link-arrow { display: inline-block; margin-top: 20px; }

/* ===== Process (horizontal steps) ===== */
.grj-process__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.grj-process__media { position: relative; aspect-ratio: 1/1; overflow: hidden; margin-bottom: 20px; background: var(--surface); }
.grj-process__media img { width: 100%; height: 100%; object-fit: cover; }
.grj-process__no {
    position: absolute; top: 13px; left: 13px; background: rgba(255,255,255,0.94); color: var(--ink);
    font-weight: 700; font-size: 15px; padding: 4px 12px;
}
.grj-process__item h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.grj-process__item p { font-size: 17px; color: var(--ink-soft); }

/* ===== Process — 홈 전용 가로형 프로젝트 갤러리 (사진 중심 한 줄 갤러리, .grj-process__* 공용 규칙과 별개 클래스) ===== */
.grj-process--home { background: var(--surface); }
.grj-process-gallery { display: flex; align-items: flex-start; gap: clamp(16px, 1.8vw, 28px); margin-top: 8px; }
.grj-process-gallery__item { flex: 1 1 0%; min-width: 0; }
.grj-process-gallery__item:first-child,
.grj-process-gallery__item:last-child { flex: 1.3 1 0%; }
.grj-process-gallery__media { overflow: hidden; background: var(--surface); aspect-ratio: 3/4; }
.grj-process-gallery__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grj-process-gallery__item figcaption { display: block; margin-top: 16px; }
.grj-process-gallery__mark { display: block; width: 24px; height: 2px; background: var(--accent); margin-bottom: 10px; }
.grj-process-gallery__item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--ink); line-height: 1.3; }
.grj-process-gallery__item p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ===== Cases archive (/projects/) ===== */
.grj-empty { color: var(--ink-soft); }

.grj-cases-archive__list { display: flex; flex-direction: column; gap: 64px; }
.grj-case-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); align-items: center; }
.grj-case-row__media { display: block; aspect-ratio: 4/3; overflow: hidden; }
.grj-case-row__media img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.grj-case-row__text h2 { font-size: 28px; font-weight: 600; margin: 10px 0 15px; }
.grj-case-row__text p { color: var(--ink-soft); margin-bottom: 18px; }

/* ===== Why check — 중앙 제목/설명 + 아이콘 3열 (ABM "왜 선택하는가" 섹션 참고) ===== */
.grj-why-check { background: var(--bg-cool); text-align: center; }
.grj-why-check__head { max-width: 640px; margin: 0 auto clamp(48px, 6vw, 72px); }
.grj-why-check__head h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; margin-bottom: 16px; color: var(--ink); }
.grj-why-check__head .grj-lead { margin-top: 0; }
.grj-why-check__grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 64px);
    max-width: 1100px; margin: 0 auto;
}
.grj-why-check__item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.grj-why-check__icon { color: var(--accent); margin-bottom: 22px; }
.grj-why-check__icon svg { width: 40px; height: 40px; display: block; }
.grj-why-check__item h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.grj-why-check__item p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; max-width: 30ch; }

/* ===== Detail block (reusable editorial split, subpages) ===== */
.grj-detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.grj-detail-block--reverse { grid-template-columns: 1fr 1fr; }
.grj-detail-block--reverse .grj-detail-block__media { order: 2; }
.grj-detail-block__media img { aspect-ratio: 4/5; object-fit: cover; }
.grj-detail-block--solo { grid-template-columns: 1fr; }
.grj-detail-block--solo .grj-detail-block__text { max-width: 700px; }
.grj-detail-block__text h2 { font-size: clamp(28px, 2.9vw, 38px); font-weight: 600; margin-bottom: 20px; color: var(--ink); }
.grj-detail-block__text p { color: var(--ink-soft); }

/* ===== 서비스 세부페이지 공통 템플릿 (ABM Tiling "Porcelain Tiling" 페이지 구조 참고) ===== */
.grj-svc-intro { padding-bottom: 8px; }

/* 본문 중간 대형 사진 — 컨테이너 안에서 크게, 풀블리드 아님(ABM 방식) */
.grj-svc-figure img { width: 100%; object-fit: cover; }
.grj-svc-figure--wide img { aspect-ratio: 16/9; }
.grj-svc-figure--ultra img { aspect-ratio: 21/9; }

/* 읽기 좋은 본문 폭 — ABM의 단일 컬럼 설명 문단 */
.grj-main > section.grj-svc-body { max-width: 820px; }
.grj-svc-body h2 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; margin-bottom: 20px; color: var(--ink); }
.grj-svc-body p { font-size: 18px; color: var(--ink-soft); line-height: 1.85; }

/* 관련 시공사례 — ABM "Related Projects" 그리드 */
.grj-related-cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grj-related-case { display: block; }
.grj-related-case__media { display: block; aspect-ratio: 3/2; overflow: hidden; background: var(--surface); }
.grj-related-case__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.grj-related-case:hover .grj-related-case__media img { transform: scale(1.03); }
.grj-related-case__body { padding-top: 20px; }
.grj-related-case__label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 10px; }
.grj-related-case__body h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.grj-related-case__body h3 a:hover { color: var(--accent); }
.grj-related-case__body p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }

/* ===== Table ===== */
.grj-visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.grj-table--summary { margin-top: 46px; }
.grj-table { margin-top: 28px; font-size: 17px; }
.grj-table th, .grj-table td { border: 1px solid var(--line); padding: 15px 18px; text-align: left; vertical-align: top; }
.grj-table th { background: var(--bg-cool); color: var(--ink); font-weight: 700; }
.grj-table tbody tr.is-current { background: var(--accent-soft); }
.grj-table tbody tr.is-current td:first-child { font-weight: 700; color: var(--accent-strong); }

/* ===== FAQ accordion ===== */
.grj-accordion { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.grj-faq__page { display: flex; flex-direction: column; }
.grj-faq__page[hidden] { display: none; }
.grj-accordion__item { border-bottom: 1px solid var(--line); padding: 26px 0; }
.grj-accordion__item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.grj-accordion__item summary::-webkit-details-marker { display: none; }
.grj-accordion__item summary h3 { font-size: 19px; font-weight: 600; color: var(--ink); }
.grj-accordion__item summary::after {
    content: "+"; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    color: var(--accent); border: 1.5px solid var(--accent);
    font-size: 17px; line-height: 1;
}
.grj-accordion__item[open] summary::after { content: "–"; background: var(--accent); color: #fff; }
.grj-accordion__item p { margin-top: 18px; color: var(--ink-soft); max-width: 68ch; }

/* ===== FAQ pager (홈 전용 — 5개씩 페이지 전환) ===== */
.grj-faq__pager { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 38px; }
.grj-faq__pager-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: transparent; color: var(--ink);
    border: 1.5px solid var(--line); cursor: pointer; flex-shrink: 0;
    transition: border-color .18s ease, color .18s ease;
}
.grj-faq__pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.grj-faq__pager-btn:disabled { color: var(--line); cursor: not-allowed; }
.grj-faq__pager-status { font-size: 16px; font-weight: 600; color: var(--ink); min-width: 56px; text-align: center; }

/* ===== Final CTA (풀블리드 비비드 오렌지 밴드 — ABM 특징) ===== */
.grj-final-cta {
    background: var(--accent); color: #fff; text-align: center;
    padding: clamp(50px, 5.5vw, 80px) var(--side-pad) !important; max-width: 100% !important;
}
.grj-final-cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.4; }
.grj-final-cta .grj-cta-group { justify-content: center; margin-top: 26px; gap: 14px; }
.grj-final-cta .grj-cta-group .grj-btn {
    background: transparent; color: #fff; border: 1.5px solid #fff;
    padding: 15px 30px; font-size: 16px; gap: 8px;
    min-width: 160px; justify-content: center;
}
.grj-final-cta .grj-cta-group .grj-btn--call { background: #fff; color: var(--accent-strong); }
.grj-final-cta .grj-cta-group .grj-btn--call:hover { background: rgba(255,255,255,.88); }
.grj-final-cta .grj-cta-group .grj-btn--sms:hover { background: rgba(255,255,255,.15); }
.grj-final-cta--compact { padding: clamp(42px, 4.4vw, 56px) var(--side-pad) !important; }

/* ===== Footer (화이트, ABM 스타일 — 어두운 블록 없음) ===== */
.grj-footer { background: var(--surface); color: var(--ink); margin-top: 0; border-top: 1px solid var(--line); }
.grj-footer__inner {
    max-width: var(--max); margin: 0 auto; padding: 64px var(--side-pad) 40px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
}
.grj-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.grj-logo__mark--footer { color: var(--accent); }
.grj-footer__biz-name { font-size: 23px; font-weight: 700; color: var(--ink); margin-top: 5px; }
.grj-footer__biz-info { display: flex; flex-direction: column; gap: 7px; font-size: 16px; color: var(--ink-soft); }
.grj-footer__biz-info a { color: var(--ink-soft); }
.grj-footer__biz-info a:hover { color: var(--accent); }
.grj-footer__nav { display: flex; align-items: flex-start; justify-content: flex-end; }
.grj-footer__list { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.grj-footer__list a { font-size: 17px; color: var(--ink); }
.grj-footer__list a:hover { color: var(--accent); }
.grj-footer__bottom { border-top: 1px solid var(--line); text-align: center; padding: 22px; font-size: 14px; color: var(--ink-soft); }

/* ===== Subpages ===== */
.grj-subpage { padding-top: 0; }
.grj-breadcrumb { max-width: var(--max); margin: 25px auto 0; padding: 0 var(--side-pad); }
.grj-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: var(--ink-soft); }
.grj-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 10px; color: var(--line); }
.grj-breadcrumb a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.grj-breadcrumb a:hover { color: var(--accent); }
.grj-page-hero { max-width: var(--max); margin: 0 auto; padding: 50px var(--side-pad) 0; }
.grj-page-hero h1 { font-size: clamp(40px, 4.6vw, 58px); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.grj-page-hero h1::after {
    content: ""; display: block; width: 60px; height: 3px; background: var(--accent); margin-top: 22px;
}
.grj-page-hero .grj-lead { max-width: 62ch; margin-top: 22px; font-size: 19px; }

/* ===== Contact page ===== */
.grj-main > section.grj-contact-table { padding-top: 50px; padding-bottom: 0; }
.grj-contact-table .grj-table { max-width: 1000px; margin: 0 auto; }
.grj-contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grj-contact__card { background: var(--surface); border: 1px solid var(--line); padding: 46px; text-align: center; }
.grj-contact__card h2 { font-size: 25px; font-weight: 600; margin-bottom: 12px; }
.grj-contact__card p { color: var(--ink-soft); margin-bottom: 10px; }
.grj-contact-info { background: var(--bg-cool); padding: 46px; text-align: center; }
.grj-contact-info h2 { font-size: 23px; font-weight: 600; margin-bottom: 18px; }
.grj-contact-info ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; color: var(--ink-soft); font-size: 17px; }

/* ===== Case study detail ===== */
.grj-case-hero-media { max-width: var(--max); margin: 40px auto 0; padding: 0 var(--side-pad); }
.grj-case-hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.grj-case-summary { max-width: 1000px !important; font-size: 19px; color: var(--ink-soft); }
.grj-case-summary p { margin-bottom: 1em; }
.grj-case-group { max-width: 1000px !important; }
.grj-case-group h2 { font-size: 28px; font-weight: 600; margin-bottom: 22px; color: var(--ink); }
.grj-case-phase-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin-bottom: 26px; }
.grj-case-phase-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.grj-case-phase-photos--after { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grj-case-phase-photos--after img { aspect-ratio: 16/10; }
.grj-case-phase-text p { font-size: 18px; color: var(--ink-soft); line-height: 1.85; margin-bottom: 16px; }
.grj-case-phase-text p:last-child { margin-bottom: 0; }
.grj-case-video { margin-top: 28px; }
.grj-case-video video { width: 100%; max-height: 720px; background: #000; }
.grj-case-nav { max-width: var(--max); margin: 0 auto; padding: 0 var(--side-pad); }

/* ===========================================================
   Responsive — Tablet
   =========================================================== */
@media (max-width: 1280px) {
    .grj-services__grid { grid-template-columns: repeat(2, 1fr); }
    .grj-service-card--feature { grid-column: span 2; }
    .grj-solutions__grid { gap: 28px; }
    .grj-solutions__item { grid-template-columns: 1fr; gap: 22px; }
    .grj-solutions__media { order: -1; aspect-ratio: 16/10; }
    .grj-solutions__body { padding-right: 0; }
    .grj-process__list { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
    .grj-process-gallery {
        overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 0; padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }
    .grj-process-gallery__item,
    .grj-process-gallery__item:first-child,
    .grj-process-gallery__item:last-child { flex: 0 0 72%; scroll-snap-align: start; }
    .grj-process-gallery__media { aspect-ratio: 4/5; }
    .grj-inspect__block { padding: 68px 0; }
    .grj-case-row { grid-template-columns: 1fr; }
    .grj-detail-block, .grj-detail-block--reverse { grid-template-columns: 1fr; }
    .grj-detail-block--reverse .grj-detail-block__media { order: -1; }
    .grj-footer__inner { grid-template-columns: 1fr; }
    .grj-footer__nav { justify-content: flex-start; }
    .grj-footer__list { text-align: left; }
    .grj-svc-figure--wide img, .grj-svc-figure--ultra img { aspect-ratio: 4/3; }
    .grj-related-cases__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================================================
   Responsive — Header nav (hamburger) — 820px 태블릿 폭에서도
   가로 메뉴가 CTA 버튼과 겹치지 않도록 800px보다 넉넉한 기준을 사용
   =========================================================== */
@media (max-width: 880px) {
    .grj-header__inner { padding: 0 22px; }
    .grj-nav-toggle { display: flex; }
    .grj-nav {
        display: block;
        position: fixed; inset: 0 0 0 auto; width: min(78vw, 400px); height: 100vh;
        background: var(--surface); border: none; border-left: 1px solid var(--line);
        transform: translateX(100%); transition: transform .25s ease;
        padding: 110px 35px 35px; box-shadow: -8px 0 24px rgba(0,0,0,0.08);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .grj-nav.is-open { transform: translateX(0); }
    .grj-nav__list { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 26px; }
    .grj-nav__list a { height: auto; padding: 0; }
    .grj-nav__list a > span { padding-bottom: 2px; }
    .grj-nav__list > li:last-child > a { display: inline-block; }
    .grj-nav__list > li { width: 100%; }
    .grj-nav__list .sub-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: none; background: none; margin: 14px 0 0; padding: 0 0 0 18px;
        display: flex; flex-direction: column; gap: 14px;
    }
    .grj-nav__list .sub-menu a { padding: 0; font-size: 15px; color: var(--ink-soft); text-transform: none; }
    .grj-nav__list li.menu-item-has-children > a::after { margin-left: auto; }
    .grj-quick-fab { width: 46px; height: 46px; right: 16px; }
    .grj-quick-fab svg { width: 18px; height: 18px; }
}

/* ===========================================================
   Responsive — Mobile
   =========================================================== */
@media (max-width: 800px) {
    :root { --section-pad: clamp(48px, 11vw, 72px); }

    .grj-main > section, .grj-page-hero, .grj-breadcrumb, .grj-case-hero-media, .grj-case-nav { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
    .grj-services__grid { grid-template-columns: 1fr; }
    .grj-service-card--feature { grid-column: span 1; }
    .grj-solutions__grid { grid-template-columns: 1fr; gap: 40px; }
    .grj-inspect__block { padding: 52px 0; }
    .grj-condition__list { grid-template-columns: 1fr; row-gap: 22px; }
    .grj-process__list { grid-template-columns: 1fr; row-gap: 40px; }
    .grj-process-gallery__item,
    .grj-process-gallery__item:first-child,
    .grj-process-gallery__item:last-child { flex: 0 0 84%; }
    .grj-why-check__grid { grid-template-columns: 1fr; gap: 40px; max-width: 420px; }
    .grj-contact { grid-template-columns: 1fr; }
    .grj-cta-group { flex-direction: column; }
    .grj-cta-group .grj-btn { width: 100%; justify-content: center; }
    .grj-hero__panel { margin: -40px 14px 0; padding: 26px 20px; }
    .grj-hero__title { font-size: clamp(30px, 8vw, 40px); }
    .grj-svc-figure--wide img, .grj-svc-figure--ultra img { aspect-ratio: 4/5; }
    .grj-related-cases__grid { grid-template-columns: 1fr; }
    .grj-case-phase-photos { grid-template-columns: 1fr; }
    .grj-case-phase-photos--after { grid-template-columns: 1fr; }

    .grj-table { table-layout: fixed; font-size: 15px; }
    .grj-table th:first-child, .grj-table td:first-child { width: 84px; }
    .grj-table th, .grj-table td { padding: 12px 10px; }
    .grj-solutions-table .grj-table th, .grj-solutions-table .grj-table td { padding: 12px 10px; }
    .grj-faq__pager-btn { width: 44px; height: 44px; }
}

/* ===========================================================
   Mobile optimization pass (2026-09-30) — 모든 페이지 공통 보강
   =========================================================== */
img, video, iframe, svg { max-width: 100%; }
.grj-table-wrap, .grj-svc-body, .grj-case-group { min-width: 0; }

@media (max-width: 880px) {
    html { scroll-padding-top: 76px; }
    .grj-header__inner { height: 68px; gap: 12px; padding: 0 18px; }
    .grj-logo { font-size: 20px; margin-right: auto; min-width: 0; }
    .grj-nav-toggle { padding: 12px; margin-right: -12px; }
    .grj-nav { z-index: 130; height: 100dvh; }
    .grj-nav__list a { font-size: 17px; padding: 6px 0; }
    .grj-nav__list .sub-menu a { padding: 4px 0; white-space: normal; }
    .grj-hero__media { aspect-ratio: 4 / 5; }
    .grj-inspect__inner { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
    .grj-footer__inner { padding: 48px var(--side-pad-mobile) 32px; gap: 32px; }
    .grj-contact__card, .grj-contact-info { padding: 32px 22px; }
}

@media (max-width: 800px) {
    .grj-main > section { max-width: 100%; }
    .grj-section-head { margin-bottom: 32px; }
    .grj-section-head h2, .grj-condition__intro h2, .grj-why-check__head h2 { font-size: clamp(24px, 6.6vw, 30px); line-height: 1.3; }
    .grj-lead, .grj-page-hero .grj-lead { font-size: 16px; }
    .grj-page-hero { padding-top: 32px; padding-bottom: 0; }
    .grj-page-hero h1 { font-size: clamp(27px, 7.4vw, 34px); line-height: 1.3; }
    .grj-svc-body p, .grj-case-phase-text p, .grj-case-summary { font-size: 16px; line-height: 1.75; }
    .grj-svc-body h2, .grj-case-group h2 { font-size: 22px; }
    .grj-detail-block__text h2 { font-size: 24px; }
    .grj-check-list li { font-size: 16px; }
    .grj-hero__panel { margin: -32px 16px 0; }
    .grj-hero-message h2 { font-size: 19px; }
    .grj-hero__title { line-height: 1.25; }
    .grj-hero__desc { font-size: 15px; }
    .grj-btn, .grj-cta-group--lg .grj-btn { white-space: normal; padding: 16px 22px; font-size: 16px; }
    .grj-final-cta .grj-cta-group .grj-btn { width: 100%; min-width: 0; }
    .grj-service-card--feature h3 { font-size: 26px; }
    .grj-service-card--feature p { font-size: 16px; }
    .grj-service-card__body { padding: 20px; }
    .grj-service-card p, .grj-process__item p { font-size: 15px; }
    .grj-solutions__body p { font-size: 15px; }
    .grj-condition__media { aspect-ratio: 4 / 3; }
    .grj-projects__grid { margin-top: 28px; }
    .grj-project-card__title { font-size: 17px; }
    .grj-case-row__text h2 { font-size: 22px; }
    .grj-cases-archive__list { gap: 44px; }
    .grj-case-hero-media { margin-top: 24px; }
    .grj-case-hero-media img { aspect-ratio: 4 / 3; }
    .grj-case-phase-photos, .grj-case-phase-photos--after { grid-template-columns: 1fr; gap: 14px; }
    .grj-accordion__item { padding: 20px 0; }
    .grj-accordion__item summary h3 { font-size: 16px; line-height: 1.45; }
    .grj-accordion__item p { font-size: 15px; }
    .grj-breadcrumb ol { font-size: 13px; gap: 6px; }
    .grj-breadcrumb li:not(:last-child)::after { margin-left: 6px; }
    .grj-footer__biz-info { font-size: 15px; overflow-wrap: anywhere; }
    .grj-footer__list a { font-size: 16px; }
    .grj-contact-info ul { flex-direction: column; align-items: center; font-size: 15px; }
    .grj-quick-fab { top: auto; bottom: 20px; transform: none; }
    /* 표: 좁은 화면에서 가로 넘침 방지 */
    .grj-table { table-layout: auto; font-size: 14px; margin-top: 20px; }
    .grj-table th, .grj-table td { padding: 10px 8px; overflow-wrap: anywhere; }
    .grj-table th:first-child, .grj-table td:first-child { width: auto; }
    .grj-solutions-table__inner { padding-left: var(--side-pad-mobile); padding-right: var(--side-pad-mobile); }
}

@media (max-width: 400px) {
    :root { --side-pad-mobile: 18px; }
    .grj-logo { font-size: 18px; }
    .grj-hero__panel { margin: -28px 12px 0; padding: 22px 16px; }
    .grj-table { font-size: 13px; }
}

/* Mobile Hero — 사진과 텍스트 영역 분리: 패널이 사진 위로 겹치지 않게 하고, 패널 자체의 상단 padding으로 간격 확보 */
@media (max-width: 800px) {
    .grj-hero__panel { margin-top: 0; padding-top: 30px; }
}
