@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
*/

/************************************
** User Requested Modernization (2025)
************************************/

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f3f4f6;
    --bg-card: #ffffff;
    --radius-lg: 16px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

body {
    background-color: var(--bg-body) !important;
    font-family: var(--font-base) !important;
    color: var(--text-main) !important;
    line-height: 1.8;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

/* Header Area (Logo) */
/* Stack Logo and Nav Vertically - TARGETING CORRECT WRAPPER */
.header-container-in.hlt-top-menu.wrap,
.header-container-in {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
}

#header {
    background-color: #ffffff !important;
    background-image: none !important;
    border-bottom: none;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    width: 100% !important;
    /* Allow height to grow */
}

/* Ensure inner header wrapper is also stacked/centered */
#header-in,
.header-in {
    display: block !important;
    /* Reset to block to avoid conflicting flex rules */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

.logo-header {
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

.logo-header a {
    display: inline-block !important;
    text-decoration: none;
}

/* Enhanced Site Title */
.site-name-text,
.logo-header .site-name-text {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 900 !important;
    font-size: 42px !important;
    letter-spacing: 0.05em;
    color: #000000 !important;
    /* Solid Black */
    text-shadow: none !important;
    display: inline-block;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.logo-header img {
    max-height: 80px;
    width: auto;
    display: inline-block !important;
    vertical-align: middle;
}

/* Site Description */
.site-description {
    display: block;
    text-align: center;
    color: #6b7280 !important;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

/* =========================================
   Modern Full-Width Navigation (Dark)
   ========================================= */

/* The blue bar (Full width background) */
.navi {
    order: 2;
    /* Ensure it comes after logo */
    background-color: #1a202c !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0;
    position: static !important;
    /* Remove positioning issues */
    border-radius: 0 !important;
}

/* The content container (Centered, Max-width) */
.navi-in {
    max-width: 1200px;
    /* Or match main content width */
    margin: 0 auto;
    width: 100%;
}

.navi-in>ul {
    display: flex;
    justify-content: center;
    /* Or flex-start if you prefer left align */
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navi-in>ul>li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separator */
    height: 50px;
}

.navi-in>ul>li:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.navi-in>ul>li>a {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    /* Refined size */
    color: #e2e8f0 !important;
    /* Off-white for better readability */
    padding: 0 24px !important;
    border-radius: 0;
    margin: 0;
    border-bottom: none !important;
    border-top: 3px solid transparent;
    transition: all 0.2s ease;
    background-color: transparent !important;

    /* Perfect Centering */
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    line-height: normal !important;
    letter-spacing: 0.05em;
    /* Modern spacing */
}

/* Hover Effect */
.navi-in>ul>li>a:hover {
    background-color: #2d3748 !important;
    /* Slightly lighter dark */
    color: #ffffff !important;
    border-top-color: #3b82f6;
    /* Accent color on top */
    text-decoration: none;
    transform: none;
    box-shadow: none;
}

/* Reset Cocoon's inner wrapper */
.navi-in>ul>li>a>div {
    height: auto !important;
    line-height: normal !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
}

/* Main Container Adjustment */
.content {
    margin-top: 0 !important;
    padding-top: 30px;
    /* More breathing room below nav */
}

/* Card Style Entries */
.entry-card-wrap {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.entry-card-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.1);
}

/* Card Thumbnails */
.entry-card-thumb {
    padding: 10px;
}

.entry-card-thumb img {
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.5s ease;
}

.entry-card-wrap:hover .entry-card-thumb img {
    transform: scale(1.03);
}

/* Card Content */
.entry-card-content {
    padding: 10px 15px 15px;
}

.entry-card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
    color: var(--text-main);
}

.entry-card-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Sidebar Widgets */
.sidebar .widget {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    border: none !important;
    position: relative;
    padding-left: 15px !important;
    margin-bottom: 20px;
    color: var(--text-main) !important;
    background: transparent !important;
}

.widget-title:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Pagination / Buttons */
.pagination a,
.pagination .current,
.btn-wrap a {
    border-radius: 50px !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    font-weight: bold;
}

.pagination .current {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

/* Single Post Content */
.article {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}

h1.entry-title {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #111;
}

.entry-content h2 {
    background: transparent !important;
    border: none !important;
    border-left: 6px solid var(--primary-color) !important;
    padding: 0.5em 1em !important;
    font-size: 1.75rem;
    margin: 2.5em 0 1.5em;
    font-weight: 800;
    color: #111;
}

.entry-content h3 {
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 0.5em !important;
    font-size: 1.5rem;
    margin: 2em 0 1em;
    color: #333;
}

/* Mobile Adjustments */
@media screen and (max-width: 834px) {
    .article {
        padding: 20px;
        border-radius: 0;
        box-shadow: none;
    }

    .entry-card-wrap {
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        margin-bottom: 0 !important;
    }
}