

/* 絞り込みエリアのスタイル */
.filter-section {
  max-width: 1080px;
  margin: 0 auto 40px;
  padding: 20px;
}
.filter-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0 20px;
}
.filter-label {
  width: 150px;
  font-weight: bold;
  flex-shrink: 0;
  border-right: 1px solid #C1E5F4;
  margin-right: 54px;
}
.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
/* チェックボックスをボタン風にする */
.filter-options label input {
  display: none; /* 実際のチェックボックスは隠す */
}
.filter-options label span {
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid #C1E5F4;
  border-radius: 40px;
  padding: 3px 20px;
  line-height: 19px;
  color: #000000;
}
.filter-options label input:checked + span {
  background-color: #00a0e9; 
  color: #fff;
  border-color: #00a0e9;
}

/* 絞り込むボタン */
.filter-action {
  text-align: center;
  margin-top: 20px;
}
#filter-btn {
  border: none;
  padding: 10px 40px;
  font-size: 20px;
  cursor: pointer;
  position: relative;
  color: #fff;
  border-radius: 25px;
  line-height: 27px;
  min-width: 25rem;
}

/* カードエリアのスタイル */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 50px 20px;
  max-width: 1150px;
  margin: 0 auto;
}
.card {
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-sizing: border-box;
  border: 1px solid #D9D9D9;
  filter: drop-shadow(4px 4px 4px rgba(0, 0, 0, 0.25));
  padding: 0;
}
.card-grid .card {
  padding: 0;  
    display: flex;          
    flex-direction: column; 
    flex: 1;                
    height: 100%;           
}
.card-grid .card .card-content{
    flex: 1;                
    display: flex;
    flex-direction: column;
}

.card-grid .card .tags {
    margin-top: auto; 
    padding-top: 15px;
}
.card-img img {
  width: 100%;
  height: auto;
  display: block;
}
.card-content {
  padding: 10px 5px 20px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.tag {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 4px 10px;
  gap: 10px;
  background: rgba(193, 229, 244, 0.5);
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #000000;
}
.is-hidden {
  display: none !important;
}
p.company {
    font-size: 12px;
    color: #000;
}
.card-content h3 {
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0.02em;
    color: #009FD9;
}
.filter-section > p {
    font-size: 20px;
    line-height: 27px;
    color: #000000;
    margin: 20px 0;
}
.card-img {
    min-height: 278px;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 278px;
    border-bottom: 1px solid #D9D9D9;
}
.card-img img {
    max-height: 277px;
    object-fit: contain;
}

.card-grid a {
    text-decoration: none;
}

.filter-options label span:hover {
    opacity: unset;
    background: #C1E5F4;
}
.filter-options label input:checked + span:hover {
    opacity: 0.6;
}
#filter-btn {
  z-index: 1;
  overflow: hidden;
  background: radial-gradient(50% 50% at 50% 50%, #009FD9 0%, #74D3F6 100%);
  transition: transform 0.2s ease; 
  margin-left: 15rem;  
}
#filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(70% 70% at 50% 50%, #0076A3 0%, #009FD9 100%);
  z-index: -1;
  opacity: 0; /* 最初は隠しておく */
  transition: opacity 0.4s ease; /* ふわっとさせる */
}
#filter-btn:hover::before {
  opacity: 1;
}
button#reset-btn {
    z-index: 1;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: none;
    padding: 10px 40px;
    font-size: 20px;
    cursor: pointer;
    position: relative;
    color: #fff;
    background: radial-gradient(50% 50% at 50% 50%, #aaa 0%, #ddd 100%);
    border-radius: 25px;
    line-height: 27px;
    min-width: 15rem;
    margin-left: 5rem;
}
button#reset-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(70% 70% at 50% 50%, #666 0%, #aaa 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
button#reset-btn:hover::before {
  opacity: 1;
}
h1.ccmt-page__title {
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    color: #009FD9;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.ccmt-page__title small {
    margin-top: 0;
    color: #000;
}
.card-grid .card {
  transition: opacity 0.5s ease; /* 0.5秒かけてふわっと */
  opacity: 1;
}
.card-grid > a:hover .card {
  opacity: 0.7; /* cocomiteの他のリンクの挙動に合わせて調整してください */
}
/* 絞り込み用 */
.card-grid > a {
    display: flex;          
    flex-direction: column; 
    height: auto;           
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease; /* 0.4秒かけて変化 */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.is-animated {
  animation: fadeInUp 0.5s forwards;
}









/*-sp---------------------------------------------------------------------------------------------*/

@media (max-width: 720px) {
h1.ccmt-page__title {
    font-size: 12px;
    font-weight: bold;
}
.ccmt-page__header {
    height: unset;
    padding: 30px;
}
.filter-section > p {
    font-size: 12px;
    line-height: 1.4;
    margin: 0 auto;
}
.filter-label {
    width: auto;
    border-right: none;
    border-bottom: 2px solid #C1E5F4;
    display: inline-block;
    margin-bottom: 1rem;
}
.filter-group {
    display: block;
}
.filter-options label span {
    font-size: 12px;
}
.filter-options {
    gap: 10px 5px;
}
#filter-btn,button#reset-btn {
    font-size: 16px;
    padding: 5px 40px;
    margin: 1rem auto;
    min-width: 25rem;     
}
div#card-container {
    padding: 2rem;
}
div#card-container {
    padding: 2rem;
    gap: 30px;
}
.ccmt-page__title small {
    margin-top: 0;
    line-height: 1.2;
}
.ccmt-page__header {
    height: auto;
    padding: 30px;
}
.card-img img {
    height: 252px;
    overflow: hidden;
    max-height: 100%;
    object-fit: contain;
}
  .card-img {
    min-height: unset;
}
}

