/* Fonts */
/* Noto Sans JP는 Google Fonts에서 로드됨 (HTML에서 link 태그로 연결) */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono.woff2') format('woff2'),
    url('fonts/jetbrains-mono.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans.woff2') format('woff2'),
    url('fonts/plus-jakarta-sans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-main: 'Noto Sans JP', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-jakarta: 'Plus Jakarta Sans', sans-serif;

  --color-text-main: #24292F;
  --color-text-body: #57606A;
  --color-text-gray: #8B949E;
  --color-text-white: #F6F6F6;

  --bg-dark: #141920;
  --bg-dark-gray: #2F3A49;
  --bg-light: #F9F9FB;
  --bg-white: #FFFFFF;

  --color-accent-blue: #0762D4;
  --color-accent-purple: #8664D1;

  --spacing-container: 1200px;

  /* Golden Ratio Spacing Scale (Fibonacci) */
  --space-xs: 8px;
  --space-sm: 13px;
  --space-md: 21px;
  --space-lg: 34px;
  --space-xl: 55px;
  --space-2xl: 89px;
  --space-3xl: 144px;
  --space-4xl: 233px;
}

/* Responsive Utility Classes */
.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

@media(max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .pc-only {
    display: none;
  }
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media(max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Adjusted Typography & Spacing */
.section-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-md);
  text-align: center;
  letter-spacing: 0.02em;
}

@media(min-width: 768px) {
  .section-title {
    font-size: 36px;
    margin-bottom: var(--space-lg);
  }
}

.section-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-text-body);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-xl);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.04em;
}

@media(max-width: 768px) {
  .section-subtitle {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-lg);
    max-width: 100%;
    padding: 0 24px;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s;
}

