/* 現代的なワークスカード用CSS */

/* コンテナ */
.works-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 1行あたり3カードに固定 */
  gap: 2rem;
  margin: 2rem 0;
  padding-right: 15px;
  padding-left: 15px;
}

/* カード */
.works-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
}

.works-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 右側の白いエリアはホバー効果を適用しない */
.works-card-content {
  background: #fff;
  transition: none;
}

/* カードリンク */
.works-card-link {
  display: flex;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 背景画像エリア */
.works-card-image {
  flex: 0 0 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 元のホバー効果を再現 - シンプルで確実なアプローチ */
.works-card-hover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  background: rgba(254, 209, 54, 0.9) !important;
  -webkit-transition: all ease 0.5s !important;
  -moz-transition: all ease 0.5s !important;
  transition: all ease 0.5s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 999 !important;
}

/* ホバー効果 - シンプルなセレクタ */
.works-card:hover .works-card-hover {
  opacity: 1 !important;
}



/* ホバーアイコン */
.works-card-hover i {
  color: #fff !important;
  font-size: 3rem !important;
  margin-top: -12px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}



/* カードコンテンツ */
.works-card-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* タイトル */
.works-card-title {
  font-size: 120% !important;
  font-weight: 600;
  color: #C00A0D;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* 説明文 */
.works-card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin: 0;
  flex: 1;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* 続きを読むリンク */
.works-card-read {
  text-align: right;
  color: #089aca;
  text-decoration: underline;
  font-size: 14px;
  margin-top: 0.5rem;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

/* もっと見るボタン */
.load-more-container {
  text-align: center;
  margin: 3rem 0;
}

.load-more-btn {
  background: linear-gradient(45deg, #fed136, #fec503);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(254, 209, 54, 0.4);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* 非表示カード */
.works-card.hidden {
  display: none;
}

/* タイトルセクション */
.works-title {
  background-image: url(../images/works/bg-workstitle.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  color: #FFFFFF;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  text-align: center;
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .works-container {
    grid-template-columns: repeat(2, 1fr); /* タブレットでは2カード */
    gap: 1rem;
  }
  
  .works-card {
    height: auto;
    min-height: 180px;
  }
  
  .works-card-image {
    flex: 0 0 120px;
  }
  
  .works-card-content {
    padding: 1rem;
  }
  
  .works-card-title {
    font-size: 1rem;
  }
  
  .works-card-description {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .works-container {
    grid-template-columns: 1fr; /* モバイルでは1カード */
    gap: 1rem;
  }
  
  .works-card-image {
    flex: 0 0 100px;
  }
  
  .works-card-content {
    padding: 0.75rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.works-card {
  animation: fadeInUp 0.6s ease-out;
}

/* アクセシビリティ */
.works-card-link:focus {
  outline: 3px solid #fed136;
  outline-offset: 2px;
}

.load-more-btn:focus {
  outline: 3px solid #fed136;
  outline-offset: 2px;
} 