/* 기본 스타일 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.6;
}

/* 포커스 스타일 */
a:focus, button:focus {
    outline: 3px solid #1e90ff; /* 포커스된 요소에 파란색 외곽선 추가 */
    outline-offset: 2px;
}

/* 헤더 */
header {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 20px;
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-right: auto;
    cursor: pointer;
}

.logo-image {
    width: 40px;
    height: 40px;
}

/* 내비게이션 */
nav {
    display: flex;
    justify-content: center;
    background-color: #ffffff;
    padding: 10px 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

nav a {
    color: #000000;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    display: block;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1em;
}

nav a:hover, nav a:focus {
    background-color: #f0f0f0;
    color: #333;
}

/* 상품 */
.container {
    flex: 1;
    padding: 20px;
}

img {
    width: 250px;
    height: 250px;
}

.product {
    border: none;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    background-color: #ffffff;
    text-align: center;
}

.product img {
    max-width: 100%;
    height: auto;
}

.product-title {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-price {
    color: #555;
    font-size: 1.1em;
}

/* 버튼 접근성 */
button {
    font-size: 1em;
    padding: 10px 20px;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, button:focus {
    background-color: #0056b3;
    outline: none;
}

/* 푸터 */
footer {
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    text-align: left;
}

footer a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover, footer a:focus {
    color: #555;
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    font-size: 0.875em; /* 회사정보 글자 크기 */
    color: #666;
}

.footer-info div {
    margin-bottom: 5px;
}

.footer-info .line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* 미디어 쿼리 */
@media (max-width: 600px) {
    footer {
        padding: 15px;
    }
    .footer-container {
        padding: 0 15px;
    }
    footer p {
        font-size: 12px;
        line-height: 1.4;
        margin: 5px 0;
        text-align: left;
    }
}

/* 다크 모드 스타일 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1E1E1E;
        color: #ffffff;
    }

    header, nav, .banner, .product, footer {
        background-color: #1E1E1E;
        transition: background-color 0.3s ease;
    }

    nav a {
        color: #ffffff;
    }

    nav a:hover, nav a:focus {
        background-color: #333333;
    }

    .product-price {
        color: #bbb;
    }

    footer a {
        color: #ffffff;
    }

    footer a:hover, footer a:focus {
        color: #ccc;
        text-decoration: underline;
    }

    .footer-info {
        color: #aaa;
    }

    .footer-info .line a {
        color: #ffffff;
    }

    .footer-info .line a:hover, .footer-info .line a:focus {
        color: #ccc;
    }

    .footer-copyright {
        color: #aaa;
    }
}
.banner {
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 10px;
  }
  
  .banner a,
  .banner .dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
  }
  
  .banner a:hover,
  .banner .dropdown-toggle:hover {
    background-color: #1E1E1E;
  }
  
  .banner {
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    padding: 0;
    gap: 10px;
  }
  
  .banner a,
  .banner .dropdown-toggle {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
  }
  
  .banner a:hover,
  .banner .dropdown-toggle:hover {
    background-color: #1E1E1E;
  }
  
  .menu-item {
    position: relative;
  }
  
  .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1E1E1E;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  
  .dropdown a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
  }
  
  .dropdown a:hover {
    background-color: #1E1E1E;
  }
  
  /* 마우스를 올렸을 때 */
  .menu-item:hover .dropdown {
    display: block;
  }
  
  /* 클릭 시에도 열리게 */
  .menu-item.open .dropdown {
    display: block;
  }
  