/* Search Page */

#search {  }
#search_main { max-width: 980px; margin: 0 auto 40px; padding: 0 10px; }
#search_main h2 { margin: 55px 0 0; font-size: 24px; text-align: center; line-height: 24px; font-weight: normal; }
#search_main h2 span { font-weight: 500; }
#search_main h2 .fa-search {
	width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-align: center;
    line-height: 40px;
    background: #c2a284;
    margin-right: 5px;
}
#search_main h3.result { text-align: center; margin: 0 0 15px; font-weight: normal; padding-bottom: 30px; }
#search_main h3 { font-size: 18px; margin:30px 0 15px; padding-bottom: 10px; }
#search_main h3 span { font-size: 20px; font-weight: 600; color: #966f4a; padding: 0 5px; }
#search_main h4 { font-size: 18px; margin:30px 0 15px; padding-bottom: 10px; font-weight: 500; border-bottom: 1px solid #ccc; }
#search_main h4 span { font-size: 20px; font-weight: 600; color: #966f4a; padding: 0 5px; }
	@media only screen and (max-width: 768px) {
		#search_main h4 { font-size: 16px; }
		#search_main h4 span { font-size: 18px; }
	}



#search_main p.not_match { font-size: 24px; margin: 30px 0 80px 0; text-align: center; }
#search_main .img_frame { border: 1px solid #ececec; padding: 2px; text-align: center; }
#search_main .img_frame img {  width: 100%; height: 150px; object-fit: cover; }
#search_main .ttl { text-align: center; margin: 5px 0 0; font-weight: 600; line-height: 18px; }
#search_main .ttl_ish { text-align: center; margin: 10px 0 0;  line-height: 18px; }
#search_main .vol { text-align: center; }
#search_main .cart_btn_c { text-align: center; }
#search_main .cart_btn { padding: 0 20px; font-size: 12px; margin-top: 10px; }
#search_main .more_btn_c { text-align: center; }
#search_main .more_btn { padding: 6px 180px; margin-top: 5px; }
#search_main div.flex_style { display: flex; flex-wrap:wrap; justify-content: space-between; }
#search_main div.flex_style::after {
    content: "";
    display:block;
    width: 20%; margin: 16px 20px;
}
#search_main div.flex_style::before { 
    content: ""; 
    display:block; 
    width: 20%; margin: 16px 20px;
	order: 1; 
}
#search_main div.flex_child { width: 22%; min-width: 180px; margin: 16px 10px; text-align: center; }
#search_main div.flex_child_md { width: 22%; min-width: 180px; margin: 16px 10px; }
#search_main div.flex_child_sm { width: 15%; min-width: 140px; margin: 10px 5px; }
#search_main div.flex_child_rank { width: 15%; min-width: 170px; margin: 16px 10px; }

#search_main img.img_frame { border: 1px solid #eaeaea; width: 100%; height: 150px; object-fit: cover; }

#search_main span.search_ranking {
    position: absolute;
    z-index: 1;
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    background-color: #c2a284;
    font-weight: 600;
    text-align: center!important;
    color: #fff;
    border-radius: 50%;
    margin: 5px!important;
    opacity: 0.8;
    }

/* tab */

#search_main .tab-5 {
    display: flex;
    flex-wrap: wrap;
    max-width: 980px;
}

#search_main .tab-5 > div {
    flex: 1 1;
    order: -1;
    min-width: 70px;
    padding: .7em 1em .5em;
    color: #777;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    border-bottom: #ccc 1px solid;
    margin: 0;    
}

@media only screen and (max-width: 768px) {
	#search_main .tab-5 > div {
    font-size: 14px;
	padding: 10px 3px;
    line-height: 20px;
    text-align: left;
	}
}

#search_main .tab-5 > div:hover {
    opacity: .8;
}

#search_main .tab-5 > div.selectactive { 
    border-bottom: 4px solid #33afb0;
    color: #33afb0;
	background-color: #fff;
}

#search_main .none_faq {
    text-align: center;
    padding: 50px 0;
}

@media only screen and (max-width: 768px) {
	#search_main .none_faq {
    font-size: 14px;
	}
}

/* pagination */
#search_main div.pagination { margin: 16px auto; position: relative; clear: both; }
#search_main div.pagination ul { list-style-type: none; margin: 0 auto; padding: 1em 0; text-align: left; }
#search_main div.pagination ul li { font-size: 14px; display: inline-block; padding: 0; margin: 2px 1px; text-align: center; position: line-height: 45px; }
#search_main div.pagination ul li.active { color: #fff; background: #966f4a; text-decoration: none; line-height: 28px; }
#search_main div.pagination ul li a { color: #966f4a; display: block; width: 100%; line-height: 24px; padding: 1px; text-decoration: none; border: 1px solid #966f4a; background: #fff; }
#search_main .pagination ul li a:hover,
#search_main .pagination ul li a:focus { background: #c1a286; color: #fff; }

/* read more */
#search_main .read_more {
  display: none;
}

#search_main close_button {
  display: block;
  color: #966f4a;
  cursor: pointer;
  border: none;
  text-align: right;
}
#search_main close_button:hover { text-decoration: underline; }
#search_main p.js-cropText { margin: 0; line-height: 20px; font-size: 13px; text-align: left; }


