/*
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%;
}
/*画像の大きさの指定。画像が親要素よりも大きくなることを防ぐ*/

img swallow.png {
  width: 15px;
  height: 15px;
}
/*cursorに使用するためにサイズを設定*/

a {
  color: black;
  text-decoration: none; /*<a>タブの傍線非表示*/
}

ul {
  list-style: none;
}

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

.home {
  background-color: #f5efe9;
}

main {
  margin: auto;
}

#main-visual {
  margin: 30px auto;
  width: 600px;
}

#back-white-fix{
  height: 300px;
  width: 30%;
  top: 0;
  content: ' ';
  position: absolute;
  bottom: 0;
  margin-left: 67%;
  right: 3%;
  background-color: white;
  z-index: -2;
}

#back-white {
  content: ' ';
  position: absolute;
  top: -200px;
  bottom: 0;
  margin-left: 3%;
  background-color: white;
  transform: skewY(20deg);
  z-index: -2;
  width: 94%;
  height: 900px;
}

#back-lightgray {
  background-color: lightgray;
  z-index: -3;
  width: 100%;
  height: 65%;
  position: absolute;
  top: 900px;
  bottom: 0;
  left: 0;
  right: 0;
  transform: skewY(-20deg);
}

#back-lightgray2 {
  background-color: lightgray;
  z-index: -1;
  width: 100%;
  height: 50px;
  margin-top: 43px;
}

.news h2 {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.news {
  text-align: center;
  /* border-top: 2px solid;
  border-color: rgb(0, 145, 255); */
  margin-top: 0;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin: auto;
}

.news-TOPICS {
  width: 100%;
  font-size: 18px;
  text-align: left;
  display: flex;
  justify-content: center;
}

.news-TOPICS dl {
  display: flex;
  width: 90%;
  padding: 5px;
  margin: 0;
}

.news-TOPICS dt {
  width: 150px;
  text-wrap: nowrap;
}

.news-TOPICS dd {
  margin-left: 15px;
}

.main-contents {
  width: 58.61%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
}

ul.main-contents-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 32px;
  padding-left: 0;
}

.card-visual {
  position: relative;
} /*カードのタイトルの位置を指定するための基準*/

.card-visual img {
  width: 100%; /*imgの幅を親要素に合わせる。（親要素に任意のwidthを指定すると同時に）*/
}

.card-visual-title {
  width: 100%;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card-visual-title p {
  font-size: 20px;
  /* line-height: 120px; */
  font-weight: bold;
}

.change-white {
  color: white;
}

.yomimono-wrap {
  width: 88.75%;
  border: 2px solid;
  border-color: rgb(0, 145, 255);
  margin-left: auto;
  margin-right: auto;
  margin-top: 100px;
  text-align: center;
  padding-bottom: 70px;
  position: relative;
}

.yomimono h2 {
  font-size: 24px;
  font-weight: bold;
  margin: auto;
}

.yomimono-title{
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  max-width: 250px;
}

.yomimono-custom{
  display: flex;
  justify-content: space-evenly;
}

.yomimono-custom1{
  width: 40%;
}

.yomimono-custom2{
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-left{
  text-align: left;
  font-size: 15px;
}

.end-item{
  margin: 8px 3px 12px 3px;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-right{
  text-align: center;
  margin-left: auto;
}

.row3{
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bg-d3 {
  font-size: 12px;
  padding: 2px;
  border: solid 2px #8C8C8C;
  color: #333333;
  width: 100%;
  text-align-last: center;
}

#back-lightblue {
  background-color: #d1eef5;
  z-index: -2;
  width: calc(100% + 6%);
  height: 145%;
  margin-left: -3%; 
  margin-right: -3%; 
  height: 145%;
  position: absolute; 
  top: -30%;
  bottom: 0;
  left: 0;
  right: 0;
  /* transform: skewY(25deg); */
  clip-path: polygon(0 0, 0% 0, 270% 100%, 0% 100%);
}

#back-lightblue-fix {
  background-color: #d1eef5;
  z-index: -2;
  width: calc(100% + 6%);
  margin-left: -3%; /* 左側にはみ出す部分 */
  margin-right: -3%; /* 右側にはみ出す部分 */
  height: 50%;
  position: absolute; /*基準ボックスでの配置*/
  top: 80%;
  bottom: 0;
  left: 0;
  right: 0;
}

.yomimono {
  position: relative; /*reading-searchの配置基準*/
  margin-top: 70px;
}

#reading-search {
  /*検索フォーム*/
  position: absolute;
  display: flex; /*inputとbutton横並び*/
  right: 70px;
  top: 0px;
  vertical-align: baseline; /*form-input、formーbutton下揃え*/
  width: 20%;
  height: 50px;
}

.reading-searchfield {
  /*検索box*/
  position: relative; /*reading-submitボタンの配置基準*/
  border: none !important;
  border-bottom: solid rgb(103, 100, 100) !important;
  background-color: transparent !important;
  height: 100% !important;
  width: 100% !important;
  font-size: 100% !important;
}

#reading-submit {
  position: absolute; /*reading-searchfieldの右端に重ねる配置*/
  width: 60px;
  right: 0px;
  border: none;
  background-color: transparent;
}

