@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');
@keyframes shake {
    0% { transform: translate( 2px,  1px) rotate( 0deg); }
   10% { transform: translate(-1px, -2px) rotate(-1deg); }
   20% { transform: translate(-3px,  0px) rotate( 1deg); }
   30% { transform: translate( 0px,  2px) rotate( 0deg); }
   40% { transform: translate( 1px, -1px) rotate( 1deg); }
   50% { transform: translate(-1px,  2px) rotate(-1deg); }
   60% { transform: translate(-3px,  1px) rotate( 0deg); }
   70% { transform: translate( 2px,  1px) rotate(-1deg); }
   80% { transform: translate(-1px, -1px) rotate( 1deg); }
   90% { transform: translate( 2px,  2px) rotate( 0deg); }
  100% { transform: translate( 1px, -2px) rotate(-1deg); }
}
@keyframes slide {
    0% { margin-left: 0; }
   10% { margin-left: 0; }
   25% { margin-left: -100%; }
   40% { margin-left: -100%; }
   55% { margin-left: -200%; }
   70% { margin-left: -200%; }
   85% { margin-left: -300%; }
   90% { margin-left: -300%; }
  100% { margin-left: 0; }
}
@keyframes auto_save_success {
    0% { display: block; opacity: 1; background-color: seagreen; }
   70% { display: block; opacity: 1; }
  100% { display: none; opacity: 0; }
}
@keyframes auto_save_fail {
    0% { display: block; opacity: 1; background-color: brown; }
   70% { display: block; opacity: 1; }
  100% { display: none; opacity: 0; }
}
.save_success { animation: auto_save_success 1s; }
.save_fail { animation: auto_save_fail 1s; }

/* animation: shake 0.8s linear infinite; */
/* transition: all .3s ease-in-out; */
/* filter: gray; */
/* -webkit-filter: grayscale(1); */
/* filter: brightness(60%);
-webkit-filter: brightness(60%); */
/* filter: contrast(80%); */
/* flex-grow: 1; */

:root {
    --desktop_width: 1200px;
    --header_height: 100px;
    --max_width: 100%;
    --max_header_height: 50px;
}

.dsp_none { display: none; }

*:not(input,select,button,fieldset) {
    box-sizing: border-box;
    margin: 0;
    border: 0;
    padding: 0;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

html { scroll-behavior: smooth; }
body {
    user-select: none;
    padding-top: var(--header_height);
    background-image: url('/images/background_gray.png');
}

article {
    margin: 0 auto;
    width: var(--desktop_width);
    min-width: var(--desktop_width);
}

/* 상호동작 */
ul:empty::before,
fieldset:empty::before {
    content: '데이터가 없습니다.';
    width: 100%;
    height: 100%;
}

/*== header ==*/
header {
    position: fixed;
    top: 0px;
    z-index: 10;
    width: 100%;
    min-width: var(--desktop_width);
    background-color: white;
    box-shadow: 0 1px 5px gray;
    font-family: 'Poppins';
    font-weight: 600;
    font-size: 21px;
}

header img { vertical-align: middle; }
header a {
    display: block;
    width: 100%;
    height: 100%;
}

header nav {
    margin: 0 auto;
    width: var(--desktop_width);
    height: var(--header_height);
    line-height: var(--header_height);
}
header nav>ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
    text-align: center;
}
header nav>ul>li {
    position: relative;
    width: 250px;
    height: var(--header_height);
}
header nav>ul>li:last-child>a {
    font-weight: 400;
    font-size: 15px;
}

header .sub_menu {
    position: absolute;
    top: var(--header_height);
    display: none;
    width: 100%;
    color: black;
}
header .sub_menu>li {
    border: 1px solid #706F6C;
    border-top: 0;
    height: 50px;
    line-height: 50px;
    background-color: white;
}
header .sub_menu>li:last-child {
    border-radius: 0 0 8px 8px;
}

/* 상호동작 */
header nav>ul>li:hover>ul.sub_menu {
    display: block;
}
header nav>ul>li:hover:not(:first-of-type),
header ul.sub_menu>li:hover {
    background-color: #3F417A;
    color: white;
}

/*== footer ==*/
footer {
    padding: 30px 0;
    width: 100%;
    min-width: var(--desktop_width);
    background-color: #cfcfcf;
    font-family: 'Nanum Gothic';
    font-weight: 400;
    font-size: 16px;
}
footer>article>ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
footer>article>ul>li:last-of-type {
    width: 100%;
}
footer>article>ul>li:not(:last-of-type)::after {
    content: '|';
    padding: 0 4px;
}
footer>article>ul>li>strong {
    font-weight: 700;
    font-size: 18px;
}
footer>article,
footer>article>ul>li>ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: flex-start;/* 세로 상단 정렬 */
}
footer a {
    display: inline-block;
    border-radius: 50%;
    line-height: 0;
}
footer img {
    border-radius: 50%;
}
