//(タグ名).(クラス名){
//  (スタイル記述)
//}
/* 行列切替ボタンは常に表示（Chrome は狭い縦長窓で hover/pointer のメディアクエリが Safari とずれ非表示になることがあるため、CSS で隠さない。誤タップ対策は JS 側の自動転置で代替） */
/* 定数定義 */
:root {
  --main-thin-green-color: #F0FFFE;
  //--main-green-color: #5CB85C;
  --main-green-color: #009944;
  //--main-bg-green-color: #C3E6CB;
  --main-bg-green-color: #009944;
  --main-red-color: #D9534F;
  --main-white-color: #FFFFFF;
  --main-line-select-color: #CCFFFF;
}
body {
    margin-left:auto;    /* 左側マージンを自動的に空ける */
    margin-right:auto;   /* 右側マージンを自動的に空ける */
    text-align:left;     /* 中身を左側表示に戻す */
    width:98%;           /* 幅を決定する */
}
/* メインタイトル */
.main-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 10px 10px 10px;
}
/* タブリスト */
.tab-list {
  border-bottom: 3px solid var(--main-red-color);/* 下線 */
  justify-content: center;
}
/* タブリスト li*/
.tab-list li {
    margin: 0 10px -1px 0;
    padding: 10px 20px;
    padding: 10px 0px;
    border: 1px solid var(--main-red-color);
    cursor: pointer;
    list-style: none;
    transition: .3s;
}
/* タブ */
.tab-item {
  margin: 0 10px -1px 0;
  padding: 10px 0px;
  text-align:center;
  cursor: pointer;
  background: var(--main-white-color);
  border: 1px solid var(--main-red-color);
  transition: .3s;
  /* タブのrounded-topクラスを外して使用 */
  /* border-top-left-radius: 10px; */
  /* border-top-right-radius: 10px; */
  /* border-bottom: 3px solid var(--main-red-color); 下線 */
}
.tab-item-memo {
  margin: 0 10px -1px 0;
  padding: 10px 20px;
  text-align:center;
  cursor: pointer;
  background: var(--main-white-color);
  border: 1px solid var(--main-green-color);
  transition: .3s;
}
/* タブ選択時設定クラス */
.tab-item.active {
  background: var(--main-red-color);
  color: var(--main-white-color);
}
/* メモタブ選択時設定クラス */
.tab-item-memo.active {
  background: var(--main-green-color);
  color: var(--main-white-color);
}
/* タブマウス */
.tab-item:hover {
  cursor: pointer;
}
/* 選択色 */
.color {
    margin: 10px 10px 10px 10px;
    padding: 7px 7px;
    vertical-align: middle;
}
/* メモ領域 */
.memo-area {
    margin: 10px 10px 10px 10px;/* 要素の全四辺のマージン領域 margin-top, margin-right, margin-bottom, margin-left */
    padding: 10px 10px;/* 要素のパディング領域  padding-top, padding-right, padding-bottom, padding-left */
    border: 1px solid var(--main-green-color);
    list-style: none;
    transition: .3s;
}
/* メモ操作領域 */
.memoCommand {
    display: flex;
    margin: 10px 10px 10px 10px;
    padding: 10px 20px;
    border: 1px solid var(--main-red-color);
}
/* メモ */
.textlines {
    border: 1px solid var(--main-green-color);  /* 枠線 */
    border-radius: 0.67em;   /* 角丸 */
    padding: 0.5em;          /* 内側の余白量 */
    background-color: snow;  /* 背景色 */
    width: 100%;             /* 横幅いっぱいにする */
    box-sizing: border-box;  /* ※これがないと横にはみ出る */
    height: 120px;           /* 高さ */
    font-size: 1em;          /* 文字サイズ */
    line-height: 1.2;        /* 行の高さ */
}
/* ボタン */
.loto-btn {
    margin: 10px 10px 10px 10px;
    padding: 5px 5px;
    border: 1px solid var(--main-green-color);
    background-color: #ffffff;
    vertical-align: middle;
}
/* 抽選回数(div) */
.paginateby {
    margin: 10px 10px 10px 10px;
    padding: 5px 5px;
    vertical-align: top;
}
/* 抽選回数(input) */
.input-paginateBy {
 font-size: 120%;
 width: 60px;
 border: solid 0px;
}
/* 一覧ヘッダー */
.list-header {
  color:var(--main-white-color);
  background-color: var(--main-bg-green-color);
}
/* JS 実行前の初回描画: 縦長ビューポートは verticalStyles と同じ論理（html.loto-narrow-portrait は base.html head 内スクリプトで付与） */
html.loto-narrow-portrait table.table {
  writing-mode: vertical-lr;
}
html.loto-narrow-portrait table.table th,
html.loto-narrow-portrait table.table td {
  writing-mode: vertical-lr;
}
html.loto-narrow-portrait table.table th {
  text-orientation: upright;
}
html.loto-narrow-portrait table.table thead td.meta.list-header {
  text-orientation: upright;
}
/* 行列転置（vertical-lr）時: thead の緑ヘッダー帯を同じ論理幅に（抽選日・回別・01…で均一） */
table.loto-matrix-vertical thead td.list-header,
html.loto-narrow-portrait table.table thead td.list-header {
  box-sizing: border-box;
  width: 3.1em;
  min-width: 3.1em;
  max-width: 3.1em;
  padding: 0.35em 0.2em;
  vertical-align: middle;
  text-align: center;
}
/* 本数字番号見出し: 縦組みの1マスに「01」「02」（縦中横・回転なし） */
table.loto-matrix-vertical thead td.data.list-header,
html.loto-narrow-portrait table.table thead td.data.list-header {
  text-orientation: upright;
  white-space: nowrap;
  -webkit-text-combine: horizontal;
  text-combine-upright: all;
}
/* データ一覧領域 */
//.data-command-area {
//}
/* データ一覧操作領域 */
.data-command {
  display: flex;
}
/* データ一覧(当選データ) */
th.win {
  color:var(--main-red-color);
  text-align: center;
}
/* 本数字用のツールチップス*/
.tooltip > .tooltip-inner {
 color:var(--main-red-color);
 //background-color: #CFFFFF;
 background-color: var(--main-line-select-color);
 font-size: 30px;
 max-width:1000px;
 border: 1px solid #000000;
}
/* 数値選択時のアニメーション */
.startFlush {
  animation: flush01 1s;
}
@keyframes flush01 {
  0% {
    background-color: green;
    box-shadow: 0px 0px 30px #3741F7;
  }
}
/* モーダル */
.mainModal{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  background: rgba(0,0,0,70%);
  padding: 40px 20px;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}
