@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. サイト全体のベース設定 (白ベースに変更)
   --------------------------------------------------- */

/* ★スムーススクロール設定★ */
html {
    scroll-behavior: smooth !important;
}

/* ベース背景色 */
body {
    background-color: #F1F5F9 !important;
    color: #334155 !important;
    font-family: "Noto Sans JP", sans-serif;
}

/* Cocoonのコンテナ背景透過 */
#content, .main, .sidebar, .wrap, #main, #sidebar, .header-container, #container, .website-header, .appeal-area {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* リンク色 */
a { color: #0EA5E9; text-decoration: none; transition: 0.3s; }
a:hover { color: #0284C7; }

/* ヘッダー */
.header-container {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2) !important;
    position: relative;
    z-index: 100 !important;
}
.site-name-text { color: #ffffff !important; }
.site-name-text::after {
	content: "Auto Life Navi";
	margin-left: 5px;
}
#navi .navi-in > ul > li > a { color: #e2e8f0; font-weight: bold; }
#navi .navi-in > ul > li > a:hover { background: rgba(255,255,255,0.1); color: #0EA5E9; }

/* モバイルメニューボタン（ハンバーガー） */
.mobile-menu-buttons {
    background-color: #1E293B !important;
    color: #fff !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* フッター */
.footer {
    background: #1E293B !important;
    color: #94a3b8 !important;
    border-top: none;
}


/* ---------------------------------------------------
   2. アピールエリア
   --------------------------------------------------- */

/* アピールエリア全体 */
.appeal {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

/* 画像を暗くするフィルター */
.appeal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #F1F5F9 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.appeal-content {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 auto !important;
    position: relative;
    z-index: 10;
    width: 100%;
}

.my-appeal-content {
    text-align: center;
    padding: 20px;
}

.my-appeal-tag {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid #0EA5E9;
    color: #0EA5E9;
    border-radius: 99px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
}

.my-appeal-title {
    font-size: 2.8rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

.my-appeal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-weight: 500;
}

.my-appeal-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    background: #fff;
    color: #0F172A !important;
    border-radius: 99px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none !important;
}
.my-appeal-btn:hover {
    transform: translateY(-3px);
    background: #0EA5E9;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

@media screen and (max-width: 768px) {
    .my-appeal-title { font-size: 1.8rem; }
    .pc-only { display: none; }
}


/* ---------------------------------------------------
   3. レイアウト崩れ防止（維持）
   --------------------------------------------------- */

@media (min-width: 1024px) {
    #content-in {
        display: flex !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 40px 20px !important;
        box-sizing: border-box !important;
    }
    #main {
        width: calc(100% - 340px) !important;
        float: none !important;
        margin: 0 !important;
        border: none !important;
    }
    #sidebar {
        width: 300px !important;
        min-width: 300px !important;
        float: none !important;
        margin: 0 !important;
        display: block !important;
    }
}


/* ---------------------------------------------------
   4. 記事一覧・ウィジェット (白カード化)
   --------------------------------------------------- */

