@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.2fr repeat(8,1fr) 0.2fr;
  grid-template-rows: 
              [head]   auto
              [nave]   50px
              [title]  30px
              [sub]    130px
              [table]  350px
              [guido]  50px
              [foot]   100px;
  grid-row-gap: 5px;
  row-gap: 5px;
  font-family: sans-serif;
}
/* パーツの配置*/
body > * {
  grid-column: 2 / -2;
}
/* ヘッダー */
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;
  display: block;
  padding: 3px;
}
.inline-block-test a:hover {
  grid-row: nave;
  grid-column: 1 / -1;
  color: #ff1493;
}
/* タイトル */
h3 {
  grid-row: title;
  font-size: 20px
}
/* ヒーローイメージ */
figure.hero {
	grid-column: 2 / -2;
	grid-row: title / span 2;
}
/* タイトル */
.photo h4 {
  grid-row: syub;
  justify-self: left;
}
/* サブタイトル */
.photo figure {
  grid-row:  sub-1;
  grid-column: 3 / -3;
  justify-self: center;
}
.photo div figure  {
  grid-row:  sub-2;
  grid-column: 3 / -3;
  justify-self: center;
}
.photo div-1 {
  grid-row: table;
  grid-column: 2 / -2;
  justify-self: center;
}
/* テーブル */
table { 
  grid-row: table;
  grid-column: 2 / -2;
  justify-self: center;
  font-size: 16px;
 }
/* トップページへ */
guide  {
  grid-row: guido;
  list-style-type: none;
	padding: 0;       
	justify-self: center;
  align-self: bottom;
}
/* フッター */
footer {
  grid-column: 1 / -1;
	grid-row: foot;
	justify-self: center;
	align-self: top;
}

/* ===== PC版の設定 ===== */
@media (max-width: 769px) and (min-width: 1500px) {
/* PC版：ページ全体の設定 */
body {
    max-width: 1500px;
    grid-template-columns: 0.2fr repeat(8,1fr) 0.2fr;
    grid-column-gap: 5%;
    column-gap: 5%;
    grid-template-rows: 
              [head]   100px
              [nave]   50px
              [title]  30px
              [sub]    130px
              [table]  550px
              [guido]  30px
              [foot]   100px;
}
/* PC版：ヘッダー */
header {
       grid-column: 1 / -1;
       grid-row: head;
       justify-self: center;
       align-self: top;
}
/* PC版：ナビゲーションメニュー */
.inline-block-test ul {
       list-style: none;
       margin:  0;
       padding: 0;
       grid-column-gap: 20px;
       column-gap: 30px
       justify-self: center;
       align-self: center;
}
.inline-block-test li a {
       display: block;
       padding: 3px;
       font-size: 25px;
}
h3 {
  grid-row: title;
  grid-column: 2 / -2;
  justify-self: left;
  font-size: 16px;
}
h4 {
  grid-row: sub;
  grid-column: 2 / -2;
  justify-self: center;
  align-self: center;
  font-size: 16px;
}
/* テーブル */
table { 
  grid-row: table;
  grid-column: 2 / -2;
  justify-self: center;
  font-size: 16px;
 }
}
/* ===== PC版の設定ここまで ===== */

/* ===== Tablet版の設定 ===== */
@media (max-width: 415px) 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]  50px
            [sub]    100px
            [table]  450
            [guido]  15px
            [foot]   50px;
}
/* Tablet版：ヘッダー */
header {
	justify-self: start;
}
/* Tablet版：ナビゲーションメニュー */
nav {
       grid-row:  nave; 
       justify-self: center;
       align-self: center;
}
/* Tablet版：記事一覧 */
h3 {
	grid-row: title;
}
.photo figure {
       grid-row:  sub;
       grid-column: 2 / span 4;
       justify-self: center;
}
div-1  {
       grid-row: table;
       justify-self: center;
}
.photo article {
       justify-self: center;
}
}
/* ===== 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]   120px
              [title]  30px
              [sub]    auto
              [table]  auto
              [date]   auto
              [recent] auto
              [guido]  15px
              [foot]   30px;
}
/* SP版：ヘッダー */
header {
  justify-self: start;
}
/* SP版：ナビゲーションメニュー */
nav {
  grid-row:  nave;
  grid-column: 2 / -2; 
  justify-self: center;
  align-self: center;
}
/* SP版：記事一覧 */
h3 {
  grid-row: title;
}
h4 {
  grid-row: sub;
  grid-column: 2 / -2;
  justify-self: center;
  align-self: center;
}

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

