@charset "UTF-8";

body {
    background-color: rgb(251, 251, 248);
    font-family: serif;
}

.sp-center {
    display: block;
    margin: 0 auto;
    /* max-width: 100%; */
    height: auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    margin: 15px;
    padding: 0;
    /* margin-bottom: 30px; */
}

.back {
    /* position: fixed; */
    /* top: 0; */
    margin-top: 25px;
    margin-bottom: 25px;
    margin-left: 30px;
}

.back a {
    background-color: #f3f2ef;
    font-size: 12px;
    color: black;
    border: 1px solid;
    padding: 5px 15px;
    border-radius: 20px;
}

nav a {
    text-decoration: none;
    color: black;
    font-size: 14px;
}

#firstvisual {
    margin-bottom: 80px;
    /* background-image: url(../img/IMG_h1_1.jpg); */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px;

}

h1 {
    font-size: 20px;
    font-weight: lighter;

    text-align: center;
    color: #ffffff;
}

.key-title {
    line-height: 1.5;
}


.key-title .sub {
    display: block;
    margin-bottom: 15px;
}

.firstlist {
    margin-bottom: 80px;
}

.firstlist h2 {
    writing-mode: vertical-rl;
    text-orientation: upright;
    /* margin-bottom: 1em; */
}

.firstlist p {
    /* margin-bottom: 40px; */
    writing-mode: vertical-rl;
    width: 12em;
    line-height: 1.8;
    text-align: justify
}

.title {
    text-align: end;
    /* margin-right: 110px; */
    display: grid;

    /* display: grid;
    grid-auto-flow: column;
    align-items: start;
    column-gap: 0.5em; */
    /* text-align: right; */
}

.item1 {
    grid-row: 1/2;
    grid-column: 3/4;
    padding-right: 100%;
    padding-bottom: 400px;
    margin: 0;
}

.item2 {
    grid-row: 1/2;
    grid-column: 2/3;
    padding-bottom: 350px;
    /* margin-left:0px; */
    margin-right: 32%;
    margin-bottom: 0;
}

.item3 {
    grid-row: 1/2;
    grid-column: 1/2;
    writing-mode: vertical-rl;
    /* text-orientation: upright; */
    margin-left: 24%;
    margin-top: 40px;
}

.title .item2 {
    writing-mode: vertical-rl;
    font-size: small;

}


#navitem1 {
    margin-bottom: 80px;
}

#navitem2 {
    margin-bottom: 80px;
}

#navitem3 {
    margin-bottom: 80px;
}

#navitem4 {
    margin-bottom: 80px;
}

.image-row {

    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 25px;

}

.image-light {
    margin-top: 30px;
}

h1 {
    font-size: 19px;
    color: #f3f2ef;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
}




table {
    /* width: 100%; */
    display: flex;
    justify-content: center;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed
}

th,
td {
    border: 1px solid rgb(78, 77, 77);
    padding: 10px 80px;
}

th {
    border-color: rgb(78, 77, 77);
    background-color: #d7e3e1;
}

td {
    background-color: #fff;
}

#navitem1 p {
    font-size: small;
    text-align: center;
    margin-bottom: 40px;
    line-height: 25px;
}

#navitem2 h3 {
    text-align: center;
    border-bottom: 1px solid;
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 30px;
    line-height: 1.3;
}

#navitem2 p {
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    margin-right: 40px;
    margin-bottom: 7px;
}

#navitem2 ul {
    font-size: 14px;
    list-style-position: inside;
    text-align: center;
    padding: 0;
    margin: 0 auto;
    line-height: 23px;
    width: 320px;
}

#navitem2 li {
    text-align: left;
}

#navitem2 small {
    font-size: 14px;
}

#navitem2 .day {
    padding-left: 10px;
    color: #8e0f0f;
    font-size: 12px;
    vertical-align: middle;

}

#navitem2 .sp-center {
    width: 450px;
    height: auto;
}

#navitem3 td {
    text-align: center;
}

