#inputBlock .value.wrapper .block #inputBlock .table {
    width: 100%;
    display: table;
	word-break: normal;
}

.wrapper .block #inputBlock .thead {
    display: table-header-group;
}

.wrapper .block #inputBlock .thead .tr {
    display: table-row;
}

.wrapper .block #inputBlock .thead .th {
    display: table-cell;
    color: #fff;
    background-color: #333;
    font-size: 125%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
}

.wrapper .block #inputBlock .tbody .td:first-child {
    border-left: none;
    width:25%;
}
.wrapper .block #inputBlock .tbody .td:nth-child(3) {
    border-left: none;
    width:35%;
}

.wrapper .block #inputBlock .disc{
	font-size:12px;
	line-height:1;
}
@media screen and (max-width: 480px) {
.wrapper .block #inputBlock .tbody .td:nth-child(3) {
    border-left: none;
    width:30%;
}
.wrapper .block #inputBlock .disc{
	font-size:11px;
	line-height:1;
}
}
.wrapper .block #inputBlock .tbody {
    display: table-row-group;
}

.wrapper .block #inputBlock .tbody .tr {
    display: table-row;
}

.wrapper .block #inputBlock .tbody .td {
    display: table-cell;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 16px;
    padding-bottom: 16px;
    border-bottom: 3px solid #fff;
    vertical-align: middle;
}

.wrapper .block #inputBlock .tbody .e {
    background-color: #eee;
    font-size: 125%;
    text-align: center;
}

.wrapper .block #inputBlock .tbody .v {
    background-color: #f9f9f9;
    font-size: 117%;
}



.form_txt_s{
	width:50px!important;
}
.form_txt{
	width:120px;
}
.form_txt_l{
	width:140px!important;
}
.form_txt_xl{
	width:220px!important;
}

.size_s {
    min-width: 86px!important;
}








#outputBlock {
    background: #eff3f7;
}



.wrapper .block .table_panel {
    width: 100%;
    display: table;
	word-break: normal;
}

.wrapper .block .table_panel .tbody .td:first-child {
    border-left: none;
}

.wrapper .block .table_panel .tbody {
    display: table-row-group;
}

.wrapper .block .table_panel .tbody .tr {
    display: table-row;
}

.wrapper .block .table_panel .tbody .td {
    display: table-cell;
    width:33%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 8px;
    padding-bottom: 8px;
    vertical-align: middle;
    text-align: center;
    font-size: 117%;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
    background-color: #eee;
}

@media screen and (max-width: 480px) {
	.wrapper .block .table_panel .tbody .tr-responsive {
		display: grid!important;
	}
	.wrapper .block .table_panel .tbody .td {
		width:100%;
	}
}

.label1 {
	font-weight: bold;
	font-size: 117%;
}
.label2 {
	font-size: 80%;
}
.value {
	font-weight: bold;
	color: #23ac38;
	font-size: 200%;
}
span.unit {
	font-size: 50%;
}
#inputBlock .value {
	font-weight: bold;
	color: #23ac38;
}
span.unit {
	font-size: 50%;
}


.input-active {
    border-left: 2px solid #4CAF50; /* 例: 緑色の太いボーダー */
}

.wrapper .block #inputBlock .tbody .v.input-active {
    background-color: #e8f5e9; /* 例: 薄い緑色の背景 */
}

i.contentsI {
    font-size: 120%;
    padding: 8px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 6px;
}

#outputBlock .tr .value span span.date {
font-size:16px;
}

#outputBlock .tr .value span ul li {
font-size:16px;
    line-height: 1.2;
    padding: 4px 12px;
    color:#333!important;
    font-weight:normal;
}
#outputBlock .tr .value span ul li strong{
    font-weight:bold;
}

.log-formula {
}

.ln, .log10, .log {
    font-weight: bold; /* 太字 */
}

