@charset "UTF-8";
/*
Theme Name: My Theme
Author: シグマ
Description: 事例用のオリジナルテーマ
Version: 1.0
*/


body {
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  background-color: #f6f7fb;
  color: #333;
}

/* ヘッダー */
.page-header {
  background-color: #4970AF;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.page-header .header-logo {
  position: absolute;
  top: 20px;
  left: 20px;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* フィルタ */
.filter-section {
  position: relative;
  background: #fff;
  padding: 30px 20px;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  z-index: 10;
}

.filter-group {
  margin: 10px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* 折り返し可能に */
  margin-bottom: 10px;
}

.filter-group span {
  font-weight: bold;
  margin-right: 10px;
  width: 100px;
}

.filter-btn {
  margin: 5px;
  padding: 6px 12px;
  border: 1px solid #4169e1;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1.5;   
  min-height: 34px;        
  display: inline-flex;    
  align-items: center;      
  justify-content: center;
}

/* ホバー時に薄黄色へ */
.filter-btn:hover {
  background-color: #fff7d1 !important;
  border-color: #e5c96d; 
}

.filter-btn:hover,
.filter-btn.active {
  background: #fff;
  
}

.filter-btn.active {
  background-color: #fce8b2; /* 選択中：やや濃い黄色 */
  border-color: #e0a800;
  color: #333;
  font-weight: bold;
}


/* 事例カード */

.case-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  justify-content: center;
  gap: 60px; 
  max-width: 1200px;
  margin: 0 auto 60px;
}

.case-item {
  width: 250px;
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column; 
  justify-content: space-between;
  min-height: 360px;
  overflow: hidden;
  border: 2px solid #4970AF;
}

.case-thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.card-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* 上に表示 */
}


/* カード全体をクリックできるようにする */
.case-item .card-link {
  position: absolute;
  inset: 0; 
  z-index: 1; 
  pointer-events: auto;
}

/* 「続きを読む」ボタンをクリックできるように上に重ねる */
.case-item .more-btn {
  position: relative;
  z-index: 2;
}

/* ホバー時の色変化 */
.case-item:hover {
  background-color: #fff9e6;
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

.case-labels {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
}

.case-item h3 {
  font-size: 1.1rem;
  margin: 8px 0;
}

/* 「続きを読む」ボタンを下部に固定 */
.more-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background: #4970AF;
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: 0.2s;
}

/* フッター */
.page-footer {
  background: #4970AF;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.page-footer .contact-link {
  display: inline-block;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 8px 16px;
  margin: 10px 0;
  text-decoration: none;
}

.footer-tel {
  margin-top: 10px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 10px;
}

.footer-links a {
  color: #fff;
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* 需っ給さん専用事例カード */
.jukkyu-case {
  border: 2px solid #00B97E;     
}
.jukkyu-case .more-btn {
  background-color: #00B97E; 
  color: #fff;
  border: none;
}

/* 情シス専用事例カード */
.joshisu{
  border: 2px solid #893537; 
}
.joshisu .more-btn {
  background-color: #893537; 
  color: #fff;
  border: none;
}

.no-result {
  text-align: center;

  margin-bottom:20px;
  font-size: 18px;
  color: #666;
}



@media (max-width: 600px) {
  .filter-group {
    flex-direction: column;
    align-items: flex-start; 
    gap: 5px;              
    display: block;
  }

  .filter-group span {
    display: block;
    margin-bottom: 5px;     
  }

  .filter-btn {
    padding: 4px 8px;       
    font-size: 0.75rem;      
  }
}




