@charset "UTF-8";
/*
Theme Name: わんケア 公式テーマ (wancare-theme)
Theme URI: https://www.wancare.jp/
Author: わんケア開発チーム
Author URI: https://www.wancare.jp/
Description: わんケア本店デザインと完全統合した超軽量・高速・高SEOな専用テーマ
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wancare-theme
*/

/* ==========================================================================
   1. ベースレイアウト ＆ ヘッダーオフセット (SOP Rule 4-③)
   ========================================================================== */
body {
    background-color: #FAF8F5 !important;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #2D2926;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.wc-blog-main,
.wc-main {
    padding-top: 104px; /* PCヘッダー高さオフセット */
    padding-bottom: 60px;
    min-height: calc(100vh - 350px);
}

@media (max-width: 1080px) {
    .wc-blog-main,
    .wc-main {
        padding-top: 72px; /* SPヘッダー高さオフセット */
    }
}

.wc-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. パンくずナビゲーション
   ========================================================================== */
.wc-breadcrumb {
    font-size: 0.85rem;
    color: #718096;
    margin: 20px 0;
    line-height: 1.5;
}

.wc-breadcrumb a {
    color: #2D6A4F;
    text-decoration: none;
    transition: color 0.2s;
}

.wc-breadcrumb a:hover {
    color: #1B4332;
    text-decoration: underline;
}

.wc-breadcrumb span {
    color: #4A5568;
}

/* ==========================================================================
   3. 記事カードコンテナ ＆ ヘッダー (ヘッダー競合防止リセット付き)
   ========================================================================== */
.wc-article-card {
    background: #FFFFFF;
    border: 1px solid #EFECE6;
    border-radius: 20px;
    padding: 44px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 36px;
}

@media (max-width: 768px) {
    .wc-article-card {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

/* 記事ヘッダー（main.cssのheader固定ルールを完全無効化） */
.wc-article-header,
.wc-archive-header,
.wc-article-card header,
.wc-article-card .wc-article-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    z-index: auto !important;
    pointer-events: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 20px;
}

.wc-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.wc-cat-badge a,
.wc-cat-badge span {
    display: inline-block;
    background: #E8F5ED;
    color: #2D6A4F;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}

.wc-article-date {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
}

.wc-article-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.4;
    margin: 8px 0 20px 0;
}

@media (max-width: 768px) {
    .wc-article-title {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   4. アイキャッチ画像の安全防護（縦長・横長完全中央収容）
   ========================================================================== */
.wc-article-eyecatch {
    width: 100%;
    margin: 20px auto 32px auto;
    text-align: center;
}

.wc-eyecatch-img {
    width: auto;
    max-width: 100%;
    max-height: 520px;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .wc-eyecatch-img {
        max-height: 380px;
    }
}

/* ==========================================================================
   5. 本文タイポグラフィ（Gutenbergブロック対応）
   ========================================================================== */
.wc-article-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #2D2926;
}

.wc-article-body h2 {
    background: linear-gradient(90deg, #F0F7F4 0%, transparent 100%);
    border-left: 5px solid #2D6A4F;
    border-radius: 0 8px 8px 0;
    color: #1B4332;
    font-size: 1.35rem;
    font-weight: 700;
    padding: 12px 18px;
    margin: 40px 0 20px;
}

.wc-article-body h3 {
    border-bottom: 2px solid #E8833A;
    color: #1B4332;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 6px 0;
    margin: 32px 0 16px;
}

.wc-article-body h4 {
    color: #2D6A4F;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.wc-article-body p {
    margin-bottom: 1.6em;
}

.wc-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1.5em auto;
}

.wc-article-body ul,
.wc-article-body ol {
    padding-left: 24px;
    margin-bottom: 1.6em;
}

.wc-article-body li {
    margin-bottom: 0.5em;
}

.wc-article-body blockquote {
    background: #F7FAF8;
    border-left: 4px solid #52B788;
    margin: 1.8em 0;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    color: #4A5568;
    font-style: italic;
}

.wc-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.wc-article-body th,
.wc-article-body td {
    border: 1px solid #E2E8F0;
    padding: 12px 14px;
    text-align: left;
}

.wc-article-body th {
    background: #F0F7F4;
    color: #1B4332;
    font-weight: 700;
}

/* ==========================================================================
   6. 店長ブログ・音声Q&A専用スタイル
   ========================================================================== */
.wc-audio-card {
    background: linear-gradient(135deg, #FFF9F2 0%, #FFF3E6 100%);
    border: 2px solid #E8833A;
    border-radius: 12px;
    padding: 20px;
    margin: 28px 0;
    box-shadow: 0 4px 14px rgba(232, 131, 58, 0.12);
}

.wc-audio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wc-audio-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8C4300;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-audio-badge {
    background: #E8833A;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}

.wc-audio-player audio {
    width: 100%;
    height: 44px;
    border-radius: 8px;
    outline: none;
}

.wc-audio-hint {
    font-size: 0.8rem;
    color: #7A6A58;
    margin-top: 8px;
    text-align: right;
}

.wc-qa-question {
    background: #F4F7FB;
    border-left: 5px solid #2B6CB0;
    border-radius: 0 10px 10px 0;
    padding: 18px 20px;
    margin: 24px 0;
}

.wc-qa-question-label {
    display: inline-block;
    background: #2B6CB0;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.wc-qa-question-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1A365D;
    line-height: 1.6;
    margin: 0;
}

.wc-qa-answer {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wc-qa-answer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E2E8F0;
}

.wc-qa-answer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFF3E6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid #E8833A;
    flex-shrink: 0;
}

.wc-qa-answer-name {
    font-weight: 700;
    color: #2D3748;
    font-size: 1rem;
}

.wc-qa-answer-role {
    font-size: 0.75rem;
    color: #718096;
}

/* ==========================================================================
   7. 記事フッター ＆ タグ ＆ 高CV CTA
   ========================================================================== */
.wc-article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #EFECE6;
}

.wc-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.wc-post-tags a {
    background: #F7FAF8;
    color: #2D6A4F;
    border: 1px solid #D1E5DB;
    padding: 4px 12px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s;
}

.wc-post-tags a:hover {
    background: #2D6A4F;
    color: #FFFFFF;
}

.wc-unified-cta {
    background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
    color: #FFFFFF;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    margin-top: 36px;
    box-shadow: 0 10px 28px rgba(27, 67, 50, 0.2);
}

.wc-cta-lead {
    color: #E0A96D;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.wc-cta-title {
    color: #FFFFFF !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    margin: 0 0 10px 0 !important;
}

.wc-cta-desc {
    font-size: 0.92rem;
    opacity: 0.92;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.wc-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #E8833A;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(232, 131, 58, 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    background: #D96F25;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 131, 58, 0.45);
}

.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #06C755;
    color: #FFFFFF !important;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.3);
    transition: all 0.25s ease;
}

.btn-line:hover {
    background: #05a847;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

/* 前後ナビ */
.wc-post-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 36px 0;
    font-size: 0.9rem;
}

.wc-post-nav a {
    color: #2D6A4F;
    text-decoration: none;
    font-weight: 700;
}

.wc-post-nav a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   8. ブログ記事一覧グリッド（index.php / archive.php）
   ========================================================================== */
.wc-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.wc-blog-card {
    background: #FFFFFF;
    border: 1px solid #EFECE6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wc-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(45, 106, 79, 0.12);
    border-color: #2D6A4F;
}

.wc-blog-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #F0F4F2;
    overflow: hidden;
}

.wc-blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wc-blog-card:hover .wc-blog-card-thumb img {
    transform: scale(1.04);
}

.wc-blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wc-blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.wc-blog-card-cat {
    background: #E8F5ED;
    color: #2D6A4F;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.wc-blog-card-date {
    font-size: 0.75rem;
    color: #718096;
}

.wc-blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1B4332;
    line-height: 1.45;
    margin: 0 0 8px 0;
}

