/* Memo */
/* decl: declaration(宣言) */
/* btn: button(ボタン) */
/* info: information(情報) */
/* hdr: header(ヘッダー) */

/* 全デバイス共通 */
:root{
  --head1-height: 0px;
  --head2-height: 0px;
  --head3-height: 0px;


}


/* ---------- 1段目 ---------- */
table thead tr.hdr_sort_row1 th {
  top: 0;
  z-index: 30;
}

/* ---------- 2段目 ---------- */
table thead tr.hdr_sort_row2 th {
  top: calc(var(--head1-height) + 0px); /* 微調整するなら +1px など */
  z-index: 29;
}

/* ---------- 3段目 ---------- */
table thead tr.hdr_sort_row3 th {
  top: calc(var(--head1-height) + var(--head2-height) + 0px);
  z-index: 28;
}

/* tbody が前面に出てヘッダーが潜る事故防止 */
table tbody td{
  position: relative;
  z-index: 1;
}







/* 検索件数=0件時の表示用 */
.decl_notfound {
  font-size: 1rem;
  text-align: left;
  color: #000000; 
  background-color: #FF8080;
}

.decl_nowrap {
  white-space: nowrap;
}



/* sort用ボタン表示 */
a.btn_sort {
  display: inline-block;
  font-size: 24px;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 10px;
  background-color: rgba(255,255,255,0.4);
  padding: 5px;
  margin: 0px;
  text-decoration: none;
}

/* 50音用ボタン表示 */
a.btn_50on {
  display: inline-block;
  font-size: 24px;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 20px;
  background-color: rgba(230,230,255,1);
  padding: 10px 5px 10px 5px;
  margin: 0px;
  text-decoration: none;
  min-width: 80%;
  text-align: center;

}


/* メニュー選択用ボタン表示 */
.btn_menu {
  display: flex;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 10px;
  padding: 5px;
  margin: 0px;
  text-decoration: none;
  text-align: center;
  width: 100%;
  height: 56px;                 /* 2行分として固定（必要なら） */
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  table-layout: fixed;

}

.info_menu {
  display: flex;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,.5);
  border-radius: 10px;
  padding: 5px;
  margin: 0px;
  text-decoration: none;
  text-align: left;
  width: 100%;
  height: 56px;                 /* 2行分として固定（必要なら） */
  box-sizing: border-box;
  align-items: center;
  justify-content: left;
  table-layout: fixed;

}

.hdr_dropdown {
  font-size: 1rem;
   color: #ffffff; 
  text-align: center;
  background-color: #A000A0;
}


.info_hdr_left {
  font-size: 1rem;
   color: #ffffff; 
  text-align: left;
  background-color: #A000A0;
}

.info_hdr_center {
  font-size: 1rem;
   color: #ffffff; 
  text-align: center;
  background-color: #A000A0;
}

.info_hdr_right {
  font-size: 1rem;
   color: #ffffff; 
  text-align: right;
  background-color: #A000A0;
}

.info_hdr_left_vtop {
  font-size: 1rem;
   color: #ffffff; 
  text-align: left;
  background-color: #A000A0;
  vertical-align: top;
}

.info_hdr_center_vtop {
  font-size: 1rem;
   color: #ffffff; 
  text-align: center;
  background-color: #A000A0;
  vertical-align: top;
}

.info_hdr_right_vtop {
  font-size: 1rem;
   color: #ffffff; 
  text-align: right;
  background-color: #A000A0;
  vertical-align: top;
}

.info_data_left {
  font-size: 1rem;
   color: #000000; 
  text-align: left;
  background-color: #ffffff;
}

.info_data_center {
  font-size: 1rem;
   color: #000000; 
  text-align: center;
  background-color: #ffffff;
}

.info_data_right {
  font-size: 1rem;
   color: #000000; 
  text-align: right;
  background-color: #ffffff;
}

.info_data_left_vtop {
  font-size: 1rem;
   color: #000000; 
  text-align: left;
  background-color: #ffffff;
  vertical-align: top;
}

.info_data_center_vtop {
  font-size: 1rem;
   color: #000000; 
  text-align: center;
  background-color: #ffffff;
  vertical-align: top;
}

.info_data_right_vtop {
  font-size: 1rem;
   color: #000000; 
  text-align: right;
  background-color: #ffffff;
  vertical-align: top;
}




.bgcolor_on {
  background-color: #EEEE00;
}

.bgcolor_off {
  background-color: #EDB8FF;
}

.bgcolor_none {
  background-color: #CCCCCC;
}

table.ctrl_menu td{
  width: 20%;              /* 5列なら20% */
  padding: 2px;              /* 必要なら */
  justify-content: center;
    text-align: center;

}

.title_index {
  width: 20%;              /* 5列なら20% */
  padding: 2px;              /* 必要なら */
  justify-content: center;
    text-align: center;

}




/* 文字強調表示 */
.char_bold {
  font-weight: bold;
  font-size: 1.2em;
}

table.ctrl_header_title {
  width: 100%;
  padding: 0px;

}

