/*
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;
}
.study-title {
  width: 69.44%;
  margin-top: 80px;
  margin-left: auto;
  margin-right: auto;
}

.study-label-pc h2{
  font-size: 32px;
}
#study-visual {
  width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.study-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;
}

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

.study-container {
  width: 72.63%;
  display: flex;
  flex-wrap: wrap;
  gap: 67px 70px;
  margin: 100px auto 0px;
  max-width: 100%;
}

.study-item {
  width: 44.65%;
  min-width: 350px;
  height: 380px;
  margin: auto;
  border: 3px solid #4070bf;
  padding: 16px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.year{
  width: 200px;
  border: 3px solid #4070bf;
  margin: auto;
  text-align: center;
  padding: 6px 2px;
}

.study-item-long {
  border: 3px solid #4070bf;
  padding: 16px 30px;
  margin: 70px auto auto auto;
  width: 72.63%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.study-item-long h3 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.study-item h3 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.study-item p,
.study-item-long p {
  font-size: 20px;
  line-height: 1.448;
}


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

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

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

.study-post h4 {
  height: 125px;
  padding: 0 8px;
  margin: 20px auto;
  display: -webkit-box !important;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.study-post-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 8px;
}

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

.category {
  background: #4070BF;
  border-radius: 15px;
  color: #fff;
  font-size: 18px;
  padding: 5px 10px;
  margin: 10px auto;
  width: 70%;
  text-align: center;
  max-width: 350px;
  min-width: 300px;
}

.category:hover {
  color: #fff;
}

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

.date{
  padding: 0 10px;
  margin-right: auto;
}

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

.study-label-pc{
  width: 69.44%;
  margin: 30px auto 10px auto;
}

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

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

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

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

@media (max-width: 1400px) {
  .study-item {
    height: 410px;
  }
}


@media (max-width: 1068px) {
  .study-item-long{
    width: 350px;
  }
}

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

@media (max-width: 678px) {
  .study-label-pc{
    width: 95%;
    padding-left: 0;
  }

  .study-label-pc h2{
    font-size: 24px;
    margin-left: 20px;
  }

  .study-label-img {
    top: -35px;
    margin-left: 0;
  }

   .label-position {
    margin-left: 0;
  }

  .study-item {
    height: 300px;
  }

  .study-item-long{
    width: 90.4%;
    min-width: 350px;
  }
  .study-label{
    top: -35px;
  }

  .study-posts {
    width: 100%;
    flex-direction: column;
    display: none;
  }

  .study-post{
    min-height: fit-content;
  }
  
  .study-post h4 {
    height: fit-content;
  }

  .label-position {
    margin-left: 0;
  }
  .study-label{
    top: -15px;
  }

  .study-title {
  width: 94.67%;
  margin-top: 20px;
  }

  #study-visual {
  width: 100%;
  }

  .study-title h1 {
    margin-bottom: 0;
  }

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

  .study-contents-wrap {
    width: 82.4%;
    margin-top: 30px;
  }

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

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

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

  .study-item {
    width: 100%;
  }

  .study-item h3,
  .study-item-long h3 {
    font-size: 18px;
    margin-top: 12px;
  }

  .study-item p,
  .study-item-long p {
    font-size: 15px;
    margin-top: 10px;
  }
}

