@charset "utf-8";

/*
************************************************************************
* 基本設定
* @copyright Revolme Inc.
* 
* サイトの基本設定を行う
************************************************************************
*/

/*
************************************************************************
 基本
************************************************************************
*/
body
{
	min-width:var(--body-width-pc);
	font-size:var(--base-font-size);
	
	font-family: var(--font-jp), sans-serif;
	background-color:var(--body-background-color);
	color:var(--body-font-color);
	
	font-weight:normal;
	line-height:1.7;
	letter-spacing:0.10em;
}
body #wrapper
{
	visibility: hidden;
}
body.inited #wrapper
{
	visibility: visible;
}
body.inited.loaded #wrapper
{
}

/*
************************************************************************
 ページラッパー
************************************************************************
*/
#wrapper
{
	z-index:0;
	min-height:calc(var(--vh1) * 100);
	
	display: -ms-grid; /* グリッドレイアウト */
	display: grid; /* グリッドレイアウト */
}
#wrapper.straight-layout
{
	-ms-grid-rows: auto auto auto auto 1fr auto auto; /* 行区切り */
	-ms-grid-columns: 100%; /* 列区切り */
	
	grid-template-rows: auto auto auto auto 1fr auto auto; /* 行区切り */
	grid-template-columns: 100%; /* 列区切り */
}
#wrapper.side-navi-layout
{
	-ms-grid-rows: auto 1fr auto auto; /* 行区切り */
	-ms-grid-columns: 300px calc(100% - 300px) ; /* 列区切り */
	
	grid-template-rows: auto 1fr auto auto; /* 行区切り */
	grid-template-columns: 300px calc(100% - 300px); /* 列区切り */
}

/*
************************************************************************
 共通ヘッダー
************************************************************************
*/
#global-header
{
	z-index:7;
}
#wrapper.straight-layout > #global-header
{
	position:sticky;
	top:0px;

	-ms-grid-row: 1;
	-ms-grid-column: 1;
	
	grid-row: 1;
	grid-column: 1;
}

/*
************************************************************************
 ヘッダー
************************************************************************
*/
#header
{
	z-index:1;
}
#header-contents
{
	z-index:0;
}
#wrapper.straight-layout > #header
{
	
	-ms-grid-row: 2;
	-ms-grid-column: 1;
	
	grid-row: 2;
	grid-column: 1;
}

/*
************************************************************************
 ページタイトル
************************************************************************
*/
#page-title
{
	z-index:2;
}
#page-title-contents
{
	z-index:0;
}
#wrapper.straight-layout > #page-title
{
	-ms-grid-row: 3;
	-ms-grid-column: 1;
	
	grid-row: 3;
	grid-column: 1;
}

/*
************************************************************************
 パンくずリスト
************************************************************************
*/
#pankz
{
	z-index:3;
}
#wrapper.straight-layout > #pankz
{
	-ms-grid-row: 4;
	-ms-grid-column: 1;
	
	grid-row: 4;
	grid-column: 1;
}

/*
************************************************************************
 ボディ（コンテンツ部）
************************************************************************
*/
#body
{
	z-index:4;
}
#body-contents
{
	z-index:0;
}
#wrapper.straight-layout > #body
{
	-ms-grid-row: 5;
	-ms-grid-column: 1;
	
	grid-row: 5;
	grid-column: 1;
}

/*
************************************************************************
 フッター
************************************************************************
*/
#footer
{
	z-index:5;
}
#footer-contents
{
	z-index:0;
}
#wrapper.straight-layout > #footer
{
	-ms-grid-row: 6;
	-ms-grid-column: 1;
	
	grid-row: 6;
	grid-column: 1;
}

/*
************************************************************************
 共通フッター
************************************************************************
*/
#global-footer
{
	z-index:6;
}
#wrapper.straight-layout > #global-footer
{
	-ms-grid-row: 7;
	-ms-grid-column: 1;
	
	grid-row: 7;
	grid-column: 1;
}

/*
************************************************************************
 段落
************************************************************************
*/
section
{
	display:block;
	width:100%;
}
section:before,
section:after
{
	content: ".";
	display: block;
	clear: both;
	float: none;
	height: 0px;
	width: 100%;
	visibility: hidden;
	overflow:hidden;
}
section:before
{
	margin-bottom:6em;
}
section:after
{
	margin-top:6em;
}
section.no-margin:before,
section.no-margin:after
{
	margin-bottom:0px;
	margin-top:0px;
}
section
{
	border-bottom:1px dotted var(--body-border-color);
}
section.no-border
{
	border-bottom:0px solid transparent;
}
section:last-child
{
	border-bottom:0px solid transparent;
}
.row
{
	max-width:1000px;
	width:100%;
	margin:4em auto;
}
.row.no-margin
{
	margin:0px auto;
}
.row.thin-margin
{
	margin:2.0em auto;
}
.row.fill
{
	max-width:100%;
}

/* ################################################################################################ */
/* ## 中型                       ################################################################## */
/* ################################################################################################ */
@media screen and (max-width:1040px) {
	body
	{
		/* 最小幅 */
		width:100%;
		min-width:auto;
	}
	.row
	{
		width:calc(90%);
	}
}

/* ################################################################################################ */
/* ## スマホサイト用スタイル ###################################################################### */
/* ################################################################################################ */
@media screen and (max-width:640px) {
	/*
	************************************************************************
	 基本
	************************************************************************
	*/
	body
	{
		min-width:300px;
		font-size:var(--base-font-size-sp);
	}
	
	/*
	************************************************************************
	 段落
	************************************************************************
	*/
	.row
	{
		width:calc(90%);
	}
	.row.fill
	{
		width:100%;
	}
	.row.sp-fill
	{
		width:100%;
	}
}
