/* =========================================
   다현회계법인 - Dahyun Accounting Corporation
   ========================================= */

:root {
  --navy: #1B2E5C;
  --navy-dark: #131F3F;
  --navy-light: #2A4280;
  --blue: #2EA8E5;
  --blue-light: #5BBFEF;
  --gold: #C9A961;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --bg-grey: #EEF1F6;
  --text: #1A1F2E;
  --text-mid: #4A5266;
  --text-light: #8A91A1;
  --border: #E2E6EE;
  --shadow-sm: 0 2px 8px rgba(27, 46, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 46, 92, 0.1);
  --shadow-lg: 0 20px 48px rgba(27, 46, 92, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-kr: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-kr);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }

ul { list-style: none; }

button { background: none; border: none; cursor: pointer; font-family: inherit; }

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

/* =========================================
   TOPBAR
   ========================================= */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.topbar-text {
  font-family: var(--font-en);
  letter-spacing: 0.02em;
}
.topbar-links a {
  color: rgba(255,255,255,0.85);
  font-family: var(--font-en);
  font-weight: 500;
}
.topbar-links a:hover { color: #fff; }
.topbar-links .divider { margin: 0 12px; opacity: 0.4; }

/* =========================================
   HEADER
   ========================================= */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo img {
  height: 48px;
  width: auto;
}

.gnb ul {
  display: flex;
  gap: 8px;
}
.gnb a {
  display: block;
  padding: 12px 24px;
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  position: relative;
}
.gnb a::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px;
  bottom: 8px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--transition);
}
.gnb a:hover { color: var(--navy); }
.gnb a:hover::after { transform: scaleX(1); }
.gnb a.active { color: var(--navy); font-weight: 700; }
.gnb a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px auto;
  transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 720px;
  height: calc(100vh - 130px);
  max-height: 860px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 31, 63, 0.92) 0%, rgba(27, 46, 92, 0.85) 100%),
    radial-gradient(ellipse at 70% 30%, rgba(46, 168, 229, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #1B2E5C 0%, #131F3F 100%);
  z-index: 0;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 60% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 60% 50%, #000 30%, transparent 80%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 28px;
  position: relative;
  padding-left: 56px;
}
.hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 40px; height: 1px;
  background: var(--blue-light);
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero-title .accent {
  color: var(--blue-light);
  font-weight: 900;
}
.hero-desc {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  margin-bottom: 48px;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
}
.hero-scroll p {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 32px;
  margin: 0 auto;
  background: linear-gradient(to bottom, var(--blue-light), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-8px); opacity: 0.4; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0.4; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: var(--blue);
  color: #fff;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

/* =========================================
   SECTION COMMON
   ========================================= */
.section {
  padding: 120px 0;
}
.section-head {
  margin-bottom: 64px;
}
.section-head.center {
  text-align: center;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 640px;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }
.section-head.light .eyebrow { color: var(--blue-light); }
.section-head.light .section-title { color: #fff; }

.section-foot {
  text-align: center;
  margin-top: 56px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-top: 16px;
  transition: color var(--transition);
}
.link-arrow:hover { color: var(--blue); }
.link-arrow.light { color: #fff; }
.link-arrow.light:hover { color: var(--blue-light); }

/* =========================================
   INTRO
   ========================================= */
.intro {
  background: #fff;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-grid.single {
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.intro-grid.single .lead { font-size: 22px; }
.intro-grid.single p { max-width: 720px; margin-left: auto; margin-right: auto; }
.intro-text .lead {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.intro-text p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 15.5px;
}
.intro-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--navy);
  border-left: 2px solid var(--navy);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.stat-num small {
  font-size: 24px;
  font-weight: 600;
  color: var(--blue);
  margin-left: 2px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-section {
  background: var(--bg-soft);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 48px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover h3,
.service-card:hover p,
.service-card:hover li,
.service-card:hover .service-num { color: #fff; }
.service-card:hover li::before { background: var(--blue-light); }

.service-num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  transition: color var(--transition);
}
.service-card h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  transition: color var(--transition);
}
.service-card > p {
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  transition: color var(--transition);
}
.service-card ul {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.service-card li {
  padding: 6px 0 6px 18px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-mid);
  transition: color var(--transition);
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 2px;
  background: var(--blue);
  transition: background var(--transition);
}
.service-card:hover ul { border-color: rgba(255,255,255,0.2); }

/* =========================================
   WHY SECTION
   ========================================= */
.why-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,168,229,0.15) 0%, transparent 70%);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.why-item {
  text-align: center;
  padding: 24px;
}
.why-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: rgba(46,168,229,0.12);
  border: 1px solid rgba(46,168,229,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
}
.why-icon svg { width: 32px; height: 32px; }
.why-item h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}
.why-item p {
  color: rgba(255,255,255,0.75);
  font-size: 14.5px;
  line-height: 1.75;
}

/* =========================================
   LOCATIONS
   ========================================= */
.locations { background: #fff; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: all var(--transition);
}
.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.location-card.primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  border-color: transparent;
}
.location-card.primary:hover { box-shadow: var(--shadow-lg); }

.badge {
  display: inline-block;
  padding: 6px 14px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  background: var(--bg-soft);
  color: var(--navy);
  border-radius: 100px;
  margin-bottom: 20px;
}
.location-card.primary .badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.location-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.location-card.primary h3 { color: #fff; }
.location-card .addr {
  color: var(--text-mid);
  line-height: 1.7;
  font-size: 15px;
  min-height: 50px;
}
.location-card.primary .addr { color: rgba(255,255,255,0.85); }

/* =========================================
   CTA
   ========================================= */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
  padding: 80px 0;
  color: #fff;
}
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cta h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.cta p {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
}
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: #0F1830;
  color: rgba(255,255,255,0.7);
  padding-top: 80px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}
