@charset "UTF-8";

/* テキストの自動拡大を無効化 */
body {
	-webkit-text-size-adjust: none;
	text-size-adjust: none; 
}

/* 基本設定 */

* {
	margin: 0;
}

img {
	width: 100%;
	height: auto;
}

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 {
	list-style-type: none;
	padding: 0;
	display: grid;
	grid-auto-flow: column;
	grid-column-gap: 20px;
	column-gap: 20px;
}

nav a {
	color: #666666;
	text-decoration: none;
	font-size: 12px;
	font-weight: bold;
}

nav a:hover {
	color: #ef9504;
}


/* ---------------------------------------------------------
	■ ヒーローイメージ
------------------------------------------------------------ */
figure.hero {
	grid-row: title;
	grid-column: 1 / -1;
}

figure.hero img {
	height: 350px;
	object-fit: cover;
	vertical-align: bottom;
}


/* ---------------------------------------------------------
	■ お問い合わせ
------------------------------------------------------------ */
article {
	grid-row: kiji;
}

article > * {
	margin-top: 1em;
	margin-bottom: 1em;
	display: block;
}

article p {
	line-height: 2;
}


/* 「お問い合わせ」ページ */
form p {
	margin-bottom: 20px;
}
input, textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
}
textarea {
	height: 120px;
}

/* 送信ボタン */
input[type="submit"] {
	background-color: #ffaa00;
	border: none;
	-webkit-appearance: none;
}


/* ---------------------------------------------------------
	■ サブメニュー（ 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版：ヒーローイメージ */
figure.hero {
	grid-row: title;
	margin-top: -20px;
}

/* PC版：ヘッダー */
header {
	justify-self: start;
}

/* PC版：ナビゲーションメニュー */
nav {
	justify-self: end;
	align-self: center;
}

/* -- PC版 ：「お問い合わせ」ページ -- */
article {
	grid-column: 2 / span 4;
}
article h1 {
	font-size: 42px;
}
article p {
	font-size: 18px;
}

/* 送信ボタン */
input[type="submit"] {
	width: 250px;
}


/* -- PC版 ： サブメニュー -- */
div.sidebar {
	grid-column: 6 / span 2;
}
} /* 注意 */

