/* ==========================================================================
   契約に係る情報の公表ページ
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  color: #333;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.6;
  background-color: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #4376b4;
  text-decoration: none;
  transition: color 0.2s;
}
a:visited {
  color: #4376b4;
}
a:hover {
  color: #f60;
  text-decoration: underline;
}

.main-container {
  width: 1000px;
  max-width: 94%;
  margin: 0 auto 40px;
  text-align: left;
}

/* ==========================================================================
   ヘッダーエリア
   ========================================================================== */
.header-top-container {
  background-color: #3e6f6b;
  width: 100%;
}
.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  width: 1000px;
  max-width: 94%;
  margin: 0 auto;
  padding: 8px 10px;
  color: #ffffff;
  font-size: 14px;
  box-sizing: border-box;
}
.utility-menu a {
  color: #ffffff;
  text-decoration: none;
}
.utility-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ハンバーガー開閉スイッチ（広い画面では使わないので隠す） */
.utility-toggle-checkbox {
  display: none;
}
.utility-toggle {
  display: none;
}

.header-main-container {
  width: 100%;
  background-color: #ffffff;
}
.header-main-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  width: 1000px;
  max-width: 94%;
  margin: 0 auto;
  padding: 0;
}
.header-logo img {
  margin-top: 1px;
}
.header-right-side {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  min-width: 260px;
}
/* ロゴ右肩に接して1本の帯に見せる（隙間を作らない） */
.top-line-bar {
  height: 10.5px;
  background-color: #31aca8;
  width: 100%;
  margin-top: 1px;
  margin-bottom: 5px;
}
.header-utilities {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 8px;
  padding-right: 10px;
}
.text-size-link a {
  font-size: 12px;
  color: #333;
  text-decoration: none;
}
.search-form {
  display: flex;
  gap: 5px;
}

/* ==========================================================================
   ナビゲーションメニュー
   ========================================================================== */
.n_menu {
  display: flex;
  flex-wrap: wrap;
  width: 1000px;
  max-width: 94%;
  margin: 1px auto;
  padding: 0;
  list-style: none;
  background: #0e9e97;
  overflow: hidden;
}
.n_menu li {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
}
.n_menu li a {
  display: block;
  width: 100%;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  line-height: 30px;
  font-size: 15px;
  letter-spacing: 0.1em;
  transition: background 0.3s;
}
.n_menu li a:hover {
  background: #006964;
  color: #ffffff;
  text-decoration: none;
}

/* ==========================================================================
   パンくず・ページ見出し
   ========================================================================== */
.breadcrumb {
  margin: 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  color: #666;
}

.page-title {
  margin: 24px 0 20px;
  padding: 8px 4px 8px 14px;
  border-left: 10px solid #ffd700;
  border-top: 1px solid #ffd700;
  font-size: 20px;
  color: #000;
}

/* ==========================================================================
   3カラム（工事／建設コンサルタント業務／物品・役務）
   ========================================================================== */
.keiyaku-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.keiyaku-card {
  border: 1px solid #0e1111;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
}
.keiyaku-card-head {
  margin: 0;
  padding: 10px 14px;
  background-color: #0e9e97;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 0.05em;
}
/* 見出し色のバリエーション（サイト既存の配色のみ使用） */
.keiyaku-card.accent-b .keiyaku-card-head {
  background-color: #0e9e97;
}
.keiyaku-card.accent-c .keiyaku-card-head {
  background-color: #31aca8;
}

.keiyaku-card-body {
  padding: 14px;
}

.keiyaku-group-title {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  border-left: 4px solid #b0c4c2;
  padding-left: 8px;
  line-height: 1.5;
}
.keiyaku-card-body > .keiyaku-group-title:first-child {
  margin-top: 0;
}
.group-title-note {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #666;
}

/* 年度ボタン */
.year-btn-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.year-btn-list a {
  position: relative;
  display: block;
  padding: 9px 26px 9px 12px;
  border-radius: 4px;
  background: linear-gradient(#3fbfb4, #31aca8);
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.year-btn-list a::after {
  content: "›";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  line-height: 1;
}
.year-btn-list a:hover {
  background: linear-gradient(#31aca8, #006964);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.keiyaku-note {
  margin: 18px 0 0;
  font-size: 12px;
  color: #666;
}

/* ==========================================================================
   フッターエリア
   ========================================================================== */
.footer-container {
  width: 1000px;
  max-width: 94%;
  margin: 40px auto 20px;
  text-align: center;
  font-size: 13px;
  border-top: 1px solid #ccc;
  padding-top: 20px;
  color: #444;
}
.footer-info {
  margin-bottom: 10px;
  line-height: 1.8;
}
.copyright {
  font-size: 12px;
  color: #888;
}

/* ==========================================================================
   画面幅が狭いとき（3列→2列→1列）
   ========================================================================== */
@media screen and (max-width: 900px) {
  .keiyaku-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .keiyaku-columns {
    grid-template-columns: 1fr;
  }
  /* --- トップバー：事務所名は残し、リンク群はハンバーガーに格納 --- */
  .header-top-content {
    position: relative;
    justify-content: flex-start;
    text-align: left;
    padding-right: 52px; /* ハンバーガーの居場所を確保 */
  }
  .office-name {
    font-size: 13px;
  }
  .utility-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: absolute;
    right: 8px;
    /* 1行目（事務所名の行）に固定。50%だとメニューを開いたとき
       コンテナが伸びてリンクの上に重なってしまう */
    top: 5px;
    padding: 4px 6px;
    cursor: pointer;
    user-select: none;
  }
  /* 3本線のアイコン（画像もアイコンフォントも使わない） */
  .utility-toggle-bars,
  .utility-toggle-bars::before,
  .utility-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
  }
  .utility-toggle-bars {
    position: relative;
  }
  .utility-toggle-bars::before,
  .utility-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .utility-toggle-bars::before {
    top: -6px;
  }
  .utility-toggle-bars::after {
    top: 6px;
  }
  .utility-toggle-text {
    font-size: 10px;
    line-height: 1;
    color: #fff;
  }
  /* 閉じているときは隠し、チェックが入ったら開く */
  .utility-menu {
    display: none;
    flex-basis: 100%;
    width: 100%;
    padding: 8px 0 2px;
    line-height: 2;
  }
  .utility-toggle-checkbox:checked ~ .utility-menu {
    display: block;
  }

  /* --- タイトル部：ロゴを幅いっぱいに、右側ブロックは非表示 --- */
  .header-main-content {
    justify-content: center;
  }
  .header-logo,
  .header-logo a {
    display: block;
    width: 100%;
  }
  .header-logo img {
    width: 100%;
    height: auto;
  }
  /* 狭い画面では右側ブロック（帯・文字サイズ・サイト内検索）ごと非表示。
     display:none なので領域も残らず、ロゴだけが並ぶ */
  .header-right-side {
    display: none;
  }
  .n_menu li a {
    font-size: 13px;
    letter-spacing: 0;
  }
}
