/* ============================================
   ㈜캠스 (CAMS Korea) - Light Tone Stylesheet
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #f0f2f5;
  --surface: #ffffff;
  --line: #e5e7eb;
  --line-soft: #d1d5db;
  --text: #0f1218;
  --text-secondary: #1f2530;
  --text-muted: #3d4452;
  --text-dim: #8b94a3;
  --accent: #c41e3a;
  --accent-soft: #e0344f;
  --accent-dim: rgba(196, 30, 58, 0.08);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);

  --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  font-family: var(--font-kr);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  width: 44px; height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  line-height: 1.2;
  white-space: nowrap;
}
.logo-text small {
  display: block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Brand tagline image (Bumper to Buffer) next to logo */
.brand-tagline {
  display: flex;
  align-items: center;
  height: 38px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 4px;
}
.brand-tagline img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  display: block;
  padding: 8px 0;
  position: relative;
}
.nav-links > li > a:hover, .nav-links > li > a.active { color: var(--accent); }
.nav-links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}

.has-submenu > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7em;
  opacity: 0.6;
}
.submenu {
  position: absolute;
  top: 100%; left: -16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 180px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s;
  margin-top: 4px;
  box-shadow: var(--shadow-lg);
}
.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.submenu li { margin: 0; }
.submenu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: all 0.15s;
}
.submenu a:hover { background: var(--bg-soft); color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 102;
  position: relative;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== STRIP DIVIDER ========== */
.strip-divider {
  display: block;
  width: 60px;
  height: 5px;
  background: var(--accent);
  margin: 0 auto 24px;
  border-radius: 2px;
}
.strip-divider.left {
  margin-left: 0;
}

/* ========== HERO (home) ========== */
.hero {
  padding: 150px 0 90px;
  position: relative;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero::before {
  /* Watermark background pattern - subtle BUMPER text */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 90% 10%, rgba(196, 30, 58, 0.06), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(196, 30, 58, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
  padding-top: 12px;
}
.hero-text h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-text h1 .accent { color: var(--accent); }

/* ========== HERO EYEBROW TAG ========== */
.hero-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(196, 30, 58, 0.2);
  border-radius: 100px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.05); }
}

/* ========== SLOGAN MEGA (with icons) ========== */
.slogan-mega {
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  font-family: 'Fraunces', 'Bricolage Grotesque', Georgia, serif;
}

.slogan-line {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  position: relative;
}

.slogan-word {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-feature-settings: 'ss01', 'ss02', 'lnum';
  text-rendering: optimizeLegibility;
  position: relative;
}
.slogan-word::after {
  /* small dot end-mark */
  content: '.';
  color: var(--accent);
  position: relative;
  display: inline;
  margin-left: -0.04em;
}

.slogan-line--from .slogan-word {
  color: var(--text);
}
.slogan-line--to .slogan-word {
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent) 0%, #9c1530 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slogan-line--to .slogan-word::after {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}

