/*
Theme Name: genken
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

@charset "UTF-8";

* {
  box-sizing: border-box;
} /*全ての要素をborder-boxにするーーコンテンツ、border、paddingの合計がwidthと解釈される*/

html {
  font-size: 100%;
}
/*設定した文字サイズを正しく反映*/

img {
  max-width: 100%;
}
/*画像の大きさの指定。画像が親要素よりも大きくなることを防ぐ*/

body {
  background-color: white;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

a {
  cursor: pointer;
}

main {
  margin: auto;
}

h1.back-blue {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  color: white;
  height: 140px;
  background-color: #336B94;;
  line-height: 140px; /*見出し垂直方向のセンタリング*/
  margin-top: 0;
}

.contents {
  width: 58.33%;
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify; /*文章両端揃え*/
  display: flex;
  flex-direction: column;
}

.contents h2 {
  font-size: 24px;
  font-weight: bold;
}

.contents p {
  line-height: 1.448;
  margin-top: 10px;
}

.d-flex{
  display: flex;
  justify-content: center;
  align-items: center;
}

.m-auto{
  margin: auto;
}
/*====================メディアクエリーcss=======*/

@media (max-width: 678px) {

  h1.back-blue {
    font-size: 22px;
    height: 80px;
    line-height: 80px; /*見出し垂直方向のセンタリング*/
  }

  .contents {
    width: 82.4%;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify; /*文章両端揃え*/
  }

  .contents h2 {
    font-size: 18px;
    margin-bottom: 0px;
  }

  .contents p {
    font-size: 15px;
  }

  .d-flex{
    flex-direction: column;
  }
}