/*　
　　　　　　メインビジュアル
　　　　　--------------------------------------------------------------------------*/

/* ----- メイン画像(スライダー設定) ------------------------------------------------*/

#mainvisual {
    height: 100svh;
    position: relative;
}

#mainvisual .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.mainvisual-left,
.mainvisual-right {
    width: 100%;
    height: 50%;
    position: relative;
}

.slide-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.slide.active {
    opacity: 1;
    animation: zoomout 15s linear 0s infinite;
    transition: opacity 1.2s ease-in-out;
}

@keyframes zoomout {
    0% {
        transform: scale(1.25)
    }

    100% {
        transform: scale(1)
    }
}

.slide img {
    height: 100%;
    object-fit: cover;
}

@media screen and (min-width: 1024px) {
    #mainvisual .container {
        flex-direction: row;
    }

    .mainvisual-left,
    .mainvisual-right {
        width: 50%;
        height: 100%;
    }
}

/* ----- キャッチコピー ------------------------------------------------*/

#catch-copy {
    font-family: var(--font-family-body);
    font-size: var(--font-size-3xl);
    text-align: var(--text-align-center);
    color: var(--color-white);
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5), 0px 0px 16px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 1);
    position: absolute;
    z-index: 100;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
    filter: blur(20px);
}

/*　
　　　　　　紹介
　　　　　--------------------------------------------------------------------------*/

#about .container {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-lg);
    
}

@media screen and (min-width: 1024px) {
    #about .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 80%;
        max-width: 1200px;
        min-width: 1000px;
    }

    #about .img-wrapper {
        width: 46%;
    }

    #about .text-wrapper {
        width: auto;
    }
}

/*　
　　　　　　るるぶ掲載・スライドショー
　　　　　--------------------------------------------------------------------------*/

/* ----- スライド画像(スライダー設定) ------------------------------------------------*/

.slide-wrapper {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
}

.slide-wrapper .item {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-xs);
    width: 100%;
    padding: var(--spacing-sm);
    background-color: var(--color-white);
}

.slide-wrapper .img-area {
    width: 100%;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-wrapper .img-area img {
    width: 100%;
    height: 100%;
}

.inview.bt.move {
    opacity: 100;
    transform: translateY(0);
}

.slide-wrapper .swiper-slide-prev,
.slide-wrapper .swiper-slide-next {
    transform: translateY(40px);
}

.slide-wrapper .swiper-slide {
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
}

/* ----- ハッシュタグ(スライダー設定) ------------------------------------------------*/

.hashtag-slider {
    width: 100%;
}

.hashtag-track {
    display: flex;
    gap: var(--spacing-md);
}

.hashtag-item {
    font-family: var(--font-family-body);
    font-size: var(--font-size-sm);
    white-space: nowrap;
}


/*　
　　　　　　ミニギャラリー
　　　　　--------------------------------------------------------------------------*/

@media screen and (min-width: 768px) {
    #mini_gallery .container {
        display: grid;
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: repeat(11, 1fr);
        gap: 4px; /* ← 画像間のスペース、好みで調整 */
    }

    /* ▼各エリアの再マッピング */
    #mini_gallery .container .div1 { grid-area: 1 / 1 / 5 / 7; }   /* 上段左大きめ */
    #mini_gallery .container .div2 { grid-area: 2 / 8 / 7 / 11; }  /* 右中 */
    #mini_gallery .container .div3 { grid-area: 6 / 1 / 11 / 4; }  /* 左下縦長 */
    #mini_gallery .container .div4 { grid-area: 8 / 5 / 12 / 11;}/* 下段横長 */

    #mini_gallery .container img{
        height: 100%;
        object-fit: cover;
    }
}
@media screen and (max-width: 768px) {
    #mini_gallery .container {
        display: flex;
        flex-direction: column;
        row-gap: var(--spacing-lg);
    }
    #mini_gallery .container .div1{
        width: 100%;
    }
    #mini_gallery .container .div2{
        width: 60%;
        margin-right: var(--spacing-lg);
        margin-left: auto;
    }
    #mini_gallery .container .div3{
        width: 60%;
        margin-left: var(--spacing-lg);
        margin-right: auto;
    }
    #mini_gallery .container .div4{
        width: 100%;
    }
    #mini_gallery .container img{
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius-md);
    }
    #mini_gallery .container .div2 video{
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--border-radius-md);
    }
}
/*　
　　　　　　ムービー
　　　　　--------------------------------------------------------------------------*/

#movie .container {
    background: linear-gradient(180deg,
            rgba(6, 58, 23, 0.15) 0%,
            rgba(255, 255, 255, 0.15) 100%);
}

