/* ============================================================
   procurement-page.css
   入札・契約情報ページ 本体スタイル
   読み込み順：procurement-common.css より後に読み込むこと
   ============================================================ */

/* ========== 共通ラッパー ========== */
.inner-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ========================================= */
/* ========== インデックスページ =========== */
/* ========================================= */

.page-header--index {
  padding: 36px 0 28px;
}
.page-header--index h1 {
  font-size: var(--fs-h1);
  padding-bottom: 8px;
}

/* ========== 目次 ========== */
.toc {
  padding: 24px 0;
}
.toc-inner {
  background: linear-gradient(to top right,
    #F5FCF4 0%,
    #E5FBEE 50%,
    #E7FAFA 100%);
  border-radius: var(--radius-md);
  padding: 26px 28px 30px;
  box-shadow: 0 2px 1px rgba(127,127,127,0.6);
  position: relative;
  overflow: hidden;
}
.toc-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  padding-left: 4px;
}
.toc-label svg { width: 20px; height: 20px; fill: var(--green-main); }
.toc-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.toc-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(127,127,127,0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toc-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--green-main);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.toc-nav a .toc-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.25s, transform 0.25s;
}
.toc-nav a .toc-arrow svg {
  width: 15px; height: 15px;
  fill: var(--green-main);
  transition: fill 0.25s;
}
.toc-nav a .toc-text { flex: 1; }
.toc-nav a:hover {
  color: var(--green-dark);
  border-color: var(--green-main);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.toc-nav a:hover::after { width: 100%; }
.toc-nav a:hover .toc-arrow {
  background: var(--green-main);
  transform: translateX(3px);
}
.toc-nav a:hover .toc-arrow svg { fill: var(--white); }

/* ========== メインコンテンツ ========== */
.content {
  padding: 44px 0 80px;
}

/* ========== セクション共通（大項目） ========== */
.section { margin-bottom: 56px; }
.section:last-child { margin-bottom: 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.section-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg,
    var(--green-main) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(15,157,112,0.25);
}
.section-icon svg { width: 24px; height: 24px; fill: var(--white); }
.section-title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-header h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.section-title-wrap .deco-line {
  flex: 1; height: 3px;
  background: linear-gradient(90deg,
    var(--green-main) 0%, var(--green-light) 40%, transparent 100%);
  border-radius: 2px;
}

/* ========== お知らせリスト ========== */
.notice-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,157,112,0.12);
}
.notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--gray-300);
  transition: background 0.2s;
  font-size: var(--fs-base);
  line-height: 1.8;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li:hover { background: var(--green-pale); }
.notice-marker {
  width: 7px; height: 7px;
  background: var(--green-main);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}
.notice-body { flex: 1; }
.notice-body a { font-size: var(--fs-base); }
.notice-body .ext-icon { vertical-align: middle; margin-left: 0.4em; }

/* ========== カードグリッド（2列） ========== */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.card {
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.12);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
  transition:
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--green-main) 0%, var(--green-light) 100%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(15,157,112,0.25);
}
.card:hover::before { opacity: 1; }

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1.5px solid var(--green-light);
}
.card-head-icon {
  width: 36px; height: 36px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.card:hover .card-head-icon {
  background: var(--green-main);
  transform: scale(1.05);
}
.card-head-icon svg {
  width: 22px; height: 22px;
  color: var(--green-main);
  transition: color 0.3s;
}
.card:hover .card-head-icon svg { color: var(--white); }
.card-head-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.card-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.card-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-link);
  font-weight: 400;
  color: var(--blue-link);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  line-height: 1.65;
}
.card-links li a:hover {
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
  padding-left: 16px;
}
.card-links li a .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.card-links li a .arrow svg { width: 11px; height: 11px; fill: var(--green-main); }
.card-links li a:hover .arrow {
  background: var(--green-main);
  transform: translateX(2px);
}
.card-links li a:hover .arrow svg { fill: var(--white); }
.card-links li a .link-text { flex: 1; }
.card-links li a .ext-icon { margin-left: 0.4em; }