/* Icons next to each word */
.slogan-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 8vw, 90px);
  height: clamp(56px, 8vw, 90px);
  flex-shrink: 0;
  border-radius: 14px;
  padding: clamp(10px, 1.4vw, 16px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slogan-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.slogan-line--from .slogan-icon {
  background: linear-gradient(135deg, #f5f6f8 0%, #e8eaee 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06),
              0 4px 14px rgba(0,0,0,0.06);
}
.slogan-line--to .slogan-icon {
  background: linear-gradient(135deg, var(--accent) 0%, #9c1530 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.25),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.slogan-line:hover .slogan-icon {
  transform: rotate(-4deg) scale(1.05);
}

/* Connector — between the two lines, indented */
.slogan-connector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(8px, 1.2vw, 14px) 0 clamp(8px, 1.2vw, 14px) clamp(80px, 10vw, 116px);
  color: var(--text-muted);
}
.connector-text {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
.connector-arrow {
  display: inline-flex;
  align-items: center;
  width: clamp(54px, 7vw, 78px);
  height: 24px;
  color: var(--accent);
}
.connector-arrow svg {
  width: 100%;
  height: 100%;
}
.connector-arrow svg circle {
  animation: dot-flow 1.6s ease-in-out infinite;
}
.connector-arrow svg circle:nth-child(1) { animation-delay: 0s; }
.connector-arrow svg circle:nth-child(2) { animation-delay: 0.15s; }
.connector-arrow svg circle:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-flow {
  0%, 100% { opacity: 0.2; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(2px); }
}

/* Korean tagline beneath the slogan */
.slogan-kr-tagline {
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin: 4px 0 28px;
  letter-spacing: -0.005em;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  font-family: var(--font-kr, 'Pretendard'), sans-serif;
}
.slogan-kr-tagline .kr-piece {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.slogan-kr-tagline .kr-piece + .kr-piece::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
  font-family: var(--font-en);
}
.slogan-kr-tagline strong {
  color: var(--text);
  font-weight: 700;
}
.slogan-kr-tagline strong.accent {
  color: var(--accent);
}

@media (max-width: 768px) {
  .slogan-mega { margin-bottom: 20px; }
  .slogan-connector {
    margin-left: clamp(60px, 14vw, 80px);
    gap: 10px;
  }
  .slogan-kr-tagline {
    margin-bottom: 22px;
    gap: 4px 8px;
  }
  .slogan-kr-tagline .kr-piece + .kr-piece::before {
    margin-right: 4px;
  }
}

.hero-text .hero-headline {
  font-family: var(--font-en, 'Pretendard'), sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--text);
  margin: 6px 0 24px;
}
.hero-text .hero-headline .accent-text {
  color: var(--text);
  font-weight: 800;
  position: relative;
  white-space: nowrap;
}
.hero-text .hero-headline .accent-text::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 0.35em;
  background: rgba(196, 30, 58, 0.18);
  z-index: -1;
  border-radius: 2px;
}
.hero-text .hero-headline .accent {
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.hero-text .hero-lead {
  font-size: 1.08rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.7;
}
.hero-text p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.85;
}
.hero-text p strong {
  color: var(--text);
  font-weight: 600;
}
.hero-image, .hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  background: var(--bg-soft);
  margin-top: 8px; /* now hero text starts compact, align near top */
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-image:hover {
  transform: translateY(-4px);
}
.hero-image img,
.hero-media img,
.hero-media video {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-media .hero-fallback {
  display: none;
}
.hero-media video[style*="display: none"] + .hero-fallback {
  display: block;
}

/* ========== PAGE HEADER (sub pages) ========== */
.page-header {
  padding: 130px 0 60px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.page-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.page-header-image {
  width: 90px;
  height: 65px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}
.breadcrumb {
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.page-title .accent { color: var(--accent); }
.page-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 800px;
  line-height: 1.75;
}

/* ========== SECTIONS ========== */
section { padding: 80px 0; }

.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-top: 20px;
  line-height: 1.8;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196, 30, 58, 0.25);
}
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--text-muted); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ========== PROCESS CARDS ========== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
}
.process-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.process-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.process-body { padding: 24px 28px 28px; }
.process-step {
  font-family: var(--font-en);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 600;
}
.process-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.process-specs {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.process-specs li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}
.process-specs li span:first-child { color: var(--text-muted); }
.process-specs li span:last-child {
  color: var(--text);
  font-weight: 600;
}
.process-specs li .accent-text { color: var(--accent); }

/* ========== ESG CARDS ========== */
.esg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.esg-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  display: block;
  color: inherit;
}
.esg-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.esg-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.esg-card-body {
  padding: 22px 24px;
  text-align: center;
}
.esg-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

/* ========== IMAGE BLOCKS ========== */
.image-block {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
}
.image-block img {
  width: 100%;
  height: auto;
}
.image-block.small {
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.image-block.medium {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.image-block.large {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.image-block.borderless {
  border: none;
  background: transparent;
}

/* Governance table images - render extra large for legibility */
.image-block.governance-table-img {
  max-width: none;          /* override .large constraint */
  width: 100%;
  margin: 16px 0 24px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  cursor: zoom-in;
  transition: box-shadow 0.25s, transform 0.25s;
}
.image-block.governance-table-img a {
  display: block;
  cursor: zoom-in;
}
.image-block.governance-table-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  /* Subtle filter to make light gray text appear darker */
  filter: contrast(1.15) saturate(1.1) brightness(0.97);
  transition: filter 0.25s;
}
.image-block.governance-table-img:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.image-block.governance-table-img:hover img {
  filter: contrast(1.2) saturate(1.15) brightness(0.96);
}
/* Subtle "click to zoom" indicator */
.image-block.governance-table-img::after {
  content: '🔍 클릭하여 크게 보기';
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(4px);
}
.image-block.governance-table-img:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.image-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.image-grid-2 .image-block { margin: 0; }

/* ========== TEXT + SIDE IMAGE LAYOUT (small thumbnail style) ========== */
.text-image-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
  gap: 32px;
  align-items: start;
  margin: 16px 0 24px;
}
.text-image-row .text-col > *:first-child { margin-top: 0; }
.text-image-row .text-col > *:last-child { margin-bottom: 0; }
.text-image-row .side-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 240px;
  position: sticky;
  top: 96px;
}
.text-image-row .side-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.text-image-row .side-image figcaption {
  padding: 7px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  text-align: center;
  font-weight: 500;
}

