/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: white;
  background-image: url("../img/main/background.png");
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
}

body {
  margin: 0 auto;
  background-color: #0013c4;
  min-height: 100vh;
  font-family: "Pretendard", sans-serif;
  color: #000;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
}

.wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background-color: white;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #0013c4;
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-bar {
  display: none;
  width: 100%;
  height: 54px;
  padding: 0 28px;
  background-color: #0013c4;
}

.logo img {
  height: 20px;
  padding-top: 2px;
}

/* Product Cards */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
}

.product-card {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  padding: 8px 12px;
  color: #0013c4;
  font-size: 14px;
  font-weight: 600;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

/* 각 배경 이미지 */
.bg1 {
  background-image: url("../img/main/item_01h.jpg");
}

.bg2 {
  background-image: url("../img/main/item_02h.jpg");
}

.bg3 {
  background-image: url("../img/main/item_03h.jpg");
}

.bg4 {
  background-image: url("../img/main/item_04h.jpg");
}

.bg5 {
  background-image: url("../img/main/item_05h.jpg");
}

.bg6 {
  background-image: url("../img/main/item_06h.jpg");
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mailing Section */
.mailing {
  background-color: #f5f5f5;
  padding: 40px 28px;
}

.mailing p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* .mailing .email {
  font-size: 22px;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid black;
  width: 100%;
} */

.email-wrapper {
  font-size: 22px;
  font-weight: 500;
  padding-bottom: 4px;
  width: 100%;

  display: flex;
  align-items: center;
  border-bottom: 1px solid black;
  position: relative;
  cursor: pointer;
  min-height: 40px;
}

#emailInput,
#emailSendBtn {
  display: none;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

#emailInput {
  flex: 1;
}

#emailSendBtn {
  background: black;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  margin-left: 8px;
  cursor: pointer;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: calc(100% - 56px);
  max-width: 334px;
  height: 100vh;
  overflow-y: auto;
  background: #0013c4;
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.sidebar.open {
  right: 0;
}

.sidebar-inner {
  width: 100%;
  height: 100%;
  padding: 15px 28px 0;
  display: flex;
  justify-content: flex-start;
}

.sidebar-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.sidebar-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header img {
  height: 20px;
}

.sidebar-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-title,
.sidebar-title-little,
.sidebar-subtitle,
.sidebar-contact,
.sidebar-contact2 {
  font-family: Pretendard;
  color: white;
}

.sidebar-title {
  font-size: 22px;
  font-weight: 600;
}

.sidebar-title-little {
  font-size: 20px;
  font-weight: 600;
}

.sidebar-subtitle {
  font-size: 20px;
  font-weight: 300;
}

.sidebar-line {
  width: 100%;
  height: 0;
  outline: 2px solid white;
  outline-offset: -1px;
}

.sidebar-contact {
  font-size: 20px;
  font-weight: 300;
}

.sidebar-contact2 {
  margin-top: -8px;
}

.sidebar-contact strong {
  font-weight: 600;
}

.email-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  /* strong 스타일 유지 */
  user-select: none;
  -webkit-user-select: none;
  /* Safari/Chrome */
  -webkit-tap-highlight-color: transparent;
  /* 탭 강조 제거 */
}

/* Footer */
.footer {
  background-color: #0013c4;
  color: white;
  padding: 32px 28px 54px;
}

.footer-logo {
  margin-bottom: 28px;
}

.footer h3,
.footer h4 {
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  border-bottom: 1px solid white;
  padding-bottom: 2px;
  margin-bottom: 8px;
}

.footer h4 {
  margin-top: 16px;
  padding-bottom: 4px;
}

.footer p {
  font-size: 14px;
  font-weight: 300;
}

.footer strong {
  font-weight: 500;
}
