@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-27 基本設定・ラベル
   ==================================== */
.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; }

.cat-label { display: none !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;
}

/* ====================================
   2026-04-27 記事装飾（H2・対戦成績）
   ==================================== */

.article h2 {
    margin: 2em 0 1em 0;
    padding: 12px 10px 8px 10px;
}

.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%;
}

.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; }

/* ====================================
   2026-04-27 ポータルメニュー設定
   ==================================== */

div.entry-content .portal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 10px;
}

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;
}

.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; }

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; }

div.entry-content .portal-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

/* ====================================
   2026-04-27 ポータル新着記事エリア
   ==================================== */

.portal-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.portal-list-box {
    flex-basis: calc(50% - 10px);
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* 2026-04-27 portal-list-box内のH3：背景を消して下線のみにする */
div.entry-content .portal-list-box h3 {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ccc; /* ←後でここを好きな色に変えてな！ */
    padding: 10px 0; 
    border-radius: 0; 
	margin-top: 0; /* ←★ここを追加！Cocoon標準の40pxを打ち消す */
}
.p-title-kurashi { border-left: 5px solid #b4d09b; padding-left: 10px; }
.p-title-tigers { border-left: 5px solid #e6b422; padding-left: 10px; }
.p-title-martto { border-left: 5px solid #d7a69c; padding-left: 10px; }
.p-title-karada { border-left: 5px solid #9ac4d0; padding-left: 10px; }

/* 2026-04-27 メモボックスをシンプルな囲み枠に変更 */
div.entry-content .memo-box {
    background: #fdfdfd; /* ほんの少し明るいグレー */
    border: 1px solid #ccc; /* ただの線で囲む */
    padding: 15px; /* 親の余白設定を上書きリセット */
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 0.9em;
}
/* 2026-04-27 メモボックス内の最後の要素の下余白を消す */
div.entry-content .memo-box > *:last-child {
    margin-bottom: 0;
}
/* メモボックス左側のデフォルトアイコンを消す */
div.entry-content .memo-box::before {
    display: none;
}
.more-link {
    text-align: right;
    margin-top: 10px;
    font-weight: bold;
}
/* 2026-04-27 ポータルのH3リンクの文字色を統一し、余計な下線を消す */
div.entry-content .portal-list-box h3 a {
    color: inherit;
    text-decoration: none;
}
/* ====================================
   2026-04-27 レスポンシブ
   ==================================== */

@media screen and (max-width: 768px) {
    .portal-list-box {
        flex-basis: 100%;
    }
}

@media screen and (max-width: 480px) {
    .vtc {
        white-space: nowrap;
        letter-spacing: -0.5px;
        font-size: 0.9em;
    }
    div.entry-content .portal-container {
        grid-template-columns: 1fr;
    }
}
/* 2026-04-27 トップページ（ポータル）のヘッダー下の余白を削減 */
.home main#main {
    padding-top: 0;    /* メインエリア上部の内側余白をゼロに */
    margin-top: 0;     /* メインエリア上部の外側余白をゼロに */
}

.home .entry-title {
    display: none;     /* タイトルが消えていても、念のため非表示にして隙間を消す */
}

/* 記事本文（ポータルの中身）自体の上の余白も微調整 */
.home div.entry-content {
    margin-top: 10px;  /* ここを 0 にするとヘッダーにピタッとくっつきすぎるので 10px くらいが綺麗やで */
}