/*
 * サステナブルファイナンスリスト（テンプレート 52・Tailwind のページ用）2026-11
 * 置き場：assets/plugins/dnvgl/css/sus_finance_list.css（ページ 797・798 の頭の <link> で読む）
 * スニペット dgSustainableFinanceListT52 の出力（.dg-susfin の中）と、ページの上の画像（.dg-susfin-hero）・更新情報（.dg-susfin-news）にだけ効く。
 * 並び・余白・文字の大きさは、なるべくマークアップの Tailwind のクラスで書き、ここには Tailwind で書きにくいもの（切り替えの状態、表、カード、ページ送り、入力欄）を置く。
 */

/* ---------- ページの上の画像 ---------- */
.dg-susfin-hero {
  position: relative;
  overflow: hidden;
  background: #0c1a2c;
}
.dg-susfin-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.dg-susfin-hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.42) 35%, rgba(0, 0, 0, 0.08) 65%, transparent 80%),
    linear-gradient(180deg, rgba(10, 16, 28, 0.08) 0%, rgba(10, 16, 28, 0.45) 100%);
}
.dg-susfin-hero-body {
  position: relative;
  z-index: 2;
}

/* ---------- 更新情報 ---------- */
.dg-susfin-news a:hover .dg-susfin-news-text {
  text-decoration: underline;
}

/* ---------- 全体 ---------- */
.dg-susfin {
  color: #1f2937;
  font-size: 14px;
  line-height: 1.6;
}
.dg-susfin a {
  color: #14532d;
}
.dg-susfin-table b,
.dg-susfin-card b {
  color: #c2410c;
}

/* ロゴの一覧と詳しい一覧の切り替え（ページ送りの2つも、同じクラスで切り替わる） */
.dg-susfin[data-view="grid"] .listview-block,
.dg-susfin[data-view="list"] .gridview-block {
  display: none;
}

/* ---------- 検索の欄 ---------- */
.dg-susfin-input {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  line-height: 1.4;
}
.dg-susfin-input:focus {
  outline: 2px solid #15803d;
  outline-offset: 1px;
  border-color: #15803d;
}
.dg-susfin input[type="checkbox"],
.dg-susfin input[type="radio"] {
  accent-color: #14532d;
  width: 1rem;
  height: 1rem;
}

/* 対象種別のボタン */
.dg-susfin-kind {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-height: 6.5rem;
  padding: 0.75rem 0.25rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.dg-susfin-kind img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
@media (max-width: 639px) {
  /* スマートフォンの幅では、2列のボタンを低くして、縦に長くなりすぎないようにする */
  .dg-susfin-kind {
    min-height: 4.75rem;
    padding: 0.5rem 0.25rem;
    gap: 0.25rem;
    font-size: 11px;
  }
  .dg-susfin-kind img {
    width: 2.25rem;
    height: 2.25rem;
  }
}
.dg-susfin-kind:hover {
  border-color: #15803d;
}
.dg-susfin-kind:focus-visible,
.dg-susfin-view:focus-visible {
  outline: 2px solid #15803d;
  outline-offset: 2px;
}
.dg-susfin-kind.is-on {
  background: #14532d;
  border-color: #14532d;
  color: #fff;
}
.dg-susfin-kind.is-on img {
  filter: invert(1);
}

.dg-susfin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background: #14532d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s;
}
.dg-susfin-submit:hover {
  background: #15803d;
}

/* 表示の切り替えのボタン */
.dg-susfin-view {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.25rem;
  background: #fff;
  cursor: pointer;
}
.dg-susfin-view + .dg-susfin-view {
  border-left: 1px solid #d1d5db;
}
.dg-susfin-view img {
  width: 1.25rem;
  height: 1.25rem;
}
.dg-susfin-view.is-on {
  background: #14532d;
}
.dg-susfin-view.is-on img {
  filter: invert(1);
}

/* ---------- ページ送り（クラスの paginationrendar() が出す HTML） ---------- */
.dg-susfin .paginate {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin: 1.5rem 0;
  color: #6b7280;
  font-size: 14px;
}
.dg-susfin .paginate .ditto_page,
.dg-susfin .paginate .ditto_currentpage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  text-decoration: none;
}
.dg-susfin .paginate .ditto_page {
  background: #fff;
  color: #374151;
}
.dg-susfin .paginate a.ditto_page:hover {
  border-color: #15803d;
  color: #14532d;
}
.dg-susfin .paginate .ditto_currentpage {
  background: #14532d;
  border-color: #14532d;
  color: #fff;
  font-weight: 700;
}

