/* 전체 요소 box-sizing 설정 */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: #eeecf1;
  color: #373737;
  margin: 0;
  line-height: 1.3;
}

strong {
  font-weight: 800;
}

.page-wrapper {
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

.site-header {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background: linear-gradient(to right, #004aad, #6a3bf0);
  color: #fef9f4;
}


.site-header h1 {
  font-size: 15px;
  color: #fffaf1;
  margin: 0;
}

.footer {
  width: 100%;
  padding: 20px 0;
  text-align: center;
  background-color: #fffaf1;
}

.footer-content strong {
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow-wrap: normal;
}

.footer-content small {
  font-size: 14px;
  display: block;
}

@media (max-width: 768px) {
  .footer-content strong {
    white-space: normal !important;
    word-break: keep-all;
    line-height: 1.5;
  }
}

.hero-section {
  text-align: center;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(to right, #004aad, #6a3bf0);
}

#main-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
}

.slogan-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

#intro-main {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #004aad;
  font-size: 16px;
  z-index: 2;
}

#join-us-text {
  font-size: 15px;
  font-weight: bold;
  color: #004aad;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #eeecf1;
  margin: 0;
}

#down-arrow-icon {
  width: 20px;
  height: auto;
  animation: upAndDown 1s infinite;
  display: block;
}

@keyframes upAndDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

#list-item-wrapper {
  margin: 120px auto;
  padding: 0 15px;
  max-width: 383px;
  min-width: 319px;
}

.list-item {
  display: inline;
  font-size: 50px;
  font-weight: 600;
  text-align: center;
  color: rgba(204, 228, 255, 0.2);
  line-height: 1.2;
}

.list-item#on {
  color: #fffaf1;
}

@media (max-width: 768px) {
  .list-item-wrapper {
    padding: 0 30px;
  }

  .list-item {
    font-size: 36px;
  }
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.section-underline-base {
  width: 120px;
  height: 4px;
  margin: 16px auto 32px;
  border-radius: 2px;
}

.section-underline-dark {
  background: linear-gradient(to right, #004aad, #6a3bf0);
}

.section-underline-light {
  background-color: #fffaf1;
}

.section p {
  font-size: 1.2rem;
  margin: 20px 0;
}

.section small {
  font-size: 14px;
  display: block;
}

@media (max-width: 768px) {
  .section p {
    font-size: 1rem;
  }

  .section small {
    font-size: 12px;
  }
}

#section1 {
  background: #fffaf1;
}

#section2 {
  color: #fffaf1;
  background: linear-gradient(to right, #004aad, #6a3bf0);
}

#section3 {
  background-color: #fffaf1;
}

#section4 {
  color: #fffaf1;
  background: linear-gradient(to right, #004aad, #6a3bf0);
}

.bus-emoji {
  font-size: 6rem;
  display: inline-block;
  animation: drive 2s ease-in-out infinite alternate;
}

@keyframes drive {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(20px); /* 왼→오 작은 이동 */
  }
}

.survey-link,
.survey-link-end,
.survey-link-light {
  margin-top: 10px;
  display: inline-block;
  padding: 16px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* 더 진한 그림자 */
}

.survey-link {
  background: linear-gradient(to right, #004aad, #6a3bf0);
  color: #fffaf1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-link-end {
  background: #ccc;
  color: #666;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.survey-link-light {
  background: #fffaf1;
  color: #004aad;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-link:hover,
.survey-link-light:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.survey-link-light a {
  text-decoration: none;
  color: inherit;
}

/* SVG 타임라인 */
.timeline-wrapper {
  max-width: 600px;
  margin: 10px auto;
}

.timeline-wrapper svg {
  width: 100%;
  height: auto;
}

.timeline-path {
  fill: none;
  stroke: #004aad;
  stroke-dasharray: 6, 6;
  stroke-width: 3;
}

.point-circle {
  fill: #fffaf1;
  stroke: #004aad;
  stroke-width: 4;
}

.emoji {
  font-size: 18px;
  dominant-baseline: middle;
  text-anchor: middle;
}

.label {
  font-size: 12px;
  font-weight: bold;
  text-anchor: start;
  fill: #373737;
}

.qr-or-text {
  text-align: center;
  margin: 16px 0 8px;
  font-size: 14px;
  color: #fffaf1;
}

.qr-code {
  margin-top: 20px;
  text-align: center;
}

.qr-code img {
  width: 140px;
  height: auto;
}

#section3 iframe {
  position: relative;
  z-index: 1;
}

.floating-nav {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: auto;
}

.floating-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(55, 55, 55, 0.6);
  color: #fffaf1;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.floating-nav a:hover {
  background-color: rgba(55, 55, 55, 0.8);
  transform: scale(1.1);
}

.floating-nav a.share-float {
  animation: bounceAttention 2s infinite;
}

@keyframes bounceAttention {
  0%, 100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.15);
  }
  40% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
}

@media (max-width: 768px) {
  .floating-nav {
    bottom: 12px;
    left: 12px;
    gap: 8px;
  }

  .floating-nav a {
    width: 36px;
    height: 36px;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
}

#slider-wrapper {
    padding-top: 0px;
    position: relative;
    height: 540px;
    z-index: 100;
}

#slider-container {
    margin: 0 auto;
    position: relative;
    width: 240px;
}

#slider-content-wrapper {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

#slider-content-wrapper::-webkit-scrollbar {
    width: 0;
}

#slider-content {
    display: flex;
}

.slider-image {
    width: 300px;
    height: 466px;
    scroll-snap-align: center;
}

.slider-button {
    position: absolute;
    bottom: -40px;
    font-size: 40px;
    cursor: pointer;
}

#left-button {
    left: 10px;
}

#right-button {
    right: 10px;
}

#slider-index {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.campaign-box {
  color: #373737;
  background: #f7f3ff;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 24px 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.campaign-schedule {
  list-style: none;
  padding-left: 0;
  margin: 16px 0;
}

.campaign-schedule li {
  font-size: 15px;
  margin: 6px 0;
}

.balloon-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.balloon-label {
  font-weight: bold;
  color: #373737;
  font-size: 14px;
  margin-bottom: 14px;
}

.tooltip-box {
  position: relative;
  background: #5e17eb;
  color: #fffaf1;
  padding: 16px 22px;
  border-radius: 24px;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  animation: floaty 3s ease-in-out infinite;
}

.tooltip-box::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-bottom-color: #5e17eb;
}

@keyframes floaty {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .campaign-box {
    padding: 24px 20px;
  }

  .tooltip-box {
    font-size: 14px;
    padding: 14px 18px;
  }
}

#copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #373737;
  color: #fff;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  z-index: 9999;

  display: inline-block;
  width: auto;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;

  transition: opacity 0.6s ease, transform 0.4s ease;
}

#copy-toast.show {
  opacity: 1;
}

.floating-nav a:nth-child(2) {
  position: relative;
  z-index: 10000;
}

.floating-nav a:nth-child(2) .balloon {
  position: absolute;
  top: 50%;
  left: 44px;
  transform: translateY(-50%);
  background-color: rgba(255, 239, 150, 0.85);
  color: #333;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 20000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.floating-nav a:nth-child(2) .balloon.show {
  opacity: 1;
  visibility: visible;
}
