/* main */
.photos {
    display: flex;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
}

.item {
    cursor: pointer;
    height:40vh;
    flex: 0 1 16%;
    /* 横に4列表示 */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    font-weight: bold;
    margin-bottom: 1%;
    margin-left: 0.5%;
    font-size: small;
}

/* header */
body {
    margin: 0px;
}

li {
    list-style-type: none;
    /* 点を消す */
    margin: 5px 0;
    /* 上下に5px、左右に0px */
}

.block-center {
    width: 70vw;
    text-align: center;
}

.container2 {
    display: flex;
}

.block-left,
.block-right {
    width: 14vw;
    background-color: #fffafa;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header,
footer {
    background-color: #ff27e2;
    /* 赤い背景色 */
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    color: white;
    float: right;
}

nav ul li {
    margin: 0 10px;
}

footer a,
nav,
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

/* 検索ボックス */
.search-form-3 {
    margin: 0px 10%;
    display: flex;
    overflow: hidden;
    border: 1px solid #000000;
    border-radius: 25px;
}

.search-form-3 input {
    padding: 5px 15px;
    border: none;
}

.search-form-3 input::placeholder {
    color: #777777;
}

/* パンくずリスト */
.breadcrumb {
    list-style: none;
    display: flex;
    padding: 0;
}

.breadcrumb li {
    margin-right: 5px;
}

.breadcrumb li+li:before {
    content: '>';
    margin-right: 5px;
}

.breadcrumb a {
    text-decoration: none;
    color: blue;
}

/* main */
.read-more-button {
    padding: 10px 20px;
    color: white;
    background-color: rgb(255, 0, 43);
    border-radius: 50px;
    font-weight: bold;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.read-more-button:hover {
    background-color: #ff0080;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button {
    padding: 10px;
    margin: 5px;
    font-size: 1em;
}

.button {
    cursor: pointer;
    display: inline-block;
    padding: 30px 50px;
    background-color: #e74c3c;
    color: white;
    margin-bottom: 60px;
    font-size: 28px;
}

.button:hover {
    background-color: #c0392b;
}

/* タグ */
.tag {
    display: inline-block;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 10px;
    margin: 5px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

/* detail */
.genre {
    cursor: pointer;
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 5px 10px;
    margin: 10px;
    font-size: 24px;
}

.actress {
    cursor: pointer;
    display: inline-block;
    background-color: #b245fa;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 10px;
    font-size: 24px;
}

.maker {
    cursor: pointer;
    display: inline-block;
    background-color: #109246;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    margin: 10px;
    font-size: 24px;
}

/* ビデオボタン */
.video-container {
    cursor: pointer;
    margin: 2% 15%;
    position: relative;
    height: 28vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.play-button {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.play-button::before {
    content: '';
    border-style: solid;
    border-width: 20px 0 20px 35px;
    border-color: transparent transparent transparent #000;
    margin-left: 8px;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    z-index: 1;
}

.progress-bar-fill {
    flex-grow: 1;
    height: 100%;
    background: #76c7c0;
}

.progress-time {
    color: #fff;
    padding-left: 10px;
}

.video-background-img {
    position: absolute;
    height: 100%;
    filter: blur(2px);
}



/* レビュー星*/
.stars {
    display: inline-block;
    position: relative;
    color: gray;
    /* 空の星の色 */
}

.stars::before {
    content: '★★★★★';
    /* 5つの灰色の星 */
    display: block;
}

.stars::after {
    content: '★★★★★';
    /* 5つの金色の星 */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    color: gold;
    /* 満たされた星の色 */
    width: var(--rating);
    /* 評価に応じた幅 */
    overflow: hidden;
    /* 指定幅を超えた部分を隠す */
}

/* 署名部分 */
.admin-box {
    border: 2px solid #e6007e; /* マゼンタ色の枠線 */
    border-radius: 8px;
    background-color: #f9ebf4; /* 白背景 */
}
.admin-box h2 {
    margin: 0;
    color: #e6007e; /* マゼンタ色 */
    font-size: 20px;
}
.admin-box p {
    margin: 5px 0;
    line-height: 1.6;
    color: #333333;
    font-size: 14px;
}
.admin-box .subheading {
    color: #666666;
    font-size: 12px;
    margin-bottom: 10px;
}


/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    list-style-type: none;
    padding: 0;
    flex-wrap: wrap;
}

.pagination li {
    margin: 0 5px;
}

.pagination a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination .active a {
    background-color: #007bff;
    color: white;
    pointer-events: none;
}

.pagination .disabled a {
    color: #ccc;
    pointer-events: none;
    border-color: #ddd;
}

/* ここからプルダウン */

.monthly-links-container {
    display: inline-block;
    position: relative;
    width: 200px;
    text-shadow:none;
}

.monthly-links-summary {
    border: 1px solid #424242;
    cursor: pointer;
    text-align: center;
    color :#0011ff;
    margin-top:4px;
}

.monthly-links-list {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background: #fffeff;
}
.monthly-link-item a{
    text-shadow:none;
}
.monthly-links-dropdown[open] .monthly-links-list {
    display: block;
}

.monthly-link-item:hover {
    background: #fa71ff;
}
/* ここまでプルダウン */

/* maxなのでスマホのみ */
@media (max-width: 768px) {
    h1 {
        font-size: 1em;
    }

    #nav li {
        margin: 10px 10px;
    }

    .photos .item {
        flex: 0 1 32%;
    }

    .container2 {
        flex-direction: column;
    }

    .block-left,
    .block-right,
    .block-center {
        width: 100vw;
    }

    /* 閉じるトグル */
    .toggle-container {
        cursor: pointer;
        display: inline-block;
        padding: 10px;
        font-size: 20px;
        border: 1px solid #000;
        border-radius: 5px;
        user-select: none;
    }

    .toggle-content {
        display: none;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid #000;
    }

    /* チェックボックスのスタイルを隠す */
    #toggle {
        display: none;
    }

    /* チェックされた場合に表示 */
    input[type="checkbox"]:checked~.toggle-content {
        display: block;
    }

    /* チェックされた場合のラベルの変化 */
    input[type="checkbox"]:checked+.toggle-container::before {
        content: "閉じる▲";
    }

    /* 初期状態のラベル */
    .toggle-container::before {
        content: "絞り込み検索▼";
        margin-right: 5px;
    }

    .menu li {
        margin-bottom: 10px;
        /* 各リンクの下にスペースを追加 */
    }

    .video-container {
        width: 90%;
        margin: 0px 0px 5% 5%;
        height: 250px;
    }

    .pagination a{
        font-size: 12px;
        padding:3px;
    }
}