:root {
  --table-fz: 14px;
  --table-height: 600px;
  --left-th-width: auto;
  --thead-th-width: 65px;
  --table-header-color: #f2f6db;
  --table-body-color: #fff;
  --table-border-width: 1px;
  --table-border-color: #bebebe;
  --row-focus-color: #e6f0db;
  --col-focus-color: #e6f0db;
}
.wm_v {
  writing-mode: vertical-rl;
  -webkit-writing-mode: vertical-rl;
  text-orientation: upright;
  -webkit-text-orientation: upright;
/* iOS Safari対策 */
  display: inline-block;
  min-height: 30px;
}
.for-ios-fix {
  display: grid;
  align-items: center;
  justify-items: center;
  place-items: center;
}
.year_selector {
  --base-color: #f2f6db;
  --active-color: #a3c14e;
  width: 100%;
}
.year_selector ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.year_selector ul > li > a {
  display: block;
  padding: 0.4em 0.8em;
  background-color: var(--base-color);
  color: #333;
}
.year_selector ul > li > a:hover,
.year_selector ul > li > a.is_active {
  background-color: var(--active-color);
  font-weight: 700;
}
.year_selector ul > li > a.is_active {
  pointer-events: none;
}
.sort_table_wrapper {
  scrollbar-gutter: stable;
  height: 600px;
  height: var(--table-height, 500px);
}
.sort_table {
  border-collapse: collapse;
  border-spacing: 0;
  border: solid 1px #bebebe;
  border: solid var(--table-border-width, 1px) var(--table-border-color, #bebebe);
  border-left: none;
  border-top: none;
  font-size: 14px;
  font-size: var(--table-fz, 14px);
}
.sort_table th,
.sort_table td {
  padding: 5px 8px;
  position: relative;
  white-space: nowrap;
}
.sort_table th.is_focus,
.sort_table td.is_focus {
  background-color: #e6f0db;
  background-color: var(--col-focus-color, #c8d401);
}
.sort_table thead > tr > :first-child,
.sort_table tbody > tr > :first-child {
  width: auto;
  width: var(--left-th-width, 100px);
  min-width: auto;
  min-width: var(--left-th-width, 100px);
  max-width: auto;
  max-width: var(--left-th-width, 100px);
}
.sort_table thead > tr:first-child,
.sort_table thead > tr > :first-child {
  position: sticky;
  top: 0;
  left: 0;
  background-color: #f2f6db;
  background-color: var(--table-header-color, #f2f6db);
  z-index: 2;
}
.sort_table thead > tr > th:not(:first-child) {
  width: 65px;
  width: var(--thead-th-width, 60px);
  min-width: 65px;
  min-width: var(--thead-th-width, 60px);
  max-width: 65px;
  max-width: var(--thead-th-width, 60px);
  line-height: 1.2;
}
.sort_table thead > tr > th::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: solid 1px #bebebe;
  border: solid var(--table-border-width, 1px) var(--table-border-color, #bebebe);
  border-left: none;
}
.sort_table thead > tr > th:first-of-type::before {
  border-left: solid 1px #bebebe;
  border-left: solid var(--table-border-width, 1px) var(--table-border-color, #bebebe);
}
.sort_table tbody tr:hover th,
.sort_table tbody tr:hover td {
  background-color: #e6f0db;
  background-color: var(--row-focus-color, #fdd401);
}
.sort_table tbody th,
.sort_table tbody td {
  border: solid 1px #bebebe;
  border: solid var(--table-border-width, 1px) var(--table-border-color, #bebebe);
  border-left: none;
  border-bottom: none;
}
.sort_table tbody th {
  text-align: left;
}
.sort_table tbody td {
  text-align: right;
  background-color: #fff;
  background-color: var(--table-body-color, #fff);
}
.sort_table tbody tr:first-of-type > th,
.sort_table tbody tr:first-of-type > td {
  border-top: none;
}
.sort_table tbody > tr > :first-child {
  position: sticky;
  left: 0;
  background-color: #f2f6db;
  background-color: var(--table-header-color, #f2f6db);
  border-right: none;
  z-index: 1;
}
.sort_table tbody > tr > :first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: solid 1px #bebebe;
  border: solid var(--table-border-width, 1px) var(--table-border-color, #bebebe);
  border-top: none;
  border-bottom: none;
}
.sort_table tbody > tr > :first-child i {
  transform: rotate(-90deg);
}
.sort_table_wrapper .simplebar-scrollbar::before {
  background-color: #333;
}
.sort_table_wrapper .simplebar-track.simplebar-horizontal,
.sort_table_wrapper .simplebar-track.simplebar-vertical {
  background-color: #ededed;
}
.sort_table_wrapper .simplebar-content-wrapper {
  border-right: solid 11px transparent;
  border-bottom: solid 11px transparent;
  overflow: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.bl_modal_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(128,128,128,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.bl_modal_overlay.js_show {
  opacity: 1;
  visibility: visible;
}
.bl_modal_content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(-50px);
  transition: transform 0.2s ease;
}
.bl_modal_overlay.js_show .bl_modal_content {
  transform: translateY(0);
}
.bl_modal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e0e0e0;
}
.bl_modal_header > .el_close_btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.bl_modal_header > .el_close_btnhover {
  background-color: #f0f0f0;
  color: #333;
}
.bl_modal_body {
  padding: 20px 24px 24px;
}
body.js_modal_open {
  overflow: hidden;
}
.contents_btn_link.is_invert a {
  background-color: #00418f;
  color: #fff;
}
.contents_btn_link.is_invert a::after {
  color: #fff;
}
.contents_btn_link.is_invert a:hover {
  background-color: #fff;
  color: #00418f;
}
.contents_btn_link.is_invert a:hover::after {
  color: #00418f;
}
