/* CSS Document */

article{
    padding-bottom: 80px; 
}

#fv{
    margin-bottom: 50px; 
}
#fv h2{
    text-align: left;
    color: #fff;
    padding: 30px 0 30px 20px;
    background: rgba(89, 134, 198, .8);
    font-size: 140%;
    margin-bottom: 50px;
}

#simulation{
    margin-bottom: 50px; 
}
#simulation h3 {
    font-size: 140%;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    color: #5986C6;
    align-items: center;
    gap: 10px;
    padding: 0 5px 15px;
    position: relative;
    margin-bottom: 20px;
}
#simulation h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background: #5986C6;
    border-radius: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
}
#simulation h4 {
    font-size: 120%;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #5986C6;
    margin-bottom: 15px;
}

#simulation #calculation h4 {
	font-size: 1.1em;
	color: #5986C6;
	margin: 25px 0 10px;
}

#simulation #calculation table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}
#simulation #calculation table th,
#simulation #calculation table td {
	padding: 0.8em 1em;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}
#simulation #calculation table th {
	background-color: #f4f7fb;
	font-weight: bold;
	text-align: left;
	color: #333;
	width: 35%;
}
#simulation #calculation table input[type="text"] {
	width: 10em;
	text-align: right;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1em;
}
#simulation #calculation #form1 #keisan,
#simulation #calculation #form1 #reset {
	width: 240px;
	height: 50px;
	font-size: 1.1em;
	font-weight: bold;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}
#simulation #calculation #form1 #keisan {
	background-color: #5986C6;
	color: #fff;
}
#simulation #calculation #form1 #keisan:hover {
	background-color: #3b6bb3;
	transform: translateY(-2px);
}
#simulation #calculation #form1 #reset {
	background-color: #ccc;
	color: #333;
	margin-left: 10px;
}
#simulation #calculation #form1 #reset:hover {
	background-color: #bbb;
	transform: translateY(-2px);
}
#simulation #calculation #form1 #shinyohoshoryo {
	border: none;
	font-size: 1.6em;
	font-weight: bold;
	color: #333;
	background: transparent;
	text-align: right;
}
#simulation #calculation #form1 label.error {
	color: #d9534f;
	margin: 0.5em 0 0;
	display: block;
	font-size: 0.9em;
}
#simulation #calculation #form1 label {
	display: inline-flex;
	align-items: center;
	gap: 4px; 
	font-size: 1em;
	cursor: pointer;
	margin-right: 20px;
	vertical-align: middle;
}
#simulation #calculation #form1 input[type="radio"] {
	margin: 0;
	position: relative;
	top: 0; 
}

#simulation #case table {
    border-collapse: collapse;
    width: 100%;
    margin: 30px auto;
    font-size: 95%;
    text-align: center;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 6px;
    overflow: hidden;
}
#simulation #case table th, 
#simulation #case table td {
    border-bottom: 1px solid #d5d9e0;
    padding: 0.8em 1em;
    vertical-align: middle;
    line-height: 1.6;
}
#simulation #case table th {
    background-color: #eaf1fb;
    color: #003876;
    font-weight: 600;
    border-bottom: 2px solid #5986C6;
    white-space: nowrap;
}
#simulation #case table td {
    text-align: center;
    color: #333;
}
#simulation #case table td:first-child,
#simulation #case table th:first-child {
    text-align: left;
}
#simulation #case table tr:nth-child(even) td {
    background-color: #f9fbfd;
}

@media screen and (max-width: 480px) {
   
    #simulation #calculation table,
	#simulation #calculation table tbody,
	#simulation #calculation table tr,
	#simulation #calculation table th,
	#simulation #calculation table td {
		display: block;
		width: 100%;
	}
    #simulation #calculation table {
        width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    #simulation #calculation table th,
    #simulation #calculation table td {
        box-sizing: border-box;
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
    #simulation .inner {
        overflow-x: hidden;
    }
    
	#simulation #calculation table th {
		background-color: transparent;
		border: none;
		font-weight: bold;
		padding-top: 1em;
	}

	#simulation #calculation table td {
		padding-left: 0.5em;
	}

	#simulation #calculation #form1 #keisan,
	#simulation #calculation #form1 #reset {
		width: 100%;
		margin: 10px 0;
	}
    #simulation #calculation table td {
        text-align: right;
    }
    #simulation #calculation table td input[type="text"] {
        text-align: right;
        width: 100%;
        box-sizing: border-box;
    }
    
    #simulation #case table, 
    #simulation #case table tbody, 
    #simulation #case table tr, 
    #simulation #case table th, 
    #simulation #case table td {
        display: block;
        width: 100%;
    }
    #simulation #case table tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        overflow: hidden;
    }
    #simulation #case table th {
        background: #5986C6;
        color: #fff;
        text-align: left;
        padding: 10px;
    }
    #simulation #case table td {
        text-align: left;
        padding: 10px 15px;
        border: none;
        border-top: 1px solid #eee;
        background: #fff;
    }
    
	
}
