@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){
  /*必要ならばここにコードを書く*/
}


/* ===== ウイスキーページ：サイドバー非表示・フルワイド ===== */

/* ウイスキー単体ページとアーカイブページのサイドバーを非表示 */
.single-whisky #sidebar,
.single-whisky .sidebar,
.single-whisky #sidebar-menu,
.post-type-archive-whisky #sidebar,
.post-type-archive-whisky .sidebar,
.post-type-archive-whisky #sidebar-menu {
    display: none !important;
}

/* メインコンテンツをフルワイドに */
.single-whisky #main,
.single-whisky .main,
.single-whisky #content,
.single-whisky .content,
.post-type-archive-whisky #main,
.post-type-archive-whisky .main,
.post-type-archive-whisky #content,
.post-type-archive-whisky .content {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Cocoon コンテナのグリッドを無効化 */
.single-whisky #container,
.post-type-archive-whisky #container {
    display: block !important;
}

/* Cocoon entry-content のパディング調整 */
.single-whisky .entry-content,
.post-type-archive-whisky .entry-content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Cocoon のサイドバーラッパーも非表示 */
.single-whisky .sidebar-container,
.single-whisky .site-sidebar,
.post-type-archive-whisky .sidebar-container,
.post-type-archive-whisky .site-sidebar {
    display: none !important;
}

/* ウイスキーページのタイトル（h1）を非表示：wb-titleが代わりに表示するため */
.single-whisky .article-header .entry-title,
.single-whisky .article-header .article-header-wrapper > *:not(.sns-share),
.single-whisky .article-header .date-tags {
    display: none !important;
}
/* タイトルはwb-titleで表示するため非表示 */
.single-whisky h1.entry-title {
    display: none !important;
}

/* ウイスキーアーカイブページのCocoon記事タイトルを非表示 */
.post-type-archive-whisky .archive-title-area {
    display: none !important;
}


/* Cocoon実クラス名で完全非表示 */
.single-whisky .sidebar.nwa,
.post-type-archive-whisky .sidebar.nwa {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cocoon ラッパーをブロック表示に */
.single-whisky #container .wrap,
.post-type-archive-whisky #container .wrap {
    display: block !important;
}

.single-whisky #main,
.post-type-archive-whisky #main {
    width: 100% !important;
    max-width: 1200px !important;
    float: none !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}


/* ウイスキーページの関連記事を非表示 */
.single-whisky .related-entries,
.single-whisky .related-entry-heading,
.post-type-archive-whisky .related-entries {
    display: none !important;
}


/* シェアボタン：小さい正方形アイコンに・はてブ非表示 */

/* はてブを非表示 */
.hatebu-button,
.hatena-bookmark-button {
    display: none !important;
}

/* シェアボタンを小さい正方形に */
.sns-button.share-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;        /* テキストラベルを非表示 */
    line-height: 1 !important;
}

/* アイコンのサイズ調整 */
.sns-button.share-button .social-icon,
.sns-button.share-button i,
.sns-button.share-button svg {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
}

/* シェアボタンのラッパー */
.share-buttons-wrapper .share-buttons,
.sns-share .share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}

/* シェア数バッジも小さく */
.share-count {
    font-size: 10px !important;
    padding: 1px 4px !important;
}


/* はてブ：高特異性セレクターで確実に非表示 */
.sns-share .sns-share-buttons a.hatebu-button,
.sns-share-buttons a.hatebu-button,
a.hatebu-button.sns-button,
a.sns-button.hatebu-button {
    display: none !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* シェアボタン：正方形・小サイズ（テキスト非表示） */
.sns-share-buttons a.sns-button {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}
.sns-share-buttons a.sns-button .share-label {
    display: none !important;
}
.sns-share-buttons a.sns-button .social-icon {
    font-size: 18px !important;
    margin: 0 !important;
}
.sns-share-buttons {
    gap: 6px !important;
}


/* ===== ウイスキーページ：上部の重複要素・不要要素を非表示 ===== */

/* アイキャッチ画像（上部重複）を非表示 - wb-wrapで表示するため */
.single-whisky .article-header .eye-catch-wrap,
.single-whisky .eye-catch {
    display: none !important;
}

/* 上部シェアボタン（article-header内）を非表示 - 下部のみ表示 */
.single-whisky .article-header .sns-share {
    display: none !important;
}

/* タイトル・日付も非表示（wb-titleで代替） */
.single-whisky .article-header .entry-title,
.single-whisky .article-header .date-tags {
    display: none !important;
}

/* 前後の記事ナビゲーション（前のページへリンク）を非表示 */
.single-whisky .navi,
.single-whisky .navi-in,
.single-whisky .post-navi,
.single-whisky .pnavi {
    display: none !important;
}

/* Masterをフォローする を非表示 */
.single-whisky .sns-follow-message,
.single-whisky .author-box,
.single-whisky .author-content,
.single-whisky .sns-follow {
    display: none !important;
}


/* 前後記事ナビゲーション（NO IMAGE付き）を非表示 */
.single-whisky .pager-post-navi,
.single-whisky .post-navi-default,
.single-whisky .prev-post,
.single-whisky .next-post,
.single-whisky .navi-footer,
.single-whisky .navi-footer-in {
    display: none !important;
}