/* Image-on-the-left variant */
.text-image-row.image-left {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}
.text-image-row.image-left .side-image { order: -1; }

/* Hero-style num section (01, 02 in environment page) */
.num-section.full-width {
  padding: 50px 0;
  border-bottom: 1px solid var(--line);
}
.num-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.num-section-header .num-badge {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.num-section-header h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

@media (max-width: 900px) {
  .text-image-row,
  .text-image-row.image-left {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .text-image-row .side-image,
  .text-image-row.image-left .side-image {
    order: 0;
    max-width: 320px;
    margin: 0 auto;
    width: 100%;
    position: static;
  }
  .num-section-header { gap: 12px; }
  .num-section-header .num-badge { font-size: 1.7rem; }
}

@media (max-width: 768px) {
  .text-image-row { margin: 12px 0 18px; }
  .text-image-row .side-image { max-width: 240px; }
  .num-section.full-width { padding: 36px 0; }
}

/* Grouped tables (complex headers, sub-totals, intensity rows) */
.data-table-grouped {
  table-layout: auto;
  font-size: 0.83rem;
  /* Force horizontal scroll on narrow screens instead of squishing */
  min-width: 720px;
}
.data-table-grouped th,
.data-table-grouped td {
  padding: 9px 12px;
  /* Allow long Korean labels to wrap inside cells */
  word-break: keep-all;
  overflow-wrap: break-word;
}
.data-table-grouped thead th {
  font-size: 0.7rem;
  text-align: center;
  white-space: nowrap;
}
.data-table-grouped thead th.num {
  text-align: right;
}
.data-table-grouped thead th.group-head {
  background: var(--accent-dim);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--accent);
}
.data-table-grouped tbody tr.group-start td {
  border-top: 2px solid var(--line-soft);
}
.data-table-grouped tbody tr.row-subtotal td {
  background: var(--bg-soft);
  font-weight: 600;
}
.data-table-grouped tbody tr.row-intensity td {
  background: #fef5f6;
  border-bottom: 1px dashed var(--line-soft);
}
.data-table-grouped tbody tr.row-intensity:hover td {
  background: #fff0f2;
}
.data-table-grouped tbody tr.row-total td {
  background: var(--accent-dim);
  font-size: 0.92rem;
}
.data-table-grouped tbody tr.row-total:hover td {
  background: rgba(196, 30, 58, 0.16);
}
.data-table-grouped tbody tr.row-highlight td {
  background: var(--accent);
  color: white;
}
.data-table-grouped tbody tr.row-highlight:hover td {
  background: var(--accent-soft);
}
.data-table-grouped tbody tr.row-highlight .num.accent {
  color: white !important;
}
.data-table-grouped .row-group {
  background: var(--bg-muted);
  font-weight: 700;
  color: var(--text);
  text-align: center;
  font-size: 0.85rem;
  border-right: 2px solid var(--line-soft);
  vertical-align: middle;
  white-space: nowrap;
  width: 80px;
}
.data-table-grouped .row-subgroup {
  background: var(--bg-soft);
  text-align: center;
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.82rem;
  white-space: nowrap;
  width: 60px;
}
.data-table-grouped .row-subgroup em {
  font-style: normal;
}
.data-table-grouped .accent-text {
  color: var(--accent);
}
.data-table-grouped .num.up { color: #1a7f3c; font-weight: 700; }
.data-table-grouped .num.down { color: #1971c2; font-weight: 700; }

/* Universal up/down for any table */
.data-table .num.up { color: #1a7f3c; font-weight: 700; }
.data-table .num.down { color: #1971c2; font-weight: 700; }

/* Visual hint that table is horizontally scrollable on narrow screens */
.table-scroll {
  position: relative;
}
.table-scroll::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.95));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
@media (max-width: 768px) {
  .table-scroll::after { opacity: 1; }
  .table-scroll {
    /* Subtle shadow on edges to hint scroll */
    background:
      linear-gradient(to right, white 30%, rgba(255,255,255,0)) 0 0/40px 100% no-repeat,
      linear-gradient(to right, rgba(255,255,255,0), white 70%) 100% 0/40px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) 0 0/14px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,0.08), rgba(0,0,0,0)) 100% 0/14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

@media (max-width: 768px) {
  .data-table-grouped {
    font-size: 0.7rem;
    /* Keep min-width so 9-column grouped tables remain readable
       and horizontally scroll inside .table-scroll instead of squashing */
    min-width: 560px;
  }
  .data-table-grouped th,
  .data-table-grouped td {
    padding: 6px 5px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .data-table-grouped thead th {
    font-size: 0.6rem;
    line-height: 1.2;
  }
  .data-table-grouped .row-group {
    width: 56px;
    font-size: 0.66rem;
    padding: 4px 3px;
  }
  .data-table-grouped .row-subgroup {
    width: 44px;
    font-size: 0.62rem;
    padding: 4px 2px;
  }
  .data-table-grouped .num {
    font-size: 0.66rem;
  }

  /* Regular .data-table - fits screen */
  .data-table {
    font-size: 0.78rem;
    width: 100%;
    table-layout: auto;
  }
  .data-table th,
  .data-table td {
    padding: 8px 6px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  .data-table thead th {
    font-size: 0.68rem;
  }

  /* Show scroll edge fade hint when content overflows */
  .table-scroll::after { display: block; opacity: 1; }
}

/* Very narrow phones - keep grouped tables scrollable, regular tables compact */
@media (max-width: 380px) {
  .data-table-grouped {
    font-size: 0.62rem;
    min-width: 520px;
  }
  .data-table-grouped th,
  .data-table-grouped td {
    padding: 4px 3px;
  }
  .data-table-grouped thead th {
    font-size: 0.54rem;
  }
  .data-table-grouped .num {
    font-size: 0.6rem;
  }
  .data-table {
    font-size: 0.7rem;
  }
  .data-table th,
  .data-table td {
    padding: 6px 4px;
  }
}

/* ========== INLINE ICON (paragraph float) ========== */
.lead-with-icon {
  margin: 0 0 18px;
  line-height: 1.85;
  color: var(--text-secondary);
  font-size: 0.96rem;
  overflow: hidden; /* contain the float */
}
.lead-with-icon .inline-icon {
  float: left;
  width: 64px;
  height: 64px;
  margin: 4px 16px 4px 0;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  shape-outside: padding-box;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lead-with-icon .inline-icon {
    width: 50px;
    height: 50px;
    margin: 3px 12px 3px 0;
  }
}
@media (max-width: 480px) {
  .lead-with-icon .inline-icon {
    width: 44px;
    height: 44px;
    margin: 2px 10px 2px 0;
  }
}

/* ========== COMPANY PROFILE GRID ========== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 0 8px;
}
.profile-cell {
  background: var(--bg);
  padding: 22px 22px 20px;
  transition: background 0.2s;
}
.profile-cell:hover { background: var(--bg-soft); }
.profile-label {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.profile-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}
.profile-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-cell[style*="span 2"] { grid-column: span 2 !important; }
}
@media (max-width: 480px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-cell[style*="span 2"] { grid-column: span 1 !important; }
}

/* ========== KPI CARDS ========== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}
.kpi-card {
  padding: 24px 24px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.7;
}
.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent-soft);
}
.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.005em;
}
.kpi-value {
  font-family: var(--font-en);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-value.up { color: var(--accent); }
.kpi-value.down { color: #d04848; }
.kpi-unit {
  font-size: 0.55em;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
  letter-spacing: 0;
}
.kpi-trend {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.kpi-trend.up { color: #1a7f3c; }
.kpi-trend.down { color: #d04848; }

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; gap: 12px; }
  .kpi-value { font-size: 1.65rem; }
}

/* ========== DATA TABLES (FORMAL SPREADSHEET STYLE) ========== */
.table-wrapper {
  margin: 28px 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.table-wrapper:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.07);
}
.table-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
  z-index: 2;
}
.table-header {
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.table-header::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.table-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.table-header .code {
  display: inline-block;
  padding: 3px 9px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 3px;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-left: auto;
  flex-shrink: 0;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
  max-width: 100%;
  min-width: 0;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  table-layout: fixed; /* equal column widths, no left/right gaps */
}
/* Cell - both vertical and horizontal dividers, like a spreadsheet */
.data-table th,
.data-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.data-table th:last-child,
.data-table td:last-child {
  border-right: none;
}

/* Header row */
.data-table thead th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line-soft);
}
.data-table thead th.num {
  text-align: right;
}

/* Body rows - alternating zebra stripe for readability */
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:nth-child(even) {
  background: #fafbfc;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:hover {
  background: var(--accent-dim);
}
.data-table tbody tr:hover td.num {
  color: var(--accent);
}

/* Label column (first column) */
.data-table td.label-col {
  color: var(--text);
  font-weight: 500;
  background: var(--bg-soft);
  border-right: 1px solid var(--line-soft);
}
.data-table tbody tr:nth-child(even) td.label-col {
  background: #f3f5f8;
}
.data-table tbody tr:hover td.label-col {
  background: var(--accent-dim);
  color: var(--accent);
}

/* Numeric value cells */
.data-table td.num,
.data-table th.num {
  text-align: right;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: color 0.15s;
  white-space: nowrap;
}
.data-table td.num.accent { color: var(--accent); }

.table-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 10px 20px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin: 0;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}
.table-note::before {
  content: 'ⓘ';
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 768px) {
  .data-table {
    font-size: 0.8rem;
    table-layout: auto;
  }
  .data-table th, .data-table td { padding: 9px 12px; }
  .table-header {
    padding: 12px 16px 10px;
    gap: 8px;
  }
  .table-title { font-size: 0.88rem; }
  .table-header .code {
    margin-left: 0;
    font-size: 0.64rem;
  }
  .table-note { padding: 8px 16px; font-size: 0.72rem; }
}

