.nav{
	z-index: 100;
}
#web3d_container.embed{
	width: 100%;
	
	/*border: 1px solid #B38B45;*/
	aspect-ratio: 1 / 1;       /* 高さ＝幅 */
	margin: 5% 0 0 0;
	position: relative;        /* overlay の基準 */
	overflow: hidden;
}
.web3d-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	padding: 0.5em 1em;
	background: rgba(255,255,255,0.85);
	color: #333;
	font-size: 18px;
	line-height: 1.4;
	border-radius: 4px;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.5s ease;		
}

.web3d-loading::after {
	content: "";
	display: inline-block;
	width: 1.5em;
	text-align: left;
	animation: loadingDots 1.2s steps(4, end) infinite;
}

@keyframes loadingDots {
	0%   { content: ""; }
	25%  { content: "."; }
	50%  { content: ".."; }
	75%  { content: "..."; }
	100% { content: ""; }
}
.product .box1{
	left: 0vw;
	top: 0vw;
	width: 55vw;
	height: 55vw;
}
#web3d_container.embed canvas{
	width: 100%;
	height: 100%;
	display: block;
}


/* ここを追加 */
#web3d_container.embed .overlay{
	background: transparent;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.3s ease;	
}

#web3d_container.embed .leaderSvg{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

#web3d_container.embed .label.anchor{
	position: absolute;
	z-index: 6;
}

#web3d_container.embed .label.anchor a{
	pointer-events: auto;
}

.anim-ui{
	position: absolute;
	top: 50px;
	left: 50px;
	display: none;
}

main.top #web3d_container.embed{
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0px;
	left:0px;
	margin: 0;
	
}


#web3d_container #overlay,
#web3d_container.embed .overlay{
	background: transparent;
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 5;
}

#web3d_container.embed .overlay:not(.is-visible) .label,
#web3d_container.embed .overlay:not(.is-visible) .label *,
#web3d_container.embed .overlay:not(.is-visible) .marker-hit{
	pointer-events: none !important;
}

#web3d_container.embed .overlay.is-visible .label.anchor a,
#web3d_container.embed .overlay.is-visible .marker-hit{
	pointer-events: auto;
}

#leaderSvg,
#web3d_container.embed .leaderSvg{
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

#web3d_container .label{
	color: #B38B45;
	background-color: rgba(255,255,255,0.7);
	padding: 0px 0px;
	font-size: 20px;
	white-space: nowrap;
	transform: translate(0, -50%);
	border:2px solid #B38B45;
}

#web3d_container div.label{
	display:inline-block;
}



#web3d_container .label:hover{
	background: rgba(0,50,50,0.7);
}
#web3d_container .label a{
	color:#B38B45;
}

#web3d_container .label:hover{
	background-color:#B38B45;
	color:#fff;
}
#web3d_container .label:hover a{
	color:#fff;
}

#web3d_container .label a:hover{
	color:#fff;
	text-decoration: none;
}

#web3d_container .label:before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;   /* 三角の色 */
  border-right: 12px solid transparent;
}

#web3d_container .label:after{
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 12px solid transparent;   /* 三角の色 */
  border-left: 12px solid transparent;
}


#web3d_container .label.anchor{
	position: absolute;
	/*font-size: 16px;*/
	padding:0px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border:none;
	
}

#web3d_container .label.anchor a{
	display: inline-block;
	/*padding: 14px 10px 6px 10px;*/
	width: 50px;
	height: 50px;
	text-align: center;
	text-decoration: none;
}

#web3d_container .label.anchor a:hover{
	text-decoration: none;
}

#web3d_container .label.anchor:before{
  border-top: 8px solid transparent;   /* 三角の色 */
  border-right: 8px solid transparent;
}

#web3d_container .label.anchor:after{
  border-bottom: 8px solid transparent;   /* 三角の色 */
  border-left: 8px solid transparent;
}


#web3d_container .marker-hit {
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	margin-left: -14px;
	margin-top: -14px;
	border-radius: 50%;
	background: rgba(255,255,255,0);
	pointer-events: auto;
	cursor: pointer;
	z-index: 10;
	display: none;
}


#web3d_container .label.label-opacity{
	opacity: 0.1;
}

#web3d_container .anim-ui button{
	padding:5px 60px;
	display: inline-block;
}


#web3d_container select.label{
	padding:9px 30px;
	border:2px solid #B38B45;
}

.tap_wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  transition: opacity 0.5s ease;		
}

.tap_icon {
  position: relative;
  
}

.tap_icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* 上に重ねる鼓動エフェクト */
.tap_icon::after {
  width: 100%;
  top: -15% !important;
  text-align: center;
  content: "";
  position: absolute;
  inset: 0;
  background: url("common/img/ic-btnarrow.svg") center / contain no-repeat;
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  z-index: 2;
  pointer-events: none;
  animation: pulseFade 1.8s ease-out infinite;
}

.tap_icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("common/img/ic-btnarrow.svg") center / contain no-repeat;
  opacity: 0;
  transform: scale(1);
  transform-origin: center center;
  z-index: 2;
  pointer-events: none;
  filter: blur(1px);
  animation: pulseFade 1.8s ease-out infinite;
}



/* Tap Here の軽い明滅 */
#anim_text {
  color:#B9964C;
  margin-top: 100%;
  display: inline-block;
  animation: textBlink 1.2s ease-in-out infinite;
}

#opening_text #anim_text{
	position: absolute;
	top: 50%;
	left: 45%;
	z-index: 100;
	color:#fff;
}

@keyframes pulseFade {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  8% {
    opacity: 0.25;
  }
  20% {
    opacity: 0.55;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@keyframes textBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}



