.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;
	font-size: 200%!Important;
	padding-left:16px!Important;
}
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;
}

input[type=number], input[type=text], select {
    width: 100%;
    padding: 8px 10px;
    line-height: 1.2;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 100%;
    margin-bottom: 8px;
}

/* ====== 共通 ====== */
*, *::before, *::after { box-sizing: border-box; }
.numbers { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ====== 入力側（幅合わせ・はみ出し防止） ====== */
#exTable{ width:100%; border-collapse:separate; border-spacing:0 12px; max-width:100%; table-layout:fixed; }
#exTable th{ font-size:13px; color:#555; text-align:left; }
#exTable .rownum{ width:2.4em; text-align:center; color:#666; font-weight:600; }

.ex-card{
  border:1px solid #e6e6e6; border-radius:12px; background:#fff; max-width:100%;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.ex-card .head{
  padding:10px 12px; border-bottom:1px solid #eee; display:flex; flex-direction:column; gap:8px;
}
.ex-title{
  display:inline-block; width:100%; font-size:12px; line-height:1.3; color:#264;
  background:#f2f7ff; border:1px solid #dbe7ff; padding:4px 8px; border-radius:999px;
  white-space:normal; word-break:break-word;
}
.ex-card select{ width:100%; padding:8px 10px; max-width:100%; }
.ex-card .body{ padding:10px 12px; }

/* 入力は常に2段 */
.name-row{ display:flex; gap:10px; }
.name-row .field{ flex:1; min-width:160px; }

.info-row{
  display:grid; gap:10px; align-items:center;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.info-row .right{ justify-self:end; }

.label{ color:#666; font-size:12px; margin-bottom:4px; display:flex; align-items:center; gap:6px; }
.badge{ font-size:11px; background:#eef; color:#355; padding:1px 6px; border-radius:999px; }
.badge.req{ background:#ffecec; color:#a22; border:1px solid #f2b8b8; }

.input{ display:flex; align-items:center; gap:6px; max-width:100%; }
input[type=number], input[type=text], select{
  width:100%; padding:8px 10px; line-height:1.2; border:1px solid #ddd; border-radius:8px; max-width:100%;
}
.unit-sm{ font-size:12px; color:#666; white-space:nowrap; }

.req-error{ outline:2px solid #e66; background:#fff7f7; }
.hide{ display:none !important; }

.addbtn{ margin-top:4px; padding:6px 10px; border:1px solid #ddd; border-radius:8px; background:#fafafa; }
.ex-del{ padding:8px 12px; border:1px solid #ddd; background:#fff; border-radius:8px; }
.disabled{ opacity:.55; pointer-events:none; }

#inputBlock .tr{ display:flex; gap:10px; padding:10px 0; border-bottom:1px dashed #eee; }
#inputBlock .td.e{ width:30%; max-width:260px; color:#444; }
#inputBlock .td.v{ flex:1; min-width:0; }
.small{ font-size:12px; color:#666; }
.value{ font-size:22px; font-weight:700; }
.unit{ margin-left:6px; font-size:14px; color:#666; }

/* ====== 出力（見やすさ強化） ====== */
/* サマリーをカード化して横並び（幅に応じて自動折返し） */
.summary-grid{
  display:grid; gap:10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 4px 0 12px 0;
}
.summary-card{
  border:1px solid #eee; border-radius:12px; padding:10px 12px; background:#fff;
  margin: 4px;
}
.summary-card .label{ font-size:12px; color:#666; margin-bottom:6px; }
.summary-card .val{ font-size:24px; font-weight:700; line-height:1; }
.summary-card .val .unit{ font-size:12px; color:#777; }

#outTable{ width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed;padding:4px; }
#outTable thead th{
  background:#f7f8fa; color:#555; font-size:12px; padding:8px; border-top:1px solid #e6e6e6; border-bottom:1px solid #e6e6e6;
}
#outTable tbody td{ padding:8px; border-bottom:1px solid #f0f0f0; }
#outTable tbody tr:nth-child(even){ background:#fafafa; }
#outTable .name-cell{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#outTable .num{ text-align:right; font-feature-settings:"tnum"; font-variant-numeric:tabular-nums; }

/* テーブル周りの“重なり”防止と間隔確保 */
.outTableWrap{
  display: flow-root;      /* BFCを作る → マージン相殺を止める */
  padding-bottom: 10px;    /* 表の下に安定した余白 */
}

/* 見出し（caption）の見た目 */
.table-caption{
  caption-side: top;
  text-align: left;
  padding: 8px;
  font-weight: 600;
  color: #444;
}
