/* File: common.css (모바일 퍼스트 공통 CSS)
   - 모든 서브사이트에서 공통으로 사용
   - 모바일 우선, min-width 미디어쿼리 적용
*/
@charset "utf-8";

/* 리셋 & 베이스 */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
  font-family: "Malgun Gothic", sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

/* 타이포그래피 */
h1 { font-size: 2rem; margin: 1.5rem 0; }
h2 { font-size: 1.75rem; margin: 1.4rem 0; }
h3 { font-size: 1.5rem;  margin: 1.3rem 0; }
h4 { font-size: 1.25rem; margin: 1.2rem 0; }
h5 { font-size: 1rem;    margin: 1rem  0; }
h6 { font-size: 0.875rem; margin: 0.8rem 0; }

p, ul, ol, blockquote, pre, code { margin: 1rem 0; }
ul, ol { padding-left: 1.5rem; }
li { margin: 0.5rem 0; }

/* 링크 */
a { color: #04AA6D; text-decoration: underline; }
a:hover { color: #e60073; }

/* 컨테이너 */
.container {
  width: 100%;
  max-width: 100%;
  margin: 3.75rem auto 0;
  padding: 0.5rem;
  background: #fff;
  min-height: 100vh;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
@media (min-width: 600px) { .container { max-width: 600px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px){ .container { max-width:1140px; } }

/* 내비게이션 */
.navigation {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 50px;
  display: flex; align-items: center;
  padding: 0.5rem 1rem;
  background: #000;
  z-index: 1000;
}
.navigation a { color: #fff; text-decoration: none; font-size: 1.0625rem; }
.logo-img { height: 2rem; }

/* 검색 */
.search-toggle { display: inline-flex; align-items: center; padding: 0.5rem 1rem; font-size:1rem; background:#007BFF; color:#fff; border:none; border-radius:4px; cursor:pointer; }
.search-toggle:hover { background: #0056b3; }
.search-form {
  display: none;
  width: 100%; max-width: 500px;
  margin: 1rem auto;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(-10px);
}
.search-form.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.search-form input[type="text"] { width:100%; padding:0.5rem; border:1px solid #ccc; border-radius:4px; margin-bottom:0.75rem; }
.search-form button[type="submit"] { padding:0.5rem 1rem; background:#28a745; color:#fff; border:none; border-radius:4px; cursor:pointer; }
.search-form button[type="submit"]:hover { background:#218838; }

/* 푸터 */
.site-footer, .footer {
  margin-top: 2rem;
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.site-footer a, .footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .footer a:hover { text-decoration: underline; }

/* 유틸 */
.show { display: block; }
.visually-hidden {
  position: absolute !important;
  width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* 반응형 관련 나머지 */
/* 기타 공통 스타일(버튼, 페이징 등)은 필요한 경우 컴포넌트별 파일로 분리 권장 */


