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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* 1. 全体の土台（レイアウトとウィジェット） */
@import url("inc-css/layout.css");
@import url("inc-css/widget.css");

/* 2. 個別パーツとコンテンツ */
@import url("inc-css/content.css");
@import url("inc-css/dashboard.css");

/* 3. 最も優先したいヘッダーデザインを最後に読み込む */
@import url("inc-css/header.css");

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){

}

/*834px以下*/
@media screen and (max-width: 834px){

}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}

/************************************
** ヘッダーナビ全体の高さを抑え、中央配置する
************************************/

/* 0. ナビゲーションバー全体の高さを制御し、中身を中央に寄せる */
.navi-in, #navi-in {
    display: flex !important;
    align-items: center !important; /* バー自体の高さに対して中身を中央に */
    justify-content: center !important; /* 左右中央（ロゴ横ならflex-end等に調整） */
    min-height: 50px !important; /* ヘッダーバーの細さをここで決める */
}

/* 1. 親要素(li)を整列させる */
.menu-header .menu-item {
    display: flex !important;
    align-items: center !important; /* 垂直方向中央 */
    height: 100% !important; 
    margin: 0 !important;
}

/* 2. ヘッダーメニューの項目（aタグ）を楕円ボタン化 & 中央配置 */
.menu-header .menu-item a {
    background-color: #004b8d;
    color: #ffffff !important;
    margin: 0 5px !important;
    padding: 0 18px !important;   /* 上下パディングを0にしてheightで高さを制御 */
    height: 30px !important;      /* 36pxから30pxへ。よりスマートに */
    border-radius: 50px;          /* 楕円形を維持 */
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    
    /* ボタン内の文字を上下左右中央に配置 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* 1. サブメニューの箱（ul）を正しい位置に配置 */
.menu-header .sub-menu {
    top: 100% !important;    /* 親要素(40px)のすぐ下に配置 */
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* 浮いている感じを出す */
    background-color: transparent !important; /* 背景を無しに */
    box-shadow: none !important;            /* 影も消してスッキリ */
    border: none !important;
}

/* 2. サブメニュー内の li 項目が重ならないように調整 */
.menu-header .sub-menu .menu-item {
    width: 100% !important;  /* 幅をしっかり確保 */
    height: auto !important; /* 子メニューは文字数に応じて可変にするか、35px等に固定 */
    min-height: 35px !important;
}

/* 3. サブメニュー内のリンクの余白を整える */
.menu-header .sub-menu a {
    height: 35px !important;
    padding: 0 20px !important; /* 子メニューは少し余裕を持たせる */
    justify-content: flex-start !important; /* 文字を左寄せに */
}

/* ホバー動作 */
.menu-header .menu-item a:hover {
    background-color: #0066cc;
    transform: translateY(-1px); /* 浮き上がりを控えめに */
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none !important;
}

/* 現在表示中のページ */
.menu-header .current-menu-item a {
    background-color: #003366;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
/* ヘッダーの内側コンテナの背景色を指定 */
.header-container-in {
    background-color: #94b8ff !important;
}
/* 自前でヘッダーを上部に固定する（完成版） */
#header-container {
    position: -webkit-sticky; /* iOS対応 */
    position: sticky;
    top: 0;
    z-index: 9999 !important; /* 他の要素（広告や画像）より確実に前に出す */
    width: 100%;
}

/* スクロール中にはみ出るサブメニューを隠さないための念押し */
#header-container,
.header-container-in,
.navi,
.navi-in {
    overflow: visible !important;
}
/*aaaaaaaaaaaaaaaaaaaaaa*/

/* エディション絞り込みボタンのスタイル */
.edition-filter-btns {
    gap: 8px;
}

.edition-btn {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
    background: #fff;
    color: #333 !important;
}

/* 統合版ボタン（例：少し青系） */
.edition-btn.be:hover {
    background: #eef6ff;
    border-color: #004b8d;
    color: #004b8d !important;
}

/* Java版ボタン（例：少し緑系） */
.edition-btn.java:hover {
    background: #f0fff4;
    border-color: #2f855a;
    color: #2f855a !important;
}

/* モバイル表示の調整 */
@media screen and (max-width: 480px) {
    .edition-filter-btns {
        margin-bottom: 10px;
        width: 100%;
        justify-content: flex-start;
    }
}


/* aaaaaaaaaaaaaaフロントの表示調整 */
.content {
    margin-top: 0px!important;
}

.main {
    padding: 18px 0px!important;
}

/* 固定ページ本文の左右余白 */
.page:not(.home) .article-header,
.page:not(.home) .entry-content{
    box-sizing:border-box;
    padding-left:28px !important;
    padding-right:28px !important;
}

@media screen and (max-width: 480px){
    .page:not(.home) .article-header,
    .page:not(.home) .entry-content{
        padding-left:18px !important;
        padding-right:18px !important;
    }
}

.custom-home-grid{
    align-items:start!important;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.home-grid-item,
.custom-home-card{
    height:auto!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box;
}

/* aaaフロント表示件数の調整 */
.control-label{
    white-space:nowrap;
    flex-shrink:0;
}
.panel-control-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    max-width:100%;
    box-sizing:border-box;
}
@media(max-width:768px){

    .panel-control-bar{
        flex-direction:column;
        align-items:flex-start;
    }

}

/* MCLink: mobile footer colors must also apply on tablet widths when Cocoon shows it */
.mobile-footer-menu-buttons,
.mobile-footer-menu-buttons.mobile-menu-buttons{
    color:#1588fb !important;
    background-color:#d0e3f8 !important;
    border-top:0 !important;
    box-shadow:none !important;
}

.mobile-footer-menu-buttons .menu-button,
.mobile-footer-menu-buttons.mobile-menu-buttons .menu-button{
    border:0 !important;
    border-radius:0 !important;
    background:#d0e3f8 !important;
    color:#1588fb !important;
    box-shadow:none !important;
}

.mobile-footer-menu-buttons .menu-button-in,
.mobile-footer-menu-buttons .menu-button > a,
.mobile-footer-menu-buttons .menu-button > label,
.mobile-footer-menu-buttons.mobile-menu-buttons .menu-button-in,
.mobile-footer-menu-buttons.mobile-menu-buttons .menu-button > a,
.mobile-footer-menu-buttons.mobile-menu-buttons .menu-button > label{
    color:#1588fb !important;
    background:transparent !important;
    box-shadow:none !important;
    text-decoration:none !important;
}

/* aaaa フロントランキング日週月ボタン */
.ranking-ctrl{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-start;
}

.ranking-ctrl .cnt-select{
    margin-left:auto;
}

.range-btn-group{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:center;
    flex-shrink:0;
}

.range-btn{
    white-space:nowrap;
    flex-shrink:0;
}

/* フロント新着更新ボタン */
/* 新着ソート */
.sort-btn-group{
    display:flex;
    gap:6px;
    flex-wrap:wrap;
    align-items:center;
}

.sort-btn{
    border:none;
    background:#f3f4f6;
    border-radius:999px;
    padding:8px 14px;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
    white-space:nowrap;
}

.sort-btn:hover{
    background:#e5e7eb;
}

.sort-btn.is-active{
    background:#004b8d;
    color:#fff;
}

.newpost-list-block{
    display:none;
}

.newpost-list-block.is-active{
    display:block;
}

/* フロントh2見出し */
.wp-block-heading{
    border:none !important;
    background:none !important;
    box-shadow:none !important;

    font-size:28px;
    font-weight:800;
    letter-spacing:.02em;

    margin:0 0 18px !important;
    padding:0 !important;

    color:#1f2937;
}

/* フロントページ上部の日付を非表示 */
.home .article-header .date-tags{
    display:none !important;
}

.home #content,
.home #content-in,
.home .main,
.home .entry-content{
    max-width:100%;
    box-sizing:border-box;
}

.home .entry-content{
    overflow-x:hidden;
}

.home .entry-content .wp-block-columns{
    display:grid !important;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:24px;
    align-items:start;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.home .entry-content .wp-block-column{
    min-width:0 !important;
    max-width:100%;
    box-sizing:border-box;
}

.home .custom-panel-container,
.home .custom-home-card-link,
.home .custom-home-card,
.home .custom-home-thumb-wrap,
.home .custom-home-content{
    min-width:0;
    max-width:100%;
    box-sizing:border-box;
}

@media(max-width:1180px){

    #content{
        overflow-x:hidden;
    }

    #content-in.content-in{
        width:100%;
        max-width:100%;
        box-sizing:border-box;
    }

    #content-in.content-in > .main{
        min-width:0;
        max-width:100%;
        box-sizing:border-box;
    }

}

