

    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'GiantsBold'; overflow-x: hidden; }

    @font-face { font-family: 'GiantsBold'; src: url('/app/font/Giants-Bold.ttf') format('truetype'); }
    @font-face { font-family: 'PaperlogyBlack'; src: url('/app/font/Paperlogy-9Black.ttf') format('truetype'); font-weight: 900; }
    @font-face { font-family: 'PaperlogySemiBold'; src: url('/app/font/Paperlogy-6SemiBold.ttf') format('truetype'); font-weight: 600; }
    @font-face { font-family: 'PaperlogyMedium'; src: url('/app/font/Paperlogy-5Medium.ttf') format('truetype'); font-weight: 500; }
    @font-face { font-family: 'PaperlogyRegular'; src: url('/app/font/Paperlogy-4Regular.ttf') format('truetype'); font-weight: 400; }


    nav {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: 6px 40px;
      background: rgba(0, 0, 0, 0.4); /* 초기 반투명 */
      color: white;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 10;
      transition: background-color 0.3s ease; 
    }
   
    nav.scrolled { background: rgba(0, 0, 0, 1); }
    nav ul { display: flex; gap: 45px; list-style: none; }
    nav ul li a { color: white; text-decoration: none; font-size: 1.2rem; }


    .hamburger {
      display: none;
      font-size: 2rem;
      color: white;
      cursor: pointer;
      z-index: 20;
    }

    .korean-text {
      word-break: keep-all; /* 단어 단위로 줄바꿈 (띄어쓰기 기준) */
      white-space: normal; /* 자동 줄바꿈 허용 */
      line-height: 1.5;
    }
   
    header { padding-top: 100px; }


    h1, h3, p { margin-top: 20px; text-align: center; }
    h1 { font-family: 'GiantsBold'; }
    h2 { font-family: 'PaperlogyBlack'; }
    h3 { font-family: 'PaperlogySemiBold'; font-size: 24px; color: #333; }
    /* p { font-family: 'PaperlogyRegular'; font-size: 16px; color: #555; line-height: 1.6; padding: 0 20px; } */


    .top-visual-wrapper { position: relative; overflow: hidden; }
    .top-visual-wrapper img { width: 100%; height: auto; display: block; }
    .top-visual-textbox {
      position: absolute; inset: 0;
      display: flex; flex-direction: column;
      justify-content: center; align-items: center;
      color: #fff; text-align: center;
    }
    .top-visual-title {
      font-family: 'PaperlogyBlack';
      font-size: 4.8rem;
      text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    }

    .top-visual-subtitle { font-family: 'PaperlogySemiBold'; font-size: 1.45rem; margin-bottom: 10px; line-height: 1.5; }

    .toggle-wrapper {
      display: inline-block;
      border: 3px solid #f42328;
      border-radius: 9999px;
      overflow: hidden;
      font-family: sans-serif;
      cursor: pointer;
    }
    .toggle-inner {
      display: flex;
      align-items: center;
      width: 360px;
      height: 70px;
      position: relative;
    }
    .toggle-inner span {
      font-family: 'PaperlogySemiBold';
      flex: 1; text-align: center;
      z-index: 1; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
      transition: color 0.3s;
    }

    .slider-bg {
      position: absolute;
      width: 50%; height: 100%;
      background-color: #f42328;
      border: 5px solid white;
      border-radius: 9999px;
      top: 0; left: 0;
      transition: left 0.3s;
      z-index: 0;
    }

    /* ✅ 선택 상태 표현을 위한 클래스 활용 */
    .left-label.active,
    .right-label.active {
      color: #fff;
    }
    .left-label:not(.active),
    .right-label:not(.active) {
      color: #f42328;
    }

    .control-button {
      width: 60px; height: 60px;
      border-radius: 50%; border: 3px solid #adb5bd;
      background-color: #fff; color: #adb5bd;
      font-size: 1.5rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: background-color 0.3s, color 0.3s;
    }
    .control-button:hover { background-color: #adb5bd; color: #fff; }


    .slider-container {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      gap: 24px;
      flex-grow: 1; /* 추가 */
    }
    .slider-container::-webkit-scrollbar { display: none; }

    .store-card {
      flex: 0 0 360px;
      scroll-snap-align: start;
      background-color: #fff;
      box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .store-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    }

    .store-header { padding: 16px; background-color: #fff; text-align: left; }
    .store-title-line { height: 4px; width: 40px; background-color: #f42328; margin-bottom: 8px; }
    .store-title { font-family: 'PaperlogySemiBold'; font-size: 1.2rem; color: #111; margin: 0; }

    .store-image-wrapper {
      position: relative;
      width: 100%; height: 320px;
      overflow: hidden;
      border-top: 1px solid #ddd;
    }
    .store-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

    .store-label {
      position: absolute; top: 10px; right: 10px;
      padding: 4px 10px; font-size: 14px;
      border-radius: 4px; font-weight: bold; z-index: 2;
      color: white;
    }
    .store-label.korea { background-color: #f42328; }
    .store-label.global { background-color: #181818; }

    .store-overlay {
      position: absolute;
      bottom: 0; width: 100%;
      padding: 16px;
      background: linear-gradient(to top, rgba(0,0,0,0.6), transparent 60%);
      color: white;
      font-family: 'PaperlogyRegular';
      font-size: 0.95rem;
      line-height: 1.4;
    }
    .store-overlay h3, .store-overlay p {
      margin: 0;
      color: white;
    }

    
    .slider-wrapper { overflow: hidden; position: relative; }
    .slider-track {
      display: flex;
      gap: 24px;
    }
    .slider-track li {
      flex: 0 0 auto;
      list-style: none;
    }

    
    footer {background-color: #181818; color: white; padding: 20px 0; width: 100%; } 

    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 20px;
        width: 100%; /* footer의 내부 콘텐츠 너비를 100%로 설정 */
    }

    .footer-left, .footer-right { width: 100%; }
    .footer-left { display: flex; flex-direction: column; }
    .footer-left p { font-family: 'PaperlogySemiBold'; text-align: left; color : white;}


    /* 버튼 스타일 */
    footer .top-button { 
      font-size: 1.5rem; 
      display: inline-block; 
      padding: 10px 20px;
      background-color: #f42328; /* 버튼 색상 */
      border-radius: 30px;
      font-weight: bold; /* 텍스트 강조를 위해 font-weight 추가 */
      margin: 0 auto; /* 버튼 가운데 배치 */
    }

    .footer-right { display: flex; flex-direction: column; align-items: flex-end; }

    .footer-right button {
      font-family: 'PaperlogySemiBold'; 
      font-size: 14px; 
      color: white; 
      background-color: transparent;
      border: 1px solid white;
      padding: 12px 20px;
      margin: 5px 0;
      cursor: pointer;
      text-align: center;
      width: 220px;
      max-width: 220px; 
    }

    .footer-right button a { color: white; text-decoration: none; display: block; }
    .footer-right button:hover { background-color: white; color: #181818; }
    .footer-right button:hover a { color: #181818; }

    footer a { text-decoration: none; color: white; }


    /* 야구존 버튼 */
    .btn-baseball {
      display: inline-block;
      font-family: 'PaperlogySemiBold'; font-size: 14px; color: #69C9FF;
      border: 1px solid #69C9FF; padding: 12px 20px; margin: 5px 0;
      text-align: center;
      width: 220px; max-width: 220px;
      background-color: transparent;
      cursor: pointer;
      text-decoration: none;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    .btn-baseball:hover { background-color: #69C9FF; color: #ffffff; text-decoration: none; }


    @media (max-width: 768px) {

      html, body {
        max-width: 100%;
        overflow-x: hidden;
        font-size: 0.9rem;
      }


      nav a img { height: 50px; }
      nav { padding: 4px 10px; }

      .hamburger {
        display: block;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 20;
      }
      nav ul {
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(0,0,0,0.9);
        width: 200px;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease;
      }
      nav ul li { margin: 5px 5px; text-align: left; }
      nav ul li a { display: block; padding: 3px 3px; }


      .top-visual-wrapper {
        position: relative;
        height: 40vh;
        width: 100vw; /* 💡 전체 너비 확보 */
        overflow: hidden;
        display: flex; /* 💡 이미지 정렬에 필요 */
      }

      .top-visual-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
      }

      .top-visual-textbox {
        position: absolute;
        inset: 0;
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        text-align: center;
      }

      .top-visual-title {
        font-size: 2rem;
        line-height: 1.2;
      }

      .top-visual-subtitle {
        font-size: 1rem;
        line-height: 1.4;
      }

      #store .inner {
        padding: 0 16px !important; /* 좌우 여백 */
        box-sizing: border-box;
      }

      #store .inner > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
      }

      /* 카드 슬라이더를 아래로 이동시키기 위해 위치 리셋 */
      .slider-container {
        position: static !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: 40px;
        overflow: visible !important;
      }

      /* 슬라이더 트랙을 가로 슬라이드 대신 일반 배치로 변경 */

      .slider-track {
        display: grid !important;
        grid-template-columns: 1; /* 또는 3열로 바꾸려면 repeat(3, 1fr) */
        gap: 16px;
        transform: none !important;
        width: 100% !important;
      }

      .slider-track li {
        width: 100% !important;
        flex: none !important;
        list-style: none;
      }

      .store-card {
        width: 100% !important;
        box-sizing: border-box;
      }


      #store h2 { display: none; }
      #store .inner > div > div:first-child {
        height: auto !important;
        margin-bottom: 0 !important;
      }
      .slider-container {
        margin-top: -150px !important; /* -80px (버튼) + -70px (h2) */
      }
      
      .control-button { display: none !important; } /* 슬라이드 조작 버튼은 모바일에서는 숨김 */
    
      /* 슬라이드 버튼 사라진 만큼 여백 조정 */
      #store .inner > div > div:first-child {
        height: auto !important; 
        margin-bottom: 0 !important;
      }

      /* 슬라이더가 더 위로 올라오도록 조정 */
      .slider-container {
        margin-top: 0 !important;
      }

      .footer-content { flex-direction: column; text-align: left; }      

      .footer-right button,
      .btn-baseball {
        width: 100%;
        max-width: 280px; 
        padding: 12px 0; 
        font-size: 14px; 
        text-align: center; 
        margin: 5px auto; 
        display: block;
      }
    }