#movie .container .lead {
    position: relative;
    top: -50%;
    transform: translateY(-50%);
}

#movie .movie-wrapper ul{
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

#movie .movie-wrapper ul li{
    position: relative;
    width: calc(50% - calc(var(--spacing-md) / 2));
}

#movie .movie-wrapper ul li .play-icon{
    width: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
@media screen and (max-width: 768px) {
    #movie .movie-wrapper ul{

        gap: var(--spacing-sm);
    }
    #movie .movie-wrapper ul li{
        width: 100%;
    }

}
/*　
　　　　　　ギャラリー
　　　　　--------------------------------------------------------------------------*/

#gallery .container {
    padding: var(--spacing-2xl) 0;
    background: var(--color-gradient-light);
}

#gallery .content-wrapper {
    display: flex;
    flex-direction: column-reverse;
    row-gap: var(--spacing-2xl);
}

#gallery .content-wrapper .img-area {
    display: flex;
    gap: var(--spacing-md);
    
}

#gallery .content-wrapper .img-area img {
    width: calc(50% - calc(var(--spacing-md) / 2));
    object-fit: cover;
}

#gallery .content-wrapper .img-area img:first-of-type {
    padding-top: var(--spacing-4xl);
}

#gallery .content-wrapper .img-area img:last-of-type {
    transform: translateY(calc(-100% / 3));
}

#gallery .content-wrapper .text-area .text-body {
    margin-bottom: var(--spacing-md);
}

@media screen and (min-width: 1024px) {
    #gallery .container {
        padding-bottom: 0;
    }

    #gallery .content-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }

    #gallery .content-wrapper .text-area {
        width: 45%;
    }

    #gallery .content-wrapper .img-area {
        width: 50%;
        gap: var(--spacing-lg);
    }

    #gallery .content-wrapper .img-area img {
        width: calc(50% - calc(var(--spacing-lg) / 2));
    }

    #gallery .content-wrapper .img-area img:first-of-type {
        transform: translateY(calc(100% / 10));
    }
}

/*　
　　　　　　施設・設備のご紹介
　　　　　--------------------------------------------------------------------------*/

#introduction .container {
    position: relative;
    padding-bottom: calc(50px + var(--spacing-7xl));
}

#introduction .container.wide_inner {
    padding-left: 0;
}

#introduction .text-wrapper {
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-3xl) var(--spacing-lg);
    color: var(--color-white);
    background-color: var(--color-primary-70);
    position: absolute;
    min-width: 200px;
    right: 0;
    bottom: 0;
}

#introduction .text-wrapper .text-body {
    margin-bottom: var(--spacing-lg);
}

@media screen and (min-width: 1024px) {
    #introduction .container {
        padding-bottom: calc(50px + var(--spacing-3xl));
    }

    #introduction .text-wrapper {
        min-width: 600px;
    }
}

/*　
　　　　　　プラン別那須町ガイド
　　　　　--------------------------------------------------------------------------*/

#guide .container {
    margin-top: 200px;
    padding: 200px 0 var(--spacing-3xl);
    background: var(--color-gradient-light);
}

#guide .content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    row-gap: var(--spacing-3xl);
    margin-top: -300px;
}

#guide .content-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    row-gap: var(--spacing-sm);
}

@media screen and (min-width: 1024px) {
   
    #guide .content-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (max-width: 768px) {
    #guide .container {
        margin-top: 120px;
    }
    #guide .content-wrapper{
        row-gap: var(--spacing-xl);
    }
}
/*　
　　　　　　レビュー
　　　　　--------------------------------------------------------------------------*/

#review .container {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-xl);
}

#review .review-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-sm);
    background-color: var(--color-secondary);
}

#review .img-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-md);
}

#review .img-area .icon {
    max-width: 100px;
}

@media screen and (min-width: 1024px) {
    #review .review-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    #review .review-wrapper:nth-child(even) {
        flex-direction: row-reverse;
    }

    #review .review-wrapper:nth-child(even) .img-area .icon {
        transform: scaleX(-1);
    }

    #review .img-area {
        flex-direction: column;
        width: 20%;
    }

    #review .img-area .icon {
        max-width: 150px;
    }

    #review .text-area {
        width: 75%;
    }
}

/*　
　　　　　　アクセス
　　　　　--------------------------------------------------------------------------*/

#access .container {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-2xl);
    position: relative;
}

#access .text-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: var(--spacing-lg);
}

#access .access-item h4 {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

#access .access-item:first-child {
    padding-bottom: calc(var(--spacing-lg) / 2);
    border-bottom: 1px solid var(--color-primary);
}