html {
    font-size: 100%;
}

body {
    font-family: 'Merriweather', serif;
    font-family: 'Noto Serif JP', serif;
    font-size: 0.9rem;
    color: #121212;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

.container {
    margin-left: 300px;
}

.wrapper {
    max-width: 900px;
    padding: 40px 20px;
    margin: 0 auto;
}

.sec-title {
    font-weight: bold;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.sec-title::before,
.sec-title::after {
    content: "";
    border-top: solid 1px;
    width: 28%;
}



/* header */
header {
    width: 300px;
    height: 100%;
    background-color: #fff;
    padding: 50px 50px 50px 40px;
    position: fixed;
    top: 0;
    overflow-y: auto;
}

.site-title {
    width: 200px;
}

.site-title a {
    display: flex;
    align-items: center;
}

.site-title img {
    width: 50px;
    margin-right: 15px;
}

.nav {
    margin-top: 50px;
}

.nav li {
    margin-bottom: 15px;
}

.nav-menu {
    margin-bottom: 40px;
}



/* video */
.video {
    width: 100%;
    height: 100vh;
}

.video video {
    position: fixed;
    top: 0;
    z-index: -10;
}



/* aboutus */
#aboutus {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 0 60px;
}

#aboutus .list {
    display: flex;
    justify-content: space-between;
}

#aboutus .list li {
    width: 30%;
}

#aboutus .list li a {
    width: 100%;
    display: block;
    border: solid 1px #fff;
    border-radius: 50%;
    padding: calc(50% - 11px) 0;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

#aboutus .list li a::before {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #fff;
    position: absolute;
    top: 0;
    left: -100%;
    opacity: 0.5;
    transition: 0.5s;
}

#aboutus .list li a:hover::before {
    left: 0;
}

#aboutus .list h3 {
    text-align: center;
    margin-bottom: 10px;
}



/* dogs */
#dogs {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    color: #fff;
    padding: 30px 0 60px;
}


#dogs .list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 0;
}

#dogs .list li {
    width: 47%;
    border: solid 1px #fff;
    position: relative;
}

#dogs .list li a {
    display: block;
}

#dogs .list li a::after {
    content: "";
    box-shadow: 0 -50px 35px -1px #2e2e2e inset;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}

#dogs .list li p {
    color: #fff;
    font-size: 0.8rem;
    position: absolute;
    bottom: 6px;
    left: 8px;
    z-index: 5;
}



/* flow */
#flow {
    background-color: #fff;
    padding: 30px 0 60px;
}

.step {
    margin-top: 40px;
    display: flex;
}

.figure {
    margin-right: 10%;
    list-style-position: inside;
    position: relative;
}

.figure::before {
    content: "";
    width: 50px;
    height: 500px;
    background-color: rgb(243, 243, 137);
    position: absolute;
    top: 0;
    left: 115px;
}

.figure li {
    width: 200px;
    height: 60px;
    line-height: 60px;
    color: #fff;
    background-color: #4d4d4d;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.figure li:last-child {
    margin-bottom: 0;
}

.figure li::before {
    content: "";
    border-top: solid 30px #4d4d4d;
    border-left: solid 100px transparent;
    border-right: solid 100px transparent;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
}

.description dt {
    border-bottom: solid 1px #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    position: relative;
}

.description dt span {
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: block;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: -45px;
}

.description dd {
    margin-bottom: 35px;
}



/* document */
#address {
    width: 100%;
}



/* web */
.form-area {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.form-area dt {
    width: 30%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: lightgray;
    color: #fff;
    padding: 30px 15px;
    margin-bottom: 3px;
}

.form-area dt span {
    background-color: #fff;
    color: #e85c4e;
    font-size: 0.75rem;
    padding: 0 8px;
}

.form-area dd {
    width: 70%;
    background-color: #fff;
    padding: 22px 15px 20px 15px;
    border: solid 1px lightgray;
    margin-bottom: 3px;
}

.form-area input {
    background-color: #f2f2f2;
    padding: 8px 10px;
}

.button-area {
    text-align: center;
}

#submit-button {
    background-color: gray;
    border-radius: 5px;
    color: #fff;
    font-size: 1.25rem;
    font-weight: bold;
    padding: 20px 40px;
    text-align: center;
    margin-top: 50px;
}

#submit-button:hover {
    opacity: 0.5;
}

#name {
    width: 50%;
}

#tel1,
#tel2,
#tel3 {
    max-width: 80px;
}

#reservation {
    max-width: 200px;
}

/* error-message */
.error-text {
    color: #de3f2e;
    margin-top: 2px;
}



.lesson {
    margin-right: 5px;
    position: relative;
    top: 2px;
}

.lesson:first-child {
    margin-bottom: 10px;
}

.note-online,
.note-venue {
    padding: 0 30px;
    margin-bottom: 30px;
}

.note-venue {
    display: none;
}



/* contact */
#contact {
    background-color: #fff;
    padding: 30px 0 60px;
}

#contact .item {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
}

#contact .item a {
    width: 30%;
    border: solid 1px #333;
    text-align: center;
    display: block;
    padding: 50px 0;
    position: relative;
}

#contact .item a::before {
    content: "";
    border-top: solid 20px transparent;
    border-right: solid 20px #4d4d4d;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