.sub {
    font-size: 0.6em; /* 下付き文字のサイズ調整 */
    vertical-align: super; /* 上に寄せる */
}
.sub_low {
    font-size: 0.6em; /* 下付き文字のサイズ調整 */
}
        .formula {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px 0;
            font-size: 24px;
        }
        .fraction {
            display: inline-block;
            vertical-align: middle;
            text-align: center;
        }
        .fraction > span {
            display: block;
            padding: 0;
        }
        .fraction .denominator {
            border-top: 1px solid #000;
        }
        .factorial {
            font-size: 18px;
          
        }
        
#inputBlock .check_wrap {
    width: 100%;
}

.wrapper .block #outputBlock .table {
    width: 100%;
    display: table;
}

.wrapper .block #outputBlock .tbody .td:first-child {
    border-left: none;
}

.wrapper .block #outputBlock .tbody {
    display: table-row-group;
}

.wrapper .block #outputBlock .tbody .tr {
    display: table-row;
}

.wrapper .block #outputBlock .tbody .td {
    display: table-cell;
    width:25%;
    font-weight: 700;
    line-height: 1.3;
    padding-left: 4px;
    padding-right: 4px;
    vertical-align: middle;
    text-align: center;
    font-size: 117%;
    border-left: 2px solid #fff;
    border-bottom: 3px solid #fff;
    background-color: #eee;
	height:80px;
}
.wrapper .block #outputBlock .tbody .v {
    background-color: #f9f9f9;
}




@media screen and (max-width: 480px) {
	.wrapper .block #outputBlock .tbody .tr-responsive {
		display: grid!important;
		grid-template-columns: 50% auto!important;
	}
	.wrapper .block #outputBlock .tbody .td {
		width:100%;
		padding-top: 20px;
	}
}

#main button {
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
}

#main button.active {
    background-color: #4CAF50;
    color: white;
}

.table_panel {
    margin-top: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
}


/* プルダウンの基本スタイル */
.wrapper .block #inputBlock select {
    width: 100%;
    font-size: 117%;
    font-weight: 700;
    line-height: 1.5;
    padding: 12px;
    border: 2px solid #333;
    background-color: #f9f9f9;
    color: #333;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    appearance: none; /* デフォルトのプルダウン矢印を非表示にする */
}

/* プルダウンのホバー効果 */
.wrapper .block #inputBlock select:hover {
    border-color: #23ac38;
    background-color: #e8f5e9;
}

/* プルダウン選択時の効果 */
.wrapper .block #inputBlock select:focus {
    border-color: #4CAF50;
    background-color: #e8f5e9;
    box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}

/* プルダウン用の矢印の追加 */
.wrapper .block #inputBlock select::after {
    content: "▼";
    font-size: 0.8em;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* 矢印部分のクリックを無効化 */
}

.tab-table {
    width: 100%;
    display: contents;
}

/* タブボタンのスタイル */
.tab-button {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #4CAF50; /* アクティブタブの背景色 */
    color: #fff;
    border-color: #4CAF50;
}

.tab-button:hover {
    background-color: #e0e0e0;
}

/* タブコンテナ全体のスタイル */
.tab-container {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

/* タブコンテンツエリアのスタイル */
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: #fff;
}

.tab-content.active {
    display: block;
}

/* 入力フィールドスタイル */
.form_txt {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    margin: 5px 0;
}

.unit-label {
    font-weight: bold;
    margin-left: 5px;
}

/* ドロップダウンのスタイル */
select#payoutFeeType {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #4CAF50;
    background-color: #e8f5e9;
    color: #4CAF50;
    border-radius: 5px;
    cursor: pointer;
    appearance: none;
}

select#payoutFeeType:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.new-explanation .table-left td {
    text-align: left;
  }
  
@media screen and (max-width: 600px) {
.wrapper .block #outputBlock .tbody .tr {
    display: flex;
    flex-direction: column;
}
}

.radio-group {
    display: flex;
    gap: 20px;
}
/* ラジオボタンとそのラベル全体を囲む */
.radio-group {
  display: flex;
  gap: 20px; /* ボタン間の余白 */
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

/* 個別のラジオボタンとラベル */
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  cursor: pointer;
}

