@charset "UTF-8";

/* =========================================
   narrow_search.css
   検索フォーム専用スタイル
   作成: 2025-09-16
========================================= */


/* =========================================
フォームコンテンツ
========================================= 
.form_content{
max-width:600px;
margin:0 auto;

}*/



/* =========================================
フォーム
========================================= */
.narrow_search_box{
box-sizing: border-box;
width:100%;
margin:auto;
border:solid 0rem green;
text-align: left;
padding-left:0rem;
list-style: none;

}

.narrow_search {
padding:0;
border:solid 0rem red;
}

/*三角アイコン*/
.narrow_search_triangle {
margin-bottom:0.2rem;
position: relative;
display: block;
border:solid green 0px;
}
.narrow_search_triangle::before {
  position: absolute;
  display: inline-block;
  pointer-events: none;
  top: calc(50% - 6px);
  right: 16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 6px 0 6px;
  border-color: #ff9999 transparent transparent transparent;
  content: '';
}


/* =========================================
カウントボックス
========================================= */
.form_bottom_buttons{
  display: flex;
  gap: 3px;
  flex-wrap: nowrap;
  width: 100%;
}


/* =========================================
カウントボックス
========================================= */
.narrow_search_count_box {
padding-top:1px;
  flex: 0 1 45%;  /* 幅は45%、狭ければ少し縮む */
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 0.4rem;
  gap: 10px;
  box-sizing: border-box;
}

.narrow_search_count_text {
  font-size: 13px;
  line-height: 1.1;
  text-align: left;
  border: solid red 0px; /* デバッグ用なら残す */
}

.result_count, .result_count_single {
border:solid green 0px;
}


/* =========================================
送信
========================================= */
.narrow_search input[type=submit]{
  flex: 1 1 0; /* 残り幅を自動で均等分配 */
 margin: 0; /* ← ブラウザ標準の余白をリセット */
  height: 4rem;
  border: 1.5px solid #ffffff;
  border-radius: 0.4rem;
  background-color: #ff9999;
  color: #fff;
  font-size:16px;
  cursor: pointer;
font-family: icomoon;/*FontAwesomeをフォント指定*/
}

.narrow_search input[type=submit]:hover{
background-color: #68B6FB;}

/* =========================================
ボタン
========================================= */
.narrow_search button[type=button]{
  flex: 1 1 0; /* 残り幅を自動で均等分配 */
  margin: 0; /* ← ブラウザ標準の余白をリセット */
  height: 4rem;
  border: 1.5px solid #ffffff;
  border-radius: 0.4rem;
  background-color: #ff9999;
  color: #fff;
  font-size: 16px;
   /*line-height: 4rem; ← 追加：縦中央を確実に */
  cursor: pointer;
}

@media screen and (max-width:1004px){
.narrow_search button[type=button]{
font-size: 13px;
  font-weight:bold;
}
}


/* PC用 hover 
.narrow_search button[type=button]:hover {
  background-color: #68B6FB !important;
}*/

/* スマホ用 active 
.narrow_search button[type=button]:active {
  background-color: #68B6FB;
}*/

/* :focus も元に戻す */
.narrow_search button[type=button]:focus {
  background-color: #ff9999;
  outline: none;
}



/* =========================================
ラジオボタン
========================================= */
.narrow_search_box_radio {
  box-sizing: border-box;
  width: 100%;
  height: 4rem;             /* 枠の高さ */
  margin: auto;
  display: flex;            
  justify-content: center;   /* 横中央 */
  align-items: center;       /* 縦中央 */
  gap: 25px;                 /* ラベル同士の間隔 */
  box-shadow: 0 0 2px #777;
  color: #666;
  background-color: white;
  font-size:16px;
  border-radius: 0.4rem;
}

/* ラベル */
.narrow_search_box_radio label {
  cursor: pointer;
  display: flex;
  align-items: center;      /* ラジオと文字を縦中央揃え */
  font-weight: bold;
}

/* ラジオボタン */
.narrow_search input[type=radio] {
  margin: auto;
  font-size:16px;
  margin-right:2px;
}

/* =========================================
テキスト
========================================= */
.narrow_search input[type=text]{
box-sizing: border-box;
width:100%;
height:4rem;
padding:0 0.5rem; 
border: solid 2px #ff9999;
border-radius:0.4rem;
color:#666;
margin-bottom:0.3rem;
font-size:16px; /*消すと影響する*/
background-color:white;
}




/* =========================================
セレクト
========================================= */
.narrow_search_select{
width:100%;
height:4rem;
padding:0 0.5rem; 
border: solid 2px #ff9999;
border-radius:0.4rem;
color:#666;
font-size:16px;
background-color:white;
cursor: pointer;
}



/* =========================================
form_opener
========================================= */

/* チェックボックス非表示（犬・猫どちらも対応） */
#form_container_dog,
#form_container_cat {
  display: none;
}

/* トグルボタン */
.form_opener {
  margin: 1.5rem auto 1rem auto;
  width: 13rem;
  cursor: pointer;
  height: 5rem;
  border-radius: 3px;
  border: 1px solid #fff;
  color: #fff;
  text-align: center;
  background-color: #ff9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0; 
}

/*
.form_opener:hover {
  background-color: #68B6FB;
  color: white;
}
*/

.form_opener-mark {
  display: inline-block;
  height: 5rem;
  padding-top: 1.4rem;
  font-size: 2rem;
  line-height: 2rem;
  margin-right: 1rem;
  font-weight: bold;
  vertical-align: top;
}

.form_opener-content {
  display: inline-block;
  height: 5rem;
  padding-top: 0.9rem;
  font-size:16px;
  line-height: 16px;
  vertical-align: top;
}

/* 開閉コンテンツ */
.form_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease, margin 0.5s ease;
  margin-top: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 犬・猫それぞれに対応した開閉 */
#form_container_dog:checked + .form_opener + .form_content,
#form_container_cat:checked + .form_opener + .form_content {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin-top: 0.5rem;
}



/* =========================================
絞り込んだ条件
========================================= */
.top_search_blue {
  text-align: center;
  margin-top: 3.3rem;
  position: relative;  
  border: 0.1rem dashed var(--light-blue-dashed);
  border-radius: 1rem;
  box-shadow: 0 0 0 0.5rem var(--light-blue-color), 0px 0px 4px 8px rgba(10,10,0,0.5);
  background-color: var(--light-blue-color);
  width: 100%;
  padding: 1rem 1rem 0 1rem;
  float: left;
}

@media screen and (max-width:741px){
	.top_search_blue{margin-top:4.5rem}}

@media screen and (max-width:741px){
	.top_search_blue{margin-top:7.2rem}}

.search-badges {
    display: inline-flex;      /* コンテンツ全体を中央に配置 */
    flex-wrap: wrap;           /* 複数行に折り返す */
    justify-content: flex-start; /* 中身は左揃え */
    gap: 0.8rem;
    margin-top: 1rem;
    text-align: left;
}

.search-badges .badge {
    background: #fff;
    color: #666;
    border: 1px solid #ccc;
    border-radius: 1rem;
    padding: 0.4rem 1rem;
    font-size:16px;
    font-weight: 500;
    line-height: 1.6;
max-width: 285px;
white-space: nowrap;
overflow: hidden;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
}