/* カード内リンクの番号バッジ（緑の丸に白抜き数字）
   ・数字は欧文フォントで描画し、上下中央のズレを防ぐ
   ・ホバー時は丸の緑を濃くするだけ（行の背景変化と重ならないよう控えめに）
   契約方式など、順番に意味のある項目に使う（Yu_kouhyou.html で使用） */
.card-links li a .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--green-main);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}
.card-links li a:hover .num {
  background: var(--green-dark);
}

/* ========== 入札結果等（年度ごとのリスト） ========== */
.year-block { margin-bottom: 20px; }
.year-block:last-child { margin-bottom: 0; }
.year-label {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(90deg,
    var(--green-main) 0%, var(--green-mid) 100%);
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.year-links {
  list-style: none;
  padding-left: 12px;
  border-left: 2px solid var(--green-light);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.year-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-link);
  color: var(--blue-link);
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, padding-left 0.2s;
  line-height: 1.65;
}
.year-links li a:hover {
  background: var(--green-light);
  text-decoration: none;
  padding-left: 14px;
}
.year-links li a .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.year-links li a .arrow svg { width: 11px; height: 11px; fill: var(--green-main); }
.year-links li a:hover .arrow {
  background: var(--green-main);
  transform: translateX(2px);
}
.year-links li a:hover .arrow svg { fill: var(--white); }
.year-links li a .link-text { flex: 1; }

.year-archive-note {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  padding: 8px 12px;
  line-height: 1.7;
}

/* ========== 契約情報リスト ========== */
.contract-list {
  list-style: none;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,157,112,0.12);
}
.contract-list li {
  border-bottom: 1px solid var(--gray-300);
  transition: background 0.2s;
}
.contract-list li:last-child { border-bottom: none; }
.contract-list li:hover { background: var(--green-pale); }
.contract-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px;
  font-size: var(--fs-base);
  color: var(--blue-link);
  transition: padding-left 0.2s;
  line-height: 1.8;
}
.contract-list li:hover a {
  padding-left: 32px;
  text-decoration: none;
}
.contract-list li a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--green-dark) inset;
  background: var(--green-light);
}
.contract-list li a .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.contract-list li a .arrow svg { width: 12px; height: 12px; fill: var(--green-main); }
.contract-list li:hover a .arrow {
  background: var(--green-main);
  transform: translateX(2px);
}
.contract-list li:hover a .arrow svg { fill: var(--white); }
.contract-list li a .link-body { flex: 1; }
.contract-list li a .ext-icon { margin-left: 0.4em; }
.contract-sub {
  display: block;
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 400;
}

/* ========================================= */
/* ========== 個別ページ =================== */
/* ========================================= */

.detail-wrapper {
  width: 100%;   /* body が flex のため、指定しないと中身の幅に縮む */
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.page-header--detail {
  padding: 32px 40px 24px;
}
.page-header--detail .header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-header--detail .header-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg,
    var(--green-main) 0%, var(--green-dark) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15,157,112,0.28);
}
.page-header--detail .header-icon svg { width: 26px; height: 26px; fill: var(--white); }
.page-header--detail h1 {
  font-size: var(--fs-h1);
  padding-bottom: 10px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  width: 100%;
  padding: 36px 40px 80px;
  align-items: start;
  box-sizing: border-box;
}
.main-col { min-width: 0; }

/* ========== 案内ボックス ========== */
/* 白地・角丸の面を、緑の自然な影で浮かせる（パワポ設定準拠：角度50°・距離4pt・ぼかし7pt・透明度30%） */
.guide-box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 36px;
  box-shadow: 3px 3px 7px rgba(15,157,112,0.38);
}
.guide-box p {
  font-size: var(--fs-base);
  line-height: 1.9;
  margin-bottom: 16px;
}
.guide-box p:last-child { margin-bottom: 0; }
.guide-box .req-link { font-weight: 600; }
.guide-box .ext-icon { vertical-align: middle; margin-left: 0.3em; }

.dl-portal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--green-main);
  color: var(--white) !important;
  font-size: var(--fs-base);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.dl-portal:hover {
  background: var(--green-dark);
  color: var(--white) !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.dl-portal svg { width: 18px; height: 18px; fill: var(--white); flex-shrink: 0; }
.dl-portal .ext-mini { width: 14px; height: 14px; opacity: 0.85; }

/* ---------- 案内ボックス内：読むもの（テキストリンク） ---------- */
.guide-box .read-list {
  list-style: none;
  margin: 12px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.guide-box .read-list li {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-base);
  line-height: 1.7;
}
.guide-box .read-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  background: var(--green-main);
  border-radius: 50%;
}
.guide-box .read-list li a { font-weight: 500; }