.header-container {
  display: flex;
  width: 100%;
  max-width: var(--spacing-container);
  height: 64px;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

@media(max-width: 768px) {
  .site-header {
    height: 56px;
  }

  .header-container {
    height: 56px;
    padding: 0 24px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 26px;
}

@media(max-width: 768px) {
  .logo-img {
    height: 22px;
  }
}

.main-nav {
  display: none;
}

@media(min-width: 992px) {
  .main-nav {
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: 28px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-link {
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  transition: color 0.2s;
}

@media(max-width: 768px) {
  .nav-link {
    font-size: 14px;
    line-height: 1;
  }
}

.nav-link:hover {
  color: #6366f1;
}

.btn-primary {
  display: inline-flex;
  padding: 14px 20px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #E52D27 0%, #B31217 100%);
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(229, 45, 39, 0.25);
  white-space: nowrap;
}

@media(max-width: 768px) {
  .btn-primary {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 6px;
    gap: 6px;
  }
}

.btn-primary img {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

@media(max-width: 768px) {
  .btn-primary img {
    width: 12px;
    height: 12px;
  }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 45, 39, 0.35);
}

/* Desktop only button */
.desktop-only {
  display: inline-flex;
}

@media(max-width: 991px) {
  .desktop-only {
    display: none;
  }
}

/* Mobile Hamburger Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Reverted to center */
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

@media(max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }
}

.hamburger-line {
  display: block;
  width: 20px;
  /* Reverted to equal width */
  height: 2px;
  background: var(--color-text-main);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-btn.active .hamburger-line {
  width: 20px;
  /* Reset width for X shape */
}

.mobile-menu-btn.active .hamburger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  /* Slightly more opaque glass */
  backdrop-filter: blur(12px);
  /* Glassmorphism */
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 24px;
  /* Tighter top spacing for a more integrated feel */
  flex-direction: column;
  gap: 32px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Slightly tighter gap */
}

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  /* Reverted to more comfortable vertical padding */
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  /* Slightly larger for better touch UX */
  font-weight: 400;
  color: var(--color-text-main);
  border-bottom: none;
  /* Removed lines for cleaner look */
  transition: all 0.2s;
}

.mobile-nav-link:hover {
  color: #6366f1;
  padding-left: 6px;
  /* Slightly more noticeable hover */
  /* Subtle hover interaction */
}

.mobile-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
  gap: 8px;
  border-radius: 7px;
}

.mobile-cta img {
  width: 13px;
  height: 13px;
  margin-top: 2px;
}

/* Hero Section */
.hero-section {
  padding-top: 94px;
  /* 64px header height + 30px gap */
  padding-bottom: var(--space-2xl);
}

@media(max-width: 768px) {
  .hero-section {
    padding-top: 80px;
    /* 56px header + 24px gap */
    padding-bottom: var(--space-xl);
  }
}

/* Hero Slider - Japanese Style */
.hero-slider {
  position: relative;
  width: calc(100% - 60px);
  max-width: none;
  height: 600px;
  margin: 0 auto;
  border-radius: var(--space-md);
  overflow: hidden;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%),
              url(/assets/images/02-hero/hero-banner-1.png) lightgray 50% / cover no-repeat;
  border-radius: var(--space-md);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Slide text animation */
.hero-slide .hero-overlay-text {
  opacity: 0;
  transform: translateY(-50%) translateX(-20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide.active .hero-overlay-text {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Floating Case Study Card */
.hero-floating-card {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: auto;
  max-width: 220px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 10;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-floating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.floating-card-image {
  width: calc(100% - 12px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 6px;
  border-radius: 6px;
}

.floating-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-card-text {
  padding: 4px 10px 8px;
  background: #fff;
}

.floating-card-text span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  display: block;
  white-space: nowrap;
  text-align: center;
}

@media(max-width: 768px) {
  .hero-floating-card {
    display: none;
  }
}

/* Navigation Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* Progress Bar */
.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  border-radius: 0 0 var(--space-md) var(--space-md);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, #fff 100%);
  transition: width 0.1s linear;
}

.hero-slider:hover .progress-bar {
  animation-play-state: paused;
}

@media(max-width: 768px) {
  .hero-slider {
    width: calc(100% - 48px);
    height: 420px;
    min-height: 380px;
  }

  .hero-slide {
    border-radius: 16px;
  }

  .hero-slider-dots {
    bottom: 16px;
    gap: 10px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }

  .hero-slider-progress {
    height: 2px;
    border-radius: 0 0 16px 16px;
  }

  .hero-slide .hero-overlay-text {
    transform: translateY(-50%) translateX(-15px);
  }

  .hero-slide.active .hero-overlay-text {
    transform: translateY(-50%) translateX(0);
  }
}

/* Legacy support */
.hero-banner {
  display: none;
}

.hero-banner-img {
  display: none;
}

.hero-overlay-text {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  display: flex;
  max-width: 800px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  color: white;
  font-family: "Noto Sans JP", sans-serif;
}

.hero-overlay-text h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-overlay-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin: 0;
}

@media(max-width: 768px) {
  .hero-overlay-text {
    width: 100%;
    max-width: none;
    padding: 0 24px;
    gap: 8px;
    left: 0;
    transform: translateY(-50%);
    align-items: flex-start;
  }

  .hero-overlay-text h1 {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .hero-overlay-text p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.03em;
    opacity: 0.9;
  }
}

.hero-container {
  display: flex;
  width: 100%;
  max-width: 1700px;
  padding: var(--space-3xl) 0 0 0;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-xl);
}

@media(max-width: 768px) {
  .hero-container {
    padding: 48px 0 0 0;
    gap: 28px;
  }
}

.card-container-image {
  width: 100%;
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

@media(max-width: 768px) {
  .card-container-image {
    padding: var(--space-lg) 0;
  }
}

.card-container-image img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
}

.hero-content {
  text-align: center;
  max-width: 1262px;
  margin: 0 auto;
}

.hero-title {
  color: var(--color-text-main);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 36px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

@media(max-width: 768px) {
  .hero-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0 auto 20px;
    max-width: 300px;
    text-align: center;
  }
}

.hero-description {
  max-width: 1262px;
  width: 100%;
  color: #57606A;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  margin: 0 auto var(--space-lg) auto;
  padding: 0 var(--space-md);
}

@media(max-width: 768px) {
  .hero-description {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    padding: 0 24px;
    color: #4A5568;
    text-align: center;
    max-width: 480px;
    margin: 0 auto 32px;
    word-break: normal;
  }
}

.hero-description strong {
  color: #6B5FE9;
  font-weight: 500;
}

.hero-video-container {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
  width: 100%;
  display: flex;
  justify-content: center;
}

@media(max-width: 768px) {
  .hero-video-container {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 0 24px;
  }
}

.video-placeholder {
  width: 100%;
  max-width: 900px;
  /* Slightly wider */
  aspect-ratio: 16 / 9;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  /* Softer shadow */
  border-radius: 16px;
  overflow: hidden;
}

@media(max-width: 768px) {
  .video-placeholder {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  }
}

.play-button {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.play-button svg {
  margin-left: 4px;
}

@media(max-width: 768px) {
  .play-button {
    width: 56px;
    height: 56px;
  }

  .play-button svg {
    width: 20px;
    height: 20px;
  }
}

.video-placeholder:hover .play-button {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

/* Mid Section Image */
.mid-image-section {
  width: 100%;
  max-width: none;
  margin: 0 auto var(--space-3xl) auto;
  /* Increased gap to next section */
}

@media(max-width: 768px) {
  .mid-image-section {
    margin: 0 0 var(--space-xl) 0;
  }
}

.mid-image-section .container {
  position: relative;
  display: flex;
  width: calc(100% - 60px);
  /* Aligned with Hero Banner width */
  max-width: none;
  /* Align with Hero Banner behavior */
  min-height: 420px;
  /* Slightly taller for more presence */
  padding: 64px 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  border-radius: var(--space-md);
  overflow: hidden;
}



@media(max-width: 768px) {
  .mid-image-section .container {
    padding: var(--space-lg);
    max-width: 100%;
  }
}

.mid-image-section .full-width-img {
  position: absolute;
  /* Positioned behind overlay */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--space-md);
}

@media(max-width: 768px) {
  .mid-image-section .full-width-img {
    display: none;
  }

  .mid-image-section .container {
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 40px 24px;
    background: url(/assets/images/03-mid-section/whitepaper-banner.png) lightgray 50% / cover no-repeat;
    border-radius: 16px;
    min-height: 380px;
  }
}

/* Mid Section Overlay Text - Golden Ratio Layout (38:62) */
.mid-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  width: 100%;
  max-width: 1100px;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  color: white;
  font-family: "Noto Sans JP", sans-serif;
  z-index: 2;
  text-align: left;
  padding: 0 50px;
}

.mid-overlay-text h2 {
  color: #FFF;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 32px;
  /* Increased for impact */
  font-style: normal;
  font-weight: 500;
  /* Bolder title */
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
  text-align: left;
  flex: 0 0 40%;
  max-width: 40%;
}

.mid-overlay-text p {
  color: rgba(255, 255, 255, 0.95);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: left;
}

.mid-text-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  /* Increased from 24px */
  flex: 0 0 56%;
  max-width: 56%;
}

@media(max-width: 768px) {
  .mid-overlay-text {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    right: auto;
    max-width: 100%;
    padding: 0;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .mid-overlay-text h2 {
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    padding: 0;
    font-weight: 500;
    margin: 0;
    min-width: auto;
    max-width: 100%;
    flex: unset;
    text-align: center;
  }

  .mid-overlay-text p {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.04em;
    max-width: none;
    opacity: 0.9;
    font-weight: 300;
    margin: 0;
    text-align: center;
  }
}

/* Mid Section Button */
.mid-section-btn {
  display: inline-flex;
  width: auto;
  padding: 12px 20px;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  border: none;
  background: #FFFFFF;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  color: #1A1A1A;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.mid-section-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px 0 rgba(16, 24, 40, 0.15);
}

@media(max-width: 768px) {
  .mid-text-column {
    align-items: center;
    gap: 28px;
    /* Increased from 20px */
    max-width: 100%;
    flex: unset;
  }

  .mid-section-btn {
    font-size: 14px;
    padding: 12px 18px;
    letter-spacing: -0.01em;
    border-radius: 6px;
  }

  .mid-section-btn:hover {
    transform: translateY(-2px);
  }
}


/* Services Section */
.services-section {
  display: flex;
  width: 100%;
  margin: var(--space-2xl) 0 0 0;
  padding: var(--space-3xl) 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--bg-light);
}

.services-section .section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.services-section .section-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 1262px;
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}

