/* ========== 作業実績 詳細ページ専用 CSS ========== */

/* 全体ラッパー */
.work-detail-section{
  padding:40px 20px 80px;
  background:#fff;
}

/* パンくず */
.work-breadcrumb{
  max-width:960px;
  margin:0 auto 24px;
  font-size:13px;
  color:#6a6a6a;
  letter-spacing:0.5px;
}
.work-breadcrumb a{color:var(--brand-blue);text-decoration:none;}
.work-breadcrumb a:hover{text-decoration:underline;}
.work-breadcrumb .sep{margin:0 8px;color:#b8c2c7;}

/* 記事ヘッダ */
.work-header{
  max-width:960px;
  margin:0 auto 32px;
  padding-bottom:24px;
  border-bottom:1px solid #e0e8eb;
}
.work-date{
  display:inline-block;
  font-size:14px;
  color:#6a6a6a;
  font-family:"Poppins",sans-serif;
  letter-spacing:1px;
  margin-bottom:12px;
}
.work-categories{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:16px;
}
.work-category{
  display:inline-block;
  padding:4px 14px;
  background:var(--brand-blue);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  border-radius:999px;
  font-family:"じゅん 501",sans-serif;
  line-height:1.7;
}
.work-category:nth-child(2){background:#f4a300;}
.work-title{
  font-size:28px;
  font-weight:700;
  color:var(--text-dark);
  letter-spacing:2px;
  line-height:1.5;
  margin:0;
  font-family:"じゅん 501",sans-serif;
}

/* 本文 */
.work-body{
  max-width:960px;
  margin:0 auto 48px;
  font-size:16px;
  line-height:2;
  color:var(--text-dark);
  font-family:"じゅん 501",sans-serif;
}
.work-body p{
  margin:0 0 18px;
}
.work-body p:last-child{margin-bottom:0;}

/* 画像ギャラリー */
.work-gallery{
  max-width:960px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
}
.work-gallery-item{
  aspect-ratio:4/3;
  border-radius:8px;
  overflow:hidden;
  background:#eff8fd;
  cursor:pointer;
  transition:transform .2s ease, box-shadow .2s ease;
}
.work-gallery-item:hover{
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
}
.work-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* カテゴリ別フッター（許可情報＋関連サービスへの誘導） */
.work-category-footer{
  max-width:960px;
  margin:40px auto 0;
  padding:24px 28px;
  background:#eff8fd;
  border:1px solid #b8d3df;
  border-radius:8px;
  font-family:"じゅん 501",sans-serif;
}
.work-category-footer p{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.9;
  color:var(--text-dark);
}
.work-category-footer p:last-child{margin-bottom:0;}
.work-category-footer-link a{
  display:inline-block;
  margin-top:4px;
  padding:6px 22px;
  background:var(--brand-blue);
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  font-weight:700;
  letter-spacing:1px;
  transition:background .15s ease;
}
.work-category-footer-link a:hover{
  background:#1ab0d8;
  color:#fff;
  text-decoration:none;
}
@media (max-width: 767.98px){
  .work-category-footer{margin-top:30px;padding:18px 20px;}
  .work-category-footer p{font-size:13px;line-height:1.85;}
  .work-category-footer-link a{padding:5px 18px;font-size:13px;}
}

/* 最新の作業実績リスト */
.work-recent{
  max-width:960px;
  margin:80px auto 0;
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
}
.work-recent-title{
  font-size:20px;
  color:var(--brand-blue);
  letter-spacing:2px;
  margin:0 0 20px;
  padding-bottom:12px;
  border-bottom:2px solid var(--brand-blue);
  font-family:"じゅん 501",sans-serif;
}
.work-recent-list{
  list-style:none;
  padding:0;
  margin:0;
}
.work-recent-list li{
  border-bottom:1px dashed #c8d8df;
}
.work-recent-list li:last-child{border-bottom:none;}
.work-recent-list a{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:10px 16px;
  padding:12px 4px;
  color:var(--text-dark);
  text-decoration:none;
  font-family:"じゅん 501",sans-serif;
  transition:background .15s ease, color .15s ease;
}
.work-recent-list a:hover{
  background:#eff8fd;
  color:var(--brand-blue);
}
.work-recent-list a.is-current{
  background:#cfe6ee;
  cursor:default;
  pointer-events:none;
}
.work-recent-date{
  flex:0 0 auto;
  font-size:13px;
  color:#6a6a6a;
  font-family:"Poppins",sans-serif;
  letter-spacing:1px;
  min-width:96px;
}
.work-recent-cats{
  flex:0 0 auto;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.work-recent-cat{
  display:inline-block;
  padding:2px 10px;
  background:var(--brand-blue);
  color:#fff;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  border-radius:999px;
  line-height:1.6;
}
.work-recent-cat:nth-child(2){background:#f4a300;}
.work-recent-ttl{
  flex:1 1 200px;
  font-size:14px;
  line-height:1.6;
  word-break:break-word;
}

/* 戻るリンク */
.work-back{
  max-width:960px;
  margin:60px auto 0;
  text-align:center;
}
.work-back a{
  display:inline-block;
  padding:14px 36px;
  background:#fff;
  color:var(--brand-blue);
  border:2px solid var(--brand-blue);
  border-radius:8px;
  font-size:15px;
  font-weight:700;
  letter-spacing:2px;
  text-decoration:none;
  font-family:"じゅん 501",sans-serif;
  transition:background .2s ease, color .2s ease;
}
.work-back a:hover{
  background:var(--brand-blue);
  color:#fff;
}

/* ライトボックス（クリックで拡大） */
.work-lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  z-index:1100;
  display:none;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
}
.work-lightbox.is-open{display:flex;}
.work-lightbox img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  box-shadow:0 8px 30px rgba(0,0,0,0.4);
  border-radius:6px;
}
.work-lightbox-close{
  position:absolute;
  top:20px;right:20px;
  width:40px;height:40px;
  background:rgba(255,255,255,0.15);
  border:none;
  border-radius:50%;
  color:#fff;
  font-size:24px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .2s ease;
}
.work-lightbox-close:hover{background:rgba(255,255,255,0.3);}

/* 見つからない時のエラー表示 */
.work-not-found{
  max-width:600px;
  margin:80px auto;
  padding:40px 24px;
  text-align:center;
  background:#fafdfe;
  border:1px solid #b8d3df;
  border-radius:8px;
  font-family:"じゅん 501",sans-serif;
}
.work-not-found h2{
  color:var(--brand-blue);
  font-size:22px;
  margin:0 0 16px;
}
.work-not-found p{
  font-size:14px;
  color:var(--text-dark);
  line-height:1.9;
  margin:0 0 20px;
}

/* ========== タブレット (≤991.98px) ========== */
@media (max-width: 991.98px){
  .work-title{font-size:24px;}
  .work-gallery{grid-template-columns:repeat(2, 1fr);gap:14px;}
}

/* ========== スマホ (≤767.98px) ========== */
@media (max-width: 767.98px){
  .work-detail-section{padding:24px 16px 60px;}
  .work-breadcrumb{font-size:12px;}
  .work-title{font-size:20px;letter-spacing:1px;}
  .work-date{font-size:13px;}
  .work-category{font-size:11px;padding:3px 10px;}
  .work-body{font-size:14px;line-height:1.9;margin-bottom:32px;}
  .work-gallery{grid-template-columns:repeat(2, 1fr);gap:10px;}
  .work-back a{padding:12px 24px;font-size:14px;}
  .work-lightbox{padding:20px 10px;}
  .work-lightbox-close{top:10px;right:10px;}
  /* 最新の作業実績リスト（スマホ） */
  .work-recent{margin-top:48px;padding:20px 16px;}
  .work-recent-title{font-size:16px;letter-spacing:1px;margin-bottom:12px;padding-bottom:8px;}
  .work-recent-list a{padding:10px 4px;gap:6px 10px;}
  .work-recent-date{font-size:12px;min-width:80px;}
  .work-recent-cat{font-size:10px;padding:1px 8px;}
  .work-recent-ttl{font-size:13px;flex:1 1 100%;}
}