/* ========== NUMBERED SECTIONS (ESG sub pages) ========== */
.num-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.num-section:last-of-type { border-bottom: none; }
.num-section-grid {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.num-section-grid > div {
  min-width: 0; /* allow children (tables, code, long text) to wrap */
  overflow-wrap: break-word;
  word-break: keep-all; /* Korean word-aware wrapping */
}
.num-section-grid > div p,
.num-section-grid > div li,
.num-section-grid > div h2,
.num-section-grid > div h3 {
  overflow-wrap: break-word;
  word-break: keep-all;
}
.num-section-num {
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}
.num-section h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.num-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 10px;
  color: var(--accent);
}
.num-section h4 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 18px 0 6px;
  color: var(--text);
}
.num-section p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
  font-size: 0.96rem;
}
.num-section ol, .num-section ul {
  margin: 14px 0 22px 6px;
  color: var(--text-secondary);
  line-height: 1.85;
}
.num-section ol li, .num-section ul li {
  padding-left: 16px;
  position: relative;
  list-style: none;
  margin-bottom: 8px;
  font-size: 0.96rem;
}
.num-section ol { counter-reset: list-counter; }
.num-section ol li {
  counter-increment: list-counter;
}
.num-section ol li::before {
  content: counter(list-counter) '.';
  position: absolute;
  left: -8px;
  color: var(--accent);
  font-weight: 600;
}
.num-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 8px; height: 1px;
  background: var(--accent);
}