.mainModal:before{
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 100%;
}
.mainModal.active{
  opacity: 1;
  visibility: visible;
}
.bodyModal{
  position: relative;
  display: inline-block;
  vertical-align: middle;
  max-width: 60%;
  width: 90%;
}
.closeModal{
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -60px;
  right: -60px;
  width: 80px;
  height: 80px;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
}
.contentModal{
  background: #fff;
  text-align: left;
  padding: 30px;
}
/* インフォメーション */
/*.top-info-container {
  overflow: hidden;
  position: relative;
  height: auto; 
  margin: 10px 10px 10px 10px;
}*/
.top-info-container {
  display:flex;
  justify-content:space-between;
  margin: 20px 20px 20px 20px;
  background-color: #ffffff;
  border: 2px solid #cccccc;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.top-info-text {
  display:flex;
  align-items:center;
  position: absolute;
  white-space: nowrap;
  animation: flowText 15s linear 1;
}

.top-info-text-hide {
  display:flex;
  align-items:center;
  padding: 10px;
  animation: hideop 10s linear 0s;
  animation-fill-mode: forwards;
}

@keyframes flowText {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}
@keyframes hideop {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    display:none;
  }
}
.ad-container {
  #max-width: auto;
  display: flex;
  margin: 20px 20px 20px 20px;
  background-color: #ffffff;
  border: 2px solid #cccccc;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 20px;
}
.info-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 10px;
  color: #fff;
  background-color: #3498db;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}
.info-btn:hover {
  background-color: #2980b9;
}