.wc-blog-card-excerpt {
    font-size: 0.85rem;
    color: #64748B;
    line-height: 1.55;
    margin: 0;
}

/* ページネーション */
.wc-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.wc-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    color: #4A5568;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.wc-pagination .page-numbers.current {
    background: #2D6A4F;
    border-color: #2D6A4F;
    color: #FFFFFF;
}

.wc-pagination .page-numbers:hover:not(.current) {
    background: #F0F7F4;
    border-color: #2D6A4F;
    color: #2D6A4F;
}

/* ==========================================================================
   9. 車椅子実例＆動画専用スタイル（case_study & gallery）
   ========================================================================== */
.wancare-case-single-page {
    padding-top: 104px;
    padding-bottom: 60px;
}
@media (max-width: 1080px) {
    .wancare-case-single-page {
        padding-top: 72px;
    }
}

.case-study-single-container {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}

.case-header h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1B4332;
    line-height: 1.4;
    margin: 16px 0 24px;
}

.case-video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 28px;
}

.case-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.dog-spec-card {
    background: #FFFFFF;
    border: 1px solid #D8EADB;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 4px 16px rgba(27, 67, 50, 0.05);
}

.dog-spec-card .card-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1B4332;
    border-bottom: 2px solid #2D6A4F;
    padding-bottom: 10px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dog-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.dog-spec-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F7FAF8;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #E3EBE6;
}

.dog-spec-row.full-width {
    grid-column: 1 / -1;
}

.spec-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #2D6A4F;
    background: #E8F5ED;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2D2926;
}

.highlight-quote {
    background: #FFF9ED;
    border-left: 4px solid #E0A96D;
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #5A4225;
}

.case-story-content {
    background: #FFFFFF;
    border: 1px solid #EFECE6;
    border-radius: 16px;
    padding: 32px 28px;
    font-size: 1.02rem;
    line-height: 1.85;
    margin-bottom: 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.gallery-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-thumbnail-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}

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

.card-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(224, 169, 109, 0.92);
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.card-body {
    padding: 14px 16px;
}

.card-title-main {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1B4332 !important;
    margin: 0 0 4px 0 !important;
}

.card-title-sub {
    font-size: 0.8rem;
    color: #64748B;
    margin: 0;
    line-height: 1.4;
}
