/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 1.0.0
*/
/* 年齢確認 */
.sm-age-gate {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 100dvh;
    padding: 24px;
    background: rgba(38, 18, 27, .88);
    color: #30252a;
}

.sm-age-gate__panel {
    width: min(100%, 440px);
    box-sizing: border-box;
    padding: 36px 34px 30px;
    border-top: 4px solid var(--sm-accent, #a93e65);
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    text-align: center;
}

.sm-age-gate__eyebrow {
    margin: 0 0 10px;
    color: var(--sm-accent, #a93e65);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.sm-age-gate h1 {
    margin: 0 0 16px;
    color: #241b1f;
    font-size: 24px;
    line-height: 1.35;
}

.sm-age-gate h1::before,
.sm-age-gate h1::after {
    content: none;
}

.sm-age-gate__panel > p:not(.sm-age-gate__eyebrow):not(.sm-age-gate__note) {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}

.sm-age-gate__actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.sm-age-gate__confirm,
.sm-age-gate__leave {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid var(--sm-accent, #a93e65);
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sm-age-gate__confirm {
    cursor: pointer;
    background: var(--sm-accent, #a93e65);
    color: #fff;
}

.sm-age-gate__confirm:hover,
.sm-age-gate__confirm:focus {
    background: var(--sm-accent-dark, #7f2849);
    border-color: var(--sm-accent-dark, #7f2849);
}

.sm-age-gate__leave {
    background: #fff;
    color: #665a5f;
}

.sm-age-gate__leave:hover,
.sm-age-gate__leave:focus {
    background: #fbf6f8;
    color: var(--sm-accent-dark, #7f2849);
}

.sm-age-gate__note {
    margin: 18px 0 0;
    color: #85777d;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .sm-age-gate {
        padding: 16px;
    }

    .sm-age-gate__panel {
        padding: 30px 22px 24px;
    }

    .sm-age-gate h1 {
        font-size: 21px;
    }
}

/* 出演者一覧 */
.performer-group {
    margin-bottom: 40px;
}

.performer-group-title {
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
}

.performer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.performer-card {
    display: block;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    background: #fff;
}

.performer-card:hover {
    text-decoration: none;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .performer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 作品一覧 */
.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.work-card {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
    border-color: #aaa;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.work-card-image {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.work-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #777;
    font-size: 14px;
    text-decoration: none;
}

.work-card-content {
    padding: 16px;
}

.work-card-title {
    font-size: 18px;
    margin-bottom: 12px;
}

.work-card-title a {
    text-decoration: none;
}

.work-card-content p {
    margin: 6px 0;
    font-size: 14px;
}

.work-card-performers a {
    text-decoration: none;
}

.work-card-performers a:hover {
    text-decoration: underline;
}

.work-source-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.work-source-badge {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 3px;
    background: #555;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.work-source-badge--mgs {
    background: #167f8c;
}

.work-source-badge--fanza {
    background: #2458a6;
}

.work-source-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.work-source-filter a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.work-source-filter a:hover,
.work-source-filter a:focus {
    border-color: #777;
    background: #f7f7f7;
}

.work-source-filter a.is-current {
    border-color: #333;
    background: #333;
    color: #fff;
}

@media (max-width: 768px) {
    .work-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .work-card-content {
        padding: 12px;
    }

    .work-card-title {
        font-size: 16px;
    }
}

/* =========================
   作品詳細ページ
========================= */

.single-work .work-image {
    max-width: 420px;
    margin: 0 auto 28px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f7f7f7;
}

.single-work .work-image img {
    display: block;
    width: 100%;
    height: auto;
}

.single-work .work-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: -8px 0 22px;
    color: #666;
    font-size: 14px;
}

.single-work .work-info {
    max-width: 760px;
    margin: 0 auto 24px;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.single-work .work-info p {
    margin: 0;
    padding: 13px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.6;
}

.single-work .work-info p:last-child {
    border-bottom: none;
}

.single-work .work-info strong {
    display: inline-block;
    min-width: 6em;
    color: #555;
}

.single-work .work-info a {
    margin-right: 10px;
}

.single-work .work-links {
    display: grid;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.single-work .work-links a {
    display: block;
    padding: 14px 18px;
    border-radius: 4px;
    background: #333;
    color: #fff;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.single-work .work-links a:hover,
.single-work .work-links a:focus {
    background: #555;
    color: #fff;
}

.single-work .work-links .work-link--mgs {
    background: #167f8c;
}

.single-work .work-links .work-link--mgs:hover,
.single-work .work-links .work-link--mgs:focus {
    background: #116672;
}

.single-work .work-links .work-link--fanza {
    background: #2458a6;
}

.single-work .work-links .work-link--fanza:hover,
.single-work .work-links .work-link--fanza:focus {
    background: #1b447f;
}

.single-work .related-works {
    max-width: 960px;
    margin: 48px auto 0;
}

.single-work .related-works > h2 {
    margin-bottom: 24px;
}

/* =========================
   運営者情報・免責事項
========================= */

.sm-legal-page {
    max-width: 860px;
    margin: 0 auto;
}

.sm-legal-page .entry-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid #333;
}

.sm-legal-page .entry-title {
    margin: 0;
}

.sm-legal-page .entry-content {
    padding: 32px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.sm-legal-page .entry-content h2 {
    margin: 36px 0 16px;
    padding: 8px 0 8px 14px;
    border-left: 4px solid #333;
    font-size: 22px;
}

.sm-legal-page .entry-content h2:first-child {
    margin-top: 0;
}

.sm-legal-page .entry-content p,
.sm-legal-page .entry-content li {
    line-height: 1.9;
}

.sm-legal-page .entry-content ul {
    margin: 0 0 20px 1.4em;
}

.sm-legal-page .entry-content a {
    text-underline-offset: 3px;
}

@media (max-width: 768px) {
    .single-work .work-image {
        max-width: 320px;
    }

    .single-work .work-info {
        padding: 6px 15px;
    }

    .single-work .work-info strong {
        min-width: 5.5em;
    }

    .single-work .work-summary-meta {
        margin-bottom: 18px;
    }

    .sm-legal-page .entry-content {
        padding: 22px 18px;
    }

    .sm-legal-page .entry-content h2 {
        margin-top: 30px;
        font-size: 20px;
    }
}


/* =========================
   検索ページ
========================= */

.sm-search-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sm-page-header {
    margin-bottom: 35px;
}

.sm-page-header h1 {
    margin-bottom: 20px;
}

.sm-search-form {
    display: flex;
    gap: 10px;
    max-width: 700px;
}

.sm-search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.sm-search-form button {
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.sm-search-help {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
}

.sm-search-result-heading {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.sm-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sm-work-card {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.sm-work-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sm-work-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.sm-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-work-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #777;
    font-size: 14px;
}

.sm-work-info {
    padding: 16px;
}

.sm-work-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}

.sm-work-meta {
    margin: 6px 0;
    color: #666;
    font-size: 14px;
}

.sm-work-performers a {
    text-decoration: none;
}

.sm-work-performers a:hover {
    text-decoration: underline;
}

.sm-work-card .sm-work-performers {
    margin: 0;
    padding: 0 16px 16px;
}

.sm-no-results {
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}

.sm-no-results p {
    margin: 0 0 10px;
}

.sm-no-results-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sm-no-results-links a {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.sm-no-results-links a:hover,
.sm-no-results-links a:focus {
    border-color: #777;
    background: #f7f7f7;
}


/* スマートフォン */

@media (max-width: 768px) {

    .sm-search-page {
        padding: 30px 15px;
    }

    .sm-search-form {
        gap: 6px;
    }

    .sm-search-form button {
        padding: 12px 18px;
    }

    .sm-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .sm-work-info {
        padding: 12px;
    }

    .sm-work-title {
        font-size: 16px;
    }

    .sm-work-meta {
        font-size: 13px;
    }

}


/* =========================
   トップページ
========================= */

.sm-home {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.sm-home-intro {
    text-align: center;
    margin-bottom: 35px;
}

.sm-home-intro h1 {
    margin-bottom: 10px;
    font-size: 32px;
}

.sm-home-intro p {
    margin: 0;
    color: #666;
}

.sm-home-search {
    margin-bottom: 55px;
}

.sm-home-search form {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 10px;
}

.sm-home-search input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.sm-home-search button {
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.sm-home-section {
    margin-bottom: 55px;
}

.sm-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sm-section-heading h2 {
    margin: 0;
}

.sm-section-heading a {
    font-size: 14px;
}

.sm-home-performer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.sm-home-performer {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.sm-home-performer span {
    margin-top: 4px;
    color: #777;
    font-size: 12px;
}

.sm-home-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px 20px;
}

.sm-home-work-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sm-home-work-image {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 10px;
}

.sm-home-work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sm-home-work-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #777;
    font-size: 14px;
}

.sm-home-work-card h3 {
    margin: 0 0 5px;
    font-size: 16px;
}

.sm-home-work-card p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.sm-home-work-performers {
    margin-top: 5px !important;
}

.sm-home-work-performers a,
.sm-home-new-performers a {
    text-decoration: none;
}

.sm-home-work-performers a:hover,
.sm-home-new-performers a:hover {
    text-decoration: underline;
}

.sm-home-new-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.sm-home-new-item {
    padding: 12px;
    border: 1px solid #ddd;
}

.sm-home-new-item-link {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.sm-home-new-item img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.sm-home-new-image {
    display: flex;
    width: 90px;
    height: 120px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #777;
    font-size: 12px;
}

.sm-home-new-item h3 {
    margin: 5px 0 8px;
    font-size: 16px;
}

.sm-home-new-item p {
    margin: 3px 0;
    color: #666;
    font-size: 13px;
}

.sm-home-new-performers {
    margin-top: 8px !important;
}

/* スマートフォン */

@media (max-width: 767px) {

    .sm-home {
        padding: 30px 15px;
    }

    .sm-home-intro h1 {
        font-size: 26px;
    }

    .sm-home-performer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-home-work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 12px;
    }

    .sm-home-new-list {
        grid-template-columns: 1fr;
    }

    .sm-home-new-item img {
        width: 75px;
        height: 100px;
    }

    .sm-home-new-image {
        width: 75px;
        height: 100px;
    }

}

/* =========================
   出演者プロフィール
   ========================= */

.performer-profile-image {
    margin: 0 0 24px;
    text-align: center;
}

.performer-image {
    display: block;
    width: 240px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}

.performer-reading {
    margin: 0 0 16px;
    font-size: 14px;
    color: #666;
}

.performer-description {
    margin: 0 0 20px;
    line-height: 1.8;
}

.performer-count {
    margin: 0;
    font-weight: 600;
}


/* =========================
   出演作品
   ========================= */

.performer-works {
    margin-top: 40px;
}

.performer-works > h2 {
    margin-bottom: 24px;
}

/* =========================
   出演者一覧
   ========================= */

.performer-list {
    margin-top: 30px;
}

.performer-index {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.performer-index a {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: inherit;
    text-decoration: none;
}

.performer-index a:hover,
.performer-index a:focus {
    border-color: #777;
    background: #f7f7f7;
}

.performer-group {
    margin-bottom: 45px;
}

.performer-group-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    font-size: 24px;
}

.performer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.performer-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 10px;
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    transition: 0.2s ease;
}

.performer-card:hover {
    border-color: #999;
    background: #f7f7f7;
}


/* =========================
   スマートフォン
   ========================= */

@media (max-width: 768px) {

    .performer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .performer-group {
        margin-bottom: 35px;
    }

    .performer-index {
        gap: 6px;
        margin-bottom: 28px;
    }

    .performer-index a {
        padding: 7px 10px;
        font-size: 14px;
    }

    .performer-group-title {
        font-size: 21px;
        margin-bottom: 15px;
    }

    .performer-card {
        min-height: 50px;
        padding: 10px 8px;
        font-size: 14px;
    }

}

/* =========================
   サイト共通デザイン
========================= */

:root {
    --sm-ink: #28434a;
    --sm-muted: #63777d;
    --sm-border: #d5e8e8;
    --sm-surface: #ffffff;
    --sm-canvas: #f4fbfa;
    --sm-accent: #f06b5b;
    --sm-accent-dark: #d95446;
    --sm-mint: #43b9ab;
    --sm-mint-light: #dff5f1;
    --sm-yellow: #ffd166;
    --sm-yellow-light: #fff5d6;
}

body {
    background: var(--sm-canvas);
    color: var(--sm-ink);
}

a {
    color: var(--sm-accent);
}

a:hover,
a:focus {
    color: var(--sm-accent-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(177, 77, 44, 0.3);
    outline-offset: 2px;
}

.site-header {
    border-bottom: 3px solid var(--sm-mint);
    background: #fffefa;
    box-shadow: 0 2px 0 rgba(40, 67, 74, 0.04);
}

.inside-header {
    padding-top: 24px;
    padding-bottom: 22px;
}

.site-branding .main-title {
    color: var(--sm-ink);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.site-description {
    margin-top: 5px;
    font-size: 13px;
}

.site-branding .site-description {
    display: none;
}

.sm-header-tagline {
    margin: 6px 0 0;
    color: var(--sm-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.main-navigation {
    border-bottom: 1px solid var(--sm-border);
    background: #fffefa;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle {
    padding: 14px 17px;
    font-size: 14px;
    font-weight: 600;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a {
    color: var(--sm-accent);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: #fff0ec;
}

.site.grid-container {
    max-width: 1200px;
}

.site-content {
    padding-top: 32px;
    padding-bottom: 48px;
}

.separate-containers .inside-article,
.separate-containers .page-header,
.separate-containers .paging-navigation {
    border: 1px solid var(--sm-border);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(40, 67, 74, 0.05);
}

.separate-containers .inside-article {
    padding: 32px;
}

.page-header,
.entry-header {
    margin-bottom: 28px;
}

.page-title,
.entry-title {
    color: var(--sm-ink);
    letter-spacing: 0.02em;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
    border-radius: 5px;
    background: var(--sm-accent);
}

button:hover,
button:focus,
html input[type="button"]:hover,
html input[type="button"]:focus,
input[type="reset"]:hover,
input[type="reset"]:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background: var(--sm-accent-dark);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.nav-links .page-numbers {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid var(--sm-border);
    border-radius: 5px;
    background: var(--sm-surface);
    color: var(--sm-ink);
    text-decoration: none;
}

.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover,
.nav-links a.page-numbers:focus {
    border-color: var(--sm-accent);
    background: var(--sm-accent);
    color: #fff;
}

.site-footer {
    border-top: 3px solid var(--sm-mint);
    background: #fffefa;
}

.site-info {
    color: var(--sm-muted);
    font-size: 13px;
}

.site-info a {
    color: inherit;
}

.sm-footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 16px;
}

.sm-footer-links a {
    text-decoration: none;
}

.sm-footer-links a:hover,
.sm-footer-links a:focus {
    text-decoration: underline;
}

body.home .inside-article {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.home .inside-article > .entry-header {
    display: none;
}

@media (max-width: 768px) {
    .inside-header {
        padding-top: 18px;
        padding-bottom: 16px;
    }

    .site-branding .main-title {
        font-size: 20px;
    }

    .sm-header-tagline {
        font-size: 11px;
    }

    .site-content {
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .separate-containers .inside-article {
        padding: 20px;
        border-radius: 8px;
    }

    .page-header,
    .entry-header {
        margin-bottom: 22px;
    }

    .sm-footer-links {
        display: flex;
        margin: 10px 0 0;
    }

    .main-navigation .main-nav ul li a,
    .main-navigation .menu-toggle {
        padding: 13px 15px;
    }
}

/* =========================
   トップページの導線
========================= */

.sm-home {
    padding: 20px 32px 12px;
}

.sm-home-intro {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #48bdad 0%, #5eb4e7 100%);
    color: #fff;
    text-align: left;
}

.sm-home-intro::before,
.sm-home-intro::after {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    content: "";
}

.sm-home-intro::before {
    top: -74px;
    right: -35px;
    width: 190px;
    height: 190px;
}

.sm-home-intro::after {
    right: 23%;
    bottom: -90px;
    width: 150px;
    height: 150px;
}

.sm-home-intro h1,
.sm-home-intro p {
    position: relative;
    z-index: 1;
}

.sm-home-intro h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 34px;
    letter-spacing: 0.03em;
}

.sm-home-intro p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.sm-home-search {
    margin: 0 0 48px;
    padding: 22px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-surface);
    box-shadow: 0 4px 14px rgba(40, 67, 74, 0.05);
}

.sm-home-search form {
    max-width: 760px;
}

.sm-home-search input[type="search"] {
    border-color: #cbd3da;
    background: #fff;
}

.sm-home-search button {
    background: var(--sm-accent);
}

.sm-home-section {
    margin-bottom: 52px;
}

.sm-section-heading {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #b9ded9;
}

.sm-section-heading h2 {
    font-size: 23px;
}

.sm-section-heading h2::before {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--sm-yellow);
    content: "";
}

.sm-section-heading a {
    color: var(--sm-accent);
    font-weight: 600;
    text-decoration: none;
}

.sm-section-heading a:hover,
.sm-section-heading a:focus {
    text-decoration: underline;
}

.sm-home-performer {
    min-height: 78px;
    justify-content: center;
    border-color: var(--sm-border);
    border-radius: 7px;
    background: var(--sm-surface);
    color: var(--sm-ink);
    box-shadow: 0 2px 8px rgba(40, 67, 74, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sm-home-performer:hover,
.sm-home-performer:focus {
    border-color: var(--sm-mint);
    background: var(--sm-mint-light);
    box-shadow: 0 5px 14px rgba(40, 67, 74, 0.09);
    color: var(--sm-ink);
    transform: translateY(-2px);
}

.sm-home-work-card {
    overflow: hidden;
    border: 1px solid var(--sm-border);
    border-radius: 8px;
    background: var(--sm-surface);
    box-shadow: 0 2px 8px rgba(40, 67, 74, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sm-home-work-card:hover {
    border-color: var(--sm-yellow);
    box-shadow: 0 5px 16px rgba(40, 67, 74, 0.09);
    transform: translateY(-2px);
}

.sm-home-work-card h3,
.sm-home-work-card p,
.sm-home-work-performers {
    padding-right: 14px;
    padding-left: 14px;
}

.sm-home-work-card h3 {
    margin-top: 14px;
}

.sm-home-work-card p {
    margin-bottom: 0;
}

.sm-home-work-performers {
    margin: 7px 0 14px !important;
}

.sm-home-new-item {
    border-color: var(--sm-border);
    border-radius: 8px;
    background: var(--sm-surface);
    box-shadow: 0 2px 8px rgba(40, 67, 74, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sm-home-new-item:hover {
    border-color: var(--sm-yellow);
    background: #fffdf7;
    box-shadow: 0 5px 16px rgba(40, 67, 74, 0.09);
    transform: translateY(-2px);
}

.sm-home-new-performers {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid #edf0f2;
}

.work-card {
    border-color: var(--sm-border);
    box-shadow: 0 2px 8px rgba(40, 67, 74, 0.03);
}

.work-card:hover {
    border-color: var(--sm-yellow);
    box-shadow: 0 6px 18px rgba(40, 67, 74, 0.1);
}

.work-card-title a {
    color: var(--sm-ink);
}

.work-card-title a:hover,
.work-card-title a:focus {
    color: var(--sm-accent);
}

.work-source-filter a.is-current,
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover,
.nav-links a.page-numbers:focus {
    border-color: var(--sm-accent);
    background: var(--sm-accent);
}

.performer-group-title {
    border-bottom-color: var(--sm-mint);
}

.performer-card {
    border-color: var(--sm-border);
    box-shadow: 0 2px 8px rgba(40, 67, 74, 0.03);
}

.performer-card:hover,
.performer-card:focus {
    border-color: var(--sm-mint);
    background: var(--sm-mint-light);
    color: var(--sm-ink);
}

.performer-index a:hover,
.performer-index a:focus {
    border-color: var(--sm-mint);
    background: var(--sm-mint-light);
}

.sm-no-results {
    border-color: #f4d9a3;
    background: #fffaf0;
}

/* トップの検索前に置くサイト概要 */
.sm-home-overview {
    margin: 0 0 16px;
    padding: 2px 4px;
}

.sm-home-overview h1 {
    margin: 0 0 6px;
    color: var(--sm-ink);
    font-size: 21px;
    letter-spacing: 0.03em;
}

.sm-home-overview h1::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin: 0 8px 2px 0;
    border-radius: 50%;
    background: var(--sm-yellow);
    content: "";
}

.sm-home-overview p {
    margin: 0;
    color: var(--sm-muted);
    font-size: 14px;
}

/* 女優詳細プロフィール */
.page-title ruby rt {
    color: var(--sm-muted);
    font-size: 0.48em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.performer-profile {
    margin: 26px 0 18px;
}

.performer-profile h2 {
    margin: 0 0 12px;
    color: var(--sm-ink);
    font-size: 19px;
}

.performer-profile-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.performer-profile-list > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    background: var(--sm-mint-light);
}

.performer-profile-list dt {
    flex: 0 0 auto;
    color: var(--sm-muted);
    font-size: 12px;
    font-weight: 600;
}

.performer-profile-list dd {
    margin: 0;
    color: var(--sm-ink);
    font-size: 14px;
    font-weight: 700;
}

/* PC用サイドバー検索 */
.sidebar .sm-site-search-widget {
    padding: 20px;
    border: 1px solid var(--sm-border);
    border-radius: 10px;
    background: var(--sm-surface);
    box-shadow: 0 4px 14px rgba(40, 67, 74, 0.05);
}

.sm-site-search-widget .widget-title {
    margin-bottom: 14px;
    color: var(--sm-ink);
    font-size: 18px;
    font-weight: 700;
}

.sm-sidebar-search-form {
    display: grid;
    gap: 8px;
}

.sm-sidebar-search-form input[type="search"],
.sm-mobile-search-form input[type="search"] {
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid var(--sm-border);
    border-radius: 5px;
    background: #fff;
    font-size: 13px;
}

.sm-sidebar-search-form button,
.sm-mobile-search-form button {
    padding: 10px 14px;
    border: 0;
    border-radius: 5px;
    background: var(--sm-accent);
    color: #fff;
    font-weight: 700;
}

.sm-site-search-widget p {
    margin: 10px 0 0;
    color: var(--sm-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* 既存テーマの標準検索・最近の投稿は、サイト内検索と重複するため非表示 */
.sidebar .widget_search:not(.sm-site-search-widget),
.sidebar .widget_recent_entries,
.sidebar .widget_recent_comments,
.sidebar .widget_block {
    display: none;
}

.sm-mobile-search {
    display: none;
}

/* カードは一覧性を優先して、ひと回りコンパクトに */
.work-list,
.sm-work-grid,
.sm-home-work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.work-card-content,
.sm-work-info {
    padding: 12px;
}

.work-card-title,
.sm-work-title,
.sm-home-work-card h3 {
    font-size: 15px;
    line-height: 1.45;
}

.work-card-title {
    margin-bottom: 8px;
}

.work-card-content p,
.sm-work-meta,
.sm-home-work-card p,
.sm-home-new-item p {
    font-size: 12px;
    line-height: 1.5;
}

.work-source-badges {
    margin: 8px 0;
}

.sm-home-work-card h3,
.sm-home-work-card p,
.sm-home-work-performers {
    padding-right: 11px;
    padding-left: 11px;
}

.sm-home-work-card h3 {
    margin-top: 10px;
}

.sm-home-work-performers {
    margin: 5px 0 11px !important;
}

/* トップの女優カード */
.sm-home-performer {
    min-height: 66px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.sm-home-performer-image {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border: 2px solid var(--sm-yellow);
    border-radius: 50%;
    background: var(--sm-yellow-light);
}

.sm-home-performer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sm-home-performer-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sm-home-performer-name {
    margin: 0;
    color: var(--sm-ink);
    font-size: 14px;
    font-weight: 700;
}

.sm-home-performer-count {
    margin-top: 2px;
    color: var(--sm-muted);
    font-size: 11px;
}

/* ページ見出し */
.page-header .page-title,
.sm-page-header h1,
.performer-works > h2,
.related-works > h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding: 0 0 9px 18px;
    color: var(--sm-ink);
    font-size: 26px;
    letter-spacing: 0.04em;
}

.page-header .page-title::before,
.sm-page-header h1::before,
.performer-works > h2::before,
.related-works > h2::before {
    position: absolute;
    top: 0.48em;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sm-yellow);
    content: "";
}

.page-header .page-title::after,
.sm-page-header h1::after,
.performer-works > h2::after,
.related-works > h2::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 18px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--sm-mint) 0 70%, var(--sm-yellow) 70% 100%);
    content: "";
}

@media (max-width: 1024px) {
    .work-list,
    .sm-work-grid,
    .sm-home-work-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sm-home {
        padding: 24px 20px 4px;
    }

    .sm-home-intro {
        padding: 28px 22px;
        border-radius: 9px;
    }

    .sm-home-intro h1 {
        font-size: 25px;
    }

    .sm-home-intro p {
        font-size: 14px;
    }

    .sm-home-search {
        margin-bottom: 38px;
        padding: 14px;
    }

    .sm-home-search form {
        gap: 8px;
    }

    .sm-home-search button {
        padding: 14px 18px;
    }

    .sm-section-heading h2 {
        font-size: 20px;
    }

    .sidebar {
        display: none;
    }

    .site-header {
        position: relative;
    }

    .site-header .inside-header {
        padding-right: 60px;
        padding-left: 60px;
    }

    #mobile-menu-control-wrapper {
        position: absolute;
        top: 50%;
        left: 10px;
        z-index: 20;
        width: auto;
        border: 0;
        background: transparent;
        transform: translateY(-50%);
    }

    #mobile-menu-control-wrapper .menu-toggle {
        width: auto;
        padding: 10px;
        color: var(--sm-ink);
    }

    .has-inline-mobile-toggle #site-navigation {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        display: block;
        width: min(300px, 82vw);
        min-height: 100vh;
        overflow-y: auto;
        border: 0;
        background: #fffefa;
        box-shadow: 8px 0 24px rgba(40, 67, 74, 0.15);
        transform: translateX(-105%);
        transition: transform 0.25s ease, visibility 0.25s ease;
        visibility: hidden;
        pointer-events: none;
    }

    .has-inline-mobile-toggle #site-navigation.toggled {
        background: #fffefa;
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .has-inline-mobile-toggle #site-navigation .inside-navigation {
        display: block;
        min-height: 100vh;
        padding: 76px 20px 24px;
    }

    .has-inline-mobile-toggle #site-navigation .main-nav ul,
    .has-inline-mobile-toggle #site-navigation.toggled .main-nav > ul {
        display: block;
    }

    .has-inline-mobile-toggle #site-navigation .main-nav ul li a {
        padding: 15px 12px;
        border-bottom: 1px solid var(--sm-border);
        color: var(--sm-ink);
    }

    .sm-mobile-search {
        position: absolute;
        top: 50%;
        right: 14px;
        z-index: 30;
        display: block;
        transform: translateY(-50%);
    }

    .sm-mobile-search summary {
        display: flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--sm-border);
        border-radius: 50%;
        background: #fff;
        color: var(--sm-ink);
        cursor: pointer;
        list-style: none;
    }

    .sm-mobile-search summary::-webkit-details-marker {
        display: none;
    }

    .sm-mobile-search summary svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 2;
    }

    .sm-mobile-search-panel {
        position: absolute;
        top: 46px;
        right: 0;
        width: min(280px, calc(100vw - 28px));
        padding: 12px;
        border: 1px solid var(--sm-border);
        border-radius: 9px;
        background: #fffefa;
        box-shadow: 0 8px 24px rgba(40, 67, 74, 0.16);
    }

    .sm-mobile-search-form {
        display: flex;
        gap: 8px;
    }

    .sm-mobile-search-form input[type="search"] {
        flex: 1;
        width: 100%;
    }

    .sm-mobile-search-form button {
        flex: 0 0 auto;
    }

    .sm-home-overview h1 {
        font-size: 18px;
    }

    .sm-home-overview p {
        font-size: 13px;
    }

    .performer-profile-list {
        grid-template-columns: 1fr;
    }

    .work-list,
    .sm-work-grid,
    .sm-home-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .page-header .page-title,
    .sm-page-header h1,
    .performer-works > h2,
    .related-works > h2 {
        font-size: 22px;
    }
}

/* =========================================================
   Visual system refresh
   既存の機能・テンプレート構造を維持した共通UIの再整理
========================================================= */
:root {
    --sm-ink: #1e293b;
    --sm-muted: #64748b;
    --sm-border: #e2e8f0;
    --sm-surface: #ffffff;
    --sm-canvas: #f8fafc;
    --sm-accent: #c94f7c;
    --sm-accent-dark: #a93e65;
    --sm-mint: #9a742c;
    --sm-mint-light: #fff8e8;
    --sm-yellow: #9a742c;
    --sm-yellow-light: #fff8e8;
    --sm-accent-soft: #fff1f5;
    --sm-accent-border: #f3c4d3;
    --sm-radius: 8px;
    --sm-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

.site.grid-container {
    max-width: 1180px;
}

.site-header {
    border-bottom: 1px solid var(--sm-border);
    background: #fff;
    box-shadow: none;
}

.inside-header {
    padding-top: 18px;
    padding-bottom: 18px;
}

.site-branding .main-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.sm-header-tagline {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
}

.main-navigation {
    border: 0;
    background: transparent;
}

.main-navigation .main-nav ul li a {
    padding: 10px 13px;
    color: var(--sm-muted);
    font-size: 14px;
    font-weight: 600;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    border-radius: 5px;
    background: var(--sm-accent-soft);
    color: var(--sm-accent);
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a {
    background: #f8fafc;
    color: var(--sm-ink);
}

.site-content {
    padding-top: 28px;
    padding-bottom: 48px;
}

.separate-containers .inside-article,
.separate-containers .page-header,
.separate-containers .paging-navigation {
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.separate-containers .inside-article {
    padding: 28px;
}

/* 見出しとページタイトル */
.page-header .page-title,
.sm-page-header h1,
.performer-works > h2,
.related-works > h2 {
    margin-bottom: 18px;
    padding: 0 0 8px 13px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0;
}

.page-header .page-title::before,
.sm-page-header h1::before,
.performer-works > h2::before,
.related-works > h2::before {
    top: 50%;
    width: 4px;
    height: 1em;
    border-radius: 2px;
    background: var(--sm-accent);
    transform: translateY(-50%);
}

.page-header .page-title::after,
.sm-page-header h1::after,
.performer-works > h2::after,
.related-works > h2::after {
    right: auto;
    bottom: 0;
    left: 13px;
    width: 42px;
    height: 2px;
    background: var(--sm-accent);
}

.sm-section-heading {
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sm-border);
}

.sm-section-heading h2 {
    color: var(--sm-ink);
    font-size: 19px;
    font-weight: 700;
}

.sm-section-heading h2::before {
    width: 4px;
    height: 1em;
    margin: 0 9px 0 0;
    border-radius: 2px;
    background: var(--sm-accent);
    vertical-align: -0.08em;
}

.sm-section-heading a {
    color: var(--sm-accent);
    font-size: 13px;
    font-weight: 600;
}

/* 検索・絞り込み */
.sm-home {
    padding: 0 0 4px;
}

.sm-home-search {
    margin: 0 0 38px;
    padding: 20px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    background: var(--sm-surface);
    box-shadow: var(--sm-shadow);
}

.sm-home-search::before {
    display: block;
    margin-bottom: 10px;
    color: var(--sm-ink);
    content: "作品を検索";
    font-size: 15px;
    font-weight: 700;
}

.sm-home-search form,
.sm-search-form {
    gap: 8px;
}

.sm-home-search input[type="search"],
.sm-search-form input[type="search"],
.sm-sidebar-search-form input[type="search"],
.sm-mobile-search-form input[type="search"] {
    min-height: 44px;
    border-color: #cbd5e1;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
}

.sm-home-search button,
.sm-search-form button,
.sm-sidebar-search-form button,
.sm-mobile-search-form button {
    min-height: 44px;
    border-radius: 6px;
    background: var(--sm-accent);
    font-size: 14px;
    font-weight: 700;
}

.sm-home-search button:hover,
.sm-home-search button:focus,
.sm-search-form button:hover,
.sm-search-form button:focus,
.sm-sidebar-search-form button:hover,
.sm-sidebar-search-form button:focus,
.sm-mobile-search-form button:hover,
.sm-mobile-search-form button:focus {
    background: var(--sm-accent-dark);
}

.work-source-filter {
    gap: 7px;
}

.work-source-filter a {
    padding: 7px 11px;
    border-color: #cbd5e1;
    border-radius: 5px;
    color: var(--sm-muted);
    font-size: 13px;
    font-weight: 600;
}

.work-source-filter a.is-current,
.work-source-filter a:hover,
.work-source-filter a:focus {
    border-color: var(--sm-accent);
    background: var(--sm-accent);
    color: #fff;
}

/* カード */
.work-list,
.sm-work-grid,
.sm-home-work-grid {
    gap: 20px;
}

.content-area .work-list,
.content-area .sm-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card,
.sm-work-card,
.sm-home-work-card,
.sm-home-new-item,
.performer-card,
.sm-home-performer {
    border-color: var(--sm-border);
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.work-card:hover,
.sm-work-card:hover,
.sm-home-work-card:hover,
.sm-home-new-item:hover,
.performer-card:hover,
.sm-home-performer:hover {
    border-color: var(--sm-accent-border);
    background: var(--sm-surface);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transform: none;
}

.work-card-image,
.sm-work-image,
.sm-home-work-image {
    background: #f1f5f9;
}

.work-card-content,
.sm-work-info {
    padding: 13px;
}

.work-card-title,
.sm-work-title,
.sm-home-work-card h3,
.sm-home-new-item h3 {
    color: var(--sm-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.work-card-content p,
.sm-work-meta,
.sm-home-work-card p,
.sm-home-new-item p,
.work-card-performers,
.sm-work-performers {
    color: var(--sm-muted);
    font-size: 12px;
}

.work-card-performers a,
.sm-work-performers a,
.sm-home-work-performers a,
.sm-home-new-performers a {
    color: var(--sm-accent);
    text-decoration: none;
}

.work-source-badge {
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.sm-home-section {
    margin-bottom: 42px;
}

.sm-home-performer {
    min-height: 62px;
    padding: 9px;
}

.sm-home-performer-image {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-color: var(--sm-accent-border);
}

.sm-home-new-list {
    gap: 12px;
}

.sm-home-new-item {
    padding: 12px;
}

/* 詳細ページ */
.single-work .entry-header {
    margin-bottom: 20px;
}

.single-work .entry-title {
    font-size: 25px;
    line-height: 1.45;
}

.single-work .work-summary-meta {
    gap: 7px;
    margin-top: 10px;
}

.single-work .work-summary-meta span {
    padding: 4px 8px;
    border: 1px solid var(--sm-border);
    border-radius: 4px;
    color: var(--sm-muted);
    font-size: 12px;
}

.single-work .work-image {
    max-width: 360px;
    margin-bottom: 24px;
}

.single-work .work-info {
    max-width: none;
    margin-bottom: 20px;
    border-top: 1px solid var(--sm-border);
}

.single-work .work-info p {
    display: grid;
    grid-template-columns: 7em 1fr;
    gap: 12px;
    padding: 11px 0;
    border-bottom-color: var(--sm-border);
    font-size: 14px;
}

.single-work .work-info strong {
    min-width: 0;
    color: var(--sm-muted);
    font-size: 12px;
}

.single-work .work-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 36px;
}

.single-work .work-links a {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.single-work .work-links .work-link--mgs {
    background: var(--sm-mint);
}

.single-work .work-links .work-link--mgs:hover,
.single-work .work-links .work-link--mgs:focus {
    background: #115e59;
}

.single-work .work-links .work-link--fanza {
    background: var(--sm-accent);
}

.single-work .work-links .work-link--fanza:hover,
.single-work .work-links .work-link--fanza:focus {
    background: var(--sm-accent-dark);
}

/* サイドバーとフッター */
.sidebar .sm-site-search-widget {
    padding: 18px;
    border-radius: var(--sm-radius);
    box-shadow: var(--sm-shadow);
}

.site-footer {
    border-top: 1px solid var(--sm-border);
    background: #f1f5f9;
}

.site-info {
    padding-top: 22px;
    padding-bottom: 22px;
    color: var(--sm-muted);
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .inside-header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .site-branding .main-title {
        font-size: 18px;
    }

    .site-content {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .separate-containers .inside-article {
        padding: 18px;
        border-radius: 7px;
    }

    .sm-home-search {
        margin-bottom: 30px;
        padding: 15px;
    }

    .sm-home-search form {
        display: flex;
    }

    .sm-home-search button {
        padding-right: 15px;
        padding-left: 15px;
    }

    .sm-section-heading h2 {
        font-size: 17px;
    }

    .content-area .work-list,
    .content-area .sm-work-grid,
    .work-list,
    .sm-work-grid,
    .sm-home-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .single-work .entry-title {
        font-size: 21px;
    }

    .single-work .work-info p {
        grid-template-columns: 5.5em 1fr;
        gap: 8px;
        font-size: 13px;
    }

    .single-work .work-links {
        grid-template-columns: 1fr;
        margin-bottom: 30px;
    }

    .site-footer {
        margin-top: 0;
    }
}

/* =========================================================
   Listing and search refinements
========================================================= */
.page-header .page-title::after {
    display: none;
}

.sm-page-header {
    margin-bottom: 20px;
}

.sm-page-header h1 {
    margin-bottom: 0;
}

/* 配信元ごとにカード画像を自然な比率で表示 */
.sm-card-ratio--fanza .work-card-image,
.sm-card-ratio--fanza .sm-work-image,
.sm-card-ratio--fanza .sm-home-work-image,
.sm-card-ratio--fanza .sm-home-new-item-link > img,
.sm-card-ratio--fanza .sm-home-new-image {
    aspect-ratio: 1 / 1;
}

.sm-card-ratio--mgs .work-card-image,
.sm-card-ratio--mgs .sm-work-image,
.sm-card-ratio--mgs .sm-home-work-image,
.sm-card-ratio--mgs .sm-home-new-item-link > img,
.sm-card-ratio--mgs .sm-home-new-image {
    aspect-ratio: 16 / 10;
}

.sm-card-ratio--default .work-card-image,
.sm-card-ratio--default .sm-work-image,
.sm-card-ratio--default .sm-home-work-image,
.sm-card-ratio--default .sm-home-new-item-link > img,
.sm-card-ratio--default .sm-home-new-image {
    aspect-ratio: 4 / 3;
}

.sm-card-ratio--fanza .work-card-image img,
.sm-card-ratio--fanza .sm-work-image img,
.sm-card-ratio--fanza .sm-home-work-image img,
.sm-card-ratio--mgs .work-card-image img,
.sm-card-ratio--mgs .sm-work-image img,
.sm-card-ratio--mgs .sm-home-work-image img,
.sm-card-ratio--default .work-card-image img,
.sm-card-ratio--default .sm-work-image img,
.sm-card-ratio--default .sm-home-work-image img,
.sm-home-new-item-link > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* トップの作品・新着作品を一覧カードと同じ密度に揃える */
.sm-home-work-grid,
.sm-home-new-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.sm-home-work-card,
.sm-home-new-item {
    overflow: hidden;
    padding: 0;
}

.sm-home-work-card > a,
.sm-home-new-item-link {
    display: block;
}

.sm-home-work-image,
.sm-home-new-item-link > img,
.sm-home-new-image {
    width: 100%;
    margin: 0;
    background: #f1f5f9;
}

.sm-home-new-item-link > img {
    display: block;
    object-fit: cover;
}

.sm-home-work-card h3,
.sm-home-work-card p,
.sm-home-work-performers,
.sm-home-new-item-link > div:not(.sm-home-new-image),
.sm-home-new-performers {
    padding-right: 13px;
    padding-left: 13px;
}

.sm-home-work-card h3,
.sm-home-new-item h3 {
    margin: 12px 0 4px;
}

.sm-home-work-card p,
.sm-home-new-item p {
    margin: 0 0 4px;
}

.sm-home-work-performers,
.sm-home-new-performers {
    margin: 5px 0 13px !important;
}

.sm-home-new-item-link > div:not(.sm-home-new-image) {
    padding-top: 0;
}

/* すべての検索フォームを入力欄内の虫眼鏡ボタンに統一 */
.sm-home-search form,
.sm-sidebar-search-form,
.sm-mobile-search-form {
    position: relative;
    display: block;
}

.sm-home-search input[type="search"],
.sm-sidebar-search-form input[type="search"],
.sm-mobile-search-form input[type="search"] {
    width: 100%;
    padding-right: 48px;
}

button.sm-search-submit {
    position: absolute;
    top: 4px;
    right: 4px;
    display: inline-flex;
    width: 36px;
    min-height: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--sm-accent);
}

button.sm-search-submit:hover,
button.sm-search-submit:focus {
    background: var(--sm-accent-soft);
    color: var(--sm-accent-dark);
}

button.sm-search-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

@media (max-width: 1024px) {
    .sm-home-work-grid,
    .sm-home-new-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .sm-home-work-grid,
    .sm-home-new-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}

/* =========================================================
   Actress naming and list refinement
========================================================= */
.page-header .page-title,
.sm-page-header h1,
.performer-works > h2,
.related-works > h2 {
    padding-bottom: 0;
}

.sm-page-header h1::after,
.performer-works > h2::after,
.related-works > h2::after {
    display: none;
}

.sm-section-heading {
    padding-bottom: 0;
    border-bottom: 0;
}

.performer-group-title {
    padding-bottom: 0;
    border-bottom: 0;
}

.performer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.performer-card {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    padding: 9px;
    color: var(--sm-ink);
    text-decoration: none;
}

.performer-card-image {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    overflow: hidden;
    border: 1px solid var(--sm-accent-border);
    border-radius: 50%;
    background: var(--sm-accent-soft);
}

.performer-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.performer-card-name {
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.performer-card:hover,
.performer-card:focus {
    opacity: 1;
}

.sm-home-actress-link {
    margin: -12px 0 40px;
    text-align: center;
}

.sm-home-actress-link a {
    color: var(--sm-accent);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sm-home-actress-link a::after {
    margin-left: 7px;
    content: "→";
}

.sm-home-actress-link a:hover,
.sm-home-actress-link a:focus {
    color: var(--sm-accent-dark);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .performer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .performer-card {
        min-height: 58px;
    }

    .sm-home-actress-link {
        margin-bottom: 30px;
    }
}

/* Header and advertising refinements */
.site-header {
    background: #a93e65;
    border-bottom-color: #8e3154;
}

.site-branding .main-title,
.site-branding .main-title a {
    color: #fff;
}

.sm-header-tagline {
    color: rgba(255, 255, 255, 0.78);
}

.main-navigation .main-nav ul li a {
    color: rgba(255, 255, 255, 0.88);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:hover,
.main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

button.sm-search-submit {
    border: 1px solid var(--sm-accent-border);
    background: var(--sm-accent-soft);
}

button.sm-search-submit:hover,
button.sm-search-submit:focus {
    border-color: var(--sm-accent);
    background: var(--sm-accent);
    color: #fff;
}

.sidebar .sm-ad-slot {
    display: block;
    min-height: 250px;
    padding: 0;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    background: #fff;
    box-shadow: none;
}

.sm-ad-slot span {
    color: #a18a5d;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.sm-home-actress-link {
    margin: 0 0 32px;
    text-align: left;
}

.sm-home-actress-link a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 15px;
    border: 1px solid var(--sm-accent);
    border-radius: var(--sm-radius);
    background: var(--sm-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.sm-home-actress-link a:hover,
.sm-home-actress-link a:focus {
    border-color: var(--sm-accent-dark);
    background: var(--sm-accent-dark);
    color: #fff;
    text-decoration: none;
}

body.home .sm-home-work-grid,
body.home .sm-home-new-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 768px) {
    body.home .sm-home-work-grid,
    body.home .sm-home-new-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #mobile-menu-control-wrapper .menu-toggle {
        color: #fff;
    }

    .sm-mobile-search summary {
        border-color: rgba(255, 255, 255, 0.35);
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .sm-home-actress-link {
        margin-bottom: 28px;
    }
}

/* Archive filters and mobile finishing */
.page-header .page-title,
.sm-page-header h1,
.single-work .entry-title {
    margin-bottom: 0;
}

.work-filter-form {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid var(--sm-border);
    border-radius: var(--sm-radius);
    background: #fff;
}

.work-filter-fields {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.work-filter-fields label {
    display: grid;
    gap: 5px;
    color: var(--sm-muted);
    font-size: 12px;
    font-weight: 600;
}

.work-filter-fields select {
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 7px 30px 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background-color: #fff;
    color: var(--sm-ink);
    font-size: 14px;
}

.work-filter-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.work-filter-actions button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--sm-accent);
    border-radius: 5px;
    background: var(--sm-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.work-filter-actions button:hover,
.work-filter-actions button:focus {
    border-color: var(--sm-accent-dark);
    background: var(--sm-accent-dark);
}

.work-filter-actions a {
    color: var(--sm-muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.work-filter-actions .work-filter-performer-link {
    color: var(--sm-accent);
    font-weight: 700;
}

/* 入力欄と一体化させ、検索ボタンの位置ズレを防ぐ */
button.sm-search-submit {
    top: 1px;
    right: 1px;
    width: 42px;
    min-height: 42px;
    height: 42px;
    border: 0;
    border-left: 1px solid var(--sm-accent-border);
    border-radius: 0 5px 5px 0;
    background: transparent;
}

button.sm-search-submit:hover,
button.sm-search-submit:focus {
    border-color: var(--sm-accent-border);
    border-left-color: var(--sm-accent-border);
    background: var(--sm-accent-soft);
    color: var(--sm-accent-dark);
}

/* 検索欄の高さに追従する、背景付きの検索ボタン */
.sm-home-search form .sm-search-submit,
.sm-sidebar-search-form .sm-search-submit,
.sm-mobile-search-form .sm-search-submit {
    top: 0;
    right: 0;
    bottom: 0;
    width: 44px;
    min-height: 0;
    height: auto;
    border: 0;
    border-left: 1px solid var(--sm-accent-border);
    border-radius: 0 5px 5px 0;
    background: var(--sm-accent);
    color: #fff;
}

.sm-home-search form .sm-search-submit:hover,
.sm-home-search form .sm-search-submit:focus,
.sm-sidebar-search-form .sm-search-submit:hover,
.sm-sidebar-search-form .sm-search-submit:focus,
.sm-mobile-search-form .sm-search-submit:hover,
.sm-mobile-search-form .sm-search-submit:focus {
    border-left-color: var(--sm-accent);
    background: var(--sm-accent-soft);
    color: var(--sm-accent-dark);
}

.sm-mobile-menu-close {
    display: none;
}

/* 作品詳細の関連一覧 */
.single-work .series-works,
.single-work .related-works {
    max-width: 960px;
    margin: 36px auto 0;
    padding-top: 28px;
    border-top: 1px solid var(--sm-border);
}

.single-work .series-works > h2,
.single-work .related-works > h2 {
    display: block;
    margin: 0 0 16px;
    padding: 0;
    color: var(--sm-ink);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.single-work .series-works > h2::before,
.single-work .series-works > h2::after,
.single-work .related-works > h2::before,
.single-work .related-works > h2::after {
    display: none;
}

/* 現在地は背景色ではなく、文字色と下線で控えめに示す */
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: transparent;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.9);
    color: #fff;
    cursor: default;
    pointer-events: none;
}

.main-navigation .main-nav ul li a {
    min-height: 0;
    padding: 10px 16px;
    border-radius: 0;
}

@media (min-width: 769px) {
    .site-header .inside-header {
        padding-top: 23px;
        padding-bottom: 23px;
    }

    .site-header .main-navigation .main-nav > ul {
        display: flex;
        align-items: center;
    }

    .site-header .main-navigation .main-nav > ul > li {
        display: flex;
        height: 38px;
        margin: 0;
        border-radius: 0 !important;
    }

    .site-header .main-navigation .main-nav > ul > li > a {
        display: flex;
        min-width: 104px;
        height: 38px;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        padding: 0 18px;
        border-radius: 0 !important;
        line-height: 1;
        text-align: center;
    }

    .main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:hover,
    .main-navigation .main-nav ul li:not([class*="current-menu-"]) > a:focus {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
}

@media (max-width: 768px) {
    /* モバイルは外枠を外し、作品カードに表示領域を譲る */
    body main.site-main {
        margin: 0 !important;
    }

    #page.site.grid-container {
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }

    .site-content,
    #primary.content-area {
        width: 100%;
        max-width: 100%;
        flex-basis: 100%;
        margin-right: 0;
        margin-left: 0;
    }

    .site-content {
        display: block;
        padding-top: 12px;
        padding-bottom: 24px;
    }

    .separate-containers .inside-article {
        padding: 0 14px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.home .inside-article {
        padding: 0;
    }

    .sm-home {
        padding: 16px 14px 2px;
    }

    .sm-home-search {
        padding: 12px;
    }

    .site-header .inside-header {
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .site-branding .main-title,
    .site-branding .main-title a {
        font-size: 17px;
        line-height: 1.3;
    }

    .sm-header-tagline {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.4;
    }

    .sm-mobile-search-panel {
        position: absolute;
        top: 46px;
        right: 0;
        left: auto;
        width: min(320px, calc(100vw - 24px));
        box-sizing: border-box;
        padding: 10px;
    }

    .sm-mobile-search-form input[type="search"] {
        box-sizing: border-box;
        min-height: 44px;
        padding-right: 52px;
    }

    .sm-mobile-menu-close {
        position: absolute;
        top: 16px;
        right: 14px;
        z-index: 2;
        display: inline-flex;
        min-height: 36px;
        align-items: center;
        gap: 5px;
        padding: 7px 9px;
        border: 0;
        border-radius: 4px;
        background: transparent;
        color: var(--sm-muted);
        font-size: 12px;
    }

    .sm-mobile-menu-close span:first-child {
        font-size: 21px;
        font-weight: 300;
        line-height: 1;
    }

    .has-inline-mobile-toggle #site-navigation .main-nav ul li[class*="current-menu-"] > a {
        background: transparent;
        box-shadow: inset 0 -2px 0 var(--sm-accent);
        color: var(--sm-accent-dark);
        cursor: default;
        pointer-events: none;
    }

    .has-inline-mobile-toggle #site-navigation .main-nav ul li a {
        padding: 11px 12px;
        border-radius: 0;
    }

    .sidebar {
        display: block;
        width: auto;
        margin: 20px 14px 0;
    }

    .sidebar .sm-site-search-widget,
    .sidebar .sm-ad-slot--2,
    .sidebar .sm-ad-slot--3 {
        display: none;
    }

    .sidebar .sm-ad-slot--1 {
        display: block;
        min-height: 180px;
        margin: 0;
        border: 1px solid var(--sm-border);
        border-radius: var(--sm-radius);
        background: #fff;
    }

    .work-filter-form {
        display: block;
        margin-top: 14px;
        padding: 12px;
    }

    .work-filter-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .work-filter-actions {
        margin-top: 12px;
    }

    .work-filter-actions button {
        flex: 1 1 auto;
    }

    .work-card-content {
        padding: 8px;
    }

    .work-card-title {
        font-size: 13px;
        line-height: 1.45;
    }

    .work-card-content p,
    .work-card-performers {
        font-size: 11px;
    }

    .work-source-badges {
        gap: 4px;
        margin: 6px 0;
    }

    .work-source-badge {
        padding: 2px 5px;
        font-size: 9px;
    }

    .single-work .series-works,
    .single-work .related-works {
        margin-top: 28px;
        padding-top: 20px;
    }

    .single-work .series-works > h2,
    .single-work .related-works > h2 {
        margin-bottom: 12px;
        font-size: 16px;
    }
}
