/* Global */
@font-face {
	font-family: "LINE Seed JP";
	src: url("../fonts/LINESeedJP_OTF_Rg.woff2") format('woff2');
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "LINE Seed JP";
	src: url("../fonts/LINESeedJP_OTF_Th.woff2") format('woff2');
	font-weight: 100;
	font-style: normal;
}

@font-face {
	font-family: "LINE Seed JP";
	src: url("../fonts/LINESeedJP_OTF_Bd.woff2") format('woff2');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "LINE Seed JP";
	src: url("../fonts/LINESeedJP_OTF_Eb.woff2") format('woff2');
	font-weight: 800;
	font-style: normal;
}

i.icon {
	display: block;
	background-repeat: no-repeat;
	background-size: cover;
	width: 1em;
	height: 1em;
}

i.icon-menu {
	background-image: url("../icons/menu.svg");
}

i.icon-login {
	background-image: url("../icons/login.svg");
}

i.icon-logout {
	background-image: url("../icons/logout.svg");
}

i.icon-close {
	background-image: url("../icons/close.svg");
}

a {
	color: inherit;
}

.login-footer a {
	color: black;
}

/* Layout */
html {
	width: 100%;
	height: 100%;
}

body {
	background: #fefefe;
	width: 100%;
	height: 100%;
	margin: 0;
	font-family: "LINE Seed JP", sans-serif;
}

.grid-layout {
	display: grid;
	width: 100%;
	height: 100%;
	grid-template-rows: auto 4fr auto;
	grid-template-columns: 1fr 3fr 1fr;
	grid-template-areas: "header header header"
                         "left main right"
                         "footer footer footer";
}

@media (max-width: 801px) {
	.grid-layout {
		grid-template-rows: auto 4fr auto;
		grid-template-columns: 1fr;
		grid-template-areas: "header"
                         "main"
                         "footer";
	}
}

.grid-layout > .header {
	grid-area: header;
	background-color: rgb(34, 56, 67);
	color: white;
}

.grid-layout > .main {
	grid-area: main;
}

.grid-layout > .footer {
	grid-area: footer;
	background-color: #f3f3f3;
}

#sidebar {
	display: block;
	height: 100%;
	width: 0;
	background-color: #f5f5f5;
	position: absolute;
	box-sizing: content-box;
	top: 0;
	left: 0;
	bottom: 0;
	transition: width 0.2s ease-in-out;
	overflow: hidden;
}

#sidebar.show {
	display: block;
	height: 100%;
	width: 40vw;
	box-shadow: 3px 0 4px 0 #aaa;
}

#sidebar > div {
	width: 40vw;
	padding: 2rem;
}

#sidebar-close-icon {
	filter: brightness(0);
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.2rem;
}

ul.sidebar-links {
	list-style-type: none;
	padding:0;
}

ul.sidebar-links > li {
	margin: 0.5rem 0;
}

#sidebar a {
	text-decoration: none;
}

@media (max-width: 801px) {
	.grid-layout {
		grid-template-rows: auto 4fr auto;
		grid-template-columns: 1fr;
		grid-template-areas: "header"
                         "main"
                         "footer";
	}
}

/* Header */
.header {
	position: relative;
}

div.header-title {
	font-size: 2rem;
	font-weight: bold;
	text-align: center;
	margin: 0.5rem 0 0.5rem;
}

div.header-subtitle {
	display: flex;
	justify-content: space-between;
}

.header-title a {
	text-decoration: none;
	color: white;
}

ul.header-links {
	display: block;
	margin: 1rem;
	padding: 0;
}

#sidebar-button, #login-button, #logout-button {
	display: none;
}

@media (max-width: 640px) {
	ul.header-links {
		display: none;
	}

	#sidebar-button {
		display: flex;
		align-items: center;
		background-color: transparent;
		border: none;
		box-shadow: none;
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		font-size: 2rem;
		padding: 3px 6px;
	}

	#login-button, #logout-button {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		background-color: transparent;
		border: none;
		box-shadow: none;
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		font-size: 2rem;
		margin: auto 0;
		vertical-align: middle;
		padding: 3px 6px;
	}
}

ul.header-links > li {
	display: inline-block;
	margin: 0 0.3rem;
}

ul.header-links a {
	color: white;
	text-decoration: none;
}

/* Footer */
ul.footer-link {
	display: block;
	margin: 1rem;
	padding: 0;
}

ul.footer-link > li {
	display: inline-block;
	margin-inline-end: 1rem;
}

@media (max-width: 640px) {
	ul.footer-link > li {
		display: block;
		margin: 0.15rem 0;
	}
}

ul.footer-link a {
	color: #333;
	text-decoration: none;
}

.footer-text {
	margin: 1rem;
	color: #959595;
	line-height: 1.8em;
	font-size: 0.6rem;
	white-space: normal;
}

.footer-text span {
	color: #777;
	font-weight: bold;
}


/* ETC */
.xe-widget-wrapper table {
	font-size: 1rem;
}

.xe-widget-wrapper table td.time, .xe-widget-wrapper table td.date {
	font-size: 1rem;
}

.xe_content img, .xe_content video, .rhymix_content img, .rhymix_content video {
	max-width: 100% !important;
}

div.read_header > h1 {
	width: 100%;
	white-space: wrap;
}

div.read_body {
	font-size: 1.1rem;
}

div.read_body .xe_content, div.read_body .rhymix_content {
	font-size: 1.1rem;
}
