@charset "utf-8";

/*
####################################################
#  Layout: ハンバーガーメニュー（全画面）          #
#  l-menu                                           #
#  開閉は、body に付く is-menu-open で切り替える   #
####################################################
*/

/* メニューの表示エリア（全画面） */
.l-menu{
	top: 0;
	left: 0;
	display: none;
	position: fixed;
	background-color: #000000;
	opacity: 0.95;
	width: 100%;
	height: 100%;
	animation: fadeIn 0.5s ease 0s 1 normal;
	animation-name: menu_animation;
	z-index: var(--z-menu);
	overflow-y: auto;
}

/* メニューのオープン・クローズボタン */
.l-menu__button{
	order: 1;
	position: fixed;
	width: 64px;
	height: 64px;
	right: 10px;
	top: 10px;
	background-image: url("../../images/icon/menu/menu_white.png");
	background-size: 64px 64px;
	background-position: center;
	background-repeat: no-repeat;
	/* background-attachment: fixed は使わない（ボタン自体が fixed。iOS では、画像が、ボタンの外に描かれて、見えなくなる） */
	z-index: var(--z-menu-button);
}

/* メニューエリアの表示アニメーション */
@keyframes menu_animation {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 0.95;
	}
}

/* メニューを開いているとき */
.is-menu-open .l-menu{
	display: flex;
}

.is-menu-open .l-menu__button{
	background-image: url("../../images/icon/menu/batsu_white.png");
}

/* メニューを開いている間は、本文とフッタを隠す */
.is-menu-open .l-container,
.is-menu-open .l-footer{
	display: none;
}

/* メニューの中身の入れ物 */
.l-menu__container{
	display: flex;
	flex-direction: column;
	margin: 100px auto;
	width: var(--content-width);
	height: auto;
}

/* 見出し（更新履歴・サイトマップ・SNS） */
.l-menu__title{
	margin-top: 20px;
	width: inherit;
	border-right: solid 1px var(--color-text);
	border-bottom: solid 1px var(--color-text);
	transition: color 0.3s;
}

.l-menu__title:hover{
	color: var(--color-alert);
}

/*
####################################################  更新履歴  ####################################################
*/

.l-menu__history{
	order: 2;
	width: inherit;
	height: auto;
	padding-bottom: 20px;
}

/* スクロール領域の外枠 */
.l-menu__history-body{
	width: inherit;
	margin: 20px 0 0 20px;
	display: flex;
}

.l-menu__history-list{
	width: 98%;
	height: 200px;
	overflow-y: auto;
}

/* 更新日 */
.l-menu__history-date{
	float: left;
	width: 90%;
	padding: 15px 5px 0 0;
}

.l-menu__history-date:nth-child(n+2){
	margin-top: 10px;
	border-top: 1px dashed var(--color-text);
}

/* 更新内容 */
.l-menu__history-text{
	float: left;
	width: 90%;
	line-height: 1.4em;
	padding: 0.4em 0 10px 10px;
}

/*
####################################################  サイトマップ  ####################################################
*/

.l-menu__sitemap{
	order: 2;
	width: 100%;
	height: auto;
}

/*
####################################################  SNS  ####################################################
*/

.l-menu__sns{
	order: 3;
	width: inherit;
	height: auto;
	padding-bottom: 20px;
}

.l-menu__sns-list{
	margin: 20px 0 0 20px;
	display: flex;
}

.l-menu__sns-link{
	width: 50px;
	height: 50px;
	background-size: 50px 50px;
	background-repeat: no-repeat;
	background-size: contain;
}

.l-menu__sns-link:hover{
	opacity: 0.5;
}

.l-menu__sns-link--twitter{
	order: 1;
	background-image: url("../../images/icon/twitter/twitter.png");
}

.l-menu__sns-link--pixiv{
	order: 2;
	margin-left: 20px;
	background-image: url("../../images/icon/pixiv/logo_icon_r.png");
}

/*
####################################################  スマートフォン向け  ####################################################
*/

@media screen and (max-width: 899px) {
	.l-menu__container,
	.l-menu__title,
	.l-menu__sitemap,
	.l-menu__history,
	.l-menu__sns{
		width: 95%;
	}

	.l-menu{
		overflow-y: auto;
	}

	.l-menu__button{
		width: 35px;
		height: 35px;
		background-size: 35px auto;
		/* 明るい画像の上でも、見えるように、うすい黒の下地を付ける */
		background-color: rgba(0, 0, 0, 0.45);
		border-radius: 8px;
	}

	.l-menu__title{
		margin-left: 0.5em;
	}

	.l-menu__sns-link--twitter{
		margin-left: 0;
	}

	.l-menu__sns-link--pixiv{
		margin-left: 1.5em;
	}
}
