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

html, body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  font-size: 16px;
}

a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #000;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Black & White Text Override */
.black-white-text {
  color: #000 !important;
}

.black-white-text h1,
.black-white-text h2,
.black-white-text h3,
.black-white-text h4,
.black-white-text h5,
.black-white-text h6 {
  color: #000 !important;
}

.black-white-text p {
  color: #000 !important;
}

.black-white-text a {
  color: #000 !important;
}

.black-white-text ul,
.black-white-text li {
  color: #000 !important;
}
/* Header */
.site-header {
  background: #000;
  color: white;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.brand {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  font-size: 14px;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

.nav a:hover {
  background: white;
  color: #000;
  transform: translateY(-2px);
}

.cta {
  background: white;
  color: #000;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.5);
  background: #f0f0f0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo h1 {
  font-weight: 900;
  color: var(--black);
  letter-spacing: 0.5px;
  font-size: 24px;
  margin: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--black);
}

.nav-link:hover {
  background: var(--bg2);
  color: var(--primary);
}

.nav-link.phone {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.nav-link.phone:hover {
  background: var(--primary-700);
  color: var(--white);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}
/* Hero Section */
.hero {
  background: linear-gradient(135deg, #000 0%, #333 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, white, transparent);
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
  color: #ddd;
}

.hero-ctas {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  margin: 0 0 20px;
  color: var(--black);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 30px;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.hero-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 12px;
  border: 2px solid var(--primary);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: white;
  color: #000;
  box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.4);
  background: #f0f0f0;
}

.btn.outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn.outline:hover {
  background: white;
  color: #000;
  transform: translateY(-3px);
}
/* Sections */
section {
  padding: 60px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin: 0 0 50px;
  color: #000;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.service-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #000;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #000;
}

.service-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Areas Grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.area-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.area-card:hover {
  transform: translateY(-5px);
  border-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.area-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #000;
}

.area-card p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Cards */
.card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #000;
}

.card h2 {
  color: #000;
  margin-bottom: 20px;
  font-size: 24px;
  position: relative;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

.card ul, .card ol {
  list-style: none;
}

.card li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  position: relative;
  padding-left: 20px;
}

.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #000;
  font-weight: bold;
}

.card ol {
  counter-reset: li;
}

.card ol li::before {
  content: counter(li) '.';
  counter-increment: li;
  color: #000;
  font-weight: bold;
}

/* Ranking Styles */
.ranking .rank-list {
  list-style: none;
}

.ranking .rank-list li {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.rank-num {
  background: #000;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
}

.rank-title {
  flex: 1;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.rank-title:hover {
  color: #000;
}

.rank-badge {
  background: #000;
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
}

/* Tile Grid */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 20px 0;
}

.tile {
  background: #000;
  color: white;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid #333;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: #333;
}
/* Gallery Section */
.gallery {
  margin: 40px auto;
}

.gallery h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  color: #000;
  position: relative;
}

.gallery h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.gallery-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s;
  border: 2px solid #f0f0f0;
}

.gallery-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: #000;
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.gallery-card:hover img {
  filter: grayscale(0%);
}

.gallery-body {
  padding: 25px;
}

.gallery-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #000;
}

.gallery-desc {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.gallery-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #000;
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s;
}

.tag:hover {
  background: #333;
}

/* Footer */
.site-footer {
  background: #000;
  color: white;
  padding: 40px 0;
  margin-top: 60px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: white;
}

/* SEO Section */
.seo {
  background: #f8f8f8;
  padding: 40px 20px;
  border-radius: 20px;
  margin: 40px auto;
  border: 2px solid #e0e0e0;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-height: 800px;
  object-fit: contain;
  object-position: center;
}

