/* 基本動詞バンク向けの動詞格配列検索スタイル上書き */

.search-page-title {
  margin-bottom: 20px;
}

.content .section.pattern-selection-section {
  width: 70%;
  font-size: 110%;
  margin: 10px auto 30px;
  line-height: 30px;
  padding: 10px 15px 14px;
  border-left: 9px solid #e2e2e2;
  border-right: 9px solid #e2e2e2;
  background: #fff;
}

.pattern-instruction {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0 15px 20px 15px;
  padding: 15px;
  background-color: transparent;
  border: none;
  flex-shrink: 0;
}

.category-filter {
  margin: 12px 0 12px;
  gap: 8px;
}

.pattern-selection-section .category-btn {
  width: auto;
  min-width: 120px;
  margin-left: 0;
  padding: 6px 10px;
  border: 1px solid #818181;
  border-radius: 0;
  background: #fff;
  color: #202020;
  font-size: 13px;
  font-weight: 600;
}

.pattern-selection-section .category-btn:hover {
  background: #f4f4f4;
}

.pattern-selection-section .category-btn.active {
  background: #f0dae4;
  color: #333;
  border-color: #f0dae4;
}

.pattern-selection-section .category-btn i {
  font-size: 14px;
}

.count-badge {
  padding: 2px 5px;
  margin-left: auto;
  border-radius: 9px;
  background: #ececec;
  color: #4a4a4a;
  font-size: 11px;
  min-width: 20px;
}

.category-btn.active .count-badge {
  background: #d8afc3;
  color: #5d1337;
}

.loading {
  padding: 26px 10px;
  color: #666;
}

.loading i {
  color: #7e385a;
}

.pattern-list-container {
  margin: 0 auto;
  width: 70%;
}

.sort-btn {
  padding: 2px 10px !important;
  width: 85px !important;
  font-size: 80% !important;
  border-radius: 0;
  color: #666;
}

.sort-btn:hover {
  border-color: #7e385a;
  color: #7e385a;
}

.sort-btn.active {
  background: #7e385a;
  border-color: #7e385a;
  color: #fff;
}

.pattern-cards {
  border: 1px solid #efefef;
  margin-top: 6px;
  padding-right: 8px;
}

.pattern-card {
  border-bottom: 1px solid #ececec;
  padding: 9px 6px 9px 8px;
}

.pattern-card:hover {
  background: #f8f8f8;
}

.pattern-label {
  color: #2f2f2f;
}

.bar-container {
  background: #e8e8e8;
}

.pattern-bar {
  background: #bf9bac;
}

.pattern-count,
.pattern-count .percentage,
.pattern-count .sense-count {
  color: #4b4b4b;
}

.breakdown-title {
  color: #404040;
  margin-left: 2px;
}

.ga-kaku-breakdown {
  margin-left: 2px;
  background: #fafafa;
  border: 1px solid #c6c0c0;
  border-left: 3px solid #cdc9c9;
}

.breakdown-item:hover {
  background: #f0f0f0;
}

@media only screen and (max-width: 640px) {
  .pattern-selection-section {
    width: 85%;
    margin: 10px auto 20px;
    padding: 10px 10px 12px;
    border-left-width: 7px;
    border-right-width: 7px;
  }

  .pattern-selection-section .category-btn {
    min-width: 0;
    width: 100%;
  }

  .pattern-count {
    min-width: 102px;
  }
}
