@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/



.lawdb-table td a {
  color: #1d4ed8; /* 濃い青 (Tailwind blue-700 相当) */
  text-decoration: underline;
}

.lawdb-table td a:hover {
  color: #1e40af; /* さらに濃い青 (blue-800) */
  text-decoration: underline;
}


.lawdb-wrap { overflow-x:auto; }
.lawdb-table { width:100%; border-collapse:collapse; font-size:14px; }

/* --- ヘッダーを薄いグレーに --- */
.lawdb-table thead th {
  background: #f3f4f6 !important; /* 薄いグレー (Tailwind gray-100 相当) */
  color: #111827 !important;      /* 濃いめの文字色 (gray-900) */
  font-weight: 600;
  padding: .6rem .75rem;
  white-space: nowrap;
  border-bottom: 2px solid #e5e7eb; /* 下線をやや濃く */
}

/* --- 本文セル --- */
.lawdb-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: .55rem .6rem;
  text-align: left;
  background: #fff; /* 本文セルは白 */
}

/* 偶数行を薄グレーにして見やすく */
.lawdb-table tbody tr:nth-child(even) {
  background:#f9fafb;
}



/* ページャー */
.lawdb-pager {
  display:flex;
  gap:.35rem;
  align-items:center;
  margin:1rem 0;
  flex-wrap:wrap;
}
.lawdb-pager a, .lawdb-pager span {
  padding:.3rem .55rem;
  border:1px solid #e5e7eb;
  border-radius:.4rem;
  text-decoration:none;
}
.lawdb-pager .current {
  background:#1e3a8a;
  color:#fff;
  border-color:#1e3a8a;
}
.lawdb-pager .disabled {
  color:#9ca3af;
  border-color:#e5e7eb;
}



/* ラッパーで横スクロールを許可 */
.lawdb-wrap{
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch; /* スマホで慣性スクロール */
}

/* テーブルは親幅に合わせない（=縮めない） */
.lawdb-table{
  border-collapse: collapse;
  /* width:100%; ←これがあると親幅(1200px)に縮もうとするので外す */
  width: max-content;       /* 中身に合わせて広がる */
  min-width: 1500px;        /* 表示したい最低幅（必要に応じて調整） */
  font-size: 14px;
  table-layout: auto;       /* 既定でOK。固定したいなら fixed */
}

/* 折り返すと高さが増えてスクロール量が読みにくくなるので、基本は折返し不可 */
.lawdb-table th,
.lawdb-table td{
  white-space: nowrap;      /* 必要列だけでもOK */
}

/* もし「概要」列だけは折返したい場合（一覧性より可読性重視） */
.lawdb-table th:nth-child(7),
.lawdb-table td:nth-child(7){
  white-space: normal;
}

/* 既存の配色・余白などはそのまま活かす（省略） */



/* 各列の幅をざっくり指定（必要なら調整） */
.lawdb-table th:nth-child(1), .lawdb-table td:nth-child(1) { width: 15%; } /* タイトル */
.lawdb-table th:nth-child(2), .lawdb-table td:nth-child(2) { width: 8%; } /* 改正種別 */
.lawdb-table th:nth-child(3), .lawdb-table td:nth-child(3) { width: 13%; } /* 法令名 */
.lawdb-table th:nth-child(4), .lawdb-table td:nth-child(4) { width: 7%; } /* 公布日 */
.lawdb-table th:nth-child(5), .lawdb-table td:nth-child(5) { width: 7%; } /* 施行日 */
.lawdb-table th:nth-child(6), .lawdb-table td:nth-child(6) { width: 8%; } /* 施行状況 */
.lawdb-table th:nth-child(7), .lawdb-table td:nth-child(7) { width: 32%; } /* 概要 */
.lawdb-table th:nth-child(8), .lawdb-table td:nth-child(8) { width: 10%; } /* 参照URL */


/* RSSフィードの日付の下に区切り線 */
.column_rss_seminar .wp-block-rss__item-publish-date {
  display: block; /* 日付をブロック化して全幅に */
  padding-bottom: 6px; 
  margin-bottom: 10px; 
  border-bottom: 1px solid #e0e0e0; /* 薄いグレー */
}


/* 対象ULを限定 */
.has-dates.rss_info.wp-block-rss > li.wp-block-rss__item {
  /* デフォルトblockのままでOK（リストの体裁維持） */
}

/* タイトルdivを行内にする：これで後ろのtimeと同一行になる */
.has-dates.rss_info.wp-block-rss > li.wp-block-rss__item > .wp-block-rss__item-title {
  display: inline;           /* ←ポイント */
  margin-right: 1em;         /* 全角1文字分の間隔 */
}

/* 日付は行内のまま。既存のblock指定を打ち消す */
.has-dates.rss_info.wp-block-rss > li.wp-block-rss__item > .wp-block-rss__item-publish-date {
  display: inline !important;
  white-space: nowrap;
  padding: 0;
  margin: 0;
  border: none;
}
.has-dates.rss_info.wp-block-rss > li.wp-block-rss__item {
  display: flex !important;
  align-items: baseline;
  gap: 1em;
  flex-wrap: nowrap;

  /* ここで行間を調整 */
  margin-bottom: 0.75em;   /* 各項目の下に余白 */
  line-height: 1.6;        /* 行の高さを少し広めに */
}
