﻿/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

header {
  background: #4CAF50;
  color: white;
  padding: 1rem;
  text-align: center;
  display: none;
}

.close-btn {
  display: none;
}

.hamburger {
  display: none;
  background: #333;
  color: white;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}

nav {
  background: #333;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  text-align: center;
}

nav a:hover {
  background: #0ebe5d;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #444;
  min-width: 170px;
  z-index: 1000;
}

nav ul li:hover ul {
  display: block;
}

.main-hero {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.main-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  background: #f4f4f4;
}

.container .leftareareg {
    display: table-cell;
    width:300px;
}

.main-info {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.main-info img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.main {
  flex: 1;
  padding: 1rem;
  width:100%;
}

footer {
  background: #ddd;
  text-align: center;
  padding: 1rem;
}

/* ALIGN */
.alignC {
    text-align: center;
}

/* padding - 재활용금지 */
.pr15 {
    padding-right:15px;
    display: inline;
}

/* margin */
.mt20 {
  margin-top:20px;
}

/* button area */
.btnarea {
    width: 250px;
    margin: auto;
    padding-top: 30px;
    display: flex;
}

/*text*/
.bluetxt {
    font-weight: 400;
    color: cadetblue;
}

/* 기본: 데스크탑에서는 숨김 */
.mobile-br {
  display: none;
}

/* Button */
.apply-btn01 {
  display: block;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background-color: #28aa6c;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.apply-btn01:hover {
  background-color: #1e8a56;
}

.apply-btn02 {
  display: block;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background-color: #ff9900;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.apply-btn02:hover {
  background-color: #dd890b;
}

.apply-btn03 {
  display: block;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background-color: #d10442;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.apply-btn03:hover {
  background-color: #ec5a7a;
}

.apply-btn04 {
  display: block;
  width: 100%;
  margin: 1rem auto 0;
  padding: 0.75rem 1.5rem;
  background-color: rgb(203 213 225 /1);
  color: #222;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  text-align: center;
}

.apply-btn04:hover {
  background-color: #a7a6a6;
}



/* 반응형 */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #28aa6c;
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 60px;
  }

  nav.open {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: start;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li ul {
    position: static;
    background: #03c75a;
  }

  .has-submenu > a::after {
    content: ' ▼';
    float: right;
    margin-right: 10px;
  }

  .has-submenu.open ul {
    display: block;
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }

  .overlay.show {
    display: block;
  }

  .close-btn {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
  }

  .container .leftareareg {
    display: none;
   }
   
   .btnarea {
      width: 100%;
   }

    .mobile-br {
    display: inline;
  }

  .pr15 {
    display: none;
}


}

@media (min-width: 769px) {
  nav ul li.fixed-width {
    width: 170px;
    flex: 0 0 170px;
  }

  .main-info img {
    width:auto;
    display: inline-block;
   }
}