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

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

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

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

/* Cocoon標準のトップページ装飾をリセット */
.home.page #main {
    padding: 0;
    border: none;
    background: transparent;
}

.home.page .entry-content {
    margin-top: 0;
}

/* トップページでは記事用情報を非表示 */
.home.page .date-tags,
.home.page .sns-share,
.home.page .sns-follow,
.home.page .author-info {
    display: none;
}


/* ========================================
   Hero
   ======================================== */

.gadget-hero {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    padding: 70px;

    border-radius: 28px;
    overflow: hidden;

    /* ↓ このURLを自分の画像URLに変更 */
    background-image:
        linear-gradient(
            90deg,
            rgba(8, 18, 30, 0.88) 0%,
            rgba(8, 18, 30, 0.65) 45%,
            rgba(8, 18, 30, 0.12) 100%
        ),
        url("https://eigadgetcho.com/wp-content/uploads/2026/08/仮画像.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* ヒーロー内の文章 */

.gadget-hero__content {
    position: relative;
    z-index: 2;

    max-width: 650px;

    color: #ffffff;
}


/* 上部の小さい文字 */

.gadget-hero__label {
    margin: 0 0 20px;

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

    letter-spacing: 0.18em;

    opacity: 0.8;
}


/* メインタイトル */

.gadget-hero__title {
    margin: 0 0 24px;

    padding: 0;
    border: none;

    background: none;

    color: #ffffff;

    font-size: clamp(40px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.25;

    letter-spacing: -0.03em;
}


/* 説明文 */

.gadget-hero__description {
    margin: 0 0 34px;

    color: rgba(255, 255, 255, 0.86);

    font-size: 17px;
    line-height: 1.9;
}


/* ボタン */

.gadget-hero__button {
    display: inline-flex;
    align-items: center;

    padding: 15px 24px;

    border-radius: 100px;

    background: #ffffff;

    color: #111827 !important;

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

    text-decoration: none !important;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.gadget-hero__button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.20);
}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 768px) {

    .gadget-hero {
        min-height: 520px;

        padding: 40px 26px;

        border-radius: 20px;

        background-position: 62% center;
    }

    .gadget-hero__title {
        font-size: 36px;
        line-height: 1.3;
    }

    .gadget-hero__description {
        font-size: 15px;
    }

}
/* ========================================
   トップページ：最新レビュー
   ======================================== */

.home-latest {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 110px;
}


/* 最新レビュー見出し */

.home-latest .home-section-label {
    width: 100%;

    margin: 0 0 8px !important;

    color: #1769aa;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;

    text-align: center !important;
}


.home .article .home-latest h2.home-section-title {
    width: 100%;

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

    border: none !important;
    background: transparent !important;

    color: #111827 !important;

    font-size: 34px;
    font-weight: 800;

    text-align: center !important;
}


/* 小さい英字見出し */

.home-section-label {
    margin: 0 0 8px;

    color: #1769aa;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;

    text-align: center;
}


/* セクションタイトル */

.home-section-title {
    margin: 0 0 45px !important;
    padding: 0 !important;

    border: none !important;
    background: none !important;

    color: #111827;

    font-size: 34px;
    font-weight: 800;

    text-align: center;
}


/* Cocoon新着記事カード */

.home-latest-list .new-entry-card-link {
    overflow: hidden;

    border: 1px solid #e8ebef;
    border-radius: 18px;

    background: #ffffff;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* マウスを載せたとき */

.home-latest-list .new-entry-card-link:hover {
    transform: translateY(-6px);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.10);
}


/* サムネイル */

.home-latest-list .card-thumb {
    overflow: hidden;

    border-radius: 18px 18px 0 0;
}


/* 画像 */

.home-latest-list .card-thumb img {
    width: 100%;

    aspect-ratio: 16 / 9;
    object-fit: cover;

    transition: transform 0.35s ease;
}


/* ホバー時に画像をわずかに拡大 */

.home-latest-list .new-entry-card-link:hover .card-thumb img {
    transform: scale(1.035);
}


/* タイトル・日付部分 */

.home-latest-list .card-content {
    padding: 20px 20px 22px;
}


/* 記事タイトル */

.home-latest-list .card-title {
    color: #171717;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.6;
}


/* 日付 */

.home-latest-list .post-date {
    margin-top: 10px;

    color: #8a929d;

    font-size: 12px;
}


/* Cocoon標準の矢印を少し控えめに */

.home-latest-list .card-arrow {
    color: #1769aa;
}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 768px) {

    .home-latest {
        padding: 70px 15px 80px;
    }

    .home-section-title {
        margin-bottom: 30px !important;

        font-size: 28px;
    }

}
/* ========================================
   最新レビュー：3カラムを横幅いっぱいに表示
   ======================================== */

