* {
    padding: 0;
    margin: 0;
}

body {
    background-image: url("../img/bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #0464AE;
}


#main {
    overflow: hidden;
    width: calc(1278 / 1440 * 100%);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.1rem, 1vw, 5rem);
}


#header {
    width: 100%;
    aspect-ratio: 1278 / 58;
    padding: calc(54 / 2139 * 100%) 0;
    display: flex;
    justify-content: space-between;
}

#header img {
    scale: 2.2;
    transform-origin: left;
    height: 100%;
    object-fit: contain;
}

#header>div {
    width: calc(275 / 1278 * 100%);
    aspect-ratio: 275 / 58;
    display: flex;
    flex-direction: column;
    color: white;
    align-items: flex-end;
    justify-content:center;
}

#menu {
    display: none;
}

#search {
    width: 100%;
    aspect-ratio: 259 / 36;
    padding: clamp(calc(8 / 1440 * 100%), 0.005vw, 8px);
    background: #FFF;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

#search input {
    width: calc(241 / 259 * 100%);
    min-height: 2em;
    border: 0;
    font-size: clamp(0.1rem, 1vw, 5rem);
}

#submit {
    position: absolute;
    width: 2em !important;
    z-index: 10;
    opacity: 0;
    right: 0;
    z-index: 100;
    cursor: pointer;
}

#search svg {
    width: 1em;
    height: 1em;
    cursor: pointer;
}


.navigation {
    width: 100%;
    aspect-ratio: 1278 / 52;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    background-color: #1C378F;
    align-items: center;
    position: relative;
}

.navigation a {
    width: 100%;
    height: 3em;
    line-height: 3em;
    color: white;
    text-decoration: none;
    text-align: center;
}

.navigation a:hover {
    width: 100%;
    scale: 1.2;
    transition: all 200ms linear;
}

.navigation div {
    width: 100%;
    height: 100%;
}

#footer {
    width: calc(100% - 20px);
    min-height: calc(230 / 2139 * 100%);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #1B3794;
    background-image: url("../img/footer.png");
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
}

#address {
    width: calc(468 / 1278 * 100%);
    aspect-ratio: 468 / 230;
    list-style: none;
    margin-left: calc(32 / 1278 * 100%);
    display: flex;
    gap: calc(10 / 230 * 100%);
    flex-wrap: wrap;
    align-content: center;
}

#address li {
    height: 1.5em;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.625em;
}

#address svg {
    height: 100%;
    aspect-ratio: 1 / 1;
}

#QRCodediv {
    color: #E3E6F2;
    height: 100%;
    aspect-ratio: 276 / 230;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    margin-right: calc(32 / 1278 * 100%);
    font-weight: 300;
}

#QRCodediv .QRCodeLine{
    width: 16em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#QRCodediv .QRCode{
    width: 7em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#QRCodediv .QRCode div {
    color: white;
    margin-top: 0.2em;
    margin-bottom: 0.3em;
    font-weight: 600;
    font-size: 1.3em;
}

#QRCodediv .QRCode img {
    width: 7em;
    aspect-ratio: 1 / 1;
}

.pictureContainer{
    width: 100%;
    height: 7em;
    overflow: hidden;
}

.picture{
    width: 100%;
    height: 100%;
    background-image: url("../img/headbg.png");
    background-size: cover;
    animation: scaleGain 20s ease-in-out infinite;
}

ul{
    list-style: none;
}

.listContainer{
    width: 100%;
    background-color: white;
    min-height: 60rem;
    list-style: none;
    padding-top: 2em;
    list-style: none;
}

.listContainer a {
    text-decoration: none;
    color: #1C378F;
}

.listArea{
    width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 1em;
}

.colArea{
    width: 15%;
    padding: 0 2em;
    text-align: center;
    z-index: 1;
}