table.ctrl_header_title td {
  background-color: #A000A0;
  padding: 0px;
  text-align: center;
}

  table.ctrl_header_title p.title1,
  table.ctrl_header_title p.title2,
  table.ctrl_header_title p.title3,
  table.ctrl_header_title p.title4 {
    display: block;
    color: #FFFFFF;
    margin: 0px;
}

  table.ctrl_header_title p.title1 a {
    color: inherit;
    text-decoration: none;
}


table.ctrl_menu {
    width: 100%;              /* 常に最大の幅で表示 */
}


div.ctrl_full_scroll select,
div.ctrl_horizon_scroll select,
div.ctrl_none_scroll select {
    font-size: 16px;
    /* width: 100px; */
    /* padding: 0.6em 2.4em 0.6em 0.8em; */
    /*min-height: 44px; */
    border: 2px solid #808080;

}



/* 初期値はPC利用者向けに設定 */
/*  @media (min-width: 768px) {  */
  .ctrl_for_pc { display: block; }
  .ctrl_for_smt { display: none; }
  .ctrl_thead_for_pc { display: table-header-group; }
  .ctrl_thead_for_smt { display: none; }

  h1 {
    font-size: 2.0em;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
  }
  h2 {
    font-size: 1.5em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
  }
  h3 {
    font-size: 1.25em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
  }
  h4 {
    font-size: 1.0em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
  }
  h5 {
    font-size: 0.8em;
    margin-top: 0.16em;
    margin-bottom: 0.16em;
  }
  h6 {
    font-size: 0.6em;
    margin-top: 0.12em;
    margin-bottom: 0.12em;
  }

  div.ctrl_full_scroll {
    max-height: none;     /* ブラウザの表示領域の高さの70%に制限する */
    overflow: visible;       /* 必要時、上下左右にスクロールが表示される */
    max-width: 100%;      /* */
    margin-top: 10px;
    padding: 0px solid #e0e0e0;   /* divタグに適用される枠線 */
  }
  div.ctrl_horizon_scroll {
    max-height: none;     /* ブラウザの表示領域の高さの70%に制限する */
    overflow-x: auto;       /* 必要時、上下スクロールが表示される */
    max-width: 100%;
    margin-top: 10px;
    padding: 0px solid #e0e0e0;   /* divタグに適用される枠線 */
  }

  /* スクロールは不可とする範囲指定用 */
  div.ctrl_none_scroll {
    max-height: none;     /* ブラウザの表示領域の高さの70%に制限する */
    overflow: visible;       /* 溢れてもスクロールなし */
    max-width: 100%;
    margin-top: 10px;
    padding: 0px solid #e0e0e0;
  }

  div.ctrl_full_scroll table,
  div.ctrl_horizon_scroll table,
  div.ctrl_none_scroll table {
    border: 2px solid #808080;  /* table外枠の罫線指定 */
    padding: 0px;
    border-collapse: collapse;      /* collapse=境界線を開けない separate=境界線をあける */
    border-spacing: 0px;            /* <table cellspacing="xx">に相当、separateの時の指定値 */
  }

  div.ctrl_full_scroll th,
  div.ctrl_horizon_scroll th,
  div.ctrl_none_scroll th,
  div.ctrl_full_scroll td,
  div.ctrl_horizon_scroll td,
  div.ctrl_none_scroll td {
    border: 1px solid #d0d0d0;   /* セルの罫線指定 */
    padding: 5px;                   /* <table cellpadding="xx">に相当 */
  }

  table.ctrl_header_title p.title1 {
    font-size: 1.5em;
    margin-top: 15px;
  }

  table.ctrl_header_title p.title2 {
    font-size: 1.0em;
    margin-top: 5px;

  }

  table.ctrl_header_title p.title3 {
    font-size: 0.8em;
    margin-top: 0px;
  }

  table.ctrl_header_title p.title4 {
    font-size: 0.8em;
    margin-top: 5px;
  }





  span.btn_com {
    display: inline-block;
    /* max-width: 200px; */
    background-color: rgba(220,220,255,0.4);  /* ボタンの背景色 */
    border: 1px solid #c0c0c0;  /* 囲み線の太さ */
    margin: 0px, 0px, 0px, 0px;   /* 囲み線外側の余白 */
    border-radius: 5px;           /* 囲み線の角の丸み */
    padding: 2px;                 /* 文字と囲み線との空き具合 */

      }

  span.btn_len4 {
    min-width: 0px; 
  }
  span.btn_len6 {
    min-width: 0px; 
  }
  span.btn_len8 {
    min-width: 0px; 
  }
  span.btn_len99 {
    min-width: 80px; 
  }

/*  }  */

