/* あしらい */
.company-list-ashirai {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.company-list-ashirai .ashirai-image {
  width: 100%;
  height: auto;
}

.title-area {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  display: flex;
  padding: 40px 0;
}
.company-title-en {
  color: #156fc6;
  text-align: center;
  
  font-size: var(--28px);
  font-style: normal;
  font-weight: 600;
  line-height: 120%; /* 33.6px */
  letter-spacing: 1.4px;
}
.company-title-ja {
  color: #27292b;
  text-align: center;
  
  font-size: var(--18px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%; /* 30.6px */
  letter-spacing: 0.9px;
}

.theme-filter-section {
  background: #e3f2ff;
  padding: 42px 24px 32px;
}
.theme-filter-title {
  color: #156fc6;
  text-align: center;
  
  font-size: var(--18px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%; /* 30.6px */
  letter-spacing: 0.9px;
  margin-bottom: 24px;
}

.theme-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
  align-items: stretch; /* 全アイテムを同じ高さにする */
}

.theme-checkbox-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  color: #156fc6;
  font-size: var(--13px);
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 19.5px */
  letter-spacing: 0.65px;
  gap: 12px;
  min-height: 75px; /* 最小高さを設定 */
  box-sizing: border-box; /* パディングを含めた高さ計算 */
  text-align: left;
  height: 64px;
}

/* チェックした時の背景とテキスト色 */
.theme-checkbox-card:has(input[type="checkbox"]:checked) {
  background: #156fc6;
  color: #ffffff;
}

.theme-checkbox-card span {
  line-height: 1.4; /* 改行時の行間を調整 */
}

input[type="checkbox"].theme-filter-checkbox {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  accent-color: #156fc6 !important;
  border: 2px solid #156fc6 !important;
  border-radius: 2px !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: white !important;
  position: relative !important;
  cursor: pointer !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  align-self: center !important; /* チェックボックスを上下中央に配置 */
}

/* チェックした時のチェックボックス */
input[type="checkbox"].theme-filter-checkbox:checked {
  background-color: #156fc6 !important;
  border-color: #ffffff !important;
}

input[type="checkbox"].theme-filter-checkbox:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 3px !important;
  height: 7px !important;
  border: solid white !important;
  border-width: 0 1.5px 1.5px 0 !important;
  transform: rotate(45deg) !important;
}

.company-list-container {
  padding-top: 48px;
  padding-bottom: 48px;
  background: #fffdea;
}

.theme-count-display {
  padding: 32px 0 6px;
}


.theme-count-btn {
  display: flex;
  width: var(--243px);
  height: var(--58px);
  padding: var(--18px) var(--33px);
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 3px solid #ffee56;
  background: #fff;
  margin: 0 auto;
  color: #156fc6;
}
.theme-count-btn .count {
  color: #156fc6;
  text-align: center;
  
  font-size: var(--24px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 38.4px */
  letter-spacing: 0.48px;
  margin-right: 2px;
}
.theme-count-btn .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.no-companies {
  display: none;
}
.clear-filters{
    text-align: center;
}

#clear-filters-button {
  color: #156fc6;
  font-size: var(--12px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%; /* 20.4px */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.company-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 24px 16px;
}
.count-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #156fc6;
  text-align: center;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
}
.count-wrapper .count {
  color: #156fc6;
  text-align: center;
  font-size: var(--24px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 38.4px */
  letter-spacing: 0.48px;
}
.company-count .displaying {
  color: #156fc6;
  
  font-size: var(--10px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.2px;
}

.company-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0 24px;
  margin-bottom: 32px;
}

.company-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.company-card.fadein {
  opacity: 1;
  transform: translateY(0);
}
.company-card-image {
  width: 100%;
  aspect-ratio: 327 / 150;
  position: relative;
  overflow: hidden;
}

.company-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.company-card-content {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.company-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}

.company-name {
  color: #27292b;
  
  font-size: var(--18px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.05em;
  text-align: left;
}

.company-industry {
  color: #156fc6;
  font-size: var(--13px);
  font-weight: 600;
  line-height: 1.7;
  text-align: left;
}

.company-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 16px;
}

.company-theme-tag {
  background: #156fc6;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  
  font-size: var(--12px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.company-features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}

.company-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--3px);
}

.company-feature-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  width: var(--96px);
  height: 25px;
  border-radius: 999px;
  
  font-size: var(--12px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.05em;
  box-sizing: border-box;
}

.company-feature-tag.type-content.active {
  background: #e8f3ff;
  border: 1px solid #156fc6;
  color: #156fc6;
}

.company-feature-tag.type-content.inactive {
  background: #ffffff;
  border: 1px solid #c5c5c5;
  color: #c5c5c5;
}

.company-card-link {
  color: #156fc6;
  font-size: var(--14px);
  font-style: normal;
  font-weight: 600;
  line-height: 170%; /* 23.8px */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  display: flex;
  gap: 5px;
}
.company-card-link .circle-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.company-detail-link {
  color: #156fc6;
  
  font-size: var(--14px);
  font-weight: 600;
  line-height: 1.7;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.company-detail-link .circle-arrow {
  width: 14px;
  height: 14px;
  background: #156fc6;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-detail-link .circle-arrow:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3.5px 0 3.5px 6px;
  border-color: transparent transparent transparent #ffffff;
  position: absolute;
}

.js-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

.js-pagination .js-page-btn {
  display: flex;
  width: 48px;
  height: 48px;
  padding: 10px 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #e8f3ff;
  color: #156fc6;

  text-align: center;
  
  font-size: var(--16px);
  font-style: normal;
  font-weight: 600;
  line-height: 160%; /* 22.4px */
  letter-spacing: 0.28px;
}
/* disabled */
.js-pagination .js-page-btn:disabled {
  background: #156fc6;
  color: #fff;
  cursor: not-allowed;
}
.cta-button-container {
  padding: 8px 0 0;
}
