/* main */
main {
    min-height: 100svh; /* スマホ対応の安定単位 */
}
html {
    overflow-y: scroll;
}
.photos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    cursor: pointer;
    /* height:40vh; */
    flex: 0 1 12%;
    /* 横に4列表示 */
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    margin-bottom: 1%;
    font-size: small;
    aspect-ratio: 10 / 16;
}

/* header */
body {
    margin: 0px;
    max-width: 100vw;   /* ビューポート幅を超えない */
    overflow-x: hidden; /* 横スクロール禁止 */
}

li {
    list-style-type: none;
    /* 点を消す */
    margin: 5px 0;
    /* 上下に5px、左右に0px */
}

.block-center {
    flex: 1;           /* 残りの幅を自動で占有 */
    text-align: center;
}

.container2 {
    display: flex;
}

.block-left{
    flex: 0 0 13%; /* 固定幅 */
    background-color: #fffafa;
}

.block-right {
    flex: 0 0 13%; /* 固定幅 */
    background-color: #fffafa;
    width:10%;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

header{
    background-color: #ff27e2;
    /* 赤い背景色 */
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
footer {
    height: 9VH;
    background-color: #ff27e2;
    /* 赤い背景色 */
    padding: 10px 10px;
    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);
}


@keyframes glow {
    0% { box-shadow: 0 0 5px #ff27e2, 0 0 10px #ff0000; }
    100% { box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000; }
}

.button {
    cursor: pointer;
    display: inline-block;
    padding: 10px 15px;
    background-color: #be1300;
    color: white;
    margin: 5px;
    font-size: 15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    width:25%;
    animation: glow 1s infinite alternate;
}

/* タグ */
.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,
.actress,
.maker {
    cursor: pointer;
    display: inline-block;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    margin: 3px;
}


.genre {
    background-color: #005a96ff;
}

.actress {
    background-color: #700bb4ff;
}

.maker {
    background-color: #109246;
}

/* ビデオボタン */
.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 {
    width: 90%;
    margin: 10% auto 0 auto; /* 上10%、左右自動、下0 */
    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: #9400a1;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #9400a1;
    color: white;
}

.pagination .active a {
    background-color: #9400a1;
    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;
}
/* ここまでプルダウン */

/* ここまでアコーディオン */
.faq-block h3,
.toggle-content-block .toggle-header {
  cursor: pointer;
  position: relative;
  padding-right: 1.5em;
}

.faq-block h3::after,
.toggle-content-block .toggle-header::after {
  content: "▼";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.3s;
}

.faq-block h3.open::after,
.toggle-content-block .toggle-header.open::after {
  transform: rotate(180deg);
}

.faq-block p,
.toggle-content-block .toggle-body {
  display: none;
}

.faq-block p.show,
.toggle-content-block .toggle-body.show {
  display: block;
}
/* ここまでアコーディオン */

/* lazdyloadのdummy画像の代わり */
.imgdelay {
  width: 400px;
  height: 300px;
  background-color: #f0f0f0; /* プレースホルダー色 */
  background-size: cover;
  background-position: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.card {
    padding: 8px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease;
}

.card:hover {
    transform: scale(1.05);
}

.video {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
}

.vr {
    background: linear-gradient(135deg, #5e9cff, #3370ff);
}

.amateur {
    background: linear-gradient(135deg, #72e198, #4ab471);
}

.unknown {
    background: #aaa;
}
    /* maxなのでスマホのみ */
    @media (max-width: 768px) {
    .block-left,
    .block-center,
    .block-right {
    flex: 1;           /* 残りの幅を自動で占有 */
        background-color: #fffafa;
                width: 100%;
    }

header
,footer {
    font-size: 11px; /* SEO的に問題ない最小文字サイズ */
    line-height: 1.2; /* 文字の間隔を詰める */
}

    h1 {
        font-size: 1em;
    }

    #nav li {
        margin: 10px 10px;
    }

    .photos .item {
        flex: 0 1 33%;
    }

    .container2 {
        flex-direction: column;
    }

    /* 閉じるトグル */
    .toggle-container {
        cursor: pointer;
        display: inline-block;
        padding: 2px;
        border: 1px solid #000;
        border-radius: 5px;
        user-select: none;
    }

    .toggle-content {
        display: none;
        padding: 10px;
    }

    /* チェックボックスのスタイルを隠す */
    #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;
    }
}