@charset "utf-8";
/* ===============================================
   資料一覧（Document list）
   外部サービス（SMP）のインラインstyleを分離・整理したもの
=============================================== */

/* -----------------------------------------------
   変数（元のインラインstyleの色をそのまま採用）
----------------------------------------------- */
:root {
  --docs-border: #999;       /* テーブル罫線 */
  --docs-head-bg: #dedede;      /* 検索フォーム見出し背景 */
  --docs-head-text: #202020;    /* 検索フォーム見出し文字 */
  --docs-text: #444;         /* 一覧の本文 */
  --docs-pager-border: #ccc; /* ページャ枠線 */
  --docs-divider-bg: #dcdcde;   /* 一覧下の区切り帯 */
  --docs-white: #fff;
}


/* -----------------------------------------------
   検索フォーム
   元: <table class="smp-search-form-table"> をdivに置換
       罫線の見た目は border-collapse 相当を再現
----------------------------------------------- */
.page_ttl {
  margin-top: 60px;
}
/* <search> を未対応のブラウザでもブロック要素として扱う */
search {
  display: block;
}

.docs_search {
  margin-bottom: 30px;
}

.docs_search_body {
  border: 1px solid var(--docs-border);
}

.docs_search_row {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--docs-border);
}

.docs_search_row:first-child {
  border-top: 0;
}


.docs_search_head {
  flex: 0 0 30%;
  width: 30%;
  box-sizing: border-box;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.6;
  color: var(--docs-head-text);
  background-color: var(--docs-head-bg);
  border-right: 1px solid var(--docs-border);
  display: flex;
  align-items: center;
}

.docs_search_data {
  flex: 1 1 70%;
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 15px;
  font-size: 14px;
  line-height: 1.6;
  background-color: var(--docs-white);
  display: flex;
  align-items: center;
}


.docs_check_list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs_check_list li {
  display: flex;
  align-items: center;
  gap: 4px;
}

.docs_check_list label {
  cursor: pointer;
}

.docs_check_list input[type="checkbox"] {
  margin: 0;
  flex-shrink: 0;
}


.docs_input_text {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px 8px 36px; 
  font-size: 14px;
  border: 1px solid var(--docs-border);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M20 20l-4.8-4.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 10px center;
  background-size: 17px 17px;
}

.docs_input_text:focus {
  outline: none;
  border-color: var(--docs-head-text);
}

.docs_search_data input[type='text']{
  padding-left:35px;
}

.docs_search_submit {
  margin-top: 20px;
  text-align: center;
}

.docs_search_submit .btn,
.docs_limit .btn {
  cursor: pointer;
  transition: opacity 0.2s;
}

.docs_search_submit .btn:hover,
.docs_limit .btn:hover {
  opacity: 0.8;
}

/* -----------------------------------------------
   件数切替＋上部ページャ
   元: 一覧テーブル1行目に混ざっていたものを外に出した
----------------------------------------------- */
.docs_toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.docs_limit {
  display: flex;
  align-items: center;
  gap: 6px;
}

.docs_limit select {
  box-sizing: border-box;
  width: 150px;
  height: 40px;
  padding: 5px 8px;
  font-size: 14px;
  line-height: 1.8;
}

/* -----------------------------------------------
   一覧テーブル
----------------------------------------------- */
/* SPでは横スクロールさせる。表の形はPCのまま維持 */
.docs_table_wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;              /* Firefox */
  scrollbar-color: #bbb #eee;   /* Firefox（つまみ色 / 溝色） */
}

.docs_table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  color: var(--docs-text);
}

