:root {
  --bg-dark: #1d1d1d;
  --bg-page: #f6f6f6;
  --text-main: #222;
  --text-muted: #7f7f86;
  --line: #e5e5e8;
  --notice: #f2a336;
  --update: #a5d329;
  --community: #39a5df;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-width: 1080px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
}

body {
  overflow-x: auto;
}

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

button {
  font: inherit;
}

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

.container {
  width: min(1080px, calc(100vw - 32px));
  margin: 0 auto;
}

.top-nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  color: #fff;
}

.top-nav__surface {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.66) 54%, rgba(0, 0, 0, 0.08) 100%);
}

.top-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
  padding-top: 18px;
}

.nav-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 26px;
}

.top-link {
  min-width: 92px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.42);
  transition: color 0.2s ease;
}

.top-link:hover,
.top-link:focus-visible {
  color: #ffcf74;
  outline: none;
}

.top-link strong,
.top-link span {
  display: block;
}

.top-link strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-link span {
  margin-top: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand img {
  width: 150px;
  height: 80px;
  object-fit: contain;
}

.lang-switch {
  position: relative;
  margin-top: -3px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 189, 91, 0.25);
  border-radius: 999px;
  background: rgba(25, 20, 20, 0.82);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  cursor: pointer;
}

.lang-pill img {
  width: 13px;
  height: 13px;
}

.lang-pill strong {
  font-size: 12px;
  color: #ffd279;
}

.lang-pill--admin {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
  padding-inline: 22px;
  text-decoration: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 132px;
  padding: 8px;
  border: 1px solid rgba(255, 184, 82, 0.2);
  border-radius: 14px;
  background: rgba(13, 12, 16, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

.lang-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.lang-menu a:hover,
.lang-menu a:focus-visible,
.lang-menu a.is-current {
  background: rgba(255, 255, 255, 0.08);
  color: #ffcc71;
  outline: none;
}

.top-nav__mega {
  max-height: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: max-height 0.26s ease, opacity 0.26s ease;
}

.top-nav.is-open .top-nav__mega {
  max-height: 240px;
  opacity: 1;
}

.top-nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 20px;
  padding: 18px 0 30px;
}

.mega-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-height: 90px;
}

.mega-column a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  transition: color 0.2s ease;
}

.mega-column a:hover,
.mega-column a:focus-visible {
  color: #ffcf74;
  outline: none;
}

.mega-column--empty {
  pointer-events: none;
}

.hero {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: #130d18;
}

.hero__slides,
.hero__slide,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__slide {
  opacity: 0;
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  transition: opacity 0.45s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__veil {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(8, 7, 14, 0.36) 0%, rgba(8, 7, 14, 0.12) 38%, rgba(8, 7, 14, 0.22) 100%);
}

.hero__content {
  position: relative;
  min-height: 585px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__panel {
  width: 520px;
  margin: 98px 20px 0 0;
  padding: 100px 44px 96px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 244, 249, 0.09));
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(17, 11, 25, 0.28);
  color: #fff;
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__panel h1 {
  margin: 0;
  font-size: 62px;
  line-height: 1.12;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.hero__panel h1 span {
  color: #f0a6d5;
}

.hero__lead {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.hero__dots {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero__dots button {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 31, 40, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero__dots button.is-active {
  background: #f3a11f;
  transform: scale(1.08);
}

.divider {
  width: 100%;
}

.divider--accent {
  height: 3px;
  background: linear-gradient(90deg, #fff0a5 0%, #ff8c3f 100%);
}

.divider--dark {
  height: 32px;
  background: var(--bg-dark);
}

.main-content {
  padding: 16px 0 36px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.image-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 17, 20, 0.08);
}

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

.board-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 183px;
  gap: 26px;
  margin-top: 30px;
  align-items: start;
}

.board-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.board-card {
  background: #fff;
}

.board-card header {
  display: flex;
  align-items: center;
  min-height: 28px;
}

.board-card h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.board-card h2 span {
  margin-left: 4px;
}

.board-card--notice h2 span,
.board-card--notice .board-more {
  color: var(--notice);
}

.board-card--update h2 span,
.board-card--update .board-more {
  color: var(--update);
}

.board-card--community h2 span,
.board-card--community .board-more {
  color: var(--community);
}

.board-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.board-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
}

.board-card li a {
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-card li time {
  color: var(--text-muted);
  font-size: 12px;
}

.board-more {
  display: inline-block;
  margin-top: 12px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.service-rail {
  display: grid;
  gap: 22px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80px;
  background: var(--bg-dark);
}

.site-footer img {
  width: 240px;
  height: auto;
}

@media (max-width: 1180px) {
  html,
  body {
    min-width: 0;
  }

  .container {
    width: calc(100vw - 24px);
  }

  .top-nav {
    position: relative;
  }

  .top-nav__surface {
    background: #111015;
  }

  .top-nav__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
    padding-bottom: 18px;
  }

  .nav-group {
    width: 100%;
    padding-top: 0;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .top-link {
    min-width: 100px;
  }

  .top-nav__mega {
    max-height: none;
    opacity: 1;
    overflow: visible;
    background: rgba(0, 0, 0, 0.94);
  }

  .top-nav__mega-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    padding: 10px 0 24px;
  }

  .mega-column--empty {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .hero__content {
    min-height: 520px;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .hero__panel {
    width: min(100%, 700px);
    margin: 0;
    padding: 42px 24px;
  }

  .hero__panel h1 {
    font-size: clamp(36px, 6vw, 54px);
  }

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

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .board-area {
    grid-template-columns: 1fr;
  }

  .board-list {
    grid-template-columns: 1fr;
  }

  .service-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-rail .image-card {
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .guide-grid,
  .service-rail {
    grid-template-columns: 1fr;
  }

  .top-nav__mega-grid {
    grid-template-columns: 1fr;
  }

  .hero__dots {
    right: 12px;
    bottom: 12px;
  }
}
