@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --ink: #1f1f1f;
  --paper: #f5f5f5;
  --card: #ffffff;
  --line: #e3e3e3;
  --muted: #6d6d6d;
  --glass: rgba(255, 255, 255, 0.66);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 12px 28px rgba(0, 0, 0, 0.09);
  --wrap: 1240px;
  --head: 112px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: inherit; }

/* ---------- 顶部两行 ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 245, 245, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.slogan {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav-dock {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px 8px;
}

.nav-btn {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.group-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.nav-list a:hover,
.group-btn:hover,
.nav-group.is-open > .group-btn,
.nav-group:focus-within > .group-btn {
  background: var(--card);
  border-color: var(--line);
}

.nav-group { position: relative; }

.chev {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav-group.is-open > .group-btn .chev { transform: rotate(225deg) translateY(-2px); }

.drop {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  display: none;
  flex-direction: column;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}

.nav-group:hover .drop,
.nav-group:focus-within .drop,
.nav-group.is-open .drop { display: flex; }

.drop a { width: 100%; padding: 0 14px; }

/* ---------- 主体 ---------- */
main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.sheet { display: block; }

section > article {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--head) + 16px);
}

section > article:first-child { border-top: 0; }

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 44px 0 56px;
  min-height: calc(100vh - var(--head));
  min-height: calc(100svh - var(--head));
}

.hero-copy { min-width: 0; }

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  word-break: keep-all;
}

.hero-line {
  margin: 22px 0 0;
  max-width: 34ch;
  color: #4d4d4d;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: 62vh;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #ffffff, #eaeaea);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-visual.is-in { opacity: 1; transform: none; }

.hero-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-visual img.on { opacity: 1; }

/* 导航瓷砖 */
.tiles { padding: 56px 0; }

section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  max-width: 62ch;
  color: #5c5c5c;
  font-size: 1.05rem;
  line-height: 1.75;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 104px;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tile { min-width: 0; }

.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(2) { grid-column: span 2; }
.tile:nth-child(5) { grid-column: span 2; }
.tile:nth-child(6) { grid-row: span 2; }

.tile a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #e7e7e7;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, opacity 0.45s ease;
}

.tile a.is-in { opacity: 1; transform: none; }
.tile a:hover,
.tile a:focus-visible {
  transform: scale(1.02);
  background: #ffffff;
  box-shadow: var(--shadow-lift);
}

.tile-no {
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #9a9a9a;
}

.tile-txt {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* 正文 */
section p,
section li {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #333333;
}

section p { margin: 0 0 16px; max-width: 68ch; }

section h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 700;
}

section ul,
section ol {
  margin: 0 0 18px;
  padding-left: 1.3em;
}

section li { margin: 0 0 6px; }

section a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

section img {
  height: auto;
  display: block;
  margin: 0 0 18px;
  border: 1px solid var(--line);
}

section blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ink);
  color: #4d4d4d;
}

section blockquote p { margin-bottom: 0; }

section table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 1rem;
}

section th,
section td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

section th { background: #ffffff; font-weight: 600; }

section hr {
  margin: 32px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- 页脚 ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--wrap);
  margin: 64px auto 0;
  padding: 18px 24px 44px;
  border-top: 1px solid var(--line);
}

.foot-copy p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.foot-nav { display: flex; }

.to-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.to-top:hover { box-shadow: var(--shadow); }

/* ---------- 断点 ---------- */
@media (max-width: 900px) {
  :root { --head: 104px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: 0;
    padding: 30px 0 44px;
  }

  .hero-visual {
    aspect-ratio: 16 / 11;
    max-height: none;
  }

  .tile-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
  }

  .tile:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .tile:nth-child(1) { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-btn { display: inline-flex; margin-bottom: 8px; }

  .nav-dock .nav-list { display: none; }

  .nav-dock.is-open .nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-dock.is-open .nav-list > li > a,
  .nav-dock.is-open .group-btn {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
  }

  .drop {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    background: #fafafa;
    margin: 4px 0 8px 6px;
  }

  .nav-group:hover .drop { display: none; }
  .nav-group.is-open .drop { display: flex; }
}

@media (max-width: 620px) {
  .masthead-top,
  main,
  .foot { padding-left: 18px; padding-right: 18px; }

  main { padding-left: 0; padding-right: 0; }
  main > section { padding: 0 18px; }

  section > article { padding: 44px 0; }

  .tile-grid { grid-auto-rows: 92px; gap: 10px; }

  .slogan { font-size: 0.95rem; letter-spacing: 0.04em; }
}

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

  .hero-visual,
  .tile a {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-visual img { transition: none; }
  .tile a:hover { transform: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