#navitem4 th {
    padding: 0 60px;
}

#navitem4 td {
    padding-left: 15px;
    padding-right: 120px;
}

#firstvisual {
    position: relative;

    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 120px;
    color: white;
    text-align: center;
    overflow: hidden;
}

#firstvisual .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fade 15s infinite;
    z-index: 1;
}

#firstvisual .bg1 {
    background-image: url("../img/IMG_h1_1.jpg");
    animation-delay: 0s;
}

#firstvisual .bg2 {
    background-image: url("../img/IMG_h1_2.jpg");
    animation-delay: 5s;
}

#firstvisual .bg3 {
    background-image: url("../img/IMG_h1_3.jpg");
    animation-delay: 10s;
}

@keyframes fade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    40% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.key-title {
    position: relative;
    z-index: 2;
}

footer {
    color: #ffffff;
    background-image: url(../img/IMG_footer.JPG);
    background-size: cover;
    background-position: center;
    height: 190px;
    display: flex;
    justify-content: right;
    align-items: end;
}

footer p {
    padding-right: 40px;
    padding-bottom: 25px;
    font-size: 15px;
}

.inquiry {
    line-height: 25px;
}








/* .slider {
    position: relative;
    width: 240px;
    margin: auto;
    overflow: hidden;
}

.slider input {
    display: none;
} */
/* 
.slides {
    display: flex;
    width: 200%;
    transition: transform 0.8s ease;
}

.slide {
    width: 100%;
    flex-shrink: 0;
} */


/* .slide img {
    width: 400px;
    display: block;
    border-radius: 6px;
} */

/* .botan {
    text-align: center;
    margin-top: 8px;
} */

/* .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
} */

/* #pic1:checked~.slides {
    transform: translateX(0); */


/* #pic1:checked~.nav label[for="pic1"] {
    background: #333;
} */

/* / #pic2:checked~.slides {
    transform: translateX(-100%);
} */

#pic2:checked~.nav label[for="pic2"] {
    background: #333;
}










input[type="button"] {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px dotted;
    padding: 20px 70px;

}

