@charset "utf-8";

/* fish_header — 사이트 맨 위 메뉴(헤더)
   높이·색·글자 크기·간격·아이콘은 모두 --fh-* 변수 (관리자 > 헤더 편집에서 바뀜).
   다른 CSS가 헤더 링크 색을 덮어쓰지 않도록 규칙은 모두 .fh-scope 아래에 둡니다.

   메뉴가 너비에 다 안 들어가면 fish_header.js 가 실제 폭을 재서
   .fh-tight(간격 줄임) → .fh-small(글자 조금 작게) → .fh-compact(햄버거) 로 바꿉니다. */

.fh-scope {
	--fh-h: 84px;
	--fh-bg: #fff;
	--fh-text: #222;
	--fh-sub: #777;
	--fh-accent: #d7141d;
	--fh-hover-c: #d7141d;
	--fh-gap: 18px;
	--fh-ko: 15px;
	--fh-en: 12px;
	--fh-max: 1200px;
	--fh-logo-h: 40px;
	--fh-icon: 21px;
	--fh-icon-stroke: 1.75;
	--fh-line: color-mix(in srgb, var(--fh-text) 11%, transparent);
	--fh-soft: color-mix(in srgb, var(--fh-hover-c) 9%, transparent);
	--fh-ease: cubic-bezier(.22, 1, .36, 1);
	--fh-spring: cubic-bezier(.34, 1.4, .64, 1);

	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	font-family: var(--fh-font, inherit);
	line-height: 1.2;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.fh-scope.fh-sticky { position: fixed; }
.fh-scope, .fh-scope * { box-sizing: border-box; }
.fh-scope a, .fh-scope a:hover, .fh-scope a:focus { text-decoration: none; }
.fh-scope ul { list-style: none; margin: 0; padding: 0; }
.fh-scope li { margin: 0; padding: 0; background: none; }
.fh-scope [hidden] { display: none !important; }
.fh-scope :focus-visible { outline: 2px solid color-mix(in srgb, var(--fh-hover-c) 60%, transparent); outline-offset: 2px; border-radius: 8px; }

/* 바 */
.fh-scope .fh-bar {
	position: relative;
	height: var(--fh-h);
	background: var(--fh-bg);
	color: var(--fh-text);
	transition: box-shadow .35s, background-color .35s;
}
.fh-scope.fh-border .fh-bar { border-bottom: 1px solid var(--fh-line); }
.fh-scope.fh-shadow .fh-bar { box-shadow: 0 2px 14px rgba(10, 20, 40, .08); }

/* 화면을 내리면 반투명 유리처럼 */
.fh-scope.fh-sticky.fh-scrolled .fh-bar {
	background: color-mix(in srgb, var(--fh-bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.7) blur(16px);
	backdrop-filter: saturate(1.7) blur(16px);
	box-shadow: 0 10px 34px rgba(10, 20, 40, .08);
}

.fh-scope .fh-inner {
	display: flex;
	align-items: center;
	gap: 28px;
	height: 100%;
	max-width: var(--fh-max);
	margin: 0 auto;
	padding: 0 20px;
}

/* 로고 */
.fh-scope .fh-logo { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 3px; color: var(--fh-text); }
.fh-scope .fh-logo img { display: block; height: var(--fh-logo-h); width: auto; max-width: 260px; }
.fh-scope .fh-logo-text .fh-ko { font-size: calc(var(--fh-ko) + 5px); font-weight: var(--fh-logo-w, 800); letter-spacing: -.02em; }

/* ---------------------------------------------------------------- 메뉴 */
.fh-scope .fh-nav { position: relative; flex: 1 1 auto; min-width: 0; }
.fh-scope .fh-menu { position: relative; z-index: 1; display: flex; align-items: stretch; gap: var(--fh-gap); height: var(--fh-h); }
.fh-scope.fh-align-left .fh-menu { justify-content: flex-start; }
.fh-scope.fh-align-center .fh-menu { justify-content: center; }
.fh-scope.fh-align-right .fh-menu { justify-content: flex-end; }

.fh-scope .fh-item { position: relative; display: flex; flex: none; }
.fh-scope .fh-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	color: var(--fh-text);
	white-space: nowrap;
}
.fh-scope .fh-lbl {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	text-align: center;
	transition: transform .5s var(--fh-ease);
}
.fh-scope .fh-ko, .fh-scope .fh-en { display: block; }
.fh-scope .fh-t { display: block; }
.fh-scope .fh-ko { font-size: var(--fh-ko); font-weight: var(--fh-ko-w, 700); letter-spacing: -.01em; color: inherit; transition: color .3s var(--fh-ease); }
.fh-scope .fh-en { font-family: var(--fh-font-en, inherit); font-size: var(--fh-en); font-weight: var(--fh-en-w, 400); letter-spacing: .01em; color: var(--fh-sub); transition: color .3s var(--fh-ease); }

/* 영어를 위(앞)에: 글자 순서만 뒤집음 (HTML 은 한글이 먼저 → 검색·화면 읽기 순서는 그대로) */
.fh-scope.fh-en-first .fh-lbl,
.fh-scope.fh-en-first .fh-sublink,
.fh-scope.fh-en-first .fh-logo-text { flex-direction: column-reverse; }

/* 지금 보고 있는 메뉴 */
.fh-scope .fh-item.is-active > .fh-link,
.fh-scope .fh-item.is-active > .fh-link .fh-en { color: var(--fh-accent); }

/* 마우스를 올린 메뉴 (지금 메뉴보다 우선) */
.fh-scope .fh-item:hover > .fh-link,
.fh-scope .fh-item:focus-within > .fh-link,
.fh-scope .fh-item:hover > .fh-link .fh-en,
.fh-scope .fh-item:focus-within > .fh-link .fh-en { color: var(--fh-hover-c); }

/* ================================================================
   마우스 효과 (관리자 > 헤더 편집 > 마우스를 올릴 때)
   ================================================================ */

/* 공통: 메뉴 사이를 미끄러지는 표시. 위치(--l, --t, --w, --b)는 JS 가 글자 크기에 맞춰 계산 */
.fh-scope .fh-ink {
	--l: 0px; --t: 0px; --w: 0px; --b: 0px;
	position: absolute;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition:
		left .6s var(--fh-ease), top .6s var(--fh-ease),
		width .6s var(--fh-ease), height .6s var(--fh-ease),
		opacity .35s, background-color .35s, transform .5s var(--fh-spring);
}
.fh-scope .fh-ink.is-on { opacity: 1; }
.fh-scope .fh-ink.no-anim { transition: none; }

/* ① 떠다니는 배경 (pill) — 은은한 캡슐이 메뉴 뒤를 따라 미끄러짐 */
.fh-scope.fh-fx-pill .fh-ink {
	left: calc(var(--l) - 14px);
	width: calc(var(--w) + 28px);
	top: calc(var(--t) - 10px);
	height: calc(var(--b) - var(--t) + 20px);
	border-radius: 999px;
	background: var(--fh-soft);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fh-hover-c) 12%, transparent);
	transform: scale(.94);
}
.fh-scope.fh-fx-pill .fh-ink.is-on { transform: none; }

