body { 
    padding: 0; 
    margin: 0; 
    background-color: #ffffff; /* 전체 배경 흰색 */
    overflow: hidden;
}

#unity-container { 
    position: fixed; 
    width: 100%; 
    height: 100%; 
}

#unity-canvas { 
    width: 100%; 
    height: 100%; 
    background: #fff; 
}

/* [커스텀 로딩 화면 스타일] 중앙 정렬 및 배경 설정 */
#custom-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 로고 로딩창 배경색 (흰색) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99; /* 캔버스보다 위에 표시 */
}

/* 로고 이미지 스타일 */
#custom-logo {
    width: 50%; /* 로고 크기 조절 (화면 너비의 절반) */
    max-width: 600px; /* 최대 크기 제한 */
    height: auto;
    animation: custom-fadein 1.2s ease-in-out;
}

@keyframes custom-fadein {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 기존 유니티 기본 요소들 숨기기 */
#unity-loading-bar { display: none !important; }
#unity-logo { display: none !important; }
#unity-progress-bar-empty { display: none !important; }
#unity-progress-bar-full { display: none !important; }

#unity-warning { 
    position: absolute; 
    left: 50%; 
    top: 5%; 
    transform: translate(-50%); 
    background: white; 
    padding: 10px; 
    display: none; 
    z-index: 100;
}

      @keyframes guragura {
      0% { transform: rotate(0deg); }    /* 開始 */
      5% { transform: rotate(5deg); }   /* 右へ */
      10% { transform: rotate(-4deg); }  /* 左へ */
      15% { transform: rotate(3deg); }   /* 右へ */
      20% { transform: rotate(-1deg); }  /* 左へ */
      23% { transform: rotate(0deg); }   /* 停止 */
      100% { transform: rotate(0deg); }  /* 終了 */
    }
    .shake-image {
      animation: guragura 3s infinite ease-in-out;
      transform-origin: center center;
    }

 /* （PC・タブレット用） */
  .loading-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;       
    max-width: 400px; 
  }
 #custom-loader-wrapper {
    width: 100%;
    height: 35px; 
    background: transparent;
    border: 5px solid #ff7bac;
    border-radius: 60px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }


  /*  モバイル用 */
  @media screen and (max-width: 768px) {
    .loading-group {
      width: 70%;     
      max-width: none; 
    }
  #custom-loader-wrapper {
      height: 30px; 
      border: 4.5px solid #ff7bac; 
    }
  }