/* ---------- 案内ボックス内：提出様式のダウンロード（様式1～3・3列） ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* 平常時はフラット（影なし）・枠でくっきり／ホバー時は枠色を緑に＋影で上品に浮かせる */
.form-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--gray-900) !important;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.form-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-pale);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.form-item:hover { border-color: var(--green-main); text-decoration: none; }
.form-item:hover::before { transform: translateX(0); }
.form-item .form-file,
.form-item .form-name { position: relative; z-index: 1; }
.form-item .form-file {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.form-item .form-file svg { width: 30px; height: 30px; }
.form-item:hover .form-file { transform: translateY(-2px) rotate(-4deg); }
.form-item .form-name {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; line-height: 1.35;
}
.form-item .form-no  { font-size: var(--fs-sm); font-weight: 700; color: var(--green-dark); }
.form-item .form-sub { font-size: var(--fs-sm); font-weight: 500; transition: color 0.25s ease; }
.form-item:hover .form-sub { color: var(--green-dark); }
.form-item::after {
  content: "";
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-top: 2px solid var(--green-main);
  border-right: 2px solid var(--green-main);
  transform: rotate(45deg) translateX(-6px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-item:hover::after {
  opacity: 1;
  transform: rotate(45deg) translateX(0);
}

/* ========== 一覧の見出しブロック ========== */
/* h2（見出し）とテーブルへの注記（list-note）を縦積みで配置。
   list-note はテーブルに対する注記のため、テーブル直前・右揃えで表示する。 */
.list-head-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3px; /* 注記とテーブルの間を詰める */
}
.list-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.list-header .bar {
  width: 10px;
  min-height: 26px;
  background: var(--green-main);
  border-radius: 2px;
  flex-shrink: 0;
  align-self: stretch;
}
.list-header h2 {
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
}
.list-note {
  display: flex;
  align-items: center;
  justify-content: flex-end; /* テーブル直前・右揃えで表示 */
  gap: 6px;
  font-size: var(--fs-sm);
  color: var(--gray-500);
  margin-top: 8px;  /* h2との間：8px */
  margin-bottom: 3px; /* テーブルとの間：3px */
}
.list-note svg { width: 15px; height: 15px; fill: var(--green-main); flex-shrink: 0; }

/* ========== 案件テーブル ========== */
.bid-table-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,157,112,0.12);
}
.bid-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.bid-table thead th {
  background: linear-gradient(135deg,
    var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  font-size: var(--fs-th);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 20px;
  text-align: left;
  white-space: nowrap;
}
.bid-table thead th.col-date   { width: 160px; }
.bid-table thead th.col-limit  { width: 190px; }
.bid-table thead th.col-name   { width: auto; }
.bid-table thead th.col-day    { width: 160px; }
.bid-table thead th.col-party  { width: 160px; }
.bid-table thead th.col-amount { width: 130px; }
.bid-table thead th.col-note   { width: 100px; }
.bid-table thead th.col-limit--long {
  white-space: normal;
  width: 160px;
  line-height: 1.4;
}

.bid-table tbody tr {
  border-bottom: 1px solid var(--gray-300);
  transition: background 0.2s;
}
.bid-table tbody tr:last-child { border-bottom: none; }
.bid-table tbody tr:hover { background: var(--green-pale); }
.bid-table tbody td {
  padding: 16px 20px;
  font-size: var(--fs-base);
  vertical-align: middle;
  line-height: 1.6;
}
.bid-table td.col-date,
.bid-table td.col-day,
.bid-table td.col-limit  { color: var(--gray-700); white-space: nowrap; }
.bid-table td.col-name   { word-break: break-all; }
.bid-table td.col-amount { white-space: nowrap; }
.bid-table td.col-name a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-link);
  font-weight: 500;
  transition: color 0.2s;
}
.bid-table td.col-name a .file-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform 0.2s;
}
.bid-table td.col-name a .file-mark svg { width: 24px; height: 24px; }
.bid-table td.col-name a:hover .file-mark { transform: translateY(-1px); }
.bid-table td.col-name a:hover { color: var(--blue-hover); text-decoration: none; }
.bid-table td.col-name .name-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bid-table td.col-name a:hover .name-text { text-decoration: none; }

