body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  overflow-x: hidden;
  margin: 0px;
  padding: 0px;
}
.content{
  margin: 0;
}
.search-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 140px;
  margin: 0 auto;
}

.a-title,
.b-title {
  padding: 0 140px;
}
.b-title {
  margin-bottom: -35px;
}
.b-title p {
  white-space: nowrap;
}
.filters { 
  max-width: 1200px;
 }
.results { 
  flex: 1;
  margin-top: 50px;
 }
.content {
  padding: 0;
}
.ais-RefinementList-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start; 
}
.ais-RefinementList-checkbox {
  display: none;
}
.ais-RefinementList-count {
  display: none;
}
.facet-group {
  display: flex;
  align-items: center;
  margin-top: 55px;
}
.icon {
  transform: translateY(4px);
  margin-right: 10px;
}
.facet-group h4 {
  width: 140px;      
  flex-shrink: 0;    
  margin: 0;         
  padding-top: 8px;  
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 500;
}
.footer-back {
  margin-top: 30px;
}
.custom-date-text {
  font-size: 21px;
  line-height: 28px;
  letter-spacing: normal;
}
.date-unit {
  font-size: 16px;
  margin: 0 2px;
}
.normal-text {
  font-size: 20px;
}
.ais-RefinementList-labelText {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid #EF5350; 
  border-radius: 10px;   
  color: #222222;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
  transition: opacity 0.2s ease box-shadow 0.2s ease;;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  padding: 6px 16px !important;
}
.ais-RefinementList-labelText:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
}

.ais-RefinementList-item--selected .ais-RefinementList-labelText {
  border-color: #ff4d4f; 
  color: #ff4d4f;
  background-color: #fff1f0; 
  font-weight: normal !important;
}
.search-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
#stats-container {
  min-height: 24px;
  margin-top: -16px;
}
.search-info-wrapper {
  margin-left: auto;
  padding-right: 10px;      
}

.ais-ClearRefinements-button {
  background: transparent !important;      
  background-image: none !important;                                              
  color: #EF5350 !important;               
  border-bottom: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: underline !important;           
  text-decoration-thickness: 1.5px !important;    
  text-underline-offset: 6px !important;         
  font-size: 20px !important;              
  font-weight: normal !important;
  cursor: pointer !important;              
  opacity: 1 !important;                   
  width: auto !important;                  
  min-width: 0 !important;
  padding: 0 !important;
}

.ais-RefinementList-labelText svg {
    height: 29.33px;
    width: auto;
  }
.ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hit-card {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column; 
  height: 100%;
  border: 1px solid #222222;
  cursor: pointer;
  text-decoration: none;
  color: #222222;
}
.ais-Hits-item, .ais-InfiniteHits-item {
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important; 
}
.hit-image {
  width: 100%;
  height: 314px;
  object-fit: cover;
  object-position: center;
  background-color: #f5f5f5;
  flex-shrink: 0;
}
.hit-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hit-tag {
  display: inline-block;
  height: 20px;
  font-size: 14px;
  border: 1px solid #222222;
  padding: 2px 6px;
  border-radius:8px;
  margin-right: 2px;
  margin-bottom: 4px;
  vertical-align: middle;
}
.hit-tags {
  height: 70px;
}
.hit-title {
  font-size: 26px;
  font-weight: normal;
  margin: 0;
  margin-bottom: 25px;
}
.tag-なし {
  display: none;
}

.hit-tag {
  display: inline-flex;
  align-items: center;
}
.custom-date {
  display: none;
}

/* 2. 基本は「{{日時}} (normal-date)」を表示する */
.normal-date {
  display: inline;
}

/* 3. ただし「7日」か「8日」のときだけ、normal-dateを消す */
.date-7日 .normal-date,
.date-8日 .normal-date {
  display: none;
}

/* 4. 「7日」のときは custom-7 を表示 */
.date-7日 .custom-7 {
  display: inline-flex;
  align-items: baseline;
  font-size: 15px;
  line-height: 20px;
}

/* 5. 「8日」のときは custom-8 を表示 */
.date-8日 .custom-8 {
  display: inline-flex;
  align-items: baseline;
  font-size: 15px;
  line-height: 20px;
}
.small-text {
  font-size: 10px;
}
.tag-不可 {
  display: none;
}
.facet-name {
  display: flex;
  align-items: center;
}
.clear-container {
  display: flex;
  align-items: flex-end; 
  flex-grow: 1;
}
.empty-results {
  text-align: center;         /* 中央揃え */
  padding: 80px 20px;         /* 上下に余白をもたせる */
  color: #222222;
  background-color: #fbfbfb;  /* 薄い背景色でエリアを区切る */
  border-radius: 12px;        /* 角を少し丸くする */
  grid-column: 1 / -1;        /* グリッドレイアウトの中で横幅いっぱいに広げる */
}

.empty-results svg {
  margin-bottom: 16px;
}

.empty-results h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 10px 0;
}