/* 新着記事一覧そのものを横幅いっぱいにする */
.home-latest-list {
    width: 100% !important;
    max-width: none !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;

    overflow: visible !important;
}


/* Cocoonのカード幅制限を解除 */
.home-latest-list .new-entry-card-link {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: block !important;
}


/* カード本体 */
.home-latest-list .new-entry-card {
    width: 100% !important;
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* サムネイルを横幅いっぱいに */
.home-latest-list .card-thumb {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


/* 画像サイズ */
.home-latest-list .card-thumb img {
    width: 100% !important;
    height: auto;

    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* 記事タイトル部分 */
.home-latest-list .card-content {
    flex: 1;

    padding: 20px 22px 22px !important;
}


/* ========================================
   タブレット
   ======================================== */

@media screen and (max-width: 900px) {

    .home-latest-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 600px) {

    .home-latest-list {
        grid-template-columns: 1fr;
        gap: 22px;
    }

}
.home .article h2.home-section-title {
    margin: 0 0 42px !important;
    padding: 0 !important;

    border: none !important;
    background: transparent !important;

    color: #111827 !important;

    font-size: 34px;
    font-weight: 800;

    text-align: center;
}
/* ========================================
   トップページ：カテゴリー
   ======================================== */

.home-categories {
    max-width: 1200px;

    margin: 0 auto;
    padding: 20px 20px 110px;
}


/* ========================================
   カテゴリーグリッド
   ======================================== */

.gadget-category-grid {
    display: grid;

    /* PCでは5カテゴリーを横一列 */
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 18px;

    margin-top: 42px;
}


/* ========================================
   カテゴリーカード
   ======================================== */

.gadget-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 190px;

    padding: 28px 12px;

    border: 1px solid #e6e9ed;
    border-radius: 18px;

    background: #ffffff;

    color: #171717 !important;

    text-align: center;
    text-decoration: none !important;

    box-shadow:
        0 3px 14px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


/* マウスを載せたとき */

.gadget-category-card:hover {
    transform: translateY(-5px);

    border-color: #b9d4ed;

    box-shadow:
        0 13px 32px rgba(0, 0, 0, 0.09);
}


/* ========================================
   アイコン
   ======================================== */

.gadget-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    margin-bottom: 18px;

    border-radius: 17px;

    background: #f1f7fc;

    color: #1769aa;
}


/* SVG */

.gadget-category-icon svg {
    width: 31px;
    height: 31px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ========================================
   日本語カテゴリー名
   ======================================== */

.gadget-category-name {
    display: block;

    min-height: 42px;

    margin-bottom: 5px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;

    word-break: keep-all;
}


/* ========================================
   英字カテゴリー名
   ======================================== */

.gadget-category-en {
    display: block;

    color: #929aa4;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.09em;

    white-space: nowrap;
}


/* ========================================
   タブレット
   ======================================== */

@media screen and (max-width: 1000px) {

    .gadget-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

}


/* ========================================
   小型タブレット
   ======================================== */

@media screen and (max-width: 750px) {

    .gadget-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ========================================
   スマートフォン
   ======================================== */

@media screen and (max-width: 600px) {

    .home-categories {
        padding: 10px 15px 80px;
    }


    .gadget-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

        margin-top: 30px;
    }


    .gadget-category-card {
        min-height: 155px;

        padding: 20px 7px;

        border-radius: 15px;
    }


    .gadget-category-icon {
        width: 52px;
        height: 52px;

        margin-bottom: 13px;

        border-radius: 14px;
    }


    .gadget-category-icon svg {
        width: 27px;
        height: 27px;
    }


    .gadget-category-name {
        min-height: 39px;

        font-size: 13px;
        line-height: 1.45;
    }


    .gadget-category-en {
        font-size: 7.5px;

        letter-spacing: 0.05em;
    }

}
/* ========================================
   トップページ：人気記事＋プロフィール
   ======================================== */

.home-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 120px;
}


/* 2カラム */

.home-bottom-grid {
    gap: 32px;
    align-items: stretch !important;
}


/* ========================================
   左寄せセクション見出し
   ======================================== */

.home-section-label-left {
    margin: 0 0 7px !important;

    color: #1769aa;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}


.home .article h2.home-section-title-left {
    margin: 0 0 32px !important;
    padding: 0 !important;

    border: none !important;
    background: none !important;

    color: #111827 !important;

    font-size: 30px;
    font-weight: 800;

    text-align: left;
}


/* ========================================
   人気記事
   ======================================== */

.home-popular-list {
    width: 100%;
}


/* 各記事 */

.home-popular-list .popular-entry-card-link {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 0 14px !important;
    padding: 13px !important;

    border: 1px solid #e7e9ed;
    border-radius: 16px;

    background: #ffffff;

    text-decoration: none !important;

    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.035);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}


/* ホバー */

.home-popular-list .popular-entry-card-link:hover {
    transform: translateY(-3px);

    border-color: #c9dbea;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.08);
}


/* 記事内部 */

.home-popular-list .popular-entry-card {
    display: flex !important;
    align-items: center;

    gap: 18px;

    width: 100%;
}


/* サムネイル */

.home-popular-list .popular-entry-card-thumb {
    flex: 0 0 155px;

    width: 155px !important;

    margin: 0 !important;

    overflow: hidden;

    border-radius: 11px;
}


.home-popular-list .popular-entry-card-thumb img {
    display: block;

    width: 100% !important;
    height: auto;

    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* タイトル・日付部分 */

.home-popular-list .popular-entry-card-content {
    flex: 1;

    min-width: 0;

    margin: 0 !important;
    padding: 0 !important;
}


/* 記事タイトル */

.home-popular-list .popular-entry-card-title {
    color: #171717;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}


/* 日付 */

.home-popular-list .widget-entry-card-date {
    display: block;

    margin-top: 7px;

    color: #9299a2;

    font-size: 11px;
}


/* ========================================
   プロフィール
   ======================================== */

.home-profile-card {
    height: auto;

    padding: 26px;

    border: 1px solid #e7e9ed;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 3px 16px rgba(0, 0, 0, 0.04);
}


/* Cocoonプロフィール標準装飾を調整 */

.home-profile-card .author-box {
    margin: 0 !important;
    padding: 0 !important;

    border: none !important;

    background: transparent !important;
}


/* プロフィール画像 */

.home-profile-card .author-thumb img {
    width: 110px;
    height: 110px;

    border-radius: 50%;

    object-fit: cover;
}


/* 名前 */

.home-profile-card .author-name {
    margin-top: 16px;

    color: #171717;

    font-size: 17px;
    font-weight: 700;
}


/* 説明 */

.home-profile-card .author-description {
    margin-top: 14px;

    color: #555f69;

    font-size: 14px;
    line-height: 1.85;
}


/* ========================================
   タブレット・スマートフォン
   ======================================== */

@media screen and (max-width: 780px) {

    .home-bottom {
        padding: 10px 15px 90px;
    }


    .home-bottom-grid {
        display: block !important;
    }


    .home-bottom-grid > .wp-block-column {
        margin-bottom: 60px;
    }


    .home .article h2.home-section-title-left {
        margin-bottom: 25px !important;

        font-size: 27px;
    }

}


@media screen and (max-width: 600px) {

    .home-popular-list .popular-entry-card-link {
        padding: 10px !important;

        border-radius: 13px;
    }


    .home-popular-list .popular-entry-card {
        gap: 12px;
    }


    .home-popular-list .popular-entry-card-thumb {
        flex-basis: 120px;

        width: 120px !important;

        border-radius: 9px;
    }


    .home-popular-list .popular-entry-card-title {
        font-size: 13px;
        line-height: 1.5;
    }


    .home-profile-card {
        padding: 22px;

        border-radius: 17px;
    }

}