/**********************************/
/* pc header */
/**********************************/

@media all and (min-width: 751px), print {
  #global-header.typeMid01 header {
    background-image: url("/kbslife/img/kbslife_top_bnr-02_pc.png");
  }
  #global-header.type02 header {
    background-image: url("/kbslife/img/kbslife_top_bnr-02_pc.png");
  }
}

/**********************************/
/* sp tablet header */
/**********************************/

@media screen and (max-width: 750px) {
  .device-js-on #global-header.typeMid01 header {
    background-image: url("/kbslife/img/kbslife_top_bnr-02_sp.png");
  }
  .device-js-on #global-header.type02 header {
    background-image: url("/kbslife/img/kbslife_top_bnr-02_sp.png");
  }
}

/**********************************/
/* common */
/**********************************/

a {
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.5;
}


/*archive btn*/
/*.link-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 280px;
    line-height: 50px;
    margin: 0 auto;
    border: 2px solid #005;
    color: #005;
    font-size: 16px;
    font-weight: bold;
    position: relative;
	}*/

.link-btn {
 display: flex;
 justify-content: center;
 align-items: center;
 max-width: 280px;
 line-height: 2.5;
 margin: 0 auto 56px;
 border: 2px solid #005;
 color: #000F32;
 font-size: 1.4em;
 font-weight: bold;
 position: relative;	
}


@media (max-width: 768px) {
  .pagination {
    font-size: 0.9em;
  }
  .pagination-prev, .pagination-next, .pagination-link {
    padding: 0.4em 0.6em;
  }
}


/**********************************/
/* style */
/**********************************/

/*PICK UP NEWS,LATEST NEWS h2*/
.kbs-title-h2 h2.title {
  line-height: 1.3;
  padding: 0 20px !important;
  margin-top: 96px !important;
  margin-bottom: 56px !important;
}
.kbs-title-h2 h2.title strong {
  margin-bottom: 0 !important;
  border-top: solid 1px #ddd;
  border-bottom: solid 1px #ddd;
}

/*h2横幅*/ 
@media (min-width: 751px), print {
	#secFeatures .secOuter,
	#secNews .secInner {
    margin: 0 auto;
    max-width: 1200px !important;
  }
}

/*category tag*/
.category-filters {
  display: flex;
  justify-content: center;
  gap: 20px; /* ボタン間の水平方向の隙間 */
  margin-bottom: 56px;
  padding: 0 10px;
  flex-wrap: wrap; /* ボタン折り返し */
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #f6f8fc;
  border: none;
  color: #0065D0;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap; /* ボタン内テキスト折り返し禁止 */
  font-weight: bold;
}

.filter-btn:hover {
  background-color: #C9F0FF; 
}

.filter-btn.active {
  background-color: #C9F0FF;
  color: #0065D0;
  font-weight: 600;
}

/* PICK UP NEWS grid-container style */
.grid-container {
  display: grid;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff; 
}

.grid-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.grid-item img {
  max-width: 100%;
  height: auto; 
  display: block; 
  margin-bottom: 0; 
}

/*PICK UP,NEW　title*/
.grid-item h2 {
  text-align: left;
  line-height: 1.5;
  font-weight: 600;
  margin-bottom: 5px;
}

/* description style */
.description {
  font-size: 0.95em;
  color: #d9d9d9;
  margin-bottom: 15px; /* 説明文とタグ・日付間の余白 */
}

/* tag date area */
.meta-info {
  display: flex; /* タグと日付を横並びにする */
  align-items: center; /* 垂直方向中央揃え */
  gap: 10px; /* タグと日付の間の余白 */
  /* margin-top: auto;*/ /* コンテンツの下部に配置されるように（必要に応じて） */
  padding-top: 10px; /* 上との区切り */
  /*border-top: 1px solid #eee; */
}

/* category tag */
.tag {
  display: inline-block;
  background-color: #C9F0FF;
  color: #0065D0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 500;
}

.category-emba {
  background-color: #C9F0FF;
}
.category-feature {
  background-color: #C9F0FF;
}
.category-mba {
  background-color: #C9F0FF;
}
time {
  display: inline-block;
  font-size: 0.9em;
  color: #666;
}

/* 中央のコンテンツを大きく表示 */
.item-center {
  grid-column: span 1; /* デフォルト1カラム */
}

.call-to-action {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px; /* 他のコンテンツとの間に余白 */
  text-align: center;
  align-self: flex-start; /* flexアイテムとして左寄せ */
}

.call-to-action:hover {
  background-color: #0056b3;
}



/* ==================================== */
/* PICK UP NEWS */
/* ==================================== */
/*.first-view-section { 
  display: grid;
  padding: 20px;
  max-width: 1200px; 
  margin: 0 auto 50px auto; 
  background-color: #fff; 
  border: 1px solid #ddd; 
}*/
.grid-item {
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-color: #fff;
  /*flex-grow: 1; */
}
.grid-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0;
}
.grid-item h2 { /* ファーストビューのタイトル */
  /*    margin-top: 15px;
    margin-bottom: 10px;*/
}
/*.description {
  font-size: 0.95em;
  color: #555;
  margin-bottom: 15px;
}*/

/*date*/
.meta-info {
  margin-top: auto;
  padding-top: 10px;
  /*border-top: 1px solid #eee;*/
}

