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

/* ====================================
   2026-04-26 全体の設定・ラベル
   ==================================== */

/* 2026-04-26 ラベルの基本設定 */
.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;
}
.setting_g { background-color: green; }
.setting { background-color: #1e73be; }
.reference { background-color: #ea5506; }

/* 2026-04-26 カテゴリーラベル非表示 */
.cat-label { display: none !important; }

/* 2026-04-26 PRラベル */
.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;
}

/* ====================================
   2026-04-26 記事装飾（H2見出し・対戦成績）
   ==================================== */

/* 2026-04-26 H2見出し：通常の余白設定 */
.article h2 {
    margin: 2em 0 1em 0;
    padding: 12px 10px 8px 10px;
}

/* 2026-04-26 ロゴ付きH2：詳細度を上げてロゴ表示を優先（必ず通常H2より下に記述） */
.article h2.other {
    position: relative;
    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;
    background-position: 15px 50%;
}

/* 2026-04-26 画像横並び（Luxeritas継承） */
.column_img {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}
.img_margin { margin-right: 30px; }
.column_img img { max-width: 100%; height: auto; }

/* 2026-04-26 対戦結果（.vtc） */
.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; }

/* ====================================
   2026-04-26 ポータルメニュー（PC:2列 / スマホ:1列）
   ==================================== */

/* 2026-04-26 PC・タブレット：2列に並べる（詳細度を少し高めて確実にする） */
div.entry-content .portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

/* 2026-04-26 各箱の設定：中身に関わらず高さを揃える */
div.entry-content .portal-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px 12px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    box-sizing: border-box;
}

/* 2026-04-26 テキストと説明文の設定 */
.portal-item .p-title { font-size: 1.25em; font-weight: bold; margin-bottom: 8px; display: block; }
.portal-item .p-desc { font-size: 0.8em; line-height: 1.5; opacity: 0.9; display: block; }

/* 2026-04-26 個別カラー */
div.entry-content .p-marutto { border: 2px solid #d7a69c; background: #fdf5f4; color: #773c30; }
div.entry-content .p-tigers  { border: 2px solid #e6b422; background: #fffbe6; color: #444; }
div.entry-content .p-kurashi { border: 2px solid #b4d09b; background: #f6fcf8; color: #4b6138; }
div.entry-content .p-karada  { border: 2px solid #adc9d1; background: #f4f8fc; color: #4a6670; opacity: 0.8; }

/* 2026-04-26 ホバー時のアクション */
div.entry-content .portal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* ====================================
   2026-04-26 レスポンシブ（スマホ用）
   ※絶対に一番最後に記述すること！
   ==================================== */

@media screen and (max-width: 480px) {
    /* 2026-04-26 対戦成績：改行防止 */
    .vtc {
        white-space: nowrap;
        letter-spacing: -0.5px;
        font-size: 0.9em;
    }
    /* 2026-04-26 ポータルメニュー：スマホでは1列に切り替え */
    div.entry-content .portal-container {
        grid-template-columns: 1fr;
    }
}