html,body,header,article,section,div,nav,ul,li,a,p,h1,h2,h3,footer {
    margin: 0;
    padding: 0;
}

body {
    font-size: 16px;
    font-family: 'Open Sans', 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
}

@media(max-width: 767.9px) {
    body {
        font-size:12px;
    }
}

a {
    display: block;
    text-decoration: none;
    color: #000;
}

ul {
    list-style-type: none;
}

img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    z-index: 999;
/*     overflow-x:hidden; */
}

header.active {
   position:relative;
    padding:1rem 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    width: 3rem;
    margin-left: 1.5rem;
    display: none;
}
header.active .header-logo{
    display:block;
}

nav {
    margin: 0 auto;
}

nav ul {
    display: flex;
    justify-content: space-around;
}

nav ul li {
    text-align: center;
    line-height: 1rem;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
}

nav ul li a {
    padding: 0.5rem 2rem;
}

nav ul li a:hover {
    background-color: #aaaaaa99;
    border-radius: 100vh;
}

.nav-span {
    font-size: 0.5rem;
    letter-spacing: 0.05rem;
}

.menu-button {
    width: 2rem;
    margin-right: 1.5rem;
    display: none;
}

@media(max-width: 767.9px) {
header{
height:15%;
}
.header{
height:100%;}
nav {
        width:100%;
        position: relative;
        transition: 0.5s;
        transform: translateY(-100vh);
    }

    nav.panelactive {
        transform: translateY(0);
    }

    nav:after {
        content: "";
        width: 100%;
        height: 100vh;
        background-color: rgb(136 178 225);
        position: absolute;
        top: 34.5%;
        /*         left: -50%; */
        z-index: -1;
        /*         border-radius: 50%; */
        opacity: 0.95;
    }

    nav ul {
        flex-direction: column;
        margin: 5rem auto;
        width: 60%;
transform:translateY(38vh);
    }
header.active nav.panelactive:after{
top:0;
}
header.active nav.panelactive ul{
transform:translateY(10vh);
}
    nav ul li {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #000;
        padding-bottom: 1rem
    }

    .menu-button {
        display: block;
        position: absolute;
        right: 2rem;
        top: 2rem;
    }
header.active .menu-button{
margin:0;
right:1.5rem;
}

    .menu-button img {
        display: none;
    }

    .menu-button img.open.active {
        display: block;
    }

    .menu-button img.close.active {
        display: block;
    }
    header.active nav{
        position:absolute;
        height:100vh;
    }
    header.active nav.panelactive{
        transform: translateY(43vh);
    }

.nav-span {
    font-size: 0.5rem;
    letter-spacing: 0.05rem;
}
}

.main-image {
    position: relative;
}

.main-image:after {
    content: "";
    width: 100%;
    padding-top: 66.5%;
    background-image: linear-gradient(0deg, rgb(184 182 197), rgb(65 140 182));
    position: absolute;
    top: 0;
    left: 0;
    mix-blend-mode: screen;
}

.wide {
    display: block;
}

.small {
    display: none;
}

@media(max-width: 767.9px) {
    .wide {
        display:none;
    }

    .small {
        display: block;
    }

    .main-image:after {
        padding-top: 150%;
    }
}

.first-view {
    position: relative;
}

.first-view-wrap {
    position: absolute;
    top: 26%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: 100%;
    max-width: 900px;
    justify-content: space-evenly;
}

.first-view-logo {
    width: 28%;
}

.first-view-inner {
    width: 23rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.first-view-inner h1 {
    font-size: 2rem;
    letter-spacing: 0.4rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    line-height: 3.5rem;
    text-shadow: 0 0 15px #fff;
    padding-left: 0.2rem;
    width: 100%;
    text-align: center;
}

.pop-tel {
    width: 23rem;
    margin: 0 auto;
}

.pop-tel-catch {
    display: block;
    position: relative;
    letter-spacing: 0.1rem;
}

.pop-tel-catch:before {
    background-color: #000;
    content: "";
    width: 0.1rem;
    height: 1.5rem;
    position: absolute;
    top: 0.3rem;
    left: 2rem;
    transform: rotate(-30deg);
}

.pop-tel-catch:after {
    background-color: #000;
    content: "";
    width: 0.1rem;
    height: 1.5rem;
    position: absolute;
    top: 0.3rem;
    right: 2rem;
    transform: rotate(30deg);
}

.pop-tel a {
    width: 100%;
    background-color: rgb(218 116 16);
    border-radius: 100vh;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
    display: flex;
    justify-content: center;
    padding: 0.2rem 0 0.2rem 0 ;
    margin: 1rem auto 0.5rem;
    box-shadow: 0.2rem 0.2rem 0.5rem #666;
}

.pop-tel a img {
    width: 3rem;
    margin-right: 0.6rem;
}

@media(max-width: 767.9px) {
    .first-view-wrap {
        flex-direction:column;
        align-items: center;
        width: 60%;
        top: 18%;
    }

    .first-view-logo {
        width: 60%;
    }

    .first-view-inner h1 {
        font-size: 1.5rem;
        letter-spacing: 0.3rem;
        line-height: 1.7;
        padding-bottom: 1.5rem;
    }

    .pop-tel {
        width: 18rem;
    }

    .pop-tel a {
        font-size: 1.7rem;
    }

    .pop-tel a img {
        width: 2rem;
        margin-right: 0.4rem;
    }
}
section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.section-h2 {
    width: 100%;
    background-color: rgb(0 52 119);
    text-align: center;
    color: #fff;
    margin: 0 auto;
    position: relative;
    padding: 2.5rem 0;
}

.section-h2 h2 {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    font-weight: 500;
}

.section-h2 p {
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
}

.section-h2:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5rem solid rgb(0 52 119);
    border-left: 8rem solid transparent;
    border-right: 8rem solid transparent;
    position: absolute;
    left: 50%;
    top: 7rem;
    transform: translateX(-50%);
}

