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

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

/* ======================================================= */
/* 英語フレーズ.jp カスタムスタイル
/* ======================================================= */

/* --- 1. 全体設定 --- */
.eigo-phrase-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.7;
    color: #333;
}

/* --- 2. ヒーローセクション（トップページ上部） --- */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 50px;
}
.hero-title {
    font-size: 2.4em;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
}
.hero-sub {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 25px;
}

/* --- 3. フレーズセクション（各見出しエリア） --- */
.phrase-section {
    margin-bottom: 60px;
}
.sec-title {
    font-size: 1.8em;
    font-weight: 700;
    border-bottom: 3px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: inline-block;
}
.sec-title.mini { /* サブカテゴリ用の小さい見出し */
    font-size: 1.3em;
    border-bottom-width: 2px;
}
.sec-desc {
    font-size: 1em;
    color: #666;
    margin-bottom: 25px;
    display: block;
}

/* --- 4. タググリッド（ボタン一覧） --- */
.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.tag-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    border-color: #3498db;
    color: #3498db;
}
.tag-btn.more {
    font-style: italic;
    background-color: #ecf0f1;
    border-color: #bdc3c7;
}
.tag-btn.more:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
}

/* --- 5. おすすめ記事ランキング --- */
.popular-posts ol {
    list-style: none;
    padding-left: 0;
    counter-reset: popular-counter;
}
.popular-posts li {
    counter-increment: popular-counter;
    margin-bottom: 15px;
    position: relative;
    padding-left: 45px;
}
.popular-posts li a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
    display: block; /* リンクエリアを広げる */
}
.popular-posts li a:hover {
    color: #3498db;
}
.popular-posts li a small { /* おすすめ理由のスタイル */
    display: block;
    font-size: 0.8em;
    font-weight: 400;
    color: #777;
    margin-top: 4px;
}
.popular-posts li::before {
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #3498db;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popular-posts li:nth-child(2)::before { background: #9b59b6; }
.popular-posts li:nth-child(3)::before { background: #e67e22; }
.popular-posts li:nth-child(4)::before { background: #2ecc71; }
.popular-posts li:nth-child(5)::before { background: #e74c3c; }

/* --- 6. スマホ対応（レスポンシブ） --- */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8em; }
    .sec-title { font-size: 1.5em; }
    .tag-btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* --- 7. Cocoon アイキャッチ非表示（保険） --- */
.related-entry-card-thumb,
.post-navi-thumb,
.prev-post-thumb,
.next-post-thumb,
.pager-thumb {
    display: none !important;
}
.related-entry-card-content,
.pager-post-navi .pager-post-title,
.next-post .next-post-title,
.prev-post .prev-post-title {
    width: 100% !important;
}