@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){
  /*必要ならばここにコードを書く*/
}

/* =====================================
   DragonHowTo Home
===================================== */

.dh-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}

/* 広告 */
.dh-ad {
    min-height: 140px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: #888;
}

/* カテゴリナビ */
.dh-category-nav {
    display: flex;
    flex-wrap: wrap;
    background: #111;
    margin-bottom: 30px;
}

.dh-category-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 15px 20px;
    transition: .2s;
}

.dh-category-nav a:hover {
    background: #333;
}

/* 注目記事 */
.dh-featured {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    border: 1px solid #ddd;
    background: #fff;
    margin-bottom: 45px;
}

.dh-featured-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.dh-featured-body {
    padding: 30px;
}

.dh-featured h1 {
    font-size: 32px;
    line-height: 1.35;
    margin: 10px 0 15px;
}

.dh-featured h1 a {
    color: #111;
    text-decoration: none;
}

/* セクションタイトル */
.dh-section-title {
    font-size: 26px;
    margin: 0 0 20px;
    border-left: 5px solid #111;
    padding-left: 12px;
}

/* 記事一覧 */
.dh-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.dh-card {
    background: #fff;
    border: 1px solid #ddd;
    overflow: hidden;
}

.dh-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.dh-card-body {
    padding: 20px 24px 25px;
}

.dh-card h2 {
    font-size: 23px;
    line-height: 1.45;
    margin: 8px 0 10px;
}

.dh-card h2 a {
    color: #111;
    text-decoration: none;
}

.dh-card h2 a:hover,
.dh-featured h1 a:hover {
    text-decoration: underline;
}

/* カテゴリ */
.dh-category {
    font-size: 13px;
    font-weight: 700;
    color: #4054e8;
}

/* 日付 */
.dh-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 12px;
}

/* NO IMAGE */
.dh-no-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-weight: 700;
}

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

    .dh-home {
        padding: 15px;
    }

    .dh-featured {
        grid-template-columns: 1fr;
    }

    .dh-featured-image img {
        min-height: auto;
    }

    .dh-featured h1 {
        font-size: 25px;
    }

    .dh-grid {
        grid-template-columns: 1fr;
    }

    .dh-category-nav a {
        padding: 12px 14px;
        font-size: 14px;
    }
}
/* =========================
   DragonHowTo TOP cleanup
========================= */

/* トップページのサイドバーを消す */
.home #sidebar,
.home .sidebar {
    display: none !important;
}

/* 本文を全幅にする */
.home #main,
.home .main {
    width: 100% !important;
    max-width: 100% !important;
}

/* Cocoonの2カラム構造を解除 */
.home .content-in {
    display: block !important;
}

/* 外側の白い箱っぽさを消す */
.home .main {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* ヘッダーを黒に */
.home .header {
    background: #111 !important;
}

/* サイト名を白に */
.home .logo-text,
.home .logo-text a,
.home .site-name-text {
    color: #fff !important;
}

/* ヘッダーを低くする */
.home .header-in {
    min-height: 70px !important;
}

/* トップの横幅 */
.home .dh-home {
    max-width: 1280px;
    margin: 0 auto;
    padding: 30px 20px 80px;
}
