@charset "UTF-8";

/* テキストの自動拡大を無効化 */
body {
	-webkit-text-size-adjust: none;
	text-size-adjust: none; 
}

/* 基本設定 */
* {
	margin: 0;
}
img {
	width: 100%;
	height: auto;
}
/* 1em@48em(768px) から 2em@120em(1920px) に増加*/
@media (min-width: 48rem) {
  :root { font-size: calc(100% + ((1vw - .48rem) * 1.389)); }
    /* .48rem = viewportWidthMinimum /100 */
    /* 1.389rem = 100 * fontSizeDifference / viewportWidthDifference */
}
/* ページ全体の設定 */
body { 
  max-width: 1500px;
  margin: auto;
  display: grid;
  background-color: #c7ebc0;
	grid-template-columns:  0.1fr repeat(8,1fr) 0.1fr;
	grid-template-rows: 
              [head]   auto
              [nave]   50px
             	[title]  30px
              [main]   650px
              [guido]  40px
              [foot]   100px;
	grid-row-gap: 5px;
	row-gap: 5px;
	font-family: sans-serif;
}
/* パーツの配置*/
body > * {
	grid-column: 1 / -1;
}
/* ヘッダー */
header {
  grid-column: 1 / -1;
	grid-row: head;
	align-self: top;
}
/* ナビゲーションメニュー */
.inline-block-test {
	grid-row: nave;
  grid-column: 1 / -1;
  justify-self: center;
  text-decoration: none;
	align-self: center;
}
.inline-block-test ul-1 {
  grid-row: nave;
  grid-column: 1 / -1;
	list-style: none;
  margin:  0;
	padding: 0;
  justify-self: center;
  align-self: center;
}
.inline-block-test li {
  grid-row: nave;
  grid-column: 1 / -1;
	display: inline-block;
  align-self: center;
}
.inline-block-test li a {
  grid-row: nave;
  grid-column: 1 / -1;
  color: #0000cd;
	display: block;
  padding: 3px;
}
.inline-block-test a:hover {
  grid-row: nave;
  grid-column: 1 / -;
  color: #ff1493;
}
/* タイトル */
h3 {
  grid-row: title;
  grid-column: 2 / -2;
  justify-self: left;
  font-size: 23px;
}
main {
  grid-row: main;
  grid-column: 2 / -2;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
}
main div.table {
  width: calc(25% - 10px);
  margin: 5px;
}
/* ガイドへ */
.pguide {
  grid-row: guido;
  grid-column: 2 / -2;
  justify-self: center;
  text-decoration: none;
  align-self: center;
}
.pguide ul-1 {
  grid-row: guido;
  grid-column: 2 / -2;
  list-style: none;
  margin:  0;
  padding: 0;
  justify-self: center;
  align-self: center;
}
.pguide li {
  grid-row: guido;
  grid-column: 2 / -2;
  display: inline-block;
  align-self: center;
}
.pguide li a {
  grid-row: guido;
  grid-column: 2 / -2;
  display: block;
  padding: 3px;
}
/* フッター */
footer {
  grid-column: 1 / -1;
	grid-row: foot;
	align-self: bottom;
	font-family: 'Raleway', sans-serif;
}

/* ===== PC版の設定 ===== */
@media (max-width: 769px) and (min-width: 1500px) {
/* PC版：ページ全体の設定 */
body {
  max-width: 1500px;
  grid-template-columns: 0.1fr repeat(8,1fr) 0.1fr;
  grid-column-gap: 5%;
  column-gap: 5%;
  grid-template-rows: 
              [head]   100px
              [nave]   50px
              [title]  50px
              [main]  500px
              [guido]  30px
              [foot]   100px;
}
/* PC版：ヒーローイメージ */
figure.hero {
  grid-row: title;
  margin-top: 2px;
}
/* PC版：ヘッダー */
header {
  grid-row: head;
  grid-column: 1 / -1;
  justify-self: start;
}
/* ナビゲーションメニュー */
.inline-block-test {
  grid-row: nave;
  grid-column: 1 / -1;
  text-decoration: none;
  justify-self: center;
  align-self: center;
}
.inline-block-test ul-1 {
  grid-row: nave;
  grid-column: 1 / -1;
  list-style: none;
  margin:  0;
  padding: 0;
  justify-self: center;
  align-self: center;
}
.inline-block-test li {
  display: inline-block;
  align-self: center;
}
.inline-block-test li a {
  display: block;
  padding: 3px;
}
.inline-block-test a:hover {
  color: #666666;
}
/* タイトル */
h3 {
    grid-row: title;
    grid-column: 2 / -2;
    justify-self: left;
}
main {
  display: flex;
  flex-wrap: wrap;
}
main div.table {
  width: calc(25% - 10px);
  margin: 5px;
}
}

/* ===== PC版の設定ここまで ===== */

/* ===== Tablet版の設定 ===== */
@media (max-width: 415) and (min-width: 768px) {
/* Tablet版：ページ全体の設定 */
body {
  max-width: 768px;
	grid-template-columns: 0.1fr repeat(8,1fr) 0.1fr;
	grid-column-gap: 3%;
	column-gap: 3%;
	grid-template-rows: 
              [head]   50px
              [nave]   40px
              [title]  40px
              [main]  500px
              [guido]  40px
              [foot]   50px;
}
/* Tablet版：ヘッダー */
header {
	justify-self: start;
}
/* Tablet版：ナビゲーションメニュー */
/* ナビゲーションメニュー */
.inline-block-test {
  grid-row: nave;
  grid-column: 2 / -2;
  text-decoration: none;
  justify-self: center;
  align-self: center;
}
.inline-block-test ul-1 {
  list-style: none;
  margin:  0;
  padding: 0;
  justify-self: center;
  align-self: center;
}
.inline-block-test li {
  display: inline-block;
  align-self: center;
}
.inline-block-test li a {
  display: block;
  padding: 3px;
}
.inline-block-test a:hover {
  color: #666666;
}
/* Tablet版：記事一覧 */
h3 {
	grid-row: title;
}
main {
  display: flex;
  flex-wrap: wrap;
}
main div.table {
  width: calc(25% - 10px);
  margin: 5px;
}

}
/* ===== Tablet版の設定ここまで ===== */

/* ===== SP版の設定 ===== */
@media (max-width: 414px) {
/* SP版：ページ全体の設定 */
body {
  max-width: 414px;
  grid-template-columns: 0.1fr repeat(8,1fr) 0.1fr;
  grid-column-gap: 3%;
  column-gap: 3%;
  grid-template-rows: 
              [head]   30px
              [nave]   90px
              [title]  20px
              [main]  700px
              [guido]  15px
              [foot]   30px;
}
/* SP版：ヘッダー */
header {
  justify-self: start;
}
/* SP版：ナビゲーションメニュー */
nav {
  grid-row:  nave; 
  justify-self: center;
  align-self: center;
  font-size: 16px;
}
/* SP版：記事一覧 */
h3 {
  grid-row: title;
}
main {
  display: flex;
  flex-wrap: wrap;
}
main div.table {
  width: calc(50% - 10px);
  margin: 5px;
}
}
/* ===== SP版の設定ここまで ===== */
