/* ==========================================================================
   GHMC KOREA 공통 디자인 시스템
   - 디자인 방향: HM Solution / HM SFE 소개 페이지의 틸·네이비 톤
   - 색상, 섹션, 버튼, 카드 등 모든 페이지가 함께 쓰는 요소를 모아둔다.
   ========================================================================== */

:root {
    --teal: #00b8a0;
    --teal-d: #00897b;
    --navy: #0d1b2e;
    --navy2: #162840;
    --blue: #1e8fff;
    --blue-d: #1270cc;
    --gold-d: #e0a800;
    --purple: #7c5cbf;
    --light: #e8f8f6;
    --gray: #f4f6f8;
    --text: #1a2b3c;
    --sub: #5a6a7e;
    --line: #e3e8ee;

    --grad: linear-gradient(135deg, var(--teal), var(--blue));
    --grad-strong: linear-gradient(135deg, var(--teal-d), var(--blue-d));
    --bg-hero:
        radial-gradient(circle at 20% 50%, rgba(0, 184, 160, 0.18) 0%, transparent 60%),
        radial-gradient(circle at 80% 30%, rgba(30, 143, 255, 0.15) 0%, transparent 55%),
        linear-gradient(135deg, var(--navy) 0%, #1a3554 60%, #0d3a4a 100%);
    --bg-dark: linear-gradient(135deg, #0a1628 0%, #0d2a40 50%, #0a1e32 100%);

    --radius: 16px;
    --shadow-sm: 0 2px 12px rgba(13, 27, 46, 0.06);
    --shadow-md: 0 8px 32px rgba(13, 27, 46, 0.08);
}

/* ---------- 기본 ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    word-break: keep-all;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4, p {
    margin-top: 0;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

figure {
    margin: 0;
}

/* 고정 헤더에 가려지지 않도록 앵커 이동 위치를 내린다 */
[id] {
    scroll-margin-top: 96px;
}

/* 모바일 메뉴가 열려 있는 동안 뒤 페이지 스크롤을 막는다 */
html.nav-locked {
    overflow: hidden;
}

.inner {
    width: min(1200px, calc(100% - 48px));
    margin: 0 auto;
}

/* ---------- 섹션 ---------- */

.page-section {
    padding: 80px 0;
}

.section-muted {
    background: var(--gray);
}

.section-dark {
    background: var(--bg-dark);
    color: #fff;
}

.section-head {
    margin-bottom: 40px;
}

.section-head h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
}

.section-head p {
    max-width: 760px;
    margin: 0;
    color: var(--sub);
    line-height: 1.8;
}

.section-dark .section-head h2 {
    color: #fff;
}

.section-dark .section-head p {
    color: rgba(255, 255, 255, 0.65);
}

/* 섹션 태그 (알약 모양) */
.section-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(0, 184, 160, 0.1);
    color: var(--teal-d);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-dark .section-eyebrow {
    background: rgba(0, 184, 160, 0.18);
    color: var(--teal);
}

/* ---------- 상단 영역 (페이지 히어로) ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 76px;
    background: var(--bg-hero);
    color: #fff;
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.page-hero h1 span {
    color: var(--teal);
}

/* 상단 영역의 태그는 그라데이션 배지로 보여준다 */
.hero-badge,
.page-hero .section-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 5px 18px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-hero .hero-desc {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

.hero-sub {
    margin: 0;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.72);
}

.hero-sub2 {
    margin: 6px 0 0;
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 26px;
}

.hero-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.hero-dots span:nth-child(2) {
    background: var(--teal);
}

.page-hero .hero-actions {
    justify-content: center;
    margin-top: 28px;
}

/* ---------- 버튼 ---------- */

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--grad-strong);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 137, 123, 0.24);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 137, 123, 0.32);
}

.btn-secondary {
    background: #fff;
    border-color: #cfd8e3;
    color: var(--navy);
}