img swallow.png {
  width: 15px;
  height: 15px;
}

.yomimono-container {
  width: 95%;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 30px;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: auto;
  height: auto;
  max-width: 1500px;
}

.yomimono-item {
  width: 370px;
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 5px 10px;
  margin-top: 30px;
  min-height: 240px;
}

.top-reading{
  display: flex;
  flex-direction: column;
}

.lilasuto{
  display: flex;
}

.ribbon {
  position: absolute;
  /*item（写真）を基本にした位置設定をする*/
  left: -30px;
  top: 15px;
  transform: rotate(-45deg);
  width: 100px;
  padding: 5px;
  background: #f00;
  color: #fff;
  font-size: 0.8em;
  line-height: 1;
  text-align: center;
}

.yomimono-item h3 {
  font-size: 17px;
  margin-top: 10px;
  margin-bottom: 5px;
  padding: 0 10px;
  min-height: 51px;
  text-align: left;
}

.yomimono-item p {
  width: 68.95%;
  font-size: 16px;
  margin: 10px auto 30px;
  text-align: left;
}

.yomimono-item-nav-links,
.research-report-nav-links,
.archive-nav-links {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

.yomimono-nav-links li,
.research-report-nav-links li,
.archive-nav-links li {
  border: rgb(51, 49, 49) solid 1px;
  border-radius: 5px / 5px;
  text-align: center;
  margin-right: 15px;
  padding-left: 5px;
  padding-right: 5px;
}

.yomimono-nav-links .dots,
.research-report-nav-links .dots,
.archive-nav-links .dots {
  border-style: none;
}

.footer-area {
  margin-top: 0px;
}

.update{
  width: 46%;
}

.update-items{
  background-color:  rgba(255, 255, 255, 0.6);
  padding: 10px 0;
  height: 300px;
  overflow: auto;
}

/*====================メディアクエリーcss=======*/
@media (max-width: 1200px) {
  .main-contents {
    width: 80%;
  }
  .news-TOPICS dl {
    width: 90%;
  }
  .card-visual-title p{
    font-size: 18px;
  }
  .bg-d3 {
    font-size: 10px;
  }
  .yomimono-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .main-contents {
    width: 90%;
  }
  .news-TOPICS dl {
    width: 90%;
  }
  .card-visual-title p{
    font-size: 17px;
  }
  #back-lightblue {
    clip-path: polygon(0 0, 0% 0, 2100% 100%, 0% 100%);
  }
  #back-lightblue-fix {
    height: 30%;
  }
}

