@charset "utf-8";

body {
    font-family: YuGothic, 'Yu Gothic', 'ヒラギノ角ゴシック', 'Hiragino Sans', sans-serif;
    background-color: coral;
}

h1 {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-weight: bold;
    border: solid 3px;
    padding: 0.5em;
    border-radius: 0.5em;
    backdrop-filter: blur(10px);
}

li {
    list-style-type: none
}

a {
    text-decoration: none;
    color: inherit;
}

/*ローディング*/
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.5s linear;
}

.loaded {
    opacity: 0;
    visibility: hidden;
}

@keyframes loading-anim {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(18px);
    }
}

/*** 全文字にアニメーションを適用 ***/
.loading_text span {
    display: inline-block;
    /*横並びにしつつアニメーションを適用*/
    animation: .5s loading-anim ease-in infinite alternate;
}

/*** 各文字のスタート時間をずらす ***/
/* 1文字目 */
.loading_text span:nth-child(1) {
    animation-delay: 0;
}

/* 2文字目 */
.loading_text span:nth-child(2) {
    animation-delay: 0.2s;
}

/* 3文字目 */
.loading_text span:nth-child(3) {
    animation-delay: 0.4s;
}

/* 4文字目 */
.loading_text span:nth-child(4) {
    animation-delay: 0.6s;
}

.loading_text span:nth-child(5) {
    animation-delay: 0.8s;
}

.loading_text span:nth-child(6) {
    animation-delay: 1s;
}

.loading_text span:nth-child(7) {
    animation-delay: 1.2s;
}

.loading_text span:nth-child(8) {
    animation-delay: 1.4s;
}

.loading_text span:nth-child(9) {
    animation-delay: 1.6s;
}

.loading_text span:nth-child(10) {
    animation-delay: 1.8s;
}

/*** 装飾用 ***/
.loading_text p {
    font-size: 2rem;
    font-weight: bold;
}

/*ローディング*/

/*スライド*/
.slider-container {
    overflow-x: hidden;
}

.slider {
    width: 100%;
    position: relative;
}

.slides {
    display: flex;
    width: 200%;
}

.slide {
    flex-basis: 50%;
    display: flex;
    align-items: center;
}

.slide img {
    width: 50px;
    margin: auto;
}

/*スライド*/

/*メインビュー*/

#main_img {
    margin: 0 auto;
    margin-top: 3rem;
    margin-bottom: 10rem;
}

#main_view {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 10;
    height: auto;
    text-align: left;
    overflow: hidden;
    position: relative;
}

#main_view img {
    width: 90%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/*メインビュー*/

/*スライダー見出し*/

.sliderall {
    background-color: #a2cc89;
}

.slider_text {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    gap: 1rem;
    margin-left: 30%;
    margin-right: 15rem;
    border: 2px solid #000000;
    border-radius: 9999px;
    background-color: #ffffff;
    position: relative;
    transform: rotate(-8deg);
}


.slider_text_inner {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

.photo_slider_text_img {
    text-align: right;
    margin-right: 5rem;
}

.photo_slider_text_img img {
    width: 30%;
}

/*スライダー*/

.photo_slider {
    margin-top: 1rem;
    margin-bottom: 10rem;
}

.photo_slider img {
    border-radius: 3%;
    width: 100%;
}

.photo_slider img {
    transform: scale(.8);
    transition: transform .3s;
}

.photo_slider img {
    width: 100%;
}

.slick-center {
    transform: scale(1);
}

/*スライダー*/


/*gallery見出し*/

.gallery_slider_text {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    gap: 1rem;
    margin-right: 30%;
    margin-left: 15rem;
    margin-bottom: -3rem;
    border: 2px solid #000000;
    border-radius: 9999px;
    background-color: #ffffff;
    position: relative;
    transform: rotate(8deg);
}


.gallery_slider_text_inner {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% {
        translate: 0;
    }

    100% {
        translate: calc(-100% - 1rem);
    }
}

.gallery_slider_img {
    text-align: left;
    margin-left: 5rem;
}

.gallery_slider_img img {
    width: 30%;
}


/*gallery*/

.gallery {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 8rem;
}

.gallery img {
    width: 100%;
    max-width: 300px;
}

.gallery_img {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    row-gap: 40px;
}

/*gallery*/

/*view*/

.view {
    background-color: #eb6e9f;
}

.view_slider_text_img {
    text-align: right;
    margin-right: 5rem;
}

.view_slider_text_img img {
    width: 25%;
}

.viewport {
    margin-top: 1rem;
}

.viewport_item {
    text-align: center;
    padding: 1rem;
}

.viewport img {
    width: 100%;
    height: auto;
}


/*フェードイン*/

.fadein {
    opacity: 0;
}

footer {
    background-color: tomato;
}

h3 {
    text-align: center;
    padding: 2rem;
    font-size: 50px;
}

.fade-container {
    position: relative;
    max-width: 100%;
    height: 2000px;
}

/* 子要素の初期状態 (非表示、アニメーション設定) */
.fade-item {
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    /* アニメーションの設定 */
}

/* 表示されたときに付与するクラス */
.is-active {
    opacity: 1;
}

.oji1 img {
    width: 40%;
    position: absolute;
    top: 0%;
}

.oji2 img {
    width: 15%;
    position: absolute;
    top: 13%;
    left: 5%;
}

.oji3 img {
    width: 20%;
    position: absolute;
    top: 13%;
    right: 10%;
}

.oji4 img {
    width: 18%;
    position: absolute;
    top: 0%;
    right: 5%;
    transform: rotate(-8deg);
}

footer p {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
}

/*トップへ戻る*/

#pagetop {
    position: fixed;
    inset: 0;
    margin: auto;
    display: none;
    text-align: center;
}

#pagetop img {
    width: 20%;
}

#pagetop p {
    color: #fff;
    font-weight: bold;
    font-size: 20px;
}

/*ホバー時*/


.gallery_img li {
    /* 通常時のサイズ（100%） */
    transform: scale(1);
    /* アニメーションの速度（0.3秒かけて変化） */
    transition: transform 1s ease;
}

.gallery_img li :hover {
    /* ホバー時のサイズ（90%に縮小） */
    transform: scale(0.9);
}

@media (max-width: 768px) {

    h1 {
        width: 90%;
        font-size: 1.2rem;
    }

    .slider_text_inner,
    .gallery_slider_text_inner {
        font-size: 0.9rem;
    }

    .photo_slider_text_img img,
    .gallery_slider_img img,
    .view_slider_text_img img {
        width: 50%;
    }

    .gallery_img {
        grid-template-columns: 1fr;
    }

    footer h3 {
        font-size: 1.5rem;
    }

    #pagetop img {
        width: 40%;
    }

    .loading_text span {
        font-size: clamp(1.5rem, 6vw, 3rem);
        font-weight: 800;
    }

    #pagetop {
        display: block;
        position: relative;
        inset: auto;
        margin: 3rem auto;
    }

    .fade-container {
        height: 1000px;
    }

    .slider_text {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 100%;
        transform: none;
        white-space: normal;
    }

    .slick-prev,
    .slick-next {
        display: none !important;
    }

    .photo_slider img {
        transform: none;
    }

}