:root {
    --main-bg-color: #1f1f1f;
    --text-color: #ffffff;
    --accent-color: #ff7878;
}

/* 基本スタイル */
body {
    background-color: var(--main-bg-color);
    font-family: "Segoe UI", Meiryo, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.profile-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    /* padding: 5px; */
    max-width: 600px;
    /* 必要に応じて調整 */
    width: 100%;
    background: black;
}

.profile-card {
    width: 50%;
    background-color: #1e1e1e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.post-slider {
    width: 100%;
    overflow: hidden;
    /* 画像がはみ出ないようにする */
}

.post-slider .post-image {
    transition: transform 5s ease;
    /* ズームインアウトに時間をかける */
}

.slick-active .post-image {
    transform: scale(1.1);
    /* スライドがアクティブなときズームイン */
}

.post-slider .post-image {
    width: 100%;
    height: 70vw;
    object-fit: cover;
    /* 画像の比率を維持しつつ、枠に収める */
    object-position: center;
    /* 画像の中心を表示 */
}

.profile-info {
    padding: 8px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 5px;
}

.name {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
}

.details,
.description {
    color: var(--text-color);
}

.details {
    font-size: 0.9rem;
    color: #ffffff;
    margin-top: 10px;
}

.description {
    font-size: 0.8rem;
    color: #b8b8b8;
    margin-top: 8px;
    line-height: 1.6;
}

.post-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 縦横比を維持して動画を拡大縮小 */
}


.add {
    background: #ff7878;
    color: #fff;
    padding: 7px 10px;
    border-radius: 5px;
    font-size: .7rem;
    letter-spacing: .5px;
    white-space: nowrap;
    font-weight: bold;
}

.icon-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#reshuffle-button {
    width: 180px;
    margin: 10px auto 20px;
    display: block;
    padding: 15px;
    background: #ff7878;
    color: #ffffff;
    border-radius: 30px;
    letter-spacing: 2px;
    font-weight: bolder;
    font-size: .9rem;
}

.post-slider-container {
    position: relative; /* バッジをこのコンテナに固定するため */
}

.new-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 40px;
    background-image: url('../img/new-bg.png');
    background-size: contain;
    display: flex;
    z-index: 1; /* スライドの上に表示 */
    background-repeat: no-repeat;
    justify-content: space-between;
    align-items: center;
}

.new-badge img {
    width: 70px;
}

.post-slider {
    width: 100%;
    height: auto;
}

.join {
    color: #00ff11;
    font-weight: bolder;
    background: #333333bf;
    padding: 5px 10px;
    font-size: .8rem;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-right: 5px;
    animation: blink 1s infinite; /* 点滅アニメーションを適用 */
    position: absolute;
    z-index: 10;
    right: 0;
    top: 5px;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* オーバーレイのスタイル */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(14 14 14 / 90%); /* 薄いピンク */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(8px); /* すりガラス効果のぼかし */
}

.overlay-content {
    text-align: center;
    /* background: #fff; */
    padding: 20px;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
}

.overlay-content img{
    width: 150px;
    margin-bottom: 20px;
}

.age-warning {
    color: #979797;
    font-size: .8rem;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.buttons button {
    padding: 10px 35px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#enter-button {
    background-color: #ff7878; /* 緑 */
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#leave-button span,
#enter-button span{
    display: block;
    margin: 5px auto;
    font-weight: bolder;
}

#leave-button {
    background-color: #ffffff; /* トマトレッド */
    color: #ff7878;
}

/* ローディングアイコンのスタイル */
.loading-icon {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.2);
    border-top: 5px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
    transform: translate(-50%, -50%);
    z-index: 1000;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}