/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* ==============================================
   症状別一覧ページ CSS（横スクロール視認性強化版）
   ============================================== */

.symptom-page-wrapper {
    background-color: #fcfcfc;
}

/* --- 1. 追従する検索ヘッダー --- */
.sticky-search-header {
    position: sticky;
    top: 0; 
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.mobile-search-form .input-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 6px 15px;
    border: 1px solid #e0e0e0;
}
.mobile-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 16px; 
    outline: none;
}
.mobile-search-form button {
    background: transparent;
    border: none;
    color: #8d7f72;
    font-size: 18px;
}

/* --- 2. 横スクロールナビゲーション（視認性強化） --- */
.nav-section {
    margin-bottom: 25px;
    position: relative; /* グラデーション配置用 */
}

/* 見出しと「スクロール」ヒントの配置 */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
}
.nav-label {
    font-size: 15px;
    font-weight: bold;
    color: #444;
    margin: 0;
}
.nav-label i { color: #8d7f72; margin-right: 5px; }

/* スクロール指示のアニメーション */
.scroll-hint {
    font-size: 11px;
    color: #999;
    animation: bounceRight 2s infinite;
}
@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* スクロールコンテナ本体 */
.scroll-nav-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0 15px 0; /* 下に少し余白（影用） */
    
    /* 重要：右端を少し見切れさせる設定 */
    padding-right: 20%; 
    
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scroll-nav-container::-webkit-scrollbar {
    display: none;
}
/* 右端のフェード効果（続きがある感を演出） */
.nav-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 30px; /* 見出しの下から */
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* クリックを邪魔しない */
}
/* 最後に見えないスペーサーを入れて、最後のボタンがフェードに被らないようにする */
.spacer-end {
    min-width: 20px;
    flex-shrink: 0;
}

/* カテゴリーボタン（チップ） */
.chip-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    flex-shrink: 0; /* 縮ませない */
}
.chip-btn.is-active {
    background: #8d7f72;
    color: #fff;
    border-color: #8d7f72;
    box-shadow: 0 4px 10px rgba(141, 127, 114, 0.4);
    transform: translateY(-2px);
}