.btn-secondary:hover {
    border-color: var(--teal);
    color: var(--teal-d);
}

/* 어두운 배경 위의 외곽선 버튼 */
.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
}

.text-link {
    font-weight: 700;
    color: var(--teal-d);
}

.text-link:hover {
    color: var(--blue-d);
}

/* ---------- 카드 공통 ---------- */

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 섹션 끝 안내문: 아이콘 + 옅은 틸 바탕의 콜아웃. 여러 페이지가 함께 쓴다.
   (예전엔 solutions.css 에만 있어서 회사 페이지에서는 맨 글자로 나왔다) */
.section-note {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 32px 0 0;
    padding: 16px 22px 16px 18px;
    border: 1px solid rgba(0, 184, 160, 0.22);
    border-left: 4px solid var(--teal);
    border-radius: 12px;
    background: var(--light);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-note::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    background: var(--teal-d);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm1 15h-2v-6h2v6Zm0-8h-2V7h2v2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.section-note > span {
    flex: 1 1 260px;
}

.section-muted .section-note {
    background: #fff;
}

/* 안내문 오른쪽 이동 링크 */
.note-link {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--teal-d);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.note-link:hover {
    background: var(--navy);
}

/* 번호 원 */
.num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--grad);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
}

/* 기능 카드: 왼쪽 그라데이션 강조선 */
.feat-card {
    position: relative;
    overflow: hidden;
    padding: 30px 26px;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    background: var(--gray);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--teal), var(--blue));
}

.feat-card:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 184, 160, 0.12);
}

.section-muted .feat-card {
    background: #fff;
}

.feat-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
}

.feat-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--sub);
    line-height: 1.7;
}

.feat-tag {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 184, 160, 0.12);
    color: var(--teal-d);
    font-size: 0.75rem;
    font-weight: 700;
}

/* 구성 카드: 윗줄 색상 강조 + ▸ 목록 */
.tile-card {
    padding: 22px 20px;
    border-top: 3px solid var(--blue);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.tile-card:nth-child(4n + 1) { border-top-color: var(--teal); }
.tile-card:nth-child(4n + 2) { border-top-color: var(--blue); }
.tile-card:nth-child(4n + 3) { border-top-color: var(--gold-d); }
.tile-card:nth-child(4n + 4) { border-top-color: var(--navy2); }
.tile-card.teal { border-top-color: var(--teal); }
.tile-card.blue { border-top-color: var(--blue); }
.tile-card.gold { border-top-color: var(--gold-d); }
.tile-card.navy { border-top-color: var(--navy2); }
.tile-card.purple { border-top-color: var(--purple); }

.section-muted .tile-card {
    box-shadow: var(--shadow-sm);
}

.tile-card h2,
.tile-card h3 {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f4;
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
}

.tile-card p + .check-list {
    margin-top: 12px;
}

.tile-card p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--sub);
    line-height: 1.75;
}

.tile-card p strong {
    color: var(--navy);
}

/* ▸ 표시가 붙는 목록 */
.check-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 3px 0 3px 16px;
    color: var(--sub);
    font-size: 0.93rem;
    line-height: 1.65;
}

.check-list li::before {
    content: "▸";
    position: absolute;
    top: 4px;
    left: 0;
    color: var(--teal);
    font-size: 0.72rem;
}

/* 일반 카드 */
.box {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.box h2,
.box h3 {
    margin-bottom: 12px;
    color: var(--navy);
}

.box p {
    color: var(--sub);
    line-height: 1.8;
}

.box p:last-child {
    margin-bottom: 0;
}

/* 어두운 섹션용 반투명 카드 */
.glass-card {
    padding: 28px 24px;
    border: 1px solid rgba(0, 184, 160, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-3px);
    border-color: var(--teal);
    background: rgba(0, 184, 160, 0.08);
}

.glass-card .icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2rem;
    line-height: 1;
}

.glass-card h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--teal);
}