.colTop{
    background-color:rgba(27,55,148,0.8);
    color: white;
    font-size: 1.5em;
    min-height: 4em;
    margin-top: -2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.colTop svg{
    display: none;
}

.colBox{
    min-height: 40em;
}

.bodyArea{
    width: 78%;
    margin-bottom: 2em;
    box-sizing: border-box;
}

.bodyHead{
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
    line-height: 1.5em;
    padding: 0.25em 0 1.5em;
}

.wp_column a{
    text-align: center !important;
    min-height: 2.5em !important;
    /* color: white !important; */
    margin: 0 !important;
    font-size: unset !important;
    font-weight: unset !important;
    background: unset !important;
    transition: all 200ms ease-out;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wp_listcolumn{
    box-sizing: border-box;
    border-left: 1px #ccc solid;
    border-right: 1px #ccc solid;
}

.wp_listcolumn > li > a{
    background-color: rgba(27, 55, 148, 0.6) !important;
    color: white !important;
}

/* .wp_column{
    height: 3em;
} */

.wp_column a:hover{
    color: #5168B3 !important;
}

.wp_listcolumn > li > a:hover{
    color: white !important;
    background-color: rgba(27, 55, 148, 0.8) !important;
}

.wp_listcolumn .wp_column a .column-name{
    line-height: unset !important;
    padding: unset !important;
}

.wp_listcolumn .wp_column:not(.parent) .selected{
/*     font-weight: bolder !important; */
    background-color: rgba(27, 55, 148, 1) !important;
}

.wp_listcolumn .wp_column.parent .selected{
/*     font-weight: bolder !important; */
    background-color: #E3E6F2 !important;
}

.wp_listcolumn .wp_column.parent > a{
    font-weight: bolder !important;
    background-color: rgba(27, 55, 148, 1) !important;
}

.wp_listcolumn .wp_subcolumn .wp_column a .column-name{
    line-height: unset !important;
    padding-left: unset !important;
    padding: unset !important;
}

.wp_listcolumn .wp_column a{
    height: 3em;
}


.listA{
    display: flex;
    gap: 2em;
    height: 5em;
    align-items: center;
    border-bottom: 0.1em #A5BAD7 solid;
}

.listATime{
    display: flex;
    flex-wrap: wrap;
}

.listATimeDay{
    font-weight: bolder;
    font-size: 2em;
    border-bottom: 0.17em #A5BAD7 solid;
    color: #1C378F;
    text-align: center;
}

.listATimeMonth{
    font-size: 0.65em;
    color: #A5BAD7;
}

.listAData{
    line-height: 5em;
    font-weight: bolder;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 83%;
    height: 100%;
}

.listAData a{
    display: block;
    width: 56em;
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listAData a:hover{
    background-color: #E3E6F2;
    transform: rotateX(3deg) translateY(-0.1em);
    transition: all 200ms ease-out;
}

.wp_paging{
    font-size: unset !important;
    padding-right: 2em;
}

.bodyBox > div > div[id$=article]{
    margin-top: 1em;
}

.wp_entry img{
    max-width: 98% !important;
    height: auto !important;
}

/* .wp_subcolumn{

} */

@media (max-width:992px) {

    #main {
        font-size: clamp(0.1rem, 1.3vw, 5rem);
    }

    #address {
        width: 36em;
    }

    .colTop{
        font-size: 1.2em;
        margin-top: -2.5em;
    }

    .colBox{
        font-size: 1em;
    }

    .pictureContainer{
        height: 3em;
    }

    .wp_column a{
        min-height: 1.5em !important;
    }

    .listAData a{
        width: 41em;
    }

    .locationBox{
        position: relative;
        right: 3%;
    }
}

@media (max-width:768px) {
    body {
        background-position: left top;
        background-size: 300%;
    }

    #main {
        width: 100%;
        aspect-ratio: unset;
        font-size: clamp(0.1rem, 3.5vw, 5rem);
    }

    .navigationMobile {
        width: 100%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5em;
        background-color: #1C378F;
        align-items: center;
    }

    .navigationMobile a {
        width: 100%;
        height: 3em;
        line-height: 3em;
        color: white;
        text-decoration: none;
        text-align: center;
    }

    .navigationMobile a:hover {
        background-color: #182d73;
    }

    .navigationMobile a:hover {
        width: 100%;
        scale: 1.2;
        transition: all 200ms linear;
    }

    .navigationMobile div {
        width: 100%;
        height: 100%;
    }

    .navigation {
        display: none;
    }

    #header {
        width: calc(100% - 2em);
        aspect-ratio: 370 / 37;
        padding: 1em;
        padding-bottom: 0.5em;
    }

    #header img {
        /* width: auto; */
        scale: 1.5;
        height: 100%;
        aspect-ratio: unset;
        object-fit: contain;
    }

    #menu {
        height: 100%;
        aspect-ratio: 1 / 1;
        display: flex;
    }

    #hamberger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 20%;
        cursor: pointer;
        transition: all 200ms ease-out;
    }

    #hamberger div {
        width: 65%;
        height: 5%;
        background: white;
        transition: all 200ms linear;
    }

    .hambergerActive {
        gap: 0 !important;
    }

    .hambergerActive div:nth-child(2) {
        display: none;
    }

    #menu+div {
        display: none;
    }

    #menu {
        display: flex;
    }

    .navigationMobile > div:first-child {
        padding: 0.5em;
        color: white;
        display: flex;
        flex-wrap: wrap;
    }

    #search {
        aspect-ratio: 370 / 20;
        justify-content: space-between;
    }

    #search input {
        font-size: 1em;
    }

    #search+div {
        text-align: center;
        font-size: 0.75em;
    }

    #footer {
        justify-content: center;
        background-size: 295%;
        background-position: 45% 100%;
    }

    #QRCodediv {
        align-items: center;
        margin-right: unset;
        aspect-ratio: unset;
        padding: 1em 0;
    }

    #address {
        gap: 1em;
        margin-top: 1.5em;
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    #address li {
        width: 24em;
        letter-spacing: 0.02em;
        height: 2em;
        gap: 1.5em;
    }

    .listContainer{
        padding-top: 0;
        min-height: 50em;
    }

    .listArea{
        width: 100%;
        flex-wrap: wrap;
    }

    .colArea{
        width: 100%;
        padding: 0;
    }

    .colBox{
        display: none;
        transition: all 1s ease-out;
        min-height: unset;
    }

    .colTop{
        background-color:rgba(27,55,148,1);
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5em;
        margin-top: unset;
        min-height: 2.5em;
    }

    .colTop svg{
        width: 0.75em;
        height: 0.75em;
        transition: all 200ms linear;
        display: block;
    }

    .colTop:hover{
        cursor: pointer;
    }

    .bodyArea{
        width: 100%;
        padding: 0 0.7em;
    }

    .bodyHead{
        width: 100%;
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }

    .locationBox{
        text-align: right;
        font-size: 0.75em;
        position: unset;
    }

    .pictureContainer{
        display: none;
    }

    .wp_column a{
        border-top: unset !important;
        margin: unset !important;
    }

    .listAData a{
        width: 21em;
    }
}

nav#navigation div[frag] > *{
    display: none;
}
