﻿#cms_2-c .box_item{
	word-break: break-all;
}
.cms_2-c .cate_box{
    justify-content: flex-start;
}
@media screen and (max-width: 667px){
	#cms_2-c .cate_title{
		margin-left: 0;
	}
	#cms_2-c .box_item{
		border: none;
	}
	.cms_2-c .box_item{
		border: none;
	}
}
#cms_2-c .square_img, .rectangle_img{
    overflow:hidden!important;
}
#cms_2-c .cate_img1{
    max-height:450px!important;
}
#cms_2-h .box_img1, #cms_2-h .box_img2{width: 48%!important;}
#cms_2-h .box_title1{position: relative;    }
/*
#cms_2-h .box_title1:before{
  content: '';
  position: absolute;
  display: inline-block;
  width: 45px;
  height: 1px;
  bottom: -25px;
  left: 0;
  background-color: currentColor;
}
*/
.cms_2-h .box_wrap{box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px 0px;}
.cms_2-h .swiper-slide{height: auto!important;}
.cms_2-h .cate_box {height: 100%;min-height: 350px;}
.cms_2-h .box_img1{border-radius: 5px 0 0 5px;}
.cms_2-h .box_img1 img{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    object-fit: cover;
}
.cms_2-h .box_txt1{
    color: #222!important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 15;
	overflow: hidden;
}
.cms_2-h .swiper-pagination {
    bottom: -40px!important;
    z-index: 0;
    text-align: right;
    width: 80%!important;
    left: auto!important;
    right: 0;
}
.cms_2-h .swiper-pagination-bullet {
  border-radius: inherit;
  margin: 0!important;
  width: 45px;
  height: 3px;
  background:#6a6a6a;
  opacity: 0.19;	
}
.cms_2-h .swiper-pagination-bullet-active {
  background: #a9a9a9;
  opacity: 1;
}
.cms_2-h .swiper-button-prev,.cms_2-h .swiper-button-next{
	bottom: -60px;
    top: auto;    
    width: auto!important;
    height: auto!important;
    font-size: 30px;
}
.cms_2-h .swiper-button-prev{
	left: 10px;
}
.cms_2-h .swiper-button-next{
	left: 35px;
}

/* ---------- タブレット ---------- */
@media screen and (max-width: 768px){
.cms_2-h .cate_box {min-height: 250px;}
.cms_2-h .box_txt1 {-webkit-line-clamp: 7;}
}

/* ---------- スマートフォン ---------- */
@media screen and (max-width: 667px){
#cms_2-h .cate_box:first-of-type {margin-top: 60px;}
#cms_2-h .box_img1, #cms_2-h .box_img2{width: 100%!important;}

.cms_2-h .box_wrap {margin-bottom: 25%;}
.cms_2-h .swiper-pagination-bullet {width: 30px;}
.cms_2-h .box_img1 {border-radius: 5px 5px 0 0;padding-top: 63%;}
.cms_2-h .cate_box {min-height: 100%;}
.cms_2-h .box_txt1 {-webkit-line-clamp: 4;}
}

.link_type2 .cate_box a {
    color: #fff;
}
.link_type2 .cate_box a:before, .link_type2 .cate_box a:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}
.link_type2 .cate_box a:after {
    top: 100%;
    background-color: var(--color2);
    transition: 0.5s;
	z-index: 3;
}
.link_type2 .cate_box a:hover:after {
    top: 0;
}
.link_type2 .cate_box .txt_wrap {
    z-index: 2;
}
.link_type2 .more {
	letter-spacing: 3px;
    box-sizing: border-box;
	opacity: 0;
	transition: opacity .8s;
	z-index: 4;
}
.link_type2 .cate_box a:hover .more {
    opacity: 1;
}

#cms_2-h #cate6274 .box_item{
    padding-bottom:0;
}

/*#cate6274 */
 

/* --- タイムライン装飾 CSS --- */

/* タイムライン全体の枠組み */
#cate6274 .box_wrap {
    position: relative;
    padding-left: 30px; /* ドットと線の分のスペースを確保 */
    margin-top: 30px;
}

