/* GmarketSansMedium 폰트 정의 */
@font-face {
  font-family: "GmarketSansMedium";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff")
    format("woff");
  font-weight: normal;
  font-style: normal;
}
* {
  font-family: "GmarketSansMedium", "Apple SD Gothic Neo", "맑은 고딕",
    sans-serif;
  word-break: keep-all;
}
@media (max-width: 900px) {
  #mobile-menu-button {
    display: block;
  }
  #desktop-menu {
    display: none;
  }
}

@media (min-width: 901px) {
  #mobile-menu {
    display: none !important;
  }
}
.main-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.main-banner .banner-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.main-banner .content-wrapper {
  background: transparent;
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* 상단/하단 구분선 */
.main-banner .main-title::before,
.main-banner .main-title::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background: #ccc;
  margin: 30px 0;
}

/* 메인 타이틀 스타일 */
.main-banner .main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  text-align: center;
  padding: 20px 0;
  letter-spacing: 0.5em;
  text-shadow: 3px 4px 5px rgb(172, 172, 172);
}

.main-banner .title-line {
  margin: 0.5rem 0;
}

/* 서브타이틀 스타일 */
.main-banner .subtitle {
  margin: 40px auto;
  position: relative;
  max-width: 800px;
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
}

.main-banner .subtitle p {
  margin: 10px 0;
}
.main-banner .subtitle p:first-child {
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.main-banner .cta-text {
  text-align: center;
  font-size: 1.2rem;
  color: #444;
  font-weight: 600;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .main-banner {
    padding: 2rem 0;
  }

  .main-banner .content-wrapper {
    padding: 2rem;
    margin: 0 1rem;
  }

  .main-banner .content-wrapper::before,
  .main-banner .content-wrapper::after {
    margin: 20px 0;
  }

  .main-banner .main-title {
    font-size: 2rem;
  }

  .main-banner .subtitle {
    font-size: 1rem;
    margin: 30px auto;
  }

  .main-banner .cta-text {
    font-size: 1.1rem;
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  .main-banner .main-title {
    font-size: 1.8rem;
  }

  .main-banner .content-wrapper {
    padding: 1.5rem;
  }

  .main-banner .main-title {
    font-size: 1.8rem;
  }

  .main-banner .content-wrapper::before,
  .main-banner .content-wrapper::after {
    margin: 15px 0;
  }
}
@media (max-width: 345px) {
  .main-banner .main-title {
    font-size: 1.6rem;
  }
}
/* imagination */
.imagination {
  background: linear-gradient(
    135deg,
    #2b2b2b 0%,
    #4b0082 30%,
    #0066ff 60%,
    #ff8c00 100%
  );
  position: relative;
  overflow: hidden;
  height: 700px;
}

.imagination::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/imagination_banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 1;
}

.imagination::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.imagination .content-wrapper {
  position: relative;
  z-index: 3;
}

.imagination .highlight-text {
  color: #ffffff;
  font-weight: 700;
}

.imagination .accent-text {
  color: #99ccff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.imagination .underline-text {
  border-bottom: 1px solid #ffffff;
  display: inline-block;
  padding-bottom: 2px;
}

/* new-features */
.new-features .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.new-features .feature-card {
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.new-features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.new-features .feature-card:nth-child(even) {
  margin-top: 4rem;
  margin-bottom: -4rem;
}

.new-features .feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.new-features .feature-content {
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .new-features .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .new-features .feature-grid {
    grid-template-columns: 1fr;
  }

  .new-features .feature-card:nth-child(even) {
    margin-top: 0;
  }
}

/* story-guide */
.story-guide {
  background-color: #fafafa;
  padding: 80px 0;
}

.story-guide .hex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  gap: 60px;
}

.story-guide .hex-item {
  width: 180px;
  position: relative;
}

/* 각 hex-item별 테두리 색상 구분 */
.story-guide .hex-item:nth-child(1) .hex-border {
  background: #b5a797;
} /* 가장 왼쪽 이미지 그리드 */
.story-guide .hex-item:nth-child(2) .hex-border {
  background: #99856e;
} /* 사람 형상 이미지 */
.story-guide .hex-item:nth-child(3) .hex-border {
  background: #7b6b56;
} /* 책/종이 이미지 */
.story-guide .hex-item:nth-child(4) .hex-border {
  background: #5b4934;
} /* 그림 그리는 이미지 */
.story-guide .hex-item:nth-child(5) .hex-border {
  background: #31200f;
} /* 동화책 완성 이미지 */

.story-guide .hex-border {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
  padding: 20px; /* 테두리 더 두껍게 */
  margin-bottom: 15px;
  padding-top: 100%;
}
.story-guide .hex-border::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: white;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: 1;
}
.story-guide .hex-content {
  position: absolute;
  top: 15px; /* padding 값과 동일하게 */
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: white;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  z-index: 2;
}

/* 이미지 스타일 유지 */
.story-guide .hex-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-guide .hex-title {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* .story-guide .dotted-line {
  position: absolute;
  top: 50%;
  right: -80px;
  width: 80px;
  border-top: 2px dotted #c5b7e1;
  transform: translateY(-50%);
  z-index: 1;
} */

/* Responsive styles */
@media (max-width: 1024px) {
  .story-guide .hex-container {
    gap: 40px;
  }

  .story-guide .hex-item {
    width: 160px;
  }

  /* .story-guide .dotted-line {
    width: 60px;
    right: -60px;
  } */
}

@media (max-width: 768px) {
  .story-guide .hex-container {
    flex-direction: column;
    gap: 30px;
  }

  .story-guide .hex-item {
    width: 140px;
  }

  /* .story-guide .dotted-line {
    display: none;
  } */
}

/* story-dreams */

.story-dreams {
  background: linear-gradient(135deg, #ff7f50 0%, #4b0082 50%, #1e90ff 100%);
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: flex;
  align-items: center;
}

.story-dreams::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../img/dreams_banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.story-dreams .content-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
}

.story-dreams .dream-content {
  margin-bottom: 3rem;
}

.story-dreams .main-title {
  font-size: 2.8rem;
  font-weight: bold;
  color: white;
  line-height: 1.3;
}

.story-dreams .description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.8;
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
}

