/* ============================================
   施工実績ページ専用スタイル
   works.css
   モバイルファースト / ブレークポイント: 768px
   ============================================ */

/* ============================================
   ページヒーロー（SP）
   ============================================ */
.wk_hero {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.wk_hero_bg {
  position: absolute;
  inset: 0;
}

.wk_hero_bg picture,
.wk_hero_bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.8);
}

.wk_hero_inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 0 6vw;
}

.wk_hero_title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  border-left: 4px solid var(--color_main);
  padding-left: 16px;
}

.wk_hero_sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  padding-left: 20px;
}

/* ============================================
   リードセクション（SP）
   ============================================ */
.wk_lead {
  background: var(--color_white);
  padding: 40px 0;
}

.wk_lead_inner {
  padding: 0 6vw;
  max-width: 900px;
  margin: 0 auto;
}

.wk_lead_inner p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: var(--color_black);
}

/* ============================================
   実績一覧（SP）
   ============================================ */
.wk_list {
  background: #f7f9fc;
  padding: 50px 0 60px;
}

.wk_list_inner {
  padding: 0 6vw;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ============================================
   実績カード（SP）
   ============================================ */
.wk_card {
  background: var(--color_white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
}

/* ---- スライダー ---- */
.wk_card_slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
}

.wk_slider_track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.wk_slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.wk_slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wk_slide_label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color_main);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 3px;
}

/* 前後ボタン */
.wk_slider_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  z-index: 2;
}

.wk_slider_btn:hover {
  background: rgba(0,0,0,0.7);
}

.wk_slider_prev { left: 10px; }
.wk_slider_next { right: 10px; }

/* ドット */
.wk_slider_dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.wk_dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.wk_dot.is_active {
  background: #fff;
}

/* ---- カード情報エリア ---- */
.wk_card_body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wk_card_num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color_main);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.wk_card_title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color_black);
  line-height: 1.4;
}

.wk_card_specs {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid #eee;
}

.wk_spec_row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #eee;
  font-size: 0.875rem;
  line-height: 1.5;
}

.wk_spec_row dt {
  width: 4em;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--color_main);
  padding: 7px 0;
}

.wk_spec_row dd {
  color: var(--color_black);
  padding: 7px 0 7px 12px;
}

/* ============================================
   CTAセクション（SP）
   ============================================ */
.wk_cta {
  background: var(--color_white);
  padding: 50px 0 60px;
}

.wk_cta_inner {
  padding: 0 6vw;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.wk_cta_text {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
  color: var(--color_black);
}

/* ============================================
   PC レイアウト（768px 以上）
   ============================================ */
@media (min-width: 768px) {

  /* ヒーロー */
  .wk_hero {
    height: 260px;
  }

  .wk_hero_title {
    font-size: 2.5rem;
    padding-left: 24px;
  }

  .wk_hero_sub {
    font-size: 1rem;
    padding-left: 28px;
  }

  /* リード */
  .wk_lead_inner {
    padding: 0 60px;
  }

  /* 実績一覧: 2カラムグリッド */
  .wk_list_inner {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* カードをrow方向に（写真左・テキスト右）は SP の縦並びのまま維持し
     PC ではグリッドで2列に並べるだけ。
     カード内は縦のままでOK（アスペクト比で高さが決まる） */
  .wk_card {
    flex-direction: column;
  }

  /* ドットを少し大きく */
  .wk_dot {
    width: 8px;
    height: 8px;
  }

  /* CTA */
  .wk_cta_inner {
    padding: 0 60px;
  }

  .wk_cta_text {
    font-size: 1.125rem;
  }
}

/* 3カラム（1200px以上） */
@media (min-width: 1200px) {
  .wk_list_inner {
    grid-template-columns: repeat(3, 1fr);
  }
}
