/* 대치루트 회사 사이트 · 학원 주간 시간표 화이트보드 */
:root{
  --wall:#e6e8e6;
  --board:#fcfdfc;
  --frame:#c9ced2;
  --ink:#1b1f24;
  --ink-2:#3d434a;
  --ink-3:#5b636b;
  --rule:#9aa1a8;
  --blue:#1f5bd6;
  --blue-deep:#1848ad;
  --magnet:#ffd84a;
  --red:#c8342a;
  --red-deep:#a92a21;
  --space:clamp(20px,3.2vw,48px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{font-family:"Noto Sans KR",system-ui,sans-serif;background:var(--wall);color:var(--ink);line-height:1.6;letter-spacing:-.015em;word-break:keep-all;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
::selection{background:var(--magnet);color:var(--ink)}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:4px}
.skip{position:fixed;left:12px;top:-60px;z-index:50;background:var(--ink);color:#fff;padding:10px 14px;border-radius:6px;font-weight:700;text-decoration:none}
.skip:focus{top:12px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* 머리글 */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;height:60px;padding:0 var(--space);background:rgba(230,232,230,.92);backdrop-filter:saturate(160%) blur(10px)}
.brand-pre{white-space:nowrap;margin-right:-3px}
.ico{display:inline-block;vertical-align:-2px;margin-left:2px}
.nowrap{white-space:nowrap}
.brand{display:flex;align-items:center;gap:8px;font-weight:900;font-size:17px;text-decoration:none;letter-spacing:-.03em}
.top nav{display:flex;align-items:center;gap:clamp(14px,2.2vw,28px);font-size:14.5px;font-weight:500}
.top nav a{text-decoration:none;color:var(--ink-2)}
.top nav a:hover{color:var(--ink)}
.top .nav-cta{color:var(--red-deep);font-weight:700}
.top nav a[aria-current="page"]{color:var(--ink);font-weight:700;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}

/* 보드: 알루미늄 테를 두른 화이트보드 한 장. 섹션은 같은 재료의 보드 */
.board{position:relative;margin:0 var(--space) 28px;background:var(--board);border:12px solid var(--frame);border-radius:8px;box-shadow:0 1px 0 #fff inset,0 16px 36px rgba(27,31,36,.10);padding:clamp(24px,3vw,40px)}
.sub .board:first-child{margin-top:8px}
.board h1.page-title,.board h2{font-size:clamp(26px,2.6vw,34px);font-weight:900;letter-spacing:-.035em;line-height:1.2}

/* 첫 화면 */
.hero{margin-top:8px;min-height:min(calc(100svh - 96px),860px);display:flex;flex-direction:column}
.hero-head{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;margin-bottom:28px}
.hero h1{font-size:clamp(34px,4.4vw,60px);font-weight:900;line-height:1.1;letter-spacing:-.045em}
.blue{color:var(--blue)}
.hero-note{max-width:25em;font-size:16px;color:var(--ink-2);text-align:right;line-height:1.65}
.hero-note strong{color:var(--ink)}

/* 주간 시간표: 격자는 배경 그림, 블록·자석·마커는 실제 링크 */
.week{position:relative;flex:1;min-height:440px;display:grid;grid-template-columns:72px repeat(7,minmax(0,1fr));grid-template-rows:40px repeat(3,minmax(110px,1fr))}
.week-grid{position:absolute;inset:0;display:grid;grid-template-columns:inherit;grid-template-rows:inherit;border:2px solid var(--ink)}
.week-grid>span{border-right:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.week-grid .corner{grid-area:1/1}
.week-grid .col{grid-row:2/5;border-bottom:0}
.week-grid .time:nth-last-of-type(2){border-bottom:0}
.week-grid .time-end{grid-row:4;grid-column:1;align-self:end;border:0;padding:0 10px 6px}
.week-grid .day{grid-row:1;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;background:#f1f3f4}
.week-grid .day:nth-child(2){grid-column:2}.week-grid .day:nth-child(3){grid-column:3}.week-grid .day:nth-child(4){grid-column:4}.week-grid .day:nth-child(5){grid-column:5}.week-grid .day:nth-child(6){grid-column:6}
.week-grid .sat{grid-column:7;color:var(--blue)}.week-grid .sun{grid-column:8;color:var(--red-deep);border-right:0}
.week-grid .time{grid-column:1;padding:8px 10px;font-size:13px;font-weight:700;color:var(--ink-3);font-variant-numeric:tabular-nums;border-bottom:1px solid var(--rule)}


.slot{position:relative;z-index:1;display:flex;flex-direction:column;gap:2px;margin:8px;padding:14px 16px;border-radius:6px;color:#fff;text-decoration:none;box-shadow:0 3px 8px rgba(27,31,36,.22);transition:transform .2s cubic-bezier(.2,.7,.2,1),box-shadow .2s}
.slot:hover{transform:translateY(-2px);box-shadow:0 8px 16px rgba(27,31,36,.22)}
.slot strong{font-size:clamp(20px,1.9vw,26px);font-weight:900;line-height:1.15;letter-spacing:-.03em}
.slot-what{font-size:14px;opacity:.92;line-height:1.5}
.slot-go{margin-top:auto;padding-top:8px;font-size:14px;font-weight:700}
.slot-focudit{grid-column:2/7;grid-row:2;align-self:start;background:var(--ink);flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:14px}
.slot-focudit strong{letter-spacing:.06em}
.slot-focudit .slot-focudit .slot-go{margin-left:auto;margin-top:0;padding-top:0}
.slot-weekend{grid-column:7/9;grid-row:2/5;background:var(--blue)}
.slot-weekend:hover{background:var(--blue-deep)}
.slot-time{display:none}
.slot-go{white-space:nowrap}
.slot-daily{align-self:center;padding:2px 9px;border:1px solid rgba(255,255,255,.55);border-radius:999px;font-size:12.5px;font-weight:700}

.magnets{position:relative;z-index:1;grid-column:2/7;grid-row:3;display:flex;flex-wrap:wrap;align-content:center;gap:10px;padding:0 12px;list-style:none}
.magnets a{display:inline-block;padding:9px 14px;background:var(--magnet);border-radius:4px;font-weight:700;font-size:15px;text-decoration:none;box-shadow:0 2px 5px rgba(27,31,36,.25);transform:rotate(-1deg);transition:transform .18s}
.magnets li:nth-child(2n) a{transform:rotate(1deg)}
.magnets a:hover{transform:rotate(0) translateY(-2px)}

.marker{position:relative;z-index:1;grid-column:2/7;grid-row:4;background:var(--board);align-self:center;margin:8px;padding:18px 20px;border:2px dashed var(--red);border-radius:6px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}
.marker p{color:var(--red-deep);font-weight:700;font-size:16px}
.btn-red{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;background:var(--red);color:#fff;font-weight:700;font-size:15.5px;border-radius:4px;text-decoration:none;box-shadow:0 3px 8px rgba(169,42,33,.35)}
.btn-red:hover{background:var(--red-deep)}

/* 사업: 시간표 옆 칸 기록장 */
.ledger{margin-top:20px;border-top:2px solid var(--ink)}
.ledger-row{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:24px;align-items:start;padding:24px 0;border-bottom:1px solid var(--rule)}
.ledger-tag{justify-self:start;padding:6px 12px;border-radius:4px;font-weight:900;font-size:14px;color:#fff}
.tag-ink{background:var(--ink)}.tag-blue{background:var(--blue)}
.ledger-body .ledger-h{font-size:22px;font-weight:900;letter-spacing:-.03em}
.ledger-body p{margin-top:6px;color:var(--ink-2);max-width:44em}
.chips{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;list-style:none}
.chips li{padding:6px 12px;border:1px solid var(--rule);border-radius:999px;font-size:13.5px;font-weight:500}
.chips em{font-style:normal;color:var(--ink-3);margin-left:4px}
.ledger-go{align-self:center;font-weight:700;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:2px;white-space:nowrap}

/* 교육팀: 보드에 붙인 사진 */
.sec-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.sec-head p{color:var(--ink-3);font-size:14px;max-width:32em}
.roster{margin-top:24px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;list-style:none}
.roster li{position:relative;scroll-margin-top:96px}
.roster li::before{content:"";position:absolute;z-index:1;top:-7px;left:50%;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:var(--magnet);box-shadow:0 2px 4px rgba(27,31,36,.3)}
.roster img{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:4px;background:#eef0f1;box-shadow:0 1px 0 rgba(0,0,0,.06)}
.roster .name{display:block;margin-top:10px;font-weight:900;font-size:16px}
.roster .name small{font-weight:500;font-size:12px;color:var(--ink-3);margin-left:4px}
.roster .school{display:block;font-size:13px;color:var(--ink-3);line-height:1.45}
.roster li:target img{outline:4px solid var(--magnet);outline-offset:3px}
.roster li:target .name{background:var(--magnet);display:inline-block;padding:0 6px;border-radius:3px}


/* 제휴·투자·채용: 보드 하단 공지 */
.notice-list{margin-top:20px;border-top:2px solid var(--ink)}
.notice-list>div{display:grid;grid-template-columns:220px minmax(0,1fr) auto;gap:8px 24px;align-items:center;padding:18px 0;border-bottom:1px solid var(--rule)}
.notice-list dt{font-weight:900;font-size:16px}
.notice-list dd{color:var(--ink-2)}
.notice-list dd a{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:2px solid var(--red);border-radius:4px;color:var(--red-deep);font-weight:700;text-decoration:none;white-space:nowrap}
.notice-list dd a:hover{background:var(--red);color:#fff}

/* 바닥글 */
.foot{padding:28px var(--space) 48px;font-size:13px;color:var(--ink-3);line-height:1.7}
.foot-name{font-weight:900;color:var(--ink);font-size:14px;margin-bottom:4px}
.foot-copy{margin-top:8px}

/* 태블릿 */
@media (max-width:1080px){
  .roster{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* 모바일: 7일 격자를 '평일 / 주말' 두 줄로 접는다 */
@media (max-width:760px){
  html{scroll-padding-top:64px}
  .top{height:56px}
  .top{padding:0 14px}
  .brand{font-size:15px}
  .top nav{gap:14px;font-size:13.5px}
  .board{margin:0 12px 18px;border-width:8px;padding:20px 16px}
  .hero{min-height:0}
  .hero-head{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:20px}
  .hero-note{text-align:left;font-size:15px}
  .brand-pre{display:none}
  .week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:auto auto auto auto;gap:0;min-height:0}
  .week-grid{position:static;grid-column:1/-1;grid-row:1;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:34px;border-width:2px}
  .week-grid .corner,.week-grid .time,.week-grid .col{display:none}
  .week-grid .day{grid-row:1!important;border-bottom:0;background:#f1f3f4}
  .week-grid{border-radius:4px;overflow:hidden}
  .week-grid .day:nth-child(2){grid-column:1}.week-grid .day:nth-child(3){grid-column:2}.week-grid .day:nth-child(4){grid-column:3}.week-grid .day:nth-child(5){grid-column:4}.week-grid .day:nth-child(6){grid-column:5}.week-grid .sat{grid-column:6}.week-grid .sun{grid-column:7}
  .slot{margin:8px 3px 0;padding:12px 12px}
  .slot-focudit{grid-column:1/6;grid-row:2;flex-direction:column;align-items:flex-start}
  .slot-focudit .slot-go{margin-left:0;padding-top:8px}
  .slot-daily{align-self:flex-start;margin-top:4px}
  .slot-weekend{grid-column:6/8;grid-row:2}
  .slot-weekend{padding:10px 8px}
  .slot-weekend strong{font-size:14.5px;letter-spacing:-.04em}
  .slot-weekend .slot-go{font-size:13px}
  .slot-weekend .slot-what{display:none}
  .slot-time{display:block;white-space:nowrap;font-size:11px;letter-spacing:-.03em;font-weight:700;font-variant-numeric:tabular-nums;opacity:.9}
  .slot-focudit,.slot-weekend{align-self:stretch}
  .magnets{grid-column:1/-1;grid-row:3;flex-wrap:wrap;padding:14px 2px 4px;gap:8px}
  .magnets a{white-space:nowrap;padding:8px 12px;font-size:14px}
  .marker{grid-column:1/-1;grid-row:4;margin:12px 0 0;flex-direction:column;align-items:stretch}
  .btn-red{justify-content:center}
  .ledger-row{grid-template-columns:auto minmax(0,1fr);gap:10px 12px}
  .ledger-tag{margin-top:3px}
  .ledger-go{grid-column:1/-1}
  .ledger-go{align-self:start}
  .roster{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .top nav{gap:12px;font-size:13px}
  .notice-list>div{grid-template-columns:1fr;gap:6px}
  .notice-list dd a{justify-content:center;width:100%}
}
