body { padding: 0; margin: 0 }
#unity-container { position: absolute }
#unity-container.unity-desktop { left: 50%; top: 50%; transform: translate(-50%, -50%) }
#unity-container.unity-mobile { position: fixed; width: 100%; height: 100% }
#unity-canvas { background: #CCCCCC }
.unity-mobile #unity-canvas { width: 100%; height: 100% }
#unity-loading-bar {
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
/*
#unity-logo { width: 154px; height: 130px; background: url('unity-logo-light.png') no-repeat center }
*/
/* Now Loading のテキスト */
#unity-loading-text {
    text-align: center; /* 中央揃え */
    font-family: Arial, sans-serif; /* フォント */
    color: #ffffff; /* 文字色 */
    font-weight: bold;
    font-size: large;
    margin-top: 5px; /* 外枠との間隔 */
}
#unity-progress-bar-empty { 
    width: 80%; /* 全体幅 */
    height: 30px; /* 高さ */
    background-color: white; /* 背景色（外枠） */
    border: 4px solid white; /* 枠線 */
    border-radius: 99px; /* 丸み */
    overflow: hidden; /* 子要素が丸枠を超えないように */
    position: relative; /* テキストとのレイアウト調整のため */
    margin: 10px auto; /* 中央揃え */
}
#unity-progress-bar-full {
    height: 100%; /* 外枠に合わせる */
    background-color: rgb(0, 0, 37); /* 中身の色 */
    transition: width 0.5s ease; /* スムーズなアニメーション */
    width: 0%;
}
#unity-footer { position: relative }
.unity-mobile #unity-footer { display: none }
#unity-webgl-logo { float:left; width: 204px; height: 38px; background: url('webgl-logo.png') no-repeat center }
#unity-build-title { float: right; margin-right: 10px; line-height: 38px; font-family: arial; font-size: 18px }
#unity-fullscreen-button { cursor:pointer; float: right; width: 38px; height: 38px; background: url('fullscreen-button.png') no-repeat center }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }
/* Unityの画面をウィンドウ全体に拡げる */
#unity-container, #unity-canvas {
    width: 100%;
    height: 100%;
}

/* フッターのロゴ等を隠す */
#unity-footer {
    display: none;
}

/* 縦スクロールバーを隠す */
body {
    overflow: hidden;
}
.kururin360-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
}

/* ====== Overlay Icons minimal CSS (prefix: uo-) ====== */
:root {
  --uo-z: 2147483647;                  /* 最前面 */
  --uo-fab-size: clamp(48px, 6.5vw, 64px);
  --uo-close-size: clamp(36px, 5.5vw, 44px);
  --uo-gap: 12px;
  --uo-radius: 16px;
}

/* 右上 × ボタン */
.uo-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: calc(12px + env(safe-area-inset-right));
  z-index: var(--uo-z);
  width: var(--uo-close-size);
  height: var(--uo-close-size);
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.28);
}
.uo-close svg { width: 60%; height: 60%; fill: currentColor; }
.uo-close:focus-visible { outline: 2px solid #5aa9ff; outline-offset: 2px; }

/* 右下 縦レール */
.uo-fab-rail {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: var(--uo-z);
  display: flex;
  flex-direction: column;
  gap: var(--uo-gap);
}

/* FAB 共通 */
.uo-fab {
  -webkit-appearance: none; appearance: none;
  border: none;
  width: var(--uo-fab-size);
  height: var(--uo-fab-size);
  border-radius: var(--uo-radius);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  background: #fff;
  text-decoration: none;
}
.uo-fab svg { width: 60%; height: 60%; }
.uo-fab:active { transform: translateY(1px); }
.uo-fab:focus-visible { outline: 2px solid #5aa9ff; outline-offset: 2px; }

/* 個別色（必要に応じて調整） */
.uo-fab.uo-ec { background: #ffffffee; }
.uo-fab.uo-ar { background: #111; }
.uo-fab.uo-ar svg { fill: #fff; }

/* モーション控えめ */
@media (prefers-reduced-motion: reduce) {
  .uo-fab, .uo-close { transition: none !important; animation: none !important; }
}