input[type="radio"] {
appearance: auto!important;
}

/* === Expected Value: resultBlock style =================================== */
#resultBlock {
  --rb-bg: #fff;
  --rb-border: #e6e6e6;
  --rb-header: #f6f7f9;
  --rb-row: #ffffff;
  --rb-row-alt: #fbfbfd;
  --rb-hover: #f1f7f3;
  --rb-text: #222;
  --rb-muted: #6b7280;
  --rb-accent: #4aa34a;
  font-variant-numeric: tabular-nums; /* 桁そろえ */
}

#resultBlock .table {
  background: var(--rb-bg);
  border: 1px solid var(--rb-border);
  border-radius: 10px;
  overflow: hidden;       /* 角丸内に収める */
}

/* grid ベースの行 */
#resultBlock .tbody .tr {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; /* 結果 / 確率 / 値 / 寄与分 */
  align-items: center;
}

/* セル共通 */
#resultBlock .tbody .tr .td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rb-border);
  color: var(--rb-text);
  background: var(--rb-row);
}

/* ヘッダー行 */
#resultBlock .tbody > .tr:first-child .td {
  background: var(--rb-header);
  font-weight: 600;
  color: #111;
  position: sticky;  /* スクロール時に見出し固定 */
  top: 0;
  z-index: 1;
  border-bottom-color: #dfe3e8;
}

/* 偶数データ行のゼブラ */
#resultBlock .tbody > .tr:not(:first-child):nth-child(even) .td {
  background: var(--rb-row-alt);
}

/* 行ホバー */
#resultBlock .tbody > .tr:not(:first-child):hover .td {
  background: var(--rb-hover);
}

/* 文字揃え：1列目は左、以降は右寄せ（数値列） */
#resultBlock .tbody .tr .td:nth-child(1) { text-align: left; }
#resultBlock .tbody .tr .td:nth-child(n+2) { text-align: right; }

/* 見出しの単位っぽさを弱める（必要なら） */
#resultBlock .tbody > .tr:first-child .td:nth-child(n+2) {
  color: var(--rb-muted);
  font-weight: 700;
}

/* 余白の最適化：外側の h3 とテーブル間 */
#resultBlock h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #111;
}

/* 末行のボーダー除去 */
#resultBlock .tbody > .tr:last-child .td {
  border-bottom: none;
}

/* スマホ最適化（~640px） */
@media (max-width: 640px) {
  #resultBlock .tbody .tr {
    grid-template-columns: 1fr 1fr; /* 2列レイアウト */
  }
  /* 1列目（結果）は横幅いっぱい */
  #resultBlock .tbody .tr .td:nth-child(1) {
    grid-column: 1 / -1;
    font-weight: 600;
  }
  /* 寄与分は改行して全幅 */
  #resultBlock .tbody .tr .td:nth-child(4) {
    grid-column: 1 / -1;
  }
  /* パディングをやや詰める */
  #resultBlock .tbody .tr .td { padding: 10px 12px; }
}

/* ダークモード（任意） */
@media (prefers-color-scheme: dark) {
  #resultBlock {
    --rb-bg: #0f1115;
    --rb-border: #1f2430;
    --rb-header: #171a20;
    --rb-row: #0f1115;
    --rb-row-alt: #12151b;
    --rb-hover: #171d18;
    --rb-text: #e5e7eb;
    --rb-muted: #a3a5ad;
  }
  #resultBlock .table { box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset; }
}
/* ドロップ用チェックボックスをネイティブ表示に戻す */
#playersTable .drop-toggle{
  appearance: auto;               /* 標準 */
  -webkit-appearance: checkbox;   /* Safari/Chrome */
  -moz-appearance: checkbox;      /* Firefox（互換） */
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
  accent-color: #3b82f6;          /* 可能なら色も付ける */
}

/* ラベルと横並びで揃える */
#playersTable label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}


.wrapper .block #inputBlock #playersTable .tbody .td:first-child {
    width: 50%;
}