:root{
  --text: #1a1a1a;
  --main: #1c2331;
  --button : #3d7cff;
  --backgound : #f4f6f8;
  --sub_border : #EBEBEB;
  --background_border : #DBDBDB;
}
body{
  color: var(--text);
  font-size: 16px;
  line-height: 16px;
  padding: 0px;
  margin: 0;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
               'Apple SD Gothic Neo', 'Segoe UI', Arial, sans-serif;
}

.main_container{
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.container{
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
}

.page{
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url('/images/background/main_background.webp');
  background-size: cover;
}

.main_header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  transition:all 200ms ease;
  height: 64px;
  display: flex;
  align-items: center;
  color: #666;
  z-index: 2;
}

.scrolled{
  background-color: rgba(255, 255, 255, 1);
}

.header_contents{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user_main{
  position: relative;
  flex: 1;
}

.user_sub{
  position: relative;
  flex: 1;
  background-color: var(--backgound);
}

footer{
  height: 100px;
  width: 100%;
  background-color: transparent;
  position: relative;
  margin-top: auto;
  z-index: 2;
}

.main_contents{
  width: 100%;
  display: grid;
  margin-top: 64px;
  /* padding-top: 15vh; */
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 20vh auto;
  gap: 10px;
}

.welcom_box{
  grid-column: 2/5;
  grid-row: 1/2;
  color: #333;
}

.sub_box{
  align-self: center;
  grid-column: 2/5;
  grid-row: 2/3;
  color: #333;
}

.welcom_box > p {
  margin: 0;
}

.top_box {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top_box > img{
  object-fit: contain;
  display: block;
}

.top_box .wel_company{
  margin: 0;
  line-height: 1;
}

.wel_company{
  font-size: 3rem;
  height: 3rem;
}

.wel_title{
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 600;
  word-break: keep-all;
  margin: 0;
  height: auto;
}

.wel_text{
  font-size: 1rem;
  height: 1rem;
}

.text_shadow{
  text-shadow: 3px 3px 4px rgba(0, 0, 0, 30%);
}

.user_box{
  grid-column: 9/12;
  grid-row: 1/3;
  background-color: rgba(255, 255, 255, 1);
  border-radius: 8px;
  padding: 32px;
  color: rgb(56, 56, 56);
  box-shadow: 0px 0px 50px rgba(19, 28, 78, 0.1);
}

.info_box{
  grid-column: 5/9;
  grid-row: 1/2;
  display: flex;
  justify-content: space-between;
  height: 100%;
  align-items: center;
  text-align: center;
}

.info_box > a{
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info_box > a > div > i{
  font-size: 4rem;
}

.info_box > a > div{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;          /* 아이콘-텍스트 간격 */
  color: #666;
}


.dash_line {
  border-right: 3px dashed var(--background_border);
  height: 100%;
}

.info_box > a > div > p{
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
}

.note_box{
  grid-column: 5/9;
  grid-row: 2/3;
  background-color: rgba(145, 145, 145, 0.2);
  border-radius: 8px;
  /* margin-top: 100px; */
  color: rgb(114, 114, 114);
  padding: 20px;
}

.notices_header{
  display: grid;
  grid-template-columns: 
  50px
  300px
  1fr;
  align-items: center;
  border-bottom: rgb(210, 210, 210) 1px solid;
}

.notices_box {
  background-color: white;
  border: 1px solid var(--background_border);
  padding: 20px;
  border-radius: 8px;
  margin-top: 10px;
}

.notice_line {
  display: grid;
  grid-template-columns: 
  50px
  300px
  1fr;
  align-items: center;
  border-bottom: rgb(210, 210, 210) 1px solid;
}

.last{
  justify-self: end;
}

.bottom_line{
  margin-top: 5px;
  border-bottom: rgb(210, 210, 210) 1px solid;
}

.big_txt{
  font-size: 1.8rem;
  font-weight: 500;
  margin:10px 0 10px 0;
}

.small_txt{
  font-size: 1rem;
  font-weight: 100;
  margin: 10px 0 10px 0;
}

.footer_main{
  display: flex;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  color: #666;
  font-size: 0.8rem;
}

.subtitle span{
  font-size: 1.5rem;
  font-weight: 500;
}

.subtitle .red{
  color: red;
}

.subtitle .default{
  color: #2b2dc0;
}

.subtitle p{
  font-size: 1.2rem;
  font-weight: 500;
}

.header_logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header_logo > label{
  font-size: 1.3rem;
}

/* .box_text {
  color: black;
} */

/* 모바일 */
@media (max-width: 768px){ 

  .user_main {
    padding: 16px;
  }

  .main_contents{
    grid-template-columns: 1fr !important;  /* ✅ 12 → 1 */
    padding: 0;
    margin: 0;
  }

  .welcom_box,
  .user_box,
  .note_box{
    grid-column: auto;
    grid-row: auto;
    padding: 16px;                    /* user_box 32px는 모바일에서 과함 */
  }

  .wel_title{
    font-size: 2rem;
    height: auto;
  }

  .notice_line,
  .notices_header{
    grid-template-columns: 44px 1fr auto;
    column-gap: 8px;
  }

  /* 제목은 길면 말줄임 */
  .notice_line .cell:nth-child(2),
  .notices_header > :nth-child(2){
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* 부서명도 너무 길면 말줄임 */
  .notice_line .last{
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    justify-self: end;
  }

  .note_box{
    display: none;
  }

  .footer_main{
    justify-content:center;
  }

  .footer_cert {
    display: none;
  }

  .footer_info{
    text-align: center;
  }

  .header_contents{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
  }

  .user_sub{
    position: relative;
    flex: 1;
    background-color: var(--backgound);
    padding: 0 16px;
  }

  .agree_box > .title{
    line-height: 40px;
  }
}