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

:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --text: #111418;
  --muted: #8a9099;
  --faint: #c9cdd3;
  --line: #e6e8eb;
  --red: #d7262f;
  --dark: #0c1118;
  --ok: #1f8f55;
  --header-h: 76px;
  --en: "Outfit", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Noto Sans KR", "Outfit", "Malgun Gothic", sans-serif;
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

/* ---------- header (로고 + 텍스트 메뉴만) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.site-header .container { display: flex; align-items: center; height: 100%; }
.logo { font-family: var(--en); font-weight: 800; font-size: 26px; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.logo i { width: 10px; height: 10px; background: var(--red); display: inline-block; transform: rotate(45deg); }
.nav { margin-left: auto; display: flex; gap: 40px; }
.nav a { font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); }

.who { display: flex; align-items: center; gap: 14px; margin-left: 32px; font-size: 13px; color: var(--muted); }
body.home .site-header:not(.solid) .who, body.home .site-header:not(.solid) .who .link { color: rgba(255,255,255,.7); }

/* 로그인 */
.login-box { max-width: 420px; padding: 100px 0 40px; }
.login-box h1 { font-size: 44px; margin: 10px 0 8px; }
.login-box form { display: grid; gap: 24px; margin-top: 40px; }
.login-error { color: var(--red); font-size: 14px; margin: 0; min-height: 20px; }