/* =========================
   フロント見出し
========================= */

/* =========================
   統合版 / Java版 見出し
========================= */

.entry-content h2.wp-block-heading{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:95%;
    max-width:620px;
    margin: 3px auto 12px !important;
    padding:6px 26px !important;
    border-radius:999px !important;
    color:#fff !important;
    font-size:22px !important;
    font-weight:700 !important;
    line-height:1 !important;
    box-shadow:
        0 6px 18px rgba(0,0,0,.14) !important;
    border:2px solid rgba(255,255,255,.18);
    position:relative;
}

/* 統合版 */
.entry-content .wp-block-column:first-child h2.wp-block-heading{
    background:
        linear-gradient(
            135deg,
            #0b5cab,
            #004b8d
        ) !important;
}

/* Java版 */
.entry-content .wp-block-column:nth-child(2) h2.wp-block-heading{
    background:
        linear-gradient(
            135deg,
            #c53324,
            #a82315
        ) !important;
}

/* スマホ */
@media(max-width:768px){

    .entry-content h2.wp-block-heading{
        font-size:18px !important;
        padding:12px 20px !important;
        margin:26px auto 18px !important;
    }

}

@media(max-width:1180px){

    .home #content-in,
    .home .main{
        width:100% !important;
        max-width:100% !important;
        margin-left:auto !important;
        margin-right:auto !important;
        float:none !important;
        box-sizing:border-box;
    }

    .home .entry-content .wp-block-columns{
        grid-template-columns:1fr;
    }

    .home .entry-content .wp-block-column{
        width:100% !important;
        flex-basis:auto !important;
    }

    .home .custom-home-grid{
        grid-template-columns:repeat(auto-fit, minmax(min(280px, 100%), 1fr)) !important;
    }

}

