/* ===== gallery-standalone.css =====
   わんケア ギャラリーページ 完全独立スタイル
   Cocoon・WordPressのスタイルを完全リセット後に独自スタイルを適用
   ================================================= */

/* --- リセット（Cocoon干渉をゼロに） --- */
.wancare-gallery-standalone * {
    box-sizing: border-box;
}
.wancare-gallery-standalone {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #2D2926;
    background: #FAF9F7;
    -webkit-font-smoothing: antialiased;
}

/* ===== 🚨 WordPress / Cocoon CSS競合の完全無力化（クリック妨害・全画面被り防止ガード） ===== */
header.header,
.header,
header,
.wc-header {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background-image: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    pointer-events: none !important;
}

header.header > *,
.header .header-top,
.header .header-nav,
.header .top-inner,
.header .nav-inner,
.header .nav-menu,
.header a,
.header button,
.header input,
.wc-header-inner,
.wc-header-inner * {
    pointer-events: auto !important;
}

.header .megamenu,
.header .dropdown-menu {
    pointer-events: none !important;
}
.header .has-dropdown:hover .megamenu,
.header .has-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.header .sp-drawer,
.sp-drawer,
.wc-drawer {
    visibility: hidden !important;
    pointer-events: none !important;
}
.header .sp-drawer.open,
.header .sp-drawer.is-open,
.sp-drawer.open,
.sp-drawer.is-open,
.wc-drawer.open,
.wc-drawer.is-open {
    visibility: visible !important;
    pointer-events: auto !important;
}

.wc-main,
.wc-hero,
.wc-filter-bar,
.wc-gallery-section,
.wc-grid,
.wc-card {
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
}

/* ===== ヘッダー ===== */
.wc-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
}
.wc-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.wc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.wc-logo {
    text-decoration: none;
    flex-shrink: 0;
}
.wc-logo img {
    height: 40px;
    width: auto;
    display: block;
}
.wc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.wc-nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #2D2926;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
}
.wc-nav-link:hover,
.wc-nav-link.is-active {
    color: #2D6A4F;
    background: rgba(45, 106, 79, 0.07);
}
.wc-btn-trial {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF !important;
    background: #E65100;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}
.wc-btn-trial:hover {
    background: #BF360C;
    transform: translateY(-1px);
}
.wc-btn-line {
    font-size: 13px;
    font-weight: 700;
    color: #FFFFFF !important;
    background: #06C755;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.2s;
}
.wc-btn-line:hover {
    background: #05b34c;
    transform: translateY(-1px);
}
.wc-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}
.wc-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #2D2926;
    border-radius: 2px;
    transition: all 0.3s;
}
.wc-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.wc-hamburger.is-open span:nth-child(2) { opacity: 0; }
.wc-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ===== ドロワー ===== */
.wc-drawer {
    display: block;
    position: fixed;
    top: 104px;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 64px);
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0,0,0,0.12);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), visibility 0.3s;
    padding: 24px 20px;
    visibility: hidden !important;
    pointer-events: none !important;
}
.wc-drawer.is-open {
    transform: translateX(0);
    visibility: visible !important;
    pointer-events: auto !important;
}
.wc-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.wc-drawer-link {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #2D2926;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}
.wc-drawer-link:hover,
.wc-drawer-link.is-active {
    background: #E8F5E9;
    color: #2D6A4F;
}

/* ===== メインコンテナ ===== */
.wc-main {
    padding-top: 104px;
}
.wc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ヒーローセクション ===== */
.wc-hero {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 60%, #40916C 100%);
    padding: 60px 0 50px;
    color: #fff;
}
.wc-breadcrumb {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 20px;
}
.wc-breadcrumb a {
    color: #fff;
    text-decoration: none;
    opacity: 0.75;
}
.wc-breadcrumb a:hover { opacity: 1; }
.wc-hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.45;
    margin: 0 0 20px;
    color: #fff;
}
.wc-hero-desc {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 0 24px;
}
.wc-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.wc-badge {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* ===== フィルターバー ===== */
.wc-filter-bar {
    background: #fff;
    border-bottom: 1px solid #EAEAEA;
    padding: 16px 0;
    position: sticky;
    top: 104px;
    z-index: 90;
}
.wc-filter-label {
    font-size: 13px;
    font-weight: 700;
    color: #718096;
    margin-bottom: 12px;
}
.wc-filter-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.wc-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #D0D0D0;
    border-radius: 20px;
    background: #fff;
    color: #4A5568;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
}
.wc-filter-btn:hover {
    border-color: #A3D9C9;
    background: #E8F5E9;
    color: #2D6A4F;
}
.wc-filter-btn.is-active {
    background: #2D6A4F;
    border-color: #2D6A4F;
    color: #fff;
}
.wc-count {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.wc-filter-btn.is-active .wc-count {
    background: rgba(255,255,255,0.25);
}
.wc-filter-meta {
    font-size: 13px;
    color: #718096;
}
.wc-filter-meta strong {
    color: #2D6A4F;
    font-size: 16px;
}

/* ===== ギャラリーグリッド ===== */
.wc-gallery-section {
    padding: 40px 0 60px;
    position: relative;
    z-index: 10;
}
.wc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

/* ===== カード ===== */
.wc-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #EAEAEA;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 5;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s cubic-bezier(0.16,1,0.3,1);
}
.wc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(45,106,79,0.13);
    border-color: #B7E4C7;
}
.wc-card-thumb {
    position: relative;
    padding-top: 56.25%;
    background: #111;
    overflow: hidden;
    flex-shrink: 0;
}
.wc-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}
.wc-card:hover .wc-card-thumb img {
    transform: scale(1.04);
}
.wc-play-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.wc-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.wc-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.wc-tag-breed {
    background: #E8F5E9;
    color: #2D6A4F;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.wc-tag-cart {
    background: #E3F2FD;
    color: #1565C0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.wc-card-name {
    font-size: 15px;
    font-weight: 800;
    color: #1B4332;
    margin: 0;
    line-height: 1.4;
}
.wc-card-title {
    font-size: 12px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.wc-card-action {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F0F0F0;
    font-size: 13px;
    font-weight: 700;
    color: #2D6A4F;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== CTAバナー ===== */
.wc-cta-banner {
    background: linear-gradient(135deg, #1B4332, #2D6A4F);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
}
.wc-cta-lead {
    font-size: 14px;
    opacity: 0.85;
    margin: 0 0 12px;
}
.wc-cta-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    margin: 0 0 16px;
    color: #fff;
}
.wc-cta-desc {
    font-size: 14px;
    opacity: 0.88;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 28px;
}
.wc-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.wc-btn-cta-trial {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E65100;
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(230,81,0,0.35);
}
.wc-btn-cta-trial:hover {
    background: #BF360C;
    transform: translateY(-2px);
}
.wc-btn-cta-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #06C755;
    color: #fff !important;
    font-weight: 800;
    font-size: 15px;
    padding: 16px 32px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(6,199,85,0.35);
}
.wc-btn-cta-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
}

