/*
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;
}

.service-title {
  width: 69.44%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
}

#service-visual {
  width: 57.8%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.border-only {
  width: 100%;
  height: 0px;
  border: solid #4070bf 3px;
  margin-top: 80px;
}

.service-contents {
  width: 61.25%;
  margin: 50px auto 0;
}

.service-contents h2 {
  font-size: 32px;
  font-weight: bold;
  background-image: url('./_g3/image/vector.png');
  background-repeat: no-repeat;
  background-position: left bottom;
  margin-bottom: 30px;
  padding-left: 20px;
  width: 300px;
}

.service-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 200px); /*画像の高さ＋タイトル・文章の高さ*/
  gap: 200px 205px;
  margin: 35px auto 200px;
  max-width: 100%;
  text-align: center;
}

.service-item h3 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 19px;
}

.label-position {
  margin-top: 30px;
}

.label-position h2{
  margin-left: 20px;
}

.service-label{
  position: relative;
  top: -45px;
}


/*====================メディアクエリーcss=======*/

@media (max-width: 678px) {
  .service-title {
    width: 94.67%;
    margin-top: 20px;
  }

  .service-title h1 {
    margin-bottom: 0px;
  }

  #service-visual {
    width: 100%;
  }

  .border-only {
    margin-top: 20px;
  }

  .service-contents {
    width: 84.27%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
  }

  .service-contents h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .service-container {
    display: flex;
    flex-direction: column;
    row-gap: 50px;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 50px;
  }

  .service-item h3 {
    margin-top: 18px;
    font-size: 18px;
    font-weight: bold;
  }

  .label-position {
    margin-left: 0;
  }
  .service-label{
    width: 85%;
    top: -35px;
  }
}
