/* Studio Kohoku staging responsive layer */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: hidden;
}

.studiokohoku-menu-toggle,
.studiokohoku-menu-overlay,
.studiokohoku-mobile-drawer {
	display: none;
}

iframe,
embed,
object,
video {
	max-width: 100%;
}

@media (max-width: 1100px) {
	#page,
	#header {
		width: 100%;
	}

	#page {
		padding: 0 16px;
	}

	#header {
		height: auto;
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	#header .logo {
		width: 22%;
		height: auto;
	}

	#header .key01 {
		width: 28%;
		height: auto;
		margin-left: 1%;
	}

	#header .banner_l {
		width: 49%;
		height: auto;
	}

	#header > ul {
		width: 100%;
		height: auto;
		display: flex;
		justify-content: flex-end;
	}

	#header .g_navi,
	#header .g_navi ul {
		width: 100%;
		height: auto;
	}

	#header .g_navi ul {
		display: grid;
		grid-template-columns: repeat(8, minmax(0, 1fr));
	}

	#header .g_navi ul li {
		float: none;
		display: block;
	}

	#header .g_navi img {
		display: block;
		width: 100%;
		height: auto;
	}

	#footer {
		width: 100%;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 15px;
		line-height: 1.7;
	}

	body.studiokohoku-menu-open {
		overflow: hidden;
	}

	#page {
		padding: 0 12px;
	}

	#header .logo {
		width: 42%;
	}

	#header .key01 {
		width: 56%;
		margin-left: 2%;
		font-size: 12px;
		line-height: 1.45;
	}

	#header .key01 h3 {
		font-size: 13px;
	}

	#header .banner_l {
		width: 100%;
		margin: 8px 0;
	}

	#header > ul {
		justify-content: center;
	}

	.studiokohoku-menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 9px;
		width: 100%;
		min-height: 46px;
		margin: 8px 0 12px;
		border: 0;
		border-radius: 4px;
		background: #352215;
		color: #fff;
		font: inherit;
		font-weight: 700;
		cursor: pointer;
	}

	.studiokohoku-menu-icon,
	.studiokohoku-menu-icon::before,
	.studiokohoku-menu-icon::after {
		display: block;
		width: 22px;
		height: 2px;
		background: currentColor;
	}

	.studiokohoku-menu-icon {
		position: relative;
	}

	.studiokohoku-menu-icon::before,
	.studiokohoku-menu-icon::after {
		position: absolute;
		left: 0;
		content: "";
	}

	.studiokohoku-menu-icon::before {
		top: -7px;
	}

	.studiokohoku-menu-icon::after {
		top: 7px;
	}

	.studiokohoku-menu-overlay {
		position: fixed;
		z-index: 9998;
		inset: 0;
		width: 100%;
		height: 100%;
		padding: 0;
		border: 0;
		background: rgba(0, 0, 0, .55);
		cursor: pointer;
	}

	.studiokohoku-mobile-drawer {
		position: fixed;
		z-index: 9999;
		top: 0;
		right: 0;
		display: block;
		width: min(88vw, 360px);
		height: 100dvh;
		overflow-y: auto;
		background: #fff;
		box-shadow: -4px 0 20px rgba(0, 0, 0, .25);
		transform: translateX(105%);
		transition: transform .22s ease;
	}

	.studiokohoku-menu-open .studiokohoku-menu-overlay {
		display: block;
	}

	.studiokohoku-menu-open .studiokohoku-mobile-drawer {
		transform: translateX(0);
	}

	.studiokohoku-drawer-header {
		position: sticky;
		z-index: 1;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 54px;
		padding: 8px 14px;
		background: #352215;
		color: #fff;
	}

	.studiokohoku-menu-close {
		width: 40px;
		height: 40px;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		font-size: 32px;
		line-height: 1;
		cursor: pointer;
	}

	.studiokohoku-drawer-body {
		padding: 12px;
	}

	.studiokohoku-mobile-drawer .g_navi,
	.studiokohoku-mobile-drawer .g_navi ul,
	.studiokohoku-mobile-drawer #sidebar-lt {
		position: static;
		float: none;
		width: 100%;
		height: auto;
		margin: 0;
	}

	.studiokohoku-mobile-drawer .g_navi ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 3px;
	}

	.studiokohoku-mobile-drawer .g_navi li {
		float: none;
		display: block;
	}

	.studiokohoku-mobile-drawer .g_navi img {
		display: block;
		width: 100%;
		height: auto;
	}

	.studiokohoku-mobile-drawer #sidebar-lt {
		margin-top: 18px;
	}

	.maincontents {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
	}

	#wrapper {
		order: 1;
		width: 100%;
		margin: 0;
	}

	#content {
		width: 100%;
	}

	#sidebar-rt {
		float: none;
		width: 100%;
		margin: 0;
	}

	#sidebar-rt {
		order: 2;
	}

	.maincontents > .fbanner {
		order: 3;
		width: 100%;
	}

	.maincontents > hr,
	#footer {
		order: 4;
		width: 100%;
	}

	.post {
		padding: 10px;
	}

	.maincontents #archives {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.maincontents #archives .post,
	#archives .post {
		display: block;
		width: auto;
		height: auto;
		min-width: 0;
		margin: 0;
		padding: 8px;
	}

	.maincontents #archives .post img {
		padding: 0;
	}

	.profile {
		width: 100%;
	}

	.post .s_stream,
	.yokoku {
		float: none;
		width: 100%;
	}

	.fbanner {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
	}

	.fbanner li {
		list-style: none;
		max-width: 46%;
	}
}

@media (max-width: 480px) {
	#header .logo,
	#header .key01 {
		width: 100%;
		margin-left: 0;
		text-align: center;
	}

	#header .logo img {
		max-width: 220px;
	}

	#sidebar-rt {
		width: 100%;
	}

	.maincontents #archives {
		grid-template-columns: 1fr;
	}

	.fbanner li {
		max-width: 100%;
	}
}
