header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0a0a16;
    padding: 0 20px;
}
@media only screen and (max-width: 960px) {
    header{
        padding: 0 5px;
    }
}

header .flex{
    display: flex;
    align-items: center;
    text-align: center;
}

header .flex .img{
    margin-right: 10px;
    width: 90px;
    overflow: hidden;
    position: relative;
}
@media only screen and (max-width: 960px) {
    header .flex .img{
        width: 50px;
        margin-right: 0;
    }
}

header .flex .right{
    padding: relative;
}

header .flex h2{
    font-family: "BIZ UDPMincho", serif;
    font-weight: 200;
    font-style: normal;
    font-size: 18px;
    color: #fff;
}
@media only screen and (max-width: 960px) {
    header .flex h2{
        font-family: "BIZ UDPMincho", serif;
        font-weight: 200;
        font-size: 10px;
    }
}

header .flex h1{
    font-family: "BIZ UDPMincho", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    color: #fff;
    margin-top: 3px;
}
@media only screen and (max-width: 960px) {
    header .flex h1{
        font-family: "BIZ UDPMincho", serif;
        font-weight: 400;
        font-size: 16px;
    }
}
 
header .flex h3{
    margin: 3px 0 0 3px;
    font-family: "a-otf-ud-shin-go-pr6n", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    color: #fff;
}
@media only screen and (max-width: 960px) {
    header .flex h3{
        font-family: "a-otf-ud-shin-go-pr6n", sans-serif;
        font-weight: 400;
        font-size: 8px;
    }
}

header .bar{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    text-align: center;
}
@media only screen and (max-width: 960px) {
    header .bar{
        gap: 10px;
    }
}

header .er{
    display: flex;
    flex-direction: column;
    text-align: center;
}

header .er p{
    font-family: "a-otf-ud-shin-go-pr6n", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    color: #fff;
    margin-bottom: 10px;
}
@media only screen and (max-width: 960px) {
    header .er p{
        font-size: 6px;
        margin-bottom: 15px;
    }
}

header .er img{
    margin-top: 30px;
    width: 80px;
}
@media only screen and (max-width: 960px) {
    header .er img{
        width: 50px;
    }
}

header .er:hover{
    transform: scale(1.2,1.2);
    transition-duration: .3s;
}

header .tel img{
    margin: 30px 0 25px 0;
    width: 80px;
}
@media only screen and (max-width: 960px) {
    header .tel img{
        width: 50px;
    }
}

header .tel:hover{
    transform: scale(1.2,1.2);
    transition-duration: .3s;
}

header .access img{
    margin: 30px 0 25px 0;
    width: 52px;
}
@media only screen and (max-width: 960px) {
    header .access img{
        width: 30px;
    }
}

header .access:hover{
    transform: scale(1.2,1.2);
    transition-duration: .3s;
}

header .menu{
    border-left: solid 2px #fff;
    padding-left: 30px;
}
@media only screen and (max-width: 960px) {
    header .menu{
        padding-left: 10px;
    }
}

header .menu img{
    padding-top: 10px;
    width: 50px;
}
@media only screen and (max-width: 960px) {
    header .menu img{
        width: 30px;
    }
}

header .menu img:hover{
    transform: scale(1.2,1.2);
    transition-duration: .3s;
}

main{
    font-family: "a-otf-ud-shin-go-pr6n", sans-serif;
    font-style: normal;
    background-image: linear-gradient(180deg, rgba(10, 10, 22, 1)20%, rgba(194, 107, 67, 1) 95%, rgba(240, 205, 138, 1));
}

main .touin .aa{
    max-width: 100%;
}

.container{
    width: 100%;
    height: 800px;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
}
@media only screen and (max-width: 960px){
    .container{
        height: 400px
    }
}
  
.image {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    background-size: cover;
    background-position: center center;
    z-index: 2;
    animation: image-switch-animation 15s infinite;
}
  
.src1 {
    background-image: url(../img/main1.jpg);
}

