/* ============================================================
   資料室 ブログ一覧 CSS
   ============================================================ */

@media (min-width: 768px) {
  h1 {
    font-size: 3.375rem;
    margin-bottom: 10px;
  }
  .siteblock-side {
    padding-top: 120px;
    padding-bottom: 48px;
  }
}

.lay-col12-xl-3 {
  -ms-flex: 0 0 25%;
  flex: 0 0 25%;
  max-width: 25%;
  margin-top: 11.5%;
}

/* ---- リスト全体 ---- */
.shiryo-list {
  width: 100%;
  margin-bottom: 24px;
  border-top: 2px solid #17458f;
}

/* ---- 行共通 ---- */
.shiryo-list-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #d8e4f0;
  transition: background 0.15s;
}

.shiryo-list-row:hover {
  background: #f0f6fc;
}

/* ---- ヘッダー行 ---- */
.shiryo-list-header {
  background: #f0f4f8;
  font-size: 13px;
  color: #555;
  font-weight: bold;
  border-bottom: 1px solid #c0d0e0;
}

.shiryo-list-header:hover {
  background: #f0f4f8;
}

/* ---- サムネイル ---- */
.shiryo-col-thumb {
  flex-shrink: 0;
  width: 100px !important;
  text-align: center;
  padding-right: 8px;
}

.shiryo-col-thumb img {
  width: 80px !important;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #ddd;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
}

/* ---- PDFバッジ列 ---- */
.shiryo-col-badge {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
}

/* ---- 更新日 ---- */
.shiryo-col-date {
  display: none;
}

/* ---- 資料名 ---- */
.shiryo-col-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  padding: 0 16px;
}

/* ---- サイズ（閲覧用・印刷用 縦並び） ---- */
.shiryo-col-size {
  flex-shrink: 0;
  width: 110px;
  font-size: 12px;
  color: #777;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shiryo-size-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.shiryo-size-label {
  font-size: 11px;
  color: #999;
}

.shiryo-size-val {
  font-size: 12px;
  color: #555;
}

/* ---- DLボタン ---- */
.shiryo-col-dl {
  flex-shrink: 0;
  width: 160px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.shiryo-dl-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background 0.15s;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.shiryo-dl-view {
  background: #00adbb;
  color: #fff !important;
}

.shiryo-dl-view:hover {
  background: #008a96;
}

.shiryo-dl-print {
  background: #17458f;
  color: #fff !important;
}

.shiryo-dl-print:hover {
  background: #0d2d5e;
}

/* ---- PDFバッジ ---- */
.shiryo-badge {
  display: inline-block;
  background: #C62828;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* ---- カテゴリラベル ---- */
.shiryo-category {
  display: inline-block;
  background: #e8f0f8;
  color: #17458f;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---- タイトルリンク ---- */
.shiryo-col-name a {
  color: #1a2a3a;
  text-decoration: none;
  font-size: 15px;
}

.shiryo-col-name a:hover {
  color: #17458f;
  text-decoration: underline;
}

/* ---- モバイル ---- */
@media (max-width: 700px) {
  .shiryo-list-header { display: none; }
  .shiryo-col-date { display: none; }
  .shiryo-col-badge { display: none; }
  .shiryo-col-thumb { width: 70px; }
  .shiryo-col-thumb img { width: 60px; }
  .shiryo-col-name { font-size: 13px; padding: 0 8px; }
  .shiryo-col-size {
    width: 80px;
    font-size: 11px;
  }
  .shiryo-size-label { font-size: 10px; }
  .shiryo-size-val { font-size: 11px; }
  .shiryo-col-dl {
    width: auto !important;
    flex-direction: column;
    gap: 4px;
  }
  .shiryo-dl-btn {
    font-size: 11px;
    padding: 5px 8px;
  }
}
