@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
*/

/* =========================================
   基本設定・サイト全体のシームレス化
========================================= */
body, .content {
    background-color: #ffffff !important;
}

.content {
    border: none !important;
    box-shadow: none !important;
}

.header-container {
    padding-top: 15px !important;
    padding-bottom: 5px !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* キャッチフレーズの画像置き換え */
.tagline {
    font-size: 0 !important;
    margin-bottom: -5px !important;
}
.tagline::before {
    content: "";
    display: block;
    width: 80px;
    height: 80px;
    background-image: url('http://www.fatboy.jp/wp-content/uploads/2026/03/Gemini_Generated_Image_54ndc454ndc454nd.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    margin: 0 auto;
}

/* 全体からカテゴリ・タグの概念を完全に消し去る */
.cat-label,
.tag-label,
.related-entry-card-cat-label,
.navi-entry-card-cat-label,
.widget-entry-card-cat-label,
.entry-categories-tags,
.entry-categories,
.entry-tags,
.post-meta .category,
.post-meta .tags {
    display: none !important;
}

/* =========================================
   乃木坂46風：専用ヘッダーとナビ
========================================= */
.nogizaka-top-wrapper {
    background-color: #ffffff; 
    width: 100%;
    padding-top: 30px;
    margin-bottom: 30px;
}

.custom-author-header {
    text-align: center;
    margin-bottom: 25px;
}

.custom-blog-logo {
    font-family: serif; 
    font-size: 32px;
    color: #9b30a1;
    letter-spacing: 5px;
    margin-bottom: 8px;
}

.custom-author-name {
    font-size: 14px;
    color: #666;
    letter-spacing: 1px;
}

.custom-top-nav {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
}

.custom-top-nav .nav-inner {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 5%;
    font-size: 13px;
}

.custom-top-nav a {
    color: #9b30a1;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.custom-top-nav a:hover {
    opacity: 0.7;
}

.pager-post-navi {
    display: none !important;
}

/* =========================================
   乃木坂46風：記事一覧リスト（4列Grid）
========================================= */
.list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

.list::before,
.list::after {
    display: none !important;
}

.list .a-wrap,
.list.ect-vertical-card .a-wrap {
    width: 100% !important;
    margin: 0 !important;   
    clear: none !important; 
    background-color: #fff;
    border: 1px solid #eee !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    height: 100%;
    position: relative !important; 
}

/* スマホ：強制2列表示（768px以下） */
@media screen and (max-width: 768px) {
    .list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .article h1.entry-title {
        font-size: 18px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }
}

/* サムネイル画像（斜めカット・鮮明化） */
.list .e-card-thumb {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%) !important;
    margin-top: 50px !important;
    padding-left: 0 !important;
}

.list .e-card-thumb img,
.list .post-author img {
    image-rendering: high-quality !important;
    image-rendering: -webkit-optimize-contrast !important;
}

.list .e-card-thumb img {
    border-radius: 0 !important;
}

/* 投稿者情報（左上配置） */
.list .post-author {
    position: absolute !important;
    top: 9px !important;
    left: 0 !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    z-index: 10 !important;
}

.list .post-author img {
    width: 32px !important; 
    height: 32px !important;
    border-radius: 50% !important; 
    margin-right: 12px !important; 
    object-fit: cover !important;
}

.list .post-author .author-fn {
    font-size: 13px !important;
    color: #555 !important;
    font-weight: bold !important;
}

/* テキストコンテンツエリア */
.e-card-content {
    padding: 5px 15px 15px 15px !important;
    margin-top: -15px !important; 
}

.entry-card-title {
    font-size: 14px !important;
    line-height: 1.5;
    margin-bottom: 15px !important;
}

.list .post-date {
    margin-left: auto !important;
}

.admin-pv {
    display: none !important; 
}

/* 記事一覧の投稿者名スタイル（強力版） */
.entry-card .author-info,
.entry-card .post-author,
.widget-entry-cards .author-info {
    display: inline-block !important;
    padding-top: 10px !important;    
    padding-bottom: 15px !important; 
    margin: 0 !important;
    line-height: 1 !important;       
}

.entry-card .author-info,
.entry-card .author-info a,
.entry-card .post-author,
.entry-card .post-author a,
.widget-entry-cards .author-info a,
.author-name {
    font-weight: bold !important;
    color: #333333 !important;
    font-size: 14px !important;
}

/* =========================================
   個別記事ページのデザイン
========================================= */
.article-header {
    background-color: #f7f7f7 !important;
    padding: 40px 30px !important;
    margin: 0 0 40px 0 !important;
    text-align: left;
}

.article-header .entry-title {
    font-size: 24px !important;
    color: #01609A !important; 
    font-weight: normal !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.article-header .post-date {
    color: #888 !important;
    font-size: 13px !important;
}

/* 乃木坂風シェアボタン */
.article-header .date-tags {
    display: flex;
    align-items: center;
    position: relative;
}

.custom-share-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.custom-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    color: #888888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    z-index: 2;
    padding: 0;
}

.custom-share-btn:hover {
    background: #f5f5f5;
}

.custom-share-links {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 0 15px;
    height: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: absolute;
    right: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    white-space: nowrap;
}

.custom-share-wrap.is-open .custom-share-links {
    opacity: 1;
    visibility: visible;
    transform: translateX(-35px);
}

.custom-share-links a {
    color: #005b9f !important;
    font-size: 15px;
    margin: 0 12px;
    text-decoration: none !important;
    transition: 0.2s;
    font-weight: bold;
}

.custom-share-links a:hover {
    opacity: 0.6;
}

/* ページネーション */
.pagination-next-link {
    display: none !important;
}

.pagination {
    border: none !important;
    background: transparent !important;
    margin-top: 40px !important;
}

.pagination .page-numbers {
    border: none !important;
    background-color: transparent !important;
    color: #005b9f !important; 
    font-size: 16px !important;
    padding: 5px 12px !important;
    margin: 0 4px !important;
    border-radius: 0 !important;
}

.pagination .current {
    border-bottom: 2px solid #005b9f !important;
    font-weight: bold !important;
}

.pagination a.page-numbers:hover {
    background-color: transparent !important;
    opacity: 0.5 !important;
}

/* =========================================
   サイドバーのデザイン
========================================= */
body.home #sidebar {
    display: none !important;
}

