body {
    margin: 0;
    padding: 0;
    background: #f6f6f6;
}
* {
    box-sizing: border-box;
}
header {
    height: 130px;
    position: relative; /* added for hamburger menu */
    background: #fff;
}

main {
    min-height: calc(100vh - 60px);
    /* 100vh - header height - footer height */
    padding: 20px;
    margin-bottom: 100px;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    height: 60px;
    line-height: 60px;
    text-align: center;
    box-shadow: 0px -4px 14px -7px #ccc;
    border-top: solid 1px #bbb;
    font-size: 13px;
}

.hamburger {
    display: none; /* hide the hamburger menu icon by default */
    position: absolute;
    top: 3px;
    right: 6px;
    font-size: 24px;
    border: none;
    background-color: transparent;
    z-index:9;
}

.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%; /* position the menu below the header */
    right: 0;
    width: 100%;
    background-color: #f9f9f9;
    padding: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    transform: translateY(-100%); /* move the menu off-screen by default */
    z-index:8;
}

.menu a {
    color: #333;
    text-decoration: none;
    padding: 10px;
}

.gotop{
    display: block;
    width: 60px;
    height: 60px;
    background: #FFF;
    border: 1px solid #999;
    padding-top: 30px;
    text-align: center;
    letter-spacing: -1px;
    font-size: 85%;
    text-decoration: none;
    color: #333;
    opacity: 0.5;
    position: fixed;
    bottom: -60px;
    right: 20px;
    border-radius: 50%;
    z-index: 9998;
}
.gotop::before{
    content: "";
    display: block;
    border-top: 1px solid #333;
    border-right: 1px solid #333;
    width: 25%;
    height: 25%;
    top: 25%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    transform: rotate(-45deg);
}
.gotop:hover{
    opacity: 1;
}
#logo {
    margin-top: 1rem;
    background-image: url("../img/fot-logo1.png");
    background-position: top center;
    background-repeat: no-repeat;
    height: 60px;
}
#pcNav {
    text-align: center;
}
#pcNav ul {
    margin: 0;
    padding: 0;
    height: 40px;
    border-bottom:1px solid #ddd;
}
#pcNav li {
    list-style: none;
    display: inline-block;
    min-width: 100px;
    width: 10rem;
    height: 40px;
    line-height: 40px;
}
#pcNav li:not(:last-child) {
    border-right:1px solid #ddd;
}
#pcNav a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: #333;
}
#pcNav a.current,
#pcNav a:hover {
    border-bottom:4px solid #ff7f00;
    transition: all 0.1s ease-in-out;
}
.content-header,
.breadcrumb,
.content {
    margin: 0 auto ;
    max-width: 800px;
    width: 80%;
}
.breadcrumb {
    list-style: none;
    margin-bottom: 1.5rem;
}
.breadcrumb li {
    display: inline;
    list-style: none;
}

.breadcrumb li:after {
    content: '>';
    padding: 0 0.2em;
    color: #555;
}

.breadcrumb li:last-child:after {
    content: '';
}

.breadcrumb li a {
    text-decoration: none;
    color: #52b5ee;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

#formArea {
    margin: 0 auto;
    max-width: 600px;
    width: 70%;
}

select {
    font-size: 12px;
}
.cms-label {
    color: #aaa;
    background:#ddd;
    -moz-border-radius:28px;
    -webkit-border-radius:28px;
    border-radius:4px;
    text-align: center;
    display: inline-block!important;
    padding: 5px 0px;
    margin-right:2%;
    margin-bottom:1em;
    width:10em;
}
.cms-label:hover {
    color: #fff;
    background:#78c2ff;
    cursor: pointer;
}
.cms-label-danger:hover {
    color: #fff;
    background:#DC3545;
}
input[type="radio"], input[type="checkbox"] {
    display:none;
}
input[type="radio"]:checked + .cms-label,
input[type="checkbox"]:checked + .cms-label,
.cms-label.on{
    color: #fff;
    background:#3490dc;
}
.cms-label.on, .cms-label.off {
    cursor:initial!important;
}
input[type="radio"]:checked + .cms-label-danger,
input[type="checkbox"]:checked + .cms-label-danger,
.cms-label-danger.on{
    color: #fff;
    background:#C82333;
}
input[type="radio"].chk-disp, input[type="checkbox"].chk-disp {
    display:inline;
}
nav.menu {
    padding-top: 1em;
}
nav.menu a {
    border-bottom: solid 1px #ccc;
}

@media screen and (max-width: 500px) {
    #logo {
        width: 100%;
        background-size: 80%;
    }
}

@media screen and (max-width: 768px) {
    .h1, h1 {
        font-size: 1.75rem;
    }
    .content-header,
    .breadcrumb,
    .content {
        margin: 0 auto;
        width: 98%;
    }
    .breadcrumb {
        margin-bottom: 1.5rem;
    }
    #formArea {
        width: 96%;
    }
    header {
        height: auto;
        padding: 0.5em 0;
    }
    .hamburger {
        display: block; /* show the hamburger menu icon on small screens */
    }
    select[name="locale"] {
        width: 100%;
        padding: 10px;
    }
    #pcNav {
        display: none;
    }

    .menu {
        display: flex;
        position: fixed;
        top: 0;
        height: 100vh;
        width: 100%;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    .menu.active {
        transform: translateX(0);
    }

}

@media(max-width:1616px){
    .gotop{
        width: 40px;
        height: 40px;
        text-indent: -9999px;
        opacity: 1;
        border: none;
        bottom: 10px;
        right: 10px;
    }
    .gotop::before{
        bottom: 0;
    }
}