/* 縦の青いライン */
#cate6274 .box_wrap::before {
    content: '';
    position: absolute;
    top: 15px; /* 最初のドットの中心付近から開始 */
    bottom: 25px; /* 最後のドット付近で終了（項目のマージンに合わせて調整） */
    left: 20px; /* ドットの中心を通るように位置を調整 */
    width: 2px;
    background-color: #2a76e8; /* 画像の色に合わせた青 */
    z-index: 0;
}

/* 各時間ごとのブロック間隔 */
#cate6274 .cate_box {
    position: relative;
    margin-bottom: 25px !important; /* 各項目の間を程よく空ける */
    z-index: 1;
}

/* 最後の項目の下余白をリセット */
#cate6274 .box_wrap .cate_box:last-child {
    margin-bottom: 0 !important;
}

/* 時間とタイトルのテキスト */
#cate6274 .box_title1 {
    color: #2a76e8; /* 文字色を青に */
    font-weight: bold;
    position: relative;
    /* 時間とタイトルの間のスペース調整（全角スペースの幅が足りない場合などに有効） */
    word-spacing: 0.5em; 
}

/* 時間の横にある青いドット（丸） */
#cate6274 .box_title1::before {
    content: '';
    position: absolute;
    left: -30px; /* box_wrapのpadding-left分、左に戻す */
    top: 50%; /* 上下中央寄せの基準 */
    transform: translateY(-50%); /* 完全に上下中央に配置 */
    width: 12px;
    height: 12px;
    background-color: #2a76e8; /* 青色 */
    border-radius: 50%; /* 丸くする */
    z-index: 2;
    /* 線と重なる部分に白い縁取りをつけて綺麗に見せる（お好みで有効化してください） */
    /* border: 2px solid #fff; */
    /* box-sizing: border-box; */
}

/* 内容のテキスト */
#cate6274 .box_txt1 {
    color: #555; /* 内容は落ち着いたグレーに */
    line-height: 1.6;
}

/* --- タブレット表示での調整 --- */
@media screen and (max-width: 768px){
#cate6274 .box_title1{
    width:40%!important;
} 
#cate6274 .box_txt1{
    width:60%!important;
}
    
}


/* --- スマホ表示での調整 --- */
@media screen and (max-width: 767px) {
    #cate6274 .box_wrap {
        padding-left: 25px; /* 左の余白を少し狭く */
    }
    #cate6274 .box_wrap::before {
        left: 4.5px; /* 線の位置を調整 */
    }
    #cate6274 .box_title1::before {
        left: -25px; /* ドットの位置を調整 */
        width: 10px; /* ドットを少し小さく */
        height: 10px;
    }
    /* 既存レイアウトの微調整 */
    #cate6274 .pd_t-50px_sp {
        padding-top: 5px !important;
    }
    #cate6274 .box_title1,
    #cate6274 .box_txt1{
    width:100%!important;
} 

}

#cms_6-b .cate_box, #cms_6-b .cate_box .box_txt1, #cms_6-b .cate_box .box_txt2{
	border-color: #ffffff;
	word-break: break-all;
}
#cms_6-b .cate_box:first-of-type{
	border-top: 1px solid #ffffff;
}
.cms_6-b .cate_box, .cms_6-b .cate_box .box_txt1, .cms_6-b .cate_box .box_txt2{
	border-color: #ffffff;
	word-break: break-all;
}
.cms_6-b .cate_box:first-of-type{
	border-top: 1px solid #ffffff;
}
@media screen and (max-width: 667px){
	#cms_6-b .cate_title{
		margin-left: 0;
		margin-right: 0;
	}
}
#cms_2-c .box_item{
	word-break: break-all;
}
.cms_2-c .cate_box{
    justify-content: flex-start;
}
@media screen and (max-width: 667px){
	#cms_2-c .cate_title{
		margin-left: 0;
	}
	#cms_2-c .box_item{
		border: none;
	}
	.cms_2-c .box_item{
		border: none;
	}
}
#cms_7-a .cate_box:last-child,.cms_7-a .cate_box:last-child{border: none}