:root {
  /* 색상 */
  --font: #333333;
  --font-sub: #898989;
  --green: #378F0D;
  --green-sub: #C9FF65;
  --green-bg: #E8FFDC;
  --white: #FFFFFF;
  --white-sub: #F5F5F5;
  --border: #CBCBCB;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0 solid;
}

html {
  font-size: 16px;
  min-width: 320px;
}

.h2 {
  text-align: center;
  font-size: 32px;
  line-height: 36px;
  color: var(--green);
}

body {
  font-family: 'NanumSquareNeo';
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  color: var(--font, #333);
  background: var(--background, #fff);
  line-height: 24px;
}

section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1280px;
  padding: 0 32px;
}

.full-width {
  max-width: 100%;
}

.header {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.header .container {
  display: flex;
  height: 84px;
  padding: 0 32px;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 72px;
  list-style: none;
  line-height: 120%
}

.nav a {
  color: var(--font);
  text-decoration: none;
}

.btn-apply {
  background: var(--green);
  color: var(--white);
  padding: 0px 16px;
  border-radius: 36px;
  text-decoration: none;
  font-size: 14px;
  line-height: 30px;
}

/* 햄버거 메뉴 스타일 */
.hamburger-menu {
  /* display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; */
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  gap: 4px;
}

.hamburger-menu .bar {
  display: block;
  width: 36px;
  height: 6px;
  background-color: var(--font, #333);
  border-radius: 2px;
  transition: 0.3s;
  position: relative;
}

/* X로 변환되는 애니메이션 */
.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hamburger-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.hamburger-menu:hover .hamburger-icon {
  transform: scale(1.1);
}

.hamburger-menu.active .hamburger-icon {
  transform: rotate(90deg);
}

/* 모바일 전체화면 메뉴 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--white);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: transparent;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--font);
  z-index: 1001;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav li {
  margin: 32px 0;
}

.mobile-nav a {
  color: var(--font);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  display: block;
  padding: 16px;
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--green);
}

.main-intro {
  background: var(--background, #fff);
}

.main-intro .container {
  position: relative;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-text {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  margin: 140px 0 152px 68px;
  z-index: 2;
}

.main-text h1 {
  font-size: 36px;
  line-height: 70px;
  list-style: none;
}

.main-text span {
  display: block;
  font-size: 58px;
  line-height: 120%;
}

.main-text p {
  color: var(--font-sub);
}

.main-text .btn-main {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 16px 64px;
  border-radius: 64px;
  margin-top: 16px;
  text-decoration: none;
}

.main-img {
  position: absolute;
  left: 442px;
  bottom: 0;
  width: 838px;
  pointer-events: none; 
}

.main-img img {
  width: 100%;
  height: auto;
  display: block;
}

.onong-info {
  height: 359px;
  background: var(--white-sub);
  background-image: url("/images/farmers.png");  background-position: center;
  background-repeat: no-repeat;
  justify-content: center;
}

.onong-info .container {
  max-width: 960px;
}

.onong-desc h2 {
  margin-bottom: 9px;
  color: var(--green-bg);
  font-size: 30px;
  line-height: 120%;
  text-align: center;
}

.onong-desc p {
  color: var(--white);
}

/* ----------- 기능소개(Features) 시안 스타일 - 수정 ----------- */
.features {
  background: #fff;
  padding: 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 60px;
  align-self: stretch;
}

.feature-section {
  max-width: 1080px;
}

.feature-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.feature-section.reverse .container {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-content .title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 24px;
  line-height: normal;
}

.feature-content .title-group p {
  font-size: 20px;
}

.feature-content .title-group .h3 {
  font-size: 32px;
  font-weight: 700;
}

.feature-content .title-group .frame-inner {
  width: 100% !important;
  position: relative;
  background-color: var(--font);
  height: 2px;
}

.feature-content-desc {
  color: var(--font-sub);
}

.feature-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-image img,
.feature-image video {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.line-div {
  width: 100%;
  max-width: 1080px;
  position: relative;
  border-top: 3px dashed #3e8c66;
  box-sizing: border-box;
  height: 3px;
}

.required-dot {
  color: #ff4444;
  font-size: 16px;
  font-weight: bold;
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
}

/* ----------- 문의하기 스타일 ----------- */
.contact {
  display: flex;
  padding: 72px 0px;
  background: var(--white-sub);
  flex-direction: column;
  align-items: center;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  align-items: center;
}

.contact p {
  max-width: 562px;
  text-align: left;
  color: var(--font-sub);
}

.contact .g-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact form {
  display: flex;
  width: 100%;
  max-width: 720px;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: var(--white);
}

.contact input,
.contact textarea {
  display: flex;
  align-items: center;
  width: 100%;
  border-width: 0 0 1px;
  padding: 8px;
  border-color: var(--border);
  line-height: 1.5;
}

.contact textarea {
  height: 158px;
  resize: vertical;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--border);
  line-height: 100%;
}

.contact textarea::placeholder {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.contact .form-group {
  position: relative;
  width: 100%;
}

.contact .form-group-input-wrapper {
  display: flex;
  align-items: center;
}

.contact .form-group-input-wrapper span {
  width: 6px;
  height: 6px;
  margin-right: 8px;
}

.contact .form-group.required span {
  border-radius: 8px;
  background: #F00;
}

.contact .input-error {
  color: #c62828;
  font-size: 12px;
  margin-top: 5px;
  min-height: 15px;
  display: none;
}

.contact .form-message {
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  display: none;
}

.contact .privacy-agree-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
  color: var(--font-sub);
}

.contact .privacy-agree-check {
  display: flex;
  align-items: center;
  font-size: 14px;
  flex-shrink: 1;
}

.contact .privacy-agree-check input[type="checkbox"] {
  appearance: none;
  width: 24px;
  min-width: 24px;
  height: 24px;
  flex: 1;
  border:1px solid var(--font-sub);
  border-radius: 4px;
  flex-shrink: 0;
}
.contact .privacy-agree-check input[type="checkbox"]:checked {
  background-color: var(--font-sub);
  background-image: url("data:image/svg+xml,%3csvg viewBox='2.5 2.5 11 11' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
}

.contact .privacy-agree-check label {
  margin-left: 16px;
}

.contact .privacy-agree-group button {
  width: 72px;
  border-radius: 4px;
  background: #5D5D5D;
  color: var(--green-bg);
  font-size: 12px;
  line-height: normal;
  padding: 4px;
  cursor: pointer;
}

.contact .form-message.error {
  display: block;
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.contact.form-message.success {
  display: block;
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.contact .btn-submit {
  width: 200px;
  background: var(--green);
  color: var(--white);
  border: none;
  padding: 16px 64px;
  border-radius: 64px;
  font-size: 16px;
  cursor: pointer;
}

/* ----------- 푸터 스타일 ----------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--font);
  color: var(--white);
  text-align: left;
  font-size: 14px;
  line-height: 120%;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 55px 100px;
}

.footer .line {
  width: 100%;
  height: 1px;
  background: #ABABAB;
}

.footer .footer-text-group {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 16px 36px;
  align-self: stretch;
  flex-wrap: wrap;
}

.footer .footer-text span {
  margin-right: 4px;
}

.footer .privacy-policy-link {
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.footer .copyright {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  line-height: 18px;
}

/* ----------- 개인정보 취급방침 ----------- */
.privacy-policy-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.privacy-policy-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 90%;
  max-width: 500px;
  max-height: 60vh;
  background-color: white;
  border-radius: 16px;
  padding: 32px 16px;
  overflow-y: auto;
  gap: 32px;
}

.privacy-policy-title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

.privacy-policy-bar {
  width: 100%;
  min-height: 1px;
  background-color: var(--font-sub);
}

.privacy-policy-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.privacy-policy-text p {
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.privacy-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.privacy-table-row {
  display: flex;
  width: 100%;
}

.privacy-table-header {
  background-color: var(--white-sub);
}

.privacy-table-cell {
  padding: 8px;
  font-size: 12px;
  color: var(--font);
  display: flex;
  align-items: center;
}

.privacy-table-cell-purpose {
  width: 60%;
  justify-content: flex-start;
}

.privacy-table-cell-items {
  width: 25%;
  justify-content: flex-start;
}

.privacy-table-cell-period {
  width: 15%;
  justify-content: flex-start;
}

.privacy-table-header .privacy-table-cell {
  justify-content: center;
}

.privacy-table-body .privacy-table-cell{
  border-top: 1px solid var(--border);
}

.privacy-table-cell + .privacy-table-cell{
  border-left: 1px solid var(--border);
}

.privacy-policy-confirm {
  flex: 1;
  width: 100%;
  position: relative;
  border-radius: 8px;
  background-color: var(--green);
  height: 52px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  text-align: center;
  font-size: 18px;
  color: var(--white);
}

/* ----------- 메시지 팝업 스타일 ----------- */
.message-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.message-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90%;
  max-width: 400px;
  background-color: white;
  border-radius: 16px;
  padding: 32px 24px;
  gap: 24px;
}

.message-popup-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.message-popup-title {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--font);
  line-height: 1.4;
  word-break: keep-all;
  margin-bottom: -12px;
}

.message-popup-content-text {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--font);
  line-height: 1.4;
  word-break: keep-all;
}

.message-popup-confirm {
  width: 100%;
  max-width: 200px;
  padding: 12px 24px;
  border-radius: 64px;
  background-color: var(--green);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.message-popup-content.error .message-popup-confirm {
  background-color: #D32F2F;
}

/* ----------- 폰트 스타일 & 공동 스타일 ----------- */
.fw-light {
  font-weight: 350;
}

.fw-normal {
  font-weight: 400;
}

.fw-bold {
  font-weight: 700;
}

.fw-extra-bold {
  font-weight: 800;
}

.fw-black {
  font-weight: 900;
}

.show {
  display: block !important;
}

.color-green-sub {
  color: var(--green-sub);
}

/* ----------- 반응형 ----------- */
@media (max-width: 900px) {
  .container {
    padding: 0 16px;
  }
}

/* ----------- 모바일 ----------- */
@media (max-width: 767px) {
  .hamburger-menu {
    display: flex;
  }

  .nav,
  .btn-apply {
    display: none;
  }

  .mobile-menu {
    display: block;
  }

  .main-intro .container {
    padding: 0;
    flex-direction: column;
    gap: 45px;
  }

  .main-intro .main-text {
    margin: 52px 22px 0 22px;
  }

  .main-text h1 {
    line-height: normal;
  }

  .main-intro .btn-apply-wrapper {
    width: 100%;
    display: flex;
    /* justify-content: center; */
  }

  .main-intro .main-img {
    position: relative;
    left: 0;
    width: 130%;
    max-width: 838px;
  }

  .onong-info {
    height: auto;
  }

  .onong-info .container {
    padding: 53px 10px 94px;
  }

  .feature-section .container,
  .feature-section.reverse .container {
    flex-direction: column;
    text-align: left;
    gap: 24px;
  }

  .footer .container {
    padding: 55px 24px;
  }

  .privacy-policy-content {
    width: 95%;
    padding: 24px 16px;
  }

  .message-popup-content {
    max-width: 95%;
    padding: 24px 16px;
  }
  
  .message-popup-message {
    font-size: 14px;
  }
}