.glass-card p {
    margin: 0;
    font-size: 0.93rem;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.7;
}

/* ---------- 솔루션 카드 (메인 / 솔루션 개요 공용) ---------- */

.solution-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 160, 0.45);
    box-shadow: 0 16px 36px rgba(13, 27, 46, 0.1);
}

/* 카드 상단 제품 배너 */
.solution-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: 22px 26px;
    overflow: hidden;
    background: var(--bg-hero);
    color: #fff;
}

.solution-visual.wms {
    background:
        radial-gradient(circle at 85% 30%, rgba(0, 184, 160, 0.3) 0%, transparent 55%),
        linear-gradient(135deg, var(--navy) 0%, #14324d 60%, #0d3a4a 100%);
}

.solution-visual.daq {
    background:
        radial-gradient(circle at 80% 75%, rgba(30, 143, 255, 0.32) 0%, transparent 55%),
        linear-gradient(135deg, var(--navy) 0%, #1a3554 55%, #123a5c 100%);
}

.solution-visual-icon {
    position: absolute;
    top: 20px;
    right: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.6rem;
}

.solution-visual-code {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--teal);
    background: linear-gradient(90deg, var(--teal), #7fd9ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.solution-visual-sub {
    margin-top: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.62);
}

.solution-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.solution-card-body h3 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
}

.solution-subtitle {
    min-height: 3.2em; /* 두 줄 기준으로 맞춰 카드끼리 목록 높이를 정렬한다 */
    margin-bottom: 14px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.6;
}

.solution-desc {
    margin-bottom: 14px;
    color: var(--sub);
    font-size: 0.95rem;
    line-height: 1.75;
}

.solution-card-body .check-list {
    margin-bottom: 22px;
}

.solution-card-body .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- 요금 카드 (메인 / 솔루션 개요 공용) ---------- */

.price-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.price-card h3 {
    margin-bottom: 4px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--navy);
}

.price-label {
    margin-bottom: 18px;
    color: var(--sub);
    font-size: 0.92rem;
}

/* 이용 기간에 따른 월 요금 범위 (최저 ~ 최고) */
.price-range {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem);
    font-weight: 900;
    color: var(--teal-d);
    letter-spacing: -0.01em;
}

.price-period {
    margin: 8px 0 0;
    font-size: 0.88rem;
    color: var(--sub);
}

.pricing-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
}

.pricing-note p {
    margin: 0;
    color: var(--sub);
    line-height: 1.7;
}

/* ---------- KPI 띠 ---------- */

.kpi-strip {
    padding: 56px 0;
    background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
    color: #fff;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.kpi-item {
    padding: 24px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.kpi-item:last-child {
    border-right: 0;
}

.kpi-icon {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    line-height: 1;
}

.kpi-value {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1;
    color: var(--teal);
}

.kpi-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.kpi-sub {
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.kpi-note {
    max-width: 900px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ---------- 공정 흐름 ---------- */

.process-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proc-item {
    position: relative;
    display: flex;
    flex: 1 1 140px;
    flex-direction: column;
    align-items: center;
    max-width: 176px;
    padding: 20px 10px;
    text-align: center;
}

.proc-item:not(:last-child)::after {
    content: "›";
    position: absolute;
    top: 52px;
    right: -8px;
    transform: translateY(-50%);
    font-size: 1.8rem;
    line-height: 1;
    color: var(--teal);
}

.proc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    border: 2px solid rgba(0, 184, 160, 0.25);
    border-radius: 16px;
    background: var(--light);
    font-size: 1.6rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.section-muted .proc-icon {
    background: #fff;
}

.proc-item:hover .proc-icon {
    background: var(--grad);
    border-color: transparent;
}

.proc-label {
    margin-bottom: 4px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--navy);
}

.proc-en {
    font-size: 0.75rem;
    color: var(--sub);
}

/* ---------- 그림 ---------- */

/* 기능 구성도처럼 글씨가 있는 그림: 좁은 화면에서는 가로로 스크롤해서 본다 */
.figure-frame {
    padding: 8px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.figure-scroll {
    overflow-x: auto;
}

.figure-scroll img {
    width: 100%;
    min-width: 760px;
    height: auto;
    border-radius: 10px;
}

/* 좁은 화면에서만 보이는 가로 스크롤 안내 */
.scroll-hint {
    display: none;
    margin: 8px 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--sub);
}

/* ---------- 상담 유도 영역 ---------- */

.cta-band {
    background:
        radial-gradient(circle at 12% 20%, rgba(0, 184, 160, 0.14), transparent 55%),
        radial-gradient(circle at 88% 80%, rgba(30, 143, 255, 0.12), transparent 55%),
        var(--light);
    text-align: center;
}

.cta-band h2 {
    margin-bottom: 12px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--navy);
}

.cta-band p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: var(--sub);
    line-height: 1.8;
}

