@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: 'Noto Sans KR', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  word-break: break-word;
}

img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: inherit; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #ff5252;
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: .85rem 1.1rem;
  background: #000;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { left: 10px; top: 10px; }

/* 页头：品牌行 + 菜单行 */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 4px solid #000;
}

.brandrow {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 3px solid #000;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex: none;
  background: #3bb1ff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #000;
}

.logo-img {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  background: #fff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #000;
}

.navrow {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}

.grp { position: relative; }

.grp > summary {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 46px;
  padding: .55rem 1rem;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  border: 3px solid #000;
  border-radius: 4px;
  background: #3bb1ff;
  box-shadow: 4px 4px 0 #000;
  user-select: none;
}

.grp:nth-child(2) > summary { background: #ff5252; color: #fff; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary::after { content: "＋"; font-weight: 700; }
.grp[open] > summary::after { content: "－"; }

.grp[open] > summary,
.grp > summary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.grp-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 70;
  width: min(80vw, 300px);
  margin: 10px 0 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 7px 7px 0 #000;
}

.grp[open] > .grp-menu { display: block; }

@media (hover: hover) {
  .grp:hover > .grp-menu { display: block; }
}

.grp-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem .7rem;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid #000;
}
.grp-menu li:last-child a { border-bottom: 0; }
.grp-menu a:hover { background: #3bb1ff; }

/* 主体骨架：main > article.wrap > section > div，侧栏在右 */
main { padding: 0 0 40px; }

.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 980px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    padding: 0 24px;
  }
}

.post { min-width: 0; padding-bottom: 10px; }

/* 首屏 */
.hero {
  display: grid;
  gap: 22px;
  padding: 24px 0 4px;
}

@media (min-width: 740px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 28px;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: .3rem .7rem;
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  background: #ff5252;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #000;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 5.6vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: -.02em;
}

.hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
  background: #fff;
  text-decoration: none;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 5px 5px 0 #000;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn-primary { background: #3bb1ff; }
.btn-ink { background: #000; color: #fff; }

.hero-fig {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 0;
  background: #3bb1ff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 8px 8px 0 #000;
}
.hero-fig::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  background: #ff5252;
  border: 3px solid #000;
}
.hero-fig::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 14px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid #000;
}

.hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.float-tag {
  position: absolute;
  right: -6px;
  bottom: -16px;
  margin: 0;
  padding: .3rem .65rem;
  font-size: .9rem;
  font-weight: 700;
  background: #fff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 4px 4px 0 #000;
  transform: rotate(-4deg);
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(3deg) translateY(-5px); }
}

/* 概览块：h2 + 副标题 */
.brief {
  margin: 34px 0 0;
  padding: 20px 22px;
  background: #3bb1ff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 7px 7px 0 #000;
}
.brief h2 { margin: 0 0 8px; font-size: 1.45rem; line-height: 1.3; }
.brief .subtitle { margin: 0; font-size: 1.02rem; line-height: 1.7; }

/* 正文 */
.content { min-width: 0; margin: 36px 0 0; }
.content section {
  padding: 34px 0;
  border-top: 3px dashed #000;
  scroll-margin-top: 132px;
}
.content section:first-child { border-top: 0; padding-top: 6px; }

.content h2 {
  margin: 0 0 .7em;
  padding-left: 14px;
  border-left: 10px solid #ff5252;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
  line-height: 1.35;
}

.content h3 {
  margin: 1.6em 0 .6em;
  padding-left: 10px;
  border-left: 7px solid #3bb1ff;
  font-size: 1.15rem;
  line-height: 1.4;
}

.content p { margin: 0 0 1.05em; }

.content a {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: #3bb1ff;
  text-underline-offset: 3px;
}
.content a:hover { background: #3bb1ff; }

.content ul,
.content ol { margin: 0 0 1.15em; padding-left: 1.35em; }
.content li { margin: .4em 0; }
.content li::marker { color: #ff5252; font-weight: 700; }

.content img {
  display: block;
  margin: 1.2em 0;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
}

.content blockquote {
  margin: 1.4em 0;
  padding: 16px 18px;
  background: #3bb1ff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
}
.content blockquote p:last-child { margin: 0; }

.content strong { background: #3bb1ff; padding: 0 .18em; }
.content code {
  padding: .1em .35em;
  font-size: .92em;
  color: #fff;
  background: #000;
  border-radius: 3px;
}

.content table {
  width: 100%;
  margin: 0 0 1.2em;
  border-collapse: collapse;
  font-size: .95rem;
}
.content th,
.content td { border: 2px solid #000; padding: 8px 10px; text-align: left; vertical-align: top; }
.content th { background: #ff5252; color: #fff; }
.content hr { margin: 1.5em 0; border: 0; border-top: 3px dashed #000; }

/* 侧栏 */
.side {
  display: grid;
  gap: 18px;
  align-content: start;
}

@media (min-width: 980px) {
  .side { position: sticky; top: 132px; align-self: start; }
}

.side-card {
  padding: 14px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
}

.side-h {
  display: inline-block;
  margin: 0 0 10px;
  padding: .15rem .6rem;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  background: #000;
  border-radius: 3px;
}

.side-list { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.side-list li { counter-increment: s; border-bottom: 2px solid #000; }
.side-list li:last-child { border-bottom: 0; }

.side-list a {
  display: flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: .55rem .2rem;
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
}
.side-list a::before {
  content: counter(s, decimal-leading-zero);
  font-size: .85rem;
  font-weight: 700;
  color: #ff5252;
}
.side-list a:hover,
.side-list a.cur { background: #3bb1ff; }

.side-note {
  padding: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #ff5252;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
}

/* 页脚：单行横排 + 顶部大块 */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 16px 34px;
  background: #3bb1ff;
  border-top: 4px solid #000;
}

.f-cta {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 3px solid #000;
  border-radius: 4px;
  box-shadow: 6px 6px 0 #000;
}

.f-big { margin: 0; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }

.f-brand { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 700; }
.f-logo { width: 28px; height: 28px; flex: none; background: #ff5252; border: 3px solid #000; border-radius: 3px; }

.f-nav { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.f-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem .25rem;
  font-size: .92rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.f-nav a:hover { border-bottom-color: #000; }

.f-copy { display: flex; align-items: center; gap: 14px; font-size: .9rem; }
.f-copy a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .5rem .25rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid #000;
}

@media (min-width: 760px) {
  .foot { padding: 30px 24px 38px; }
}

/* 滚动显现 */
.will-in { opacity: 0; transform: translateY(16px); }
.will-in.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

@media (max-width: 480px) {
  .brief { padding: 16px; }
  .f-big { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-tag { animation: none; }
  .will-in { opacity: 1; transform: none; }
  .btn { transition: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