@keyframes titlePop {
    0% {
        transform: translateY(-1.5rem);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-1.5rem);
    }
}

.section-title {
    animation: titlePop 2s ease-in-out infinite;
}
.section-title.sub-page{
    animation:none;
}


.service-wrap {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-evenly;
    margin: 8rem 0 3rem;
}

.service-inner {
    width: 40%;
    margin: 3rem 0 4rem;
    position: relative;
}

.service-inner h3 {
    font-size: 1.7rem;
    font-weight: 500;
    letter-spacing: 0.2rem;
    padding: 1.2rem;
    position: relative;
}

.service-inner:nth-child(3) h3 {
    padding: 0 1.2rem;
}

.service-inner h3 span {
    background: linear-gradient(transparent 60%, #fc6 60%);
}

.service-inner h3:after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-color: rgb(256 200 130) transparent transparent transparent;
    border-width: 4rem 2.5rem 0 2.5rem;
    position: absolute;
    top: -0.3rem;
    transform: rotate(37deg) scale(0.5,1);
}

.service-inner p {
    display: block;
    background-image: linear-gradient(180deg,#ffffffff 30%,#ffffffaa 85%,#ffffff00);
    position: absolute;
    padding: 1.2rem 1.2rem 3rem;
    line-height: 1.8;
    text-align: justify;
}

.service-inner img {
    margin-top: 1rem;
}

.service-tel {
    text-align: center;
    width: 23rem;
    margin: 5rem auto 10rem;
    position: relative;
}

.service-tel p:nth-child(1) {
    font-size: 1.3rem;
    line-height: 1.7;
}

.service-tel:after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-color: rgb(256 200 130) transparent transparent transparent;
    border-width: 4rem 2.5rem 0 2.5rem;
    position: absolute;
    top: -2rem;
    transform: rotate(37deg) scale(0.5,1);
    right: 0;
}

.service-tel span {
    background: linear-gradient(transparent 60%, #fc6 60%);
}

@media(max-width: 767.9px) {
    .service-wrap {
        flex-direction:column;
        overflow-x: hidden;
        margin-top: 5rem;
    }

    .service-inner {
        width: 100%;
        margin: 3rem auto 4rem;
    }

    .service-inner p {
        font-size: 1rem;
    }

    .service-inner img {
        margin-top: 0;
    }
}

.access-wrap {
    margin: 10rem auto;
    display: flex;
    justify-content: space-evenly;
    width: 90%;
}

.access-inner {
    width: 45%;
}

.access-inner div {
    margin-bottom: 3rem;
    letter-spacing: 0.1rem;
}

.access-inner .th {
    font-size: 0.75rem;
    border-bottom: 1px solid rgb(0 52 119);
    margin-bottom: 0.3rem;
}

.access-inner strong {
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
}

.access-inner img {
    margin-bottom: 1.5rem;
}

.access-inner iframe {
    display: block;
    width: 100%;
    height: 30vh;
    border: none;
}

@media(max-width: 767.9px) {
    .access-wrap {
        flex-direction:column;
        align-items: center;
    }

    .access-inner {
        width: 90%;
    }

    .access-inner iframe {
        height: 60vh;
    }
}

footer {
    padding: 5rem 0 1.5rem;
    text-align: center;
    background-color: #000;
    color: #fff;
    font-size: 0.5rem;
    font-weight: 200;
}

.top-button {
    width: 5rem;
    position: fixed;
    bottom: 2%;
    right: 2%;
    transform: translateY(150px);
}

@media(max-width: 767.9px) {
    .top-button {
        width:3rem;
    }
}

/* トップへ戻るボタン用 */
.top-button.UpMove {
    animation: UpAnime 0.6s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 0;
        transform: translateY(150px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-button.DownMove {
    animation: DownAnime 1s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 1;
        transform: translateY(150px);
    }
}

@media(min-width: 768px) {
    a[href^="tel:"] {
        pointer-events: none;
        cursor: default;
    }
}

.mail-form-catch{
text-align:center;
margin:8rem 0 2rem;
}

.mail-form-small{
font-size:70%;
color:red;
font-weight:300;
display:block;
width:70%;
margin:0 auto;
}


.mail-form{
width:100%;
max-width:900px;
margin:5rem auto;
}

.mail-form span.required{
font-size:50%;
color:red;
font-weight:300;
display:block;
}

.mail-form span.normal{
font-size:50%;
color:#555;
font-weight:300;
display:block;
}

.mail-form table{
margin:0 auto;
}

.mail-form td{
padding:1rem 0;
}

.mail-form .submit{
text-align:center;
}

.mail-form textarea{
width:90%;
}

