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

.training-title {
  width: 69.44%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#training-visuall {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.training-contents-wrap {
  width: 58.33%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  text-align: justify;
}

.training-contents h2 {
  font-size: 24px;
  font-weight: bold;
  background-image: url('./_g3/image/vector.png');
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-left: 20px;
  width: 280px;
}

.training-contents p, .training-item p {
  font-size: 20px;
  line-height: 1.45;
  text-align: justify;
  margin-top: 20px;
}

.training-contents ul {
  font-size: 20px;
  line-height: 1.45;
  list-style: disc;
}

.training-container {
  width: 72.63%;
  display: grid;
  grid-template-columns: repeat(2, 46.65%);
  grid-template-rows: repeat(3, 309px);
  gap: 67px 70px;
  margin: 100px auto 0px;
  max-width: 100%;
}

.training-item h3 {
  font-size: 24px;
  text-align: center;
}

.small {
  font-size: 22px;
}

.training-item p {
  text-align: justify;
  margin-top: 20px;
  line-height: 1.45;
}

.training-item {
  border: 3px solid #4070bf;
  padding: 16px 30px;
}

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

.training-posts{
  display: flex;
  justify-content: center;
  margin: auto;
  width: fit-content;
  gap: 15px;
}

.training-post {
  width: 350px;
  min-height: 550px;
  border-radius: 30px;
  border: 3px solid #4070BF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  margin: auto;
}

.img-rounded-top {
  border-top-left-radius: 27px;
  border-top-right-radius: 27px;
  min-height: 150px;
  max-height: 180px;
  width: 100%;
}

.category-m {
  width: 95%;
  height: 62px;
}

.category {
  background: #4070BF;
  border-radius: 15px;
  color: #fff;
  font-size: 18px;
  padding: 5px 10px;
  width: 100%;
  text-align: center;
}
.category:hover {
  color: #fff;
}
.date{
  padding: 0 10px;
  height: 170px;
  font-size: 15px;
}

.training-post-btn{
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 20px auto;
}

.post-btn{
  width: 140px;
  font-size: 18px;
  padding: 8px 0;
  border: 3px solid #4070BF;
  border-radius: 10px;
  text-align: center;
}

.training-label-pc{
  width: 69.44%;
  margin: 50px auto 10px auto;
}

.training-label-pc h2{
  margin-left: 20px;
  font-size: 32px;
}

.training-label-img{
  top: -50px;
  position: relative;
}

.pc-only { 
  display: flex !important;
}

.sp-only {
  display: none !important;
}

.pc-items{
  flex-direction: column;
  width: 70%;
  margin: auto;
  justify-content: center;
  align-content: center;
}

.pc-item{
  width: 100%;
  margin: auto;
  padding: 30px 200px;
  border-top: 3px solid #aaa7a7;
  display: flex;
  justify-content: space-evenly;
  gap:20px;
}

.pc-item-left{
  width: 33%;
  min-width: 250px;
}

.pc-item-left img{
  width: 100%;
  max-width: 300px;
}

.pc-item-right{
  width: 65%;
  min-width: 400px;
  max-width: 500px;
}

.pc-item-right h3{
  margin-bottom: 10px !important;
}

.year-center{
  margin: auto;
  width: 150px;
  padding: 10px 0;
  margin-top: 10px;
  text-align: center;
  border: 2px solid #4070BF;
}

.author{
  display: flex;
  align-items: center;
  gap: 10px;
}

.author img{
  width: 30%;
  border-radius: 30px;
}

.training-footer{
  width: 65%;
  display: flex;
  flex-direction: column;
  margin: auto;
  justify-content: center;
  align-items: center;
  padding: 15px 50px;
  text-align: center;
  border: 2px solid #4070BF;
  border-radius: 20px;
  min-width: 550px;
  max-width: 750px;
}

.training-footer a{
  width: 200px;
  padding: 10px 15px;
  background: #4070BF;
  color: #fff;
  font-size: 18px;
  border-radius: 10px;
  margin: 10px auto;
}

.text-left {
  text-align: left;
}

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

@media (max-width: 1300px) {
  .pc-item{
    padding: 50px 50px;
  }
}
@media (max-width: 800px) {
  .pc-only { 
    display: none !important;
  }

  .sp-only {
    display: flex !important;
  }

  .sp-item {
    border-top: 3px solid #aaa7a7;
    width: 100%;
    padding: 20px 20%;
  }

  .sp-item-bottom{
    display: flex;
    justify-content: space-between;
  }

  .sp-author{
    display: flex;
    flex-direction: column;
  }

  .sp-author img{
    border-radius: 30px;
  }

  .sp-item h6 {
    margin-bottom: 0;
  }

  .training-footer{
    width: 90%;
    min-width: 330px;
  }

  .label-position {
    margin-left: 0;
  }
  .training-label{
    top: -35px;
  }

  .training-label-pc {
    width: 95%;
  }

  .training-label-pc h2{
    font-size: 24px;
  }

  .training-label-img{
    top: -40px;
  }

  .training-posts {
    width: 100%;
    flex-direction: column;
  }
  
  .training-title {
    width: 94.67%;
    margin-top: 20px;
  }

  #training-visual {
    width: 100%;
  }

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

  .training-title h1 {
    margin-bottom: 0;
  }
  .training-contents-wrap {
    width: 82.4%;
    margin-top: 30px;
  }

  .training-contents h2 {
    font-size: 18px;
  }

  .training-contents p {
    font-size: 15px;
    margin-top: 25px
  }

  .training-contents ul {
    font-size: 15px;
  }

  .training-container {
    width: 90.4%;
    display: flex;
    flex-direction: column;
    row-gap: 39px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
  }

  .training-item {
    width: 100%;
  }

  .training-item h3 {
    font-size: 18px;
    margin-top: 12px;
  }

  .small {
    font-size: 15px;
  }

  .training-item p {
    font-size: 15px;
    margin-top: 20px;
  }
}

@media (max-width: 500px) {
  .sp-item{
    max-width: 100%;
    padding: 15px;
  }
}