/* --- 3. 人気のキーワード（タグ）エリア --- */
.popular-tags-area {
    margin: 30px 0;
    background: #f0ece9; /* 薄いベージュ背景でエリアを区別 */
    padding: 20px;
    border-radius: 12px;
}
.tags-label {
    font-size: 14px;
    font-weight: bold;
    color: #6d6158;
    margin-bottom: 15px;
}
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-chip {
    font-size: 12px;
    color: #666;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}
.tag-chip:before {
    content: "#";
    color: #8d7f72;
    margin-right: 2px;
}
.tag-chip.is-active {
    background: #8d7f72;
    color: #fff;
    border-color: #8d7f72;
}
.tag-chip.is-active:before { color: #fff; }

/* リセットリンク */
.reset-area { text-align: center; margin-bottom: 40px; }
.reset-link { font-size: 12px; color: #999; border-bottom: 1px solid #ccc; padding-bottom: 2px; }

/* --- 4. 記事リスト（ワイドカード） --- */
.symptom-list-area {
    min-height: 400px;
}
.result-heading {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #8d7f72;
    line-height: 1.4;
}
.result-heading span { color: #8d7f72; font-weight: bold; }

.app-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s;
}
.app-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: stretch; /* 高さを揃える */
}
.app-card-img {
    width: 35%; /* スマホでの画像比率 */
    max-width: 140px;
    flex-shrink: 0;
    position: relative;
}
.app-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.app-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.app-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    color: #aaa;
}
.cat-badge {
    color: #fff;
    background: #cbbcb1; /* 優しいブラウン */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.app-card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #333;
}
.app-card-excerpt {
    font-size: 12px;
    color: #777;
    margin-top: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2行でカット */
    overflow: hidden;
}

/* PC調整 */
@media (min-width: 768px) {
    .scroll-nav-container { padding-right: 0; flex-wrap: wrap; overflow: visible; }
    .nav-section::after { display: none; } /* PCではフェード不要 */
    .chip-btn { margin-bottom: 10px; }
    .scroll-hint { display: none; } /* PCではヒント不要 */
    .app-card-img { width: 200px; }
    .app-card-title { font-size: 18px; }
    .app-card-excerpt { font-size: 14px; }
}


/* --- 念のための追加：ボタンが隠れるのを防ぐ --- */
.entry-body {
    overflow: visible !important; /* 子要素が隠れないようにする */
}

/* もしVKブロックのボタンが消えている場合、透明になっていないか確認 */
.vk_button, .wp-block-button {
    visibility: visible !important;
    display: inline-block !important;
}


/* style.css の末尾に追加を推奨 */

/* 編集画面のコンテンツ領域で、内容が隠れないようにする */
.entry-body {
    overflow: visible !important;
}

/* 続きを読むボタンが透明や非表示にならないための強制設定 */
.wp-block-button, .vk_button, a[href*="more"] {
    display: inline-block !important;
    visibility: visible !important;
}


/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* ==============================================
   症状別一覧ページ CSS（横スクロール視認性強化版）
   ============================================== */

.symptom-page-wrapper {
    background-color: #fcfcfc;
}

/* --- 1. 追従する検索ヘッダー --- */
.sticky-search-header {
    position: sticky;
    top: 0; 
    z-index: 999;
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.mobile-search-form .input-group {
    display: flex;
    background: #f5f5f5;
    border-radius: 30px;
    padding: 6px 15px;
    border: 1px solid #e0e0e0;
}
.mobile-search-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-size: 16px; 
    outline: none;
}
.mobile-search-form button {
    background: transparent;
    border: none;
    color: #8d7f72;
    font-size: 18px;
}

/* --- 2. 横スクロールナビゲーション（視認性強化） --- */
.nav-section {
    margin-bottom: 25px;
    position: relative; /* グラデーション配置用 */
}

/* 見出しと「スクロール」ヒントの配置 */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px;
}
.nav-label {
    font-size: 15px;
    font-weight: bold;
    color: #444;
    margin: 0;
}
.nav-label i { color: #8d7f72; margin-right: 5px; }

/* スクロール指示のアニメーション */
.scroll-hint {
    font-size: 11px;
    color: #999;
    animation: bounceRight 2s infinite;
}
@keyframes bounceRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* スクロールコンテナ本体 */
.scroll-nav-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 0 15px 0; /* 下に少し余白（影用） */
    
    /* 重要：右端を少し見切れさせる設定 */
    padding-right: 20%; 
    
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.scroll-nav-container::-webkit-scrollbar {
    display: none;
}
/* 右端のフェード効果（続きがある感を演出） */
.nav-section::after {
    content: "";
    position: absolute;
    right: 0;
    top: 30px; /* 見出しの下から */
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* クリックを邪魔しない */
}
/* 最後に見えないスペーサーを入れて、最後のボタンがフェードに被らないようにする */
.spacer-end {
    min-width: 20px;
    flex-shrink: 0;
}

/* カテゴリーボタン（チップ） */
.chip-btn {
    display: inline-block;
    white-space: nowrap;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    flex-shrink: 0; /* 縮ませない */
}
.chip-btn.is-active {
    background: #8d7f72;
    color: #fff;
    border-color: #8d7f72;
    box-shadow: 0 4px 10px rgba(141, 127, 114, 0.4);
    transform: translateY(-2px);
}

/* --- 3. 人気のキーワード（タグ）エリア --- */
.popular-tags-area {
    margin: 30px 0;
    background: #f0ece9; /* 薄いベージュ背景でエリアを区別 */
    padding: 20px;
    border-radius: 12px;
}
.tags-label {
    font-size: 14px;
    font-weight: bold;
    color: #6d6158;
    margin-bottom: 15px;
}
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-chip {
    font-size: 12px;
    color: #666;
    background: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #e0e0e0;
}
.tag-chip:before {
    content: "#";
    color: #8d7f72;
    margin-right: 2px;
}
.tag-chip.is-active {
    background: #8d7f72;
    color: #fff;
    border-color: #8d7f72;
}
.tag-chip.is-active:before { color: #fff; }

/* リセットリンク */
.reset-area { text-align: center; margin-bottom: 40px; }
.reset-link { font-size: 12px; color: #999; border-bottom: 1px solid #ccc; padding-bottom: 2px; }

/* --- 4. 記事リスト（ワイドカード） --- */
.symptom-list-area {
    min-height: 400px;
}
.result-heading {
    font-size: 18px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid #8d7f72;
    line-height: 1.4;
}
.result-heading span { color: #8d7f72; font-weight: bold; }

.app-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s;
}
.app-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    align-items: stretch; /* 高さを揃える */
}
.app-card-img {
    width: 35%; /* スマホでの画像比率 */
    max-width: 140px;
    flex-shrink: 0;
    position: relative;
}
.app-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}
.app-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
}
.app-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    color: #aaa;
}
.cat-badge {
    color: #fff;
    background: #cbbcb1; /* 優しいブラウン */
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}
.app-card-title {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #333;
}
.app-card-excerpt {
    font-size: 12px;
    color: #777;
    margin-top: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 2行でカット */
    overflow: hidden;
}

/* PC調整 */
@media (min-width: 768px) {
    .scroll-nav-container { padding-right: 0; flex-wrap: wrap; overflow: visible; }
    .nav-section::after { display: none; } /* PCではフェード不要 */
    .chip-btn { margin-bottom: 10px; }
    .scroll-hint { display: none; } /* PCではヒント不要 */
    .app-card-img { width: 200px; }
    .app-card-title { font-size: 18px; }
    .app-card-excerpt { font-size: 14px; }
}

/* ==============================================
   追加：ボタン表示の不具合対策
   ============================================== */

/* コンテンツエリアの表示制限解除 */
.entry-body {
    overflow: visible !important;
}

/* VK Blocks等のボタンを強制表示 */
.vk_button, 
.wp-block-button, 
.wp-block-button__link,
a.btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* コンテナが意図せず高さを制限するのを防ぐ */
.col-md-12 {
    overflow: visible !important;
}