* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: #111;
  background: #fff;
  min-width: 360px;
}

/* 상단 헤더 */
.top-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.top-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-area .divider {
  width: 1px;
  height: 20px;
  background: #ccc;
}
.logo {
  height: 20px;
}
.history-img {
  height: 20px;
}
.share-btn {
  background: none;
  border: none;
  cursor: pointer;
}
.share-btn img {
  width: 20px;
  height: 20px;
}

/* 공유 팝업 */
.share-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 90%;
  background: white;
  border-radius: 20px;
  transform: translate(-50%, -50%);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  transition: opacity 0.5s ease;
  text-align: center;
  padding: 40px 40px;
}
.share-popup.show {
  display: flex;
}
.popup-title {
  color: #0076ff;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
}
.popup-sub {
  font-size: 14px;
  color: #333;
}
.close-round-btn {
  margin-top: 20px;
  background: #0076ff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  cursor: pointer;
}

/* A영역 상단 컨텐츠 */
.top-content {
  width: 100%;
  padding: 40px 20px;
  background: #fce9ef;
}
.content-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.event-info {
  font-size: 15px;
  color: #e06e92;
  font-weight: bold;
  margin-bottom: 14px;
}
.main-title {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 12px;
  font-family: 'Segoe UI', sans-serif;
}
.subtext {
  font-size: 16px;
  margin-bottom: 24px;
}
.subtext strong {
  font-weight: bold;
}
.pill-wrap {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.pill {
  background: white;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  color: #222;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e1b1b6;
  position: relative;
  margin-bottom: 24px;
}
.pill em {
  position: absolute;
  top: 12px;
  right: -10px;
  background: #eb4c6b;
  color: white;
  font-style: normal;
  font-size: 13px;
  font-weight: bold;
  padding: 4px 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.summary-text {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
}

/* 콘텐츠1~4 */
.content-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.content-box {
  width: 22%;
  max-width: 176px;
  aspect-ratio: 176 / 247;
  border-radius: 36px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 1;
}
.content-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

/* 투표영역 */
.vote-section {
  background-color: #fff;
  min-height: 200px; /* 기존 height: 200px 에서 min-height로 변경 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  border-top: 1px solid #eee;
}


/* 유의사항 상단 중앙 타이틀 */
.notice-title {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin: 0 auto 20px auto;
}

/* 유의사항 박스는 제목 아래로 배치되며 여백 있음 */
.caution-section {
  background-color: #f5f5f5;
  padding: 40px 20px 40px 20px;
}

.caution-box {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.caution-box h2 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.caution-box ul {
  list-style: disc;
  padding-left: 20px;
  color: #333;
  font-size: 14px;
  line-height: 1.7;
}

.caution-box a {
  color: #0075ff;
  text-decoration: underline;
}

/* 푸터 */
.page-footer {
  background: #111;
  color: #ccc;
  font-size: 12px;
  text-align: center;
  padding: 30px 10px;
  line-height: 1.6;
}

/* 모바일 대응 */
@media screen and (max-width: 560px) {
  .top-header .container {
    max-width: 500px;
    width: 100%;
    padding: 15px 15px;
  }

  .main-title {
    font-size: 28px;
  }

  .pill {
    font-size: 12px;
    padding: 5px 12px;
  }

  .pill em {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .subtext,
  .summary-text {
    font-size: 14px;
    letter-spacing: -1px;
  }

  .content-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .content-box {
    flex: 0 0 auto;
  }

  .caution-box {
  background: white;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 16px;
  letter-spacing: -1px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

  .caution-box ul {
  list-style: disc;
  padding-left: 20px;
  color: #333;
  font-size: 12px;
  line-height: 1.7;
}

  .share-popup {
  padding: 20px 20px;
  max-width: 100%;
  width: 300px;
}
}


/* 하단 공유하기 부분 */
.share-inline-section {
  text-align: center;
  margin: 60px auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.share-inline-title {
  font-size: 14px;
  color: #222;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-inline-title img {
  width: 18px;
  height: 18px;
}

.share-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 528px;
  height: 52px;
  background-color: #007bff;
  border-radius: 26px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
}

.share-inline-button img {
  width: 18px;
  height: 18px;
  margin-left: 4px;
}
@media screen and (max-width: 768px) {
    .share-inline-section {
        margin: 10px auto 30px;
        padding: 10px 0;
    }
}

/* === 레이어 팝업 === */
.bottom-layer {
  position: fixed;
  bottom: -400px;
  left: 0;
  width: 100%;
  height: 352px;
  background: #fff;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  transition: bottom 0.5s ease;
  z-index: 2001;
  padding-top: 40px;
}

.bottom-layer.show {
  bottom: 0;
}

.layer-inner {
  padding: 30px 20px 40px;
  max-width: 528px;
  margin: 0 auto;
  text-align: center;
}

.layer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 528px;
  height: 52px;
  background-color: #007bff;
  border-radius: 26px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  gap: 10px;
  padding: 0 16px;
  box-sizing: border-box;
  border: none;
  cursor: pointer;
}

.layer-close {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  border: none;
  font-size: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  z-index: 2002;
}

/* 레이어 전용 dim */
.layer-dim {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
}

.layer-dim.show {
  display: block;
}

@media screen and (max-width: 768px) {
  .bottom-layer {
    height: 300px;
  }
}

.accordion-header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.accordion-header.fixed + .accordion-body.show {
  margin-top: 60px;
}