/*
Theme Name: Modern Dark Corporate
*/

/* ==========================================
   TYPOGRAPHY (文字設定)
   ========================================== */
body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.entry-content p {
    font-size: 1rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 600;
}

.entry-content p.pale {
    font-size: 1rem;
    line-height: 1.2;
    color: #c0c0c0;
    font-weight: 600;
}

.entry-content p.disclaimer {
    font-size: 0.8rem;
    line-height: 1.2;
    color: #c0c0c0;
    font-weight: 500;
}

/* ランキング用タイトル */
h1.rank-title {
    font-size: 20px !important;
    line-height: 1.4;
    margin-bottom: 5px;
    padding-bottom: 5px;
    color: #fff;
}

/* ランキング用女優名 */
h2.rank-name {
    font-size: 15px !important;
    color: #fff;
    margin-top: 0;
    margin-bottom: 5px;
}


/* ------------リンク文字設定---------------- */
/* 1. 通常時のリンク */
a {
    color: #ffffff;            /* 文字の色（白など） */
    text-decoration: underline;     /* 下線を消す（現代的なデザインでは消すことが多いです） */
    transition: 0.3s;          /* ホバー時の変化をなめらかにする */
}

/* 2. マウスを乗せた時（ホバー） */
a:hover {
    color: #cccccc;            /* ホバー時に少しグレーにする */
    text-decoration: underline; /* ホバー時だけ下線を出す、という演出も可能です */
    opacity: 0.8;              /* 少し透明にするという手法もよく使われます */
}

/* 3. 訪問済みのリンク（以前紫色になった原因） */
a:visited {
    color: #ffffff;            /* 訪問済みでも色を変えたくない場合は、通常時と同じ色を指定します */
}

/* 記事本文内のリンクだけに下線を強制する */
.entry-content a {
    text-decoration: underline !important; /* !importantで強制適用 */
    text-underline-offset: 3px; /* 下線と文字の隙間を作ると綺麗です */
}
/* ==========================================
   基本設定（サイト全体）
   ========================================== */


* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    background-color: #121212;
    color: #ffffff;
    font-family: sans-serif;
    scroll-behavior: smooth;
}