.bid-table tr.is-cancelled td { color: var(--gray-500); }
.bid-table tr.is-cancelled .name-text { text-decoration: line-through; }

.status-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 3px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

.no-data {
  padding: 44px 20px;
  text-align: center;
  color: var(--gray-500);
  font-size: var(--fs-base);
}
.no-data svg {
  width: 42px; height: 42px;
  fill: var(--gray-300);
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.no-data p { line-height: 1.7; }

/* ========== 6列テーブル（is-wide）専用 ========== */
.bid-table-shadow {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(15,157,112,0.12);
  box-shadow: var(--shadow-card);
  background: var(--white);
}
.bid-table-shadow::before,
.bid-table-shadow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: var(--scrollbar-h, 0px);
  width: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.bid-table-shadow::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.18), rgba(0,0,0,0));
}
.bid-table-shadow::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.18), rgba(0,0,0,0));
}
.bid-table-shadow.has-shadow-left::before { opacity: 1; }
.bid-table-shadow.has-shadow-right::after  { opacity: 1; }

.bid-table-wrap.is-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.bid-table.is-wide {
  table-layout: auto;
  width: 100%;
  min-width: 920px;
}
.bid-table.is-wide th,
.bid-table.is-wide td { white-space: nowrap; }
.bid-table.is-wide th.col-name,
.bid-table.is-wide td.col-name {
  white-space: normal;
  min-width: 280px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.bid-table.is-wide th.col-party,
.bid-table.is-wide td.col-party {
  white-space: normal;
  min-width: 200px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.bid-table.is-wide th.col-amount,
.bid-table.is-wide td.col-amount {
  text-align: right;
}

/* ========================================= */
/* ==== 発注者支援業務等 案件カード 専用 ==== */
/* ========================================= */
/* 1案件を1枚のカードにし、項目（業務名・業務種別・履行期間 等）を
   縦に並べて表示する。項目数が多いためテーブルではなくカード形式。
   このページ(shien.html)は1カラム(.doc-wrapper)で表示する。 */

.shien-lead { margin-bottom: 20px; }

.shien-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shien-card {
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.12);
  border-left: 4px solid var(--green-main);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 26px;
}

/* 発注者支援業務等：該当なし表示の枠
   （.bid-table-wrap はスマホで枠が消えるため、専用クラスを使用） */
.shien-empty {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15,157,112,0.12);
}

.shien-card-head {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--green-light);
}
.shien-method {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(90deg,
    var(--green-main) 0%, var(--green-mid) 100%);
  padding: 3px 14px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.shien-name {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.5;
}
.shien-name a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--blue-link);
  font-weight: 700;
  transition: color 0.2s;
}
.shien-name a .file-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: transform 0.2s;
}
.shien-name a .file-mark svg { width: 24px; height: 24px; }
.shien-name a:hover { color: var(--blue-hover); text-decoration: none; }
.shien-name a:hover .file-mark { transform: translateY(-1px); }
.shien-name a .name-text { text-decoration: underline; text-underline-offset: 3px; }
.shien-name a:hover .name-text { text-decoration: none; }

