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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/
/* =========================================
   Middle Survival - Monochrome Biz Style
   ========================================= */

/* ベース設定：文字を読みやすく、知的に */
.biz-body, .hq-body {
    font-family: "Helvetica Neue", "Arial", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
    line-height: 1.8;
    color: #333; /* 濃いグレー */
    background-color: #fff;
    box-sizing: border-box;
}

/* リンクの基本動作 */
a {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 共通グリッド */
.biz-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 共通セクション */
.biz-section {
    margin-bottom: 70px;
}
.biz-sec-header {
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd; /* 下線のみのシンプルスタイル */
    position: relative;
}
/* 左側のアクセント（黒） */
.biz-sec-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #333;
}

.biz-sec-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #111;
    margin: 0;
    letter-spacing: 0.05em;
}
.biz-sec-desc {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

/* 共通タグボタン（白黒版） */
.tag-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 2px; /* 丸みをなくしてシャープに */
    color: #333;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    box-shadow: none; /* 影を消してフラットに */
}
.tag-btn:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
    transform: translateY(-2px);
}
/* GAS連携の新着強調も黒で統一 */
.tag-btn.biz-color {
    border-left: 4px solid #000;
}

/* ヒーローセクション共通（モノトーン） */
/* クラスが何であれ、すべて黒背景に統一 */
[class^="biz-hero"], .hq-hero {
    text-align: center;
    padding: 80px 20px;
    background: #1a1a1a; /* ほぼ黒 */
    color: #fff;
    border-radius: 0; /* 角丸なし */
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}
/* 背景にうっすらノイズやパターンを入れて質感を出す */
[class^="biz-hero"]::before, .hq-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.05) 50%, transparent 51%);
    background-size: 10px 10px;
    pointer-events: none;
}

.biz-hero-title, .hq-title {
    font-size: 2.4em;
    font-weight: 800;
    margin: 0 0 15px 0;
    letter-spacing: 0.1em;
    color: #fff;
}
.biz-hero-sub, .hq-subtitle {
    font-size: 1.0em;
    color: #ccc;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.05em;
}

/* 強調文字（トップページ用） */
.hq-strong {
    color: #fff;
    border-bottom: 1px solid #fff;
    font-weight: 700;
}


/* =========================================
   トップページ専用カード (白黒版)
   ========================================= */
.hq-nav-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}
.hq-section-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 50px;
    color: #999; /* タイトルは控えめにグレー */
    letter-spacing: 0.2em;
}

.hq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.hq-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0; /* スクエア */
    height: 100%;
    transition: all 0.3s ease;
}

/* ホバー時は黒枠になり、少し浮く */
.hq-card:hover {
    border-color: #333;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

/* カードヘッダー：白地に黒アイコン */
.hq-card-header {
    padding: 30px 25px 10px;
    background: #fff;
    color: #333;
    border-bottom: none;
}
.hq-card-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 15px;
    /* アイコンの色をモノクロに強制 */
    filter: grayscale(100%); 
    opacity: 0.8;
}

/* タイトル */
.hq-card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
}

/* 本文 */
.hq-card-body {
    padding: 10px 25px 30px;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
}

/* カテゴリごとの色分け設定を全て黒/白に上書き（リセット） */
.hq-card.prod .hq-card-header,
.hq-card.mgmt .hq-card-header,
.hq-card.career .hq-card-header,
.hq-card.wellness .hq-card-header,
.hq-card.money .hq-card-header {
    background: transparent;
}
.hq-card.prod:hover,
.hq-card.mgmt:hover,
.hq-card.career:hover,
.hq-card.wellness:hover,
.hq-card.money:hover {
    border-bottom: 1px solid #333; /* 下線の色も統一 */
    border-color: #333;
}

/* 資産形成（Money）カードのPC横長レイアウトは維持 */
.hq-card.money {
    grid-column: 1 / -1; 
    display: flex;
    background-color: #f9f9f9; /* 少しだけ背景色を変えて差別化 */
    border: none; /* 枠線を消して背景色でエリアを示す */
}
.hq-card.money:hover {
    background-color: #f0f0f0;
    transform: none; /* 動きを止める */
    box-shadow: none;
}
.hq-card.money .hq-card-header {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid #eee;
}
.hq-card.money .hq-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 30px;
}

/* 最新記事ヘッダー */
.hq-latest-header {
    text-align: center;
    margin: 100px 0 40px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}
.hq-latest-title {
    font-size: 1.2em;
    color: #333;
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* =========================================
   レスポンシブ (スマホ対応)
   ========================================= */
@media screen and (max-width: 768px){
    /* 共通 */
    [class^="biz-hero"], .hq-hero { padding: 50px 20px; }
    .biz-hero-title, .hq-title { font-size: 1.8em; }
    .biz-sec-title { font-size: 1.3em; }
    .tag-btn { width: 100%; text-align: center; display: block; margin-bottom: 5px; }
    
    /* トップページ */
    .hq-grid { grid-template-columns: 1fr; gap: 20px; }
    .hq-card.money {
        grid-column: auto;
        display: block;
        background: #fff;
        border: 1px solid #e5e5e5;
    }
    .hq-card.money .hq-card-header { 
        border-right: none; 
        padding-bottom: 0;
    }
    .hq-card.money .hq-card-body { 
        display: block; 
        padding-top: 10px;
    }
}