@charset "utf-8";

body {
    background-color: #ffffff;
}

/* メインエリア */
.posts_main {
    min-height: 100dvh;
}

/* スライド　セクション */
.posts_slider_section {
    width: 100%;
    background-image: url(../images/backimg.png);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.posts_slider_container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.posts_slider {
    display: flex;
    gap: 50px;
    will-change: transform;
}

/* 右へスライド */
.posts_slider_right {
    padding: 30px 0 0 0;
    animation: slideRight 30s linear infinite;
}

/* 左へスライド */
.posts_slider_left {
    padding: 30px 0 30px 0;
    animation: slideLeft 30s linear infinite;
}

@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ホバーで一時停止 */
.posts_slider:hover {
    animation-play-state: paused;
}

/* 投稿アイテム */
.posts_slider_item {
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s;
}

.posts_slider_item:hover {
    transform: scale(1.05);
}

.posts_slider_item img {
    width: 150px;
    height: auto;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s;
}

.posts_slider_item:hover img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.posts_slider_item_info {
    margin-top: 10px;
    text-align: center;
}

.posts_slider_item_name {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #000;
}

.posts_slider_item_reaction {
    font-size: 1.5rem;
}

/* 説明文 */
.posts_main_text {
    margin: 20px 0;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ホームに戻るボタン */
.posts_main_button {
    align-items: center;
    width: 200px;
    margin: 0 auto 0 auto;
    padding: 15px 10px;
    border: none;
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    color: #ffffff;
}

/* ========================================
   モーダル
======================================== */
.modal {
    z-index: 1000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    padding: 40px;
    transform: translate(-50%, -50%);
    background-color: #fff;
}

.modal-content {
    width: 100%;
    max-width: 599px;
    height: 100dvh;
}

.modal-content figure {
    width: 100%;
    margin: 0 auto;
}

.modal-content figure img {
    z-index: 99;
    display: block;
    position: relative;
    width: 70%;
    max-width: 350px;
    height: auto;
    margin: 40px auto 30px auto;
    background-color: #d9d9d9;
}

/* モーダルテキスト */
.modal-text {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.modal-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
}

.modal-like-button {
    display: flex;
    align-items: center;
    border: none;
    background-color: unset;
    cursor: pointer;
}

.modal-like-button.liked {
    background: linear-gradient(135deg, #ff4757 0%, #e03d96 100%);
}

.modal-content div p {
    padding: 0 10px 0 0;
    font-size: 1rem;
    line-height: 1.4;
}

.modal-content .js-modal-close {
    position: absolute;
    bottom: 60px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    text-decoration: none;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #9C9C9C;
}

.modal-content .js-modal-close i {
    font-size: 1.8rem;
    color: #9C9C9C;
}

/* 背景装飾　丸 */
.modal_decoration{
    position: absolute;
    z-index: 1;
    width: 200px;
    height: auto;
    top: 10px;
    left: 10px;
}