.empty-results p {
  font-size: 16px;
  color: #666666;
  margin: 0;
}
@media (min-width: 768px) and (max-width: 1024px) {
  body{
    margin: 0px;
    padding: 0px;
  }
  .b-title{
    font-size: 40px;
  }
  .a-title,
.b-title {
  padding: 0 38px;
}
 
  .search-container {
    padding: 20px 40px;
  }
.ais-Hits-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  }
}
@media (max-width: 768px) {
body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  margin: 0px;
    padding: 0px;
}
.search-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.a-title,
.b-title {
  padding: 0 30px;
}
.b-title {
  margin-top: 50px;
  margin-bottom: -30px;
}
.b-title p {
  white-space: nowrap;
}
.results { 
  flex: 1;
  margin-top: 50px;
 }
.content {
  padding: 0;
}
.ais-RefinementList-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ais-RefinementList-checkbox {
  display: none;
}

.ais-RefinementList-count {
  display: none;
}
.facet-group {
  display: flex;
  flex-direction: column;
  align-items:normal;
  margin-top: 20px;
}
.facet-name {
    align-items: flex-end;
    margin-bottom: 12px;
  }
.icon {
  transform: translateY(-3px);
  margin-right: 0px;
  height: 15px;
}
.kikaku-icon {
  height: 13px;
  transform: translate(2px, -3px);
  margin-right: 6px;
}
.facet-group h4 {
  width: auto;     
  flex-shrink: 0;    
  margin: 0;        
  padding-top: 12px; 
  font-size: 14px;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.ais-RefinementList-labelText {
    padding: 4px 10px; 
    font-size: 14px;
    letter-spacing: 0.03em;
    line-height: normal; 
    height: fit-content; 
    transition: all 0.2s ease;
  }

.ais-RefinementList-item--selected .ais-RefinementList-labelText {
  border-color: #ff4d4f; 
  color: #ff4d4f;
  background-color: #fff1f0; 
  font-weight: normal !important;
}
.ais-RefinementList-labelText svg {
    width: 60px; 
    height: auto; 
  }
.search-info-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
#stats-container {
  min-height: 24px;
  margin-top: -16px;
}
.search-info-wrapper {
  margin-left: auto;
  padding-right: 0px;       
}
.custom-date-text {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: normal;
}
.date-unit {
  font-size: 10px;
  margin: 0 1px;
}
.normal-text {
  font-size: 14px;
}
.ais-ClearRefinements-button {
  background: transparent !important;      
  background-image: none !important;       
  box-shadow: none !important;             
  border: none !important;                 
  border-radius: 0 !important;            
  padding: 0 !important;
  color: #EF5350 !important;               
  border-bottom: none !important; 
  text-decoration: underline !important;           
  text-decoration-thickness: 1px !important;     
  text-underline-offset: 4px !important;            
  font-size: 14px !important;             
  font-weight: normal !important;
  cursor: pointer !important;              
  opacity: 1 !important;                   
  
  width: auto !important;                 
  min-width: 0 !important;
  transition: opacity 0.2s ease;
}

.ais-ClearRefinements-button:hover {
  opacity: 0.5 !important;
}

.ais-Hits-list {
  display: grid !important;
  grid-template-columns: 50% 50% !important; 
  gap: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.hit-card {
  overflow: hidden;
  display: flex;
  flex-direction: column; 
  height: 100%;
  border: 1px solid #222222;
  text-decoration: none;
  color: #222222;
  box-sizing: border-box !important;
}

.ais-Hits-item, .ais-InfiniteHits-item {
  padding: 0 !important;
  width: 100% !important; 
  margin: 0 !important;
  min-width: 0 !important; 
  box-sizing: border-box !important;
  overflow: hidden !important; 
}
.hit-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
  background-color: #f5f5f5;
  flex-shrink: 0;
}
.hit-content {
  padding: 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0 !important;
}
.hit-content > div:first-child {
  display: flex;
  flex-wrap: wrap; 
  gap: 2px;       
  margin-bottom: 4px;
}
.hit-tag {
  display: inline-block;
  height: 16px;
  font-size: 10px;
  border: 1px solid #222222;
  padding: 2px 4px;
  border-radius:8px;
  margin-right: 0px;
  margin-bottom: 0px;
  vertical-align: middle;
}
.hit-tags {
  height: 60px;
}
.hit-title {
  font-size: 14px;
  font-weight: normal;
  margin: 0;
  margin-bottom: 0px;
}
.tag-なし {
  display: none;
}

.hit-tag {
  display: inline-flex;
  align-items: center;
}
.date-7日 .custom-7 {
  display: inline-flex;
  align-items: baseline;
  font-size: 12px;
  line-height: 20px;
}

/* 5. 「8日」のときは custom-8 を表示 */
.date-8日 .custom-8 {
  display: inline-flex;
  align-items: baseline;
  font-size: 12px;
  line-height: 20px;
}
.small-text {
  font-size: 7px;
}
.tag-不可 {
  display: none;
}
.empty-results {
    padding: 50px 15px;
  }
  .empty-results h3 {
    font-size: 18px;
  }
  .empty-results p {
    font-size: 14px;
  }
}