@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}


/* エントリーカードのサムネイルをトリミングせずそのまま表示 */
.entry-card-thumb img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important; /* 横幅いっぱいに広げて比率を保つ */
}

/* エントリーカードのサムネイル上のカテゴリラベルを非表示にする */
.entry-card-thumb .cat-label {
    display: none !important;
}

/* 女優一覧の見出し・件数 */
.actress-archive-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c5282;
}
.actress-archive-title {
    margin: 0;
    font-size: 1.35em;
    color: #1a365d;
}
.actress-archive-count {
    font-size: 0.9em;
    color: #555;
}
.actress-archive-count strong {
    color: #1a365d;
    font-size: 1.15em;
}

/* ページ移動ボタン（共通装飾） */
.dmm-pagination-top {
    margin: 10px 0 16px;
}
.dmm-pagination-bottom {
    margin: 22px 0 10px;
}
.dmm-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}
.dmm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.9em;
    font-weight: bold;
    color: #2c5282;
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap; /* 「前へ」「次へ」の改行を完全に防止 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.dmm-pagination a.page-numbers:hover {
    background: #ebf4ff;
    border-color: #2c5282;
    color: #1a365d;
    transform: translateY(-1px);
}
.dmm-pagination .page-numbers.current {
    background: linear-gradient(180deg, #2c5282 0%, #1a365d 100%);
    color: #fff;
    border-color: #1a365d;
    box-shadow: 0 2px 4px rgba(26, 54, 93, 0.25);
}
.dmm-pagination .page-numbers.prev,
.dmm-pagination .page-numbers.next {
    padding: 0 13px;
    background: #f4f7fb;
    border-color: #a0aec0;
}
.dmm-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    padding: 0 4px;
    color: #718096;
}

/* スマホ用コンパクト調整（改行防止＆押しやすさ維持） */
@media (max-width: 600px) {
    .dmm-pagination {
        gap: 4px;
    }
    .dmm-pagination .page-numbers {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.82em;
    }
    .dmm-pagination .page-numbers.prev,
    .dmm-pagination .page-numbers.next {
        padding: 0 10px;
    }
    .actress-archive-title {
        font-size: 1.15em;
    }
}
/* Cocoon標準の固定幅を解除して「前へ」「次へ」のはみ出しを防ぐ */
.dmm-pagination .page-numbers {
    width: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.dmm-pagination .page-numbers.prev,
.dmm-pagination .page-numbers.next {
    width: auto !important;
    min-width: auto !important;
    padding: 0 12px !important;
}
/* スマホ用：ページ移動を「前へ・プルダウン・次へ」の1行スッキリ表示に統一 */
@media (max-width: 600px) {
    .dmm-pagination {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }
    /* スマホでは数字ボタンと「…」を非表示にして折り返しを防止 */
    .dmm-pagination .page-numbers:not(.prev):not(.next) {
        display: none;
    }
    .dmm-pagination .page-numbers.prev {
        order: 1;
    }
    .dmm-pagination .dmm-page-jump {
        order: 2;
        margin: 0 !important;
    }
    .dmm-pagination .page-numbers.next {
        order: 3;
    }
}
/* ページジャンプ用プルダウン */
.dmm-page-jump {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0 6px;
}
.dmm-page-jump select {
    height: 36px;
    padding: 0 10px;
    font-size: 0.85em;
    font-weight: bold;
    color: #2c5282;
    background-color: #f4f7fb;
    border: 1px solid #a0aec0;
    border-radius: 5px;
    cursor: pointer;
    width: auto !important;
    margin: 0 !important;
}
.dmm-page-jump select:focus {
    outline: none;
    border-color: #2c5282;
}
@media (max-width: 600px) {
    .dmm-page-jump {
        margin: 4px 0 0 0;
    }
    .dmm-page-jump select {
        height: 32px;
        font-size: 0.82em;
        padding: 0 8px;
    }
}

/* 女優ページのふりがな：途中で改行されないようにする */
.single-actress #main h1 span {
    display: inline-block;
    white-space: nowrap;
}

/* スマホ表示時はふりがなを女優名の下に綺麗に配置 */
@media (max-width: 600px) {
    .single-actress #main h1 {
        line-height: 1.35 !important;
    }
    .single-actress #main h1 span {
        display: block;
        margin-left: 0 !important;
        margin-top: 3px;
        font-size: 0.65em !important;
    }
}

/* PC：上部検索窓を中央に配置して見やすくする */
.site-global-search-inner {
    display: flex;
    justify-content: center !important;
    margin: 0 auto !important;
}
/* 女優作品検索窓とジャンルタグをPCで見やすい幅に絞って中央配置 */
.actress-kw-form {
    max-width: 570px;
    margin: 0 auto 14px auto;
}
.actress-genre-tags-title {
    max-width: 980px;
    margin: 0 auto 6px auto;
}
.actress-genre-tags {
    max-width: 980px;
    margin: 0 auto;
}

/* 検索バーとメインコンテンツの間の余白を詰める */
.site-global-search {
    padding: 8px 12px !important;
}
#content {
    margin-top: 0px !important;/* グレー部分を少し詰めたい／広げたい場合は、数値を好みに合わせて調整してみてください。 */
}
#main {
    padding-top: 5px !important;/* 白色部分を少し詰めたい／広げたい場合は、数値を好みに合わせて調整してみてください。 */
}
#main h1:first-child,
#main .actress-archive-header {
    margin-top: 0 !important;
}
/* 白い枠の内側の左右余白を調整（標準は広めなので20px程度に） */
#main {
    padding-left: 12px !important;
    padding-right: 12px !important;
}
/* スマホ表示時の左右余白 */
@media (max-width: 768px) {
    #main {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
}
/* コンテンツ全体と白い枠の横幅をまとめて広げる */
.wrap,
#content-in,
.content-in,
.site-global-search-inner {
    width: 100% !important;
    max-width: 1580px !important; /* お好みの幅に変更 */
    box-sizing: border-box;
}

#main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}