/*@import url("css/ress.min.css");*/
@charset "UTF-8";

* {
  font-size: 100%;
  list-style-type: none;
  padding: 0;
  margin: 0;
  border-collapse: collapse;
  vertical-align: bottom;
  box-sizing: border-box;
}

::-moz-selection {
  background-color: #3367d1;
  /* 1 */
  color: #fff;
  /* 1 */
  text-shadow: none;
}

::selection {
  background-color: #3367d1;
  /* 1 */
  color: #fff;
  /* 1 */
  text-shadow: none;
}

a {
  color: #ef8484;
  text-decoration: none;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  color: #e85656;
  text-decoration: none;
}

a:focus {
  outline: none;
}

img {
  border-style: none;
  width: 100%;
}

a img {
      border-width: 0px;
      border-style: none;
      border-color: #fff;
      background: transparent;
}

.select2-container--default {
    min-width: 180px;
}

.select_date+.select2-container--default {
    min-width: 70px;
}

.select2-container .select2-selection--single {
    height: 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 2rem;
}

html,body {
  height: 100%;
}

body {
  color: #363636;
  font-family: "Nunito",sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  font-size: 14px;
  line-height: 1.5;
}

input, select, textarea {
  font-family: "Nunito",sans-serif;
  line-height: 2;
}

