/*
Theme Name: Theia Lite Child (WHITECROSS 学術大会)
Template: theia-lite
Description: Theia Lite の子テーマ。学術大会WEB開催サイト用のレイアウト（左サイドメニュー・ヘッダー・フッター）を定義する。親テーマのファイルは変更しないこと。
Author: Whitecross
Version: 1.0.0
Text Domain: theia-lite-child
*/

/*--------------------------------------------------------------
	親テーマ（Theia Lite）のスタイルの上書き
	※親の style.css の後に読み込まれる（functions.php 参照）
--------------------------------------------------------------*/

/* 画像の角丸をなくす */
img {
	border-radius: 0;
}

/* メインエリアを「左サイドメニュー＋本文」の横並びにする */
.site-main {
	display: flex;
}
/* 親テーマの clearfix 用疑似要素が flex の子要素にならないよう無効化 */
.site-main:before,
.site-main:after {
	content: none;
}

/* ヘッダー：グラデーション背景をやめ、ヘッダー画像（1280×311）を幅1060pxまでで全体が収まるように表示
   ※背景画像は header.php のインラインstyleで、高さは親テーマのJS（jquery.theia.js）で画面の高さに
     設定されるため、!important で上書きする */
#masthead.site-header {
	width: 100% !important;
	max-width: 1060px !important;
	min-height: 100px;
	height: auto !important;
	aspect-ratio: 1280 / 311;
	margin: 0 auto !important;
	background-image: none;
	background-color: #000;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-size: contain !important;
}
.site-brand-main {
	background-color: transparent;
}

.site-content {
	margin: 0 auto;
}

.content-theia {
	border-radius: 0;
}

.entry-title {
	line-height: 1.4;
}

body.single article.post {
	margin: 0;
}

/* 本文エリアの枠線・影・角丸をなくし、幅いっぱいにする */
body.single .content-theia {
	border: 0;
	border-radius: 0;
	width: 100%;
}
body.error404 .page-content,
body.search .page-content,
article.page,
article.forum,
body.bbpress article {
	position: static;
	border: 0;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	border-radius: 0;
	width: 100%;
}

.hentry {
	margin: 0;
}

/* フッター：黒背景・白文字、幅1060px */
body footer.site-footer {
	background: #000000;
	color: #fff;
	border-top: 0;
	padding: 15px;
	text-align: center;
	max-width: 1060px;
	margin: 0 auto;
}
.site-footer a {
	color: #008a19;
	text-decoration: none;
}

/* サイドバー開閉ボタン（右上の「ガイド」） */
.openSidebar {
	color: #1e4ed9;
}
.openSidebar.downColor {
	background: transparent;
}

/* -----------------------------------------------------------
	.p-section__side
		サイドセクション（template-parts/side-bar.php）
----------------------------------------------------------- */
.p-section__side {
	background: #fff;
}
/*---------- ロゴ ----------*/
.p-side__logo-inner {
	text-align: center;
}
.p-side__logo-image {
	display: block;
	width: 250px;
	height: auto;
	margin: 0 auto;
}

/*---------- メインメニュー ----------*/
/* 色は公式サイト（https://shikahozon.jp/165/）のサイドメニューに合わせる
   通常：青地（#206db7）に白文字／マウスオーバー：白地に青文字 */
.p-side__main-menu {
	width: 100%;
}

.p-side__main-menu-content {
	width: 250px;
	margin: 0;
	padding: 0;
}

.p-side__main-menu-item {
	position: relative;
	overflow: hidden;
	list-style-type: none !important;
	width: 100%;
	margin: 0 0 2px 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	color: #ffffff;
	background-color: #206db7;
}

.p-side__main-menu-item a {
	position: relative;
	display: block;
	margin: 0;
	padding: 18px 5px;
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	z-index: 10;
	color: #ffffff;
}

/* マウスオーバー時と、表示中のページの項目（is-current：side-bar.php で自動付与） */
.p-side__main-menu-item a:hover,
.p-side__main-menu-item.is-current a {
	background-color: #ffffff;
	color: #206db7;
}

/* 外部サイトへのリンクのアイコン（is-external：side-bar.php で自動付与） */
.p-side__external-icon {
	margin-left: 0.4em;
	font-size: 0.85em;
}

/* スマホ対応 */
@media screen and (max-width: 480px) {
	.site-main {
		display: flex;
		flex-direction: column;
	}
	.p-section__side {
		order: 1;
	}
	/* ロゴ画像（幅258px）より画面が広いので、左右をロゴの背景に近い青で埋める */
	.p-side__logo-inner {
		background: linear-gradient(170deg, #002983 0%, #0a3b8f 55%, #2d72b5 100%);
	}
	.p-side__logo-image {
		width: auto;
		height: auto;
	}
	.p-side__main-menu-content {
		width: 100%;
	}
}
