/* ------------------------------
 ボタングループ
------------------------------- */
.acms-btn-group {
	display: table;
	position: relative;
	vertical-align: middle;
	padding-left: 0;

	> .js-acms-btn-admin:first-child:not(:last-child):not(.js-acms-dropdown-toggle) {
		@include round-right(0);
	}

	> .js-acms-btn-admin:first-child:not(:last-child):not(.js-acms-dropdown-toggle) {
		@include round-right(0);
	}

	> .js-acms-btn-admin:first-child:not(:last-child):not(.js-acms-dropdown-toggle) {
		@include round-right(0);
	}

	> .js-acms-dropdown-toggle:not(:first-child) {
		border-left: 0;
		@include round-left(0);
	}

	> .acms-btn {
		border-radius: 0;
		display: table-cell;
		height: 30px;
		margin-right: 0;

		&:first-child {
			border-top-left-radius: 3px;
			border-bottom-left-radius: 3px;
		}

		&:last-child {
			border-top-right-radius: 3px;
			border-bottom-right-radius: 3px;
			margin-right: 0;
		}
	}

	> .acms-btn + .acms-btn {
		border-left: 0;
	}
}


/* ------------------------------
 ドロップダウンメニュー
------------------------------- */
// トグル
.js-acms-dropdown-toggle {
	position: relative;
	margin: 0;
	outline: 0;
}

.acms-btn-group .js-acms-dropdown-btn {
	position: absolute;
	top: 0;
}

.js-acms-dropdown-toggle .acms-btn-admin:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.js-acms-dropdown-toggle .acms-btn-admin:nth-child(2) {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	margin-left: -1px;
}

// 開閉メニュー
.js-acms-dropdown-menu {
	display: none;
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: zIndex(js-acms-drop-down-menu);
	min-width: 160px;
	border-radius: 3px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	margin: 2px 0;
	padding: 5px 0;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
	background: #ffffff;
	background-clip: padding-box;
	font-size: 14px;
	text-align: left;

	// リンク
	> li > a {
		display: block;
		padding: 3px 20px;
		text-decoration: none;
		white-space: nowrap;
	}

	a:link,
	a:visited {
		color: #333333;
	}

	li:hover {
		background: #f1f1f1;
	}

	> li.acms-divider {
		height: 1px;
		margin: 4px 0;
		background-color: #e5e5e5;
	}
	// 右基点
	.acms-dropdown-right  & {
		top: 5px;
		left: calc(100% + 5px);
	}

	// 下基点
	.acms-dropdown-bottom  & {
		top: calc(100% + 10px);
		left: 0;
	}
}

@media screen and (max-width: $breakpoint-md-max) {
	.acms-dropdown-toggle-sp .js-acms-dropdown-menu {
		position: relative;
		top: 0;
		left: 0;
		border-radius: 0;
		box-shadow: none;
		padding: 0;
		& > li > a {
			padding: 10px 20px;
		}
	}	
}

// タイトル
.acms-dropdown-title {
	padding: 3px 20px;
	color: #999999;
}

// 下矢印
.acms-arrow-bottom {
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 5px;
	border: 4px solid #000000;
	border-color: transparent;
	border-top-color: #999999;
}

.acms-btn-group .acms-arrow-bottom {
	margin-left: 0;
}