/* ========== FILE LINKS ========== */
.file-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.file-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.2s;
}
.file-link:hover {
  border-color: var(--accent);
  background: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.file-link-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.file-link-text { flex: 1; min-width: 0; }
.file-link-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1px;
}
.file-link-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-en);
}

/* ========== MOSAIC GALLERY (clean 3x3) ========== */
.mosaic-section {
  margin: 36px 0 24px;
}
.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mosaic-tile {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}
.mosaic-tile a {
  display: block;
  width: 100%;
  height: 100%;
}
.mosaic-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06), 0 14px 28px rgba(0,0,0,0.08);
}
.mosaic-tile img,
.mosaic-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.mosaic-tile:hover img,
.mosaic-tile:hover video {
  transform: scale(1.04);
}

/* Brand guide tile - show fully (contain) instead of cover */
.mosaic-tile.tile-photo:first-child img {
  object-fit: contain;
  background: #ffffff;
  padding: 6px;
}

/* Subtle bottom-fade label, always visible but understated */
.mosaic-tile .tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.mosaic-tile:hover .tile-label {
  opacity: 1;
}

/* Brand guide tile - white background needs dark label always visible */
.mosaic-tile.tile-photo:first-child .tile-label {
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
  color: var(--text);
  opacity: 1;
}