@media only screen and (max-width: 768px) {
	#search_main { margin: 0 auto 40px; padding: 0 8px; }
	#search_main h2 { margin: 25px 0 10px; font-size: 18px; }
	#search_main h2 .fa-search {
		width: 30px;
	    height: 30px;
	    line-height: 30px;
	    margin-right: 2px;
	}
	#search_main h3.result { margin: 0 0 10px; padding-bottom: 26px; font-weight: normal; font-size: 14px; line-height: 16px; }
	#search_main h3 { font-size: 15px; border-bottom: 1px solid #ccc; padding-bottom: 15px; margin:10px 0 15px; line-height: 22px; font-weight: bold; font-size: 18px; }
	#search_main p.not_match { font-size: 18px; margin: 24px 0 60px 0; }
	#search_main .more_btn { padding: 6px 80px; margin: 0 0 30px; }
	
	#search_main div.flex_child { width: 48%; min-width: 130px; margin: 10px 2px; text-align: center; }
	#search_main div.flex_child_md { width: 30%; min-width: 100px; margin: 10px 5px; }
	#search_main div.flex_child_sm { width: 30%; min-width: 100px; margin: 10px 5px; }	
	#search_main div.flex_child_rank { width: 30%; min-width: 100px; margin: 10px 5px; }	
	
	#search_main p.js-cropText { margin: 0; line-height: 18px; font-size: 12px; }
}
/* AI概要 */
#search_main .ai-summary {
  background-color: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#search_main .ai-summary-label {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 16px;
}

#search_main .ai-summary-label::before {
  content: "★ ";
  color: #007aff;
}

#search_main .ai-summary h2 {
  all: unset;
  display: block;
  font-size: 18px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #333;
}

#search_main .ai-summary p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 14px;
  text-align: left;
}

#search_main .ai-summary .highlight {
  background-color: #cceeff;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 3px;
}

#search_main p.legal-note {
  font-size: 12px;         /* 本文より小さめ */
  line-height: 1.6;
  color: #666;             /* グレーで弱めの印象 */
  margin-top: 10px;
  margin-bottom: 0;
  text-align: left;
  border-top: 1px dotted #ccc; /* 上に区切り線 */
  padding-top: 8px;
}
.ai-summary-container {
  position: relative;
  margin-bottom: 1.5em;
}

.ai-summary-content {
  overflow: hidden;
  max-height: 7em; /* 3行分の高さ */
  transition: max-height 0.3s ease;
}

.ai-summary-content a{
  text-underline-offset: 4px;
  text-decoration: underline;
  color: #966f4a;
}

.ai-summary-content a:hover{
  text-underline-offset: 4px;
  text-decoration: none;
  color: #333;
}

.ai-summary-container.expanded .ai-summary-content {
  max-height: 1000em; /* 展開時は充分大きく */
}

.toggle-summary-button {
  margin-top: 0.5em;
  background-color: #eee;
  border: none;
  color: #333;
  padding: 0.3em 0.8em;
  cursor: pointer;
  font-size: 0.9em;
  display: block;
  margin-left: auto;  /* ← ここがポイント */
}
/*レビュー*/
.review_item { margin-bottom: 10px; text-align: center; }
.review_rate_title { font-weight: bold; font-size: 15px; margin: 3px 0 0; display: inline-block; vertical-align: middle; }
.ttl_k { margin:0 3px; }
.review_rate { font-size: 12px; margin: 0px; display: inline-block; vertical-align: middle; }
.review_rate img { height: 20px; vertical-align: middle; }
.review_point { margin-left: 10px; font-weight: bold; font-size: 24px; color: #c10100; display: inline-block; vertical-align: middle; }
.review_num { font-size: 14px; display: inline-block; vertical-align: middle; margin-top: 6px; }

.reviewer_flex { display:flex; flex-wrap: nowrap; margin: 5px 0; line-height: 17px; /* justify-content: center; */ text-align: left; }
.avatar { font-size: 34px; margin: 0 8px 0 0; vertical-align: top; color: #8ec3e3; }
.reviewer_name { font-size: 13px; color: #000; text-align: left; }
.reviewer_subinfo { font-size: 12px; color: #777; line-height: 17px; }
.reviewer_star { vertical-align: text-bottom; }
.sub_date { font-size: 10px; color: #777; text-align: right; }
.review_comment_box{ margin: 0 auto 20px; position: relative; }
.review_comment { font-size: 13px; color: #000; padding: 0; line-height: 21px; }
.review_comment a{ color: #966f4a; text-decoration: underline; display: block; padding-top: 5px; padding-left: 3px; }
.review_comment a:hover{ color: #c2a284; }
.review_comment_title { margin: 2px 0; font-size: 15px; text-align: center; line-height: 20px; }
.review_comment_num { margin: 0; text-align: center; }
.review_comment_num img { margin-top: 0; height: 14px; }

@media only screen and (max-width: 768px) {
	.avatar { font-size: 34px; margin: 0 6px 0 0; vertical-align: top; color: #8ec3e3; }
	.reviewer_subinfo { font-size: 11px; }
}

/* FAQ */
.faq_wrapper { width: 95%; margin: 30px auto 80px; }
.faq_each { text-align: left; margin-bottom: 25px; }
.faq_q_line { border-bottom: 1px dotted #ccc; padding-bottom: 5px; margin-bottom: 5px; }
.faq_q { font-size:20px; font-weight: bold; color: #966f4a; }
.faq_colon { font-weight: normal; }
.faq_q_txt { font-size:16px; font-weight:bold; color:#966f4a; line-height:24px; }
.faq_a { font-size:20px; font-weight:bold; }
.faq_a_txt { font-size:15px; font-weight:normal; line-height:24px; }

@media only screen and (max-width: 768px) {
	.faq_wrapper { margin: 20px auto 80px; }
	.faq_q_txt { line-height:20px; }
}