#pwChange, input { font-size: 1.1em; font-weight: bold; } #main { text-align: center; } #Guide { width: 100%; } .row_table { margin: auto; } .row_table td, .row_table th { border: 1px solid #cbced2; border-collapse: collapse; padding: 4px 15px; text-align: left; } .row_table th { background-color: #01214d; color: #FFFFFF; text-align: right; } .progress-bar-container { position: relative; margin-top: 10px; width: 100%; height: 20px; background-color: #ddd; border-radius: 4px; } .progress-bar { position: absolute; top: 0; left: 0; bottom: 0; background-color: #ddd; border-radius: 4px; transition: width 0.4s ease-in-out; } .strength-0 { width: 2%; background-color: red; } .strength-1 { width: 25%; background-color: orange; } .strength-2 { width: 50%; background-color: gold; } .strength-3 { width: 75%; background-color: yellowgreen; } .strength-4 { width: 100%; background-color: green; } @media screen and (max-width: 480px) { /* 480px以下に適用されるCSS(スマホ用) */ #main { font-size: 0.6em; } .topMessage { width: 330px !important; } #Guide { font-size: 1.3em; } .row_table, .row_table td, .row_table th { border: 1px solid #cbced2; border-collapse: collapse; text-align: center; } .row_table th { background: #01214d; color: #fff; padding: 4px 12px; display: block; } .row_table td { background: #f5f6f8; padding: 4px 12px; display: block; } }