@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/* =======================================================
   スマートニュース風 投票アンケート機能
======================================================= */
.smartnews-poll-container { 
    background-color: #1a1a1a; 
    color: #fff; 
    padding: 20px; 
    border-radius: 10px; 
    margin-bottom: 30px; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sn-header { margin-bottom: 20px; }

.sn-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    margin-bottom: 10px;
}
.sn-label { 
    font-size: 28px; 
    font-weight: bold; 
    line-height: 1.2; 
    margin: 0;
}
.sn-total-votes {
    font-size: 14px;
    color: #ccc; 
    font-weight: bold;
    margin-bottom: 2px;
}

.sn-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #fff !important; 
    background: transparent !important; 
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}
.sn-title::before, .sn-title::after { display: none !important; }

.sn-poll-option { 
    position: relative; 
    background-color: #333; 
    margin-bottom: 15px; 
    border-radius: 8px; 
    overflow: hidden; 
    height: 50px; 
    display: flex; 
    align-items: center; 
    cursor: pointer; 
    transition: all 0.3s;
}
.sn-poll-option.voted-item { cursor: default; }
.sn-poll-option.selected { border: 2px solid #0099ff; box-sizing: border-box; }

.sn-poll-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    height: 100%; 
    background-color: #2c567a; 
    z-index: 1; 
    transition: width 0.5s ease; 
}
.sn-poll-option.selected .sn-poll-bar { background-color: #0066cc; }

.sn-poll-text { 
    position: relative; 
    z-index: 2; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 0 15px; 
    font-weight: bold; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.8); 
}
.sn-percent { display: block; }

.sn-vote-action { text-align: right; margin-top: 10px; }
#sn-vote-btn { 
    background-color: #0099ff; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 20px; 
    font-weight: bold; 
    opacity: 0.5; 
    cursor: not-allowed; 
    transition: 0.3s;
}
#sn-vote-btn.active { opacity: 1; cursor: pointer; }

#sn-comment-message { margin-top: 15px; font-size: 14px; color: #ccc; text-align: center; }

/* =======================================================
   スマートニュース風 コメントUI
======================================================= */
.sn-comment-input-area { display: flex; flex-direction: column; gap: 8px; margin-bottom: 5px; }

/* ★修正：iPhoneズーム防止のため、font-sizeを 16px !important; に変更 */
#sn-comment-input { 
    width: 100%; background-color: #2a2a2a; border: 1px solid #444; color: #fff; 
    padding: 12px 15px; border-radius: 22px; resize: none; height: 44px; 
    font-size: 16px !important; font-family: inherit; box-sizing: border-box; 
    line-height: 1.4; overflow-y: auto; transition: 0.3s; 
}
#sn-comment-input:focus { outline: none; border-color: #0099ff; }
#sn-comment-input:disabled { background-color: #1a1a1a; cursor: not-allowed; opacity: 0.7; }