body.home #main {
    width: 100% !important;
}

.sidebar .widget-title {
    background: none !important;
    color: #01609A !important;
    text-align: center !important;
    font-family: sans-serif;
    font-size: 18px !important;
    letter-spacing: 3px;
    padding: 12px 0 !important;
    border-top: 2px solid #01609A !important;
    border-bottom: 2px solid #01609A !important;
    margin-bottom: 0 !important;
}
/* プロフィールボックス */
.widget_author_box,
.author-box,
.sidebar .widget_author_box,
.sidebar .author-box {
    background-color: #005b9f !important;
    text-align: center;
    border: 3px double #ffffff !important; /* ← 白い枠線を完全に無くす */
    margin-bottom: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 30px 10px 5px 10px !important;
}
/* プロフィール画像と不要アイコンの非表示 */
.sidebar .author-thumb,
.sidebar .widget_author_box img,
.sidebar .widget_author_box .avatar,
.widget_author_box .author-follows,
.author-info img,
.author-info .avatar,
.author-info .author-thumb,
.post-meta .avatar,
.post-meta .author-thumb,
.entry-card-meta .avatar,
.entry-card-meta .author-thumb {
    display: none !important;
}

.sidebar .author-content {
    margin: 0 !important; 
    padding: 0 !important;
    width: 100% !important;
}

