/* http: //jigsaw.w3.org/css-validator/ */
body,html{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: sans-serif ;
}
body:not(.wp-admin) *{
    position: relative;
    box-sizing: border-box;
}
:root{
    --maincolor: #4B2473;
    --subcolor: #9B5224
}
.skip{
    position: absolute;
    left: -9000px;
}
.wrapper{
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
}
.fr{
    float: right;
    margin: 0 0 2rem 2rem;
}
.fl{
    float: left;
    margin: 0 2rem 2rem 0;
}
img{
    max-width: 100%;
    display: block;
}
a{
    opacity: 1;
    transition: 0.3s;
}
a:hover{
    opacity: 0.7;
}
header .wrapper,#breadcrumbs,footer .wrapper,#pagetop{
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 30px;
}

#mainvisual{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100px;
    color: #fff;
    background: linear-gradient(to right,var(--maincolor),var(--subcolor));
}
.home #mainvisual{
    background: none;
    max-height: 500px;
    width: 100%;
    overflow-x: hidden;
}
.home #mainvisual .wrapper{
    padding: 0;
    height: 100%;
    max-height: 500px;
}
.home #mainvisual>img{
    position: absolute;
	z-index: 10;
	opacity: 0;
    left: 0;
    top: 0;
    width: 120%;
    max-width: 120%;
    height: 100%;
    object-fit: cover;
    object-position: center;
	animation-name: slidebg;
	animation-duration: 20s;
	animation-iteration-count: infinite;
}
@keyframes slidebg {
	0%{
		opacity: 0;
	}
	20%{
		opacity: 1;
	}
	80%{
		opacity: 0;
	}
	100%{
		opacity: 0;
		z-index: 0;
	}
}

.home #mainvisual>img:nth-child(1){
    animation-delay: 0; 
}
.home #mainvisual>img:nth-child(2){
    animation-delay: 5s; 
}
.home #mainvisual>img:nth-child(3){
    animation-delay: 10s; 
}
.home #mainvisual>img:nth-child(4){
    animation-delay: 15s; 
}
.control{
    display: block;
    position: absolute;
    bottom: -30px;
    width:100%;
    text-align: center;
    z-index: 200;
}
.control label{
    display: inline-block;
    cursor: pointer;
    opacity: 1;
}
.control label:hover{
    opacity: 0.5;
}
.control label:has(input[type="radio"]:checked){
    opacity: 0.5;
    cursor:default
}
.control label img{
    z-index: 300;
}
header:has(input[type="radio"]#stop:checked) #mainvisual>img{
    animation-play-state: paused;
}
header:has(input[type="radio"]#play:checked) #mainvisual>img{
    animation-play-state: running;
}
label:focus{
    outline: 2px solid blue;
}
  
.home input{
    -webkit-appearance :none;
    appearance :none;
    width: 15px;
    height: 15px;
    z-index: 0;
    position: absolute;
    left: -2.5px;
    top: 0;
}
.control img{
    height: 20px;
    width: 20px;
}

#mainvisual .wrapper img{
    width: 500px;
    margin: 0 auto;
    z-index: 100;
}
section{
    padding: 3rem 0;
}
section::after{
    content: '';
    display: block;
    clear: both;
}
#otherlinks{
    padding-bottom: 7em;
}
#breadcrumbs{
    font-size: 0.9rem;
    margin:1rem auto ;
}
.catch{
    font-size: 1.1rem;
    margin: 0 auto;
    font-weight: bold;
}
h1{
    font-size: 1.7em;
}
h2{
    padding-left: 15px;
    font-size: 1.3rem;
    margin: 3em auto 1em;
}
main h2:first-of-type{
    margin-top: 0;
}
h3{
    font-size: 1.1rem;
    padding-left: 15px;
    margin: 3em auto 1em;
}
h2::before{
    content: '';
    background: var(--subcolor);
    display: block;
    width: 8px;
    height: 1.2em;
    position: absolute;
    left: 0;
    top: 4px;
}
h3::before,h3::after{
    content: '';
    background: var(--subcolor);
    display: block;
    width: 8px;
    height: 8px;
    position: absolute;
    left: 0;
    top: 4px;
}
h3::after{
    top: 14px;
}
table{
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #ccc;
}
table th,table td{
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
}

.flex{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
#mainlinks .flex>*{
    width: calc((100% - 30px) / 2);
}
#otherlinks .flex{
    gap: 0;
    flex-wrap: wrap;
}
#otherlinks .flex>*{
    width: calc(50%);
}


#mainlinks,
#otherlinks{
    background: rgba(75, 36, 115,0.05);
}
#mainlinks a{
    color: #000;
    text-decoration: none;
}
#aboutus h2{
    padding: 0;
    text-align: center;
    margin: 0 auto 3rem;
}
#aboutus h2::before,
footer h2::before{
    display: none;
}
.information{
    margin: 1rem auto;
    padding: 0;
}
.information li{
    margin: 0;
    display: block;
    padding:0.5rem 0;
    border-bottom: 1px dashed #d2b8ec;
}
.nav-links{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.25rem;
}
.nav-links>*{
    display: flex;
    padding: 0.25rem 0.5rem;
    align-items: center;
    justify-content: center;
    background: #4B2473;
    color: #fff;
    text-decoration: none;
}
.nav-links>span.current{
    background: transparent;
    color: #000;
}
#pagetop{
    display: flex;
    justify-content: flex-end;
    margin: 1rem auto;
}
.home #pagetop{
    margin: -5rem auto 1rem;}

footer{
    padding: 1rem ;
    border-top: 3px solid var(--maincolor);
}
footer h2{
    font-size: 1em;
    padding: 0;
    margin: 2rem auto 0;
}
#footmenu .flex{
    gap: 1rem;
    justify-content: flex-start;
}
#footmenu li{
    width: fit-content;
}

@media all and (max-width: 560px){
    #otherlinks .flex,#mainlinks .flex{
        flex-direction: column;
    }
    #otherlinks .flex>*,#mainlinks .flex>*{
        width: 100%;
    }
    .fl,.fr{
        float: none;
        margin: 0 auto 2rem;
        display: block;
    }
}