/* --- General Reset & Base Styling --- */
body, #wrapper {
    font-family: 'Roboto', 'Arial', sans-serif; /* Modern, readable font */
    line-height: 1.6;
    color: #333; /* Darker grey for better readability */
    background-color: #f4f7f6; /* A very light, neutral background */
}

a {
    color: #007bff; /* A standard, clean blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Arial', sans-serif; /* A clean, modern font for headings */
    color: #222;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
}

/* --- Header & Navigation --- */
#header-box {
    background-color: #ffffff; /* Clean white header */
    border-bottom: 1px solid #e0e0e0; /* Subtle separator */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

#site-info span a {
    color: #1a1a1a !important; /* Stronger color for site title */
    font-size: 2em; /* Adjust as needed */
    font-weight: bold;
}

#nav-container {
    background-color: #ffffff; /* White nav bar */
    border-bottom: 1px solid #e0e0e0;
}

#drawernav {
    background-color: #ffffff; /* Keep it clean white or a very light neutral */
    padding: 0 15px; /* Horizontal padding for the nav bar itself */
    border-bottom: 1px solid #e9ecef; /* A light, subtle border */
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); /* Softer, more subtle shadow */
    /* position: sticky; /* Optional: make the nav sticky */
    /* top: 0; */
    /* z-index: 1000; */
}

/* The UL element holding the menu items */
#drawernav .menu-box {
    list-style: none;
    padding: 0;
    margin: 0 auto; /* Center the menu box if the nav bar is wider */
    display: flex; /* Arrange menu items in a row */
    justify-content: center; /* Center menu items. Other options: flex-start, flex-end, space-around */
    align-items: center; /* Vertically align items if they have different heights */
    height: 60px; /* Define a fixed height for the nav bar for consistency */
}

/* Individual List Items (LI) */
#drawernav .menu-box > li {
    margin: 0; /* Remove default list item margins */
}

/* Menu Links (A tags) */
#drawernav .menu-box > li > a {
    display: flex; /* Allows vertical centering of text if needed */
    align-items: center;
    height: 100%; /* Make link fill the LI height */
    padding: 0 25px; /* Generous horizontal padding for a spacious feel */
    color: #4a5568 !important; /* A refined, slightly muted dark grey for text */
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif; /* Or your preferred modern heading font */
    font-weight: 500; /* Medium weight for clarity */
    font-size: 0.9em !important; /* Adjust as needed */
    text-transform: uppercase;
    letter-spacing: 0.05em; /* Slight letter spacing for an airy feel */
    position: relative; /* Crucial for pseudo-element effects like underlines */
    transition: color 0.3s ease, background-color 0.3s ease;
    border-bottom: 3px solid transparent; /* Placeholder for active/hover underline */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Hover state for menu links */
#drawernav .menu-box > li > a:hover {
    color: #007bff !important; /* Brighten text color on hover */
    background-color: rgba(0, 123, 255, 0.05) !important; /* Very subtle background tint */
    border-bottom-color: #007bff; /* Show underline on hover */
}

/* Active/Current menu item styling */
#drawernav .menu-box > li.current-menu-item > a {
    color: #007bff !important; /* Distinct color for the active item */
    font-weight: 700; /* Make active item text bolder */
    border-bottom-color: #007bff; /* Persistent underline for active item */
    /* background-color: rgba(0, 123, 255, 0.07) !important; /* Optional: slightly stronger bg for current */
}

/* --- Main Content Area --- */
#contents {
    padding: 20px 0;
}

/* --- Post List Styling (Card-like) --- */
.post-list-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure child elements respect border-radius */
}

.post-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.post-list-link {
    display: block;
    text-decoration: none !important; /* Override any deep link styling */
}

.post-list-thumb img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 220px; /* Limit image height for consistency */
    object-fit: cover; /* Crop image to fit, maintaining aspect ratio */
    border-bottom: 1px solid #eee;
    transition: opacity 0.3s ease;
}

.post-list-item:hover .post-list-thumb img {
    opacity: 0.85;
}

.post-list-meta {
    padding: 20px;
}