/* ② 미끄러지는 밑줄 (line) — 글자 바로 아래 가는 선 */
.fh-scope.fh-fx-line .fh-ink {
	left: var(--l);
	width: var(--w);
	top: calc(var(--b) + 7px);
	height: 2px;
	border-radius: 2px;
	background: var(--fh-accent);
}
.fh-scope.fh-fx-line .fh-ink.is-hover { background: var(--fh-hover-c); }

/* ④ 점 (dot) — 작은 점이 통통 튀듯 이동 */
.fh-scope.fh-fx-dot .fh-ink {
	left: calc(var(--l) + var(--w) / 2 - 3px);
	width: 6px;
	top: calc(var(--b) + 8px);
	height: 6px;
	border-radius: 50%;
	background: var(--fh-accent);
	transition:
		left .55s var(--fh-spring), top .55s var(--fh-ease),
		opacity .3s, background-color .3s, transform .35s var(--fh-spring);
}
.fh-scope.fh-fx-dot .fh-ink.is-hover { background: var(--fh-hover-c); transform: scale(1.2); }

/* ③ 그어지는 밑줄 (draw) — 왼쪽에서 그어지고, 떠날 땐 오른쪽으로 빠짐 */
.fh-scope.fh-fx-draw .fh-lbl::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	border-radius: 2px;
	background: var(--fh-hover-c);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .55s var(--fh-ease);
}
.fh-scope.fh-fx-draw .fh-item:hover > .fh-link .fh-lbl::after,
.fh-scope.fh-fx-draw .fh-item:focus-within > .fh-link .fh-lbl::after { transform: scaleX(1); transform-origin: left center; }
.fh-scope.fh-fx-draw .fh-item.is-active > .fh-link .fh-lbl::after { transform: scaleX(1); background: var(--fh-accent); }
.fh-scope.fh-fx-draw .fh-item.is-active:hover > .fh-link .fh-lbl::after { background: var(--fh-hover-c); }

