/* ===========  */
@media screen and (min-width:768px) {
	.main {
		width:900px;
		margin:0 auto;
		position:relative;
	}
}
form#Search {display:none;}


/* =========== 検索form =========== */
#SearchDefault {
	max-width:700px;
	width: 100%;
	margin:20px auto;
	padding:10px;
	border: 1px solid #ccc;
	background: linear-gradient(to bottom, #fff, #eee);
	text-align:center;
}
#SearchDefault fieldset {border:none;height:32px;}
#SearchDefault input {vertical-align:middle;}
#SearchDefault #search_button:hover,
#search_button2:hover {
    filter: alpha(opacity=80);
    -moz-opacity:0.8;
    opacity:0.8;
}
#SearchDefault input#q {
	padding:3px;
	font-size:14px;
}
#SearchDefault input[type="image"] {
	max-width: 150px;
	height: auto;
}

@media screen and (min-width:768px) {
	#SearchDefault {
		margin:20px auto;
		padding:25px 10px;
		border-radius: 5px;
	}
	#SearchDefault input#q {
		width:400px;
	}
}




/* =========== 詳細検索 =========== */
@media screen and (max-width: 767px) {

#SearchDetail {
	max-width:700px;
	width: 100%;
	margin:0 auto 20px;
	padding: 5px 2%;
	background:#fff;
}
#SearchDetail.opened {
	background:#FFF8E7;
	border:1px solid #999;
}
.toggle-title {
	margin:0 auto;
	padding:10px 20px;
	border:1px solid #999;
	background: linear-gradient(to bottom, #fff, #eee);
	border-radius:10px;
}
.opened .toggle-title {
	border:0;
	background:transparent;
}

  .toggle-content {
    /* display: none; の代わりにこれらを使う */
    opacity: 0;             /* 最初は透明 */
    max-height: 0;          /* 最初は高さゼロ */
    overflow: hidden;       /* はみ出た中身を隠す */
    
    /* アニメーションの速度設定（0.4秒かけて変化） */
    transition: opacity 0.4s ease, max-height 0.4s ease;
  }

  /* 「is-open」クラスがついたとき（開くとき） */
  .toggle-content.is-open {
    opacity: 1;             /* 不透明にする（ほわっと浮き出る） */
    max-height: 500px;      /* 中身が十分収まる高さを指定（※後述） */
  }

  .toggle-title {
    cursor: pointer;
    user-select: none;
  }
  /* 閉じているときは「＋」 */
  .toggle-title::after {
    content: " ＋";
  }
  /* 開いているときは「ー」 */
  /* 隣接セレクタを使って、contentにis-openがついているときの見出しを制御 */
  .toggle-title:has(+ .toggle-content.is-open)::after {
    content: " ー";
  }
}
@media screen and (min-width: 768px) {
	#SearchDetail {
		max-width:700px;
		width: 100%;
		margin:0 auto 20px;
		padding: 15px 2% 5px;
		border:1px solid #999;
		background:#FFF8E7;
	}
  .toggle-content {
    /* PCではアニメーションを無効化し、常に全開にする */
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
  }
}



.sd_dl {
	border-bottom: 1px solid #ccc;
}
.sd_dl dt {
	font-weight: bold;
	color: #F60;
}
.sd_dl dd {
}
@media screen and (min-width:768px) {
	.sd_dl {
		display:flex;
		gap:10px;
	}
	.sd_dl dt {
		width: 100px;
		flex-shrink: 0;
	}
	.sd_dl dd {
	}
}







#SearchDetail ul {
	border-bottom: 1px solid #ccc;
}
#SearchDetail li {
	margin: 5px;
	font-size:14px;
	display:block;
}
#SearchDetail li.title {
	width:100px;
	font-weight:bold;
	color:#F60;
	flex-shrink: 0;
}
#SearchDetail li:not(.title) {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}
#SearchDetail li.ecj {
	flex: 1;
	min-width: 200px;
}
@media screen and (min-width:768px) {
	#SearchDetail {
		padding: 15px 10px 5px;
	}
	#SearchDetail ul {
		margin: 0 0 10px 0;
		padding: 0 0 10px 0;
		border-bottom: 1px solid #ccc;
		display: flex;
		flex-wrap: wrap;
		align-items: center;
	}
	#SearchDetail li {
		margin: 5px;
		font-size:14px;
	}
	#SearchDetail li.title {
		width:100px;
		font-weight:bold;
		color:#F60;
		flex-shrink: 0;
	}
	#SearchDetail li:not(.title) {
		display: inline-flex;
		align-items: center;
		gap: 3px;
	}
	#SearchDetail li.ecj {
		flex: 1;
		min-width: 200px;
	}
}
#SearchDetail li input {margin:0; line-height:20px;}
#SearchDetail li label {line-height:20px; display: inline-block;}
#SearchDetail img.hatena {padding-left:3px; vertical-align: middle;}
#search_button2 {
	margin:15px auto;
	display:block;
	max-width: 100%;
	height: auto;
}



