/* =========================
   Base / Reset
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  word-break: keep-all;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

:root {
  --text-color: #222;
  --primary-color: #c99a1a;
  --bg-color: #F2F2F2;
}

html,
body {
  height: 100%;
  font-size: 16px;
  color: #333;
  background: #fff;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  border: none;
  outline: none;
  background: none;
  font: inherit;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

/* =========================
   Common Utilities
========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.primary-color {
  color: var(--primary-color);
}

.marginbottom30 {
  margin-bottom: 30px;
}

/* =========================
   Header / Brand
========================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

.header-top {
  max-width: 1100px;
  margin: 24px auto 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-mark {
  width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.nav-toggle {
  position: absolute;
  right: 12px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 40px;
  height: 40px;
  background: transparent;
  cursor: pointer;
  display: none;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: var(--text-color);
  display: block;
}

/* =========================
   Global Navigation (GNB)
========================= */
.main-nav {
  border-top: 1px solid #e5e5e5;
}

.main-nav>ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: center;
  height: 64px;
}

.main-nav a {
  display: inline-block;
  padding: 8px 2px;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  height: 3px;
  width: 0;
  background: var(--primary-color);
  transition: width .25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.main-nav a.active {
  color: var(--primary-color);
}

/* Dropdown (desktop) */
.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid var(--text-color);
  vertical-align: middle;
}

.main-nav li.has-sub {
  position: relative;
  text-align: center;
}

.main-nav li.has-sub>.sub-list {
  display: none;
  padding: 0;
  margin: 0;
}

/* =========================
   Region Sub-Nav (desktop)
========================= */
.sub-nav {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.sub-nav ul {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  height: 48px;
}

.sub-nav a {
  display: inline-block;
  padding: 6px 2px;
  color: #444;
  font-weight: 600;
  position: relative;
}

.sub-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 2px;
  width: 0;
  background: var(--primary-color);
  transition: width .2s ease;
}

.sub-nav a:hover::after,
.sub-nav a.active::after {
  width: 100%;
}

.sub-nav a.active {
  color: var(--primary-color);
}

/* =========================
   Content Blocks
========================= */
.inner {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.padding {
  padding: 100px 20px;
}

.big-t {
  font-size: 2rem;
  text-align: center;
  font-weight: bold;
  margin-bottom: 50px;
}

.medium-t {
  font-size: 1.2rem;
  text-align: center;
}

.small-t {
  font-size: 1.2rem;
  text-align: center;
  font-weight: bold;
}

.tiny-t {
  margin-top: 5px;
  text-align: center;
}

.indexs01-box,
.indexs02-box,
.indexs04-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.indexs01-box {
  margin-bottom: 50px;
}

.index02-section,
.course02-section,
.location02-section {
  border-top: 1px solid var(--bg-color);
  border-bottom: 1px solid var(--bg-color);
}

.index04-section,
.index06-section,
.location03-section,
.course03-section {
  background-color: var(--bg-color);
}

.index03-img,
.course01-img,
.location03-img {
  margin: 50px 0;
}

.index05-section .big-t,
.index06-section .big-t {
  margin-bottom: 0;
}

.index05-section .medium-t,
.course03-img {
  margin-bottom: 50px;
}

.index05-section .medium-t,
.index06-section .medium-t {
  margin-top: 10px;
}

.index06-section .medium-t {
  margin-bottom: 50px;
}

.indexs04-box {
  justify-content: center;
  align-items: center;
}

.indexs04-box .small-t,
.indexs04-box .tiny-t {
  text-align: left;
}

.infos-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.locations01-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.locations01-box .medium-t {
  margin-top: 30px;
  text-align: left;
}

.keywords {
  font-size: 1.5rem;
  color: var(--text-color);
  font-weight: bold;
}

.red {
  color: red;
}

/* =========================
   Footer
========================= */
.site-main {
  max-width: 1920px;
  margin: 0 auto;
}

.site-footer {
  text-align: center;
  color: #777;
  padding: 24px 0;
  border-top: 1px solid #eee;
  font-size: .9rem;
}

.site-footer .footer-logo {
  margin-bottom: 20px;
}

.site-footer .footer-logo img {
  width: 150px;
}

/* =========================
   Overlay (mobile menu)
========================= */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 1000;
}

.nav-close {
  position: fixed;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 44px;
  text-align: center;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
  border: 1px solid #eee;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  display: none;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

html.menu-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

html.menu-open .nav-close {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   Mobile (≤980px)
========================= */
@media (max-width:980px) {
  .locations01-box{
    text-align: center;
    grid-template-columns: 1fr;
  }

  .locations01-box .medium-t{
    text-align: center;
  }

  .indexs02-box {
    gap: 10px;
  }

  .infos-box {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .indexs04-box {
    grid-template-columns: 1fr;
  }

  .padding {
    padding: 60px 20px;
  }

  .big-t {
    font-size: 1.5rem;
  }

  .br_pc {
    display: none;
  }

  .header-top {
    margin: 16px auto 8px;
  }

  .brand-mark {
    width: 120px;
  }

  .nav-toggle {
    display: block;
  }

  /* Mobile overlay nav */
  .main-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    transform: translateY(-100%);
    transition: transform .25s ease;
    padding-top: 96px;
    height: 100vh;
    overflow-y: auto;
    border-top: 0;
    z-index: 1001;
  }

  html.menu-open .main-nav {
    transform: translateY(0);
  }

  .main-nav>ul {
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  /* Show sub list stacked on mobile */
  .main-nav li.has-sub>.sub-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px dashed #eee;
  }

  .main-nav li.has-sub>.sub-list a {
    padding: 8px 4px;
    font-weight: 500;
    opacity: .95;
  }

  .main-nav li.has-sub>.sub-list a.active {
    color: var(--primary-color);
  }

  /* Hide desktop-only region sub-nav on mobile */
  .sub-nav {
    display: none;
  }

  /* show close button on mobile */
  .nav-close {
    display: block;
  }
}

/* =========================
   Desktop (≥981px)
========================= */
@media (min-width:981px) {
  .main-nav a::after {
    bottom: -2px;
    height: 3px;
  }

  .main-nav {
    position: relative;
    z-index: 1000;
  }

  .main-nav li.has-sub>.sub-list {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    min-width: 160px;
    z-index: 1200;
    white-space: nowrap;
  }

  .main-nav li.has-sub:hover>.sub-list,
  .main-nav li.has-sub:focus-within>.sub-list {
    display: block;
  }

  .main-nav li.has-sub>.sub-list>li>a {
    display: block;
    padding: 10px 16px;
    font-weight: 500;
    color: #333;
  }

  .main-nav li.has-sub>.sub-list>li>a:hover {
    background: #f8f8f8;
    color: var(--primary-color);
  }

  /* Hover underline keep */
  .main-nav li.has-sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
  }

  .main-nav li.has-sub:hover>a::after {
    width: 100%;
  }
}