@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Nanum+Gothic&family=Noto+Sans+KR:wght@100..900&display=swap');

@font-face {
  font-family: 'Gmarket Sans';
  src: url('../fonts/GmarketSansTTFLight.woff2') format('woff2'),
      url('../fonts/GmarketSansTTFLight.woff') format('woff'),
      url('../fonts/GmarketSansTTFLight.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


body,html{
  scroll-behavior: smooth;
  font-family: 'Gmarket Sans', sans-serif, "Noto Sans KR"!important;
  font-size: clamp(12px, 2vw, 18px) !important;
  margin: 0;
  padding: 0;
}

:root{
  --main_color1 : #00C01E;
  --main_color2 : #067DFD;
  --sub_color1 : #0028AC;
  --sub_color2 : #424242;
  --sub_color3 : #9e9e9e;
  --sub_color4 : #ffffff;
}

.notice_wrap{
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.container {
  display: flex;
  gap: 20px;
  padding: 70px 0px;
}
.sidebar-buttons{
  padding-top: 58px;
}
.sidebar {
  width: 200px;
}

.sidebar button {
  display: block;
  width: 100%;
  padding: 1rem;
  border: none;
  background: #f4f4f4;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid #ccc;
}

.sidebar button:focus,
.sidebar button:active {
  outline: none;
  border: none;
  box-shadow: none;
}

.sidebar button.active {
  background: var(--main_color1);
  color: var(--sub_color4);
  font-weight: bold;
}
.content {
  width: 80%;
}
.tab-content {
  display: none;
}
.tab-content h2{
  margin-bottom: 40px;
}
.tab-content.active {
  display: block;
}
.fap{
  float: right;
  font-size: 16px;
  padding: 10px 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
table th, table td {
  border: 1px solid #ddd;
  padding: 0.75rem;
  text-align: left;
}
.tab-content > .form-section {
  margin-top: 1rem;
}
.form-row {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  gap: 1rem;
}
.form-row label {
  width: 80px;
}
.form-row input, .form-row select, .form-row textarea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
}
.form-section textarea {
  resize: vertical;
}
#inquiry{
  width: 500px;
  margin: 0 auto;
}
.submit-btn, .list_btn {
  font-weight: bold;
  background: var(--main_color1);
  color: var(--sub_color4);
  padding: 1rem 2rem;
  border: none;
  font-size: 1rem;
  margin-top: 1.5rem;
  display: inline-block; 
  text-decoration: none; 
  border-radius: 5px;
}
.list_btn{
  background: var(--main_color2);}

.submit-btn:hover {
  background: var(--sub_color4);
  color: var(--main_color1);
}
.list_btn:hover{
  background: var(--sub_color4);
  color: var(--main_color2);
  text-decoration: none;}

.form-section p {
  margin-top: -1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--sub_color2);
}

.sidebar .notice_mobile{display: none;}

.container hr{display: none;}

@media screen and (max-width: 768px) {
  header,footer{display: none !important;}
  .container {
    flex-direction: column;
    padding: 30px 15px;
    gap: 30px;
    width: 100% !important;
  }

.sidebar {
    display: flex;
    flex-direction: column; 
    padding: 15px 10px 15px 0;
    gap: 10px;
  }

  .sidebar a {
    display: block;
  }

  .notice_mobile {
    display: inline-block;
    font-size: 1.5rem;
    padding: 0 5px;
  }

  .sidebar-buttons {
    display: flex;    
    justify-content: space-around;
    width: 100%;
  }

  .sidebar button {
    flex: 1;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    background: #f4f4f4;
    white-space: nowrap;
    text-align: center;
    margin: 0 5px;
  }

  .sidebar button.active {
    background: var(--main_color1);
    color: var(--sub_color4);
    font-weight: bold;
  }
  .sidebar button:first-child {
    margin-left: 0;
  }

  .sidebar button:last-child {
    margin-right: 0;
  }

  .content {
    width: 100%;
  }
  .content h2{display: none;}

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .form-row input,
  .form-row select,
  .form-row textarea {
    width: 100%;
    flex: none;
  }

  #inquiry {
    width: 100%;
  }

  .submit-btn,
  .list_btn {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  table th, table td {
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  .tab-content h2 {
    font-size: 1.25rem;
  }

  .fap {
    float: none;
    text-align: right;
    display: block;
    font-size: 14px;
    padding: 10px 0;
  }

  .sidebar .notice_mobile {
    display: block;
  }
}