.shien-detail {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.shien-detail li {
  display: flex;
  gap: 10px;
  font-size: var(--fs-base);
  line-height: 1.7;
}
.shien-detail .item-label {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  color: var(--green-dark);
}
.shien-detail .item-value {
  flex: 1;
  color: var(--gray-900);
  word-break: break-all;
}

/* ========================================= */
/* ==== 契約情報の公表ページ（1カラム）専用 ==== */
/* ========================================= */
.doc-wrapper { max-width: 1100px; }

.doc-layout {
  padding: 36px 40px 80px;
  box-sizing: border-box;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.85;
}
.doc-layout a { color: var(--blue-link); text-decoration: none; transition: color 0.2s; }
.doc-layout a:hover { color: var(--blue-hover); }
.doc-layout a:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

.doc-section { margin-bottom: 36px; }

.doc-heading {
  font-size: var(--fs-section);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.3;
  padding-left: 14px;
  border-left: 6px solid var(--green-main);
  margin-bottom: 18px;
}

.doc-list {
  list-style: none;
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 8px 0;
}
.doc-list li {
  padding: 14px 24px 14px 30px;
  border-bottom: 1px solid var(--gray-300);
  font-size: var(--fs-base);
  line-height: 1.8;
  position: relative;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list li::before {
  content: "";
  position: absolute;
  left: 12px; top: 22px;
  width: 6px; height: 6px;
  background: var(--green-main);
  border-radius: 50%;
}
.doc-note-inline {
  font-size: var(--fs-sm);
  color: var(--gray-500);
}

.doc-item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.doc-item {
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.doc-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1.5px solid var(--green-light);
}
.doc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  background: linear-gradient(135deg,
    var(--green-main) 0%, var(--green-dark) 100%);
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  border-radius: 50%;
}
.doc-item-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--blue-link);
  line-height: 1.4;
}
.doc-item-title:hover { color: var(--blue-hover); }
.doc-item-title .ext-icon { margin-left: 0.3em; vertical-align: middle; }
.doc-item-desc {
  font-size: var(--fs-base);
  line-height: 1.8;
}
.doc-item-desc-list {
  list-style: none;
  font-size: var(--fs-base);
  line-height: 1.8;
}
.doc-item-desc-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}
.doc-item-desc-list li:last-child { margin-bottom: 0; }
.doc-item-desc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 5px; height: 5px;
  border-top: 2px solid var(--green-main);
  border-right: 2px solid var(--green-main);
  transform: rotate(45deg);
}

.doc-notes {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  line-height: 1.8;
}
.doc-notes p { margin-bottom: 10px; }
.doc-notes p:last-child { margin-bottom: 0; }

/* ========== 戻るリンク ========== */
.back-link { margin-top: 36px; display: flex; }
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--green-dark);
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s;
}
.back-link a svg {
  width: 16px; height: 16px;
  fill: var(--green-main);
  transition: transform 0.25s;
}
.back-link a:hover {
  border-color: var(--green-main);
  color: var(--green-dark);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.back-link a:hover svg { transform: translateX(-3px); }

/* ========== サイドバー ========== */
.side-col { min-width: 0; }
.sidebar { position: sticky; top: 20px; }

.side-wrap {
  background: var(--white);
  border: 1px solid rgba(15,157,112,0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg,
    var(--green-dark) 0%, var(--green-main) 100%);
  color: var(--white);
  font-size: var(--fs-base);
  font-weight: 700;
  padding: 15px 18px;
  letter-spacing: 0.03em;
}
.side-title svg { width: 18px; height: 18px; fill: var(--white); }

.side-body { padding: 8px; }
.side-section { margin-bottom: 4px; }
.side-section:last-child { margin-bottom: 0; }

.side-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--green-dark);
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--green-light);
  position: relative;
}
.side-sec-head::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--green-main);
  border-radius: 0 2px 2px 0;
}
.side-sec-head svg { width: 16px; height: 16px; fill: var(--green-main); flex-shrink: 0; }

.side-cat-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-700);
  background: none;
  border: none;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.side-cat-btn .cat-dot {
  width: 7px; height: 7px;
  background: var(--green-main);
  border-radius: 50%;
  flex-shrink: 0;
}
.side-cat-btn .cat-text { flex: 1; }
.side-cat-btn:hover { background: var(--green-pale); color: var(--green-dark); }

.side-cat-btn .cat-toggle {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.side-cat-btn .cat-toggle::before,
.side-cat-btn .cat-toggle::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--green-main);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.side-cat-btn .cat-toggle::before { transform: translate(-50%, -50%); }
.side-cat-btn .cat-toggle::after  { transform: translate(-50%, -50%) rotate(90deg); }
.side-cat-btn[aria-expanded="true"] .cat-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
}

