@charset 'UTF-8';

/*全体の設定
---------------------------------------------------------------------------*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Zen Maru Gothic", sans-serif;
    /*行間*/
    line-height: 2.5;
    text-align: center;
    /*画像全般の設定*/
    /* img {border: none;max-width: 100%;height: auto;vertical-align: middle;}  */
}

/* スクロールで要素を表示 */
.fadein {
    opacity: 0;
}

/* ボタン */
.pagetop {
    display: flex;
}

.btn {
    position: fixed;
    bottom: 30px;
    right: 50px;
    z-index: 1;
}

.pagetop img {
    width: 3rem;
}

/* ヘッダー */
header {
    display: inline-flex;
    margin: 1rem;
}

.title {
    display: flex;
    margin: auto 2rem;
    gap: 1rem;
}

#logo {
    width: 5rem;
    height: 5rem;
    margin: auto;
}

/* スライドショー */
#slide_img {
    width: 100%;
    height: 100%;
    margin: 0px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* ローディング画面 */
#loading {
    transition: all 3s;
    background-color: #ddd;
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 200px;
    height: 200px;
}

/* ローディング完了したらローディング画面を隠す */
.loaded {
    opacity: 0;
    visibility: hidden;
}

/* ダークモード切替 */
body {
    transition: 1s;
}

.dark-theme {
    background: #000;
    color: #ddd;
}

#btn {
    background: #0bd;
    padding: 1rem;
    margin: auto;
    font-size: 1rem;
    color: #fff;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
}

/* お知らせ */
.top-news-wrap {
    padding-top: 1vw;
    border: 2px solid rgb(31, 187, 214);
    margin: 7vh 10vw;
    border-radius: 20px;
}

.top-news {
    display: flex;
    padding: 1vw 2vw 2vw;
    gap: 1rem;

}

.top-news a {
    margin: auto;
    width: 30%;
}

.news {
    width: 70%;
    max-width: 100%;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
    text-align: left;
    line-height: 1rem;
}

.news th,
.news td {
    border-bottom: 1px dotted #000;
    padding: 1rem;
}

.news td {
    width: 70%;
}

.button {
    display: inline;
    background-color: #ddd;
    padding: 15px 20px;
    border-radius: 30px;
    box-shadow: 6px 6px 10px 0 rgba(0, 0, 0, .4);
    text-decoration: none;
    color: #000;
}

/* 文章の横棒 */
.horizon {
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.horizon::before,
.horizon::after {
    content: "";
    height: 2px;
    width: 15vw;
    background-color: aqua;
    margin: auto 15px;

}

/* 文章 */
.sentence {
    padding: 2rem 15%;
}

/* h１の色の移り変わりとふよふよ */
#heading {
    width: 40%;
    font-size: x-large;
    font-weight: bold;
    background-color: rgb(233, 242, 239);
    display: inline-block;
    padding: 1rem 0;
    border-radius: 50%;
    margin-top: 5rem
}

/* グリッド */
.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1020px;
    margin: auto;
    padding: 30px;
}

.img-item {
    opacity: 0;
    width: 100%;
}

.img-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* キリン */
#kirin {
    max-width: 50%;
    padding-bottom: 5rem;
}

/* 横スクロール  */
@keyframes infinity-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.scroll-infinity {
    display: flex;
    overflow: hidden;
}

.scroll-infinity__list--left {
    display: flex;
    list-style: none;
    padding: 0;
    animation: infinity-scroll-left 10s infinite linear 0.5s both;
    justify-content: space-around;
    gap: 20px;
}

.scroll-infinity__item {

    width: calc(100vw / 3);

}

.scroll-infinity__item>img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 40%;
    aspect-ratio: 5/4;
}

/* 画像ホバーで拡大 */
.wrapper {
    max-width: 38rem;
    margin: auto;
    padding: 0 1rem;
}

img {
    max-width: 100%;
}

.gallery {
    display: flex;
    flex-direction: column-reverse;
    margin: 3rem;
}

.gallery-image {
    margin: auto;
}

.gallery-image img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}

.gallery-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
    margin: 1rem 0;
}

.gallery-thumbnails img {
    aspect-ratio: 3/4;
    object-fit: cover;
    cursor: pointer;
}

.nowrap {
    white-space: nowrap;
}