/* ⑤ 빛 (spotlight) — 마우스 위치를 따라 은은한 빛이 번짐 */
.fh-scope.fh-fx-spotlight .fh-link::before {
	content: "";
	position: absolute;
	inset: 14px -10px;
	border-radius: 14px;
	background:
		radial-gradient(140px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fh-hover-c) 18%, transparent), transparent 70%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fh-hover-c) 14%, transparent);
	opacity: 0;
	transition: opacity .35s;
	pointer-events: none;
}
.fh-scope.fh-fx-spotlight .fh-item:hover > .fh-link::before,
.fh-scope.fh-fx-spotlight .fh-item:focus-within > .fh-link::before { opacity: 1; }

/* ⑥ 글자 굴림 (roll) — 글자가 위로 굴러가고 같은 글자가 아래에서 올라옴 */
.fh-scope.fh-fx-roll .fh-link .fh-ko,
.fh-scope.fh-fx-roll .fh-link .fh-en { position: relative; overflow: hidden; }
.fh-scope.fh-fx-roll .fh-link .fh-t { transition: transform .55s var(--fh-ease); }
.fh-scope.fh-fx-roll .fh-link .fh-ko::after,
.fh-scope.fh-fx-roll .fh-link .fh-en::after {
	content: attr(data-t);
	content: attr(data-t) / "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	transition: transform .55s var(--fh-ease);
}
.fh-scope.fh-fx-roll .fh-link .fh-en .fh-t,
.fh-scope.fh-fx-roll .fh-link .fh-en::after { transition-delay: .04s; }
.fh-scope.fh-fx-roll .fh-item:hover > .fh-link .fh-t,
.fh-scope.fh-fx-roll .fh-item:hover > .fh-link .fh-ko::after,
.fh-scope.fh-fx-roll .fh-item:hover > .fh-link .fh-en::after { transform: translateY(-100%); }

.fh-scope.fh-fx-none .fh-ink,
.fh-scope.fh-fx-draw .fh-ink,
.fh-scope.fh-fx-spotlight .fh-ink,
.fh-scope.fh-fx-roll .fh-ink { display: none; }

/* ---------------------------------------------------------------
   하위 메뉴: 테두리 없이 떠 있는 카드
   --------------------------------------------------------------- */
.fh-scope .fh-sub {
	position: absolute;
	top: calc(100% - 8px);
	left: 50%;
	z-index: 2;
	min-width: 210px;
	max-height: min(72vh, 560px);
	overflow-y: auto;
	padding: 8px;
	background: var(--fh-bg);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(10, 20, 40, .16), 0 2px 10px rgba(10, 20, 40, .06);
	scrollbar-width: thin;
	scrollbar-color: var(--fh-line) transparent;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 12px) scale(.98);
	transform-origin: 50% 0;
	transition: opacity .2s, transform .4s var(--fh-ease), visibility 0s linear .2s;
}
/* 하위 메뉴가 많으면 2열 */
.fh-scope .fh-sub.fh-sub-cols { display: grid; grid-template-columns: repeat(2, minmax(170px, 1fr)); column-gap: 4px; min-width: 390px; }