@media(max-width:768px){

    .home #content-in,
    .home .main,
    .home .entry-content{
        width:100% !important;
        max-width:100% !important;
        margin-left:auto !important;
        margin-right:auto !important;
        padding-left:10px !important;
        padding-right:10px !important;
        float:none !important;
    }

    .home .custom-home-grid{
        grid-template-columns:1fr !important;
    }

    .home .panel-control-bar,
    .home .ranking-ctrl{
        align-items:stretch;
    }

    .home .sort-btn-group,
    .home .range-btn-group{
        width:100%;
    }

    .home .cnt-select{
        width:100%;
        margin-left:0;
    }

    .home .custom-home-meta{
        gap:8px;
        font-size:13px;
    }

}
/* =========================
   h3 サブ見出し
========================= */

.entry-content h3.wp-block-heading{
    display:flex !important;
    align-items:center;
    justify-content:center;
    gap:8px;

    width:85%;
    max-width:520px;

    padding:10px 18px !important;
    margin:0 auto 18px !important;

    border-radius:999px !important;

    font-size:14px !important;
    font-weight:700 !important;
    line-height:1 !important;

    box-shadow:
        0 3px 10px rgba(0,0,0,.06) !important;

    border:1px solid rgba(255,255,255,.35);

    backdrop-filter:blur(4px);

    position:relative;
}

/* =========================
   統合版側
========================= */

.entry-content .wp-block-column:first-child h3.wp-block-heading{
    background:
        linear-gradient(
            135deg,
            #d9ebff,
            #bddcff
        ) !important;

    color:#004b8d !important;
}

/* =========================
   Java版側
========================= */

