/* ============================================================
   works.css — 奥田商工 施工実績ページ
   ============================================================ */


/* ============================
   ページヒーロー
============================ */
.wks-hero {
  margin-top: 110px;
  position: relative;
  height: 380px;
  overflow: hidden;
}

.wks-hero-img {
  position: absolute;
  inset: 0;
  background: #7a9fb0 center/cover no-repeat;
}

.wks-hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(13,43,78,0.82);
  padding: 18px 36px;
}

.wks-hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.wks-hero-notice {
  position: absolute;
  left: 0;
  bottom: 0;
  background: rgba(41,171,226,0.88);
  padding: 10px 16px;
  max-width: 320px;
}

.wks-hero-notice p {
  font-size: 11px;
  color: #fff;
  line-height: 1.6;
}


/* ============================
   イントロ & タブ
============================ */
.wks-intro {
  padding: 64px 0 48px;
  background: #fff;
}

.wks-intro-text {
  font-size: 14px;
  color: #555;
  line-height: 1.9;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* タブ */
.wks-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.wks-tabs {
  display: flex;
  gap: 16px;
}

.wks-tab {
  padding: 14px 0;
  width: 200px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--navy);
  border-radius: 40px;
  background: #fff;
  color: var(--navy);
  transition: background 0.2s, color 0.2s;
  letter-spacing: 1px;
}

.wks-tab--active {
  background: var(--navy);
  color: #fff;
}

.wks-tab:hover:not(.wks-tab--active) {
  background: var(--gray-bg);
}


/* ============================
   実績セクション
============================ */
.wks-records {
  padding: 16px 0 88px;
  background: #fff;
}

.wks-records--hidden {
  display: none;
}


/* ============================
   年度ブロック
============================ */
.wks-year-block {
  margin-bottom: 64px;
}

.wks-year-block:last-child {
  margin-bottom: 0;
}

.wks-year-head {
  display: flex;
  align-items: baseline;
  gap: 32px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border: none;
  position: relative;
  width: fit-content;
}

.wks-year-head::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -16px;
  right: -16px;
  height: 6px;
  background: linear-gradient(90deg, #BAEAED 0%, #61D9DD 42.79%, #2986B3 100%);
}

.wks-year-label {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.wks-year-period {
  font-size: 15px;
  color: #0C2C5D;
  font-weight: 300;
}


/* ============================
   テーブル
============================ */
.wks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wks-table thead tr {
  background: var(--gray-bg);
}

.wks-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--gray-line);
}

.wks-table th:first-child  { width: 130px; white-space: nowrap; }
.wks-table th:nth-child(2) { width: 160px; }
.wks-table th:nth-child(3) { width: 110px; }

.wks-table td {
  padding: 20px 24px;
  color: #444;
  border-bottom: 1px solid var(--gray-line);
  line-height: 1.5;
  vertical-align: middle;
}

.wks-table td:first-child {
  white-space: nowrap;
}

.wks-table tbody tr:last-child td {
  border-bottom: none;
}

.wks-table tbody tr {
  background: #fff;
}


/* ============================
   RESPONSIVE — Tablet (≤ 1024px)
============================ */
@media (max-width: 1024px) {
  .wks-hero { height: 320px; }

  /* テーブル */
  .wks-table {
    width: 100%;
    table-layout: fixed;
  }

  .wks-table th,
  .wks-table td {
    padding: 14px 16px;
    font-size: 13px;
  }

  .wks-table th:first-child  { width: 100px; }
  .wks-table th:nth-child(2) { width: 120px; }
  .wks-table th:nth-child(3) { width: 90px; }
}


/* ============================
   RESPONSIVE — Mobile (≤ 640px)
============================ */
@media (max-width: 640px) {

  /* イントロ */
  .wks-intro { padding: 40px 0 32px; }
  .wks-intro-text { font-size: 13px; margin-bottom: 28px; }

  /* タブ */
  .wks-tab {
    padding: 12px 0;
    width: 140px;
    font-size: 13px;
  }

  /* 実績セクション */
  .wks-records { padding: 12px 0 56px; }

  /* 年度見出し */
  .wks-year-block { margin-bottom: 48px; }
  .wks-year-label { font-size: 18px; }
  .wks-year-period { font-size: 13px; }
  .wks-year-head { gap: 20px; }

  /* テーブル → リスト形式 */
  .wks-table { min-width: 0; }
  .wks-table thead { display: none; }
  .wks-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 8px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e6ec;
  }
  .wks-table tbody tr:last-child { border-bottom: none; }
  .wks-table td {
    padding: 0;
    border-bottom: none;
    font-size: 12px;
  }
  .wks-table td:first-child { white-space: normal; }
  /* 年月 */
  .wks-table td:nth-child(1) {
    font-size: 11px;
    color: #888;
  }
  /* 発注者 */
  .wks-table td:nth-child(2) {
    font-size: 11px;
    color: #888;
  }
  /* 施設種別 */
  .wks-table td:nth-child(3) {
    font-size: 11px;
    color: #888;
  }
  /* 工事名 */
  .wks-table td:nth-child(4) {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-top: 2px;
  }
}
/* ページヒーロー */
.page-hero { background: #c0ccd8 center/cover no-repeat; }