.fh-scope .fh-item:hover > .fh-sub,
.fh-scope .fh-item:focus-within > .fh-sub,
.fh-scope .fh-item.is-open > .fh-sub {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0) scale(1);
	transition: opacity .2s, transform .45s var(--fh-ease), visibility 0s;
}
.fh-scope .fh-sub li { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .4s var(--fh-ease); }
.fh-scope .fh-item:hover > .fh-sub li,
.fh-scope .fh-item:focus-within > .fh-sub li,
.fh-scope .fh-item.is-open > .fh-sub li {
	opacity: 1;
	transform: none;
	transition-delay: min(calc(var(--i, 0) * 16ms), 140ms);
}
.fh-scope .fh-sublink {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	border-radius: 9px;
	color: var(--fh-text);
	white-space: nowrap;
	transition: color .2s, background-color .2s, padding-left .35s var(--fh-ease);
}
.fh-scope .fh-sublink .fh-ko { font-size: calc(var(--fh-ko) - 1px); font-weight: var(--fh-sub-w, 600); }
.fh-scope .fh-sublink::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--fh-hover-c);
	opacity: 0;
	transform: scale(0);
	transition: opacity .2s, transform .35s var(--fh-spring);
}
.fh-scope .fh-sublink:hover,
.fh-scope .fh-sublink:focus-visible { color: var(--fh-hover-c); background: var(--fh-soft); padding-left: 22px; }
.fh-scope .fh-sublink:hover::before,
.fh-scope .fh-sublink:focus-visible::before { opacity: 1; transform: scale(1); }
.fh-scope .fh-sublink:hover .fh-en,
.fh-scope .fh-sublink:focus-visible .fh-en { color: var(--fh-hover-c); }

/* ---------------------------------------------------------------- 오른쪽 아이콘 */
.fh-scope .fh-tools { flex: none; display: flex; align-items: center; gap: 2px; margin-left: auto; }
.fh-scope .fh-tool {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: calc(var(--fh-icon) + 18px);
	min-width: calc(var(--fh-icon) + 18px);
	padding: 0 8px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	color: var(--fh-text);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: background-color .25s, color .25s;
}
.fh-scope.fh-icons-circle .fh-tool { border-radius: 999px; }
.fh-scope .fh-tool:hover, .fh-scope .fh-tool:focus-visible { color: var(--fh-hover-c); }
.fh-scope.fh-icons-circle .fh-tool:hover, .fh-scope.fh-icons-circle .fh-tool:focus-visible,
.fh-scope.fh-icons-square .fh-tool:hover, .fh-scope.fh-icons-square .fh-tool:focus-visible { background: var(--fh-soft); }

.fh-scope .fh-ic { flex: none; width: var(--fh-icon); height: var(--fh-icon); transition: transform .45s var(--fh-spring); }
.fh-scope .fh-ic-stroke { stroke-width: var(--fh-icon-stroke); }
/* 아이콘마다 어울리는 작은 움직임 */
.fh-scope .fh-t-search:hover .fh-ic { transform: scale(1.12) rotate(-8deg); }
.fh-scope .fh-t-admin:hover .fh-ic { transform: rotate(75deg); }
.fh-scope .fh-t-edit:hover .fh-ic { transform: rotate(-12deg) translateY(-1px); }
.fh-scope .fh-t-login:hover .fh-ic, .fh-scope .fh-t-logout:hover .fh-ic { transform: translateX(2px); }
.fh-scope .fh-t-user:hover .fh-ic, .fh-scope .fh-t-signup:hover .fh-ic { transform: translateY(-2px); }
.fh-scope .fh-tool-text { display: none; }
.fh-scope.fh-toollabels .fh-tool-text { display: inline; }