.side-cat-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.side-cat-body ul {
  list-style: none;
  padding: 2px 14px 6px 22px;
}
.side-cat-body ul li a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  font-size: var(--fs-sm);
  color: var(--blue-link);
  padding: 6px 10px 6px 8px;
  border-radius: 4px;
  line-height: 1.5;
  transition: background 0.2s, padding-left 0.2s;
}
.side-cat-body ul li a .side-link-text { flex: 1; min-width: 0; }
.side-cat-body ul li a::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-top: 2px solid var(--green-main);
  border-right: 2px solid var(--green-main);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 6px;
}
.side-cat-body ul li a:hover {
  background: var(--green-light);
  text-decoration: none;
  padding-left: 12px;
  padding-right: 10px;
}
.side-cat-body ul li .side-ext {
  width: 12px; height: 12px;
  fill: var(--gray-400);
  flex-shrink: 0;
  margin-top: 3px;
}
.side-cat-body ul li a.is-current {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  border-left: 3px solid var(--green-main);
  padding-left: 9px;
}
.side-cat-body ul li a.is-current::before { border-color: var(--green-main); }
.side-cat-body ul li a.is-current:hover { background: var(--green-light); padding-left: 9px; }

.side-year {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--green-mid);
  padding: 1px 8px;
  border-radius: 10px;
  margin: 2px 0 2px 22px;
  line-height: 1.6;
}

/* ========== タッチ端末での調整 ========== */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-card); }
  .card:hover::before { opacity: 0; }
  .card:hover .card-head-icon { background: var(--green-light); transform: none; }
  .card:hover .card-head-icon svg { color: var(--green-main); }
  .dl-portal:hover { transform: none; box-shadow: none; }
  .back-link a:hover { transform: none; box-shadow: var(--shadow-card); }
  .form-item:hover { border-color: var(--gray-300); }
  .form-item:hover::before { transform: translateX(-100%); }
  .form-item:hover .form-file { transform: none; }
  .form-item:hover .form-sub { color: var(--gray-900); }
  .form-item:hover::after { opacity: 0; transform: rotate(45deg) translateX(-6px); }
   .card-links li a:hover .num { background: var(--green-main); }
}

/* ========== 画面幅に応じた調整 ========== */
@media screen and (max-width: 768px) {
  .inner-wrap { padding: 0 20px; }
}
@media screen and (max-width: 480px) {
  .inner-wrap { padding: 0 16px; }
}

