@charset "utf-8";

#firstview{padding: 40px 0 0;}
#firstview .inner_1{max-width: 1600px; margin: 0 auto; padding: 0 50px;}
#firstview form{}
#firstview form .top_box{display: flex; align-items: flex-end;}
#firstview form .top_box .left_box{}
#firstview form .top_box .left_box h2{ line-height: 120%; font-size: 50px; font-weight: 700; padding: 0 0 18px;}
#firstview form .top_box .left_box p{ line-height: 180%; font-size: 16px; font-weight: 700;}
#firstview form .top_box .right_box{max-width: 790px; margin: 0 0 5px auto; width: 483px; position: relative; border-bottom: 1px solid #000000; display: flex; align-items: center; justify-content: space-between;}

#firstview form .top_box .right_box input.search{font-weight: 500; font-size: 18px; width: calc(100% - 40px); display: block; padding: 0px 0 16px 0; border: none;}
#firstview form .top_box .right_box .submit_box{display:inline-block; cursor:pointer; user-select:none; -webkit-tap-highlight-color: transparent;}

#firstview form .top_box .right_box .submit_box input[type="submit"]{display: none; }
#firstview form .top_box .right_box .submit_box:hover .submit_ui{ opacity:.85; transform: translateY(-1px);}
#firstview form .top_box .right_box .submit_box:active .submit_ui{transform: translateY(0);}
#firstview form .top_box .right_box .submit_box input:focus-visible + .submit_ui{outline:2px solid #000; outline-offset:4px;}


#firstview form .btm_box{max-width: 1200px; margin: 0 auto; padding: 67px 0 27px;}
#firstview form .btm_box .flex.flex_box_1 ul{display: flex;}
#firstview form .btm_box .flex.flex_box_1 ul li{width: 227px; border: 1px solid #000; position: relative;}
#firstview form .btm_box .flex.flex_box_1 ul li:before{content: ""; display: block; width: 8px; height: 8px; border-bottom: 1px solid #000; border-right: 1px solid #000; top: 45%; transform: translateY(-50%) rotateZ(45deg); position: absolute; right: 17px;}
#firstview form .btm_box .flex.flex_box_1 ul li:not(:last-child){border-right: none;}
#firstview form .btm_box .flex.flex_box_1 ul li select{background: #fff; border: none; width: 100%; height: auto; padding: 13px 15px 12px; font-size: 14px; line-height: 129%; color: #000;}
#firstview form .btm_box .flex{display: flex; align-items: center;}
#firstview form .btm_box .flex.flex_box_1{justify-content: space-between;}
#firstview form .btm_box .flex.flex_box_1 .conditions{display: flex; align-items: center;}
#firstview form .btm_box .flex.flex_box_1 .conditions p.result{font-size: 14px; line-height: 160%; font-weight: 700; padding: 0 27px 0 0 ;}
#firstview form .btm_box .flex.flex_box_1 .conditions p.result .data{font-size: 19px; line-height: 160%; font-weight: 700; display: inline-block; padding: 0 8px;}
#firstview form .btm_box .flex.flex_box_1 .conditions .slt_box{border: 1px solid #DEDEDE; border-radius: 5px; position: relative; width: 146px; margin-right: 29px;}
#firstview form .btm_box .flex.flex_box_1 .conditions .slt_box:before{content: ""; display: block; width: 8px; height: 8px; border-bottom: 1px solid #707070; border-right: 1px solid #707070; top: 45%; transform: translateY(-50%) rotateZ(45deg); position: absolute; right: 17px;}
#firstview form .btm_box .flex.flex_box_1.flex_box_1 .conditions .slt_box select{background: #fff; border: none; width: 100%; height: auto; padding: 9px 15px 12px; font-size: 14px; line-height: 129%; color: #000;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn{display: inline-block;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn .icn_1{display: block;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn .icn_2{display: none;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn.active .icn_1{display: none;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn.active .icn_2{display: block;}
#firstview form .btm_box .flex.flex_box_1 .conditions .choice_box .btn.btn_1{margin-right: 21px; padding: 4px 0 3px;}
#firstview form .btm_box .tag_box{padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px;}
#firstview form .btm_box .tag_box li.tag{background: #000; position: relative; border-radius: 1000px; background: #000; color: #fff; padding: 5px 40px 6px 28px; display: inline-block; line-height: 140%; font-size: 14px;}
#firstview form .btm_box .tag_box li.tag .delete{width: 25px; height: 25px; position: absolute; top: 50%; transform: translateY(-50%); right: 5px; display: block;}
#firstview form .btm_box .tag_box li.tag .delete:before{content: ""; display: block; width: 10px; height: 1px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotateZ(-45deg); background: #fff;}
#firstview form .btm_box .tag_box li.tag .delete:after{content: ""; display: block; width: 10px; height: 1px; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotateZ(45deg); background: #fff;}
/*------------------------- casestudy -------------------------*/
#casestudy{padding: 0 0 144px;}
#casestudy h3{font-size: 39px; line-height: 143%;  font-weight: 600; text-align: center;}
.panel{ display: block; }