.entry-content .wp-block-column:nth-child(2) h3.wp-block-heading{
    background:
        linear-gradient(
            135deg,
            #ffe0dc,
            #ffc5be
        ) !important;

    color:#a82315 !important;
}

/* スマホ */
@media(max-width:768px){

    .entry-content h3.wp-block-heading{
        font-size:13px !important;
        padding:7px 16px !important;
        margin-bottom:14px !important;
    }

}

/***********************
 * インデックス *
***********************/
.archive-sort-popular.is-active{
    background:
        linear-gradient(
            135deg,
            #f7c948,
            #dfac10
        ) !important;

    color:#fff;
}

.archive-period-area{
    display:flex;
    gap:8px;
    margin:0 0 12px;
    flex-wrap:wrap;
}

.archive-period-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:8px 16px;

    border-radius:999px;

    text-decoration:none !important;

    font-size:13px;
    font-weight:700;

    background:#f3f4f6;
    color:#444;

    transition:.2s;
}

.archive-period-btn:hover{
    background:#e5e7eb;
}

.archive-period-btn.is-active{
    background:#1ea94c;
    color:#fff;
}

/* =========================
   MCLink front visual polish
========================= */
body{
    background:#f7fbfd;
}

#header-container{
    box-shadow:0 4px 18px rgba(0, 37, 75, .12);
}

#header-container .header-container-in,
.header-container-in{
    background:#91b8f5 !important;
}

.logo-header,
.logo{
    line-height:1;
}

.logo-header img,
.logo-image,
.site-logo-image{
    max-height:74px;
    width:auto;
}

.navi-in,
#navi-in{
    min-height:48px !important;
    gap:10px;
}

.menu-header{
    gap:10px;
}

.menu-header .menu-item a{
    min-width:132px;
    height:34px !important;
    margin:0 !important;
    padding:0 20px !important;
    border:1px solid rgba(255,255,255,.26);
    border-radius:999px;
    background:#00518f;
    box-shadow:0 5px 12px rgba(0, 59, 112, .18);
    font-size:15px;
    letter-spacing:0;
}

.menu-header .menu-item a:hover{
    background:#0068b8;
    box-shadow:0 8px 16px rgba(0, 59, 112, .22);
}

.menu-header .current-menu-item > a,
.menu-header .current-menu-ancestor > a{
    background:#003f70;
}

.menu-header .sub-menu{
    padding-top:8px !important;
}

.menu-header .sub-menu a{
    min-width:170px;
    height:38px !important;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.16);
    background:#064c85;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(15, 39, 58, .18);
}

.menu-header .sub-menu a:hover{
    background:#0b67ae;
    color:#fff !important;
}

.home #content{
    background:
        linear-gradient(180deg, #f8fcff 0, #f4fbf8 360px, #fff 100%);
}

.home #content-in{
    padding-top:24px;
}

.home .entry-content{
    padding:0 22px 28px !important;
}

.home .entry-content .wp-block-columns{
    gap:28px;
}

.home .entry-content h2.wp-block-heading{
    width:100%;
    max-width:none;
    min-height:42px;
    margin:0 0 16px !important;
    border:0 !important;
    border-radius:12px !important;
    box-shadow:0 10px 20px rgba(15, 39, 58, .10) !important;
    font-size:22px !important;
}

.home .entry-content h3.wp-block-heading{
    width:100%;
    max-width:none;
    margin:0 0 14px !important;
    border:0 !important;
    border-radius:10px !important;
    box-shadow:none !important;
}

.sidebar .widget,
.widget-sidebar{
    margin-bottom:22px;
}

.sidebar .widget-sidebar-title,
.widget-sidebar-title,
.widget-title{
    padding:11px 15px !important;
    border-radius:8px !important;
    background:#7fa7d9 !important;
    color:#fff !important;
    font-size:18px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
    letter-spacing:0;
}

.sidebar .search-box,
.sidebar .search-form,
.search-box{
    margin-bottom:26px;
}

.sidebar input[type="search"],
.sidebar .search-edit{
    border:1px solid #d9e3ed !important;
    border-radius:8px !important;
    background:#fff !important;
    box-shadow:0 6px 18px rgba(15, 39, 58, .06);
}

