@charset "utf-8";

/*-------------------------------------------*/
/* clearfix
/*-------------------------------------------*/
/*
Don't add position to .site-header to be scroll fixed
*/
.site-body,
.site-body-container,
.site-footer,
.main-section,
.sub-section {
	position: relative;
	&:after {
		content: "";
		display: block;
		clear: both;
	}
}

.site-body{
	padding: 2rem 0 2rem;
	@media ( $sm-max < width ) {
		padding: 2.5rem 0 2.5rem;
	}
	@media ( $md-max < width ) {
		padding: 3rem 0 3.5rem;
	}
	@media ( $lg-max < width ) {
		padding: 3.5rem 0 4rem;
	}
	&.site-body--padding-vertical--off,
	&.site-body--padding-vertical--off.siteContent-base-on {
		padding-top: 0;
		padding-bottom: 0;
	}
}

/*-------------------------------------------*/
/* .siteContent
/*-------------------------------------------*/
.main-section,
.sub-section {
	& > aside:last-child,
	& > div:last-child {
		margin-bottom: 0;
	}
	@media ( width <= $md-max ) {
		width: 100%;
		flex-basis: unset;
	}
}

@media ( $md-max < width ) {
	.main-section--col--two {
		width: var(--vk-width-col-2-main);
		float: left;
	}

	.sub-section--col--two {
		width: var(--vk-width-col-2-sub);
		float: right;
	}

	// sidebar-left
	.sub-section--pos--left {
		float: left;
	}

	.main-section--pos--right {
		float: right;
	}

	// one-column
	.main-section--col--one,
	.sub-section--col--one {
		width: 100%;
	}
}

/*
main-section だけにしているのはサブセクションが下に配置される場合にひっつかないように。
そもそも外側の余白は .site-body でつけられているので sub-section には不要
*/
.main-section {
	&--margin-bottom--on {
		margin-bottom: 3rem;
	}
	@media ( width <= $md-max ) {
		margin-bottom: 2rem;
	}
	&.main-section--margin-vertical--off {
		margin-top: 0;
		margin-bottom: 0;
	}
}