/* 홈: 히어로 위 투명 헤더 */
body.home .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
body.home .site-header .nav a { color: rgba(255,255,255,.7); }
body.home .site-header .nav a:hover, body.home .site-header .nav a.active { color: #fff; }
body.home .site-header.solid { background: #fff; border-color: var(--line); color: var(--text); }
body.home .site-header.solid .nav a { color: var(--muted); }
body.home .site-header.solid .nav a:hover, body.home .site-header.solid .nav a.active { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 120px; color: var(--muted); font-size: 13px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: var(--text); font-size: 20px; margin-bottom: 10px; }
.site-footer b { color: var(--text); font-weight: 500; margin-right: 6px; }
.site-footer span + span { margin-left: 18px; }

/* ---------- 공통 타이포 / 버튼 (텍스트 링크 하나로 통일) ---------- */
.eyebrow { font-family: var(--en); color: var(--red); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.big { font-family: var(--en); font-weight: 700; letter-spacing: -1px; line-height: 1.1; }
.page-head { padding: 80px 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 8px 0 0; font-size: 52px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 8px; }

.link {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--text); border-bottom: 1px solid currentColor;
}
.link::after { content: "→"; font-family: var(--en); transition: transform .2s; }
.link:hover::after { transform: translateX(4px); }
.link.plain::after { content: none; }
.link.muted { color: var(--muted); border-color: transparent; }
.link.muted:hover { color: var(--text); }
.link.danger { color: var(--red); border-color: transparent; }
.link.white { color: #fff; }

input, select, textarea {
  font: inherit; color: inherit; width: 100%; background: transparent;
  border: 0; border-bottom: 1px solid var(--faint); border-radius: 0; padding: 10px 2px;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--text); }
textarea { min-height: 300px; resize: vertical; border: 1px solid var(--faint); padding: 14px; }
label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .5px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 28px; justify-content: flex-end; align-items: center; margin-top: 36px; }
.muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 16px 10px; border-bottom: 1px solid var(--line); text-align: left; }
thead th { font-size: 12px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--text); letter-spacing: .5px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--soft); }
code { font-family: var(--en); font-size: 14px; font-weight: 500; }
.tag { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tag.공지 { color: var(--red); font-weight: 700; }

/* ---------- home ---------- */
.hero {
  height: 100vh; min-height: 620px; position: relative; overflow: hidden; color: #fff; display: flex; align-items: flex-end;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(40, 160, 220, .35), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(215, 38, 47, .25), transparent 50%),
    linear-gradient(180deg, #0b1622 0%, #071019 100%);
}
.hero::before { /* 회로 기판 느낌 그리드 */
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(120, 200, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, transparent, #000 40%, #000 80%, transparent);
}
.hero svg.traces { position: absolute; right: 0; top: 0; height: 100%; width: 60%; opacity: .55; }
.hero .container { position: relative; width: 100%; padding-bottom: 110px; }
.hero h1 { font-size: clamp(44px, 7vw, 96px); margin: 18px 0 0; }
.hero p { font-size: 17px; color: rgba(255,255,255,.75); margin: 24px 0 0; max-width: 560px; }
.scroll-down { position: absolute; right: 40px; bottom: 40px; font-family: var(--en); font-size: 11px; letter-spacing: 3px; writing-mode: vertical-rl; color: rgba(255,255,255,.6); }
.scroll-down::after { content: ""; display: inline-block; width: 1px; height: 60px; background: rgba(255,255,255,.6); margin-top: 12px; }

.section { padding-top: 140px; }
.statement { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; line-height: 1.35; letter-spacing: -1px; margin: 16px 0 28px; }
.statement em { font-style: normal; color: var(--red); }
.intro p { color: #4a5059; max-width: 760px; margin: 0 0 36px; }

.biz { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.biz-visual {
  aspect-ratio: 4 / 3; background: linear-gradient(135deg, #0b1622, #13324a); color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 44px;
}
.biz-visual::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(120,200,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(120,200,255,.25) 1px, transparent 1px); background-size: 32px 32px; }
.biz-visual .code { position: absolute; top: 36px; right: 40px; font-family: var(--en); font-size: 110px; font-weight: 800; color: rgba(255,255,255,.08); line-height: 1; }
.biz-visual h3 { position: relative; font-family: var(--en); font-size: 34px; margin: 0 0 10px; }
.biz-visual p { position: relative; margin: 0; color: rgba(255,255,255,.75); }
.biz-list { list-style: none; margin: 0; padding: 0; text-align: right; border-right: 1px solid var(--line); padding-right: 32px; }
.biz-list li { position: relative; }
.biz-list button { background: none; border: 0; cursor: pointer; font-family: var(--en); font-weight: 700; font-size: clamp(28px, 3.2vw, 46px); color: #d9dce0; padding: 6px 0; letter-spacing: -1px; transition: color .25s; }
.biz-list li.on button, .biz-list button:hover { color: var(--text); }
.biz-list li.on::after { content: ""; position: absolute; right: -38px; top: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--red); transform: translateY(-50%); }

.notice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text); }
.notice-list li { display: flex; gap: 24px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); }
.notice-list li a { flex: 1; font-size: 16px; }
.notice-list li a:hover { text-decoration: underline; }
.notice-list .date { color: var(--muted); font-family: var(--en); font-size: 14px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 20px; }
.head-row h2 { margin: 10px 0 0; font-size: 44px; }

.contact-band { background: var(--soft); padding: 90px 0; margin-top: 140px; }
.contact-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-band h2 { font-size: 44px; margin: 10px 0 14px; }
.contact-band dl { display: grid; grid-template-columns: 90px 1fr; gap: 14px; margin: 0; align-content: center; }
.contact-band dt { color: var(--muted); }
.contact-band dd { margin: 0; font-weight: 500; }
body.home .site-footer { margin-top: 0; }

/* ---------- board ---------- */
.toolbar { display: flex; gap: 28px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.cats { display: flex; gap: 24px; }
.cats button { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--muted); cursor: pointer; }
.cats button.on { color: var(--text); font-weight: 700; }
.toolbar .search { margin-left: auto; width: 260px; }
tr.pinned td:nth-child(3) strong { color: var(--text); }
.pager { display: flex; justify-content: center; gap: 18px; margin-top: 32px; font-family: var(--en); }
.pager button { background: none; border: 0; cursor: pointer; font: inherit; color: var(--muted); }
.pager button.on { color: var(--text); font-weight: 700; border-bottom: 2px solid var(--red); }
.post-head { border-top: 1px solid var(--text); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.post-head h1 { margin: 8px 0 14px; font-size: 30px; letter-spacing: -.5px; }
.post-meta { color: var(--muted); font-size: 13px; display: flex; gap: 20px; flex-wrap: wrap; }
.post-body { white-space: pre-wrap; word-break: break-word; min-height: 220px; padding: 40px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

/* ---------- semiconductor trends ---------- */
.today-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--soft); border-left: 3px solid var(--red); padding: 16px 20px; margin: 16px 0 8px; font-size: 14px; }
.timeline { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--text); }
.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 32px; padding: 30px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.timeline li:hover { background: var(--soft); }
.t-date b { display: block; font-family: var(--en); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -1px; }
.t-date span { font-family: var(--en); font-size: 13px; color: var(--muted); }
.timeline li.is-today .t-date b { color: var(--red); }
.t-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.t-tags span { font-size: 12px; font-weight: 700; color: var(--red); }
.t-body h3 { margin: 6px 0 8px; font-size: 20px; letter-spacing: -.3px; }
.t-body p { margin: 0; color: #4a5059; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-meta { margin-top: 10px; font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips label { display: inline-flex; align-items: center; border: 1px solid var(--faint); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); cursor: pointer; letter-spacing: 0; }
.chips input { display: none; }
.chips label:has(input:checked) { border-color: var(--text); background: var(--text); color: #fff; }
.attach { padding: 28px 0; border-bottom: 1px solid var(--line); }
.attach-title { font-size: 12px; color: var(--muted); margin-bottom: 12px; letter-spacing: .5px; }
.attach ul { list-style: none; margin: 0; padding: 0; }
.attach li { padding: 4px 0; word-break: break-all; }
.attach li a { text-decoration: underline; }
.attach img { max-width: 100%; max-height: 520px; display: block; margin-bottom: 16px; border: 1px solid var(--line); }
.file-list { list-style: none; margin: 10px 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
input[type=file] { border: 0; padding: 10px 0; }
@media (max-width: 560px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
}

/* 첨부파일 삭제 버튼 */
.x { background: none; border: 0; color: var(--faint); cursor: pointer; font-size: 16px; }
.x:hover { color: var(--red); }

@media (max-width: 960px) {
  .container { padding: 0 20px; }
  .nav { gap: 22px; }
  .biz, .contact-band .container { grid-template-columns: 1fr; gap: 40px; }
  .biz-list { text-align: left; border-right: 0; padding-right: 0; border-left: 1px solid var(--line); padding-left: 24px; }
  .biz-list li.on::after { right: auto; left: -30px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1, .head-row h2, .contact-band h2 { font-size: 34px; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .scroll-down { display: none; }
}