#contact .item a:hover {
    outline: solid 3px #121212;
}

#contact .item a p {
    margin-top: 10px;
}



/* company */
.company-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    width: 70%;
}

.company-list dt {
    width: 30%;
    display: block;
    padding: 20px 0 20px 20px;
    border-bottom: solid 1px gray;
}


.company-list dd {
    width: 70%;
    padding: 20px 0;
    border-bottom: solid 1px gray;
}



/* notes */
.notes-list li {
    margin-bottom: 50px;
}



/* footer */
footer {
    background-color: #121212;
    color: #fff;
    padding: 30px 0 20px;
    text-align: center;
    font-size: 0.8rem;
    position: relative;
}

footer .list {
    display: flex;
    justify-content: center;
}

footer .list li {
    border-right: solid 1px #fff;
    padding: 0 20px;
}

footer .list li:last-child {
    border-right: 0;

}

.copyright {
    margin-top: 60px;
    font-size: 0.7rem;
}

#to-top {
    width: 50px;
    height: 50px;
    border: solid 1px #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 30px;
    right: 30px;
}

#to-top::after {
    content: "";
    border-bottom: solid 7px #fff;
    border-left: solid 7px transparent;
    border-right: solid 7px transparent;
    position: relative;
    top: 7px;
}



/* tb */
@media(max-width:768px) {
    .container {
        margin-left: 0;
    }

    .sec-title {
        font-size: 1.3rem;
        margin-bottom: 40px;
    }

    .sec-title::before,
    .sec-title::after {
        width: 18%;
    }


    /* header */
    header {
        width: 100%;
        height: 100px;
        padding: 0;
        z-index: 10;
    }

    .site-title {
        width: 150px;
        position: relative;
        left: 20px;
        top: 20px;
    }

    .site-title img {
        width: 30px;
    }

    .nav {
        margin-top: 0;
        width: 300px;
        background: #fff;
        padding: 30px;
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        opacity: 0;
        overflow-y: auto;
        transition: 0.5s;
        z-index: 20;
    }

    .open .nav {
        opacity: 1;
        left: 0;
    }

    .hamburger {
        width: 50px;
        height: 50px;
        position: fixed;
        top: 20px;
        right: 20px;
        transition: 0.5s;
        z-index: 20;
    }

    .hamburger span {
        width: 50px;
        height: 3px;
        background-color: #2e2e2e;
        display: block;
        position: absolute;
        transition: 0.5s;
    }

    .hamburger span:nth-child(1) {
        top: 18px;
    }

    .hamburger span:nth-child(2) {
        top: 30px;
    }

    .hamburger span:nth-child(3) {
        top: 42px;
    }

    .open .hamburger span {
        background-color: #fff;
    }

    .open .hamburger span:nth-child(1) {
        transform: translateY(12px) rotate(-315deg);
    }

    .open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .open .hamburger span:nth-child(3) {
        transform: translateY(-12px) rotate(315deg);
    }

    #mask {
        display: none;
        transition: 0.5s;
    }

    .open #mask {
        width: 100%;
        height: 100%;
        background-color: #000;
        opacity: 0.8;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10;
    }


    /* video */
    .video {
        height: 100vh;
    }

    .video video {
        height: 700px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }


    /* aboutus */
    #aboutus .list {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    #aboutus .list li {
        width: 50%;
        margin-bottom: 50px;
    }

    #aboutus .list li:last-child {
        margin-bottom: 0;
    }


    /* dogs */
    #dogs .list {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    #dogs .list li {
        width: 80%;
    }


    /* flow */
    .step {
        flex-direction: column;
        align-items: center;
    }

    .figure {
        margin-bottom: 100px;
        margin-right: 0;
        padding: 0;
    }

    .figure::before {
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .figure li {
        width: calc(100vw - 80px);
    }

    .figure li::before {
        border-right: calc(50vw - 40px) solid transparent;
        border-left: calc(50vw - 40px) solid transparent;
    }

    .description {
        margin-left: 50px;
    }


    /* contact */
    #contact .item {
        flex-direction: column;
        align-items: center;
        gap: 50px 0;
    }

    #contact .item a {
        width: 60%;
    }


    /* company */
    .company {
        padding-top: 150px;
    }


    /* notes */
    .notes {
        padding-top: 150px;
    }


    /* footer */
    footer .list {
        flex-wrap: wrap;
        padding: 0;
    }

    footer .list li {
        margin-bottom: 10px;
    }
}


@media(max-width:425px) {
    .site-title p {
        font-size: 1.5rem;
    }


    /* header */
    .hamburger span {
        width: 30px;
        height: 2px;
    }


    /* company */
    .company-list {
        font-size: 0.8rem;
    }

    .company-list dt {
        padding-left: 0;
    }


    /* web */
    .form-area {
        flex-direction: column;
    }

    .form-area dt {
        width: 100%;
        display: block;
        padding: 10px;
        margin-bottom: 0;
    }

    .form-area dt span {
        margin-left: 10px;
    }

    .form-area dd {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
    }

    .form-area dd:last-child {
        margin-bottom: 0;
    }

    .note-online,
    .note-venue {
        padding: 0 10px;
    }
}