.widget_author_box .author-name,
.sidebar .author-name {
    color: #ffffff !important;
    font-size: 22px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.widget_author_box .author-link {
    display: inline-block !important;
    background-color: #ffffff !important;
    color: #01609A !important;
    padding: 10px 40px !important;
    margin-top: 15px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    width: 80% !important;
}

/* 選手プロフィール説明文（エラー修正済） */
.widget_author_box .author-description {
    display: block !important;
    color: #ffffff !important;
    font-size: 13px !important;
    text-align: left !important;
    line-height: 1.8 !important;
    margin-top: 15px !important;
    padding: 12px 15px !important;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px !important;
    width: 100% !important;
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* 新着記事リスト */
.sidebar .widget-entry-cards {
    border: 1px solid #e5e5e5;
    border-top: none;
    padding: 0 !important;
    background-color: #fff;
}

ul.widget-entry-cards {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

ul.widget-entry-cards li {
    list-style: none !important;
}

ul.widget-entry-cards .widget-entry-card-link,
.sidebar .widget-entry-cards .a-wrap {
    display: flex !important;
    align-items: center !important;
    padding: 15px 10px !important;
    border-bottom: 1px solid #e5e5e5 !important;
    margin: 0 !important;
}

ul.widget-entry-cards li:last-child .widget-entry-card-link,
.sidebar .widget-entry-cards .a-wrap:last-child {
    border-bottom: none !important;
}

ul.widget-entry-cards .widget-entry-card-thumb,
.sidebar .widget-entry-cards .card-thumb {
    width: 70px !important;
    height: 70px !important;
    margin: 0 15px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

ul.widget-entry-cards .widget-entry-card-thumb img,
.sidebar .widget-entry-cards .card-thumb img {
    border-radius: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

ul.widget-entry-cards .widget-entry-card-content,
.sidebar .widget-entry-cards .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important;
    width: auto !important;
}

ul.widget-entry-cards .widget-entry-card-title,
.sidebar .widget-entry-cards .item-title {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #333 !important;
    font-weight: normal !important;
    margin-bottom: 5px !important;
}

.sidebar .widget-entry-cards .item-date {
    font-size: 11px !important;
    color: #999 !important;
}
/* =========================================
   【超強力版】アーカイブ・著者ページの強制横並びリスト
========================================= */

/* ① トップページ用だったGrid（4列）を解除 */
body:not(.home) #main .list {
    display: block !important;
}

/* ② 1記事ぶんの全体枠（a-wrap）の設定 */
body:not(.home) #main .list .a-wrap {
    display: block !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px dashed #cccccc !important;
    padding: 30px 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body:not(.home) #main .list .a-wrap:last-child {
    border-bottom: none !important;
}

/* ③ ★ココが最重要！内側の「article（.e-card）」をFlexboxで横並びにする */
body:not(.home) #main .list .e-card,
body:not(.home) #main .list .entry-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 絶対に改行・段落ちさせない */
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* --- サムネイル画像（左側） --- */
body:not(.home) #main .list .e-card-thumb {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 100px !important;
    margin: 0 25px 0 0 !important; /* 右側に25pxの隙間 */
    padding: 0 !important;
    flex: 0 0 auto !important; /* 縮小を禁止 */
    clip-path: none !important; /* トップページの斜めカットを無効化 */
    display: block !important;
}

body:not(.home) #main .list .e-card-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

/* --- テキストエリア（右側） --- */
body:not(.home) #main .list .e-card-content {
    padding: 0 !important;
    margin: 0 !important; /* トップページ用のマイナスマージンなどを解除 */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    flex: 1 1 auto !important; /* 余った右側の幅をすべて使う */
    width: auto !important;
}

/* --- タイトル --- */
body:not(.home) #main .list .entry-card-title {
    font-size: 18px !important;
    font-weight: bold !important;
    font-family: sans-serif !important;
    color: #333333 !important;
    line-height: 1.5 !important;
    margin: 0 0 12px 0 !important; 
    padding: 0 !important;
    display: block !important;
}

/* --- 日付（タイトルの下） --- */
body:not(.home) #main .list .e-card-info,
body:not(.home) #main .list .post-date {
    display: block !important;
    font-size: 12px !important;
    color: #888888 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* --- サムネイルの上に被さっている名前（投稿者名）を消す --- */
body:not(.home) #main .list .post-author,
body:not(.home) #main .list .cat-label {
    display: none !important;
}
/* =========================================
   メンバー選択ドロップダウンメニュー
========================================= */
.member-selector-container {
    position: relative !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto 40px auto !important;
    z-index: 9999 !important; 
}

.member-selector-btn {
    width: 100%;
    padding: 15px 20px;
    background-color: #fff;
    border: 1px solid #01609A;
    color: #005b9f;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    position: relative;
    display: block;
    box-sizing: border-box;
}

.member-selector-btn::after {
    content: '';
    position: absolute;
    right: 8px;
    bottom: 8px;
    border-width: 0 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent #005b9f transparent;
}

.member-selector-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #01609A;
    border-top: none;
    max-height: 270px;
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 9999 !important;
}