/* ===== フッター ===== */
.wc-footer {
    background: #1B4332;
    color: #fff;
    padding: 50px 0 80px;
}
.wc-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.wc-footer-col-title {
    font-weight: 800;
    font-size: 14px;
    color: #74C69D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
}
.wc-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wc-footer-links a {
    color: rgba(255,255,255,0.72);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.2s;
}
.wc-footer-links a:hover {
    color: #fff;
}
.wc-footer-bottom {
    text-align: center;
}
.wc-footer-brand {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}
.wc-footer-bottom p {
    font-size: 13px;
    opacity: 0.65;
    margin: 4px 0;
}
.wc-copyright {
    margin-top: 16px !important;
    opacity: 0.45 !important;
}

/* ===== スマホ下部固定バー ===== */
.wc-sp-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #E0E0E0;
    box-shadow: 0 -3px 12px rgba(0,0,0,0.08);
    z-index: 1000;
    grid-template-columns: repeat(4, 1fr);
}
.wc-sp-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    text-decoration: none;
    color: #5D5956;
    font-size: 10px;
    font-weight: 700;
}
.wc-sp-bar-line {
    background: #06C755;
    color: #fff !important;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .wc-nav { display: none; }
    .wc-hamburger { display: flex; }
    .wc-drawer { display: block; }
    .wc-sp-bar { display: grid; }
    .wc-footer {
        padding-bottom: 80px;
    }
    .wc-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wc-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    .wc-hero {
        padding: 40px 0 36px;
    }
    .wc-filter-bar {
        top: 72px;
    }
    .wc-main {
        padding-top: 72px;
    }
    .wc-header-inner {
        padding: 10px 16px;
    }
    .wc-logo img {
        height: 32px;
    }
    .wc-cta-banner {
        padding: 32px 20px;
    }
    .wc-filter-btns {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .wc-filter-btns::-webkit-scrollbar { display: none; }
}

@media (max-width: 480px) {
    .wc-grid {
        grid-template-columns: 1fr;
    }
    .wc-container {
        padding: 0 16px;
    }
}
