/*---------------------------------------
  Colorbox Core Styles（変更非推奨）
---------------------------------------*/
#colorbox, #cboxOverlay, #cboxWrapper {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 9999;
	overflow: hidden;
	-webkit-transform: translate3d(0, 0, 0);
}
#cboxWrapper { max-width: none; }
#cboxOverlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 247, 230, 0.5);
}
#cboxContent {
	position: relative;
	box-sizing: content-box;
	border-radius: 10px;
	margin-top: 40px;
	background-color: inherit !important;
}
#cboxLoadedContent {
	position: relative;
	border: solid 2px var(--gold);
	padding: 1px;
	margin: 20px 0;
	overflow: auto;
	box-sizing: border-box !important;
	border:none !important;
	padding:0 !important;
	margin:20px 0px !important;
	background-color: inherit !important;
	overflow: hidden !important;
}
#colorbox {
	outline: 0;
	box-sizing: content-box;
	position: relative;
}
.cboxPhoto {
	float: left;
	margin: auto;
	border: 0;
	display: block;
	max-width: none;
	-ms-interpolation-mode: bicubic;
}
.cboxIframe {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
	padding: 0;
	margin: 0;
	background: #fff;
}

/*---------------------------------------
  UI Elements
---------------------------------------*/
#cboxTitle {
	position: absolute;
	bottom: 5px;
	left: 50px;
	color: #FFF;
	font-weight: bold;
	letter-spacing: 1px;
	font-size: 14px;
	margin: 0;
}
#cboxSlideshow {
	position: absolute;
	top: -20px;
	right: 90px;
	color: #fff;
}
#cboxCurrent {
	position: absolute;
	top: 10px;
	right: 70px;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	display: none;
	opacity: 0;
}
#cboxLoadingOverlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--milk50);
}
#cboxLoadingGraphic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url(images/loading.gif) no-repeat center center;
}
#cboxError {
	padding: 50px;
	border: 1px solid #ccc;
}

/* 戻る・次ボタン */
#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
	border: 0;
	padding: 0;
	margin: 0;
	overflow: visible;
	width: auto;
	background: none;
	cursor: pointer;
}
#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
	outline: 0;
}
#cboxPrevious {
	position: absolute;
	top: 45%;
	left: 0.5em;
	margin-top: -32px;
	background: url(images/controls.png?ver=3) no-repeat top left;
	width: 61px;
	height: 122px;
	text-indent: -9999px;
	outline: none;
	opacity: 0.3;
}
#cboxPrevious:hover {
	background-position: bottom left;
	opacity: 1;
}
#cboxNext {
	position: absolute;
	top: 45%;
	right: 0.5em;
	margin-top: -32px;
	background: url(images/controls.png?ver=3) no-repeat top right;
	width: 61px;
	height: 122px;
	text-indent: -9999px;
	outline: none;
	opacity: 0.3;
}
#cboxNext:hover {
	background-position: bottom right;
	opacity: 1;
}

/*---------------------------------------
  閉じるボタン（画像の右上、レスポンシブ対応）
---------------------------------------*/
#cboxClose {
    position: absolute;
    top: -2.2em;
    left: calc(100% - 3.8em);  /* 親の幅の右端から3.8em分左にずらす */
    display: block;
    background: url(images/controls_crose.png?ver=3) no-repeat center center;
    background-size: contain;
    width: 3.8em;
    height: 3.8em;
    text-indent: -9999px;
	background-color:var(--gold) !important;
}
#cboxClose:hover {
	background: url(images/controls_crose_.png?ver=3) no-repeat center center;
	background-size: contain;
	background-color:var(--kPink) !important;
}