/* 各グリッドアイテム全体を覆うリンク */
/*.item-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-decoration: none;
  color: transparent;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease-out;
}*/

/*.call-to-action {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin-top: 20px;
  text-align: center;
  align-self: flex-start;
  z-index: 2;
  position: relative;
}*/
/*.call-to-action:hover {
  background-color: #0056b3;
}*/
/* ==================================== */
/* LATEST NEWS*/
/* ==================================== */

.inr {
  max-width: 1200px;
  margin: 0 auto;
}

.news-section {
  max-width: 1200px; /* 全体の最大幅を設定 */
  margin: 0 auto;
  padding: 20px; 
  background-color: #fff; 
  margin-bottom: 50px; 
}
.news-section .section-title {
  text-align: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee; /* セクションタイトルの下線 */
}

.news-grid-container {
  display: grid;
  /* デスクトップ用デフォルト設定 */
  grid-template-columns: 1fr 1fr; /* 2カラム */
  gap: 0 40px; /* 縦方向のギャップなし、横方向は40px */
}

.news-item {
  display: flex; /* サムネイルとテキストの横並び */
  align-items: flex-start; /* 上揃え */
  padding: 15px 0; 
  text-decoration: none; 
  color: inherit; 
  border-top: 1px solid #eee; 
  border-bottom: 1px solid #eee; 
  margin-bottom: -1px; 
  transition: background-color 0.2s ease-out; 
}

.news-item:nth-child(1) {
  border-top: none; 
  border-bottom: none; 
}

/* thumbnail */
.news-thumbnail {
  width: 120px;
  height: auto;
  aspect-ratio: 1 / 1;	
  margin-right: 15px;
  display: flex;
  overflow: hidden;
  align-items: flex-start; /* テキストと画像の縦位置を揃える */

}
.news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  justify-content: center;
}

.news-content {
  flex: 1; /* テキストが残りスペースを占める */
	}

/* title,data area */
.news-content {
  flex-grow: 1; /* 残りのスペースを全て占める */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* LATEST NEWS title */
.news-content h3 {
  text-align: left;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 5px;
  margin-bottom: 5px;
}


/* ==================================== */
/* 3column*/
/* ==================================== */

@media (min-width: 1024px) {	
	
   .grid-container {
        grid-template-columns: 1fr 2fr 1fr; /* 1:2:1の比率で3列 */
    }	
	
 /* LATEST NEWS title */	
  .item-left, .item-center {
    border-right: 1px solid #ddd;
  }

  .news-item:nth-child(2) {
    border-top: none; 
    border-bottom: none; 
  }
	
.news-content h3 {
	font-size: 1.3em!important;
}		
}


/* ==================================== */
/* 2column*/
/* ==================================== */

/* タブレットサイズ (1行2列) */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-container {
    grid-template-columns: 1fr 1fr; /* 1行2列 */
  }
	
  .item-center {
    grid-column: span 2; /* 中央のアイテムは2カラム分占有 */
    order: -1; /* 中央のアイテムを一番上に表示 */
    border-bottom: 1px solid #ddd; /* 中央のアイテムの下に罫線 */
  }
	
  .item-left {
    border-right: 1px solid #ddd; 
  }

  .item-right {
    border-right: none;
  }
	
  .item-left {
    border-bottom: none;
  }
}


/* ==================================== */
/* 1column*/
/* ==================================== */

@media (max-width: 767px) {
	
  .kbs-title-h2 .secOuter h2, .kbs-title-h2 .secInner h2 {
    font-family: "Gotham SSm A", "Gotham SSm B";
    font-weight: 200;
    font-size: 0.9rem;
    letter-spacing: -1px;
    display: block;
  }
  .category-filters {
    gap: 8px; /* モバイルでのボタン間の隙間を少し狭くする */
  }
  .filter-btn {
    padding: 6px 12px; /* モバイルでのパディングを少し小さくする */
    font-size: 0.85em; /* モバイルでの文字サイズを小さくする */
  }
  .tag {
    font-size: 0.9em;
  }
	

  .grid-container {
    grid-template-columns: 1fr; /* 1行1列 */
  }
	
  .item-center {
    order: -1; /* 中央のアイテムを一番上に表示 */
    justify-content: center; /* 垂直方向中央揃え */
  }

  .grid-item {
    border-bottom: 1px solid #ddd;
  }

  .grid-item:last-child {
    border-bottom: none;
  }

  .grid-item {
    border-right: none;
  }

  .news-grid-container {
    grid-template-columns: 1fr; /* 1カラム */
    gap: 0; /* カラム間のギャップをなくす */
  }

  .news-item {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: -1px; 
  }
 
  .news-item:first-child {
    border-top: 1px solid #eee;
  }
	
  .news-item:last-child {
    border-bottom: 1px solid #eee;
  }
	
  .news-item {
    text-align: left !important; 
  }
	
  .news-thumbnail {
	width: 120px;  
    height: auto; 
    aspect-ratio: 1 / 1;
    display: flex;
	align-items: flex-start; /* テキストと画像の縦位置を揃える */
	gap: 1rem; /* 画像とテキストの間にスペース */  
  }
	
  .news-thumbnail img {
  flex-shrink: 0; /* 画像が縮まないように */   
  }

  .news-content {
   flex: 1; /* テキストが残りスペースを占める */
	}
	
  .meta-info {
    justify-content: left;
  }
}

.news-item.hidden {
  display: none !important;
}