/* =========== 結果表示 =========== */
.ResultText {
	margin:20px 0 0;
	padding:10px;
	background:#FFF8E7;
	border:1px solid #CCC;
	font-size:16px;
	font-weight:bold;
}
.outline {
	max-width:100%;
	margin-bottom:30px;
	padding:20px 0 10px;
	border:1px solid #CCC;
	border-top:0;
	overflow:hidden;
}
.outline a {text-decoration:underline;}
.ResultArea {margin:0 auto;}
.Result {line-height:1;}
.res_box {
	border-bottom:1px solid #CCC;
	display:flex;
}
.res_num {
	width:5%;
	background:#FFF8E7;
	font-weight:bold;display: flex;
	justify-content: center; /* 左右の中央寄せ */
	align-items: center;     /* 上下（垂直方向）の中央寄せ */
}
.res_dl {
	width:95%;
	display:flex;
	flex-wrap:wrap;
	align-items: flex-start;
}

.res_dl dt {
	width:100%;
	margin-bottom:10px;
	padding-left:10px;
	height:32px;
	line-height:32px;
	font-size: 16px;
	font-weight:bold;
	background:#DBECFE;
	order:1;
}
.res_image {
	width:30%;
	margin:0 4%;
	text-align:center;
	order:2;
}
.res_image img {
	height:auto;
	border:1px solid #DDD;
}
.res_price {
	text-align:center;
	order:3;
}



.res_price .r01 {
	font-weight: bold;
	font-size: min(3.636vw, 28px);
}
.res_price .r02 {
	font-weight: bold;
	margin-top:10px;
	color:red;
	font-size: min(3.636vw, 28px);
}
.res_price .r02 span {
	color:#F19EC2;
}
.res_price .r03 {
	font-weight: bold;
	margin-top:10px;
	color:red;
	font-size: min(3.636vw, 28px);
}
.res_price .r04 {
	font-weight: bold;
	font-size: min(8.051vw, 62px);
	color:red;
}
.res_price .r04 span {
	font-size:14px;
}
.res_r01 {
	width:50%;
	margin:10px 0;
	order:5;
}
.res_r01 ul {
	display:flex;
	flex-wrap:wrap;
	gap:3px;
}

.res_r02 {
	width:30%;
	margin:10px 4%;
	display:flex;
	order:4;
}
.spec_icon {
	display:flex;
	flex-wrap:wrap;
}
.spec_icon li {
	width:50%;
}
.spec_icon .icoList_eco {
	width:100%;
	margin-top:3px;
}

.old_item_disp {
	font-size:12px;
	width:100%;
	margin-bottom:5px;
	text-align:right;
	padding-right:10px!important;
	order:6;
}

@media screen and (min-width:768px) {
	.Result {
		width:870px;
		margin:0 auto;
	}
	.res_dl {
		width:840px;
	}
	.res_num {
		width:30px;
	}
	.res_image {
		width:130px;
		margin:0;
	}
	.res_image img {
		width:100px;
	}
	.res_price {
		width:240px;
		padding-right:80px;
	}


	.res_price .r01 {
		margin-top:10px;
		font-size:16px;
	}
	.res_price .r02 {
		font-size:12px;
	}
	.res_price .r03 {
		font-size:12px;
	}
	.res_price .r04 {
		font-size:32px;
	}
	.res_price .r04 span {
		font-size:14px;
	}
	.old_item_disp {
		font-size:12px;
		width:100%;
	}

	.res_r01 {
		width:250px;
		margin:0;
		display:block;
		float:left;
		order:4;
	}
	.res_r01 ul {
		display:block;
	}

	.res_r01 li {height:40px;}
	.res_r01 li img {
		height:35px;
	}
	.res_r02 {
		width:220px;
		margin:0;
		display:block;
		float:left;
		order:5;
	}
	.res_r02 li {height:62px;float:left;}
	.res_r02 li img {
		margin-right:10px;
	}
	.spec_icon li {
		width:auto;
	}
	.spec_icon .icoList_eco {
		width:auto;
		margin:0;
	}
	.old_item_disp {margin:0;}
}

.Result .res_box:hover {
	filter: alpha(opacity=70);
	-moz-opacity:0.7;
	opacity:0.7;
}
.highlight {
	background-color:#ffaa2e;
	font-weight:bold;
	color:white;
}




/* =========== CountNavi =========== */
div#count_navi{
	padding:20px 20px 10px;
	font-size:16px;
	font-weight:bold;
}
div#count_navi a{
	padding:5px;
	margin:2px;
	border:1px solid #DDD;
}
div#count_navi a:hover{
	background-color:#0166FE;
	color:#FFF;
}
div#count_navi span.count_now{
	padding:5px 5px;
	margin:2px;
	border:1px solid #DDD;
	background-color:#EEE;
}
div#count_navi span#counter{
	width:100%;
	margin-top:10px;
	font-size:14px;
	display:block;
	font-weight:normal;
}


@media screen and (min-width:768px) {
	div#count_navi span#counter{
		width:auto;
		margin:0;
		display:inline;
	}
}
















