/* 꼼지락 어린이 미술 — 원색 포인트, 놀이 같은 배치 (P5 작품 갤러리) */
:root {
  --bg: #fffaf0;
  --ink: #23201c;
  --mute: #6b645a;
  --r: #e5432d;
  --y: #f6c12a;
  --b: #2a5bc8;
  --g: #3f9b5a;
  --line: #23201c;
  --head: 'Do Hyeon', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.75 'Gowun Dodum', 'Apple SD Gothic Neo', sans-serif;
  word-break: keep-all; overflow-wrap: break-word; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; margin: 0; line-height: 1.15; }
figure { margin: 0; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px;
  font: 400 18px/1 var(--head); text-decoration: none; color: var(--ink);
  border: 2px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 3px 3px 0 var(--line); transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn--r { background: var(--r); color: #fff; }
.btn--y { background: var(--y); }
.btn--line { background: #fff; }

/* 헤더 */
.top { display: flex; align-items: center; gap: 28px; max-width: 1200px; margin: 0 auto; padding: 18px 32px; }
.logo { display: flex; align-items: center; gap: 4px; font: 400 24px/1 var(--head); text-decoration: none; }
.logo .d { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.logo .d:last-of-type { margin-right: 8px; }
.d--r { background: var(--r); } .d--y { background: var(--y); } .d--b { background: var(--b); }
.nav { display: flex; gap: 22px; margin-left: auto; font: 400 18px/1 var(--head); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--r); }
.top__call { font: 400 18px/1 var(--head); text-decoration: none; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--y); }

/* 히어로 */
.hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 40px 32px 56px; }
.tag { display: inline-block; margin: 0 0 18px; padding: 4px 12px; background: var(--b); color: #fff; border-radius: 99px; font-size: 14px; }
.hero h1 { font-size: 62px; letter-spacing: -0.01em; }
.hero mark { background: linear-gradient(transparent 58%, var(--y) 58%); color: inherit; padding: 0 2px; }
.hero__lead { margin: 22px 0 28px; font-size: 17px; color: var(--mute); max-width: 27em; }
.hero__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__art { position: relative; padding: 24px 24px 40px 0; }
.hero__img { position: relative; z-index: 1; transform: rotate(1.6deg); border: 2px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 8px 8px 0 var(--line); }
.hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shape { position: absolute; z-index: 0; }
.shape--sun { width: 120px; height: 120px; border-radius: 50%; background: var(--y); left: -36px; top: -6px; }
.shape--sq { width: 96px; height: 96px; background: var(--b); right: -10px; bottom: 6px; transform: rotate(12deg); border-radius: 10px; }
.hero__note {
  position: absolute; z-index: 2; left: -22px; bottom: 6px; margin: 0; padding: 10px 14px;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; transform: rotate(-4deg);
  font: 400 17px/1.3 var(--head); color: var(--r);
}

/* 정보 띠 */
.strip {
  list-style: none; margin: 0; padding: 16px 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 36px;
  background: var(--ink); color: #fff; font-size: 15px;
}
.strip b { font: 400 15px/1 var(--head); color: var(--y); margin-right: 8px; letter-spacing: .02em; }
.strip a { color: #fff; }

/* 작품 벽 */
.works { max-width: 1200px; margin: 0 auto; padding: 96px 32px 72px; }
.works__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.works h2 { font-size: 46px; }
.works__head p { margin: 0; color: var(--mute); max-width: 26em; }
.works__head b { color: var(--ink); font-weight: 400; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 28px 24px; align-items: start; }
.pin { position: relative; background: #fff; padding: 12px 12px 14px; border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--line); }
.pin::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 78px; height: 22px; margin-left: -39px;
  background: rgba(246, 193, 42, .85); transform: rotate(-3deg);
}
.pin img { width: 100%; object-fit: cover; }
.pin figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); line-height: 1.5; }
.pin figcaption b { display: block; font: 400 19px/1.3 var(--head); color: var(--ink); }
.pin--1 { grid-column: 1 / 5; transform: rotate(-2deg); }
.pin--1 img { aspect-ratio: 1; }
.pin--2 { grid-column: 5 / 9; margin-top: 48px; transform: rotate(1.5deg); }
.pin--2 img { aspect-ratio: 1; }
.pin--2::before { background: rgba(229, 67, 45, .75); }
.pin--3 { grid-column: 9 / 13; margin-top: 8px; transform: rotate(-1deg); }
.pin--3 img { aspect-ratio: 4 / 5; }
.pin--3::before { background: rgba(42, 91, 200, .7); }
.pin--4 { grid-column: 3 / 11; margin-top: 12px; transform: rotate(.6deg); }
.pin--4 img { aspect-ratio: 21 / 8; object-position: 60% 18%; }
.works__more { margin: 40px 0 0; text-align: center; color: var(--mute); }

/* 반 안내 */
.classes { max-width: 1200px; margin: 0 auto; padding: 40px 32px 96px; }
.classes h2 { font-size: 46px; }
.classes__sub { margin: 8px 0 32px; color: var(--mute); }
.cls { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; align-items: start; }
.cl { border: 2px solid var(--line); border-radius: 20px; padding: 26px 26px 22px; background: #fff; }
.cl--y { background: #fff3c9; }
.cl--r { background: #ffe1da; margin-top: 28px; }
.cl--b { background: #dfe8fb; }
.cl__age { margin: 0 0 4px; font: 400 16px/1 var(--head); }
.cl--y .cl__age { color: #a77900; } .cl--r .cl__age { color: var(--r); } .cl--b .cl__age { color: var(--b); }
.cl h3 { font-size: 34px; margin-bottom: 12px; }
.cl > p:not(.cl__age) { margin: 0 0 18px; font-size: 15px; }
.cl dl { margin: 0; display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; padding-top: 14px; border-top: 2px dashed #23201c55; font-size: 15px; }
.cl dt { color: var(--mute); font-size: 14px; }
.cl dd { margin: 0; }
.cl dd:last-of-type { font: 400 20px/1.3 var(--head); }
.classes__note { margin: 28px 0 0; color: var(--mute); font-size: 15px; }

/* 이번 학기 */
.term { background: var(--g); color: #fff; padding: 80px 32px; }
.term__text { max-width: 1136px; margin: 0 auto; display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 16px 48px; }
.term h2 { font-size: 44px; grid-row: span 2; }
.months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.months li { background: rgba(255,255,255,.12); border-radius: 14px; padding: 16px 16px 18px; font-size: 15px; line-height: 1.5; }
.months b { display: block; font: 400 26px/1.2 var(--head); margin-bottom: 6px; }
.months .done { opacity: .6; }
.months .now { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.months em { display: inline-block; margin-left: 4px; padding: 0 8px; background: var(--r); color: #fff; border-radius: 99px; font-style: normal; font-size: 12px; }
.term__notice { margin: 12px 0 0; font-size: 15px; background: rgba(0,0,0,.14); border-radius: 14px; padding: 14px 18px; }
.term__notice b { font: 400 16px/1 var(--head); color: var(--y); margin-right: 8px; }

/* 오시는 길 */
.visit { max-width: 1200px; margin: 0 auto; padding: 96px 32px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.visit__card { background: var(--y); border: 2px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 8px 8px 0 var(--line); }
.visit h2 { font-size: 38px; }
.visit__phone { margin: 18px 0 4px; }
.visit__phone a { font: 400 44px/1 var(--head); text-decoration: none; }
.visit__hint { margin: 0 0 22px; font-size: 15px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.visit__info { margin: 0; display: grid; grid-template-columns: 92px 1fr; }
.visit__info dt, .visit__info dd { padding: 14px 0; border-bottom: 2px dashed #23201c33; }
.visit__info dt { font: 400 17px/1.5 var(--head); color: var(--b); }
.visit__info dd { margin: 0; }
.copy { font: 400 14px/1 var(--head); padding: 5px 9px; margin-left: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; }

.foot { border-top: 2px solid var(--line); padding: 28px 32px 48px; text-align: center; font-size: 13px; color: var(--mute); }
.foot p { margin: 0 0 4px; }
.foot b { color: var(--ink); font-weight: 400; }
.foot span { white-space: nowrap; }

.mbar { display: none; }

@media (max-width: 960px) {
  .nav { display: none; }
  .top__call { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 52px; }
  .cls { grid-template-columns: 1fr; }
  .cl--r { margin-top: 0; }
  .term__text { grid-template-columns: 1fr; }
  .term h2 { grid-row: auto; }
  .visit { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { padding-bottom: 64px; }
  .top { padding: 14px 20px; }
  .logo { font-size: 20px; }
  .logo .d { width: 9px; height: 9px; }
  .top__call { display: none; }
  .hero { padding: 16px 20px 40px; gap: 28px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 16px; margin: 16px 0 22px; }
  .hero__btns .btn { flex: 1 1 100%; }
  .hero__art { padding: 16px 8px 34px 10px; }
  .shape--sun { width: 84px; height: 84px; left: -12px; top: 0; }
  .shape--sq { width: 64px; height: 64px; right: -6px; bottom: 10px; }
  .hero__note { left: 0; bottom: 0; font-size: 15px; }
  .hero__img { box-shadow: 5px 5px 0 var(--line); }
  .strip { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px; font-size: 14px; }
  .strip b { display: inline-block; width: 52px; }
  .works { padding: 64px 20px 48px; }
  .works h2, .classes h2 { font-size: 36px; }
  .works__head { margin-bottom: 32px; }
  .wall { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .pin { padding: 8px 8px 10px; box-shadow: 3px 3px 0 var(--line); }
  .pin::before { width: 54px; margin-left: -27px; height: 18px; top: -10px; }
  .pin--1, .pin--2, .pin--3, .pin--4 { grid-column: auto; margin-top: 0; }
  .pin--2 { margin-top: 24px; }
  .pin--3 { margin-top: -12px; }
  .pin--3 img { aspect-ratio: 1; }
  .pin--4 { margin-top: 14px; }
  .pin--4 img { aspect-ratio: 1; object-position: 72% 20%; }
  .pin figcaption { font-size: 12.5px; }
  .pin figcaption b { font-size: 16px; }
  .works__more { text-align: left; font-size: 15px; }
  .classes { padding: 24px 20px 64px; }
  .cl { padding: 22px 20px 18px; }
  .cl h3 { font-size: 30px; }
  .term { padding: 60px 20px; }
  .term h2 { font-size: 36px; }
  .months { grid-template-columns: 1fr 1fr; gap: 10px; }
  .visit { padding: 64px 20px; gap: 36px; }
  .visit__card { padding: 26px 22px; box-shadow: 5px 5px 0 var(--line); }
  .visit__phone a { font-size: 38px; }
  .visit__btns .btn { flex: 1 1 100%; }
  .visit__info { grid-template-columns: 78px 1fr; }
  .copy { margin: 6px 0 0; display: inline-block; }
  .foot { padding: 24px 20px 40px; text-align: left; }
  .mbar {
    display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 8px 10px; background: var(--bg); border-top: 2px solid var(--line);
  }
  .mbar a {
    display: flex; align-items: center; justify-content: center; height: 46px; text-decoration: none;
    font: 400 18px/1 var(--head); border: 2px solid var(--line); border-radius: 12px; background: #fff;
  }
  .mbar a:first-child { background: var(--r); color: #fff; }
  .mbar a:nth-child(2) { background: var(--y); }
}
