/*
Theme Name: sexyfanza-theme
Theme URI: http://example.com/your-theme
Description: パステルカラーのポップな動画・レビューサイト向けWordPressテーマ
Author: kenichi
Version: 2.1.1
*/

:root {
    --pink: #f38fb6;
    --pink-dark: #a83d68;
    --mint: #a7ead4;
    --mint-light: #dff8e8;
    --aqua: #74dce0;
    --cream: #fff9df;
    --purple: #61325f;
    --ink: #382d43;
    --line: #4b4653;
    --white: #fffdf8;
    --shadow: 0 5px 0 rgba(56, 45, 67, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, header, footer, div, article, p, a, ul, li, h1, h2, h3, h4 { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; word-break: break-word; }
a:hover { opacity: .78; }
img, video, iframe { max-width: 100%; }

body {
    padding: 10px;
    color: var(--ink);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    background:
        radial-gradient(circle at 10% 15%, rgba(255,255,255,.55) 0 2px, transparent 3px),
        radial-gradient(circle at 84% 38%, rgba(255,255,255,.4) 0 1px, transparent 2px),
        linear-gradient(135deg, #9ab9d7, #c7b1d7 52%, #8eb4d2);
    background-size: 42px 42px, 30px 30px, auto;
}

.site-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    overflow: hidden;
    border: 4px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, var(--mint-light), var(--mint));
    box-shadow: 0 12px 28px rgba(30, 25, 48, .28);
}

.site-header {
    padding: 12px 18px 10px;
    color: #fff;
    text-align: center;
    border-bottom: 3px solid var(--line);
    border-radius: 18px 18px 28px 28px;
    background: var(--pink);
}
#header-inner { width: 100%; margin: 0 auto; }
.site-kicker {
    font-size: clamp(1.15rem, 3vw, 2rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: .04em;
    text-shadow: 0 2px 0 var(--pink-dark), 0 0 2px var(--line);
}
.site-title { margin-top: 4px; font-size: clamp(1.45rem, 3.4vw, 2.5rem); line-height: 1.15; }
.site-title a { color: #fff; text-shadow: 0 2px 0 var(--pink-dark), 0 0 2px var(--line); }
.site-description { margin-top: 3px; font-size: .78rem; font-weight: 700; }

.nav-container { position: relative; z-index: 15; background: rgba(255,255,255,.34); border-bottom: 1px solid rgba(75,70,83,.35); }
.nav-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 9px 14px; }
.nav-menu li { position: relative; }
.nav-menu a {
    display: block;
    padding: 6px 14px;
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--purple);
}
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu a:hover,
.nav-menu a:focus-visible {
    color: var(--ink);
    background: var(--cream);
    opacity: 1;
}
.nav-menu .sub-menu,
.nav-menu .children {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: rgba(255,253,248,.98);
    box-shadow: var(--shadow);
}
.nav-menu .sub-menu li + li,
.nav-menu .children li + li { margin-top: 6px; }
.nav-menu .sub-menu a,
.nav-menu .children a { border-radius: 9px; white-space: normal; }
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li:focus-within > .children { display: block; }

#ad-caution { padding: 5px 12px; color: #584b59; text-align: center; font-size: .65rem; font-weight: 700; background: rgba(255,249,223,.8); }

.wide-widget-zone { padding: 14px 18px 0; }
#wrapper { display: flex; gap: 18px; width: 100%; padding: 18px; }
#left-wrapper { min-width: 0; flex: 1 1 auto; }
main { width: 100%; min-width: 0; }

.site-widget,
#contents-page,
.archive-heading,
.quarter_posts,
.prev_next {
    border: 2px solid rgba(75,70,83,.72);
    border-radius: 15px;
    background: rgba(255, 253, 248, .9);
    box-shadow: var(--shadow);
}
.site-widget { margin-bottom: 16px; padding: 13px; }
.widget-title,
.section-label {
    margin-bottom: 10px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .04em;
}
.widget-title {
    padding-bottom: 7px;
    border-bottom: 3px solid var(--pink);
}
.site-widget ul li { padding: 7px 0; border-bottom: 1px dashed rgba(75,70,83,.3); }
.site-widget ul li:last-child { border-bottom: 0; }
.site-widget select,
.site-widget input[type="text"],
.site-widget input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    border: 2px solid var(--line);
    border-radius: 9px;
    background: var(--cream);
}
.site-widget button,
.site-widget input[type="submit"] {
    padding: 7px 14px;
    color: #fff;
    font-weight: 800;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--purple);
    cursor: pointer;
}

.content-widget-zone { margin-bottom: 18px; }
.archive-heading { margin-bottom: 14px; padding: 13px 16px; }
.archive-heading h1 { font-size: 1.3rem; }
.archive-description { margin-top: 8px; font-size: .88rem; }
.section-label { margin: 0; font-size: 1.2rem; }