.footer-logo {
  background: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  height: 56px;
  width: auto;
  margin-bottom: 20px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
}
.footer-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 24px;
}
.footer-info dt {
  font-weight: 600;
  color: rgba(255,255,255,0.95);
}
.footer-info dd { color: rgba(255,255,255,0.7); }
.footer-info a:hover { color: var(--blue-light); }

.footer-nav h4 {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 20px;
}
.footer-nav li { margin-bottom: 10px; }
.footer-nav a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.footer-bottom p {
  font-family: var(--font-en);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.02em;
}

/* =========================================
   PAGE HEADER (sub pages)
   ========================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(46,168,229,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(46,168,229,0.1) 0%, transparent 50%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--blue-light); }
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.breadcrumb {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.breadcrumb ol {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-light);
}
.breadcrumb li::after {
  content: "›";
  margin-left: 8px;
  color: var(--text-light);
}
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb li:last-child { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--navy); }

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-vision {
  background: #fff;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.vision-img {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.vision-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.vision-img img {
  position: relative;
  width: 60%;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.vision-text h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.4;
}
.vision-text p {
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}
.vision-text .lead {
  font-size: 18px;
  color: var(--navy);
  font-weight: 500;
  margin-bottom: 28px;
}

.values {
  background: var(--bg-soft);
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: #fff;
  padding: 48px 36px;
  border-radius: var(--radius-md);
  border-top: 4px solid var(--navy);
  transition: all var(--transition);
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--blue);
}
.value-card .num {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.value-card p {
  color: var(--text-mid);
  line-height: 1.75;
  font-size: 15px;
}

.history {
  background: #fff;
}
.history-list {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.history-list::before {
  content: "";
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
}
.history-item {
  position: relative;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
}
.history-item::before {
  content: "";
  position: absolute;
  left: -40px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--blue);
}
.history-item:last-child { padding-bottom: 0; }
.history-date {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.history-content h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.history-content p {
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.7;
}

.certificate {
  background: var(--bg-soft);
  text-align: center;
}
.certificate-info {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 56px 48px;
  box-shadow: var(--shadow-md);
}
.certificate-info dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px 24px;
  text-align: left;
  border-top: 2px solid var(--navy);
  padding-top: 32px;
  margin-top: 32px;
}
.certificate-info dt {
  font-weight: 600;
  color: var(--navy);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.certificate-info dd {
  color: var(--text-mid);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.certificate-info dl > *:nth-last-child(-n+2) { border-bottom: none; }
.certificate-info h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
}
.certificate-info .seal {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 600;
  margin-top: 8px;
}

/* =========================================
   SERVICES PAGE
   ========================================= */