@media (max-width: 678px) {
  #main-visual {
    width: 80%;
  }

  #back-lightblue-fix{
    height: 30%;
  }

  #back-white-fix {
    width: 25.7%;
    right: 4.5%;
  }
  #back-white {
    margin: 0 15px;
    top: -31px;
    background-color: white;
    transform: skewY(30deg);
    z-index: -2;
    width: 93%;
    height: 325px;
  }

  ul.main-contents-cards {
    grid-template-columns: 1fr; /*1列*/
    gap: 30px;
    padding-left: 0;
  }

  .card-visual-title p {
    line-height: 1.448;
    font-size: 18px;
    font-weight: bold;
  }

  .news h1 {
    font-size: 20px;
    line-height: 1.21;
    text-align: center;
    margin-top: 20px;
  }

  .news{
    flex-direction: column;
  }

  .update{
    width: 100%;
    margin-bottom: 80px;
  }

  .news-TOPICS dl {
    display: block;
    width: 90%;
    margin: 30px auto 0;
    text-align: center;
  }

  .news-TOPICS dt {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.448;
  }

  .news-TOPICS dd {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.448;
    margin-bottom: 16px;
  }

  .main-contents {
    width: 59.6%;
    margin-top: 30px;
  }

  #back-lightblue {
    background-color: #d1eef5;
    z-index: -2;
    width: calc(100% + 6%);
    margin-left: -3%; /* 左側にはみ出す部分 */
    margin-right: -3%; /* 右側にはみ出す部分 */
    height: 130%;
    position: absolute; /*基準ボックスでの配置*/
    top: -50%;
    bottom: 0;
    left: 0;
    right: 0;
  clip-path: polygon(0 0, 0% 0, 2500% 100%, 0% 100%);
  }

  #back-lightgray {
    background-color: lightgray;
    z-index: -3;
    width: 100%;
    height: 80%;
    position: absolute;
    top: 333px;
    bottom: 0;
    left: 0;
    right: 0;
    transform: skewY(-27deg);
  }

  .yomimono-wrap {
    margin-top: 50px;
  }

  .yomimono {
    display: block;
    flex-direction: column;
    margin-top: 117px;
    position: relative; /*reading-searchの配置基準*/
    margin-top: 47px;
  }

  .sp-mt-64{
    margin-top: 64px;
  }

  .yomimono h2 {
    font-size: 18px;
    font-weight: bold;
  }

  .yomimono-container {
    grid-template-columns: 1fr; /*1列*/
  }

  .yomimono-item h3 {
    font-size: 16px;
  }

  .yomimono-item p {
    width: 90%;
    margin-bottom: 50px;
    font-size: 14px;
  }

  #reading-search {
    /*検索フォーム*/
    top: 50px;
    right: 20px;
    width: 90%;
  }

  .reading-searchfield {
    /*検索box*/
    border: none;
    background-color: transparent;
    height: 40px;
  }

  #reading-submit {
    width: 50px;
  }

  /* Slide */

  .slick-initialized .slick-slide {
    display: flex;
  }

  .slick-arrow {
    background: transparent;
    border: none;
    font-size: 2.6rem;
    cursor: pointer;
    padding: 1rem;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
  }

  .slick-prev {
    left: 100px;
    z-index: 1;
  }

  .slick-prev__custom {
    margin-left: 1.5rem;
  }

  .slick-next {
    right: 100px;
  }

  .slick-dots {
    display: flex;
    justify-content: center;
    margin-top: 2px;
    margin-bottom: 20px;
    padding: 0;
  }

  .slick-dots li {
    margin: 0 20px;
  }

  .slick-dots button {
    width: 17px;
    height: 17px;
    border: none;
    border-radius: 100%;
    background-color: #6391d699;
    color: #6391d600;
    cursor: pointer;
    font-size: 0.5px;
  }

  .slick-dots .slick-active button {
    background-color: #6391d6;
  }
}