.src2 {
    background-image: url(../img/main2.jpg);
}

.src3 {
    background-image: url(../img/main3.jpg);
}
  
.image:nth-of-type(1) {
    animation-delay: 0s;
}

.image:nth-of-type(2) {
    animation-delay: 5s;
}

.image:nth-of-type(3) {
    animation-delay: 10s;
}
  
@keyframes image-switch-animation {
    0%{ opacity: 0;}
    20%{ opacity: 1;}
    33%{ opacity: 1;}
    63%{ opacity: 0;
          transform: scale(1.1);
                     z-index:1;
    }
    100%{ opacity: 0;}
}

main .touin .aa p{
    position: absolute;
    line-height: 160px;
    top: 35%;
    left: 35%;
    font-family: "BIZ UDPMincho", serif;
    font-weight:200;
    font-style: normal;
    writing-mode: vertical-rl;
    font-size: 700%;
    color: #fff;
    max-width: 100%;
    height: 800px;
    z-index: 3;
}
@media only screen and (max-width: 960px){
    main .touin .aa p{
        font-size: 400%;
        height: 500px;
        line-height: 100px;
        top: 18%;
        left: 18%;
    }
}

main .aaa{
    font-family: "BIZ UDPMincho", serif;
    font-weight:400;
    font-style: normal;
}

main .aaa .title{
    text-align: center;
    font-size: 35px;
    padding: 200px 0;
    color: #fff;
    line-height: 300px;
    padding-top: 300px;
    height: 1600px;
    color: #fff;
}
@media only screen and (max-width: 960px){
    main .aaa .title{
        font-size: 18px;
        padding: 100px 0;
        height: 1000px;
        line-height: 300px;
    }
}

main .square{
    background-color: #eeeeef;
    padding-bottom: 100px;
    margin-right: 300px;
}
@media only screen and (max-width: 960px){
    main .aaa .square{
        margin-right: 50px;
        padding-bottom: 50px;
    }
}