@media(min-width: 800px) {
    .gallery {
        flex-direction: row;
    }

    .gallery-image {
        width: 50vw;
        margin: 0;
    }

    .gallery-image img {
        height: 100vh;
    }

    .gallery-content {
        width: 30vw;
    }

    .gallery-thumbnails {
        gap: 2vw;
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-thumbnails img:hover {
        box-shadow: 0 0 1rem rgba(0, 0, 0, .4);
        transition: .4s;
    }
}

/* 地図 */
.location {
    display: flex;
    background-color: rgb(217 231 227);
    padding: 3vw;
    gap: 1rem;
    margin: 5%;
    border-radius: 3rem;
}

.location-info {
    width: 55%;
}

.location-info .info {
    width: 100%;
    max-width: 100%;
    margin: auto;
    padding: 0 1.5rem;
    border-spacing: 0;
    text-align: left;
}

.info tr {
    display: flex;
}

.info th {
    width: 20%;
}

.info td {
    width: 80%;
}

.info th,
.info td {
    border-bottom: 1px dotted #000;
    padding: 1rem 0 0 1rem;
}

.location-map {
    width: 45%;
    margin: auto;
}

iframe {
    width: 100%;
}

/* 卒業犬猫 */
.name {
    width: 40%;
    font-size: x-large;
    font-weight: bold;
    background-color: rgb(210, 243, 216);
    display: inline-block;
    padding: 0.5rem 0;
    border-radius: 50%;
    margin: 5rem 0 1rem;
}

.sentence2 {
    padding: 0 15%;
}

/* スクロールで要素を表示 */
.background {
    background-image: url(imges/0580047489f3477818ff642d30f0bbf5_480x480.webp);
    background-size: cover;
    background-position: right;
    padding: 2rem;
    margin: 3rem 0 7rem;
}

.graduation {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
}

.a {
    display: block;
    position: relative;
    margin-left: 40vw;
    width: 50%;
}

.b {
    position: relative;
    margin-top: -7vh;
    margin-right: 20rem;
    width: 50%;
}

.c {
    display: block;
    position: relative;

    margin-top: -4rem;
    margin-left: 40vw;
    width: 50%;
}

/* 問い合わせ */
.inquiry {
    background-color: #c0e9d9;
    width: 9rem;
    margin: 7rem auto 1.5rem;
    border-radius: 2rem;
    font-size: large;
    font-weight: bold;
}

.form-line {
    display: flex;
    justify-content: center;
}

label {
    text-align: left;
    width: 35%;
    padding: 0 0 0 9vw;
}

input {
    width: 65%;
    margin: 7px 5vw 7px 0;
    padding-left: 10px;
    height: 2rem;
}

textarea {
    width: 65%;
    margin: 7px 5vw 7px 0;
    height: 7rem;
}

#name::after,
#email::after,
#message::after {
    content: "必須";
    margin: 5px;
    padding: 0 .5rem;
    background-color: #ffd900;
    border-radius: 1rem;
}

input[type=submit] {
    width: 6rem;
    background-color: #0da96b;
    border-radius: 1rem;
    margin: 1rem 0 2rem;
    padding: 5px 0;
    color: #fff;
}

/* フッター */
footer {
    background-color: rgb(13, 169, 107);
    text-align: center;
    padding: 1rem 0;
    color: #fff;
}

/*画面幅800px以下の追加指定*/
@media(max-width:800px) {

    #heading,
    .name {
        width: 70%;
    }

    /* お知らせ */
    .top-news {
        flex-direction: column;
    }

    .news {
        width: 100%;
    }

    .news th,
    .news td {
        display: block;
        width: 100%;
        padding: 0.5rem;
    }

    .news th {
        border-bottom: none;
        /* padding-bottom: 0; */
        font-size: 0.9rem;
        color: #666;
    }

    .news td {
        padding-top: 0;
        margin-bottom: 1rem;
    }

    .top-news a {
        width: 70%;
        margin: -15px auto 5px;
    }

    .button {
        display: inline-block;
        padding: 0
    }

    /* 地図 */
    .location {
        flex-direction: column;
        padding: 5vw;
    }

    .location-info,
    .location-map {
        width: 100%;
    }

    .info tr {
        display: block;
        margin-bottom: 1rem;
    }

    .info th,
    .info td {
        display: block;
        width: 100%;
        padding: 0;
        margin-top: -10px;
    }

    .info th {
        border-bottom: none;
        padding-top: 7px;
    }

    /* お問い合わせ */
    form {
        margin: 10vw;
    }

    .form-line {
        flex-direction: column;
        margin-bottom: 1rem;
    }

    label {
        width: 100%;
        margin: -5px 10px;
        padding: 0;
    }

    input,
    textarea {
        width: 100%;
    }

    textarea {
        height: 10rem;
    }

    input[type=submit] {
        display: block;
        margin: 2rem auto;
        width: 10rem;
    }

    #name::after,
    #email::after,
    #message::after {
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
}

/*画面幅550px以下の追加指定*/
@media(max-width:550px) {

    /* ヘッダー部分 */
    header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .title {
        display: contents;
    }

    #logo {
        order: 1;
        width: 4rem;
        height: 4rem;
    }

    #btn {
        order: 2;
    }

    h1 {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    /* 文章 */
    .horizon {
        white-space: nowrap;
    }

}