.post-list-cat {
    display: inline-block;
    background-color: #007bff !important; /* Consistent category badge color */
    color: #ffffff !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* Example: Different colors for different categories if you add specific classes */
/* .category-tokyo { background-color: #ffc107 !important; color: #333 !important; } */
/* .category-fujitv { background-color: #28a745 !important; } */


.post-list-title {
    font-size: 1.4em; /* Adjust as needed */
    color: #333 !important;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}

.post-list-date {
    font-size: 0.85em;
    color: #777 !important;
    margin-bottom: 0;
}

/* --- Sidebar --- */
/* --- Enhanced Sidebar Styling (Option 1: Modern & Minimalist) --- */

#sidebar {
    background-color: #f8f9fa; /* A very light, almost white, neutral background */
    padding: 25px 20px;      /* Generous padding inside the sidebar */
    border-radius: 8px;       /* Slightly rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Soft, diffused shadow */
    /* Consider adding a light left border if it's on the right: */
    /* border-left: 1px solid #e9ecef; */
    /* Or a right border if it's on the left: */
    /* border-right: 1px solid #e9ecef; */
}

/* Styling for individual widgets within the sidebar */
#sidebar .widget {
    margin-bottom: 35px; /* Increased space between widgets */
    padding-bottom: 25px; /* Space before the divider line */
    border-bottom: 1px solid #dee2e6; /* Subtle divider line between widgets */
}

#sidebar .widget:last-child {
    margin-bottom: 0; /* No bottom margin for the last widget */
    border-bottom: none; /* No divider after the last widget */
    padding-bottom: 0;
}

/* Widget Titles (covers .widget_block h2.wp-block-heading and older .widgettitle) */
#sidebar .widget_block h2.wp-block-heading,
#sidebar .widgettitle {
    font-family: 'Montserrat', 'Arial', sans-serif; /* Consistent heading font */
    font-size: 1.15em; /* Slightly larger, clear widget titles */
    color: #212529;   /* Dark, readable title color */
    margin-bottom: 18px; /* Space below the title */
    padding-bottom: 8px;  /* Space for potential underline or bottom border */
    border-bottom: 2px solid #007bff; /* Accent color underline for titles */
    font-weight: 600; /* Slightly bolder titles */
    text-transform: uppercase; /* Optional: for a more formal look */
    letter-spacing: 0.03em; /* Optional: slight letter spacing */
}

/* Lists within widgets (e.g., categories, recent posts) */
#sidebar .widget ul {
    list-style: none;   /* Remove default bullet points */
    padding-left: 0;    /* Remove default padding */
    margin: 0;
}

#sidebar .widget ul li {
    margin-bottom: 10px; /* Space between list items */
}

#sidebar .widget ul li a {
    color: #495057;        /* Subtly softer link color */
    text-decoration: none;
    display: block;         /* Make the entire area clickable */
    padding: 8px 12px;      /* Padding for a larger clickable area */
    border-radius: 4px;     /* Slightly rounded corners for links on hover */
    transition: background-color 0.25s ease, color 0.25s ease, padding-left 0.25s ease;
    position: relative;
}

#sidebar .widget ul li a:hover {
    background-color: #e9ecef; /* Light background on hover */
    color: #0056b3;          /* Darker blue on hover */
    padding-left: 18px;       /* Indent on hover for a nice effect */
}

/* Optional: Add an icon before links on hover (using Font Awesome or SVGs would be better) */
/*
#sidebar .widget ul li a:hover::before {
    content: '»'; // Simple arrow
    position: absolute;
    left: 8px;
    color: #007bff;
}
*/

/* Search Widget Specifics (if you want to style the search form) */
#sidebar .widget_search .wp-block-search__label { /* Or just .widget_search label */
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #343a40;
}

#sidebar .widget_search .wp-block-search__input { /* Or .widget_search input[type="search"] */
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.95em;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#sidebar .widget_search .wp-block-search__input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    outline: none;
}

#sidebar .widget_search .wp-block-search__button { /* Or .widget_search input[type="submit"] */
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
    margin-top: 8px; /* If button is separate */
}

#sidebar .widget_search .wp-block-search__button:hover {
    background-color: #0056b3;
}

/* --- Footer --- */
footer {
    background-color: #343a40; /* Dark footer */
    color: #f8f9fa; /* Light text on dark background */
    padding: 30px 0;
    font-size: 0.9em;
}

footer a {
    color: #adb5bd !important; /* Lighter links for footer */
}

footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

#footer-box .footer-inner {
    text-align: center;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .post-list-item {
        margin-left: 10px;
        margin-right: 10px;
    }
    #main-contents, #sidebar {
        padding-left: 15px;
        padding-right: 15px;
    }
}