@media(max-width: 768px) {
  .services-section {
    margin-top: 64px;
    padding: 64px 0;
  }

  .services-section .section-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .services-section .section-subtitle {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    max-width: 100%;
    padding: 0 24px;
    margin-bottom: 24px;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: 24px;
}

@media(min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 768px) {
  .services-grid {
    gap: 20px;
    margin-top: 24px;
  }
}

.service-card {
  background: #fff;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--space-md);
  text-align: center;
  transition: transform 0.3s;
}

@media(max-width: 768px) {
  .service-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-icon {
  margin-bottom: var(--space-md);
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media(max-width: 768px) {
  .card-icon {
    height: 110px;
    margin-bottom: var(--space-sm);
  }
}

.card-icon img {
  max-height: 100%;
}

.card-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

@media(max-width: 768px) {
  .card-title {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
  }
}

.card-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-gray);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

@media(max-width: 768px) {
  .card-desc {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
}

/* Problems Section */
.problems-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.problems-section .section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.problems-section .section-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.04em;
  max-width: 1262px;
  margin-bottom: var(--space-lg);
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

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

  .problems-section .section-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .problems-section .section-subtitle {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    max-width: 100%;
    padding: 0 24px;
    margin-bottom: 24px;
  }

  .problem-cards {
    gap: 20px;
    margin-top: 24px;
  }
}

.problem-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: 24px;
}

@media(min-width: 768px) {
  .problem-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.problem-card {
  background: var(--bg-light);
  border-radius: var(--space-md);
  overflow: hidden;
  padding: var(--space-md);
}

@media(max-width: 768px) {
  .problem-card {
    padding: 16px;
    border-radius: 16px;
  }
}

.problem-img-container {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.problem-img {
  width: 100%;
  display: block;
}

@media(max-width: 768px) {
  .problem-img-container {
    border-radius: 10px;
    margin-bottom: 16px;
  }
}

.problem-img-container2 {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

@media(max-width: 768px) {
  .problem-img-container2 {
    border-radius: 10px;
    margin-bottom: 16px;
  }
}

.problem-content h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

@media(max-width: 768px) {
  .problem-content h3 {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
  }
}

.problem-content p {
  color: var(--color-text-gray);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.04em;
}

@media(max-width: 768px) {
  .problem-content p {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
}


/* Security Section */
.security-section {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-dark);
  color: var(--color-text-white);
  text-align: center;
}

.security-section .section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.text-white {
  color: white;
}

.text-gray {
  color: var(--color-text-gray);
}

.text-main-color {
  color: var(--color-accent-purple);
}

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

  .security-section .section-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .security-section .section-subtitle {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    max-width: 100%;
    padding: 0 24px;
    margin-bottom: 24px;
  }

  .security-features {
    gap: 16px;
    margin-top: 24px;
  }
}

.security-header {
  margin-bottom: 0;
}

.security-header p {
  font-size: 16px;
  font-weight: 300;
  line-height: 26px;
  letter-spacing: 0.3px;
  max-width: 1262px;
  margin: 0 auto var(--space-lg) auto;
  padding: 0 var(--space-md);
}

.security-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

@media(min-width: 768px) {
  .security-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sec-feature {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--space-lg);
  border-radius: var(--space-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

@media(max-width: 768px) {
  .sec-feature {
    padding: 20px;
    border-radius: 16px;
  }
}

.sec-feature p {
  line-height: 1.9;
  font-size: 14px;
  font-weight: 200;
}

@media(max-width: 768px) {
  .sec-feature p {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
}

.sec-icon {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.sec-icon img {
  width: 38px;
  height: 38px;
}

@media(max-width: 768px) {
  .sec-icon img {
    width: 32px;
    height: 32px;
  }
}

/* Blog Section */
.blog-section {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.blog-section .section-title {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

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

  .blog-section .section-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .blog-grid {
    gap: 24px;
    margin: 24px 0;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
}

@media(min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  cursor: pointer;
  text-align: left;
}

.blog-img-container1,
.blog-img-container2,
.blog-img-container3 {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.blog-thumb {
  width: 100%;
  display: block;
}

@media(max-width: 768px) {
  .blog-img-container1,
  .blog-img-container2,
  .blog-img-container3 {
    border-radius: 10px;
    margin-bottom: 12px;
  }
}

.blog-meta {
  font-size: 12px;
  color: var(--color-text-gray);
  margin-bottom: var(--space-xs);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media(max-width: 768px) {
  .blog-meta {
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

.blog-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: var(--space-sm);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

@media(max-width: 768px) {
  .blog-title {
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
  }
}

.blog-excerpt {
  font-size: 14px;
  font-weight: 300;
  color: var(--color-text-gray);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

@media(max-width: 768px) {
  .blog-excerpt {
    font-size: 13px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: var(--space-lg);
}

.page-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.page-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.page-btn img {
  width: 10px;
  height: 10px;
  opacity: 0.6;
}

.page-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background: #9ca3af;
}

.dot.active {
  background: #374151;
}


/* Contact Section */
.contact-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
}

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

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media(min-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 768px) {
  .split-layout {
    gap: 28px;
  }
}

.contact-text h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  color: #1f2937;
}

.contact-text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: #6b7280;
  margin-top: 0;
}

@media(max-width: 768px) {
  .contact-text h2 {
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    margin-bottom: 12px;
    text-align: center;
  }

  .contact-text p {
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-align: center;
  }
}

.contact-form-wrapper {
  background: #fff;
  padding: 36px;
  border-radius: var(--space-md);
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media(max-width: 768px) {
  .contact-form-wrapper {
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media(max-width: 768px) {
  .contact-form {
    gap: 18px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  width: 100%;
}

.form-row {
  display: flex;
  gap: var(--space-md);
  width: 100%;
}

.form-row .form-group.half {
  flex: 1;
}

@media(max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 16px;
  }
}

.form-group.half {
  width: 100%;
}

.form-group label,
.form-group .label-text {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

@media(max-width: 768px) {
  .form-group label,
  .form-group .label-text {
    font-size: 13px;
    font-weight: 600;
  }
}

.required {
  color: #ef4444;
  font-size: 12px;
}

.form-note {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 8px;
}

@media(max-width: 768px) {
  .form-note {
    font-size: 12px;
    line-height: 1.5;
    padding: 0 8px;
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: all 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media(max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    padding: 12px;
    font-size: 16px; /* iOS 줌 방지 */
    border-radius: 8px;
  }

  input:focus,
  textarea:focus,
  select:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
  }
}

textarea {
  min-height: 120px;
  resize: vertical;
}

@media(max-width: 768px) {
  textarea {
    min-height: 100px;
  }
}

/* Select Wrapper with Custom Arrow */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-color: #fff;
  color: #9ca3af;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #6b7280;
  pointer-events: none;
  transition: border-color 0.2s;
}

.select-wrapper:hover::after {
  border-top-color: #374151;
}

@media(max-width: 768px) {
  .select-wrapper select {
    padding-right: 36px;
    color: #9ca3af;
  }

  .select-wrapper::after {
    right: 12px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
  }
}



.checkbox-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: normal;
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  padding: 6px 0;
}

.checkbox-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: #6366f1;
  border-radius: 4px;
}

.checkbox-item label {
  font-weight: 400;
  cursor: pointer;
  color: #4b5563;
}

/* 뉴스레터 체크박스 (form-group과 함께 사용될 때) */
.form-group.checkbox-item {
  flex-direction: row;
  align-items: flex-start;
  background: #f9fafb;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 4px;
}

@media(max-width: 768px) {
  .checkbox-item {
    font-size: 14px;
    padding: 4px 0;
    gap: 8px;
  }

  .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 1px;
  }

  .form-group.checkbox-item {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .form-group.checkbox-item label {
    font-size: 13px;
    line-height: 1.5;
  }
}

.submit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  margin-top: var(--space-md);
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.submit-btn:hover {
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

@media(max-width: 768px) {
  .submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 6px;
    margin-top: 20px;
  }

  .submit-btn:hover {
    transform: none;
  }

  .submit-btn:active {
    transform: scale(0.98);
  }
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: var(--color-text-gray);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
  font-size: 14px;
}

@media(max-width: 768px) {
  .site-footer {
    padding-top: 48px;
    padding-bottom: 32px;
    font-size: 14px;
  }

  .footer-content {
    gap: 28px;
    padding-bottom: 28px;
    margin-bottom: 24px;
  }

  .footer-brand {
    gap: 16px;
  }

  .footer-links {
    gap: 24px;
  }

  .link-column h4 {
    font-size: 15px;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
  }

  .link-column ul {
    gap: 10px;
  }

  .footer-bottom {
    gap: 16px;
  }

  .legal-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .copyright p {
    font-size: 12px;
    line-height: 1.7;
  }
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  border-bottom: 1px solid #333;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media(min-width: 992px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  gap: var(--space-sm);
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media(min-width: 768px) {
  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.link-column h4 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 16px;
}

.link-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.badge {
  background: #333;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

@media(min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.legal-links {
  display: flex;
  gap: var(--space-md);
}

.copyright p {
  font-size: 12px;
  line-height: 1.6;
}

/* Utils */
.bg-gray {
  background-color: var(--bg-light);
}

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