/* ----- インデックスページ ----- */
@media screen and (max-width: 900px) {
  .toc-nav { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
  .page-header--index { padding: 24px 0 20px; }
  .page-header--index h1 { font-size: 2.4rem; }
  .toc { padding: 20px 0; }
  .toc-inner { padding: 20px 20px 24px; }
  .content { padding: 28px 0 60px; }
  .section { margin-bottom: 44px; }
  .section-header h2 { font-size: 2.1rem; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card-head-title { font-size: 1.7rem; }
  .notice-list li { padding: 16px 20px; }
  .contract-list li a { padding: 16px 20px; }
}
@media screen and (max-width: 480px) {
  .page-header--index { padding: 20px 0 16px; }
  .page-header--index h1 { font-size: 2.1rem; }
  .toc { padding: 16px 0; }
  .toc-inner { padding: 18px; }
  .toc-nav { grid-template-columns: 1fr; }
  .toc-nav a { padding: 13px 16px; }
  .content { padding: 24px 0 48px; }
  .section { margin-bottom: 38px; }
  .section-icon { width: 38px; height: 38px; }
  .section-icon svg { width: 22px; height: 22px; }
  .section-header h2 { font-size: 2.0rem; }
  .section-title-wrap .deco-line { display: none; }
  .card { padding: 20px 18px; }
  .card-head-title { font-size: 1.6rem; }
  .notice-list li { padding: 14px 16px; }
  .contract-list li a { padding: 14px 16px; }
}

/* ----- 個別ページ ----- */
@media screen and (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 768px) {
  .detail-wrapper { padding: 0; }
  .page-header--detail { padding: 24px 20px 20px; }
  .page-header--detail .header-icon { width: 40px; height: 40px; }
  .page-header--detail .header-icon svg { width: 22px; height: 22px; }
  /* h1（大項目）とh2（中項目）のサイズ差を維持（h1:2.6rem・h2:2.1rem） */
  .page-header--detail h1 { font-size: 2.6rem; }
  .layout { padding: 28px 20px 60px; }
  .guide-box { padding: 18px 20px; }
  .list-header h2 { font-size: 2.1rem; }
  .bid-table thead th.col-date,
  .bid-table thead th.col-limit,
  .bid-table thead th.col-limit--long,
  .bid-table thead th.col-day,
  .bid-table thead th.col-party,
  .bid-table thead th.col-amount,
  .bid-table thead th.col-note { width: auto; }
  .bid-table thead th,
  .bid-table tbody td { padding: 13px 14px; font-size: 1.4rem; }
  .doc-layout { padding: 28px 20px 60px; }
  .doc-heading { font-size: 2.1rem; }
  .doc-item-grid { grid-template-columns: 1fr; }
}

/* ----- 6列テーブル（is-wide）のカード化：1000px以下 ----- */
@media screen and (max-width: 1000px) {
  .bid-table-shadow {
    border: none; box-shadow: none; background: transparent; border-radius: 0;
  }
  .bid-table-shadow::before,
  .bid-table-shadow::after { display: none; }
  .bid-table-wrap.is-scroll { overflow-x: visible; }
  .bid-table.is-wide { min-width: 0; table-layout: auto; }
  .bid-table.is-wide thead { display: none; }
  .bid-table.is-wide,
  .bid-table.is-wide tbody,
  .bid-table.is-wide tr,
  .bid-table.is-wide td { display: block; width: 100%; }
  /* 6列テーブルのスマホカード：グレーのシャープな影で統一 */
  .bid-table.is-wide tbody tr {
    background: var(--white);
    border: 1px solid rgba(15,157,112,0.12);
    border-left: 4px solid var(--green-main);
    border-radius: var(--radius-md);
    box-shadow: 2px 4px 6px rgba(80,80,80,0.18);
    margin-bottom: 16px;
    padding: 6px 4px;
  }
  .bid-table.is-wide tbody tr:hover { background: var(--white); }
  .bid-table.is-wide tbody td {
    padding: 8px 16px;
    border: none;
    white-space: normal;
    text-align: left;
  }
  .bid-table.is-wide tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 2px;
  }
}

/* ----- 2～3列テーブルのカード化：560px以下 ----- */
@media screen and (max-width: 560px) {
  .page-header--detail { padding: 20px 16px 16px; }
  /* h1（大項目）とh2（中項目）のサイズ差を維持（h1:2.4rem・h2:2.0rem） */
  .page-header--detail h1 { font-size: 2.4rem; }
  .layout { padding: 24px 16px 48px; }
  .doc-layout { padding: 24px 16px 48px; }
  .doc-item { padding: 18px 18px; }
  .list-header h2 { font-size: 2.0rem; }

  .form-grid { grid-template-columns: 1fr; }

  .bid-table-wrap { border: none; box-shadow: none; background: transparent; }
  .bid-table { table-layout: auto; }
  .bid-table thead { display: none; }
  .bid-table,
  .bid-table tbody,
  .bid-table tr,
  .bid-table td { display: block; width: 100%; }
  /* 通常テーブルのスマホカード：グレーのシャープな影で統一（6列テーブルと揃える） */
  .bid-table tbody tr {
    background: var(--white);
    border: 1px solid rgba(15,157,112,0.12);
    border-left: 4px solid var(--green-main);
    border-radius: var(--radius-md);
    box-shadow: 2px 4px 6px rgba(80,80,80,0.18);
    margin-bottom: 16px;
    padding: 6px 4px;
  }
  .bid-table tbody tr:hover { background: var(--white); }
  .bid-table tbody td {
    padding: 8px 16px;
    border: none;
  }
  .bid-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 2px;
  }
  .bid-table td.col-name { padding-top: 10px; padding-bottom: 10px; }
  .bid-table td.col-name::before { display: none; }
  .bid-table td.col-name a { font-size: 1.5rem; }
  .back-link a { width: 100%; justify-content: center; }

  /* shien.html：項目名と値を縦積みにする */
  .shien-card { padding: 18px 18px; }
  .shien-detail li { flex-direction: column; gap: 2px; }
  .shien-detail .item-label { width: auto; }
}