.member-selector-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.member-selector-dropdown li {
    border-bottom: 1px dotted #ccc;
}

.member-selector-dropdown li:last-child {
    border-bottom: none;
}

.member-selector-dropdown a {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    color: #005b9f !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: 0.2s;
}

.member-selector-dropdown a:hover {
    background-color: #f0f8ff;
}

.member-selector-dropdown .member-name {
    font-size: 13px !important; 
}

.member-selector-dropdown .member-date {
    color: #888;
    font-weight: normal;
    font-size: 13px;
}

.widget, 
.widget_custom_html, 
.widget_text {
    overflow: visible !important;
}
/* =========================================
   サイトロゴのサイズ調整（復活）
========================================= */
.site-name-text img,
.logo-header img {
    max-height: 60px !important; /* ←ここでロゴの高さを調整できます */
    width: auto !important;
    margin: 0 auto !important;
}
/* --- 記事内のアイキャッチ画像を非表示にする --- */
.article .eye-catch {
    display: none !important;
}
/* =========================================
   記事タイトルと本文のフォント調整
========================================= */

/* --- ① 記事タイトル（PC表示） --- */
.article-header .entry-title {
    font-size: 24px !important; /* ★文字サイズ */
    font-weight: bold !important; /* ★太さ */
    color: #333333 !important; /* ★文字の色（ここに好きなカラーコードを入れる） */
}

/* --- ② 記事タイトル（スマホ表示） --- */
@media screen and (max-width: 768px) {
    .article h1.entry-title {
        font-size: 20px !important; /* ★スマホで見たときの文字サイズ */
        color: #333333 !important; /* ★スマホ表示時の文字の色（PCと同じ色でOK） */
    }
}

/* --- ③ 記事の本文（PC・スマホ共通） --- */
.entry-content {
    font-size: 16px !important; /* ★本文の文字サイズ（16px〜18pxが読みやすいです） */
    line-height: 1.8 !important; /* ★行間（1.6〜2.0あたりにするとスッキリします） */
    color: #333333 !important; /* ★文字の色（真っ黒#000より少しグレーにすると上品になります） */
}

/* --- Twitter(X)埋め込みのサイズ調整 --- */
.twitter-tweet,
.wp-block-embed-twitter {
    max-width: 250px !important; /* ここでサイズを指定（デフォルトは約550px） */

}

/* プロ野球スコアボード用CSS（スマホ画面フィット版） */
.scoreboard-wrapper {
  width: 100%;
  margin: 20px 0;
}

.baseball-score-table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  color: #333;
  table-layout: fixed; /* 列の幅を画面に合わせて均等に圧縮する設定 */
}

/* マス目の線と余白の設定 */
.baseball-score-table th,
.baseball-score-table td {
  border: 1px solid #333;
  padding: 4px 1px; /* 左右の余白を極限限まで削る */
  text-align: center;
  vertical-align: middle;
  font-size: 14px; /* PCなど画面が大きい時の基本サイズ */
}

/* イニング（一番上）の行の背景色 */
.baseball-score-table thead th {
  background-color: #dce3f5;
}

/* チーム名の列の設定 */
.baseball-score-table .team-name {
  text-align: center;
  white-space: nowrap; /* チーム名が途中で改行されないようにする */
  width: 22%; /* チーム名のスペースを確保 */
}

/* 合計得点(R)を太字にして目立たせる */
.baseball-score-table .run-total {
  font-weight: bold;
}

/* --- スマホ(画面幅600px以下)向けの特別設定 --- */
@media (max-width: 600px) {
  .baseball-score-table th,
  .baseball-score-table td {
    padding: 2px 0px; /* スマホでは余白をほぼ無くす */
    font-size: 11px;  /* 文字サイズを小さくして1行に収める */
  }
  
  .baseball-score-table .team-name {
    font-size: 10px; /* チーム名も少し小さく */
    width: 24%;
    letter-spacing: -1px; /* 文字の間隔を少し詰めて収まりを良くする */
  }
}
/* 青枠ボタンのフォントを下に揃える魔法のコード */
.data-link-button, 
.member-selector-btn {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif !important;
    font-weight: 700 !important; /* 太さも揃える */
}
/* dataページ（特定の固定ページ）のタイトルエリアだけを非表示にする */
.page-id-833 .article-header {
  display: none !important;
}