/*
  학부모용 메인. 미니홈피와 같은 말투로 그린다: 주아체 제목, 굵은 테두리와 비껴 놓은 그림자, 점무늬 바탕.
  맨 위 노란 면(처음 들어왔을 때만 크게) → 고르기 띠(늘 따라온다) → 미니홈피 → 분야 딱지 + 학원 목록 → 원장님 안내.
  글꼴 Jua: SIL OFL 1.1
*/
@font-face { font-family: "Jua"; src: url("../minihome/fonts/Jua-Regular.783758a968ec.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --ink: #2B2A3A; --sub: #5C5B6E; --line: #E4E2EC; --paper: #FBF8F1; --main: #2447C9; --sun: #FFD84D; --yellow: #FFD24A; --wall: #CDEFE8;
  --cute: "Jua", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--main); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--main); outline-offset: 2px; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
/* 넓은 모니터에서는 화면을 넓게 쓴다. 아주 넓은 화면에서만 가운데로 모은다. */
.wrap { max-width: 1760px; margin: 0 auto; padding: 0 32px; }

.top { background: var(--sun); }
.top-in { display: flex; align-items: center; gap: 8px 20px; padding-top: 10px; padding-bottom: 4px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--cute); font-size: 28px; }
.logo-mark { width: 38px; height: 38px; border: 3px solid var(--ink); border-radius: 12px; background: var(--main); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 3px 0 var(--ink); }
.logo-mark svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.slogan { font-size: 15px; font-weight: 500; }
.top-owner { margin-left: auto; padding: 6px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.top-owner:hover { background: var(--ink); color: #fff; }

/* ----- 맨 위 노란 면: 얇게. 학부모가 들어오자마자 학원 목록이 보여야 한다 ----- */
.hero { background-color: var(--sun); background-image: radial-gradient(rgba(255, 255, 255, 0.55) 3px, transparent 3px); background-size: 34px 34px; }
.hero-in { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; min-height: 46px; padding-top: 2px; padding-bottom: 50px; }
.hero-big { font-family: var(--cute); font-size: clamp(24px, 1.9vw, 32px); line-height: 1.25; }
.hero-sub { font-size: 15px; font-weight: 500; }

/* ----- 고르기 띠: 노란 면에 걸쳐 놓고, 내려가도 위에 붙어 따라온다 ----- */
.pickwrap { position: sticky; top: 8px; z-index: 5; margin-top: -40px; }
.pick { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 8px 14px 10px; box-shadow: 6px 6px 0 rgba(43, 42, 58, 0.2); }
.pick form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr) auto; gap: 6px 10px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field label { font-size: 12px; font-weight: 700; }
select, input[type="search"] { width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
select:disabled { background: #F2F1F6; border-color: #C9C7D6; color: var(--sub); }
.pick button { height: 42px; padding: 0 28px; font-family: var(--cute); font-size: 18px; color: #fff; background: var(--main); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.pick button:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.why, .reset { grid-column: auto; font-size: 13px; color: var(--sub); }
.pick form > .why { grid-column: 1 / span 3; }
.pick form > .reset { grid-column: span 2; }

/* ----- 미니홈피: 제목을 왼쪽에 두고 낮은 카드를 옆으로 늘어놓는다 ----- */
.feat { padding: 16px 0 0; }
.feat .wrap { display: flex; align-items: center; gap: 18px; }
.feat h2 { flex: 0 0 auto; padding: 3px 14px; transform: rotate(-2deg); background: #FFB7C5; font-family: var(--cute); font-weight: 400; font-size: 18px; line-height: 1.3; box-shadow: 0 2px 0 rgba(43, 42, 58, 0.15); }
.feat-list { flex: 1 1 0; min-width: 0; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 8px 10px 2px; scrollbar-width: none; }
.feat-list::-webkit-scrollbar { display: none; }   /* 넘기는 단추(넓은 화면)와 손가락(휴대폰)으로 넘긴다 */
.feat-list li { flex: 0 0 min(340px, 86%); scroll-snap-align: start; }
/* 미니홈피가 한 줄에 다 안 들어오면 양옆에 넘기는 단추가 나온다 (home.js) */
.feat-nav { flex: 0 0 auto; width: 38px; height: 38px; padding: 0 0 3px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.feat-nav:hover { background: #FFF3B8; }
.feat-nav[hidden] { display: none; }
.feat-list a { height: 100%; display: flex; background: #fff; border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 4px 4px 0 rgba(43, 42, 58, 0.2); transition: transform 0.12s, box-shadow 0.12s; }
.feat-list a:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 rgba(43, 42, 58, 0.2); }
.feat-list img, .noimg { flex: 0 0 96px; width: 96px; height: 84px; object-fit: cover; background: #FFC2B4; border-right: 3px solid var(--ink); }
.feat-text { flex: 1 1 0; min-width: 0; padding: 7px 12px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; }
.badge { background: var(--yellow); font-weight: 700; font-size: 11px; line-height: 1.5; padding: 0 8px; border-radius: 999px; }
.feat-text strong { max-width: 100%; font-family: var(--cute); font-weight: 400; font-size: 18px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.where { font-size: 13px; color: var(--sub); }
.say { max-width: 100%; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- 분야 딱지 + 목록 ----- */
.body { padding-top: 14px; padding-bottom: 56px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 34px; padding: 3px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.chips a:hover { background: #FFF3B8; }
.chips a[aria-current] { background: var(--ink); color: #fff; }
.list-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 4px; }
.list-head h1 { font-family: var(--cute); font-weight: 400; font-size: 22px; }
.list-head h1 span { font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--sub); font-size: 16px; margin-left: 6px; }
.list-head p { font-size: 13px; color: var(--sub); }
/* 한 쪽에 60곳 (core.listing.PER_PAGE). 2·3·4·5·6 칸 어느 것으로 놓아도 마지막 줄이 비지 않는다. */
.rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1320px) { .rows { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1560px) { .rows { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 2100px) { .rows { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1120px) { .rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rows li { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 0 rgba(43, 42, 58, 0.06); }
.rows li:not(.has) { padding: 12px 16px; display: flex; flex-direction: column; }
.rows .n { font-weight: 700; font-size: 16px; }
.rows .w { font-size: 14px; color: var(--sub); }
/* 미니홈피가 있는 학원: 다른 학원과 같은 크기의 칸에 테두리와 단추만 더한다 */
.rows li.has { border: 2px solid var(--ink); background: #FFF9E0; box-shadow: 3px 3px 0 rgba(43, 42, 58, 0.16); }
.rows li.has a { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 11px 12px 11px 15px; text-decoration: none; color: var(--ink); }
.rows li.has .n, .rows li.has .w { grid-column: 1; }
.rows li.has:hover { background: #FFF3B8; }
.go { grid-column: 2; grid-row: 1 / span 2; background: var(--main); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border: 2px solid var(--ink); border-radius: 999px; white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 14px; }
.pager a, .pager span:not(.now) { min-width: 84px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.pager a:hover { background: #FFF3B8; }
.pager span:not(.now) { color: #B4B2C2; border-color: var(--line); }
.now { font-size: 14px; color: var(--sub); }
.empty { background: #fff; border: 2px dashed var(--ink); border-radius: 14px; padding: 36px 16px; text-align: center; color: var(--sub); }

/* ----- 원장님 안내 ----- */
.owner { background: var(--main); color: #fff; scroll-margin-top: 90px; }
.owner-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 30px; padding-bottom: 32px; }
.owner h2 { font-family: var(--cute); font-weight: 400; font-size: 28px; }
.owner p { margin-top: 4px; max-width: 46em; font-size: 16px; }
.owner-go { padding: 10px 26px; border: 2px solid var(--ink); border-radius: 999px; background: var(--sun); color: var(--ink); font-family: var(--cute); font-size: 19px; text-decoration: none; box-shadow: 0 4px 0 var(--ink); }
.owner-go:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.foot { background: var(--ink); color: #C7C6D4; }
.foot-in { padding-top: 16px; padding-bottom: 18px; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { .feat-list a, .pick button { transition: none; } }

/* 좁은 PC 창: 고르기를 두 줄로 */
@media (max-width: 1120px) {
  .pick form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick form > .field:nth-of-type(5) { grid-column: 1 / span 3; }
  .pick form > .why { grid-column: 1 / span 2; }
}
/* 휴대폰: 노란 면은 글만, 고르기는 화면 폭에 꽉 차게 붙어서 따라온다 */
@media (max-width: 820px) {
  .wrap { padding: 0 12px; }
  .top-in { padding-top: 10px; }
  .logo { font-size: 24px; }
  .logo-mark { width: 34px; height: 34px; }
  .slogan { display: none; }
  .hero-in { min-height: 8px; padding-top: 0; padding-bottom: 8px; }
  .hero-big { font-size: 22px; }
  .hero-sub { display: none; }
  .pickwrap { top: 0; margin-top: 0; padding: 0; }
  .pick { border-width: 0 0 3px; border-radius: 0; padding: 10px 12px; box-shadow: 0 4px 10px rgba(43, 42, 58, 0.1); }
  .pick form { display: flex; flex-wrap: wrap; gap: 8px; }
  .field { flex: 1 1 calc(33% - 6px); }
  .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pick form > .field:nth-of-type(5) { flex: 1 1 40%; }
  select, input[type="search"] { height: 44px; padding: 0 8px; font-size: 15px; }
  .pick button { flex: 0 0 76px; height: 44px; padding: 0; }
  .why { flex: 1 1 auto; }
  .reset { flex: 0 0 auto; margin-left: auto; }
  .feat { padding-top: 12px; }
  .feat .wrap { display: block; }
  .feat-nav { display: none; }   /* 휴대폰에서는 손가락으로 민다 */
  .feat h2 { display: inline-block; margin: 0 0 6px; font-size: 16px; }
  .feat h2 br { display: none; }
  .body { padding-top: 14px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { white-space: nowrap; min-height: 36px; font-size: 14px; padding: 4px 14px; }
  .list-head h1 { font-size: 21px; }
  .rows { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .owner h2 { font-size: 24px; }
}

/* ----- 미니홈피 줄의 빈자리: 실제 학원 카드와 헷갈리지 않게 점선과 옅은 색으로 ----- */
.feat-list li.slot a { background: none; border-style: dashed; border-color: #A9A7BA; box-shadow: none; color: var(--sub); }
.feat-list li.slot a:hover { transform: none; box-shadow: none; background: #FFF3B8; border-color: var(--ink); color: var(--ink); }
.slot-mark { flex: 0 0 96px; height: 84px; display: flex; align-items: center; justify-content: center; border-right: 3px dashed #A9A7BA; font-family: var(--cute); font-size: 40px; color: #A9A7BA; }
.feat-list li.slot strong { font-size: 17px; }

/* ----- 미니홈피 신청 (acapick.com/join/) ----- */
.join-hero { padding-bottom: 26px; }
.join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 28px 48px; align-items: start; max-width: 1280px; padding-top: 28px; padding-bottom: 64px; }
.join h2 { font-family: var(--cute); font-weight: 400; font-size: 24px; margin-bottom: 12px; }
.join-why ul { display: flex; flex-direction: column; gap: 10px; }
.join-why li { padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; color: var(--sub); }
.join-why li strong { display: block; color: var(--ink); font-size: 17px; }
.join-free { margin-top: 14px; display: inline-block; padding: 3px 14px; transform: rotate(-1deg); background: #A6E4D8; font-family: var(--cute); font-size: 18px; box-shadow: 0 2px 0 rgba(43, 42, 58, 0.15); }
.join-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.join-link { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 20px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; }
.join-link:hover { background: #FFF3B8; }
.join-link.kakao { background: #FEE500; }
.join-form { background: #fff; border: 3px solid var(--ink); border-radius: 20px; padding: 22px 24px 24px; box-shadow: 6px 6px 0 rgba(43, 42, 58, 0.2); }
.join-form form { display: flex; flex-direction: column; gap: 14px; }
.jf label { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 700; }
.jf label em { margin-left: 6px; font-style: normal; font-weight: 400; font-size: 13px; color: var(--sub); }
.jf input, .jf textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.jf input { height: 46px; }
.jf textarea { resize: vertical; line-height: 1.5; }
.jf.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jf-error, .join-error { margin-top: 4px; padding: 6px 10px; border-radius: 8px; background: #FDECEC; color: #8A1F1F; font-size: 14px; }
.join-error { margin: 0 0 12px; font-weight: 700; }
.jf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jf-privacy { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 13px; color: var(--sub); }
.jf-privacy p { color: var(--ink); margin-bottom: 4px; }
.jf-privacy ul { padding-left: 16px; list-style: disc; }
.jf-agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; color: var(--ink); font-size: 15px; font-weight: 700; cursor: pointer; }
.jf-agree input { width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 auto; }
.join-form button { height: 52px; font-family: var(--cute); font-size: 20px; color: #fff; background: var(--main); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.join-form button:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.join-done p { margin-bottom: 14px; font-size: 16px; }
@media (max-width: 960px) {
  .join { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .join-form { order: -1; padding: 16px 16px 18px; border-radius: 16px; }
  .jf.two { grid-template-columns: minmax(0, 1fr); }
}