.docs_table th,
.docs_table td {
  border: 1px solid var(--docs-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  word-break: break-all;
}

.docs_table thead th {
  text-align: center;
  background-color: var(--docs-head-bg);
  color: var(--docs-head-text);
  font-weight: bold;
}

/* 列幅 */
.docs_col_title { width: 71%; }
.docs_col_no    { width: 15%; min-width: 95px; }
.docs_col_lang  { width: 7%;  min-width: 78px; }
.docs_col_dl    { width: 7%;  min-width: 50px; }

.docs_table .docs_cell_lang,
.docs_table .docs_cell_dl {
  text-align: center;
}

/* -----------------------------------------------
   言語ラベル（日 / En）
----------------------------------------------- */
.docs_lang {
  font-size: 14px;
  line-height: 1.6;
}

/* -----------------------------------------------
   PDFダウンロードアイコン
   img/common/ico_pdf_01.svg を使用
----------------------------------------------- */
.docs_dl {
  display: inline-block;
  width: 24px;
  height: 30px; /* SVGの比率 24:30 に合わせる */
  vertical-align: middle;
  background-image: url(../img/common/ico_pdf_01.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: opacity 0.2s;
}

.docs_dl:hover {
  opacity: 0.6;
}

/* PDF未登録の行 */
.docs_nofile {
  color: #999;
  font-size: 14px;
}

/* -----------------------------------------------
   検索結果0件
----------------------------------------------- */
.docs_empty {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  border: 1px solid var(--docs-border);
  background-color: #f9f9f9;
}

/* 並び替えリンク。▲▼はCSSで付ける（元はテキストに直書きだった）
   デフォルト（ソート指定なし）は昇順の ▲ を表示 */
.docs_sort {
  text-decoration: none;
}

.docs_sort:hover {
  text-decoration: underline;
}

.docs_sort.is_asc::after  { content: " ▲"; }
.docs_sort.is_desc::after { content: " ▼"; }

/* 一覧下の区切り帯（元: height:10 の空行） */
.docs_result .docs_pager_btm {
  border-top: 10px solid var(--docs-divider-bg);
  padding-top: 10px;
}
.docs_result {
  scroll-margin-top: 100px; /* ヘッダーが固定表示の場合に隠れないようにする余白。 */
}
/* -----------------------------------------------
   ページャ
   元: <table class="smp-pager"> → nav + ul に置換
----------------------------------------------- */
.docs_pager ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs_pager a,
.docs_pager span {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* 枠線を含めて40pxにする */
  height: 40px;
  min-width: 28px;
  padding: 0 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  background-color: #f7f7f7;
  text-decoration: none;
}

.docs_pager a {
  border: 1px solid var(--docs-pager-border);
}

.docs_pager a:hover {
  background-color: var(--docs-head-bg);
}

.docs_pager .is_current {
  font-weight: bold;
  background-color: transparent;
}

.docs_pager .docs_pager_space {
  border: 0;
  min-width: auto;
  padding: 0 4px;
  background-color: transparent;
}

/* -----------------------------------------------
   スクリーンリーダー用（見た目上は非表示）
----------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------
   SP（768px以下）
   ※ 元のHTMLはSP対応なし（PC幅固定）。新規追加分
----------------------------------------------- */
@media screen and (max-width: 768px) {

  .docs_head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .docs_search_head {
    flex: 0 0 30%;
    width: 30%;
    padding: 10px;
    font-size: 13px;
  }

  .docs_search_data {
    padding: 10px;
    font-size: 13px;
  }

  .docs_check_list {
    flex-direction: column;
    gap: 10px;
  }

  .docs_check_list li {
    align-items: flex-start;
  }

  .docs_check_list input[type="checkbox"] {
    margin-top: 3px;
  }
  .docs_table {
    min-width: 0;
    table-layout: fixed;
  }

  .docs_table th,
  .docs_table td {
    box-sizing: border-box;      /* ← 追加分 */
    padding: 8px 6px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .docs_col_title { width: auto; }
  .docs_col_no    { width: 24%; min-width: 0; }
  .docs_col_lang  { width: 60px; min-width: 0; }
  .docs_col_dl    { width: 48px; min-width: 0; }

  .docs_table th,
  .docs_table td,
  .docs_lang {
    font-size: 13px;
  }

  .docs_toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .docs_pager ul {
    justify-content: flex-start;
  }
}