#loop-page {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 22px;
}
.post-card {
    min-width: 0;
    padding: 7px;
    border: 2px solid rgba(75,70,83,.72);
    border-radius: 12px;
    background: rgba(255,253,248,.9);
    box-shadow: 0 3px 0 rgba(56,45,67,.13);
}
.post-card-link { display: block; }
.post-card-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(75,70,83,.45);
    border-radius: 9px;
    background: var(--cream);
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-thumbnail {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    text-align: center;
    font-size: .82rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd0de 25%, #d8f8e7 25% 50%, #cfe9ff 50% 75%, #fff0b5 75%);
}
.play-mark {
    position: absolute;
    top: 50%; left: 50%;
    display: grid;
    width: 38px; height: 38px;
    place-items: center;
    color: #fff;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(226,55,83,.86);
    transform: translate(-50%, -50%);
}
.post-card h2 {
    margin: 8px 3px 2px;
    color: var(--pink-dark);
    font-size: .79rem;
    line-height: 1.45;
    text-align: center;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.no-posts { grid-column: 1 / -1; padding: 24px; text-align: center; }

#contents-page { padding: 18px; }
#contents-page article { overflow: hidden; }
#contents-page h1 { margin-bottom: 15px; color: var(--pink-dark); font-size: clamp(1.25rem, 2.5vw, 1.85rem); line-height: 1.5; }
.entry-content { font-size: .96rem; line-height: 1.9; }
.entry-content p { margin: 0 0 1.25em; }
.entry-content img, .entry-content video { display: block; height: auto; margin: 14px auto; border-radius: 10px; }
.entry-content iframe { display: block; width: 100%; margin: 14px auto; border: 2px solid var(--line); border-radius: 12px; background: #16151a; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; margin-top: 18px; padding-top: 12px; font-size: .8rem; border-top: 2px dashed rgba(75,70,83,.35); }
.entry-meta i { margin-right: 4px; }
.entry-meta .fa-folder { margin-left: 12px; }
.single-bottom-widget-zone { margin-top: 22px; }

.quarter_posts { margin: 18px 0; padding: 13px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.quarter_post { width: auto; min-width: 0; }
.quarter_post img { width: 100%; height: auto; border-radius: 8px; }
.quarter_post h3 { margin-top: 6px; font-size: .78rem; }
.prev_next { overflow: hidden; margin: 18px 0; padding: 14px; }
.prev, .next { width: 48%; min-height: 70px; overflow: hidden; }
.prev { float: left; }
.next { float: right; text-align: right; }
.prev_next_header { color: #6b6370; font-size: .75rem; font-weight: 700; }

#sidebar { flex: 0 0 270px; min-width: 0; }
#sidebar .site-widget { background: rgba(255,249,223,.92); }
#sidebar .widget-title { color: var(--purple); }

.pagination { clear: both; margin: 24px 0; text-align: center; }
.pagination span, .pagination a {
    display: inline-grid;
    min-width: 38px; height: 38px;
    margin: 4px;
    padding: 0 7px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
}
.pagination .current, .pagination a:hover { color: #fff; background: var(--pink); opacity: 1; }

.bread-wrap { min-height: 8px; padding: 0 18px; color: var(--ink); background: var(--aqua); }
.bread { padding: 7px 0; font-size: .76rem; }
.site-footer {
    padding: 12px 18px 9px;
    border-top: 2px solid var(--line);
    background: var(--aqua);
}
.footer-nav-container { width: 100%; margin-bottom: 10px; }
.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
}
.footer-menu li { position: relative; }
.footer-menu a {
    display: block;
    padding: 4px 10px;
    font-size: .78rem;
    font-weight: 800;
    border-radius: 999px;
}
.footer-menu .current-menu-item > a,
.footer-menu .current_page_item > a,
.footer-menu a:hover,
.footer-menu a:focus-visible { background: rgba(255,253,248,.75); opacity: 1; }
.footer-menu .sub-menu,
.footer-menu .children {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    margin-top: 4px;
    padding-left: 10px;
}
.footer-main {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 50px;
}
.footer-contact {
    padding: 5px 26px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--pink);
    font-size: .82rem;
    font-weight: 800;
}
.footer-cloud, .footer-home {
    position: absolute;
    bottom: 2px;
    display: grid;
    width: 38px; height: 38px;
    place-items: center;
    color: var(--purple);
    font-size: 1.25rem;
}
.footer-cloud { left: 2px; }
.footer-home { right: 2px; color: #fff; border: 2px solid var(--line); border-radius: 50%; background: var(--pink); }

.ui_buttons { position: fixed; right: 18px; bottom: 18px; z-index: 20; }
.ui_button { display: grid; float: right; width: 38px; height: 38px; margin-left: 8px; place-items: center; color: #fff; border: 2px solid var(--line); border-radius: 50%; background: var(--pink); cursor: pointer; }

@media (max-width: 980px) {
    #loop-page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    #sidebar { flex-basis: 235px; }
}
@media (max-width: 760px) {
    body { padding: 5px; }
    .site-shell { border-width: 3px; border-radius: 18px; }
    .nav-menu { align-items: stretch; gap: 6px; }
    .nav-menu > li { flex: 1 1 calc(50% - 6px); }
    .nav-menu > li > a { text-align: center; }
    .nav-menu .sub-menu,
    .nav-menu .children {
        position: static;
        display: block;
        min-width: 0;
        margin-top: 5px;
        padding: 4px 0 0 10px;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    #wrapper { display: block; padding: 12px; }
    #sidebar { width: 100%; margin-top: 18px; }
    #loop-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quarter_posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .wide-widget-zone { padding: 10px 10px 0; }
    #loop-page { gap: 9px; }
    .post-card { padding: 5px; }
    .post-card h2 { font-size: .7rem; }
    #contents-page { padding: 13px; }
    .site-footer { padding-left: 10px; padding-right: 10px; }
    .footer-main { padding-left: 44px; padding-right: 44px; }
}