/* Tablet */
@media (max-width: 900px) {
  .mosaic-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* Mobile - 2 columns */
@media (max-width: 600px) {
  .mosaic-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .mosaic-tile .tile-label {
    font-size: 0.68rem;
    padding: 22px 10px 8px;
    opacity: 1; /* always visible on mobile (no hover) */
  }
}
@media (max-width: 380px) {
  .mosaic-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ========== BRAND GUIDE ========== */
.brand-guide-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brand-guide-frame {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 14px 50px rgba(11, 46, 111, 0.12),
              0 4px 14px rgba(0, 0, 0, 0.05);
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s;
  position: relative;
}
.brand-guide-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 70px rgba(11, 46, 111, 0.18),
              0 8px 22px rgba(0, 0, 0, 0.08);
}
.brand-guide-frame a {
  display: block;
  cursor: zoom-in;
}
.brand-guide-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.brand-guide-frame::after {
  content: '🔍 클릭하여 크게 보기';
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--line);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  backdrop-filter: blur(6px);
}
.brand-guide-frame:hover::after {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .brand-guide-section { padding: 50px 0; }
  .brand-guide-frame { margin-top: 24px; }
  .brand-guide-frame::after {
    font-size: 0.68rem;
    padding: 5px 10px;
    bottom: 10px;
    right: 10px;
  }
}

/* ========== VIDEO SECTION ========== */
.video-section {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.video-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  background: #000;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video-hint {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .video-section { padding: 50px 0; }
}

/* ========== ETHICS / CONTACT FORM (COMPACT) ========== */
.ethics {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 28px 0 22px !important;
}
.ethics-divider {
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 10px;
  border-radius: 2px;
}
.ethics .section-header {
  margin-bottom: 16px;
}
.ethics .section-title {
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
}
.ethics .section-desc {
  font-size: 0.72rem !important;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.55;
  max-width: 720px;
}
.ethics-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 14px;
}
.ethics-info h3 {
  font-size: 0.72rem;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ethics-info h3:first-child { margin-top: 0; }
.ethics-info h3::before {
  content: '🔸';
  font-size: 0.7em;
}
.ethics-info p, .ethics-info li {
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.7rem;
}
.ethics-info ul {
  list-style: none;
  padding-left: 0;
  margin-top: 3px;
}
.ethics-info ul li {
  padding: 1px 0 1px 9px;
  position: relative;
}
.ethics-info ul li::before {
  content: '·';
  position: absolute;
  left: 0; top: -3px;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2em;
}

.ethics-form {
  background: var(--bg);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.ethics-form .form-group { margin-bottom: 8px; }
.ethics-form .form-group label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 3px;
  font-weight: 500;
}
.ethics-form .form-group input,
.ethics-form .form-group textarea,
.ethics-form .form-group select {
  width: 100%;
  padding: 6px 9px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  transition: border-color 0.15s;
}
.ethics-form .form-group input:focus,
.ethics-form .form-group textarea:focus,
.ethics-form .form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.ethics-form .form-group textarea {
  min-height: 64px;
  resize: vertical;
}
.ethics-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ethics-form .form-submit {
  width: 100%;
  padding: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.78rem;
}
.ethics-form .form-submit:hover { background: var(--accent-soft); }
.form-success {
  display: none;
  padding: 7px;
  background: #e6f7ed;
  border: 1px solid #34c759;
  border-radius: var(--radius);
  color: #1a7f3c;
  text-align: center;
  margin-top: 8px;
  font-weight: 500;
  font-size: 0.72rem;
}
.form-success.visible { display: block; }

/* Generic form (used in shop login etc) - default size kept */
.form-group { margin-bottom: 18px; }
.form-group > label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group > input,
.form-group > textarea,
.form-group > select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  transition: border-color 0.15s;
}
.form-group > input:focus,
.form-group > textarea:focus,
.form-group > select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group > textarea {
  min-height: 130px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}
