@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){
  /*必要ならばここにコードを書く*/
/* 2026-04-25 スマホ表示で対戦成績（.vtc）が改行されないように最適化 */
@media screen and (max-width: 480px) {
  .vtc {
    white-space: nowrap ; /* 改行させない */
    letter-spacing: -0.5px; /* ほんの少し文字間を詰めて、はみ出しを防止 */
    font-size: 0.95em; /* 念のため、文字サイズを微調整（必要に応じて） */
  }
}
}
/* 設定 */
.setting, .setting_g, .reference {
	color: #FFFFFF;
	font-size: 80%;
	padding: 2px 4px 1px;
	border-radius: 2px;
	text-align: center;
	margin-right: 8px;
	vertical-align: 1px;
}
/* 設定collar */
.setting_g{
	background-color: green;
}
.setting{
	background-color: #1e73be;
}
.reference {
	background-color: #ea5506;
}
/* カテゴリーラベルを非表示にする */
.cat-label {
    display: none !important;
}

/* PRラベル：場所を詳しく指定して詳細度を上げる（!important禁止） */
.widget .custom-pr-label,
.entry-content .custom-pr-label {
    display: block;
    text-align: right;
    margin-bottom: 5px;
    line-height: 1;
}

.widget .custom-pr-label span,
.entry-content .custom-pr-label span {
    display: inline-block;
    font-size: 11px;
    color: #773c30;
    background-color: #fcf8f7;
    border: 1px solid #d7a69c;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
}
/* article内のh2のうち、class="other" がついているものだけにロゴを表示 */
.article h2.other {
    position: relative;
    
    /* 上下 12px / 右 10px / 下 8px / 左 55px (ロゴの分だけ広げたで) */
    padding: 12px 10px 8px 55px; 
    
    /* 背景画像の設定 */
    background-image: url('https://tigers.martto.net/wp-content/uploads/2018/09/logos.jpg');
    background-repeat: no-repeat;
    background-size: auto 17px;
    
    /* ロゴの位置調整：左端から 15px / 上下中央(50%) */
    background-position: 15px 50%;
}

/* ロゴなしの通常のh2（otherがない場合）は、余白だけ整える */
.article h2:not(.other) {
    padding: 12px 10px 8px 10px; /* 左側の余白を普通に戻す */
    background-image: none;      /* ロゴを出さない */
}
/* Luxeritasから引き継いだ画像横並び設定 */
.column_img {
    display: flex;
    margin-bottom: 20px;
    align-items: center; /* 画像の高さが違う時に中央で揃うように追加しとくわ！ */
}

.img_margin {
    margin-right: 30px;
}

/* スマホで見た時に画像がはみ出んようにするお守り */
.column_img img {
    max-width: 100%;
    height: auto;
}
/* 対戦結果の行全体の設定 */
.vtc {
    display: flex;
    align-items: center;  /* 高さ中央揃え */
    justify-content: flex-start;
    gap: 15px;            /* スキマを少し広げたで！ */
}

/* 画像サイズを少し小さくして、相対的に文字を大きく見せる */
.vtc img {
    height: 60px;         /* 画像の高さを固定（好みに合わせて調整してな） */
    width: auto;
}

/* ★ここが重要！数字をドーンと大きくする */
.vtc .x3 {
    font-size: 2.0em ;
    line-height: 1;               /* 大きくした時に上下の余白を詰め込む */
	color: #333;
}
/* プロ仕様のクリーンな余白調整 */
.article h2 {
  margin: 2em 0 1em 0;
  padding: 6px 8px;
}
/* ============================================================
   2026-04-26 ポータルメニュー：PCは2列 / スマホは1列に強制
   ============================================================ */

/* --- 1. ショートコード（メニュー）版の設定 --- */
.top-portal-grid .navi-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 基本は2列 */
    gap: 15px !important;
    margin: 1.5em 0 !important;
}

.top-portal-grid .navi-list a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 30px 15px !important;
    text-decoration: none !important;
    background-color: #ffffff !important;
    border: 2px solid #d7a69c !important;
    border-radius: 10px !important;
    color: #773c30 !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
    transition: all 0.3s ease !important;
    min-height: 80px;
}

/* --- 2. 自作カード（バナー）版の設定 --- */
.portal-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.portal-item {
    flex: 1;
    min-width: 45%; /* PC・タブレットでは2列になろうとする */
    padding: 25px 12px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portal-item .p-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 8px;
}

.portal-item .p-desc {
    font-size: 0.8em;
    line-height: 1.5;
    opacity: 0.9;
}

/* 個別カラー（ここは共通） */
.p-marutto { border: 2px solid #d7a69c; background: #fdf5f4; color: #773c30 !important; }
.p-tigers  { border: 2px solid #e6b422; background: #fffbe6; color: #444 !important; }
.p-kurashi { border: 2px solid #b4d09b; background: #f6fcf8; color: #4b6138 !important; }
.p-karada  { border: 2px solid #adc9d1; background: #f4f8fc; color: #4a6670 !important; opacity: 0.8; }

/* ホバー演出 */
.top-portal-grid .navi-list a:hover,
.portal-item:hover {
    background-color: #fcece9 !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* ============================================================
   📱 スマホ専用：全ての要素を強制的に1列にする設定
   ============================================================ */
@media screen and (max-width: 480px) {
    /* メニュー版を1列に */
    .top-portal-grid .navi-list {
        grid-template-columns: 1fr !important;
    }

    /* カード版を1列に強制（ここが今回の肝！） */
    .portal-item {
        min-width: 100% !important; /* 横幅いっぱい */
        flex: 0 0 100% !important;   /* 横に並ぶのを禁止 */
    }
}