.group {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.group img {
    width: 90%;
    height: auto;

}

.number12 {
    margin-bottom: 40px;
}

a {
    text-decoration: none;
}

.beside,
.title,
.navitem-content,
img,
p {
    transition: all 0.3s ease-in-out;
}

@media screen and (min-width: 768px) {

    .back {
        margin-top: 30px;
        margin-bottom: 30px;
        margin-left: 50px;
    }

    .back a {
        /* position: fixed; */
        /* top: 0; */
        font-size: 17px;
        color: black;
        border: 1px solid;
        padding: 7px 20px;
        border-radius: 20px;
        background-color: #f3f2ef;
    }



    .group {
        display: grid;
        /* grid-template-columns: 1fr 1fr 1fr; */
        justify-items: center;
        /* gap: 20px; */
        margin-top: 0;
        object-fit: cover;
    }

    .number1 {
        grid-row: 1/2;
        grid-column: 1/2;
    }

    .number2 {
        grid-row: 1/2;
        grid-column: 2/3;
    }

    .number3 {
        grid-row: 1/2;
        grid-column: 3/4;
    }

    .number4 {
        grid-row: 2/3;
        grid-column: 1/2;
    }

    .number5 {
        grid-row: 2/3;
        grid-column: 2/3;
    }

    .number6 {
        grid-row: 2/3;
        grid-column: 3/4;
    }

    .number7 {
        grid-row: 3/4;
        grid-column: 1/2;
    }

    .number8 {
        grid-row: 3/4;
        grid-column: 2/3;
    }

    .number9 {
        grid-row: 3/4;
        grid-column: 3/4;
    }

    .number10 {
        grid-row: 4/5;
        grid-column: 1/2;
    }

    .number11 {
        grid-row: 4/5;
        grid-column: 2/3;

    }

    .number12 {
        grid-row: 4/5;
        grid-column: 3/4;

    }

    #firstvisual {
        height: 60vh;
        margin-bottom: 90px;
    }

    nav ul {
        margin: 25px 0;
    }

    nav a {
        font-size: 20px;
    }

    .key-title {
        font-size: 30px;
    }



    .firstlist {
        margin-bottom: 100px;
    }

    .item1 {
        /* margin-right: 100px; */
        padding-bottom: 600px;
        padding-right: 0;
        text-align: right;
    }

    .item2 {
        padding-right: 4px;
        padding-bottom: 550px;
    }

    .item3 {
        margin-left: ;
        margin-right: 200px;
        padding-left: 0;
        padding-bottom: 80px;
        /* text-align: center; */
        font-size: 20px;
    }



    #navitem1 {
        display: grid;
        /* grid-template-columns:  2fr;  */
        gap: 20px;
        align-items: start;
    }

    #navitem1 h2 {
        grid-column: 1 / -1;
        margin: 0 0 20px 0;
    }





    .beside {
        display: flex;
        flex-direction: row-reverse;
        margin-right: 200px;
        /* margin-left: 50px; */
    }

    .haba {
        margin-right: 80px;
        margin-left: 90px;

    }


    h2 {
        font-size: 30px;
        margin-bottom: 40px;
    }

    h3 small {
        display: inline;
        /* margin-left: 8px; */
        /* font-size: 0.8em; */
        padding-left: 0;
        white-space: nowrap;
    }



    .content-row {
        padding-right: 150px;
        /* padding-top: 90px; */
        padding-top: 100px;
    }

    .yoko {
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

    #navitem1 {
        margin-left: 60px;
        margin-right: 90px;
    }

    #navitem1 p {
        line-height: 2.0;
        font-size: 18px;
    }

    #navitem1 img {
        width: 250px;
        height: auto;
    }

    #navitem1 h2 {
        text-align: left;
        margin-left: 220px;
        margin-bottom: 0;
    }

    #navitem2 .sp-center {
        /* width: 80%; */
        display: block;
        margin: 0 auto;
    }


    #navitem2 h2 {
        text-align: right;
        /* width: 200px; */
        margin-right: 400px;
    }

    #navitem2 p {
        font-size: 20px;

    }

    #navitem2 h3 {
        font-size: 25px;
        width: 500px;
        padding-left: 85px;
        /* border-bottom: 1px solid ; */

    }

    #navitem2 ul {
        font-size: 18px;
        line-height: 30px;
        width: 600px;
        padding-left: 100px;
        margin-left: 100px;
    }

    #navitem2 small {
        font-size: 16px;
    }


    #navitem2 .day {
        padding-left: 10px;
        color: #8e0f0f;
        font-size: 15px;
        vertical-align: middle;

    }


    #navitem3 th {
        font-size: larger;
    }

    #navitem3 td {
        font-size: larger;
        text-align: center;
        padding: 20px 110px;
    }

    #navitem4 th {
        font-size: larger;
        padding: 0 90px;
    }

    #navitem4 td {
        font-size: larger;
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 15px;
        padding-right: 150px;
    }

    .navitem-content {
        gap: 50px;
        display: flex;
        justify-content: center;
        /* align-items:flex-start */

        /* justify-content: center; */
    }

    .navitem-content img {
        max-width: 400px;
        height: auto;
    }

    .navitem-text {
        text-align: left;
        align-items: center;
        /* max-width: 400px; */
        /* margin-right: 200px; */
    }

    .side {
        display: flex;
        justify-content: space-around;
        align-items: center;
        gap: 50px;
    }


    input[type="button"] {
        display: block;
        margin: 0 auto;
        border-radius: 8px;
        border: 2px dotted;
        padding: 25px 85px;
        font-size: 20px;
    }

    footer {
        height: 450px;
    }

    footer p {
        padding-right: 100px;
        padding-bottom: 50px;
        font-size: 18px;
    }

    .inquiry {
        font-size: 30px;
        line-height: 50px;
    }



}