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

ul {
  list-style: none;
}

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

a {
  cursor: pointer;
}

main {
  margin: auto;
}

.back-blue {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  color: white;
  height: 140px;
  background-color: #336b94;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.title-sm {
  font-size: 20px;
  margin-bottom: 0;
}

.section-wrap {
  width: 58.33%;
  margin-top: 70px;
  margin-left: auto;
  margin-right: auto;
}

.finance-contents p {
  font-size: 20px;
  line-height: 1.45;
  text-align: justify;
}

.finance-contents h2, .next-schedule h2, .application-wrap h2 {
  font-size: 24px;
  font-weight: bold;
  margin-top: 50px;
}

.finance-pg-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: left;
  margin-top: 35px auto;
}

.finance-pg-first,
.finance-pg-second {
  border: 1px solid;
  padding: 20px 20px; /* 全ての辺に20pxの余白 */
}

.finance-pg-first p,
.finance-pg-second p {
  font-size: 14px;
  margin-bottom: 25px;
}

.finance-pg-second {
  border-left: none; /*table重なる部分のborderを消す*/
}

.bold-color {
  background-color: #e1ebf2;
  width: 100%;
  display: block;
  font-weight: bold;
}

.finance-item-wrap {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
  margin-left: auto;
  margin-right: auto;
}

.item5, 
.item6 {
  width: 45%;
  height: 250px;
  object-fit: cover;
  flex: 1;
}

.item6{
  margin-left: 100px;
}

.next-schedule{
  margin-top: 50px;
}

.schedule {
  width: 80%;
  font-size: 20px;
  line-height: 1.45;
  margin-top: 35px;
  border: none;
}

.schedule th {
  font-size: 20px;
  width: 20%;
  text-align: justify;
  border: none;
  padding-left: 0;
  padding-top: 0;
}

.schedule td {
  font-size: 20px;
  border: none;
  padding-top: 0;

}

.lecturer {
  vertical-align: top;
}

.lecturer-spacing, .lecturer {
  line-height: 2; /* 行間を調整。上の年月日に合わせて広げる */
}

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

.application {
  margin-left: 80px;
  margin-top: 25px;
}

.application-text p{
  font-size: 20px;
}

.application ul {
  margin-top: 25px;
  margin-bottom: 25px;
}

.application ul li {
  font-size: 20px;
  line-height: 1.45;
  list-style-type: disc;
}

.inquiry p {
    font-size: 20px;
  }
 
.next-event{
  display: flex;
  justify-content: space-between;
}

.next-left {
  width: 59%;
  display: flex;
  flex-direction: column;
}

.next-left-img{
  margin: auto;
  width: 50%;
}

.next-right{
  width: 39%;
  height: fit-content;
}

.next-right img{
  border: 1px solid #000;
}

.next-label{
  text-align: center;
  font-size: 30px !important;
  margin-top: -30px !important;
}

.message {
  width: 88%;
  margin: 30px auto;
  border: 3px solid #4070BF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.text-content{
  width:85%;
  margin: auto;
}

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

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

.text-blue {
  color: #4070BF;
}

.fs-20{
  font-size: 20px;
}

.d-flex{
  display: flex;
}

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

.flex-center-contain{
  align-items: anchor-center;
}

.w-100{
  width: 100%;
}

.w-35{
  width: 35%;
}

.w-65{
  width: 65%;
}

.pl-10{
  padding-left: 10px;
}
.p-10{
  padding: 10px;
}
.my-10{
  margin: 10px 0;
}
.mb-0{
  margin-bottom: 0;
}

.w-label{
  width: 100px;
}

.ft-content{
  display: flex;
  flex-direction: column;
  margin-top: 40px;
}
.last-btn{
  background: #2E5F9B;
  display: inline-block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  text-align: center;
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis;
  font-weight: bold;
}
.last-btn:hover{
  color: #fff;
}
.pc-only{
  display: block;
}

.sp-only{
  display: none;
}
/*====================メディアクエリーcss=======*/

@media (max-width: 678px) {
  .sp-column {
    flex-direction: column;
  }

  .pc-only{
    display: none;
  }

  .sp-only{
    display: block;
  }

  .next-event{
    flex-direction: column;
  }
  .next-left {
    width: 100%;
  }
  
  .next-right {
    width: 70%;
    margin: auto;
  }
  .next-label{
    font-size: 24px !important;
  }

  .flex-center-contain{
    flex-wrap: wrap;
  }

  .text-content,
  .message {
    width: 100%;
  }

  .message {
    border-top: 3px solid #4070BF;
    border-bottom: 3px solid #4070BF;
    border-left: none;
    border-right: none;
  }

  .btn-area{
    margin: 30px auto;
  }

  .back-blue {
    height: 80px;
    line-height: 80px; /*見出し垂直方向のセンタリング*/
    line-height: normal; /* 垂直方向のセンタリングを解除 */
    padding: 10px; /* 上下の余白を追加 */
    word-break: keep-all;/*sp表示の場合だけ、キリの良いところで改行する*/ 
  }
  
  .back-blue h3{
    font-size: 16px;
  }

  .back-blue h1{
    font-size: 17px;
  }
  
  .section-wrap {
    width: 84%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify; /*文章両端揃え*/
  }

  .finance-contents h2, .next-schedule h2, .application-wrap h2 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 0;
  }

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

  .finance-pg-container {
    display: block;
    width: 100%;
    margin-top: 25px;
    margin-left: auto;
    margin-right: auto;
  }

  .finance-pg-first,
  .finance-pg-second {
    width: 100%;
  }

  .finance-pg-first,
  .finance-pg-second {
    display: block;
    width: 100%;
  }

  .finance-pg-second {
    margin-top: 20px;
    border-left: 1px solid;/*boxの重なる部分のborderを消していたものを戻す*/
  }

  .finance-pg-first p,
  .finance-pg-second p {
    font-size: 14px;
    margin-bottom: 10px;
  }


  .finance-item-wrap {
    display: block;
    flex-direction: column;
    margin-top: 50px;
  }

  .item5,
  .item6 {
    width: 100%;
  }

  .item5 {
    margin-bottom: 25px;
  }

  .item6 {
    margin-left: 0px;
  }

  .next-schedule {
    width: 100%;
    margin-top: 50px;
  }

  .schedule {
    width: 100%;
    margin-top: 25px;
  }

  .schedule th,
  .schedule td {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 15px;
    padding-left: 0;
  }

  td.date, td.time {
    display: inline-block; /* 各セルをインライン表示に */
    width: auto; /* 幅は自動 */
  }

  tr.second-day th {
    padding: 0;
  } 

  .application-wrap {
    margin-top: 30px;
  }

  .application {
    margin-top: 25px;
    margin-left: 0;
  }

  .application-text p{
    font-size: 15px;
  }

  .application ul {
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .application ul li {
    font-size: 15px;
  }

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