.placeholder_txt {
    font-size: .8rem;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
select,
textarea,
.select2-container--default .select2-selection--single {
    color: #4a4a4a;
    border: solid 1px #dbdbdb;
    width: 180px;
}

input[type="text"].input_field_large,
input[type="email"].input_field_large,
input[type="password"].input_field_large,
input[type="tel"].input_field_large,
select.input_field_large,
textarea.input_field_large,
select.input_field_large+.select2-container--default .select2-selection--single {
    width: 240px;
}

.select_date+.select2-container--default .select2-selection--single {
    max-width: 70px;
}

textarea {
    width: 100%;
    min-height: 100px;
    resize: none;
    overflow: hidden;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
    padding: 0 .5rem;
}

input::placeholder {
    opacity: 0.5;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
span:focus-visible {
    outline: none;
    box-shadow: 0px 0px 3px 0px #76d3dc;
}

button:focus-visible {
    outline: none;
    box-shadow: 0px 0px 10px 0px #76d3dc;
}

.button:hover {
    outline: none;
    box-shadow: 0px 0px 10px 0px #76d3dc;
}

input[type="checkbox"] {
    display: none;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    padding: .25rem;
}

.checkbox__icon {
    content: '';
    border: 1px solid #d6d9e0;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 5px 0 0;
}

.checkbox__icon_mark {
    opacity: 0;
    color: #209e91;
}

input[type="checkbox"]:checked ~ .checkbox__icon {
    border: 1px solid #209e91;
    background-color: #fff;
}

input[type="checkbox"]:checked ~ .checkbox__icon .checkbox__icon_mark {
    opacity: 1;
}

input[type="radio"] {
    display: none;
}

.radio {
    display: inline-flex;
    align-items: center;
}

.radio__icon {
    content: '';
    border: 1px solid #d6d9e0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px 0 0;
}

.radio__icon_mark {
    opacity: 0;
    content: '';
    border: 1px solid #209e91;
    background-color: #209e91;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    display: inline-block;
    user-select: none;
}

input[type="radio"]:checked ~ .radio__icon {
    border: 1px solid #209e91;
    background-color: #fff;
}

input[type="radio"]:checked ~ .radio__icon .radio__icon_mark {
    opacity: 1;
}

input[type="file"] {
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.button {
    background-color: #fff;
    border: solid 1px #d1d5db;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    text-align: center;
    white-space: nowrap;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.4;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.button.is_primary {
    background-color: #0e7490;
    border-color: #0e7490;
    color: #fff;
}

.button.is_primary:hover {
    background-color: #0c6a84;
    border-color: #0c6a84;
}

.button.is_secondary {
    background-color: #e2e8f0;
    border-color: #d5dce6;
    color: #334155;
}

.button.is_secondary:hover {
    background-color: #dbe7f3;
}

.button.is_info {
    background-color: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}

.button.is_info:hover {
    background-color: #bae6fd;
}

.button.is_warning {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}

.button.is_warning:hover {
    background-color: #fde68a;
}

.button.is_dark {
    background-color: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.button.is_dark:hover {
    background-color: #111827;
    border-color: #111827;
}

.button.is_alert {
    background-color: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.button.is_alert:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.button.is_upload {
    background-color: #0e7490;
    border: solid 1px #0e7490;
    color: #fff;
    position: relative;
}

.button:disabled {
    background: #e5e7eb !important;
    border-color: #d1d5db !important;
    box-shadow: none !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

.em {
  font-weight: bold;
  color: #c30;
  text-decoration: none;
}

.em--small {
    font-weight: normal;
    font-size: .8rem;
}

table {
  margin: 0 auto;
  width: 100%;
}

th, td {
  padding: 0.4em 0.6em;
  vertical-align: middle;
  border: 1px solid #d6d9e0;
  font-size: .8rem;
  text-align: left;
}

th {
  background: #f9f9f9;
}

td .txt {
  font-size: 85%;
  max-width: 40%;
}

.hide {
    display: none !important;
}

.mt10 {
    margin-top: 10px;
}

.mt20 {
    margin-top: 20px;
}

.mt30 {
    margin-top: 30px;
}

.mb10 {
    margin-bottom: 10px;
}

.mb20 {
    margin-bottom: 20px;
}

.mb30 {
    margin-bottom: 30px;
}

.ml10 {
    margin-left: 10px;
}

.ml20 {
    margin-left: 20px;
}

.ml30 {
    margin-left: 30px;
}

.mr10 {
    margin-right: 10px;
}

.mr20 {
    margin-right: 20px;
}

.mr30 {
    margin-right: 30px;
}

.w-fit {
    width: fit-content;
}

.h-fit {
    field-sizing: content;
}

.centering {
  text-align: center;
}

.righting {
  text-align: right;
}

.horizontal {
    display: flex;
    align-items: center;
}

.pagination {
    position: relative;
    overflow: hidden;
}

.pagination__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pagination__item {
    color: #363636;
    border: 1px solid #dbdbdb;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: #363636;
}

.pagination__item:not(.is_disabled):hover {
    background-color: #2e333d;
    border-color: rgba(0, 0, 0, 0);
    color: #fff;
}

.pagination__item:hover .pagination__link {
    color: #fff;
}

.pagination__item.is_current_page {
    background-color: #2e333d;
    border-color: rgba(0, 0, 0, 0);
    color: #fff;
}

.pagination__item.is_current_page .pagination__link {
    color: #fff;
}

.pagination__item.is_disabled {
    background: #e9e9e9
}

.pagination__item.is_disabled .pagination__link {
    color: #afafaf;
    pointer-events: none;
}

.pagination__item--three_point {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    color: #363636;
    border: none;
}

.header {
  background-color: #2d2d2d;
  border-bottom: 2px solid rgb(77 77 77);
  position: fixed;
  height: 50px;
  width: 100vw;
  z-index: 1;
  color: #4a4a4a;
  display: flex;
  justify-content: space-between;
  align-items: stretch;

}

.header__link {
  color: #fff;
}

.header__logo {
  display: inline;
  padding: 1em 0;
  margin: 0 0 0 1.5rem;
  font-weight: bold;
}

.header__lang {
    color: #666666;
    font-weight: bold;
    font-size:1.5rem;
}

.header__lang:hover {
    color: #9f9f9f;
}

.header__lang_icon_txt {
    font-size: 1rem;
}

.header__user {
    display: flex;
    align-items: center;
}

.header__user_name {
    color: #fff;
    font-weight: bold;
    padding: 0 1.5rem;
}

.header__logout {
  font-weight: bold;
  display: inline-block;
  margin: 0 36px 0 0;
  text-align: center;
}

.header__logout_link {
  display: flex;
  height: 100%;
  align-items: center;
  text-decoration: none;
}

.header__logout_icon {
  display: inline;
  font-size: 18px;
}

.menu {
  background: #2e323a;
  min-width: 200px;
  width: 200px;
  font-size: 12px;
  position: fixed;
  top: 50px;
  bottom: 0;
  overflow-y: scroll;

  -ms-overflow-style: none;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display:none;
}

.menu__list {
  position: relative;
}

.menu__item {
  margin: 0;
  display: block;
  color: #fff;
  line-height: 2;
  cursor: pointer;
}

.menu__t1 {
  padding: 1rem 1.5rem;
  position: relative;
}

.menu__t1:after {
    content: '+';
    color: #666f81;
    position: absolute;
    margin: 0 0 0 10px;
}

.menu__item.selected .menu__t1:after {
    color: #fff;
    content: '-';
}

.menu__t1_txt {
  color: #666f81;
  display: inline-block;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  vertical-align: middle;
}

.menu__icon {
  color: #666f81;
  display: inline-block;
  font-size: 24px;
  padding: 0 0.8em 0 0;
  vertical-align: middle;
}

.menu__sub_list {
  display: none;
  opacity: 0;
  transition: linear 0.3s;
}

.menu__item.selected .menu__sub_list {
  box-sizing: border-box;
  display: block;
  opacity: 1;
  width: 100%;
}

.menu__sub_item {
  display: block;
  background: #252931;
}

.menu__sub_item.selected {

}

.menu__t2 {
  color: #666f81;
  display: block;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  padding: 0.7rem 0.7rem 0.7rem 2.2rem;
}

.menu__sub_item.selected .menu__t2 {
    color: #fff;
}

.menu__t2:hover {
  text-decoration: none;
}

.menu__item.selected .menu__t1,
.menu__item.selected .menu__icon,
.menu__item.selected .menu__t1_txt,
.menu__t1:hover,
.menu__t1:hover:after,
.menu__t1:hover .menu__icon,
.menu__t1:hover .menu__t1_txt,
.menu__sub_item:hover .menu__t2 {
  color: #fff;
}

.footer {
  background: #fff;
  color: #4a4a4a;
  padding: .5rem;
  text-align: center;
  border-top: 1px solid rgba(24, 28, 33, .06);
  border-bottom: 1px solid rgba(24, 28, 33, .06);
  width: 100%;
  font-size: 12px;
  position: absolute;
  bottom: -2.5rem;
}

.overflow_hidden {
    overflow: hidden;
}

.scroll_x {
    overflow-x: scroll;
}
.page-main,
.page-contents {
  box-sizing: border-box;
}

.topicpath {
  border-bottom: 1px solid rgba(24, 28, 33, .08);
  color: #333;
}

.topicpath__h1 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.notice,
.alert {
  border-radius: 4px;
  line-height: 1.6;
}

.notice {
  background-color: #eff5fb;
  border: 1px solid #d4e8f7;
  color: #296fa8;
}

.alert {
  background-color: #feecf0;
  border: 1px solid #f7c9d2;
  color: #cc0f35;
}

.page-contents input[type="text"],
.page-contents input[type="email"],
.page-contents input[type="password"],
.page-contents input[type="tel"],
.page-contents input[type="number"],
.page-contents select,
.page-contents textarea {
  background: #fff;
  border-radius: 4px;
}

.page-contents .rowtable {
  border-collapse: collapse;
}

.page-contents .rowtable th {
  width: 180px;
  color: #333;
  font-weight: 700;
}

.login_page {
  min-height: 100vh;
  background: #f3f5f7;
}

.login_page .header {
  position: static;
  width: 100%;
}

.login_page .header__user {
  display: none;
}

.login_page .page-main {
  min-height: calc(100vh - 50px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 20px 48px;
}

.login_page .page-contents {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(24, 28, 33, .08);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgb(24 28 33 / 12%);
  overflow: hidden;
}

.login_page .topicpath {
  padding: 22px 24px;
}

.login_page .topicpath__h1 {
  font-size: 1.35rem;
}

.login_page .notice,
.login_page .alert {
  margin: 18px 24px 0;
  padding: 12px 14px;
}

.login_page form {
  padding: 22px 24px 26px;
}

.login_page .rowtable {
  margin: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
}

.login_page .rowtable th,
.login_page .rowtable td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.login_page .rowtable th {
  margin-bottom: 6px;
}

.login_page .rowtable input[type="text"],
.login_page .rowtable input[type="password"] {
  width: 100%;
  height: 42px;
}

.login_page .centering {
  margin-top: 18px;
}

.login_button {
  min-width: 160px;
}

.login_page .footer {
  display: none;
}

.admin_page .page-main {
  min-height: calc(100vh - 50px);
  padding: 74px 24px 48px;
}

.admin_page .page-contents {
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(24, 28, 33, .08);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgb(24 28 33 / 8%);
  overflow: hidden;
  /* 左右余白と下余白はpaddingで管理（margin-rightはwidth:100%テーブルに効かないため） */
  padding: 0 24px 24px;
}

.admin_page .topicpath {
  /* 左右余白は.page-contentsのpaddingで担保するため左右0 */
  padding: 10px 0;
  border-bottom: none;
}

/* topicpath直後の要素は上に余白を設けてタイトルとコンテンツを分離 */
.admin_page .page-contents .topicpath + * {
  margin-top: 20px;
}
/* 非topicpath同士の隣接要素はやや狭い間隔 */
.admin_page .page-contents > *:not(.topicpath) + *:not(.topicpath) {
  margin-top: 16px;
}

.admin_page .footer {
  position: static;
  margin-top: 24px;
}

@media screen and (max-width: 640px) {
  .header__logo {
    margin-left: 1rem;
  }

  .login_page .page-main,
  .admin_page .page-main {
    padding-left: 14px;
    padding-right: 14px;
  }
}
.menu__item--single .menu__t1:after {
  content: none;
}

.menu__t1_link {
  display: block;
}

.has_side_menu .page-main {
  margin-left: 200px;
}

.has_side_menu .footer {
  margin-left: 200px;
  width: calc(100% - 200px);
}

@media screen and (max-width: 640px) {
  .has_side_menu .menu {
    display: none;
  }

  .has_side_menu .page-main,
  .has_side_menu .footer {
    margin-left: 0;
    width: 100%;
  }
}

/* ステータスバッジ */
.badge {
  display: inline-block;
  padding: .2em .6em;
  font-size: .75rem;
  font-weight: bold;
  border-radius: 3px;
  white-space: nowrap;
}
.badge--green {
  background: #d4edda;
  color: #155724;
}
.badge--gray {
  background: #e2e3e5;
  color: #6c757d;
}
.badge--blue {
  background: #eff6ff;
  color: #1d4ed8;
}
.badge--amber {
  background: #fffbeb;
  color: #b45309;
}
.badge--red {
  background: #fef2f2;
  color: #dc2626;
}

/* ============================================================
   UI改善: テーブル・ボタン色・リンク
   ============================================================ */

/* テーブル: セル余白 */
.page-contents table th,
.page-contents table td {
  padding: 10px 14px;
}

/* 一覧テーブル: ヘッダ色・ストライプ・ホバー */
.page-contents .listtable thead th {
  background: #fafafa;
  color: #4b5563;
}
.page-contents .listtable tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}
.page-contents .listtable tbody tr:hover {
  background: #f3f9ff;
}

/* お知らせ・エラーメッセージ内側余白（管理画面） */
.admin_page .page-contents .notice,
.admin_page .page-contents .alert {
  padding: 12px 14px;
}

/* リンク色 */
.page-contents a {
  color: #0e7490;
}
.page-contents a:hover {
  color: #0c6a84;
}

/* ============================================================
   汎用ユーティリティ（テンプレートより復元）
   ============================================================ */

/* clearfix */
.cfix {
  display: block;
}

.cfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* 新規登録行ハイライト */
.new_item_form {
    background-color: #fff7bf !important;
}

/* フォームグループ */
.input_group {
    padding: 0 0 .75rem 0;
    border-bottom: 1px solid rgba(24, 28, 33, .06);
}

.input_group:not(:last-child) {
  margin-bottom: .75rem;
}

.label {
    display: block;
    padding: 0 1rem;
}

.input {
    display: block;
    padding: 0 1rem;
}

.input_group.input_group--horizontal {
  display: grid;
  grid-template-columns: calc(100% / 12 * 2) 1fr;
}

.input_group.input_group--horizontal .label {
    display: inline-flex;
    justify-content: end;
    align-items: center;
}

.input_group.input_group--horizontal .input {
    flex-basis: min-content;
    flex-grow: 1;
}

/* リスト */
.list--align_left {
  margin-inline: auto;
  max-inline-size: max-content;
}

.list_item:nth-child(n+2) {
    margin-top: 1rem;
}

/* div テーブル */
.d_table {
    display: table;
    width: 100%;
}

.d_tr {
    display: table-row;
}

.d_table.stripe .d_tr:nth-child(even) {
  background-color: #fcfcfc;
}

.d_th,
.d_td {
  padding: 0.4em 0.6em;
  vertical-align: middle;
  border: 1px solid #d6d9e0;
  font-size: .8rem;
  text-align: left;
  display: table-cell;
}

.d_th {
  background: #f9f9f9;
}

/* 表示切り替え */
.collapse:not(.show) {
    display: none !important;
}

/* テーブルストライプ */
table.stripe tr:nth-child(even) {
  background-color: #fcfcfc;
}

/* カラーユーティリティ */
.is_color_primary {
    color: #209e91;
}

.is_color_info {
    color: #57bdda;
}

.is_color_warning {
    color: #e5c649;
}

.is_color_alert {
    color: #e85656;
}

/* フレックスユーティリティ */
.flex {
    display: flex;
}

.inline_flex {
    display: inline-flex;
}

.align_items_start {
    align-items: start;
}

.align_items_center {
    align-items: center;
}

.align_items_end {
    align-items: end;
}

.justify_content_start {
    justify-content: start;
}

.justify_content_center {
    justify-content: center;
}

.justify_content_end {
    justify-content: end;
}

.justify_content_space_evenly {
  justify-content: space-evenly;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse;
}

.gap5 {
    gap: 5px;
}

.gap10 {
    gap: 10px;
}

.gap20 {
    gap: 20px;
}

/* ボタンツールバー */
.btn_toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.btn_toolbar a {
    display: inline-flex;
}

.btn_toolbar form {
    margin: 0;
}

.table_actions_heading,
.table_actions_cell {
    width: 1%;
    white-space: nowrap;
}

.table_actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.table_actions form {
    margin: 0;
}

.table_actions .button {
    min-height: 32px;
    padding: 6px 14px;
    font-size: .82rem;
}

/* グリッドシステム（12分割） */
.g-col-1  { display: inline-block; width: calc(100% / 12 * 1);  }
.g-col-2  { display: inline-block; width: calc(100% / 12 * 2);  }
.g-col-3  { display: inline-block; width: calc(100% / 12 * 3);  }
.g-col-4  { display: inline-block; width: calc(100% / 12 * 4);  }
.g-col-5  { display: inline-block; width: calc(100% / 12 * 5);  }
.g-col-6  { display: inline-block; width: calc(100% / 12 * 6);  }
.g-col-7  { display: inline-block; width: calc(100% / 12 * 7);  }
.g-col-8  { display: inline-block; width: calc(100% / 12 * 8);  }
.g-col-9  { display: inline-block; width: calc(100% / 12 * 9);  }
.g-col-10 { display: inline-block; width: calc(100% / 12 * 10); }
.g-col-11 { display: inline-block; width: calc(100% / 12 * 11); }
.g-col-12 { display: inline-block; width: 100%; }

/* パネル */
.panel {
  background-color: #fff;
  border: 1px solid rgba(24, 28, 33, .06);
  box-shadow: 0 2px 4px 0 rgb(129 129 129 / 25%);
  color: #666666;
}

.panel__header {
  font-weight: bold;
  padding: .8rem 1rem;
  font-size: 16px;
  border-bottom: 1px solid rgba(24, 28, 33, .06);
}

.panel__body {
  padding: .8rem 1rem;
}

/* ヒーローセクション */
.hero {
  background-color: #fff;
  border: 1px solid rgba(24, 28, 33, .06);
}

.hero__header {
  font-weight: bold;
  padding: .8rem 1rem;
  font-size: 16px;
  border-bottom: 1px solid rgba(24, 28, 33, .06);
}

.hero__body {
  padding: .8rem 1rem;
}

/* タブ */
.tabs {
    align-items: stretch;
    display: flex;
    font-size: 1rem;
    justify-content: space-between;
    overflow: hidden;
    overflow-x: auto;
    white-space: nowrap;
}

.tabs__ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    flex-shrink: 0;
}

.tabs__li {
    padding: 0.5em 1em;
    border-bottom: 1px solid #d6d9e0;
    cursor: pointer;
}

.tabs__li:hover {
    border-bottom: 1px solid #209e91;
}

.tabs__li.is_active {
    border-bottom: 1px solid #209e91;
}

.tabs_contents__li:not(.is_active) {
    display: none;
}

/* ============================================================
   アドホック分析 レイアウトブロック
   ============================================================ */
.layout-block {
    margin-bottom: 1.4rem;
}

.layout-block__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .6rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid #e0e4ec;
    color: #2d3748;
}

.layout-block__note {
    font-size: .82rem;
    color: #6b7280;
    margin: .4rem 0 0;
}

.layout-block__summary {
    font-size: .9rem;
    color: #374151;
    margin: 0 0 .8rem;
    line-height: 1.6;
}

.layout-block__subject {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 .5rem;
}

.layout-block__primary-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
}

.layout-block__primary-label {
    font-size: .8rem;
    color: #6b7280;
    margin-bottom: .3rem;
}

.layout-block__delta--up   { color: #16a34a; font-weight: 600; }
.layout-block__delta--down { color: #dc2626; font-weight: 600; }
.layout-block__delta--flat { color: #6b7280; }

.layout-block__watchpoints {
    margin: .6rem 0 0;
    padding-left: 1.2rem;
    font-size: .85rem;
    color: #374151;
    line-height: 1.7;
}

.layout-block-card {
    border: 1px solid #d1d5db;
    border-radius: .4rem;
    padding: .9rem 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.layout-block-card__title {
    font-size: .95rem;
    font-weight: 700;
    margin: 0 0 .4rem;
    color: #1a202c;
}

.layout-block-card__summary {
    font-size: .88rem;
    color: #374151;
    margin: 0 0 .6rem;
    line-height: 1.6;
}

/* 明細レポート エンティティ単位の区切り */
.layout-detail-section {
    border: 1px solid #d1d5db;
    border-radius: .4rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.6rem;
    background: #fafafa;
}

.layout-detail-section__heading {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #d1d5db;
    color: #1a202c;
}

/* ============================================================
   ダッシュボード
   ============================================================ */

/* 期間切替リンク群 */
.date-range-links {
    display: flex;
    justify-content: flex-end;
    gap: .4rem;
    margin: 0 0 1.2rem;
}

.page-contents .date-range-links__item {
    display: inline-block;
    padding: .3rem .8rem;
    border: 1px solid #aab;
    border-radius: .3rem;
    font-size: .85rem;
    color: #444;
    text-decoration: none;
}

.page-contents .date-range-links__item--active {
    background-color: #3367d1;
    border-color: #3367d1;
    color: #fff;
}


/* レポート反映遅延の注記行 */
.report-lag-note {
    font-size: .75rem;
    color: #aaa;
    margin: 0 0 .8rem;
}

/* 対象期間・比較期間の表示行 */
.date-range-period {
    text-align: right;
    font-size: .8rem;
    color: #888;
    margin: -.8rem 0 1.2rem;
}

/* KPIカード行 */
.dash-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 1.6rem;
}

.dash-kpi-card {
    flex: 1;
    min-width: 180px;
    padding: 1rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: .4rem;
    background: #fff;
}

.dash-kpi-label {
    font-size: .8rem;
    color: #6b7280;
    margin: 0 0 .3rem;
}

.dash-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 .2rem;
    text-align: center;
}

.dash-kpi-sub-label {
    font-size: .78rem;
    font-weight: 600;
    color: #374151;
    margin: .5rem 0 .1rem;
}

.dash-kpi-diff {
    font-size: .78rem;
    margin: 0 0 .15rem;
}

.dash-diff--plus { color: #1976d2; }
.dash-diff--minus { color: #d32f2f; }

/* 2カラム配置（ランキング + アラート）*/
.dash-columns {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.dash-section {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
}

.dash-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 .6rem;
}

.dash-section__title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

/* ランキングタブ */
.dash-tab-row {
    display: flex;
    gap: .3rem;
}

.page-contents .dash-tab-row__item {
    display: inline-block;
    padding: .25rem .7rem;
    border: 1px solid #aab;
    border-radius: .3rem;
    font-size: .82rem;
    color: #444;
    text-decoration: none;
}

.page-contents .dash-tab-row__item--active {
    background-color: #3367d1;
    border-color: #3367d1;
    color: #fff;
}

/* ---- クリエイティブカードグリッド ---- */
.creative-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.creative-card {
    width: 200px;
    border: 1px solid #d0d0d8;
    border-radius: .4rem;
    overflow: hidden;
    background: #fff;
}

.creative-card__thumb {
    width: 200px;
    height: 150px;
    background: #eff0f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creative-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creative-card__thumb--empty::before {
    content: "NO IMAGE";
    font-size: .75rem;
    color: #aaa;
}

.creative-card__body {
    padding: .6rem;
}

.creative-card__badge {
    display: inline-block;
    padding: .1rem .4rem;
    background: #e8eaf6;
    color: #3367d1;
    border-radius: .25rem;
    font-size: .72rem;
}

.creative-card__name {
    font-size: .82rem;
    margin: .3rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.creative-card__kpi {
    margin: .4rem 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .1rem .5rem;
    font-size: .78rem;
}

.creative-card__kpi dt {
    color: #888;
    margin: 0;
}

.creative-card__kpi dd {
    margin: 0;
    text-align: right;
    color: #333;
}

/* ============================================================
   デザイン刷新 2026-05
   ============================================================ */

/* 右寄せユーティリティ（テーブル数値列用） */
.ta_right {
    text-align: right;
}

/* badge--yellow: 警告バッジ（badge--amber と使い分け） */
.badge--yellow {
    background: #fef9c3;
    color: #854d0e;
}

/* ヘッダー: ダークネイビーに変更 */
.header {
    background-color: #0e1726;
    border-bottom: 1px solid #162035;
}

/* サイドバー: ダークネイビーに変更（ヘッダーと色統一） */
.menu {
    background: #0e1726;
}

.menu__sub_item {
    background: #091019;
}

/* 一覧テーブル: 縦ボーダーを除去して横線のみにする */
.page-contents .listtable th,
.page-contents .listtable td {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid #e5e7eb;
}

/* ヘッダー行: 下線だけ太く */
.page-contents .listtable thead th {
    border-bottom: 2px solid #e5e7eb;
    font-size: .78rem;
}

/* 最終行: 下線不要 */
.page-contents .listtable tbody tr:last-child td {
    border-bottom: none;
}

/* リンク色: 青系に変更 */
.page-contents a {
    color: #1976d2;
}
.page-contents a:hover {
    color: #1565c0;
}

/* 日付プリセットリンク: よりピル型に */
.page-contents .date-range-links__item {
    border-radius: 1rem;
    padding: .3rem 1rem;
}
.page-contents .date-range-links__item--active {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* ランキングタブ: よりピル型に */
.page-contents .dash-tab-row__item {
    border-radius: 1rem;
    padding: .25rem .9rem;
}
.page-contents .dash-tab-row__item--active {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* ダッシュボードセクション（ランキング・アラート）: 白カード化 */
.dash-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .4rem;
    padding: 1.2rem;
}

/* KPIラベルを中央寄せ */
.dash-kpi-label {
    text-align: center;
}

/* ページャー: シンプル版 < [page] / total > */
.pagination__body {
    justify-content: flex-end;
    gap: .3rem;
}

/* 現在ページ番号: 枠付きボックス */
.pagination__current {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .4rem;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: .85rem;
    color: #363636;
}

/* 「/ N」テキスト */
.pagination__sep {
    display: flex;
    align-items: center;
    padding: 0 .2rem;
    font-size: .85rem;
    color: #6b7280;
}

/* ============================================================
   UI微調整 2026-05
   既存クラスを活かし、画面構造は変えずに見た目だけを整える
   ============================================================ */

body {
  color: #1f2937;
  background-color: #eef2f6;
  font-family: "Nunito", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.admin_page .page-main {
  padding: 74px 24px 52px;
}

.admin_page .page-contents {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgb(15 23 42 / 8%);
  overflow-x: auto;
  padding: 0 24px 28px;
}

.admin_page .topicpath {
  padding: 18px 0 12px;
  border-bottom: 1px solid #edf0f4;
}

.topicpath__h1 {
  color: #111827;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.page-heading {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.required {
  color: #dc2626;
  font-weight: 700;
}

small {
  color: #6b7280;
  line-height: 1.6;
}

/* ヘッダー・サイドメニュー */
.header {
  background-color: #0b1427;
  border-bottom: 1px solid #18233a;
  box-shadow: 0 1px 2px rgb(15 23 42 / 24%);
}

.header__logo {
  letter-spacing: 0;
}

.header__link {
  color: #f8fafc;
}

.header__user_name {
  color: #dbe4ef;
}

.menu {
  background: #070e1f;
  border-right: 1px solid #18233a;
}

.menu__t1 {
  padding: .9rem 1.3rem;
}

.menu__t1_txt,
.menu__icon,
.menu__t1:after {
  color: #94a3b8;
}

.menu__item.selected > .menu__t1,
.menu__item.selected > .menu__t1_link,
.menu__t1:hover {
  background: #0c2f63;
  box-shadow: inset 3px 0 0 #4aa3b8;
}

.menu__item.selected .menu__t1_txt,
.menu__item.selected .menu__icon,
.menu__item.selected .menu__t1:after,
.menu__item.selected .menu__t1_link .menu__t1_txt,
.menu__t1:hover .menu__t1_txt,
.menu__t1:hover .menu__icon,
.menu__t1:hover:after {
  color: #fff;
}

.menu__sub_item {
  background: #082248;
}

.menu__sub_item.selected .menu__t2,
.menu__sub_item:hover .menu__t2 {
  background: #0c2f63;
  color: #fff;
}

/* フォーム */
.page-contents input[type="text"],
.page-contents input[type="email"],
.page-contents input[type="password"],
.page-contents input[type="tel"],
.page-contents input[type="search"],
.page-contents input[type="number"],
.page-contents input[type="date"],
.page-contents select,
.page-contents textarea,
.select2-container--default .select2-selection--single {
  min-height: 36px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #1f2937;
  font-size: .9rem;
}

.page-contents textarea {
  min-height: 120px;
  padding-top: .45rem;
  padding-bottom: .45rem;
}

.page-contents input[type="text"]:focus,
.page-contents input[type="email"]:focus,
.page-contents input[type="password"]:focus,
.page-contents input[type="tel"]:focus,
.page-contents input[type="search"]:focus,
.page-contents input[type="number"]:focus,
.page-contents input[type="date"]:focus,
.page-contents select:focus,
.page-contents textarea:focus {
  border-color: #4aa3b8;
  box-shadow: 0 0 0 3px rgb(14 116 144 / 14%);
}

.page-contents .rowtable {
  margin: 0;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.page-contents .rowtable th,
.page-contents .rowtable td {
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 14px;
}

.page-contents .rowtable tr:last-child th,
.page-contents .rowtable tr:last-child td {
  border-bottom: 0;
}

.page-contents .rowtable th {
  width: 190px;
  background: #f3f6fa;
  color: #374151;
  font-size: .84rem;
  font-weight: 700;
}

.page-contents .rowtable td {
  background: #fff;
}

/* テーブル */
.page-contents .listtable {
  min-width: 720px;
  margin: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-collapse: separate;
  border-radius: 8px;
  border-spacing: 0;
  overflow: hidden;
}

.page-contents .listtable th,
.page-contents .listtable td {
  border: 0;
  border-bottom: 1px solid #edf0f4;
  padding: 11px 14px;
  vertical-align: middle;
}

.page-contents .listtable thead th {
  background: #f8fafc;
  border-bottom: 1px solid #dbe1ea;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-contents .listtable tbody td {
  color: #334155;
  font-size: .82rem;
}

.page-contents .listtable tbody tr:nth-child(even) {
  background-color: #fbfdff;
}

.page-contents .listtable tbody tr:hover {
  background: #f1faff;
}

.page-contents .listtable tbody tr:last-child td {
  border-bottom: 0;
}

.ta_right,
.page-contents .listtable td[style*="text-align:right"] {
  font-variant-numeric: tabular-nums;
}

/* バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
  padding: .18rem .65rem;
}

.badge--green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.badge--gray {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.badge--blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.badge--amber,
.badge--yellow {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.badge--red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* 通知 */
.admin_page .page-contents .notice,
.admin_page .page-contents .alert {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 16px;
}

.admin_page .page-contents .notice {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.admin_page .page-contents .alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* 期間リンク・ダッシュボードタブ */
.date-range-links,
.dash-tab-row {
  gap: .45rem;
}

.page-contents .date-range-links__item,
.page-contents .dash-tab-row__item {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #475569;
  font-weight: 700;
}

.page-contents .date-range-links__item:hover,
.page-contents .dash-tab-row__item:hover {
  background: #f1faff;
  border-color: #4aa3b8;
  color: #0e7490;
}

.page-contents .date-range-links__item--active,
.page-contents .dash-tab-row__item--active {
  background-color: #0e7490;
  border-color: #0e7490;
  color: #fff;
}

.dash-kpi-card {
  border: 1px solid #e5e7eb;
  border-top: 4px solid #0e7490;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgb(15 23 42 / 7%);
  color: #334155;
}

.dash-kpi-card:nth-child(2) {
  border-top-color: #15803d;
}

.dash-kpi-card:nth-child(3) {
  border-top-color: #0369a1;
}

.dash-kpi-card:nth-child(4) {
  border-top-color: #b45309;
}

.dash-kpi-card:nth-child(5) {
  border-top-color: #dc2626;
}

.dash-kpi-label {
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
}

.dash-kpi-value {
  color: #111827;
  font-size: 1.65rem;
  line-height: 1.3;
}

.dash-kpi-sub-label,
.dash-kpi-diff {
  text-align: center;
}

.dash-diff--plus {
  color: #0369a1;
}

.dash-diff--minus {
  color: #dc2626;
}

.dash-section {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgb(15 23 42 / 6%);
}

.dash-section__title {
  color: #111827;
}

/* アドホック分析レポート */
.layout-block__title {
  border-bottom: 1px solid #dbe1ea;
  color: #111827;
}

.layout-block__summary,
.layout-block-card__summary {
  color: #334155;
}

.layout-block-card,
.layout-detail-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgb(15 23 42 / 6%);
}

.layout-detail-section {
  padding: 1.1rem 1.25rem;
}

.layout-detail-section__heading {
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
}

/* カードグリッドレイアウト（3列） */
.layout-block-cards--grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

/* カード優先度左ボーダー */
.layout-block-card--high   { border-left: 4px solid #dc2626; }
.layout-block-card--medium { border-left: 4px solid #d97706; }
.layout-block-card--low    { border-left: 4px solid #9ca3af; }

/* 順位丸印 */
.layout-rank-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: #374151;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  margin-right: .4rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.layout-rank-circle--1 { background: #b45309; }
.layout-rank-circle--2 { background: #6b7280; }
.layout-rank-circle--3 { background: #78350f; }

/* listtable 縞模様 */
.listtable tbody tr:nth-child(even) { background: #f8fafc; }

/* カード内チップ（nextStep / expectedEffect 等のメタ情報） */
.layout-chip {
  display: inline-block;
  padding: .2rem .6rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 2rem;
  font-size: .78rem;
  color: #374151;
  margin: .3rem .3rem 0 0;
}
.layout-chip--label {
  font-size: .72rem;
  color: #6b7280;
  margin-right: .2rem;
}

/* 横棒チャート */
.layout-bar-chart__item {
  display: flex;
  align-items: center;
  margin-bottom: .5rem;
  font-size: .85rem;
}
.layout-bar-chart__label {
  width: 13rem;
  min-width: 13rem;
  padding-right: .8rem;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.layout-bar-chart__bar-wrap {
  flex: 1;
  background: #e5e7eb;
  border-radius: .2rem;
  height: 1.1rem;
}
.layout-bar-chart__bar {
  height: 100%;
  border-radius: .2rem;
  background: #3b82f6;
  min-width: 2px;
}
.layout-bar-chart__bar--positive { background: #16a34a; }
.layout-bar-chart__bar--negative { background: #dc2626; }
.layout-bar-chart__value {
  min-width: 5rem;
  padding-left: .6rem;
  color: #374151;
  font-size: .82rem;
  text-align: right;
}

/* 比較ボックス（3列カテゴリ分類） */
.layout-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.layout-comparison-col {
  border: 1px solid #d1d5db;
  border-radius: .4rem;
  padding: .7rem .8rem;
}
.layout-comparison-col--good    { background: #f0fdf4; border-color: #86efac; }
.layout-comparison-col--warning { background: #fefce8; border-color: #fde047; }
.layout-comparison-col--alert   { background: #fef2f2; border-color: #fca5a5; }
.layout-comparison-col--neutral { background: #f8fafc; border-color: #d1d5db; }
.layout-comparison-col__label {
  font-size: .8rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 .4rem;
}
.layout-comparison-col__items {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .85rem;
  color: #1a202c;
  line-height: 1.7;
}

/* ---- 分析条件グリッドカード (analysisConditionSummary) ---- */
.layout-condition-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .4rem;
}
.layout-condition-item {
  flex: 1 1 9rem;
  min-width: 9rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: .5rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.layout-condition-item__label {
  font-size: .72em;
  color: #64748b;
  font-weight: bold;
  letter-spacing: .02em;
}
.layout-condition-item__value {
  font-size: .9em;
  font-weight: bold;
  color: #1e293b;
  line-height: 1.3;
}

/* ---- 棒グラフ 凡例・2系列 (barChart) ---- */
.layout-bar-chart__legend {
  display: flex;
  gap: 1rem;
  margin-bottom: .5rem;
  font-size: .8em;
  color: #475569;
}
.layout-bar-chart__legend-item {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.layout-bar-chart__legend-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 2px;
  display: inline-block;
}
.layout-bar-chart__legend-dot--primary   { background: #3b82f6; }
.layout-bar-chart__legend-dot--secondary { background: #cbd5e1; }
.layout-bar-chart__bar-wrap--secondary   { margin-top: .15rem; }
.layout-bar-chart__bar--secondary        { background: #cbd5e1; }

/* ---- topMoversList 2カラムカードグリッド ---- */
.layout-movers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.layout-movers-col__title {
  font-size: .85em;
  font-weight: bold;
  margin: 0 0 .5rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid currentColor;
}
.layout-movers-col__title--up   { color: #16a34a; }
.layout-movers-col__title--down { color: #dc2626; }
.layout-movers-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: .65rem .8rem;
  margin-bottom: .5rem;
}
.layout-movers-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .2rem;
}
.layout-movers-card__name {
  font-size: .82em;
  color: #334155;
  font-weight: bold;
  line-height: 1.3;
  flex: 1;
  margin-right: .5rem;
}
.layout-movers-card__delta {
  font-size: .82em;
  font-weight: bold;
  white-space: nowrap;
}
.layout-movers-card__metric {
  font-size: .72em;
  color: #64748b;
  margin: 0 0 .1rem;
}
.layout-movers-card__value {
  font-size: 1.1em;
  font-weight: bold;
  color: #1e293b;
  margin: 0 0 .2rem;
}
.layout-movers-card__reason {
  font-size: .78em;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* ---- rankingList 横行スタイル ---- */
.layout-ranking-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.layout-ranking-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: .55rem .75rem;
}
.layout-ranking-row__label {
  flex: 1;
  font-size: .88em;
  font-weight: bold;
  color: #1e293b;
}
.layout-ranking-row__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.layout-ranking-row__value {
  font-size: .95em;
  font-weight: bold;
  color: #1e293b;
}

/* ---- actionList リッチカード拡張 ---- */
.layout-action-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: .3rem;
}
.layout-action-card__context {
  font-size: .75em;
  color: #64748b;
  line-height: 1.4;
  flex: 1;
  margin-right: .5rem;
}
.layout-action-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}

/* ---- kpiSummarySection メトリクスカードグリッド ---- */
.layout-metric-cards {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}
.layout-metric-card {
  flex: 1 1 8rem;
  min-width: 8rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: .55rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.layout-metric-card__label {
  font-size: .72em;
  color: #64748b;
  font-weight: bold;
}
.layout-metric-card__value {
  font-size: 1.05em;
  font-weight: bold;
  color: #1e293b;
}
.layout-metric-card__note {
  font-size: .72em;
  color: #94a3b8;
}
.layout-metric-card__status {
  font-size: .75em;
  color: #64748b;
}

/* ---- comparisonBox リッチアイテム ---- */
.layout-comparison-item {
  padding: .4rem 0;
  border-top: 1px solid rgba(0,0,0,.07);
}
.layout-comparison-item:first-child { border-top: none; }
.layout-comparison-item__title {
  font-size: .88em;
  font-weight: bold;
  color: #1e293b;
  margin: 0 0 .1rem;
}
.layout-comparison-item__value {
  font-size: 1.05em;
  font-weight: bold;
  margin: 0 0 .1rem;
}
.layout-comparison-item__desc {
  font-size: .78em;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.creative-card {
  border-color: #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgb(15 23 42 / 6%);
}

.creative-card__thumb {
  background: #f1f5f9;
}

@media screen and (max-width: 1100px) {
  .dash-columns {
    flex-direction: column;
  }

  .dash-section {
    width: 100%;
  }
}

@media screen and (max-width: 640px) {
  .admin_page .page-contents {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-contents .rowtable th,
  .page-contents .rowtable td {
    display: block;
    width: 100%;
  }

  .page-contents .rowtable th {
    border-bottom: 0;
    padding-bottom: 4px;
  }

  .page-contents .rowtable td {
    padding-top: 4px;
  }
}

/* ログイン画面 */
.login_page {
  background: #f3f6fa;
}

.login_page .page-main {
  min-height: calc(100vh - 50px);
  padding: 84px 20px 48px;
}

.login_page .page-contents {
  width: min(400px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgb(15 23 42 / 10%);
  overflow: hidden;
}

.login_page .topicpath {
  padding: 24px 28px 18px;
  border-bottom: 1px solid #edf0f4;
}

.login_page .topicpath__h1 {
  color: #111827;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.login_page .notice,
.login_page .alert {
  margin: 20px 28px 0;
  border-radius: 6px;
  font-weight: 600;
  line-height: 1.6;
  padding: 12px 14px;
}

.login_page .notice {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.login_page .alert {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.login_page form {
  padding: 22px 28px 28px;
}

.login_page .page-contents .rowtable {
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-spacing: 0;
  overflow: visible;
}

.login_page .page-contents .rowtable tbody,
.login_page .page-contents .rowtable tr,
.login_page .page-contents .rowtable th,
.login_page .page-contents .rowtable td {
  display: block;
  width: 100%;
}

.login_page .page-contents .rowtable tr + tr {
  margin-top: 14px;
}

.login_page .page-contents .rowtable th,
.login_page .page-contents .rowtable td {
  background: transparent;
  border: 0;
  padding: 0;
}

.login_page .page-contents .rowtable th {
  color: #1f2937;
  font-size: .84rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.login_page .page-contents .rowtable input[type="text"],
.login_page .page-contents .rowtable input[type="password"] {
  width: 100%;
  height: 42px;
  min-height: 42px;
  background: #fff;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  color: #111827;
  font-size: .95rem;
  padding: 0 10px;
}

.login_page .centering {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.login_button {
  min-width: 160px;
  min-height: 38px;
}

/* ページネーション */
.pagination {
  margin: 16px 0;
  overflow: visible;
}

.pagination__body {
  justify-content: flex-end;
  gap: 6px;
}

.pagination__item {
  background: #fff;
  border: 1px solid #d8e1ec;
  border-radius: 6px;
  color: #334155;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pagination__link {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #334155;
  font-size: .78rem;
  line-height: 1;
}

.pagination__item:not(.is_disabled):hover {
  background: #0e7490;
  border-color: #0e7490;
  color: #fff;
}

.pagination__item:not(.is_disabled):hover .pagination__link {
  color: #fff;
}

.pagination__item.is_disabled {
  background: #f3f6fa;
  border-color: #e5e7eb;
  color: #a8b1bf;
}

.pagination__item.is_disabled .pagination__link,
.pagination__item.is_disabled:hover .pagination__link {
  color: #a8b1bf;
}

.pagination__current {
  min-width: 38px;
  height: 32px;
  background: #fff;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 5%);
  color: #0f172a;
  font-size: .78rem;
  font-weight: 700;
  padding: 0 10px;
}

.pagination__sep {
  height: 32px;
  padding: 0 2px;
  color: #64748b;
  font-size: .78rem;
}

/* 検索フォーム */
.search_form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 16px;
}

.search_form .search_table {
  display: block;
  flex: 1 1 520px;
  width: auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: 0;
}

.search_form .search_table tbody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, max-content));
  gap: 12px 18px;
  align-items: end;
}

.search_form .search_table tr,
.search_form .search_table th,
.search_form .search_table td {
  display: block;
  width: auto;
}

.search_form .search_table th,
.search_form .search_table td {
  background: transparent;
  border: 0;
  padding: 0;
}

.search_form .search_table th {
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.search_form .search_table td {
  color: #334155;
  white-space: nowrap;
}

.search_form .search_table input,
.search_form .search_table select {
  width: 180px;
  min-height: 36px;
}

.search_form .search_table .date_range {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.search_form .search_table .date_picker {
  width: 150px;
}

.date_range__sep {
  color: #64748b;
  line-height: 36px;
}

.flatpickr-calendar {
  z-index: 20;
}

.search_form .search_table .search_table__range_heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search_form .search_table .date-range-links--inline {
  justify-content: flex-start;
  margin: 0;
}

.search_form .btn_toolbar {
  align-self: flex-end;
  justify-content: flex-end;
  margin: 0 0 0 auto;
}

.search_form .button {
  min-height: 36px;
}

/* ===== ドロワー ===== */

/* ドロワーが開いているときのメインコンテンツ余白 */
body.has_drawer .page-main {
  margin-right: 520px;
}

/* ドロワー本体（画面右端に固定） */
.alert_drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 520px;
  height: 100vh;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  overflow-y: auto;
  z-index: 100;
  box-shadow: -4px 0 16px rgba(0, 0, 0, .07);
}

.alert_drawer__inner {
  padding: 20px 24px 32px;
}

/* ヘッダ: [バッジ＋タイトル＋サブタイトル] + [×] の横並び */
.alert_drawer__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.alert_drawer__head_main {
  flex: 1;
  min-width: 0;
}

.alert_drawer__head_row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.alert_drawer__title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* AIヘッドライン（タイトル直下のサブテキスト） */
.alert_drawer__subtitle {
  font-size: .82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.alert_drawer__close {
  font-size: 1.3rem;
  line-height: 1;
  color: #94a3b8;
  padding: 2px 4px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert_drawer__close:hover {
  color: #334155;
}

/* ボディ */
.alert_drawer__body {
  padding-top: 14px;
}

.alert_drawer__account {
  font-size: .8rem;
  color: #94a3b8;
  margin: 0 0 16px;
}

/* セクション */
.alert_drawer__section {
  margin-bottom: 20px;
}

.alert_drawer__section h3 {
  font-size: .78rem;
  color: #64748b;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.alert_drawer__section > p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-all;
}

/* トレンドチャート */
.alert_drawer__chart {
  max-height: 200px;
}

/* KPI カードグリッド（3列×2行） */
.alert_drawer__kpi_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.alert_drawer__kpi {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 12px;
}

.alert_drawer__kpi_label {
  font-size: .72rem;
  color: #94a3b8;
  font-weight: 500;
  margin: 0 0 4px;
}

.alert_drawer__kpi_value {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* 推奨アクションカードの値はオレンジ */
.alert_drawer__kpi_value--action {
  font-size: .85rem;
  color: #d97706;
}

/* メタ情報行（ステータス・分析日時） */
.alert_drawer__meta {
  font-size: .75rem;
  color: #94a3b8;
  margin: 0 0 16px;
}

/* アクションボタン行 */
.alert_drawer__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

/* 選択行のハイライト */
.listtable tbody tr.is_selected td {
  background: #fff8e1;
}

/* ===== ローディングオーバーレイ ===== */
.loading_overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
body.is_loading .loading_overlay {
  display: flex;
}
.loading_overlay__spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(99,102,241,.15);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: loading_overlay_spin .75s ease-in-out infinite;
}
@keyframes loading_overlay_spin {
  to { transform: rotate(360deg); }
}

/* ============================================================
   アドホック分析 priorityCountCard コンポーネント
   ============================================================ */
.priority-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .75rem;
  margin: .5rem 0;
}
.priority-count-card {
  border-radius: 6px;
  padding: .9rem 1rem .8rem;
  text-align: center;
  border: 1px solid transparent;
}
.priority-count-card__label {
  display: block;
  font-size: .78em;
  font-weight: bold;
  margin-bottom: .3rem;
  color: inherit;
  letter-spacing: .03em;
}
.priority-count-card__count {
  display: block;
  font-size: 2.2em;
  font-weight: bold;
  line-height: 1;
  margin-bottom: .25rem;
  font-variant-numeric: tabular-nums;
}
.priority-count-card__note {
  display: block;
  font-size: .76em;
  opacity: .8;
}
.priority-count-card--good {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}
.priority-count-card--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}
.priority-count-card--alert {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.priority-count-card--neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