/* ---------- 詳しい一覧（表） ---------- */
.dg-susfin-tablewrap {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}
.dg-susfin-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 13px;
}
.dg-susfin-table th {
  padding: 0.5rem 0.375rem;
  border: 1px solid #1e3a5f;
  background: #0f204b;
  color: #fff;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.dg-susfin-table th img {
  display: inline-block;
  width: 1.75rem;
  filter: invert(1);
}
.dg-susfin-table th.is-sortkey {
  background: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.dg-susfin-table td {
  padding: 0.375rem;
  border: 1px solid #e5e7eb;
  vertical-align: middle;
  line-height: 1.4;
}
.dg-susfin-table tbody tr:nth-child(even) td {
  background: #f9fafb;
}
.dg-susfin-table tbody tr:hover td {
  background: #f0fdf4;
}
.dg-susfin-table td.is-asc {
  background: #eff6ff !important;
}
.dg-susfin-table td.is-desc {
  background: #fef2f2 !important;
}
.dg-susfin-table .sus-no {
  width: 2.5rem;
  color: #6b7280;
  text-align: right;
}
.dg-susfin-table .sus-date {
  width: 4.5rem;
  white-space: nowrap;
  text-align: center;
}
.dg-susfin-table .originator {
  min-width: 14rem;
}
.dg-susfin-table .originator-j {
  font-weight: 700;
}
.dg-susfin-table .sector {
  min-width: 6.5rem;
}
.dg-susfin-table .evalkind {
  width: 4rem;
  text-align: center;
}
.dg-susfin-table .evalkind img,
.dg-susfin-table .framework img {
  display: inline-block;
  width: 1.25rem;
}
.dg-susfin-table .financekind {
  width: 5rem;
}
.dg-susfin-table .framework {
  width: 4rem;
  text-align: center;
}
.dg-susfin-table .mission {
  min-width: 12rem;
}
.dg-susfin-table .reportkind {
  min-width: 12rem;
}
.dg-susfin-table .report {
  width: 2.5rem;
  text-align: center;
}
.dg-susfin-pdf img {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

/* ---------- ロゴの一覧（カード） ---------- */
.dg-susfin-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .dg-susfin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .dg-susfin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .dg-susfin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.dg-susfin-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.dg-susfin-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: #fff;
}
.dg-susfin-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.dg-susfin-nophoto {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
  border: 1px dashed #d1d5db;
  border-radius: 0.5rem;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
}
/* ロゴがあるときは会社の名前の枠を隠す（ロゴが読めずに消えたら出る） */
.dg-susfin-logo img ~ .dg-susfin-nophoto {
  display: none;
}
.dg-susfin-nopdf {
  display: inline-block;
  width: 1.25rem;
  color: #d1d5db;
  text-align: center;
}
.dg-susfin-note {
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  text-align: right;
}
.dg-susfin-sector {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  background: #e5e7eb;
  color: #374151;
  font-size: 11px;
  font-weight: 700;
}
.dg-susfin-icons img {
  display: inline-block;
  width: 1.25rem;
}
.dg-susfin-icons img.checkicon {
  width: 1rem;
}
.dg-susfin-originator {
  margin: 0;
  line-height: 1.35;
}
.dg-susfin-originator .originator-j {
  display: block;
  font-size: 15px;
  font-weight: 700;
}
.dg-susfin-originator .originator-e {
  display: block;
  margin-top: 0.125rem;
  color: #6b7280;
  font-size: 11px;
  font-weight: 400;
}
.dg-susfin-facts {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  font-size: 13px;
}
.dg-susfin-facts dt {
  color: #6b7280;
  font-size: 11px;
}
.dg-susfin-facts dd {
  margin: 0;
  font-weight: 700;
}
.dg-susfin-reports {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
  font-size: 12px;
}
.dg-susfin-reports-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.dg-susfin-reports-row .label {
  color: #6b7280;
}
.dg-susfin-reports-row .links {
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
}
.dg-susfin-reports-row .links > span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  width: 3rem;
}

/* ---------- jQuery UI（テンプレート 52 の基本の形の上で、見た目をそろえる） ---------- */
.ui-datepicker {
  z-index: 50 !important;
  font-size: 13px;
}
.ui-tooltip {
  max-width: 24rem;
  font-size: 13px;
  line-height: 1.5;
}
