@charset "UTF-8";

/* テキストの自動拡大を無効化 */
body {
	-webkit-text-size-adjust: none;
	text-size-adjust: none; 
}

/*-- 基本設定 --*/
*, *:before, *:after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
img {
	width: 100%;
	height: auto;
	vertical-align: bottom;
}
a {
	text-decoration: none;
	color: #333333;
	vertical-align: bottom;
}
ol, ul, li {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.clearfix::after {
	content: "";
	display: block;
	clear: both;
}
figure, figcaption {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	vertical-align: baseline;
	background: transparent;
}

/* ページ全体の設定 */
body {
	display: grid;
	grid-template-columns: 20px 1fr 20px;
	grid-template-rows: 
		[head] 100px
		[title] auto
		[kiji] auto
		[submenu] auto
		[foot] 100px;
	row-gap: 20px;
}

/* パーツの配置*/
body > * {
	grid-column: 2 / -2;
}


/* -------------------------------------------------------------------
	■ ヘッダー（ ロゴ ）
---------------------------------------------------------------------- */
header {
	grid-row: head;
	justify-self: center;
	align-self: center;
}


/* -------------------------------------------------------------------
	■ ヘッダー（ ナビ ）
---------------------------------------------------------------------- */
nav {
	grid-row: head;
	justify-self: center;
	align-self: end;
}
nav ul {
	display: grid;
	grid-auto-flow: column;
	column-gap: 20px;
}
nav a {
	color: #333333;
	font-size: 12px;
	font-weight: bold;
}
nav a:hover {
	color: #ef9504;
}


/* -------------------------------------------------------------------
	■ ヒーローイメージ
---------------------------------------------------------------------- */
figure.hero {
	grid-row: title;
	grid-column: 1 / -1;
}

figure.hero img {
	width: 100%;
	height: 350px;
	object-fit: cover;
}


/* -------------------------------------------------------------------
	■ サイトについて ( article )
---------------------------------------------------------------------- */
article {
	grid-row: kiji;
}
article > * {
	margin-top: 1em;
	margin-bottom: 1em;
	display: block;
}

article p {
	line-height: 2;
}

/* テーブル */
table {
	border-collapse: collapse;
}
th, td {
	border: solid 1px #cccccc;
	padding: 20px;
}
th {
	width: 4em;
	text-align: left;
	background-color: #555d6b;
	color: #ffffff;
}
td {
	background-color: #e8eef9;
}


/* -------------------------------------------------------------------
	■ サブメニュー（ sidebar ）
---------------------------------------------------------------------- */
div.sidebar {
	grid-row: submenu;
}

aside {
	border: solid 1px #dddddd;
	padding: 20px;
	margin-top: 30px;
	margin-bottom: 30px;
	text-align: center;
}
aside h2 {
	border-bottom: solid 1px #dddddd;
	padding-bottom: 20px;
	margin-bottom: 20px;
	color: #888888;
	font-weight: normal;
	font-family: 'Raleway', sans-serif;
}
aside p {
	font-size: 14px;
	text-align: left;
}
aside:first-child img {
	width: 120px;
	height: 120px;
	border-radius: 50%;
}
aside ul {
	list-style-type: none;
	padding: 0;
	text-align: left;
}


/* 記事メニュー */
aside ul {
	grid-row: recent;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-gap: 20px 10px;
	gap: 20px 10px;
}

aside a {
	color: #000000;
	text-decoration: none;
}

aside a:hover {
	text-decoration: underline;
}

aside h3 {
	font-size: 14px;
}


/* -------------------------------------------------------------------
	■ フッター
---------------------------------------------------------------------- */
footer {
	grid-row: foot;
	justify-self: center;
	align-self: center;
	font-size: 13px;
	font-family: 'Raleway', sans-serif;
}

/* フッターのバー */
body::after {
	content: "";
	background-color: #eeeeee;
	grid-column: 1 / -1;
	grid-row: foot;
	z-index: -1;
}


/* *************** △ PC版の設定 / iPad Mini *************** */
@media (min-width: 768px) {

/* PC版：ページ全体の設定 */
body {
	grid-template-columns: 0.2fr repeat(6,1fr) 0.2fr;
	column-gap: 5%;
	grid-template-rows: 
		[head] 100px
		[title] auto
		[kiji submenu] auto
		[foot] 100px;
	row-gap: 20px;
}

/* PC版 ： ヘッダー */
header {
	grid-row: head;
	justify-self: start;
	align-self: center;
}

/* PC版 ： ナビ */
nav {
	justify-self: end;
	align-self: center;
}

/* PC版 ： ヒーローイメージ */
figure.hero {
	grid-row: title;
	margin-top: -20px;
}

figure.hero img {
	width: 100%;
	height: 350px;
	object-fit: cover;
}

/* PC版 ： サイトについて */
article {
	grid-row: kiji;
	grid-column: 2 / span 4;
}

article h1 {
	font-size: 42px;
}

article p {
	font-size: 18px;
}

/* PC版 ： サブメニュー */
div.sidebar {
	grid-column: 6 / span 2;
}
} /* 注意 */