.widget_categories li a,
.widget_nav_menu li a{
    padding:9px 10px;
    border:1px solid #edf1f5;
    border-radius:8px;
    background:#fbfcfe;
    color:#4f6380;
    font-size:14px;
}

.widget_categories li a:hover,
.widget_nav_menu li a:hover{
    border-color:#cfe0f0;
    background:#f3f8ff;
    color:#004b8d;
}

.widget_categories .children{
    margin-top:5px;
    margin-left:14px;
    padding-left:10px;
    border-left:2px solid #dbe7f5;
}

.mclink-tax-chip{
    border-radius:8px !important;
    background:#fff !important;
    color:#25364a !important;
    font-size:12px !important;
    box-shadow:0 4px 10px rgba(15, 39, 58, .04);
}

.mclink-tax-chip:hover{
    background:#f3f8ff !important;
}

@media(max-width:1180px){
    .logo-header img,
    .logo-image,
    .site-logo-image{
        max-height:66px;
    }

    .menu-header .menu-item a{
        min-width:auto;
        padding:0 16px !important;
        font-size:14px;
    }

    .home .entry-content{
        padding-left:16px !important;
        padding-right:16px !important;
    }
}

@media(max-width:768px){
    #header-container{
        position:static !important;
        top:auto !important;
        box-shadow:none;
    }

    .mobile-header-menu-buttons{
        position:static !important;
    }

    .mobile-footer-menu-buttons.mobile-menu-buttons,
    .mobile-footer-menu-buttons{
        position:fixed !important;
        right:0 !important;
        bottom:0 !important;
        left:0 !important;
        z-index:9999 !important;
    }

    .navi,
    #navi,
    .navi-in,
    #navi-in{
        display:none !important;
        min-height:0 !important;
        height:0 !important;
        padding:0 !important;
        margin:0 !important;
        overflow:hidden !important;
    }

    .logo-header img,
    .logo-image,
    .site-logo-image{
        max-height:58px;
    }

    .menu-header{
        flex-wrap:nowrap;
    }

    .menu-header .menu-item{
        flex:0 0 auto;
    }

    .menu-header .menu-item a{
        height:32px !important;
        min-width:auto;
        padding:0 14px !important;
        font-size:13px;
        white-space:nowrap;
    }

    .mobile-footer-menu-buttons,
    .mobile-footer-menu-buttons.mobile-menu-buttons{
        color:#1588fb !important;
        background-color:#d0e3f8 !important;
        border-top:0 !important;
        box-shadow:none !important;
    }

    .mobile-footer-menu-buttons .menu-button,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button{
        border:0 !important;
        border-radius:0 !important;
        background:#d0e3f8 !important;
        color:#1588fb !important;
        box-shadow:none !important;
    }

    .mobile-footer-menu-buttons .menu-button-in,
    .mobile-footer-menu-buttons .menu-button > a,
    .mobile-footer-menu-buttons .menu-button > label,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button-in,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button > a,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button > label{
        color:#1588fb !important;
        background:transparent !important;
        box-shadow:none !important;
        text-decoration:none !important;
    }

    .mobile-footer-menu-buttons .menu-button:hover,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button:hover{
        border:0 !important;
        background:#d0e3f8 !important;
        color:#005da8 !important;
    }

    .mobile-footer-menu-buttons .menu-button:hover .menu-button-in,
    .mobile-footer-menu-buttons .menu-button:hover > a,
    .mobile-footer-menu-buttons .menu-button:hover > label,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button:hover .menu-button-in,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button:hover > a,
    .mobile-footer-menu-buttons.mobile-menu-buttons .menu-button:hover > label{
        color:#005da8 !important;
    }

    .home #content-in{
        padding-top:14px;
    }

    .home .entry-content{
        padding-left:10px !important;
        padding-right:10px !important;
    }

    .home .entry-content h2.wp-block-heading{
        min-height:38px;
        font-size:20px !important;
    }

    .sidebar .widget-sidebar-title,
    .widget-sidebar-title,
    .widget-title{
        font-size:16px !important;
    }
}
