@charset "UTF-8";
/*
 * 制作事例の一覧カード・詳細の概要表（2026.08）
 * 角丸は4px以下、ぼかし影は使わない、区切りは1pxの線と背景色の差で出す
 */

/* ---------- 一覧 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media screen and (min-width: 700px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 1100px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}

.works-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #efe8e0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  transition: border-color .2s ease-out;
}
.works-card:hover {
  border-color: #f29600;
}
.works-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
}

.works-card__thumb {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #faf6ef;
  border-bottom: 1px solid #efe8e0;
  overflow: hidden;
}
.works-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease-out;
}
.works-card:hover .works-card__thumb img {
  transform: scale(1.03);
}

.works-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
}

.works-card__place {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  color: #f29600;
}
.works-card__place + .works-card__title {
  margin-top: 6px;
}
.works-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: #16243f;
}
.works-card__cates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}
.works-card__cates li a {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #efe8e0;
  border-radius: 4px;
  background: #faf6ef;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
  transition: color .2s ease-out, border-color .2s ease-out;
}
.works-card__cates li a:hover {
  border-color: #f29600;
  color: #f29600;
}

/* ---------- 詳細ページの概要表 ---------- */
.works-spec {
  margin: 28px 0 8px;
  border-top: 1px solid #efe8e0;
}
.works-spec > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 4px;
  border-bottom: 1px solid #efe8e0;
}
@media screen and (min-width: 768px) {
  .works-spec > div {
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: baseline;
  }
}
.works-spec dt {
  font-size: 14px;
  font-weight: 700;
  color: #f29600;
}
.works-spec dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: #333333;
}

/* ---------- 一覧の絞り込み（2026.08） ---------- */
.works-filter {
  margin-top: 8px;
  padding: 24px;
  background: #faf6ef;
}
.works-filter__row + .works-filter__row {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #efe8e0;
}
.works-filter__cat {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #f29600;
}
.works-filter__tabs {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.works-tab {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid #e6ded4;
  border-radius: 4px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  transition: all .2s ease-out;
}
.works-tab:hover {
  border-color: #f29600;
  color: #f29600;
}
.works-tab.is-current {
  border-color: #f29600;
  background: #f29600;
  color: #fff;
  font-weight: 700;
}
.works-filter__reset {
  margin-top: 18px;
  font-size: 14px;
}
.works-filter__reset a {
  color: #6b7280;
  text-decoration: underline;
}
.works-filter__reset a:hover {
  color: #f29600;
}
.works-filter__link {
  margin-top: 40px;
  text-align: center;
  font-size: 15px;
}
.works-filter__link a {
  display: inline-block;
  padding: 15px 32px;
  border: 2px solid #16243f;
  border-radius: 4px;
  font-weight: 700;
  color: #16243f;
  transition: all .2s ease-out;
}
.works-filter__link a:hover {
  background: #16243f;
  color: #fff;
}
@media screen and (max-width: 599px) {
  .works-filter { padding: 20px 16px; }
  .works-tab { font-size: 14px; padding: 8px 13px; }
}

/* ==========================================================================
   事例一覧の幅を3つの入口でそろえる（2026.08）

   style.css の幅指定は .post-type-archive-works と .tax-cate-works しか
   見ていないため、業種で絞り込んだとき（.tax-cate-industry）だけ
   全幅表示になっていた。ここでまとめて同じ指定にする。
   ========================================================================== */
.post-type-archive-works .main .container,
.tax-cate-works .main .container,
.tax-cate-industry .main .container {
  width: 1220px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.post-type-archive-works .main .contents,
.tax-cate-works .main .contents,
.tax-cate-industry .main .contents {
  margin-top: 70px;
}
@media screen and (max-width: 1199px) {
  .post-type-archive-works .main .container,
  .tax-cate-works .main .container,
  .tax-cate-industry .main .container {
    width: 100%;
    padding: 0 30px;
  }
  .post-type-archive-works .main .contents,
  .tax-cate-works .main .contents,
  .tax-cate-industry .main .contents {
    margin-top: 50px;
  }
}
@media screen and (max-width: 758px) {
  .post-type-archive-works .main .container,
  .tax-cate-works .main .container,
  .tax-cate-industry .main .container {
    padding: 0 20px;
  }
  .post-type-archive-works .main .contents,
  .tax-cate-works .main .contents,
  .tax-cate-industry .main .contents {
    margin-top: 40px;
  }
}