.sn-comment-submit-wrap { display: flex; justify-content: flex-end; align-items: center; gap: 15px; }
#sn-char-count { font-size: 12px; color: #888; }
#sn-comment-submit { background-color: #333; color: #888; border: none; padding: 8px 24px; border-radius: 20px; font-weight: bold; cursor: not-allowed; font-size: 14px; transition: 0.3s; }
#sn-comment-submit.active-btn { background-color: #0099ff; color: #fff; cursor: pointer; }
.sn-comment-rule { font-size: 12px; color: #888; margin-bottom: 20px; }

/* ソート機能のデザイン */
.sn-comment-sort-header { margin-top: 15px; margin-bottom: 15px; display: flex; justify-content: flex-start; }
.sn-sort-wrap {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #2a2a2a !important; 
    border: 1px solid #444 !important; 
    border-radius: 4px !important; 
    padding: 6px 12px !important; 
    position: relative !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.sn-sort-wrap svg { color: #aaa !important; }
#sn-sort-label {
    font-size: 14px !important;
    font-weight: bold !important;
    color: #e0e0e0 !important; 
    margin-left: 6px !important;
    pointer-events: none !important; 
}
#sn-comment-sort {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.01 !important; 
    cursor: pointer !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: none !important;
    z-index: 10 !important;
}
#sn-comment-sort option { background-color: #fff; color: #333; }

.sn-comment-item { padding: 15px 0; border-bottom: 1px solid #333 !important; }
.sn-comment-item.sn-my-comment { background-color: #1a2a3a !important; padding: 15px; border-radius: 8px; margin-bottom: 10px; border-bottom: none !important; }
.sn-comment-item.sn-my-comment .sn-comment-text { color: #ffffff !important; }

/* コメントテキスト本体 */
.sn-comment-text { font-size: 15px; color: #e0e0e0 !important; line-height: 1.5; margin-bottom: 10px; }

/* ★追加：コメント長文省略（もっと見る）用 */
.sn-comment-text-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-all;
}
.sn-read-more-btn {
    color: #0099ff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}

.sn-comment-footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #888; }
.sn-comment-actions { display: flex; align-items: center; gap: 15px; }
.sn-like-btn, .sn-menu-btn { display: flex; align-items: center; gap: 5px; cursor: pointer; transition: 0.2s; position: relative; }
.sn-like-btn svg, .sn-menu-btn svg { width: 18px; height: 18px; }

.sn-report-dropdown { display: none; position: absolute; bottom: 25px; right: 0; background-color: #333; color: #fff; padding: 10px 15px; border-radius: 8px; font-size: 13px; white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100; }
.sn-report-dropdown:hover { background-color: #444; }

#sn-load-more-comments { width: 100%; background-color: transparent; color: #0099ff; border: none; padding: 15px; font-weight: bold; cursor: pointer; margin-top: 10px; }
#sn-load-more-comments:hover { background-color: #f9f9f9; border-radius: 8px; }

/* =======================================================
   トップページ（固定ページ）の日付を非表示にする
======================================================= */
.home .date-tags,
.front-page .date-tags {
    display: none !important;
}

/* =======================================================
   スマートニュース風 固定ヘッダーバナー（画像最大化版）
======================================================= */
#sn-fixed-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important; 
    background-color: rgba(35, 35, 35, 0.85) !important; 
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #222 !important; 
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 10px !important; 
    box-sizing: border-box !important;
    z-index: 999999 !important; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}

.sn-header-left, .sn-header-right {
    height: 50px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #007aff !important; 
    cursor: pointer !important;
    transition: transform 0.1s ease, opacity 0.1s ease !important;
}
.sn-header-left:active, .sn-header-right:active {
    transform: scale(0.85) !important;
    opacity: 0.5 !important;
}

.sn-header-right {
    width: 50px !important;
}

.sn-header-center {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
}

.sn-header-center img {
    max-height: 56px !important; 
    width: auto !important;
    object-fit: contain !important;
}

/* =======================================================
   ネイティブアプリ化（UI改善設定）
======================================================= */
* {
    -webkit-tap-highlight-color: transparent !important;
}

a, button, .sn-poll-option, .sn-header-left, .sn-header-right, .sn-sort-wrap {
    -webkit-touch-callout: none !important; 
    user-select: none !important;           
}

body {
    padding-bottom: env(safe-area-inset-bottom) !important;
}

/* =======================================================
   サイト全体 ダークモード（黒・グレー・青）完全対応
======================================================= */
body, #header, #footer, .navi, .wrap, .content, .main, .sidebar {
    background-color: #000000 !important; 
    color: #e0e0e0 !important; 
    border-color: #333333 !important; 
}

a, .st-dir-link {
    color: #007aff !important;
    text-decoration: none !important;
}

.entry-card-wrap, .related-entry-card-wrap, .widget-entry-card, .widget, .box-menu {
    background-color: #1e1e1e !important;
    border-radius: 12px !important; 
    border: none !important;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
}

/* =======================================================
   記事一覧・カード内の文字を「完全な白」に上書きする最終決定版
======================================================= */
.entry-card-title,
.entry-card-title a,
.new-entry-card-title,
.new-entry-card-title a,
.popular-entry-card-title,
.popular-entry-card-title a,
.related-entry-card-title,
.related-entry-card-title a,
.widget-entry-card-title,
.widget-entry-card-title a,
.list-title,
.list-title a,
.post-list-title,
.post-list-title a {
    color: #ffffff !important; 
    text-decoration: none !important;
}

.entry-card-snippet,
.new-entry-card-snippet,
.popular-entry-card-snippet,
.widget-entry-card-snippet,
.related-entry-card-snippet,
.post-date,
.post-update,
.entry-date {
    color: #cccccc !important;
}

a.a-wrap,
a.a-wrap:hover {
    color: inherit !important;
}

input[type="text"], input[type="search"], input[type="password"], input[type="email"], textarea, select {
    background-color: #2a2a2a !important; 
    color: #ffffff !important;
    border: 1px solid #444 !important;
    border-radius: 8px !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #007aff !important;
    outline: none !important;
}

.article h2, .article h3, .article h4 {
    background-color: transparent !important;
    color: #ffffff !important;
    border-bottom: 1px solid #333 !important;
}

/* =======================================================
   【追加】固定ページの「新着情報（テキストリスト）」専用の白化コード
======================================================= */
.entry-content .new-entry-cards a,
.entry-content .widget-entry-cards a,
.entry-content .wp-block-latest-posts a,
.entry-content .text-list-box a,
.entry-content .blank-box a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.entry-content .new-entry-cards .post-date,
.entry-content .new-entry-cards .entry-date,
.entry-content .new-entry-cards .display-date,
.entry-content .wp-block-latest-posts time {
    color: #cccccc !important;
}

/* =======================================================
   【追加】記事リスト・カードの影（白い発光）を完全に削除
======================================================= */
.entry-card-wrap,
.widget-entry-card,
.related-entry-card-wrap,
.new-entry-card,
.popular-entry-card,
.wp-block-cocoon-blocks-new-list .new-list-item,
.wp-block-cocoon-blocks-popular-list .popular-list-item {
    box-shadow: none !important;
}

/* =======================================================
   【追加】引っ張って更新（プルリフレッシュ）部分の動作安定化
======================================================= */
/* 1. 引っ張った時に見える背景を黒にする */
html, body {
    background-color: #000000 !important;
    /* 引っ張り操作をブラウザのデフォルト挙動（バウンス）と競合させない */
    overscroll-behavior-y: contain; 
}

/* 2. 読み込み中メッセージのデザイン調整 */
.ptr--ptr {
    box-shadow: none !important;
    z-index: 1000000 !important;
}

.ptr--text, .ptr--icon {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* PWA表示時にスクロールが詰まる現象を防止 */
#sn-fixed-header {
    pointer-events: none; /* もし残骸が残っていても操作を邪魔しない */
    display: none !important;
}










/* =======================================================
   サポートページ（ID: 153）専用のスタイル調整
======================================================= */

/* 1. 左上の「←」戻るボタン（Cocoon標準のページトップ等）とパンくずリストを非表示にする */
.page-id-153 .go-to-top,
.page-id-153 .breadcrumb { 
    display: none !important; 
}

/* 2. 右上の「利用規約」ボタンの設置エリアの調整 */
/* サポートページの本文エリアを基準にしてボタンを配置できるようにする */
.page-id-153 .entry-content {
    position: relative;
    padding-top: 40px; /* 利用規約ボタンが本文と被らないように上部にスペースを確保 */
}

/* 利用規約ボタンのデザイン（控えめでアプリ風の見た目） */
.nbk-terms-link-btn {
    position: absolute;
    top: 0;
    right: 10px;
    background: #2a2a2a;
    color: #ccc !important;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none !important;
    border: 1px solid #444;
    z-index: 10;
    transition: background 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.nbk-terms-link-btn:active {
    transform: scale(0.95);
    background: #444;
}

/* 3. 「お問い合わせ（法人）」の後ろに隠れている謎のグラフィックを消す */
/* Cocoonの「白抜きボックス（blank-box）」や見出しブロックの装飾背景を完全にリセットする */
.page-id-153 .wp-block-cocoon-blocks-blank-box::before,
.page-id-153 .wp-block-cocoon-blocks-blank-box::after,
.page-id-153 .blank-box::before,
.page-id-153 .blank-box::after,
.page-id-153 .wp-block-heading::before,
.page-id-153 .wp-block-heading::after {
    display: none !important;
    background: none !important;
}




/* =======================================================
   お店情報リスト ライトテーマ（ダークテーマ強制上書き）
======================================================= */

/* ── フィルターエリア背景 ── */
.nbk-rest-filter-container {
    background: #faf9f7 !important;
    border-radius: 14px !important;
    padding: 16px 16px 8px !important;
}

/* ── セレクトボックスを白に ── */
/* select単体より詳細度を上げるため「select.クラス名」で記述 */
select.nbk-rest-filter-select {
    background-color: #ffffff !important;
    color: #2d2d2d !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232d2d2d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 18px !important;
}
select.nbk-rest-filter-select:focus {
    border-color: #c85d2f !important;
}
select.nbk-rest-filter-select option {
    background-color: #ffffff !important;
    color: #2d2d2d !important;
}

/* ── カード背景・文字色 ── */
a.nbk-rest-card {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0,0,0,0.08) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
a.nbk-rest-card:hover,
a.nbk-rest-card:visited {
    color: #1a1a1a !important;
}

/* ── 店名（h3）を黒文字に ── */
/* .article h3 (詳細度0,1,1) に勝つため .nbk-rest-card h3.nbk-rest-title (詳細度0,2,1) で記述 */
.nbk-rest-card h3.nbk-rest-title,
h3.nbk-rest-title {
    color: #1a1a1a !important;
    background: none !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 5px 0 !important;
}

/* ── いいね・ハートをテラコッタに ── */
.nbk-rest-like {
    color: #c85d2f !important;
}

/* ── タグをテラコッタ系に ── */
.nbk-rest-tag {
    background: rgba(200,93,47,0.10) !important;
    color: #8a3d1e !important;
}

/* ── サムネイルのCocoon装飾をリセット ── */
.nbk-rest-thumb {
    max-width: none !important;
    box-shadow: none !important;
    filter: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(0,0,0,0.07) !important;
}




/* マップフィルター Cocoon上書き */
select.nbk-map-filter-select {
    background-color: #ffffff !important;
    color: #2d2d2d !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07) !important;
}
select.nbk-map-filter-select option {
    background-color: #ffffff !important;
    color: #2d2d2d !important;
}