/* 記事カード */
.entry-card-wrap {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: 0.3s;
    margin-bottom: 24px;
}
.entry-card-wrap:hover {
    border-color: #0EA5E9 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1) !important;
}
.entry-card-title { color: #1E293B !important; font-weight: bold; }
.entry-card-snippet { color: #64748b !important; display: none; }
.post-date, .post-update { color: #94a3b8 !important; }
.entry-card-thumb { position: relative; }
.entry-card-thumb img {
	border-radius: 10px;
}
/* カテゴリラベル */
.entry-card-thumb .cat-label {
    background: rgba(30, 41, 59, 0.7) !important;
	border: none;
	border-radius: 5px;
    color: #ffffff !important;
	font-weight: bold;
	position: absolute;
	top: 5px;
	left: 5px;
}

/* ウィジェットエリア */
.sidebar h3 {
	margin: 16px 0 0 !important;
}

.widget {
    padding: 0 !important;
    margin-bottom: 24px !important;
    color: #334155 !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.widget.widget_search {
    padding: 0 20px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* ウィジェットタイトル */
.widget-title {
    color: #1E293B !important;
    border: none !important;
    background: transparent !important;
    padding-left: 32px !important;
    margin-bottom: 20px !important;
    font-size: 1.1rem !important;
    position: relative;
    display: flex;
    align-items: center;
}

/* アイコン設定 */
.widget-title::before {
    content: '\f03a';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #1E293B;
    font-size: 1.2rem;
    width: auto; height: auto; background: none; border-radius: 0; bottom: auto;
}
/* 各ウィジェットアイコン */
.widget_search .widget-title::before, .search-box .widget-title::before { content: '\f002'; }
.widget_categories .widget-title::before { content: '\f07b'; }
.widget_popular_entries .widget-title::before { content: '\f521'; }
.widget_new_entries .widget-title::before, .widget_recent_entries .widget-title::before { content: '\f017'; }
.widget_tag_cloud .widget-title::before { content: '\f02b'; }
.widget_archive .widget-title::before { content: '\f187'; }
.widget_author_box .widget-title::before, .author-box .widget-title::before { content: '\f007'; }

.widget a { color: #475569; }
.widget a:hover { color: #0EA5E9; }

/* 検索フォーム */
.search-edit {
    background-color: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #334155 !important;
    border-radius: 8px !important;
    padding: 10px !important;
}
.search-submit { color: #64748b !important; }

.sidebar-scroll {
	background-color: #f1f5f9 !important;
}

.widget-entry-card-thumb img {
	border-radius: 10px;
}
.widget-entry-cards.ranking-visible .no-1 .card-thumb::before {
	border-top-left-radius: 10px;
}

/* モバイルメニューボタン調整 */
.mobile-menu-buttons {
    background-color: #fff !important;
    color: #334155 !important;
    border-top: 1px solid #E2E8F0;
}


/* ---------------------------------------------------
   5. 記事ページ (詳細) のデザイン
   --------------------------------------------------- */

/* 記事コンテンツカード */
.entry-wrap {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px;
    padding: 40px !important;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* スマホでの余白調整 */
@media screen and (max-width: 768px) {
    .entry-wrap {
        padding: 20px !important;
        border-radius: 12px;
    }
}

/* 記事本文 */
.eye-catch .cat-label {
    background: rgba(30, 41, 59, 0.7) !important;
	border: none;
	border-radius: 5px;
    color: #ffffff !important;
	font-weight: bold;
	position: absolute;
	top: 5px;
	left: 5px;
}

.entry-content { color: #334155; line-height: 1.8; }
.entry-title { color: #0F172A !important; }

.article h2 {
    position: relative;
    padding: .5em .7em;
    border-radius: 10px;
    background-color: #1E293B;
    color: #fff;
}
.article h2::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 30px;
    width: 0;
    height: 0;
    border: 11px solid transparent;
    border-top: 11px solid #1E293B;
}
.article h3 {
    border: 0;
    display: flex;
    align-items: center;
    padding: .5em .7em;
    background-color: #F1F5F9;
    color: #1E293B;
}
article.article h3::before {
    display: inline-block;
    width: 5px;
    height: 1.5em;
    margin-right: .5em;
    background-color: #1E293B;
    content: '';
}

/* ページネーション */
.pagination a, .pagination span {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}
.pagination .current {
    background: #0EA5E9 !important;
    color: #fff !important;
    border-color: #0EA5E9 !important;
}

/* 関連記事やコメントエリア */
.related-entries, .comment-area, .pager-post-navi {
    background-color: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px;
    padding: 24px !important;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


/* 目次 */
.article .toc {
    background: #f8f8ff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
    width: 100%;
}
.article .toc .toc-content ul:first-child,
.article .toc .toc-content ol:first-child {
    list-style-position: inside;
    padding: 0;
}
.article #toc ol.toc-list > li:not(:first-child) {
    border-top: 1px solid #cccccc;
    margin-top: 10px;
    padding-top: 10px;
}
.article .toc .toc-title {
    font-weight: bold;
    padding-left: 0;
    text-align: left;
}
.article .toc .toc-title:before {
    color: #334155;
    content: "\f03a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* ポイント */
.article .article-point {
    border: 2px solid #334155;
    border-radius: 10px;
    padding: 3.0rem 1rem 0.8rem 1rem;
    position: relative;
}
.article .article-point > div {
    background-color: #1e293b;
    border-radius: 5px 0 10px 0;
    color: #ffffff;
    font-size: 1.0rem;
    font-weight: 600;
    padding: 5px 10px 5px 30px;
    position: absolute;
    top: 0;
    left: 0;
}
.article .article-point > div::before {
    content: "\f00c";
	font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 10px;
    top: 45%;
    transform: translateY(-45%);
}
.article .article-point > div > i {
    margin-right: 10px;
}
.article .article-point > ul {
    margin: 0 0 0 -35px;
    list-style-position: inside;
}
.article .article-point > ul > li {
    list-style: none;
}
.article .article-point > ul > li::before {
    content: "\f005" !important;
	font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1.0rem;
	margin-right: 5px;
}

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

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

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