.black-white-text {
  background: linear-gradient(45deg, #000 0%, #666 25%, #000 50%, #333 75%, #000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  background-size: 400% 400%;
  animation: blackWhiteShine 3s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

@keyframes blackWhiteShine {
  0%, 100% {
    background-position: 0% 50%;
    filter: brightness(1);
  }
  50% {
    background-position: 100% 50%;
    filter: brightness(1.2);
  }
}

.seo h2 {
  font-size: 32px;
  font-weight: 900;
  margin: 0 0 40px;
  text-align: center;
  color: var(--black);
}

.seo h3 {
  color: #000;
  margin: 30px 0 15px 0;
  font-size: 24px;
}

.seo h4 {
  color: #333;
  margin: 25px 0 15px 0;
  font-size: 20px;
}

.seo p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #444;
}

.seo ul, .seo ol {
  margin: 20px 0;
  padding-left: 20px;
}

.seo li {
  margin-bottom: 10px;
  line-height: 1.7;
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .black-white-text {
    font-size: 24px;
  }
  
  .seo h3 {
    font-size: 20px;
  }
  
  .seo h4 {
    font-size: 18px;
  }
  
  .tile-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
  
  .section-image {
    max-height: 400px;
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: auto;
    margin: 0 auto 12px auto;
    display: block;
  }
  
  .section-header {
    margin-bottom: 20px;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 15px;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .tile {
    padding: 15px;
    font-size: 14px;
  }
  
  .card {
    padding: 20px;
  }
  
  .seo {
    padding: 30px 15px;
  }
  
  .section-image {
    max-height: 250px;
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: auto;
    margin: 0 auto 10px auto;
    display: block;
  }
  
  .section-header {
    margin-bottom: 15px;
    padding: 0 5px;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero, .card, .gallery-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #111;
    color: #ddd;
  }
  
  .card {
    background: #222;
    color: #ddd;
    border-color: #333;
  }
  
  .card:hover {
    border-color: #666;
  }
  
  .seo {
    background: #1a1a1a;
    color: #ddd;
    border-color: #333;
  }
  
  .gallery-card {
    background: #222;
    color: #ddd;
    border-color: #333;
  }
  
  .gallery-card:hover {
    border-color: #666;
  }
}

/* 키보드 네비게이션 */
.keyboard-nav *:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* 터치 기기에서 호버 효과 제거 */
.touch-device .card:hover,
.touch-device .tile:hover,
.touch-device .gallery-card:hover {
  transform: none;
}

/* 스크롤바 스타일링 */
@supports (scrollbar-color: auto) {
  * {
    scrollbar-color: #888 #f1f1f1;
    scrollbar-width: thin;
  }
  *::-webkit-scrollbar {
    width: 8px;
  }
  *::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  *::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
  }
  *::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}
h2{margin:0 0 10px;font-size:22px;font-weight:800}
h3{font-weight:700}
h4{font-weight:700}
p,li{font-size:16px;font-weight:600}

/* Rainbow text styles */
.rainbow-text{
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease-in-out infinite;
  font-weight: 900;
}

@keyframes rainbow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Section header with image */
.section-header{margin-bottom:24px}
.section-image{width:100%;max-width:100%;height:auto;border-radius:12px;margin-bottom:16px;display:block}
.section-title{margin:0}
@media(max-width:767px){.section-image{max-height:250px;object-fit:contain}}
@media(min-width:768px){.section-image{max-height:500px;object-fit:contain}}

/* Gallery */
.gallery{padding:16px 0 28px}
.gallery h2{margin-bottom:16px;font-size:24px;text-align:center}
.gallery-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.gallery-card{border:1px solid #e0e0e0;border-radius:12px;overflow:hidden;background:#fff}
.gallery-card img{width:100%;height:160px;object-fit:cover}
.gallery-body{padding:12px}
.gallery-title{margin:0 0 6px;font-weight:800;font-size:18px}
.gallery-desc{margin:0;color:#666;font-size:15px;font-weight:600}
.gallery-tags{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:12px;background:#f5f5f5;border:1px solid #e0e0e0;border-radius:999px;padding:2px 8px;font-weight:600}
@media(min-width:768px){.gallery-grid{grid-template-columns:repeat(4,1fr)}.gallery-card img{height:180px}}


/* Banner info section below hero buttons */
.info-section{padding:12px 0 20px}
.info-card{border:1px solid #e0e0e0;border-radius:14px;background:#fff;overflow:hidden}
.info-grid{display:grid;grid-template-columns:1fr;gap:0}
.info-media{background:#f5f5f5;display:flex;align-items:center;justify-content:center}
.img-placeholder{width:100%;height:220px;background:#f5f5f5;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;border-bottom:1px solid #e0e0e0}
.info-body{padding:14px}
.info-body h2{margin:0 0 8px;font-size:20px}
.info-body p{margin:0 0 8px;color:#666}
@media(min-width:768px){.info-grid{grid-template-columns:1fr 1fr}.img-placeholder{height:300px;border-bottom:none;border-right:1px solid #e0e0e0}}

/* Black & White theme overrides */
html,body{background:#000;color:#eee}
a{color:#eee}
.site-header{background:rgba(0,0,0,.9);border-bottom:1px solid #222}
.brand{color:#fff}
.nav a{color:#eee;background:rgba(255,255,255,0.08);border-color:#333}
.nav a:hover{background:#fff;color:#000}
.cta{background:#fff;color:#000}
.card,.gallery-card,.info-card{background:#111;color:#eee;border-color:#222}
.rank-list li{background:#111;border-color:#222}
.rank-badge{background:#333;color:#fff}
.tile{background:#111;color:#eee;border-color:#222}
.tile:hover{background:#222}
.site-footer{background:#000;color:#eee;border-top:1px solid #222}
.gallery h2,.card h2{color:#fff}
.tag{background:#000;color:#fff;border-color:#333}
.btn.outline{border-color:#fff;color:#fff}
.btn.outline:hover{background:#fff;color:#000}
