body {
    font-family: "Noto Sans JP","Zen Kaku Gothic New", Arial, "Hiragino kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    font-size: 16px;
    color: #333333;
    background-color: #eaedf3;
}

header {
    display: flex;
    border-bottom: solid 1px #333333;
}
.calcimg {
    margin: 15px 10px;
}
h1 {
    padding: 15px 10px 10px 10px;
    font-size: 35px;
    color: #00008b;
    font-weight: 500;
}

.section {
    margin: 20px 0;
}

.summary {
    font-weight: 500;
    font-size: 24px;
    margin-left: 20px;
}

h3 {
    font-weight: 500;
    font-size: 24px;
    margin: 10px 0px 0px 20px;
    vertical-align: baseline;
}

.accordion_button {
    font-weight: 500;
    font-size: 16px;
    margin: 0 auto;
    margin-left: 3px;
    vertical-align: baseline;
}

.hidden{
    display: none;
}

.explanation {
    font-weight: 500;
    font-size: 20px;
    margin: 0 auto;
    padding: 10px 20px;
}

.container {
    font-size: 30px;
    width: 100%;
    max-width: 1280px;
    margin: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row {
    margin: 0 auto;
    width: 50%;
}
.col {
    margin:10px 5px;
}

.item {
    font-family: "Tsukimi Rounded";
    text-align: center;
    display: inline-block;
    width: 45%;
}
.input {
    width: 40%;
    border: solid 1px #333333;
    background-color: #bfd1ec;
    border-radius:3px;
    text-align: right;
    position: relative;
    margin-bottom:5px;
}
.unit {
    text-align: center;
    display: inline-block;
    width: 10%;
}

.subline {
    background-image: url('../img/Line1.png');
    width: 6%;
    height: 390px;
    align-items: center;
}

.line {
    background-image: url('../img/Line3.png');
    width: 100%;
    height: 36px;
    align-items: center; 
}

.btn_container {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 20px 0;
    max-width: 1240px; 
    width: 100%; 
}

.btn {
    margin-left: 50px;
    font-size: 24px;
    border-radius:5px;
    box-shadow: 2px 2px 5px #00000080; 
}

.calcbtn {
    background-color: #e09fe9;
    padding: 15px 30px;
}
.calcbtn:hover {
    background-color: #e7afee;
}
.calcbtn:active {
    transform: translateY(3px);
    box-shadow: 0px 2px 5px #00000033;
}

.clearbtn {
    background-color: #80b9e9;
    padding: 15px 20px;
}
.clearbtn:hover {
    background-color: #add3f3;
}
.clearbtn:active {
    transform: translateY(3px);
    box-shadow: 0px 2px 5px #00000033;
}

.discalcbtn  {
    background-color: #e7af47;
    padding: 15px 30px;
}
.discalcbtn:hover {
    background-color: #ebbe6b;
}
.discalcbtn:active {
    transform: translateY(3px);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.disclearbtn {
    background-color: #89dd90;
    padding: 15px 20px;
}
.disclearbtn:hover {
    background-color: #96f19e;
}
.disclearbtn:active {
    transform: translateY(3px);
    box-shadow: 0px 2px 5px #00000033;
}

/* 結果出力 */
.output_container {
    font-size: 30px;
    width: 100%;
    max-width: 1280px;
    display: block;
    justify-content: center;
    position: relative;
    margin: 20px 0;
}
.output_col{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-left: 50px;
}
.toggle_input {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    cursor: pointer;
}

.toggle_label {
    width: 75px;
    height: 35px;
    background: #ccc;
    position: relative;
    display: inline-block;
    border-radius: 40px;
    transition: 0.4s;
    box-sizing: border-box;
}

.toggle_label:after {
    content: "";
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 100%;
    left: 0;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    transition: 0.4s;
}

.toggle_input:checked + .toggle_label {
    background-color: #4BD865;
}

.toggle_input:checked + .toggle_label:after {
    left: 40px;
}

.toggle_button {
    position: relative;
    width: 75px;
    height: 35px;
    margin: 20px;
}

/* チェックボックス */
.check_container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.checkbox{
    position: relative;
    width: 28px;
    height: 28px;
    border: 1px solid #000;
    vertical-align: middle;
}
.checkbox:checked:before {
    position: absolute;
    top: 1px;
    left: 6px;
    transform: rotate(40deg);
    width: 10px;
    height: 16px;
    content: '';
}
.check_label {
    font-size: 24px;
}

.output_btn {
    background-color: #cccccc;
    padding: 15px 20px;
}
.output_btn:hover {
    background-color: #e4e4e4;
}
.output_btn:active {
    transform: translateY(3px);
    box-shadow: 0px 2px 5px #00000033;
}
.output_area{
    margin: 30px;
    display: none;
}

.output_data {
    width: 95%;
    height: 1000px;
    border: solid 1px #333333;
    background-color: #bfd1ec;
    border-radius:3px;
    margin-bottom:5px;
}


/* TOPへ戻る */
.paws {
    margin-left: 10px;
}

.cat_container {
    text-align: right;
    margin-left: auto;
    margin-right: 50px;
    margin-top: 30px;
    display: block;
}
.cat_text{
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: -18px;
    right: 2px;
    white-space: nowrap;
}
.cat {
    background-image: url('../img/cat2.svg');
    width: 50px;
    height: 50px;
    display: inline-block;
    margin-left: auto;
    position: relative;
}
.cat:hover {
    background-image: url('../img/cat1.svg');
}


footer{
    margin-top: 100px;
}

.copyright {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    line-height: 60px;
    z-index: 4;
}


@media (max-width: 1143px) {
    .container {
        flex-direction: column;
    }
    .output_container{
        left: 0;
        margin: 0pX;
    }
    .row {
        width: 100%;
    }
    .subline {
        background-image: url('../img/Line2.png');
        width: 100%;
        height: 33px;
        transform: rotate( 0deg );
    }
    .btn_container{
        margin-left:0px;
    }
    .cat_container {
        margin-right: 35px;
    }
}


@media (max-width: 560px) {
    h1{
        font-size: 32px;
    }
    .summary {
        font-size: 24px;
    }
    .explanation {
        font-size: 20px;
    }
    .container{
        font-size: 22px;
    }
    .btn {
        font-size: 18px;
        margin-left: 0px;
        margin: 0 12px;
    }
    .output_container{
        font-size: 22px;
    }
    .paws {
        height: 18px;
        width: 18px;
    }
    .cat_container {
        margin-right: 30px;
    }
    .cat {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 auto;
        font-size: 20px;
    }
    .btn {
        margin-left: 12px;
    }
    .checkbox{
        width: 20px;
        height: 20px;
    }
    .check_label {
        font-size: 18px;
    }
    .output_col{
        font-size: 20px;
        margin-right: 20px;
    }
    .output_btn {
        padding: 5px 5px;
    }
    .paws {
        height: 15px;
        width: 15px;
    }
    .cat_container {
        margin-right: 25px;
    }
    .cat_text{
        font-size: 10px;
        right: 1px;
    }
    .cat {
        width: 35px;
        height: 35px;
    }
}


@media (max-width: 324px) {
    h1{
        font-size: 30px;
    }
    .summary {
        font-size: 18px;
    }
    .explanation {
        font-size: 14px;
    }
    .btn { 
        padding: 10px 10px;
    }
    .item {
        text-align: left;
        width: 100%;
    }
    .input {
        width: 80%;
    }
    .btn {
        font-size: 16px;
        margin: 0 10px;
    }
    .output_col{
        font-size: 15px;
        margin-left: 10px;
        margin-right: 20px;
    }
    .output_btn {
        padding-left: 15px;
    }
    .paws {
        width:15px;
        height:15px; 
        margin-right: 5px;
    }
    .cat_container {
        margin-right: 20px;
    }
    .cat_text{
        top: -12px;
        font-size: 9px;
    }
    .cat {
    width: 30px;
    height: 30px;
    }
}