/* 노랑별소아청소년과의원 — P4 진료시간·접수 안내 중심 · 파스텔 옐로, 큼직한 글자 */
:root {
  --bg: #fffdf6;
  --yellow: #ffe58a;
  --butter: #fff4c7;
  --cream: #fffaea;
  --ink: #26282c;
  --sub: #5d5a52;
  --line: #efe3b8;
  --amber: #a85d00;
  --green: #2f7d4f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 18px/1.7 'Gothic A1', -apple-system, 'Malgun Gothic', sans-serif; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.035em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 28px; border-radius: 14px; border: 0; font-family: inherit; font-size: 19px; font-weight: 800; text-decoration: none; cursor: pointer; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }

/* 헤더 */
.hd { background: var(--yellow); }
.hd__in { display: flex; align-items: center; gap: 32px; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 900; font-size: 26px; letter-spacing: -0.04em; }
.logo small { margin-left: 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.logo__star { width: 30px; height: 30px; background: var(--ink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.hd__nav { display: flex; gap: 26px; margin-left: auto; font-size: 17px; font-weight: 700; }
.hd__nav a { text-decoration: none; }
.hd__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hd__tel { text-decoration: none; font-weight: 900; font-size: 20px; padding: 10px 18px; border-radius: 12px; background: var(--ink); color: var(--yellow); }

/* 히어로 + 오늘 진료 */
.hero { background: var(--yellow); padding: 40px 0 72px; }
.hero__in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.hero__where { margin: 0 0 14px; font-weight: 800; font-size: 17px; }
.hero h1 { font-size: 68px; line-height: 1.15; }
.hero__text > p:not(.hero__where) { margin: 24px 0 32px; font-size: 19px; max-width: 28em; color: #3b3828; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.today { background: #fff; border-radius: 28px; padding: 36px 40px; box-shadow: 0 2px 0 rgba(0,0,0,.05); }
.today__label { margin: 0; font-weight: 800; font-size: 18px; color: var(--amber); }
.today__time { margin: 2px 0 10px; font-weight: 900; font-size: 52px; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.today__state { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border-radius: 99px; background: #f1eee4; font-size: 16px; font-weight: 800; color: var(--sub); }
.today__state.on { background: #dff2e4; color: var(--green); }
.today__dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--line); }
.today__dl div { padding: 16px 0 0; }
.today__dl div + div { padding-left: 20px; border-left: 2px solid var(--line); }
.today__dl dt { font-size: 15px; color: var(--sub); font-weight: 700; }
.today__dl dd { margin: 0; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.today__note { margin: 16px 0 0; font-size: 14px; color: var(--sub); }

/* 공지 */
.notice { margin-top: -28px; }
.notice p { margin: 0; padding: 20px 26px; background: var(--ink); color: #fff; border-radius: 18px; font-size: 17px; font-weight: 500; }
.notice span { display: inline-block; margin-right: 14px; padding: 2px 10px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-weight: 900; font-size: 15px; }
.notice b { margin-right: 10px; color: var(--yellow); font-weight: 800; }

/* 섹션 */
.sec { padding-block: 96px; }
.sec h2, .reception h2, .space h2 { font-size: 44px; margin-bottom: 32px; }

/* 시간표 */
.tbl-wrap { border-radius: 22px; overflow: hidden; border: 2.5px solid var(--ink); }
.tbl { width: 100%; border-collapse: collapse; font-size: 22px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 18px 26px; text-align: left; border-bottom: 1.5px solid var(--line); }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }
.tbl thead th { background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; padding-block: 14px; }
.tbl tbody th { font-weight: 900; font-size: 26px; width: 12%; }
.tbl td { font-weight: 700; }
.tbl td:nth-child(3) { color: var(--sub); font-weight: 500; font-size: 19px; }
.tbl td:last-child { color: var(--amber); font-weight: 900; }
.tbl tr.late td:nth-child(2) { background: var(--butter); }
.tbl tr.today-row { background: var(--butter); }
.tbl tr.today-row th { position: relative; }
.tbl tr.today-row th::after { content: '오늘'; margin-left: 10px; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--yellow); font-size: 13px; vertical-align: 5px; }
.tbl-note { margin: 18px 0 0; color: var(--sub); font-size: 17px; }
.tbl-note b { color: var(--ink); }

/* 접수 */
.reception { background: var(--cream); padding-block: 96px; border-block: 2px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; padding: 30px 28px 32px; background: #fff; border: 2px solid var(--line); border-radius: 24px; }
.steps__n { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%; background: var(--yellow); font-weight: 900; font-size: 26px; }
.steps h3 { font-size: 24px; }
.steps p { margin: 10px 0 0; color: var(--sub); font-size: 17px; }
.steps a { display: inline-block; margin-top: 16px; font-weight: 900; text-decoration: none; border-bottom: 3px solid var(--yellow); }
.bring { display: grid; grid-template-columns: 220px 1fr; gap: 20px; margin-top: 24px; padding: 22px 28px; border-radius: 18px; background: var(--butter); }
.bring p { margin: 0; font-size: 17px; }
.bring__t { font-weight: 900; }

/* 진료 과목 */
.care { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.care__head img { border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; }
.care__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.care__list li { padding: 22px 0; border-top: 2.5px solid var(--ink); }
.care__list h3 { font-size: 23px; }
.care__list p { margin: 8px 0 0; color: var(--sub); font-size: 16px; }

/* 대기 공간 */
.space { background: var(--yellow); padding-block: 80px; }
.space__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.space img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; }
.space h2 { margin-bottom: 18px; }
.space ul { margin: 0; padding: 0 0 0 1.1em; }
.space li { padding: 5px 0; }
.doc { margin-top: 28px; padding: 20px 24px; background: #fff; border-radius: 18px; }
.doc p { margin: 0; }
.doc b { font-size: 22px; font-weight: 900; margin-right: 8px; }
.doc__s { font-size: 15px; color: var(--sub); }

/* 오시는 길 */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.visit h2 { margin-bottom: 14px; }
.visit__addr { margin: 0 0 22px; font-size: 24px; font-weight: 800; }
.visit__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.visit__dl { margin: 0; }
.visit__dl div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 16px 0; border-bottom: 2px solid var(--line); }
.visit__dl div:first-child { border-top: 2.5px solid var(--ink); }
.visit__dl dt { font-weight: 900; }
.visit__dl dd { margin: 0; color: var(--sub); }
.visit__dl a { color: var(--ink); font-weight: 800; }

.ft { background: var(--ink); color: #cfcab8; padding: 36px 0 44px; font-size: 14px; font-weight: 400; }
.ft p { margin: 3px 0; }
.ft b { color: #fff; }
.mbar { display: none; }

@media (max-width: 980px) {
  .hero__in, .care, .space__in, .visit { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .care__head img { aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .hd__nav { display: none; }
  .hd__in { height: 64px; justify-content: space-between; gap: 10px; }
  .logo { font-size: 22px; gap: 9px; }
  .logo small { display: block; margin: -4px 0 0; font-size: 12px; }
  .logo__star { width: 26px; height: 26px; }
  .hd__tel { font-size: 16px; padding: 8px 12px; }
  .hero { padding: 20px 0 56px; }
  .hero h1 { font-size: 46px; }
  .hero__text > p:not(.hero__where) { font-size: 17px; margin: 16px 0 24px; }
  .hero__btns .btn { flex: 1; padding: 0 14px; font-size: 18px; }
  .today { padding: 26px 22px; border-radius: 22px; }
  .today__time { font-size: 40px; }
  .today__dl dd { font-size: 22px; }
  .notice { margin-top: -24px; }
  .notice p { padding: 16px 18px; font-size: 15px; }
  .notice span { display: inline-block; margin-bottom: 6px; }
  .notice b { display: block; margin-bottom: 4px; font-size: 17px; }
  .sec { padding-block: 64px; }
  .sec h2, .reception h2, .space h2 { font-size: 32px; margin-bottom: 22px; }
  .tbl { font-size: 17px; }
  .tbl thead th { font-size: 13px; }
  .tbl th, .tbl td { padding: 14px 10px; }
  .tbl th:first-child { padding-left: 16px; }
  .tbl tbody th { font-size: 20px; width: auto; }
  .tbl td:nth-child(3), .tbl thead th:nth-child(3) { display: none; }
  .tbl tr.today-row th::after { display: block; width: max-content; margin: 2px 0 0; font-size: 11px; }
  .tbl-note { font-size: 15px; }
  .reception { padding-block: 64px; }
  .steps li { padding: 24px 22px; }
  .steps__n { width: 44px; height: 44px; font-size: 22px; margin-bottom: 12px; }
  .steps h3 { font-size: 21px; }
  .steps p, .bring p { font-size: 16px; }
  .bring { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .care__list { grid-template-columns: 1fr; }
  .care__list h3 { font-size: 21px; }
  .space { padding-block: 56px; }
  .visit__addr { font-size: 20px; }
  .visit__dl div { grid-template-columns: 70px 1fr; font-size: 16px; }
  .ft { padding-bottom: 100px; }
  .mbar { display: grid; grid-template-columns: 1.3fr 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { display: grid; place-items: center; height: 60px; text-decoration: none; color: #fff; font-weight: 800; font-size: 16px; }
  .mbar a + a { border-left: 1px solid rgba(255,255,255,.15); }
  .mbar a:first-child { background: var(--yellow); color: var(--ink); font-weight: 900; }
}