#casestudy .result{text-align: center; font-size: 29px; font-weight: 600; line-height: 160%;}
#casestudy .result span{font-size: 46px; font-weight: 600; display: inline-block; padding: 0px 8px; line-height: 160%;}
#casestudy .panel{border-bottom: 1px solid #000; padding: 0 0 31px;}
#casestudy .panel:not(:last-child){margin: 0 0 77px; padding: 0 0 31px;}

#pager{padding: 132px 0 0;}

#casestudy .none_box {display: none;}
#casestudy .none_box.active{display: block;}

/*------------------------- panel-group（カード表示） -------------------------*/
#casestudy #panel-group .panel-box{display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px;}
#casestudy #panel-group .box{display: flex; flex-direction: column; min-width: 0;}
#casestudy #panel-group .box > a{display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;}
#casestudy #panel-group .box .top_bpx{display: flex; flex-direction: column;}
#casestudy #panel-group .box .top_bpx img{width: 100%; height: auto; aspect-ratio: 364 / 242; object-fit: cover; display: block;}
#casestudy #panel-group .box .top_bpx h4{font-size: 18px; font-weight: 700; line-height: 160%; padding: 16px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
#casestudy #panel-group .box .top_bpx .panel-text{font-size: 13px; line-height: 170%; color: #555; padding: 8px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
#casestudy #panel-group .box .btm_bpx{margin-top: auto; padding: 14px 0 0;}
#casestudy #panel-group .box .btm_bpx .panel-logo p{font-size: 13px; font-weight: 600;}
#casestudy #panel-group .box .btn_list{display: flex; align-items: center; gap: 18px; padding: 12px 0 0; border-top: 1px solid #e6e6e6; margin-top: 14px;}
#casestudy #panel-group .box .btn_list a{display: inline-flex; align-items: center; gap: 6px;}

@media only screen and (max-width: 768px) {
	#casestudy #panel-group .panel-box{grid-template-columns: repeat(2, 1fr); gap: 30px 16px;}
	#casestudy #panel-group .box .top_bpx h4{font-size: 16px;}
}

/*------------------------- メディアギャラリー -------------------------*/
#casestudy #panel-content .panel-box .media{display: flex; align-items: center; gap: 10px; padding: 20px 0 0;}
#casestudy #panel-content .panel-box .media .over{flex: 1 1 auto; min-width: 0; overflow: hidden;}
#casestudy #panel-content .panel-box .media .over > div{display: flex; gap: 8px; flex-wrap: nowrap;}
#casestudy #panel-content .panel-box .media .over .img{flex: 0 0 auto; width: 61px; height: 61px; overflow: hidden;}
#casestudy #panel-content .panel-box .media .over .img img{width: 100%; height: 100%; object-fit: cover; display: block;}
#casestudy #panel-content .panel-box .media .number_box{flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 61px; height: 61px; border: 1px solid #000; font-weight: 600;}

@media only screen and (max-width: 768px) {

	#firstview{padding: 46px 0 0;}
	#firstview .inner_1{max-width: 90%; margin: 0 auto; padding: 0 0;}
	#firstview form .top_box{display: block; align-items: flex-end;}
	#firstview form .btm_box .panel-group .box ul.pill-list .pill {border-radius: 100px; overflow: hidden;}
	#firstview form .top_box .left_box h2{ line-height: 122%; font-size: 42px; padding: 0 0 18px;}
	#firstview form .top_box .left_box p{ line-height: 172%; font-size: 14px; }
	#firstview form .top_box .right_box{margin: 34px 0 0; width: 100%; align-items: flex-start;}
	#firstview form .top_box .right_box:before{width: 22px; height: 22px; right: 17px; top: 0px; transform: none;}
	#firstview form .top_box .right_box input{font-size: 18px; padding: 0px 44px 12px 0;}
	

	#firstview form .btm_box{ padding: 30px 0 27px;}
	#firstview form .btm_box .flex.flex_box_1 ul li{width: 33%; }
	#firstview form .btm_box .flex.flex_box_1 ul li:last-child{width: 45%;}
	#firstview form .btm_box .flex.flex_box_1 ul li:before{width: 8px; height: 8px; right: 15px;}
	#firstview form .btm_box .flex.flex_box_1 ul li select{ padding: 13px 10px 12px; font-size: 14px; line-height: 129%;}
	#firstview form .btm_box .flex{display: flex; align-items: center;}
	#firstview form .btm_box .flex.flex_box_1{display: block;}
	#firstview form .btm_box .flex.flex_box_1 .conditions{padding: 21px 0 0; justify-content: space-between;}
	#firstview form .btm_box .flex.flex_box_1 .conditions p.result{font-size: 14px; line-height: 160%; font-weight: 700; padding: 0 2% 0 0 ;}
	#firstview form .btm_box .flex.flex_box_1 .conditions p.result .data{font-size: 19px; line-height: 160%; padding: 0 8px;}
	#firstview form .btm_box .flex.flex_box_1 .conditions .slt_box{width: 41%; max-width: 146px; margin-right: 2%;}
	#firstview form .btm_box .flex.flex_box_1 .conditions .slt_box:before{ width: 8px; height: 8px; right: 17px;}
	#firstview form .btm_box .flex.flex_box_1.flex_box_1 .conditions .slt_box select{padding: 9px 15px 12px; font-size: 14px; line-height: 129%;}
	#firstview form .btm_box .tag_box{padding: 20px 0 0; gap: 10px;}
	#firstview form .btm_box .tag_box li.tag{padding: 5px 10% 6px 6%; line-height: 140%; font-size: 14px;}
	
	/*------------------------- #sec1 -------------------------*/
	#casestudy {padding: 0 0 50px;}
	#casestudy .responsive-inner{ padding: 0 5%; }
	
	#casestudy .result{width: 90%; margin: 0 auto;}

	#casestudy .panel{padding: 0 0 43px;}
	#casestudy .panel:not(:last-child){margin: 0 0 55px; padding: 0 0 43px;}
	
	#pager{padding: 54px 0 0;}

}

