@charset "UTF-8";
/*
Theme Name: cocoon-child-maguro
Template: cocoon-master
*/

/* --- 1. 背景と基本設定 --- */
body {
    background-color: #f0f4f8 !important; /* 青みがかった薄グレー */
    background-image: none !important;
    margin: 0;
    padding: 0;
}

/* --- 2. ヘッダー画像：中央配置 --- */
.header-banner {
    width: 100% !important;
    background: #fff !important;
    padding: 0 0 !important;
    text-align: center !important;
}
.header-logo-img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: inline-block !important;
}

/* --- 3. ナビゲーション --- */
.global-nav {
    background-color: #bcd8ef !important;
    width: 100% !important;
}
.global-nav ul {
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.global-nav ul li a {
    display: block !important;
    padding: 15px 40px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* --- 4. スライダー機能の復活 --- */
.maguro-slider-box {
    width: 50% !important;
    height: 900px !important; /* 高さを少し出しました */
    overflow: hidden !important;
    border-radius: 15px !important;
    margin: 30px 0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}
.maguro-slider-inner {
    display: flex !important;
    width: 400% !important;
    height: 100% !important;
    animation: maguro-loop 20s infinite !important; /* アニメーションの適用 */
}
.maguro-slide {
    width: 25% !important;
    height: 100% !important;
}
.maguro-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* スライダーのアニメーション定義 */
@keyframes maguro-loop {
    0%, 20% { transform: translateX(0); }
    25%, 45% { transform: translateX(-25%); }
    50%, 70% { transform: translateX(-50%); }
    75%, 95% { transform: translateX(-75%); }
    100% { transform: translateX(0); }
}

/* --- 5. メインレイアウト --- */
.maguro-top-wrapper {
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 15px;
}
.maguro-flex-container {
    display: flex !important;
    justify-content: space-between !important;
    gap: 30px !important;
    align-items: flex-start !important;
}
.maguro-main-content { flex: 0 0 68% !important; }
.maguro-sidebar { flex: 0 0 28% !important; }

/* --- 6. 最新記事カード --- */
.ideal-post-card { margin-bottom: 40px !important; width: 100% !important; }
.ideal-post-card a {
    display: block !important;
    background: #fff !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07) !important;
    text-decoration: none !important;
}
.ideal-card-img { width: 100% !important; height: 400px !important; position: relative !important; }
.ideal-card-img img { width: 100% !important; height: 100% !important; object-fit: cover !important; }
.ideal-card-body { padding: 25px !important; color: #333 !important; }

/* --- 7. カテゴリーパネル：2列 --- */
.category-panel-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 20px 0 !important;
}
.category-panel {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    color: #333 !important;
}
.panel-image img { width: 100% !important; height: 180px !important; object-fit: cover !important; }
.panel-label { padding: 15px 10px !important; text-align: center !important; font-weight: bold; }

/* --- 8. 3列フッター --- */
#footer {
    background-color: #333 !important;
    color: #fff !important;
    padding: 60px 0 30px !important;
    margin-top: 60px !important;
}
.footer-3columns {
    display: flex !important;
    justify-content: space-between !important;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 0 20px !important;
}
.footer-col { flex: 0 0 30% !important; text-align: left !important; }
.footer-col h4 { border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 20px; color: #bcd8ef; }
.footer-col ul { list-style: none !important; padding: 0 !important; }
.footer-col a { color: #ccc !important; text-decoration: none !important; }
.footer-copy { text-align: center !important; margin-top: 40px; opacity: 0.5; font-size: 0.8rem; }

/* --- 9. 各カテゴリーページ共通のデザイン --- */
.category-archive-title {
    text-align: center !important;
    padding: 40px 0 !important;
    font-size: 2rem !important;
    font-weight: bold !important;
    color: #333 !important;
    background: #fff !important;
    margin-bottom: 30px !important;
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

/* カテゴリー内の記事一覧を2列で並べる（最新記事カードと同じデザインを流用） */
.category-post-list {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2列並び */
    gap: 25px !important;
    margin-bottom: 50px !important;
}

/* スマホでは1列にする */
@media screen and (max-width: 768px) {
    .category-post-list {
        grid-template-columns: 1fr !important;
    }
}

/* --- 10. 投稿ページ：理想のアイキャッチ＆重なるタイトルカード --- */

/* 1. アイキャッチ画像を絶対に削らず、全表示する */
.eye-catch img, 
.entry-eye-catch img {
    width: 100% !important;
    height: auto !important;      /* 比率を維持して全表示 */
    object-fit: contain !important; /* 画像を1ピクセルも削らない */
    border-radius: 15px 15px 0 0 !important; /* 上側だけ角を丸く */
    display: block !important;
    margin: 0 auto !important;
}

/* 2. タイトルエリアを白いカードにして画像に重ねる */
.single .entry-title {
    position: relative !important;
    margin: -60px auto 40px !important; /* 画像の下側に60px重ねる */
    background: #fff !important;
    padding: 30px 25px !important;
    width: 90% !important;           /* 横幅を少し狭めて浮いている感を出す */
    max-width: 850px !important;
    border-radius: 20px !important;  /* 理想的な大きな角丸 */
    border: 3px solid #333 !important; /* ケンチェ風のハッキリした太い縁取り */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    z-index: 100 !important;         /* 画像より確実に上に表示 */
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
}

/* 3. 公開日などのメタ情報をタイトルカード内に整える */
.single .post-meta {
    margin-top: -30px !important;    /* タイトルカードの位置に合わせる */
    margin-bottom: 50px !important;
    text-align: center !important;
    position: relative;
    z-index: 101;
}

/* 4. 本文エリアの開始位置を調整 */
.single .entry-content {
    margin-top: 20px !important;
    padding: 20px !important;
    background: transparent !important;
}



/* 1. トップページ：最新記事カードの画像サイズ調整 */
.ideal-post-card {
    margin-bottom: 40px !important;
    border: 2px solid #333 !important; /* 理想の太い縁取り */
    border-radius: 15px !important;
    overflow: hidden !important; /* 画像の角を丸めるために必須 */
    background: #fff !important;
}

.ideal-card-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important; /* 横長のサイズ感を固定 */
    border-bottom: 2px solid #333 !important; /* 画像とタイトルの区切り */
}

.ideal-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 枠いっぱいに表示 */
}

/* 2. 投稿ページ：アイキャッチのサイズ感とタイトルカードの重なり調整 */
.eye-catch, .entry-eye-catch {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.eye-catch img, .entry-eye-catch img {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important; /* 縦長になりすぎないよう調整 */
    object-fit: cover !important; /* 画面端まで画像を表示 */
    border-radius: 0 !important; /* 記事ページ上部は端まで広げる */
}

/* タイトルエリアを画像に少し重ねるデザイン */
.single .entry-title {
    position: relative !important;
    margin: -40px auto 30px !important; /* 画像の下側に少し被せる */
    background: #fff !important;
    padding: 25px 20px !important;
    width: 92% !important;
    max-width: 800px !important;
    border-radius: 15px !important;
    border: 3px solid #333 !important; /* 理想の太枠 */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
}

/* --- サイドバーとメインコンテンツの幅を理想のサイズに調整 --- */

/* 全体のコンテナ幅を少し広げて余裕を持たせる */
.maguro-top-wrapper {
    max-width: 1200px !important;
}

/* メインとサイドバーの比率を調整 */
.maguro-flex-container {
    display: flex !important;
    justify-content: center !important; /* 中央寄せ */
    gap: 40px !important;              /* コンテンツ間の余白 */
}

/* メインコンテンツ（記事一覧側）の幅 */
.maguro-main-content {
    flex: 0 0 800px !important;        /* ケンチェ飯さんのメイン幅に近い数値 */
    max-width: 100% !important;
}

/* サイドバーの幅を画像の幅（約284px）に固定 */
.maguro-sidebar {
    flex: 0 0 284px !important;        /* 画像の計測値に合わせる */
    width: 284px !important;
}

/* スマホ表示では縦並びに戻す */
@media screen and (max-width: 1100px) {
    .maguro-flex-container {
        flex-direction: column !important;
        align-items: center !important;
    }
    .maguro-main-content, .maguro-sidebar {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* --- カテゴリーページのタイトルを中央カード風に調整 --- */

.category-archive-title {
    text-align: center !important;       /* 文字を中央に */
    background: #fff !important;         /* 背景を白に */
    padding: 30px 20px !important;       /* 上下に余白を持たせる */
    margin: 20px auto 40px !important;   /* 上下に余白を作り、左右中央配置 */
    width: 90% !important;               /* 横幅を少し絞ってカードらしくする */
    max-width: 800px !important;         /* メインコンテンツ幅に合わせる */
    border-radius: 15px !important;      /* 角を丸くする */
    border: 3px solid #333 !important;   /* 理想の太枠デザインを継承 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
    font-size: 1.6rem !important;        /* 文字を大きく強調 */
    line-height: 1.2 !important;
}

/* --- カテゴリータイトル：シンプル中央寄せ --- */
.category-archive-title {
    text-align: center !important;       /* 文字を中央に */
    background: #fff !important;         /* 背景は白 */
    padding: 20px !important;            /* 上下の余白 */
    margin: 20px 0 30px !important;      /* 外側の余白 */
    border-radius: 8px !important;       /* 控えめな角丸 */
    font-size: 1.4rem !important;        /* ほどよい文字サイズ */
    font-weight: bold !important;
    border: none !important;             /* 枠線なし */
    box-shadow: none !important;         /* 影なし */
}

/* --- サイドバー全体の統一感アップ（シンプル版） --- */

/* 各ウィジェット（検索、カテゴリーなど）の外枠を整える */
.sidebar .widget {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 12px !important; /* Instagramと同じ角丸 */
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: none !important;
}

/* ウィジェットの見出しをシンプルに強調 */
.widget-title {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-left: 5px solid #333 !important; /* 黒のアクセント線 */
    padding-left: 12px !important;
    margin-bottom: 18px !important;
    color: #333 !important;
}

/* 検索窓を丸みのあるデザインに */
.search-edit {
    border-radius: 25px !important;
    border: 1px solid #ddd !important;
    padding: 10px 15px !important;
}

.search-submit {
    border-radius: 0 25px 25px 0 !important;
    background-color: #333 !important;
}

/* カテゴリー一覧をスッキリさせる */
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
}

.widget_categories ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.widget_categories ul li:last-child {
    border-bottom: none !important;
}

.widget_categories ul li a {
    text-decoration: none !important;
    color: #555 !important;
    font-size: 0.95rem !important;
    transition: 0.2s;
}

.widget_categories ul li a:hover {
    color: #000 !important;
    padding-left: 5px !important;
}

/* --- サイドバー全体の統一感アップ（シンプル版） --- */

/* 各ウィジェット（検索、カテゴリーなど）の外枠を整える */
.sidebar .widget {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 12px !important; /* Instagramと同じ角丸 */
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: none !important;
}

/* ウィジェットの見出しをシンプルに強調 */
.widget-title {
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-left: 5px solid #333 !important; /* 黒のアクセント線 */
    padding-left: 12px !important;
    margin-bottom: 18px !important;
    color: #333 !important;
}

/* 検索窓を丸みのあるデザインに */
.search-edit {
    border-radius: 25px !important;
    border: 1px solid #ddd !important;
    padding: 10px 15px !important;
}

.search-submit {
    border-radius: 0 25px 25px 0 !important;
    background-color: #333 !important;
}

/* カテゴリー一覧をスッキリさせる */
.widget_categories ul {
    list-style: none !important;
    padding: 0 !important;
}

.widget_categories ul li {
    padding: 8px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.widget_categories ul li:last-child {
    border-bottom: none !important;
}

.widget_categories ul li a {
    text-decoration: none !important;
    color: #555 !important;
    font-size: 0.95rem !important;
    transition: 0.2s;
}

.widget_categories ul li a:hover {
    color: #000 !important;
    padding-left: 5px !important;
}

/* --- スマホ表示の最適化 --- */
@media screen and (max-width: 768px) {
    /* 記事タイトルのサイズ調整 */
    .entry-title {
        font-size: 1.3rem !important;
        padding: 20px 15px !important;
        width: 95% !important;
    }

    /* アイキャッチ画像の高さ制限を緩和 */
    .eye-catch img {
        max-height: 300px !important;
    }

    /* 本文の余白をスマホ用に狭める */
    .entry-content {
        padding: 15px !important;
    }

    /* サイドバーをスマホではスッキリさせる */
    .maguro-sidebar {
        padding: 0 10px !important;
    }
}

/* --- フッターのシンプル装飾 --- */
.footer {
    background-color: #333 !important; /* 濃いグレーで引き締める */
    color: #fff !important;
    padding: 40px 0 20px !important;
    margin-top: 50px !important;
}

.footer a {
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
}

/* コピーライト部分 */
.copyright {
    opacity: 0.7;
    font-size: 0.8rem !important;
    margin-top: 20px !important;
}

/* ヘッダー周りの余白をリセット */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.site-header {
    margin-top: 0 !important;
}

.header-banner {
    padding-top: 0 !important;
    margin-top: 0 !important;
    line-height: 0 !important; /* 画像の下の隙間も防ぐ */
}

.header-logo-img {
    vertical-align: top !important; /* 画像の上下の隙間を消す */
    width: 100%; /* 横幅いっぱいに広げる場合 */
    height: auto;
}

/* ページ全体の最上部にある余白を消去 */
#container, .site-main {
    margin-top: 0 !important;
}

/* 1. 外側の箱（オレンジ色の枠部分）の高さを引き上げる */
.maguro-slider-box {
    height: 500px !important; /* ここで全体の高さを決める */
    width: 100% !important;
    max-width: 1170px;
    margin: 0 auto 30px;
}

/* 2. スライドショー本体を親の高さ（500px）に合わせる */
#main-slider,
#main-slider .splide__track,
#main-slider .splide__list {
    height: 100% !important;
}

/* 3. 各スライド画像の設定（中央切り抜き） */
.splide__slide {
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* 4. スマホ表示での調整（縦長すぎると画面を占領するため） */
@media (max-width: 767px) {
    .maguro-slider-box {
        height: 300px !important;
    }
}

/* 外枠の箱の高さをJSの設定（500px）と合わせる */
.maguro-slider-box {
    height: 500px !important; 
    max-width: 1170px;
    margin: 0 auto 30px;
    overflow: hidden; /* はみ出し防止 */
}

/* 画像が縦に伸びるのを防ぎ、中央で綺麗に切り抜く */
.splide__slide {
    background-size: cover !important;
    background-position: center !important;
}

/* 「最新記事」と「カテゴリーから探す」のタイトルを中央に寄せる */
.home h2, 
.home h3,
.archive h2,
.archive h3 {
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 25px !important;
    border: none !important; /* もし左側に棒線（ボーダー）がある場合は消します */
    position: relative;
}

/* タイトルの下に短い線を入れる（オプション：より見出しらしくなります） */
.home h2::after,
.home h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #333; /* 線の色（お好みに合わせて変更してください） */
    margin: 10px auto 0;
}

#footer {
    background-color: #f8f9fa; /* 薄いグレー背景 */
    padding: 40px 0 20px;
    color: #333;
}

.footer-3columns {
    display: flex;
    justify-content: space-around;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap; /* スマホ対応 */
}

.footer-col {
    width: 30%;
    min-width: 250px;
    margin-bottom: 20px;
    text-align: center; /* タイトルも中央に */
}

.footer-col h4 {
    border-bottom: 2px solid #333;
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    text-decoration: none;
    color: #666;
}

.footer-col a:hover {
    color: #000;
}

.footer-copy {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* LINKSセクションのリストを整える */
.footer-col ul {
    list-style: none; /* 点を消す */
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px; /* 行間を適切に調整 */
    line-height: 1.5;
}

/* リンク自体の見た目 */
.footer-col ul li a {
    color: #ffffff; /* 文字色を白に */
    text-decoration: none; /* 下線を消す */
    transition: 0.3s; /* 変化を滑らかに */
}

/* マウスを乗せた時の反応 */
.footer-col ul li a:hover {
    color: #ff9900; /* マグロにちなんでオレンジや、お好きな色に */
    text-decoration: underline; /* 下線を出して分かりやすく */
    opacity: 0.8;
}

/* 3カラムの並びを綺麗に揃える */
.footer-3columns {
    display: flex;
    align-items: flex-start; /* 全ての列の頭を揃える */
    justify-content: space-around;
    padding-bottom: 30px;
}

/* 記事内のH2見出しをおしゃれに */
.entry-content h2 {
    position: relative;
    padding: 0.5em 0.7em;
    background: #f1f1f1; /* 薄いグレー */
    border-left: 6px solid #ff9900; /* 左側にマグロカラーのアクセント */
    border-radius: 2px;
}

/* 記事内のH3見出しをおしゃれに */
.entry-content h3 {
    border-bottom: 2px dotted #ff9900; /* 下に点線 */
    padding-bottom: 5px;
}

/* 記事内のH2（大見出し）を強調 */
.entry-content h2 {
    padding: 0.5em 0.5em; /* 内側の余白 */
    color: #494949; /* 文字色 */
    background: #f4f4f4; /* 背景色 */
    border-left: solid 8px #ff9900; /* 左側のオレンジの棒 */
    border-bottom: solid 3px #d7d7d7; /* 下側の線 */
}

/* 記事内のH3（中見出し）をシンプルにおしゃれに */
.entry-content h3 {
    position: relative;
    padding-left: 25px;
    font-size: 1.25rem;
}

.entry-content h3:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ff9900; /* 小さなオレンジの四角 */
    border-radius: 2px;
}