.service-detail {
  background: #fff;
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:nth-child(even) { background: var(--bg-soft); }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.service-detail-head .num {
  font-family: var(--font-en);
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  opacity: 0.15;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.service-detail-head h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.service-detail-head .en {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.service-detail-head p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 15.5px;
}
.service-detail-list {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 32px;
  border: 1px solid var(--border);
}
.service-detail:nth-child(even) .service-detail-list { background: #fff; }
.service-detail-list > div {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
}
.service-detail-list > div:last-child { border-bottom: none; }
.service-detail-list .marker {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--blue);
  font-size: 15px;
}
.service-detail-list h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-detail-list p {
  color: var(--text-mid);
  font-size: 14.5px;
  line-height: 1.7;
}

/* =========================================
   TEAM PAGE
   ========================================= */
.org-section { background: #fff; }
.org-chart {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.org-box {
  display: inline-block;
  padding: 20px 36px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
}
.org-top {
  background: var(--navy);
  color: #fff;
  font-size: 18px;
  padding: 24px 48px;
}
.org-line { width: 2px; height: 40px; background: var(--border); margin: 0 auto; }
.org-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.org-row .org-box {
  background: var(--bg-soft);
  color: var(--navy);
  border: 2px solid var(--navy);
  min-width: 180px;
}
.org-sub-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.org-sub-row .org-box {
  background: #fff;
  color: var(--text-mid);
  border: 1px solid var(--border);
  font-size: 14px;
  padding: 14px 20px;
}

.team-section { background: var(--bg-soft); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  height: 240px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 40px;
  font-weight: 700;
  font-family: var(--font-en);
}
.team-info {
  padding: 28px;
}
.team-info .role {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
}
.team-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.team-info .name-en {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}
.team-info ul {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.team-info li {
  font-size: 13.5px;
  color: var(--text-mid);
  padding: 4px 0 4px 14px;
  position: relative;
  line-height: 1.6;
}
.team-info li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 1px;
  background: var(--blue);
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section {
  background: #fff;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  overflow: hidden;
}
.contact-card.head { border-color: var(--navy); border-width: 2px; }

.contact-card-head {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 0;
}
.contact-info-pane {
  padding: 48px;
  background: var(--bg-soft);
}
.contact-card.head .contact-info-pane {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.contact-info-pane .badge {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.contact-card:not(.head) .contact-info-pane .badge {
  background: var(--navy);
  color: #fff;
}
.contact-info-pane h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}
.contact-card.head .contact-info-pane h3 { color: #fff; }
.contact-info-pane dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px 16px;
  font-size: 15px;
}
.contact-info-pane dt {
  font-weight: 600;
  color: var(--navy);
}
.contact-card.head .contact-info-pane dt { color: rgba(255,255,255,0.85); }
.contact-info-pane dd { color: var(--text-mid); line-height: 1.6; }
.contact-card.head .contact-info-pane dd { color: rgba(255,255,255,0.95); }
.contact-info-pane a:hover { color: var(--blue); }
.contact-card.head .contact-info-pane a:hover { color: var(--blue-light); }

.map-pane {
  min-height: 360px;
  background: var(--bg-grey);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-pane iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: none;
  display: block;
}

.inquiry {
  background: var(--bg-soft);
}
.inquiry-form {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 56px 48px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group label .req { color: #E64545; }
.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,168,229,0.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 20px;
}
.form-checkbox input { margin-top: 3px; }
.form-submit { text-align: center; margin-top: 8px; }
.form-submit .btn {
  padding: 18px 48px;
  font-size: 16px;
}

/* =========================================
   REVEAL ANIMATION
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .intro-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .service-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; gap: 48px; }
  .value-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card-head { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .header-inner { height: 68px; }
  .logo img { height: 36px; }
  .menu-toggle { display: block; }
  .gnb {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .gnb.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .gnb ul { flex-direction: column; gap: 0; padding: 16px; }
  .gnb a { padding: 16px 12px; border-bottom: 1px solid var(--border); }
  .gnb a::after { display: none; }

  .hero { min-height: 560px; height: auto; padding: 80px 0; }
  .hero-eyebrow { padding-left: 0; }
  .hero-eyebrow::before { display: none; }
  .hero-cta .btn { padding: 14px 24px; font-size: 14px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .intro-stats { grid-template-columns: 1fr; }
  .stat { padding: 28px 24px; }
  .stat-num { font-size: 44px; }

  .why-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px 28px; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .team-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .inquiry-form { padding: 36px 24px; }

  .history-item { grid-template-columns: 1fr; gap: 8px; }
  .history-list { padding-left: 32px; }

  .certificate-info { padding: 36px 24px; }
  .certificate-info dl { grid-template-columns: 1fr; gap: 4px 0; }
  .certificate-info dt { padding-bottom: 4px; border-bottom: none; }
  .certificate-info dd { padding-top: 0; padding-bottom: 16px; }

  .contact-info-pane { padding: 32px 24px; }
}
