/* 全体 */
.banner-box {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 50px;
  margin-right: 50px;
}
.banner-box .banner-item {
  flex: 0 0 48%;  /* ← ここを修正 */
  box-sizing: border-box;
  overflow: visible;
}
.banner-box .banner-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0px;
}
.banner-box .banner-item p {
  margin-top: 10px;
  font-size: 1.3rem;
  text-align: center;
  color: #939393;
}
@media (max-width: 768px) {
  .banner-box {
    flex-direction: column;
    margin-left: 15px;
    margin-right: 15px;
  }
  .banner-box .banner-item {
    flex: none;
    width: 100%;
  }
  .banner-box .banner-item p {
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: -3px;
  }
}


/* キャプション説明欄 */
.banner-box .banner-caption{
	background-color: #f5f5f7;
	border-radius: 0 0 10px 10px;
	padding: 1.0em 1.7em 1.5em 1.7em;
	font-size: 1.5rem;
	line-height: 1.8;
	margin-top: 0px;
	/* 以下を追加 */
  display: flex;
  flex-direction: column;
}
.banner-box .banner-caption .link{
	background-color: #5c86ff;
	display: block;
	border-radius: 100px;
	padding: 5px ;
	text-align: center;
	font-size: 1.7rem;
	text-decoration: none;
	font-weight: bold;
	color: white;
	
	/* 最下部に押し下げる */
	margin-top: auto;
	
}

/* リスト */
.banner-box ul {
  position: relative;
  	margin-left: 1.2em;
  	margin-bottom: 10px;
}
.banner-box ul li {
  	padding: 0.5em 0;
  	list-style-type: none!important;
	font-size: 1.3rem;
	line-height: 1.8;
}
.banner-box ul li:before {
	content: '\f00c';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	position: absolute;
	left : -1.5em; /*左端からのアイコンまで*/
	color: #ffb03f; /*アイコン色*/
}


/* タイトル */
.banner-box .title{
  font-family: "Zen Maru Gothic", sans-serif;
  font-weight: 600;
  font-size: 2.0rem;
  text-shadow:0px 0px 3px #3e31af;
  padding: 0.5em 1.2em;
  background-image: -webkit-gradient(linear, left top, right top, from(#9ca5ee), to(#49ebdf));
  background-image: -webkit-linear-gradient(left, #9ca5ee 0%, #49ebdf 100%);
  background-image: linear-gradient(to right, #9ca5ee 0%, #49ebdf 100%);
  color: #fff;
  margin-top: 10px;
  margin-bottom: 5px;
    border-radius: 10px;
  position: relative;
}
/*　吹き出しの場合
.banner-box .title:before {
  content: '';
  height: 0;
  width: 0;
  border: solid transparent;
  position: absolute;
  left: 30px;
  top: 100%;
  border-color: transparent;
  border-top-color: #9ca5ee;
  border-right-color: #9ca5ee;
  border-width: 6.5px;
}
*/






.banner-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.banner-caption {
  margin-top: auto; /* 必要に応じて調整 */
  background: #f0f0f0;
  padding: 0.5rem;
  height: 100%;       /* 高さを揃えるには、親が揃ってる必要あり */
}

