/* http: //jigsaw.w3.org/css-validator/ */
html,body{
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
*{
	box-sizing: border-box;
    position: relative;
}
body{
    font-family: "FP-ヒラギノUD角ゴ StdN W3";
}
img{
    max-width: 100%;
    height: auto;
}
main *{
    line-height: 180%;
}
h1, h2, h3, strong, th,
#sitetitle, #mainmenu a, #mainvisual *, #ocbt {
    font-family: "FP-ヒラギノUD角ゴ StdN W6";
}

ul li::marker{
    color: #AD002D;
}
ul{
    padding-left: 1.2rem;
}

.wrapper{
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    margin: 0 auto;
    display: block;
}
.sp,#ocbt{
    display: none;
}
.pc{
    display: inline;
}
.flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
a,a::after{
    transition: 0.3s;
}
strong,em{
    color: #E50000;
}
em{
    font-style: normal;
}

nav ul{
    list-style:none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    width: fit-content;
    margin: 0 ;
    padding: 0;
}
nav li{
    display: inline;
}
nav a{
    display: inline-block;
    margin: 0;
    padding: 0;
}

/*header*/
#sitetitle{
	color: #000;
	font-weight: normal;
	padding:0;
    margin: 2rem 0;
    display: flex;
    align-items: center;
}
#sitetitle a{
	text-decoration: none;
	color: #000;
	font-size: 1.6rem;
}
header .flex{
    flex-wrap: wrap;
}

#mainmenu a{
    text-decoration: none;
    color: #000;
    display: block;
    padding: 1rem 0;
}
#mainmenu a::after{
    position: absolute;
    bottom: 0.5rem;
    display: block;
    width: 100%;
    content: '';
    height: 2px;
    border-radius: 5px;
    transition: 0.3s;
}
#mainmenu a.current::after,
#mainmenu a:hover::after{
    background: #AD002D;

}


#mainvisual{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-image: url(../images/mainvisual.png);
    background-repeat: no-repeat;
    background-position: center;
    color: #fff;
    min-height: 150px;
    background-size:cover;
}
.page-index #mainvisual{
    min-height: 300px;
    max-width: 100%;
}
#mainvisual p{
    font-size: 1.1rem;
    text-shadow: #AD002D 1px 0 10px;
}
#mainvisual span{
    display: block;
}
#mainvisual h1{
    text-shadow: #AD002D 1px 0 10px;
    font-size: 1.8rem;
    font-weight: normal;

}
/*main*/
#breadcrumbs{
    font-size: 0.9rem;
}
main{
    padding:0.5rem 0 2rem;
}
main .wrapper{
    max-width: 800px;
}
main h2{
    margin: 4rem auto 1.5rem;
    padding: 0.5rem 1rem 0.5rem 55px;
}
main h2::before{
    content: url(../images/h2bg.svg);
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: 0;
}
main h3{
    margin: 4rem auto 1.5rem;
    padding: 0.5rem 1rem 0.5rem 35px;
}
main h3::before{
    content: url(../images/h3bg.svg);
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    left: 0;
    top: 0.75rem;
}
table{
    border-collapse: collapse;
    width: 100%;
    border-bottom: 1px solid #999;
    margin: 0 auto 2rem;
}
tr{
    border-top: 1px solid #999;
}
th,td{
    padding: 1rem;
    text-align: left;
}
th{
    background: #F8F8F8;
    white-space: nowrap;
}
#map{
    width: 100%;
    aspect-ratio: 16/9;
}
#map iframe{
    width: 100%;
    height: 100%;
    position: absolute;
}
/*footer*/
#pagetop{
    text-align: right;
    padding: 1rem 20px;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
#pagetop img{
    display: block;
}
#pagetop a:hover{
    opacity: 0.7;
}
footer{
    background: #AD002D;
    color: #fff;
    padding: 1rem 0;
}
footer h2{
    font-family: "FP-ヒラギノUD角ゴ StdN W3";
    font-size: 1rem;
    font-weight: bold;
    margin: 1rem 0 0;
}
footer a{
    color: #fff;
}
footer a:hover{
    text-decoration: none;
}
footer span{
    margin-right: 1rem;
}

@media all and (max-width: 840px){
    
    #ocbt{
        display: block;
        font-size: 0.7rem;
        text-align: center;
        line-height: 1.2rem;
        border: none;
        color: #000;
        background: none;
        padding-top: 1rem;
    }
    #ocbt .bar::before,
    #ocbt .bar::after,
    #ocbt .bar{
        width: 30px;
        margin: 0 auto;
        height: 2px;
        background: #000;
        display: block;
        transition: 0.3s;
    }
    #ocbt .bar::before,
    #ocbt .bar::after{
        content: '';
    }
    #ocbt .bar{
        margin-bottom: 0.7rem;
    }
    #ocbt .bar::before{
        transform: translateY(-10px);
    }
    #ocbt .bar::after{
        transform: translateY(8px);
    }
    #ocbt[aria-expanded="true"] .bar{
        background: transparent;
    }

    #ocbt[aria-expanded="true"] .bar::before{
        transform: rotate(30deg) translateX(1px);
    }
    #ocbt[aria-expanded="true"] .bar::after{
        transform: rotate(-30deg) translateX(1px);
    }
    #mainmenu{
        visibility: hidden;
        height: 0;
        width: calc(100% + 40px);
        margin:0 -20px;
        z-index: -1;
    }
    #ocbt[aria-expanded="true"]+#mainmenu{
        visibility: visible;
        height: 168px;
        overflow: auto;
        z-index: 100;
    }
    #mainmenu ul{
        display: block;
        width: 100%;
    }
    #mainmenu li{
        display: block;
        border-top: 1px solid #000;
    }
    #mainmenu a{
        padding: 10px 20px;
    }
    #mainmenu a::after{
        display: none !important;
    }
}


@media all and (max-width: 560px){
    #sitetitle a{
        font-size: 1.3rem;
    }
    #ocbt{
        font-size: 0.6rem;
    }
    .sp{
        display: inline;
    }
    .pc{
        display: none;
    }
    th,td{
        display: block;
    }
    footer nav ul{
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
    }
}
@media all and (max-width: 380px){
    header .flex{
        padding: 0 10px;
    }
    #sitetitle a{
        font-size: 5.5vw;
    }
    #ocbt .bar::before,
    #ocbt .bar::after,
    #ocbt .bar{
        width: 25px;
    }
    #ocbt .bar::before{
        transform: translateY(-8px);
    }
    #ocbt .bar::after{
        transform: translateY(6px);
    }
}