/* ---------------------------------------------------------------- 검색창 */
.fh-scope .fh-searchbar { background: var(--fh-bg); border-bottom: 1px solid var(--fh-line); box-shadow: 0 16px 40px rgba(10, 20, 40, .08); animation: fh-drop .4s var(--fh-ease); }
@keyframes fh-drop { from { opacity: 0; transform: translateY(-10px); } }
.fh-scope .fh-searchbar form { display: flex; gap: 8px; max-width: var(--fh-max); margin: 0 auto; padding: 14px 20px; }
.fh-scope .fh-searchbar input[type="search"] {
	flex: 1;
	min-width: 0;
	height: 46px;
	padding: 0 16px;
	border: 1px solid var(--fh-line);
	border-radius: 12px;
	background: transparent;
	color: var(--fh-text);
	font: inherit;
	font-size: 15px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.fh-scope .fh-searchbar input[type="search"]:focus { border-color: var(--fh-hover-c); box-shadow: 0 0 0 4px var(--fh-soft); }
.fh-scope .fh-searchbar button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 46px;
	border: 0;
	border-radius: 12px;
	background: var(--fh-soft);
	color: var(--fh-hover-c);
	cursor: pointer;
}
.fh-scope .fh-searchbar button .fh-ic { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- 햄버거 */
.fh-scope .fh-burger {
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 40px;
	border: 0;
	border-radius: 12px;
	background: none;
	cursor: pointer;
}
.fh-scope .fh-burger span { display: block; width: 22px; height: 2px; background: var(--fh-text); border-radius: 2px; transition: transform .35s var(--fh-ease), opacity .2s; }
.fh-scope .fh-burger:hover { background: var(--fh-soft); }
.fh-scope.is-open .fh-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fh-scope.is-open .fh-burger span:nth-child(2) { opacity: 0; }
.fh-scope.is-open .fh-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 1단계: 간격 줄이기 (.fh-small / .fh-compact 와 함께 누적) */
.fh-scope.fh-tight .fh-inner { gap: 14px; padding: 0 14px; }
.fh-scope.fh-tight .fh-menu { gap: min(var(--fh-gap), 8px); }
.fh-scope.fh-tight .fh-link { padding: 0 2px; }
.fh-scope.fh-tight .fh-tools { gap: 0; }
.fh-scope.fh-tight .fh-tool { min-width: calc(var(--fh-icon) + 12px); padding: 0 4px; }
.fh-scope.fh-tight .fh-tool-text { display: none; }

/* 2단계: 글자 조금 작게 */
.fh-scope.fh-small .fh-inner { gap: 10px; }
.fh-scope.fh-small .fh-menu { gap: min(var(--fh-gap), 4px); }
.fh-scope.fh-small .fh-link { padding: 0 3px; }
.fh-scope.fh-small .fh-menu > .fh-item > .fh-link .fh-ko { font-size: calc(var(--fh-ko) - 2px); letter-spacing: -.03em; }
.fh-scope.fh-small .fh-menu > .fh-item > .fh-link .fh-en { font-size: calc(var(--fh-en) - 1.5px); letter-spacing: -.01em; }

/* 3단계: 햄버거 메뉴 */
.fh-scope.fh-compact .fh-inner { gap: 10px; padding: 0 12px; }
.fh-scope.fh-compact .fh-burger { display: inline-flex; }
.fh-scope.fh-compact .fh-ink { display: none; }
.fh-scope.fh-compact .fh-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc(100vh - var(--fh-h));
	overflow-y: auto;
	background: var(--fh-bg);
	border-bottom: 1px solid var(--fh-line);
	box-shadow: 0 24px 50px rgba(10, 20, 40, .14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: opacity .2s, transform .4s var(--fh-ease), visibility 0s linear .2s;
}
.fh-scope.fh-compact.is-open .fh-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .4s var(--fh-ease), visibility 0s; }
.fh-scope.fh-compact .fh-menu { flex-direction: column; align-items: stretch; gap: 0; height: auto; padding: 6px 0 10px; }
.fh-scope.fh-compact .fh-item { display: block; border-bottom: 1px solid var(--fh-line); }
.fh-scope.fh-compact .fh-item:last-child { border-bottom: 0; }
.fh-scope.fh-compact .fh-link { justify-content: flex-start; padding: 14px 20px; white-space: normal; }
.fh-scope.fh-compact .fh-link::before { display: none; }
.fh-scope.fh-compact .fh-lbl { flex-direction: row; align-items: baseline; gap: 10px; text-align: left; transform: none !important; }
.fh-scope.fh-compact .fh-lbl::after { display: none; }
.fh-scope.fh-compact .fh-sub {
	position: static;
	display: block;
	min-width: 0;
	max-height: none;
	padding: 0 12px 10px 16px;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}
.fh-scope.fh-compact .fh-sub.fh-sub-cols { display: grid; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fh-scope.fh-compact .fh-sub li { opacity: 1; transform: none; }
.fh-scope.fh-compact .fh-sublink { flex-direction: row; align-items: baseline; gap: 8px; }
.fh-scope.fh-compact.fh-en-first .fh-lbl,
.fh-scope.fh-compact.fh-en-first .fh-sublink { flex-direction: row-reverse; justify-content: flex-end; }
.fh-scope.fh-compact .fh-logo { max-width: 46%; }
.fh-scope.fh-compact .fh-logo img { max-width: 100%; }

/* 움직임 줄이기를 켠 사용자에게는 애니메이션 없이 */
@media (prefers-reduced-motion: reduce) {
	.fh-scope *, .fh-scope *::before, .fh-scope *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