.story-dreams .description p {
  margin-bottom: 0.8rem;
}

.story-dreams .arrow-line {
  position: relative;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.7);
  width: 100%;
  max-width: 600px;
  margin: 0 2rem;
}

.story-dreams .arrow-right::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid rgba(255, 255, 255, 0.7);
}

.story-dreams .arrow-left::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 10px solid rgba(255, 255, 255, 0.7);
}

@media (max-width: 933px) {
  .story-dreams .main-title {
    font-size: 2.2rem;
  }

  .story-dreams .description {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .story-dreams .arrow-line {
    max-width: 200px;
    margin: 0 1rem;
  }
}

@media (max-width: 768px) {
  .story-dreams .main-title {
    font-size: 1.8rem;
  }

  .story-dreams .arrow-line {
    max-width: 100px;
  }

  .story-dreams .dream-content {
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .story-dreams .main-title {
    font-size: 1.5rem;
  }

  .story-dreams .arrow-line {
    display: none;
  }

  .story-dreams .text-container {
    width: 100%;
    text-align: center;
  }
}

/* story-process */

/* story-process 섹션 스타일 */
.story-process {
  background-color: #ffffff;
  padding: 80px 0;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* 모든 프로세스 이미지 기본 스타일 */
.process-img {
  width: 100%;
  height: auto;
  display: none; /* 기본적으로 모든 이미지 숨김 */
  margin: 0 auto;
}

/* 기본: 모바일 (780px 미만) - 1x8 이미지 */
.process-1x8 {
  display: block;
  max-width: 100%;
}

/* 태블릿 (780px 이상) - 2x4 이미지 */
@media screen and (min-width: 780px) {
  .process-1x8 {
      display: none;
  }
  .process-2x4 {
      display: block;
      max-width: 100%;
  }
}

/* 작은 데스크톱 (1024px 이상) - 3x3 이미지 */
@media screen and (min-width: 1024px) {
  .process-2x4 {
      display: none;
  }
  .process-3x3 {
      display: block;
      max-width: 100%;
  }
}

/* 큰 데스크톱 (1940px 이상) - 4x2 이미지 */
@media screen and (min-width: 1940px) {
  .process-3x3 {
      display: none;
  }
  .process-4x2 {
      display: block;
      max-width: 100%;
  }
}

/* 이미지 전환 효과 */
.process-img {
  transition: all 0.3s ease-in-out;
}

/* 컨테이너 반응형 패딩 */
@media screen and (max-width: 780px) {
  .process-container {
      padding: 0 15px;
  }
}

/* 이미지 최적화를 위한 추가 스타일 */
.process-container img {
  object-fit: contain;
  margin: 0 auto;
}

/* 섹션 타이틀 반응형 스타일 */
@media screen and (max-width: 780px) {
  .process-title h2 {
      font-size: 1.5rem;
  }
  .process-title p {
      font-size: 0.9rem;
  }
}









/* 로그인 부분 footer css */
.login-content {
  min-height: calc(100vh - 80px);
  margin-top: 0;
  margin-bottom: 0;
}

.adjust-margin {
  margin-top: 0;
  /* 기본값 */
}

/* 768px 이상에서 적용 */
@media (min-width: 768px) {
  .adjust-margin {
    margin-top: -5rem;
    /* -mt-20과 동일 */
  }
}

/* 작은 화면에서는 마진 제거 */
@media (max-width: 767px) {
  .adjust-margin {
    margin-top: 0;
  }
}

/* 매우 작은 화면에서 추가 조정이 필요한 경우 */
@media (max-width: 480px) {
  .adjust-margin {
    margin-top: 1rem;
    /* 필요한 경우 약간의 상단 여백 추가 */
  }
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #f88501;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ===================== Floating Menu (오른쪽 아래) ===================== */
.floating-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1100;
}

.floating-menu .menu-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FBBF70;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1.5rem;
}

.floating-menu .menu-button:hover {
  background: #e1ccb1;
}

/* 메뉴 옵션은 기본적으로 숨김 */
.floating-menu .menu-options {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  z-index: 1200;
}

/* .active 클래스가 있을 때 메뉴 옵션 표시 */
.floating-menu.active .menu-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 기본 옵션 스타일 (공통) */
.floating-menu .menu-option {
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
  font-size: 1rem;
}

/* 나만의 꿈의 길 (기존 색상 유지) */
.floating-menu .menu-option.dreampath {
  background: #da7912;
}
.floating-menu .menu-option.dreampath:hover {
  background: #8f4f0b;
}

/* 창작연구소: #2A6BCC */
.floating-menu .menu-option.creation {
  background: #2A6BCC;
}
.floating-menu .menu-option.creation:hover {
  background: #1e4d9a;
}

/* 동화작업실: 흰색 배경, 테두리 추가 */
.floating-menu .menu-option.fairytale {
  background: #FBBF70;
}
.floating-menu .menu-option.fairytale:hover {
  background: #d2c0a7;
}