/* ヒーローエリア等 */
.hero { height: 100vh; display: flex; justify-content: center; align-items: center; background: #000; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 4rem); text-align: center; margin-bottom: 30px; font-weight: 900; }
.hero .hero-description { color: #999999; font-size: 1.2rem; margin-bottom: 40px; font-weight: 300; letter-spacing: 0.05em; }
.tag-nav { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; padding: 0 20px; }
.tag-nav a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.4); padding: 8px 18px; font-size: 0.9rem;font-weight:bold; transition: 0.3s; }
.tag-nav a:hover { background: #fff; color: #000; }

.tag-nav a.page-link { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.4);background: rgba(255, 255, 255, 0.2); padding: 8px 18px; font-size: 0.9rem; font-weight:normal;transition: 0.3s; }
.tag-nav a.page-link:hover { background: #fff; color: #000; }

.tag-section { padding: 10px 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }
.tag-title { font-size: 1.4rem; margin-bottom: 0px; border-left: 4px solid #fff; padding-left: 20px; }
.bg-dark { background-color: #121212; }
.bg-darker { background-color: #202020; }

/* Swiper設定 */
.swiper { width: 100%; overflow: visible !important; padding: 20px 0 40px 0 !important; position: relative; }
.swiper-slide.post-card { width: 280px; height: auto; flex-shrink: 0; }
.post-thumb img, .post-thumb-placeholder { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 0px 0px 0 0; }
.post-card a { text-decoration: none; color: inherit; display: block; }
.post-content h3 { font-size: 1.1rem; line-height: 1.4; margin: 0; color: #ffffff; }
.swiper-button-next, .swiper-button-prev { color: #ffffff !important; background: rgba(0, 0, 0, 0.6); width: 44px !important; height: 44px !important; border-radius: 50%; }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 18px !important; font-weight: bold; }
.swiper-pagination-bullet { background: #fff !important; opacity: 0.5; }
.swiper-pagination-bullet-active { opacity: 1; }

/* ページトップボタン */
.page-top-btn { position: fixed; right: 25px; bottom: 25px; z-index: 100; opacity: 0; visibility: hidden; transition: 0.3s; }
.page-top-btn.is-show { opacity: 1; visibility: visible; }
.page-top-btn a { display: flex; justify-content: center; align-items: center; width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; text-decoration: none; transition: 0.3s; }
.page-top-btn a:hover { background-color: #ffffff; border-color: #ffffff; }
.arrow-up { display: block; width: 12px; height: 12px; border-top: 2px solid #ffffff; border-right: 2px solid #ffffff; transform: rotate(-45deg); margin-top: 5px; transition: 0.3s; }
.page-top-btn a:hover .arrow-up { border-color: #000000; }

/* =========================================
   記事内（通常モード）のスタイル
   ========================================= */
.dmm-wrapper { margin-bottom: 10px; border-bottom: none; padding-bottom: 10px; }
.dmm-video-box { position: relative; width: 100%!important; padding-top: 75%; margin-bottom: 15px; background: #000; }
.dmm-video-box iframe { position: absolute; top: 0; left: 0; 
	width: 100%!important; 
	height: 100%!important; 
	
	border: none; }

.dmm-wrapper .dmm-swiper { width: 100%; background: #000; padding-bottom: 30px; opacity: 0; transition: opacity 0.3s; }
.dmm-wrapper .dmm-swiper.swiper-initialized { opacity: 1; }
.dmm-wrapper .swiper-slide { background: #000; display: flex; justify-content: center; align-items: center; height: auto; aspect-ratio: 4 / 3; min-height: 250px; }
.dmm-wrapper .swiper-slide img { width: 100%; height: 100%; object-fit: contain; max-height: 500px; border-radius: 0px; }

.dmm-btn-container { display: flex; gap: 10px; justify-content: center; margin-top: 0px; margin-bottom: 50px; flex-wrap: wrap; }
.dmm-open-btn, .dmm-fanza-btn { flex: 1; min-width: 140px; padding: 5px; text-align: center; border-radius: 0px; cursor: pointer; font-weight: bold; font-size: 14px; text-decoration: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.dmm-open-btn { background: #333; color: #fff; }
.dmm-fanza-btn { background: #d0021b; color: #fff !important; }

/* =========================================
   縦スワイプ（TikTokモード）
   ========================================= */
#dmm-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 99999; display: none; }
#dmm-overlay.active { display: block; }
.vertical-swiper { width: 100%; height: 100%; }
.vertical-swiper > .swiper-wrapper > .swiper-slide { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; background: #000; width: 100%; height: 100dvh; padding: 60px 0 20px; box-sizing: border-box; overflow: hidden; }
.dmm-close-btn { position: absolute; top: 15px; right: 15px; width: 40px; height: 40px; background: rgba(255,255,255,0.2); border-radius: 50%; color: #fff; font-size: 24px; line-height: 40px; text-align: center; cursor: pointer; z-index: 100002; }

/* オーバーレイ内部 */
.dmm-overlay-header { width: 100%; max-width: 600px; padding: 0 15px 5px; color: #fff; font-size: 12px; font-weight: bold; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; }
.dmm-overlay-video { width: 100%; padding-top: 75%; height: 0; flex-shrink: 0; background: #000; position: relative; margin-bottom: 10px; }
.dmm-overlay-video iframe { position: absolute; top: 0; left: 0; 
	width: 100%!important; 
	height: 100%!important; 
	border: none; }

.dmm-overlay-info-box { width: 100%; max-width: 600px; padding: 0 15px; box-sizing: border-box; flex-shrink: 0; margin-bottom: 5px; text-align: left; }
.dmm-info-row { display: flex; align-items: center; margin-bottom: 4px; color: #fff; }
.dmm-info-label { background: #444; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 0px; margin-right: 8px; white-space: nowrap; flex-shrink: 0; }
.dmm-info-split { display: flex; align-items: center; overflow: hidden; flex: 1; font-size: 13px; font-weight: bold; }

.dmm-performer { white-space: nowrap; flex-shrink: 0; margin-right: 6px; color: #f8b500; font-size: 13px; }
.dmm-title-wrap { flex: 1; overflow: hidden; white-space: nowrap; position: relative; display: block; }
.dmm-video-title { display: inline-block; white-space: nowrap; transform: translateX(0); color: #ffffff; font-size: 13px; }
.dmm-info-text { font-size: 13px; font-weight: bold; overflow: hidden; }

/* オーバーレイ画像スライダー */
.dmm-overlay-slider-area { width: 100%; max-width: 600px; flex-grow: 1; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: center; }
.dmm-overlay-slider-area .dmm-swiper { width: 100%; height: 100%; padding-bottom: 25px; background: #000; }
.dmm-overlay-slider-area .swiper-slide { background: transparent; height: 100% !important; min-height: 0 !important; aspect-ratio: auto !important; display: flex; align-items: center; justify-content: center; }
.dmm-overlay-slider-area .swiper-slide img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.dmm-overlay-footer { width: 100%; max-width: 600px; padding: 10px 15px; flex-shrink: 0; box-sizing: border-box; text-align: center; }
.dmm-overlay-footer .dmm-fanza-btn { display: block; width: 100%; margin: 0 auto; }

/* 横長画面用設定 */
@media (orientation: landscape) {
    .vertical-swiper > .swiper-wrapper > .swiper-slide { display: block; padding: 0; width: 100%; height: 100dvh; background: #000; overflow: hidden; }
    .dmm-overlay-header { position: relative; height: 30px; width: 100%; padding: 0 10px; background: #000; display: flex; align-items: center; z-index: 10; box-sizing: border-box; }
    .dmm-header-title { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
    .dmm-header-count { font-size: 12px; margin-left: 10px; }
    .dmm-close-btn { position: static; width: 40px; height: 30px; line-height: 30px; background: transparent; font-size: 20px; margin-left: 10px; }
    .dmm-overlay-video { width: 100%; height: calc(100dvh - 80px) !important; padding-top: 0 !important; margin: 0; background: #000; position: relative; flex: none; display: flex; align-items: center; justify-content: center; }
    .dmm-overlay-video iframe { position: absolute; top: 0; left: 0; 
		width: 100%!important; 
		height: 100%!important; 
		border: none; }
    .dmm-overlay-slider-area { display: none; }
    .dmm-overlay-info-box { position: relative; height: 50px; width: 100%; padding: 0 10px; background: #000; display: flex; flex-direction: row; align-items: center; justify-content: space-between; margin: 0; border-top: 1px solid #222; box-sizing: border-box; }
    .dmm-info-row { margin: 0; max-width: 60%; display: block; }
    .dmm-info-label { display: none; } 
    .dmm-info-split { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .dmm-performer { font-size: 13px; color: #ff99cc; margin-right: 8px; }
    .dmm-video-title { font-size: 13px; color: #ccc; }
    .dmm-info-text { display: none; } 
    .dmm-overlay-footer { position: static; width: auto; height: 100%; padding: 0; margin: 0; background: transparent; display: flex; align-items: center; }
    .dmm-overlay-footer .dmm-fanza-btn { width: 120px; padding: 6px 0; font-size: 12px; margin: 0; }
}

/* =========================================
   記事上部のまとめ表 (2列版：名前・タイトル)
   ========================================= */
.dmm-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
    table-layout: fixed;
}
.dmm-summary-table thead { display: none; }
.dmm-summary-table td {
    border-bottom: 0px solid #eee;
    padding: 2px 2px;
    vertical-align: middle;
    font-size: 15px;
}

/* 女優名 (30%) */
.dmm-summary-table .dmm-col-name {
    width: 30%;
    font-weight: bold;
    text-align: left;
    color: #fff;
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* タイトル (70%) */
.dmm-col-title {
    width: 70%;
    vertical-align: middle;
    white-space: normal;
    word-break: break-all;
    overflow: visible;
    line-height: 1.3;
}

.dmm-col-title a {
    text-decoration: none;
    color: #ffffff !important;
    display: block;
    font-weight: bold;
    padding: 2px 0;
}

.dmm-title-text {
    white-space: normal !important;
    word-break: break-all;
    overflow-wrap: break-word;
    display: inline;
    line-height: 1.3;
    color: #ffffff !important;
    font-weight: bold;
}

/* 年代区切り */
.dmm-table-year {
    
    color: #fff;
    font-weight: bold;
    text-align: left;
    padding: 0px;
    font-size: 35px !important;
}

/* =========================================
   記事上部のトップカルーセル
   ========================================= */
.dmm-top-carousel {
    width: 100%;
    margin-bottom: 40px;
    padding: 20px 0 40px;
    background: #000;
}

.dmm-top-carousel .swiper-slide {
    width: auto;
    height: 300px; /* PCでの高さ */
    background: #000;
}

.dmm-top-carousel .swiper-slide a { display: block; height: 100%; }
.dmm-top-carousel .swiper-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.dmm-top-carousel .swiper-slide a:hover img { transform: scale(1.02); opacity: 0.9; }

.dmm-top-carousel .swiper-button-next,
.dmm-top-carousel .swiper-button-prev {
    color: #fff;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}
.dmm-top-carousel .swiper-pagination-bullet { background: #888; opacity: 0.5; }
.dmm-top-carousel .swiper-pagination-bullet-active { background: #fff; opacity: 1; }

@media screen and (max-width: 600px) {
    .dmm-top-carousel .swiper-slide { height: 180px; }
}

/* =========================================
   画質切り替えボタン
   ========================================= */
.dmm-quality-fixed-box {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: -99999;
    width: 44px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0px;
    display: block;
    padding: 0;
    margin: 0;
    overflow: hidden;
}
.dmm-quality-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; text-align: center; font-size: 11px; font-weight: bold;
    color: #bbb; line-height: 1; white-space: nowrap; pointer-events: none;
}
.dmm-quality-select {
    position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important;
    opacity: 0; cursor: pointer; font-size: 16px; margin: 0; padding: 0; border: none;
    -webkit-appearance: none; appearance: none;
}
@media screen and (max-width: 600px) {
    .dmm-quality-fixed-box { top: 5px; left: 5px; }
}

/* ============================================================
   記事一覧（レスポンシブ・グリッド）
   ============================================================ */

/* 一覧を包むコンテナ */
.horizontal-list {
    display: block; /* スマホでは縦に並べるだけ */
}

/* カード全体の基本設定（スマホ：横型） */
.responsive-card {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 0px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: 0.3s;
}

.responsive-card:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-0px);
    border-color: rgba(255, 255, 255, 0);
}

.responsive-card a {
    display: flex; /* 横並び */
    flex-direction: row; 
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

/* 画像エリア（スマホ） */
.responsive-card .card-image {
    flex: 0 0 120px; /* 横幅固定 */
    height: auto;
    background-color: rgba(255,255,255,0);
}

.responsive-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: rgba(255,255,255,0);
}

/* テキストエリア */
.responsive-card .card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.responsive-card .card-date {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
}

.responsive-card .card-title {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: #fff;
}

/* ------------------------------------------------------------
   PCサイズ（横長画面：768px以上）
   ------------------------------------------------------------ */
@media (min-width: 768px) {
    /* 一覧をグリッド（タイル型）にする */
    .horizontal-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
        gap: 25px;
    }

    /* カードを縦型にスイッチ */
    .responsive-card a {
        flex-direction: column; /* 画像が上、テキストが下 */
    }

    /* 画像エリアを上部固定にする */
    .responsive-card .card-image {
        flex: none;
        width: 100%;
        height: 180px; /* PCでの画像の高さ */
    }

    .responsive-card .card-content {
        padding: 20px;
    }

    .responsive-card .card-title {
        font-size: 1.1rem;
    }
}

/* ==========================================
   hi-ro- 
   ========================================== */



/* ヒーローエリア全体の枠 */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden; /* 横はみ出しを隠す */
    background: #000; /* 横が余った時は黒背景 */
}

/* 背景スライダーの設定 */
.heroSwiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    display: flex;
    justify-content: center; /* 横幅が広い時は中央を出す */
    align-items: center;
    height: 100%;
}

.hero-slide img {
    height: 100%;     /* 縦をいっぱいに固定 */
    width: auto;      /* 横は比率を保つ（はみ出しOK） */
    min-width: 100%;  /* 横が足りない時は画面幅に合わせる */
    object-fit: cover;
}

/* 黒の半透明フィルター */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 濃さはお好みで */
    z-index: 2;
    pointer-events: none; /* 下のスワイプを邪魔しない */
}

/* 中央コンテンツ */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* 下部操作パネル */
.hero-controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
}

.hero-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.hero-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.2em;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 5px;
}

.hero-prev, .hero-next {
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    padding: 10px;
    transition: 0.3s;
    user-select: none;
}

.hero-prev:hover, .hero-next:hover {
    opacity: 0.5;
}

/* ドット（ページネーション） */
.hero-pagination {
    display: flex;
    justify-content: center;
}

.hero-pagination .swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.3;
    width: 8px;
    height: 8px;
    margin: 0 5px !important;
}

.hero-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ==========================================
   API検索
   ========================================== */

/* ========================
   1. レイアウト・共通
   ======================== */
/* ビューワー本体の幅制限を緩める（必要であれば） */
.fanza-viewer {
    max-width: 1300px !important; /* 900pxから少し広げる */
    width: 100%;
}

/* 全体の余白を詰める */
.fanza-main-content {
    padding: 10px 5px !important; /* 左右の余白を5pxに縮小 */
    max-width: 1300px !important;   /* 親要素の幅いっぱいを使う */
	margin-top: 40px;
}

.fanza-override-page { padding: 0px 0 0px 0 ; min-height: 800px; background: #1a1a1a; color: #fff; } /* 左右padding 0 に変更 */

/* ただし文字要素にはpaddingを戻す */
.group-unit-header, .fanza-pagination, .viewer-title, .search-result-header, .sort-links, .item-details-list, .info-text {
    padding-left: 5px; padding-right: 5px;
}



.fanza-btn { display: inline-block; background: #d0021b; color: #fff !important; font-weight:bold; padding: 8px 16px; text-decoration: none; border-radius: 4px; border:none; cursor: pointer; font-size: 14px; }
.fanza-btn-mini { background: #d0021b; color: #fff; padding: 5px 10px; border-radius: 3px; text-decoration: none; font-size: 12px; }
.info-text { text-align: center; color: #666; padding: 20px; }

/* 「画像スワイプ」ボタン */
.btn-swipe { background-color: #888!important; font-weight:bold; color: #ffffff !important; }
.btn-swipe:hover { background-color: #555!important; }

/* ========================
   2. 固定ボタン (左上・右上)
   ======================== */
.fanza-fixed-btn {
    position: fixed; top: 15px; z-index: 10000;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.7); color: #fff;
    border: none; padding: 0; display: flex; justify-content: center; align-items: center;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.1s, background 0.2s;
}
.fanza-fixed-btn:active { transform: scale(0.95); }
.fanza-fixed-btn:hover { background: rgba(0, 0, 0, 0.9); }
.fanza-icon { width: 24px; height: 24px; stroke-width: 2px; }
.fanza-fixed-btn .icon { font-size: 20px; line-height: 1; }

/* 位置指定 */

/* 検索ボタン (一番左) */
.btn-left-1 {
    left: 15px !important;
    right: auto !important;
}

/* メニューボタン (検索ボタンの右隣) */
.btn-left-2 {
    /* 15px(左余白) + 44px(ボタン幅) + 10px(隙間) = 69px */
    left: 70px !important; 
    right: auto !important;
}


.btn-right { right: 15px; left: auto; background: rgba(248, 181, 0, 0.8); color: #fff; }
.btn-right:hover { background: rgba(248, 181, 0, 1.0); }
body.swipe-mode-active .fanza-fixed-btn { display: none; }

/* ========================
   3. モーダル
   ======================== */
.search-modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8)!important; padding-top: 80px; overflow-y: auto;
}
.search-modal-content { max-width: 600px; margin: 0 auto; padding: 20px; background: #212121; border: 0px solid #eee; border-radius: 8px; }
.modal-section h3 { border-left: 4px solid #f8b500; padding-left: 10px; margin: 20px 0 10px; color:#fff; }
.form-group { margin-bottom: 15px; color:#ccc; }
.form-group label { display: block; font-weight: bold; margin-bottom: 5px; font-size: 0.9rem; }
.keyword-row { display: flex; gap: 5px; margin-bottom: 5px; }
.fanza-input-std { flex: 1; padding: 8px; border:1px solid #ccc; border-radius:4px; width:100%; box-sizing:border-box; }
.search-btn { width: 100%; padding: 12px; font-size: 16px; margin-top: 10px; background-color: #f8b500 !important; color:#fff !important; cursor:pointer; border:none; border-radius:4px; }
.search-results-dropdown { display:none; border:1px solid #ddd; position:absolute; width:100%; background:#fff; z-index:100; max-height:200px; overflow-y:auto; }
.search-results-dropdown li a { display:block; padding:10px; border-bottom:1px solid #eee; color:#333; text-decoration:none; }

/* お気に入りの「まとめて見る」ボタン */
.btn-view-group { background-color: #f8b500 !important; color: #fff !important; font-weight: bold; }

/* お気に入りアコーディオン */
.fav-toggle-label { cursor: pointer; display:block; flex:1; font-weight:bold; color:#fff; }
.fav-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; padding: 10px 0; }
.fav-body { padding-top: 10px; }
.fav-toggle-star { cursor: pointer; color: #ccc; font-size: 1.2em; margin-left: 5px; user-select: none; }
.fav-toggle-star.active { color: #f8b500; text-shadow: 0 0 2px #f8b500; }
.fav-ids-area { width: 100%; height: 60px; font-size: 12px; padding: 5px; border: 1px solid #ddd; }
.fav-btns { margin: 5px 0; display: flex; gap: 5px; }
/* 「IDコピー」ボタン (例: グレー) */
.btn-copy {
    background-color: #f8b500 !important; border: none !important;
}

/* 「保存」ボタン (例: 青) */
.btn-save {
    background-color: #f8b500 !important;border: none !important;
}
.fav-list-links { list-style: none; padding: 0; max-height: 150px; overflow-y: auto; color:#ccc; }
.fav-list-links li a { color:#ccc; text-decoration:none; display:block; padding:3px 0; }

/* メニューリスト */
.fanza-menu-list { list-style: none; padding: 0; }
.fanza-menu-list li a { display: block; padding: 15px; border-bottom: 1px solid #444; color: #fff; text-decoration: none; }

/* ========================
   4. ビューワー
   ======================== */
.viewer-title { text-align: center; font-size: 1.4rem; margin-bottom: 15px; color:#fff; }
.search-result-header { background: #333; padding: 10px; border-left: 5px solid #f8b500; margin-bottom: 20px; font-size: 0.9rem; color:#fff; }

/* テーブル */
.history-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 30px; }
.history-table { width: 100%; min-width: 700px; border-collapse: collapse; color:#ccc; }
.history-table th { background: #333; padding: 10px; font-size: 12px; white-space: nowrap; text-align: left; color:#fff; }
.history-table th a { color: #fff; text-decoration: none; }
.history-table td { padding: 10px; border-bottom: 1px solid #444; font-size: 13px; }
.year-row td { background: none; font-weight: bold; font-size: 15px; color:#fff; }

/* キャンペーン色分け (表の背景色) */
.campaign-permanent td { background-color: rgba(248, 181, 0, 0.5) !important; }
.campaign-limited td { background-color: rgba(208, 2, 27, 0.5) !important; }

/* カルーセル (トップ & グループ統一) */
.top-carousel .swiper-slide,
.group-carousel .swiper-slide {
    text-align: center; background: #000 !important; height: auto; display: flex; align-items: center; justify-content: center;
}
.top-carousel .swiper-slide img,
.group-carousel .swiper-slide img {
    height: 250px; width: 100%; object-fit: contain; background: #000; 
}

/* グループカルーセルの余白なし調整 */
.group-carousel { padding: 0; margin: 0; }

/* 商品詳細カルーセル */
.sample-carousel .swiper-slide { text-align: center; background: #333; height: auto; display: flex; align-items: center; justify-content: center; }
.sample-carousel .swiper-slide img { max-height: 500px; width: auto; max-width: 100%; height: auto; object-fit: contain; cursor: pointer; }
.has-movie .sample-carousel .swiper-slide { background: #000; }
.has-movie .sample-carousel .swiper-slide img { height: 300px; width: 100%; object-fit: contain; }
.no-movie .sample-carousel .swiper-slide { background: #000; height: auto; }
.no-movie .sample-carousel .swiper-slide img { height: auto; width: auto; max-width: 100%; max-height: 500px; object-fit: contain; }

.item-card { margin-bottom: 40px; background:#222; padding:15px; border-radius:8px; }
.item-title { font-size: 1.2rem; margin-bottom: 10px; padding-bottom: 5px; border-bottom: 1px dashed #444; color:#fff; }

/* キャンペーン色分け (商品詳細のタイトル下線) */
.title-camp-perm { border-bottom: 3px solid #f8b500; display: inline-block; line-height: 1.4; }
.title-camp-limit { border-bottom: 3px solid #d0021b; display: inline-block; line-height: 1.4; }

.item-meta { font-size: 0.85rem; color: #ccc; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.item-meta span { background: #444; color: #fff; font-weight:bold; padding: 2px 6px; border-radius: 4px; }
.item-meta a { color:#fff; text-decoration:none; }
.item-actions { margin-bottom: 15px; display: flex; gap: 10px; }
.item-media { margin: 0 -10px; } @media (min-width: 641px) { .item-media { margin: 0; } }

.movie-container { position: relative; padding-bottom: 75%; background: none; height: 0; }
.movie-container iframe { position: absolute; top:0; left:0; width:100%; height:100%; }

/* シンプル検索ボックス */
.fanza-hero-search-form { width: 100%; max-width: 650px; margin: 0 auto; padding: 20px; box-sizing: border-box; }
.fanza-hero-input-group { display: flex; gap: 0; background: #fff; padding: 0; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #eee; overflow: hidden; }
.hero-type-toggle { background: #444; color: #fff; border: none; padding: 0 20px; font-size: 14px; font-weight: bold; cursor: pointer; min-width: 80px; transition: background 0.3s; border-right: 1px solid rgba(255,255,255,0.2); }
.hero-type-toggle.is-doujin { background: #111; }
.hero-type-toggle:hover { opacity: 0.9; }
.hero-input { flex: 1; border: none !important; background: transparent !important; padding: 15px 15px !important; font-size: 16px !important; outline: none !important; border-radius: 0 !important; }
.hero-submit-btn { background: #d0021b; color: #fff; border: none; padding: 0 30px; margin: 4px; border-radius: 50px; font-weight: bold; cursor: pointer; font-size: 16px; transition: background 0.3s; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.hero-submit-btn:hover { background: #a00115; }
@media (max-width: 480px) { .fanza-hero-search-form { padding: 10px; } .hero-type-toggle { min-width: 60px; font-size: 12px; padding: 0 10px; } .hero-submit-btn { padding: 0 15px; font-size: 14px; } .hero-input { font-size: 14px !important; } }

/* --- グループユニット --- */
.fanza-group-placeholder { padding: 20px; background: #333; border: 1px dashed #666; text-align: center; color: #ccc; margin-bottom: 10px; }
.fanza-group-unit { margin-bottom: 0px; border-bottom: 1px solid #444; padding-bottom: 0px; }
.fanza-group-unit.loading { opacity: 0.5; pointer-events: none; }
.group-unit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0px; flex-wrap: wrap; }
.gu-info { font-size: 1.1em; font-weight: bold; color:#fff; }
.gu-name { text-decoration: none; color: #fff; margin-right: 10px; }
.gu-meta { font-size: 0.8em; color: #ccc; font-weight: normal; margin-left: 10px; }
.gu-controls select { padding: 5px; border-radius: 4px; border: 1px solid #666; background:#333; color:#fff; font-size: 0.9em; margin-top:2px; }

/* ========================
   5. スワイプオーバーレイ
   ======================== */
#swipe-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; z-index: 20000; }

/* 閉じるボタン(×) と 戻るボタン(<) の共通スタイル */
.swipe-close-btn,
.swipe-back-btn {
    position: absolute;
    top: 15px;
    z-index: 20005;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px; /* 大きく */
    line-height: 1;
    cursor: pointer;
    text-shadow: 0 0 5px #000;
    padding: 0;
    width: 50px;     /* タップしやすい大きさ */
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 個別の位置指定 */
.swipe-close-btn { right: 15px; }
.swipe-back-btn { left: 15px; } /* 初期表示状態はJSで制御 */

#swipe-main-container, #swipe-level2-container { width: 100%; height: 100%; }
#swipe-info-top { position: absolute; top: 15px; left: 15px; z-index: 20002; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; pointer-events: none; transition: opacity 0.5s; }
#swipe-info-bottom { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 20002; background: linear-gradient(transparent, rgba(0,0,0,0.9)); padding: 40px 15px 30px; color: #fff; transition: opacity 0.5s; pointer-events: auto; }
.swipe-meta-box h4 { margin: 0 0 5px; font-size: 16px; }
.swipe-meta-box p { margin: 0 0 10px; font-size: 12px; color: #ccc; }
.vertical-slide { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }
.nested-swiper { width: 100%; height: 100%; }
.nested-swiper .swiper-slide { display: flex; justify-content: center; align-items: center; }
.nested-swiper img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fanza-pagination { margin: 30px 0; text-align: center; }
.page-link { display: inline-block; padding: 8px 15px; background: #ddd; color: #333 !important; text-decoration: none; margin: 0 5px; border-radius: 4px; }


/* --- 動画の遅延読み込み（Click-to-Load）用スタイル --- */
.lazy-video {
    cursor: pointer;
    position: relative;
    background: #000;
}

/* サムネイル画像 */
.lazy-video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 全体を表示 */
    background: #000;
}

/* 再生ボタン（▶） */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 30px;
    border-radius: 50%;
    pointer-events: none; /* ボタン上のクリックを親要素に流す */
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* マウスオーバー時に色を変えて少し大きくする */
.lazy-video:hover .play-button {
    background: #d0021b;
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- お気に入りモーダルのカスタムボタン修飾 --- */

/* =========================================
   お気に入りモーダルのボタン色・デザイン調整
   ========================================= */
/* 基本の形は .fanza-btn-mini が適用されるため、色のみ指定します */

/* IDコピー */
.btn-copy { background-color: #555 !important; }
.btn-copy:hover { background-color: #333 !important; }

/* 保存 */
.btn-save { background-color: #555 !important;  }
.btn-save:hover { background-color: #333 !important; }

/* ＋作品リスト追加 メニュー内の各ボタン */
.btn-add-custom { background-color: #555 !important; }
.btn-add-custom:hover { background-color: #333 !important; }

/* 名前変更 */
.btn-rename-custom { background-color: #555 !important; }
.btn-rename-custom:hover { background-color: #333 !important; }

/* 消去 */
.btn-delete-custom { background-color: #555 !important; }
.btn-delete-custom:hover { background-color: #333 !important; }

/* =========================================
   お気に入りモーダルのボタンレイアウト調整
   ========================================= */

/* ボタンを並べるコンテナ */
/* コンテナ（親要素）の強制設定 */
.fav-btns {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* 強制的に左詰め */
    align-items: center !important;
    flex-wrap: wrap !important; /* スマホ等で画面が極端に狭い時だけ改行 */
    gap: 8px !important;        /* ボタン間の隙間を8pxで固定 */
    width: 100% !important;
    margin: 10px 0 5px 0 !important;
    padding: 0 !important;
}

/* モーダル内の各ボタン */
.fav-btns button {
    flex: 0 0 auto !important;      /* ★重要：ボタンが勝手に横に広がるのを防ぐ */
    white-space: nowrap !important; /* 文字の改行を防ぎ、横長を維持する */
    text-align: center;
}

/* =========================================
   追加したプレイリスト（カスタムリスト）の上下幅調整
   ========================================= */
.custom-fav-section {
    border-top: 1px dashed #444; /* 上の区切り線（点線） */
    margin-top: 0px;            /* 上の要素との外側の隙間 */
    padding-top: 0px;           /* 線と自分の要素との内側の隙間 */
    margin-bottom: 0px;         /* 下の要素との隙間 */
}