main .aaa .wa{
    position: absolute;
    font-size: 150px;
    background-image: linear-gradient(90deg, rgba(6, 65, 115, 1), rgba(199, 121, 116, 1)80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 80px 0 0 80px;
    z-index: 1;
}
@media only screen and (max-width: 960px){
    main .aaa .wa{
        font-size: 70px;
        padding: 20px 0 0 20px;
    }
}

main .aaa .text{
    position: relative;
    font-size: 18px;
    line-height: 35px;
    color: #333;
    margin-left: 350px;
    padding: 300px 70px 0 10px;
    z-index: 3;
}
@media only screen and (max-width: 960px){
    main .aaa .text{
        font-size: 10px;
        padding: 10px 10px 0 10px;
        margin-left: 20px;
        padding-top: 190px;
        line-height: 20px;
    }
}

main .aaa .text a{
    color: #000;
    border-bottom: solid 1px #000;
}

main .aaa .text a:hover{
    color: #4d9bc1;
    border-bottom: solid 1px #4d9bc1;
}

main .shinryo{
    background-color: #363c52;
    margin: 200px 0;
    padding:50px 0;
}

.titleback {
    margin: 100px;
	position: relative;
	font-size: 40px;
	border-bottom: 2px solid #fff;
    color: #fff;
}
@media only screen and (max-width: 960px){
    .titleback{
        margin: 20px;
        font-size: 30px;
    }
}

.titleback span {
	position: relative;
}

.titleback::before {
	content: attr(data-en);
	position: absolute;
    top: -90px;
	color: rgba(255, 255, 255, 0.2);
	font-size: 100px;
}
@media only screen and (max-width: 960px){
    .titleback::before{
        top: -22px;
        font-size: 30px;
    }
}

main .shinryo .kamoku{
    display: flex;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 300;
    color: #fff;
}
@media only screen and (max-width: 960px){
    main .shinryo .kamoku{
        display: grid;
        grid-template-columns: repeat(3,auto);
        font-size: 14px;
    }
}

main .shinryo img{
    width: 100px;
    margin: 60px 50px 10px;
}
@media only screen and (max-width: 960px){
    main .shinryo img{
        width: 60px;
        margin: 30px 40px 5px;
    }
}

main .shinryo .only img{
    width: 50px;
}
@media only screen and (max-width: 960px){
    main .shinryo .only img{
        width: 30px;
    }
}

main .shinryo .only{
    text-align: center;
    font-size: 17px;
    margin: 80px 0;
    color: #fff;
}
@media only screen and (max-width: 960px){
    main .shinryo .only{
        font-size: 14px;
        margin: 40px 0;
    }
}

main .shinryo .only span{
    background: linear-gradient(transparent 50%, #c77974 20%);
}

main .gairai h2{
    margin: 150px 0 10px 40px;
    font-weight: 700;
    font-size: 50px;
    color: #233b6c;
    text-align: left;
}

main .tablex{
    overflow-x: scroll;
}

main table {
    border-spacing: 10px;
    width: 1240px;
    text-align: center;
    font-size: 16px;
    background: white;
    box-shadow: 0 3px 10px  #675a66;
    margin: 100px 0 20px 100px;
    padding: 40px;
    flex-shrink: 0;
}
@media only screen and (max-width: 960px){
    main table{
        border-spacing: 5px;
        width: 900px;
        margin: 30px 20px 10px;
        padding: 20px;
        font-size: 14px;
    }
}

main table th,td {
    padding: .5em 1em;
}
@media only screen and (max-width: 960px){
    main table th,td{
        padding: .4em .1em;
    }
}

main table th {
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    font-weight: 600;
}
@media only screen and (max-width: 960px){
    main table th{
        border-top: 1.5px solid #333;
        border-bottom: 1.5px solid #333;
        font-weight: 300;
    }
}

main table .sat{
    color: #4d9bc1;
}

main table .a{
    background-color: #c77974;
    color: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    font-weight: 600;
}
@media only screen and (max-width: 960px){
    main table .a{
        padding: 10px;
    }
}

main table .b{
    background-color: #363c52;
    color: #fff;
    padding: 5px 20px;
    border-radius: 30px;
    font-weight: 600;
}
@media only screen and (max-width: 960px){
    main table .b{
        padding: 10px;
    }
}

main table tr:nth-of-type(1) td:nth-child(1){
    font-weight: 600;
    border-bottom: solid 1.5px #333;
}

main table tr:nth-of-type(2) td:nth-child(1){
    border-bottom: solid 1.5px #333;
}

.am-chart {
    width: 80px;
    height: 80px;
    margin-left: 20px;
    margin-top: 10px;
    border-radius: 50%;
    align-items: center;
    border: solid 1px #663333;
    background-image: conic-gradient(#fff 75%, #c77974 75% 100%);
}
@media only screen and (max-width: 960px){
    .am-chart{
        width: 60px;
        height: 60px;
        margin-left: 30px;
    }
}

.pm-chart {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin-left:20px;
    margin-top: 10px;
    border-radius: 50%;
    border:  solid 1px#663333;
    background-image: conic-gradient(#fff 8.3%, #363c52 8.3% 41.5%, #fff 41.5% 100%);
}
@media only screen and (max-width: 960px){
    .pm-chart{
        width: 60px;
        height: 60px;
        margin-left: 30px;
    }
}

main .ex{
    display: flex;
    justify-content: left;
    align-items:start;
    margin: 0 0 200px 100px;
}
@media only screen and (max-width: 960px){
    main .ex{
        flex-direction: column;
        margin: 20px 0 200px 20px;
    }
}

main .left{
    display: flex;
    justify-content: center;
    align-items: center;
}

main .center{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 50px;
}
@media only screen and (max-width: 960px){
    main .center{
        padding: 15px 0 0 0;
    }
}

main .left h3{
    width: fit-content;
    font-weight: 400;
    font-size: 15px;
    border: solid 2px #fff;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    padding: 5px 8px;
}
@media only screen and (max-width: 960px){
    main .left h3{
        font-size: 12px;
    }
}

main .left p{
    font-size: 15px;
    color: #fff;
    text-align: center;
    padding-top: 5px;
    padding-left: 10px;
}
@media only screen and (max-width: 960px){
    main .left p{
        font-size: 12px;
    }
}

main .center h3{
    width: fit-content;
    font-weight: 400;
    font-size: 15px;
    border: solid 2px #fff;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    padding: 5px 8px;
}
@media only screen and (max-width: 960px){
    main .center h3{
        font-size: 12px;
    }
}

main .center p{
    font-size: 15px;
    color: #fff;
    text-align: center;
    padding-top: 5px;
    padding-left: 10px;
}
@media only screen and (max-width: 960px){
    main .center p{
        font-size: 12px;
    }
}

main .center p a{
    text-decoration: none;
    color: #fff;
    border-bottom: solid 2px #fff;
}

main .center p a:hover{
    color: #9beeff;
    border-bottom: solid 2px #9beeff;
}

main .map .bottom{
    display: flex;
    justify-content:center;
    align-items: center;
    padding-bottom: 80px;
}
@media only screen and (max-width: 960px){
    main .map .bottom{
        flex-direction: column;
        justify-content: left;
        text-align: left;
    }    
}

main .map .hidari iframe{
    width: 800px;
    height: 450px;
}
@media only screen and (max-width: 960px){
    main .map .hidari iframe{
        width: 380px;
        height: 250px;
        margin-bottom: 30px;
    }
}

main .map .migi{
    padding-left: 50px;
}
@media only screen and (max-width: 960px){
    main .map .migi{
        padding-left: 0;
    }
}

main .map .migi nav ul{
    list-style: none;
}

main .map .migi nav ul li{
    position: relative;
    padding: 0 0 5px 20px;
    font-size: 16px;
    color: #fff;
}
@media only screen and (max-width: 960px){
    main .map .migi nav ul li{
        font-size: 12px;
    }
}


main .map .migi nav li a{
    text-decoration: none;
    color: #fff;
    border-bottom: solid 2px #fff;
}

main .map .migi nav li a:hover{
    color: #9beeff;
    border-bottom: solid 2px #9beeff;
}

main .map .migi nav ul li::before{
    position: absolute;
    content: '';
    display: block;
    top: 0.5em;
    left: 0;
    width: 10px;
    height: 10px;
    border-right: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
}

main .map .migi img{
    width: 380px;
    margin-top: 30px;
}
@media only screen and (max-width: 960px){
    main .map .migi img{
        width: 280px;
        margin-top: 10px;
    }
}

main .news{
    width: 100%;
    background-color: #fff;
    padding: 50px 0 400px 100px;
    margin-top: 200px;
}
@media only screen and (max-width: 960px){
    main .news{
        padding: 20px 0 400px 20px;
    }
}

main .news h1{
    color: #333;
    font-size: 28px;
    font-weight: 400;
}
@media only screen and (max-width: 960px){
    main .news h1{
        font-size: 20px;
    }
}

main .news h1 span{
    font-size: 18px;
    color: #999999;
}
@media only screen and (max-width: 960px){
    main .news h1 span{
        font-size: 14px;
    }
}

.syokuin{
    padding-bottom: 100px;
}

.syokuin h2{
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    color: #fff;
    margin: 150px 0 10px 0;
}
@media only screen and (max-width: 960px){
    .syokuin h2{
        font-size: 12px;
    }
}

.syokuin .botan a{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 210px;
    margin:0 auto;
    padding: .9em 2em;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.syokuin .botan a::after {
    transform: rotate(45deg);
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    content: '';
    transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

.syokuin .botan:hover{
    transform: scale(1.1,1.1);
    transition-duration: .3s;
}

footer{
    max-width: 100%;
    height: 100px;
    background-color: #0a0a16;
}

footer p{
    color: #fff;
    text-align: center;
    padding-top: 45px;
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
}