/*------------------------- 保存・おすすめボタン -------------------------*/
/* ハイライト削除：アイコンのみ切り替え */

/*------------------------- カスタムドロップダウン（ビッグメニュー形式） -------------------------*/
#firstview form .btm_box .flex.flex_box_1 ul li:has(.custom-select):before {
	pointer-events: none;
}

.custom-select {
	position: relative;
	width: 100%;
}

.custom-select select {
	display: none;
}

.custom-select .select-display {
	background: #fff;
	border: none;
	width: 100%;
	padding: 13px 15px 12px;
	font-size: 14px;
	line-height: 129%;
	color: #000;
	cursor: pointer;
	user-select: none;
}

.custom-select .select-icon {
	width: 16px;
	height: 16px;
	margin-right: 6px;
	vertical-align: middle;
}

.custom-select .select-items {
	position: absolute;
	background-color: #fff;
	border: 1px solid #ddd;
	top: 100%;
	left: 0;
	z-index: 99;
	display: none;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	min-width: 600px;
}

.custom-select .select-items.show {
	display: block;
}

.custom-select .select-items-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	max-height: 350px;
	overflow-y: auto;
}

.custom-select .select-items-grid .select-item {
	padding: 12px 10px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background-color: #fff;
	transition: all 0.2s ease;
	text-align: center;
	min-height: 90px;
}

.custom-select .select-items-grid .select-item:hover {
	background-color: #f0f4ff;
	border-color: #4169E1;
	transform: translateY(-2px);
}

.custom-select .select-items-grid .select-item.selected {
	background-color: #4169E1;
	border-color: #4169E1;
	color: #fff;
}

.custom-select .select-items-grid .select-item img {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
}

.custom-select .select-items-grid .select-item.selected img {
	filter: brightness(0) invert(1);
}

.custom-select .select-items-grid .select-item span {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

/*------------------------- タグクラウドスタイル（注目キーワード用） -------------------------*/
.custom-select .select-items-tagcloud {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-height: 400px;
	overflow-y: auto;
	justify-content: flex-start;
	align-items: flex-start;
}

.custom-select .select-items-tagcloud .select-item {
	padding: 8px 20px;
	cursor: pointer;
	border: 1px solid #e0e0e0;
	border-radius: 100px;
	background-color: #fff;
	transition: all 0.2s ease;
	text-align: center;
	min-height: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
}

.custom-select .select-items-tagcloud .select-item:hover {
	background-color: #000;
	border-color: #000;
	color: #fff;
	transform: translateY(-2px);
}

.custom-select .select-items-tagcloud .select-item.selected {
	background-color: #000;
	border-color: #000;
	color: #fff;
}

.custom-select .select-items-tagcloud .select-item span {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	white-space: nowrap;
}

@media only screen and (max-width: 768px) {
	.custom-select .select-display {
		padding: 13px 10px 12px;
		font-size: 14px;
	}

	.custom-select .select-items {
		min-width: 400px;
	}

	.custom-select .select-items-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.custom-select .select-items-grid .select-item {
		padding: 15px 10px;
		gap: 8px;
	}

	.custom-select .select-items-grid .select-item img {
		width: 36px;
		height: 36px;
	}

	.custom-select .select-items-grid .select-item span {
		font-size: 12px;
	}
}