.cta-band .cta-actions {
    justify-content: center;
}

/* ---------- 스크롤 등장 애니메이션 (common.js 가 클래스를 붙인다) ---------- */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- 반응형 ---------- */

@media (max-width: 1024px) {
    .card-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-note {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .card-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    /* 카드가 5~6개인 3열 목록은 태블릿에서 2열로 */
    .card-grid.cols-3.wrap-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .card-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .scroll-hint {
        display: block;
    }
}

@media (max-width: 640px) {
    .inner {
        width: calc(100% - 32px);
    }

    .page-section {
        padding: 64px 0;
    }

    .page-hero {
        padding: 64px 0 56px;
    }

    .card-grid.cols-4,
    .card-grid.cols-3.wrap-2 {
        grid-template-columns: 1fr;
    }

    .feat-card,
    .box,
    .price-card {
        padding: 24px 22px;
    }

    .kpi-strip {
        padding: 36px 0;
    }

    .kpi-item {
        padding: 16px 6px;
    }

    .kpi-icon {
        font-size: 1.6rem;
    }

    .kpi-label {
        font-size: 0.8rem;
    }

    .kpi-sub {
        display: none;
    }

    .proc-item {
        flex: 1 1 30%;
        max-width: 33%;
        padding: 14px 4px;
    }

    .proc-item:not(:last-child)::after {
        top: 44px;
        right: -6px;
        font-size: 1.3rem;
    }

    .proc-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* 인쇄할 때는 아직 나타나지 않은 요소도 모두 보이게 한다 */
@media print {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- 스팟 삽화 ----------
   카드 안(.spot-illust)과 섹션 머리(.section-illust)에 같은 세트를 쓴다.
   tools/make_illustrations.py 가 한 규칙으로 생성하므로 크기만 맞추면 된다. */

.spot-illust {
    display: block;
    width: 100%;
    max-width: 148px;
    height: auto;
    margin: 0 0 14px;
}

/* 카드 오른쪽 위를 채우고 본문이 그 옆으로 흐르게 한다. */
.spot-illust.is-float {
    float: right;
    width: 104px;
    margin: -6px -6px 6px 14px;
}

.spot-illust.is-center {
    margin: 0 auto 14px;
}

/* 섹션 머리: eyebrow 와 제목 사이에 놓인다. */
.section-illust {
    display: block;
    width: 100%;
    max-width: 176px;
    height: auto;
    margin: 6px auto 14px;
}

/* 섹션 머리는 왼쪽 정렬이므로 삽화도 뱃지 아래 왼쪽에 붙인다.
   마무리 박스(.summary-box)만 예외 — 가운데 정렬로 둔다. */
.section-head .section-illust,
.guide-copy .section-illust {
    margin-left: 0;
}

@media (max-width: 600px) {
    .spot-illust {
        max-width: 124px;
    }

    .spot-illust.is-float {
        width: 88px;
    }

    .section-illust {
        max-width: 152px;
    }
}