/* スマホ利用者の場合のみ、スマホ向けに設定を切り替え */
@media (max-width: 767px) {
  .ctrl_for_smt { display: block; }
  .ctrl_for_pc  { display: none; }
  .ctrl_thead_for_smt { display: table-header-group; }
  .ctrl_thead_for_pc { display: none; }

  h1 {
    font-size: 2.0em;
    margin-top: 0.4em;
    margin-bottom: 0.4em;
  }
  h2 {
    font-size: 1.5em;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
  }
  h3 {
    font-size: 1.25em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
  }
  h4 {
    font-size: 1.0em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
  }
  h5 {
    font-size: 0.8em;
    margin-top: 0.16em;
    margin-bottom: 0.16em;
  }
  h6 {
    font-size: 0.6em;
    margin-top: 0.12em;
    margin-bottom: 0.12em;
  }


  div.ctrl_full_scroll {
    max-height: 70vh;     /* ブラウザの表示領域の高さの70%に制限する */
    overflow: auto;       /* パディングボックスから溢れた場合の一般設定 */
    /* -webkit-overflow-scrolling: touch;     ←現在は指定不要 */
    max-width: 100%;
    margin-top: 10px;
    border: 0px solid #e0e0e0;
    display: block;
  }
  div.ctrl_horizon_scroll {
    max-height: 70vh;     /* ブラウザの表示領域の高さの70%に制限する */
    overflow: auto;       /* パディングボックスから溢れた場合の一般設定 */
    /* -webkit-overflow-scrolling: touch;     ←現在は指定不要 */
    max-width: 100%;
    margin-top: 10px;
    border: 0px solid #e0e0e0;
    outline: 0px solid #e0e0e0;
    /* display: inline-block; */
  }

  /* スクロールは不可とする範囲指定用 */
  div.ctrl_none_scroll {
  /* max-height: 70vh; */    /* ブラウザの表示領域の高さの70%に制限する */
  /* overflow-x: auto; */      /* パディングボックスから溢れた場合の一般設定 */
  /* -webkit-overflow-scrolling: touch; */   /*  ←現在は指定不要 */
    overflow: visible;       /* 溢れてもスクロールなし */
      width: 100%;

    max-width: 100%;
    margin-top: 10px;
    border: 0px solid #e0e0e0;
      outline: 0px solid #e0e0e0;
    display: inline-block;
  }

  div.ctrl_full_scroll table,
  div.ctrl_horizon_scroll table,
  div.ctrl_none_scroll table {
    border: 2px solid #808080;  /* table外枠の罫線指定 */
    padding: 0px;
    border-collapse: collapse;      /* collapse=境界線を開けない separate=境界線をあける */
    border-spacing: 0px;            /* <table cellspacing="xx">に相当、separateの時の指定値 */
  }

  div.ctrl_full_scroll th,
  div.ctrl_horizon_scroll th,
  div.ctrl_none_scroll th,
  div.ctrl_full_scroll td,
  div.ctrl_horizon_scroll td,
  div.ctrl_none_scroll td {
    border: 1px solid #d0d0d0;   /* セルの罫線指定 */
    padding: 5px;                   /* <table cellpadding="xx">に相当 */

  }

  table.ctrl_header_title p.title1 {
    font-size: 1.3em;
    margin-top: 15px;
    margin-left: 10px;
    margin-right: 10px;

  }

  table.ctrl_header_title p.title2 {
    font-size: 0.9em;
    margin-top: 5px;

  }

  table.ctrl_header_title p.title3 {
    font-size: 0.75em;
    margin-top: 0px;
  }

  table.ctrl_header_title p.title4 {
    font-size: 0.6em;
    margin-top: 5px;
  }



/* new new new */
/* theadの見た目だけ（stickyはここでやらない） */
table thead th {
  border: 1px solid #808080;
  z-index: auto;
  padding: 5px;
  /* background: #A000A0;  */     /* もしくは #fff。とにかく明示 */
}
/* new new new */




  span.btn_com {
    display: inline-block;
    /* max-width: 200px; */
    border: 1px solid #c0c0c0;
    margin: 5px 10px;   /* ←上下に余白 */
    background-color: rgba(220,220,255,0.4);
    border-radius: 10px;
    border-spacing: 10;
    padding: 5px;          /* 高さは padding で作るのが自然 */
  }


  span.btn_len4 {
    min-width: 40px; 
  }
  span.btn_len6 {
    min-width: 60px; 
  }
  span.btn_len8 {
    min-width: 80px; 
  }
  span.btn_len99 {
    min-width: 80px; 
  }


thead tr.hdr_sort_row1 th{
  position: sticky;
  top: 0;
  z-index: 10;
}

thead tr.hdr_sort_row2 th{
  position: sticky;
  top: calc(var(--head1-height) + 1px);
  z-index: 10;
}

.column_fix{
  position: sticky;
  left: 0;
  z-index: 20;
}


/* 角セル（左上）だけ：1本で完結させる */
thead tr.hdr_sort_row1 th.column_fix.corner{
  position: sticky ;
  top: 0 ;
  left: 0 ;
  z-index: 40 ;       /* まず勝てるか確認用 */
  /* background: #00ff00 ;  */  /* 目印 */
}

thead th,
.column_fix{
  background-clip: padding-box;
}

}


.decl_maxwidth {
  width: 100%;
}