.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:80px!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;
}
#main button {
    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;
}

.error {
    border: 1px solid #d33 !important;
}
.fraction-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.fraction-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    position: relative;
}
.fraction-input input {
    width: 50px;
    text-align: center;
    margin: 2px 0;
}
.fraction-line {
    width: 100%;
    margin: 5px 0;
    border-top: 1px solid #333;
}
.btn-remove {
    background: #d33;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 21px;
    text-align: center;
    vertical-align: middle;
}
.btn-add {
    background: #0a7;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
}
#stepsContainer {
    margin-top: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}
.fraction-result {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.original-fraction, .converted-fraction, .reduced-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 10px;
}
.arrow {
    margin: 0 10px;
    font-weight: bold;
}
.reduced-label {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}
.step-detail {
    margin: 8px 0;
    padding: 5px;
    background: #fff;
    border-radius: 3px;
}

@media screen and (max-width: 480px) {
	.wrapper .block #outputBlock .tbody .tr-responsive {
		display: flex!important;
	}
	.wrapper .block #outputBlock .tbody .td {
		width:100%;
		padding-top: 20px;
	}
	.wrapper .block #outputBlock .tbody .td.v {
		height: 100%;
	}
	.fraction-result {
    font-size: 14px;
}
.fraction-den{
    width: max-content;
}
}


        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
            overflow: hidden;
        }
        
        
        .content {
            padding: 25px 30px;
        }
        
        .card {
            background: #fafafa;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 20px;
            border: 1px solid #e0e0e0;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        
        .card:hover {
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        }
        
        .card h3 {
            color: #1976d2;
            font-size: 18px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e3f2fd;
            display: flex;
            align-items: center;
            font-weight: bold;
        }
        
        .card h3 i {
            margin-right: 10px;
        }
        
        .form-group {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .form-group label {
            width: 220px;
            font-weight: 500;
            color: #424242;
        }
        
        .input-group {
            flex: 1;
            display: flex;
            align-items: center;
        }
        
        .form_txt {
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 15px;
            width: 100%;
            max-width: 250px;
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        
        .form_txt:focus {
            outline: none;
            border-color: #1976d2;
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
        }
        
        .unit {
            margin-left: 10px;
            color: #616161;
        }
        
        .result {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
            border: 1px solid #e0e0e0;
        }
        
        .result div {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #f5f5f5;
        }
        
        .result div:last-child {
            border-bottom: none;
        }
        
        .result strong {
            color: #424242;
        }
        
        .result span {
            font-weight: 700;
            color: #1976d2;
    font-size: 18px;
        }
        
        #addLoan {
            background: #1976d2;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            margin: 20px 0;
            transition: background 0.3s;
        }
        
        #addLoan:hover {
            background: #1565c0;
        }
        
        #addLoan i {
            margin-right: 8px;
        }
        
        #outputBlock {
            background: #e3f2fd;
            border-radius: 10px;
            padding: 20px;
            margin-top: 25px;
            border: 1px solid #bbdefb;
            color: #1976d2;
        }
        
        #outputBlock div {
            display: flex;
            justify-content: space-evenly;
            padding: 12px 0;
            font-size: 17px;
        }
        
        #outputBlock strong {
            color: #1976d2;
        }
        
        #outputBlock span {
            font-weight: 700;
            color: #0d47a1;
    font-size: 18px;
        }
        
        .delete-btn {
            background: #f44336;
            color: white;
            border: none;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 10px;
            font-size: 13px;
            display: inline-flex;
            align-items: center;
        }
        
        .delete-btn i {
            margin-right: 5px;
        }
        
        .delete-btn:hover {
            background: #d32f2f;
        }
        
        @media (max-width: 768px) {
            .form-group {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .form-group label {
                width: 100%;
                margin-bottom: 8px;
            }
            
            .input-group {
                width: 100%;
            }
            
            .form_txt {
                max-width: 100%;
            }
        }