.form-submit:hover { background: var(--accent-soft); }

/* ========== FOOTER ========== */
.footer {
  padding: 60px 0 30px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
  margin-top: 14px;
}
.footer-col h5 {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========== SHOP ========== */
.shop-login {
  max-width: 420px;
  margin: 0 auto 56px;
  padding: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.shop-login h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  font-weight: 700;
}
.shop-login .login-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.test-notice {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  font-size: 0.78rem;
  color: var(--accent);
  text-align: center;
  font-weight: 500;
}

.shop-account {
  display: none;
  margin-bottom: 56px;
}
.shop-account.visible { display: block; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.account-card {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.account-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: var(--font-en);
}
.account-card .value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}
.account-card .value small {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.shop-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.shop-item:hover {
  border-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.shop-item-image {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.shop-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
}
.shop-item-body { padding: 18px; }
.shop-item h3 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.shop-item .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.shop-item .price small {
  color: var(--text-muted);
  font-size: 0.7em;
  font-weight: 400;
  margin-left: 3px;
}
.shop-item select {
  width: 100%;
  padding: 9px 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  margin-bottom: 10px;
}
.shop-item .item-action {
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.15s;
}
.shop-item .item-action:hover { background: var(--accent-soft); }
.stock-out {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 10px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.shop-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.shop-actions button {
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.15s;
}
.shop-actions button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========== ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .esg-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ethics-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .num-section-grid { grid-template-columns: 70px minmax(0, 1fr); gap: 20px; }
  .num-section-num { font-size: 2.2rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image, .hero-media { order: -1; margin-top: 0; }
}

@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    height: calc(100vh - 76px);
    height: calc(100dvh - 76px);
    z-index: 99;
    flex-direction: column;
    background: #ffffff;
    padding: 24px 24px 80px;
    gap: 0;
    border-top: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    overflow-y: auto;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.active { transform: translateY(0); }
  .nav-links > li {
    width: 100%;
    list-style: none;
  }
  .nav-links > li > a {
    display: block;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1d24;
    text-decoration: none;
    line-height: 1.4;
  }
  .nav-links > li > a:hover,
  .nav-links > li > a:active {
    color: var(--accent);
  }
  .nav-links li:last-child > a { border-bottom: none; }
  .has-submenu > a::after { display: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 0 0 8px 16px;
    margin: 0;
    list-style: none;
  }
  .submenu li { list-style: none; }
  .submenu a {
    font-size: 0.95rem;
    color: #5e6772 !important;
    padding: 10px 4px !important;
    display: block;
    text-decoration: none;
    border-bottom: none !important;
    font-weight: 500;
  }
  .menu-toggle { display: flex; }

  section, .num-section { padding: 50px 0; }
  .page-header { padding: 100px 0 50px; }
  .hero { padding: 110px 0 50px; }
  .page-header-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-header-image { width: 70px; height: 50px; }

  .section-header { margin-bottom: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 16px; }
  .esg-grid { grid-template-columns: 1fr; gap: 14px; }
  .image-grid-2 { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .ethics-form { padding: 24px; }
  .num-section-grid { grid-template-columns: 1fr; gap: 12px; }
  .num-section-num { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-actions { flex-direction: column; }
  .btn { justify-content: center; width: 100%; }

  .account-grid { grid-template-columns: 1fr; }
  .shop-actions { grid-template-columns: 1fr; }
  .shop-login { padding: 26px 22px; }
  
  .logo {
    gap: 8px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }
  .logo-text small { display: none; }
  .logo img { width: 38px; height: 38px; flex-shrink: 0; }
  .brand-tagline { display: none; }
  .menu-toggle { flex-shrink: 0; margin-left: auto; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.7rem; }
  .page-title { font-size: 1.65rem; }
  .section-title { font-size: 1.4rem; }
  .num-section h2 { font-size: 1.25rem; }
  .logo { font-size: 0.95rem; gap: 7px; }
  .logo img { width: 34px; height: 34px; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent); color: white; }
