/*
Theme Name: Blanky
Author: miroku
Author URI: https://profiles.wordpress.org/369work/
Description: Blanky is a simple and clean WordPress theme designed. Start your site with Blanky.
Version: 1.3
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: block-patterns, block-styles, one-column, custom-logo, editor-style, featured-images, full-site-editing, translation-ready
Text Domain: blanky
Domain Path: /languages

This theme, like WordPress, is licensed under the GPL.
*/

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

:root :where(.wp-block-group) {
    padding: 0;
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

:where(.wp-site-blocks)>*,
:root :where(.is-layout-constrained)>*,
:root :where(.is-layout-flow)>* {
    margin-block-start: 0;
    margin-block-end: 0;
}

.wp-block-post {
    width: 100%;
    max-width: 1200px;
    padding: 2rem 1rem;
}

:where(.wp-block-group.has-background) {
    padding: 0;
}

.wp-block-navigation-item a {
    text-decoration: none;
    color: inherit;
    padding: .5rem 1rem;
}

.wp-block-post-comments-form h3.comment-reply-title {
    font-size: 1.5rem;
    color: #005A9C;
}



h2.wp-block-heading:not(.section-title),
h3.wp-block-heading:not(.section-title),
.wp-block-post-comments-form h3.comment-reply-title {
    margin-bottom: 1rem;
}

h3.wp-block-heading:not(.category-title) {
    margin-bottom: 1rem;
}

.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open.wp-block-navigation__responsive-container-open:hover {
    color: #00CFFF;
}

.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
    width: 3rem;
    height: 3rem;
}

.wp-block-navigation__responsive-container {
    display: none;
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 250px;
    inset: 0;
}


.wp-block-button__link {
    transition: background-color 0.3s ease;
}

.wp-block-button__link:hover {
    color: #fff;
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.3s ease;
    border-radius: .5rem;
}

.wp-block-button:hover {
    /* 見出しブロックのスタイル名と類似 */
    background-color: #0ea5e9;
    color: #fff;
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.3s ease;
    border-radius: .5rem;
}

h2.wp-block-post-title {
    text-align: left;
    color: #8b5cf6;

}

.wp-block-post-terms {
    font-size: 0.9rem;
}

.form-submit {
    margin: 1rem 0;
}

button {
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    touch-action: manipulation;
}


/***** This Theme Style *******/
html,
body {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", serif;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .post-navigation,
    .modern-author-box {
        display: none;
    }

    .modern-post-title {
        color: #000000 !important;
    }
}

.wp-site-blocks {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
}

header {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}

main {
    width: 100%;
    padding: 0;
    margin: 0 auto;
    flex: 1;
}

footer {
    width: 100%;
    padding: 0;
    margin: 0 auto;
}


/* Override parent theme container with Tailwind-inspired responsive containers */
.container {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

/* Tailwind CSS Container Breakpoints */
/* sm: 640px */
@media (min-width: 640px) {
    .container {
        max-width: 640px !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
}

/* md: 768px */
@media (min-width: 768px) {
    .container {
        max-width: 768px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .container {
        max-width: 1024px !important;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

/* xl: 1280px */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px !important;
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }
}

/* 2xl: 1536px */
@media (min-width: 1536px) {
    .container {
        max-width: 1536px !important;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* HD 1920px */
@media (min-width: 1920px) {
    .container {
        max-width: 1920px !important;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
}

/* Article Container */
article.wp-block-group {
    position: relative;
    padding: 2.5rem 0;
}

/* Enhanced Post Title */
h1.wp-block-post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #000000;
    margin-bottom: 2rem;
    position: relative;

    /* Better line breaking control for titles */
    word-spacing: 0.1em;
    /* Prevent awkward breaks in Japanese text */
    line-break: strict;
}

/* Subtle accent line under title */
h1.wp-block-post-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    border-radius: 2px;
}


/* Post Meta Styling */
.wp-block-group .wp-block-post-date,
.wp-block-group .wp-block-post-terms {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
}

.wp-block-post-date {
    position: relative;
    padding-right: 1.5rem;
}

.wp-block-post-date::after {
    content: '•';
    position: absolute;
    right: 0.75rem;
    color: #cccccc;
}

/* Featured Image Enhancement */
.wp-block-post-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wp-block-post-featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.wp-block-post-featured-image img {
    transition: transform 0.3s ease;
}

.wp-block-post-featured-image:hover img {
    transform: scale(1.02);
}

/* Content Styling */
.wp-block-post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #2a2a2a;
}

.wp-block-post-content p {
    margin-bottom: 1.5rem;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #000000;
}

.wp-block-post-content h2 {
    font-size: 2rem;
    border-left: 4px solid #000000;
    padding-left: 1rem;
}

.wp-block-post-content h3 {
    font-size: 1.5rem;
    position: relative;
}

.wp-block-post-content h3::before {
    content: '#';
    color: #cccccc;
    margin-right: 0.5rem;
    font-weight: 400;
}

/* Tags Styling */
.wp-block-post-terms.is-style-post-terms-1 a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin: 0.25rem 0.5rem 0.25rem 0;
    background-color: #f8f8f8;
    color: #333333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.wp-block-post-terms.is-style-post-terms-1 a:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-1px);
}

/* Author Box Enhancement */
.wp-block-post-author {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.wp-block-post-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
}

/* Separator Styling */
.wp-block-separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e0e0e0 20%, #e0e0e0 80%, transparent 100%);
    margin: 2.5rem 0;
}

/* Comments Section */
.wp-block-post-comments-form {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    article.wp-block-group {
        padding: 2rem 0;
    }

    h1.wp-block-post-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
    }

    .wp-block-post-content {
        font-size: 1rem;
    }

    .wp-block-post-author {
        padding: 1.5rem;
    }
}

/* Subtle animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

article.wp-block-group > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Selection styling */
::selection {
    background-color: #000000;
    color: #ffffff;
}

::-moz-selection {
    background-color: #000000;
    color: #ffffff;
}
/* ========================================
   ENHANCED PATTERN STYLES
   ======================================== */

/* Post Header */
.post-header {
    margin-bottom: 2rem;
}

.modern-post-title {
    position: relative;
    margin-bottom: 1.5rem !important;
}

/* Post Meta */
.post-meta {
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.post-date-published,
.post-date-modified {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
}

.post-date-modified {
    font-style: italic;
}

.post-date-modified::before {
    content: '(Updated: ';
}

.post-date-modified::after {
    content: ')';
}

.post-categories a {
    background-color: #000000;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.post-categories a:hover {
    background-color: #333333;
    transform: translateY(-1px);
}

/* Modern Featured Image */
.modern-featured-image {
    position: relative;
    margin: 2rem 0;
}

.modern-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Post Content Enhancement */
.modern-post-content {
    position: relative;
}

.modern-post-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -2rem;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #000000 0%, transparent 100%);
    opacity: 0.1;
}

/* Post Footer */
.post-footer {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Tags Section */
.post-tags-section {
    margin-bottom: 2rem;
}

.tags-heading {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #333333;
    margin-bottom: 1rem;
    position: relative;
}

.tags-heading::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #000000;
}

.modern-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Author Box Enhancement */
.modern-author-box {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.modern-author-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #000000 0%, #666666 50%, #000000 100%);
}

.modern-author-box .wp-block-post-author__avatar {
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-author-box .wp-block-post-author__byline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666666;
    font-weight: 600;
}

.modern-author-box .wp-block-post-author__name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin: 0.5rem 0;
}

.modern-author-box .wp-block-post-author__bio {
    color: #555555;
    line-height: 1.6;
    font-style: italic;
}

/* Post Navigation */
.post-navigation {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #fafafa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.post-navigation .wp-block-post-navigation-link {
    flex: 1;
    text-align: center;
}

.post-navigation .wp-block-post-navigation-link a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: #333333;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.post-navigation .wp-block-post-navigation-link a:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .modern-post-content::before {
        display: none;
    }

    .modern-author-box {
        padding: 1.5rem;
    }

    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .post-navigation .wp-block-post-navigation-link {
        text-align: left;
    }
}

/* Content-specific containers for better readability */
.wp-block-post-content {
    max-width: 65ch; /* Optimal reading width */
    margin-left: auto;
    margin-right: auto ;
}

/* Wide elements can use more space but still have limits */
.alignwide {
    max-width: min(1200px, 90vw);
    margin-left: auto;
    margin-right: auto;
}

/* Full width elements respect container boundaries */
.alignfull {
    width: 100%;
    max-width: 100%;
}

/* ========================================
   MORE POSTS SECTION - MODERN DESIGN
   ======================================== */

/* Section Container */
.modern-more-posts-section {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid #e0e0e0;
    padding: 4rem 0;
    margin-top: 3rem;
}

/* Header */
.more-posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.more-posts-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    position: relative;
}

.more-posts-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    border-radius: 2px;
}

.more-posts-subtitle {
    font-size: 1.125rem;
    color: #666666;
    font-style: italic;
    margin: 0;
}

/* Posts Grid */
.modern-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Post Card */
.modern-post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
}

.modern-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #cccccc;
}

/* Featured Image */
.card-featured-image {
    position: relative;
    overflow: hidden;
}

.card-featured-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.modern-post-card:hover .card-featured-image img {
    transform: scale(1.05);
}

.card-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-post-card:hover .card-featured-image::after {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

/* Card Meta */
.card-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-date {
    color: #666666;
    font-weight: 500;
}

.card-category a {
    background-color: #f0f0f0;
    color: #333333;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.card-category a:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Card Title */
.card-title {
    margin-bottom: 1rem;
}

.card-title a {
    color: #000000;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #333333;
}

/* Card Excerpt */
.card-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: 1rem;
}

.card-author {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
}

.card-read-more a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
}

.card-read-more a:hover {
    color: #333333;
    transform: translateX(2px);
}

.card-read-more a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #000000;
    transition: width 0.2s ease;
}

.card-read-more a:hover::after {
    width: 100%;
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 3rem;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-more-posts-section {
        padding: 2rem 0;
    }

    .modern-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-content {
        padding: 1rem;
    }

    .more-posts-title {
        font-size: 1.75rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .modern-posts-grid {
        gap: 1rem;
    }

    .card-content {
        padding: 0.75rem;
    }
}

/* Animation for cards appearing */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-post-card {
    animation: cardFadeIn 0.6s ease-out;
}

.modern-post-card:nth-child(2) {
    animation-delay: 0.1s;
}

.modern-post-card:nth-child(3) {
    animation-delay: 0.2s;
}

.modern-post-card:nth-child(4) {
    animation-delay: 0.3s;
}

.modern-post-card:nth-child(5) {
    animation-delay: 0.4s;
}

.modern-post-card:nth-child(6) {
    animation-delay: 0.5s;
}
/* ========================================
   MORE POSTS CARDS - HEIGHT & TITLE FIX
   ======================================== */

/* Post Cards Grid - Equal Height */
.wp-block-query .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Individual Post Card - Flexbox for equal height */
.wp-block-query .wp-block-post-template > * {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.wp-block-query .wp-block-post-template > *:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #cccccc;
}

/* Featured Image Container */
.wp-block-query .wp-block-post-featured-image {
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
}

.wp-block-query .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wp-block-query .wp-block-post-template > *:hover .wp-block-post-featured-image img {
    transform: scale(1.05);
}

/* Card Content Area */
.wp-block-query .wp-block-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* Post Title - Character Limit */
.wp-block-query .wp-block-post-title {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.wp-block-query .wp-block-post-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wp-block-query .wp-block-post-title a:hover {
    color: #333333;
}

/* Post Excerpt - Flexible Height */
.wp-block-query .wp-block-post-excerpt {
    flex: 1;
    margin-bottom: 1rem;
}

.wp-block-query .wp-block-post-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Post Meta - Fixed at Bottom */
.wp-block-query .wp-block-post-date {
    flex-shrink: 0;
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .wp-block-query .wp-block-post-template {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .wp-block-query .wp-block-post-featured-image {
        height: 180px;
    }

    .wp-block-query .wp-block-group {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .wp-block-query .wp-block-post-template {
        gap: 1rem;
    }

    .wp-block-query .wp-block-post-featured-image {
        height: 160px;
    }

    .wp-block-query .wp-block-group {
        padding: 0.75rem;
    }
}

/* ========================================
   MORE POSTS SECTION - MODERN DESIGN
   ======================================== */

/* Section Container */
.modern-more-posts-section {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid #e0e0e0;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

/* Header */
.more-posts-header {
    text-align: center;
    margin-bottom: 3rem;
}

.more-posts-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    position: relative;
}

.more-posts-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #000000 0%, #666666 100%);
    border-radius: 2px;
}

.more-posts-subtitle {
    font-size: 1.125rem;
    color: #666666;
    font-style: italic;
    margin: 0;
}

/* Posts Grid */
.modern-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Post Card */
.modern-post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #cccccc;
}

/* Featured Image with Fallback */
.card-featured-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-featured-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modern-post-card:hover .card-featured-image img {
    transform: scale(1.08);
}

/* Fallback for missing images */
.card-featured-image:not(:has(img))::before {
    content: '📰';
    font-size: 3rem;
    color: #999999;
    opacity: 0.5;
}

.card-featured-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-post-card:hover .card-featured-image::after {
    opacity: 1;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Card Meta */
.card-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.card-date {
    color: #666666;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-category a {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-category a:hover {
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card Title */
.card-title {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.card-title a {
    color: #000000;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a:hover {
    color: #333333;
}

/* Card Excerpt */
.card-excerpt {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

.card-excerpt p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-author {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-author .wp-block-post-author__avatar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-read-more a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #ffffff;
}

.card-read-more a:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 3rem;
    background-color: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-more-posts-section {
        padding: 2rem 1rem;
    }

    .modern-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-content {
        padding: 1rem;
    }

    .more-posts-title {
        font-size: 1.75rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .card-featured-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .modern-posts-grid {
        gap: 1rem;
    }

    .card-content {
        padding: 0.75rem;
    }

    .card-featured-image {
        height: 160px;
    }
}

/* Animation for cards appearing */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-post-card {
    animation: cardFadeIn 0.6s ease-out;
}

.modern-post-card:nth-child(1) { animation-delay: 0s; }
.modern-post-card:nth-child(2) { animation-delay: 0.1s; }
.modern-post-card:nth-child(3) { animation-delay: 0.2s; }
.modern-post-card:nth-child(4) { animation-delay: 0.3s; }
.modern-post-card:nth-child(5) { animation-delay: 0.4s; }
.modern-post-card:nth-child(6) { animation-delay: 0.5s; }
/* ========================================
   FRONT PAGE POSTS GRID
   ======================================== */

/* Override for front page query */
.wp-block-query.alignfull .modern-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
}

/* Ensure front page cards use the same styling */
.wp-block-query.alignfull .modern-post-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wp-block-query.alignfull .modern-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #cccccc;
}

/* Front page specific responsive adjustments */
@media (max-width: 1024px) {
    .wp-block-query.alignfull .modern-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .wp-block-query.alignfull .modern-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Remove old hover-lift class styles if they exist */
.hover-lift {
    transition: none !important;
}

.hover-lift:hover {
    transform: none !important;
}
/* ========================================
   FRONT PAGE LAYOUT
   ======================================== */

/* Main Container */
.front-page-main {
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #666666;
    font-style: italic;
    margin: 0;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #000000;
}

/* Featured Section - ZENN Style */
.featured-section {
    margin-bottom: 4rem;
    padding: 0 2rem;
    width: 100%;
    max-width: 100%;
}

.featured-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    gap: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 400px;
    margin: 0 !important;
}

.featured-post-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.featured-image,
.featured-post-card .wp-block-post-featured-image {
    flex: 0 0 45% !important;
    height: auto !important;
    min-height: 400px !important;
    background: #f9fafb;
    overflow: hidden;
    display: block !important;
}

.featured-image img,
.featured-post-card .wp-block-post-featured-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    transition: none;
    display: block !important;
}

/* Fallback for missing featured image */
.featured-post-card .wp-block-post-featured-image:empty::before {
    content: '';
    display: block;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.featured-content {
    flex: 1 !important;
    padding: 3rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
    justify-content: center;
}

.featured-category a {
    background: #dbeafe;
    color: #1d4ed8;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-category a:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.featured-title a {
    color: #111827;
    text-decoration: none;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    display: block;
    transition: color 0.2s ease;
    margin: 1rem 0;
}

.featured-title a:hover {
    color: #3b82f6;
}

.featured-excerpt {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.125rem;
    flex: 1;
    margin: 1rem 0;
}

.featured-excerpt p {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.7;
}

.featured-meta {
    border-top: 1px solid #f3f4f6;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.featured-author,
.featured-date {
    font-size: 0.95rem;
    color: #9ca3af;
    font-weight: 500;
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-author .wp-block-post-author__avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Recent Posts Section - ZENN Style */
.recent-posts-section {
    padding: 0 2rem;
    margin-bottom: 4rem;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* ZENN-inspired Card Design */
.recent-post-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.recent-post-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

/* Small thumbnail like ZENN */
.recent-image {
    height: 120px;
    overflow: hidden;
    background: #f9fafb;
    position: relative;
}

.recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none; /* Remove zoom effect for cleaner look */
}

/* Content area with more padding */
.recent-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ZENN-style category tag */
.recent-category a {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.2s ease;
}

.recent-category a:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Clean title styling */
.recent-title a {
    color: #111827;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.recent-title a:hover {
    color: #3b82f6;
}

/* Minimal excerpt */
.recent-excerpt {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Clean date styling */
.recent-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.wp-block-query-pagination {
    gap: 1rem;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    transition: all 0.2s ease;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .featured-section,
    .recent-posts-section {
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .featured-post-card {
        flex-direction: column !important;
        min-height: auto !important;
    }

    .featured-image {
        flex: none !important;
        height: 250px !important;
        min-height: 250px !important;
    }

    .featured-content {
        padding: 2rem 1.5rem !important;
        gap: 1.5rem !important;
    }

    .featured-title a {
        font-size: 1.5rem !important;
    }

    .featured-excerpt {
        font-size: 1rem !important;
    }

    .recent-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0.5rem;
    }

    .featured-content {
        padding: 1rem;
    }

    .recent-content {
        padding: 1rem;
    }
}
/* ========================================
   ZENN-INSPIRED GLOBAL ADJUSTMENTS
   ======================================== */

/* Clean typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
    color: #374151;
    background-color: #fafafa;
}

/* Section spacing like ZENN */
.hero-section {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 3rem 2rem;
}

.hero-title {
    color: #111827;
    font-weight: 800;
}

.hero-subtitle {
    color: #6b7280;
}

/* Clean section titles */
.section-title {
    color: #111827;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title::after {
    display: none; /* Remove decorative line for cleaner look */
}

/* Container adjustments */
.featured-section,
.recent-posts-section {
    background: #ffffff;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Override WordPress constrained layout for featured section */
.featured-section .wp-block-group,
.featured-section .wp-block-query,
.featured-section .featured-query {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure featured post template uses full width */
.featured-section .wp-block-post-template,
.featured-query .wp-block-post-template {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

/* Pagination ZENN style */
.wp-block-query-pagination a,
.wp-block-query-pagination .current {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination .current {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Remove excessive animations */
* {
    transition: none !important;
}

/* Only keep essential hover transitions */
.recent-post-card,
.featured-post-card,
.recent-title a,
.featured-title a,
.recent-category a,
.featured-category a {
    transition: all 0.2s ease !important;
}

/* Clean focus states */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile adjustments for ZENN style */
@media (max-width: 768px) {
    .featured-section,
    .recent-posts-section {
        margin: 1rem 0;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .recent-posts-grid {
        gap: 1rem;
    }

    .featured-post-card {
        flex-direction: column;
    }

    .featured-image {
        flex: none;
        height: 160px;
    }
}
/* Additional responsive adjustments for proper 3-column layout */
@media (max-width: 1024px) {
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 769px) {
    .recent-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Override any conflicting grid settings */
.recent-posts-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* ========================================
   QUERY DEBUGGING AND FIXES
   ======================================== */

/* Featured Article - Force horizontal layout */
.featured-query {
    width: 100% !important;
    max-width: 100% !important;
}

.featured-query .wp-block-post-template {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

.featured-query .wp-block-post-template > * {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Force horizontal layout for featured post card */
.featured-post-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure featured image appears */
.featured-post-card .featured-image {
    display: block !important;
    flex: 0 0 45% !important;
    order: 1 !important;
}

/* Ensure featured content appears */
.featured-post-card .featured-content {
    display: block !important;
    flex: 1 !important;
    order: 2 !important;
}

/* Override any WordPress layout constraints */
.featured-post-card > * {
    margin: 0 !important;
    padding: 0 !important;
}

.featured-post-card .wp-block-post-featured-image {
    margin: 0 !important;
    padding: 0 !important;
}

/* Recent Posts - Force grid layout */
.recent-posts-query .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    width: 100% !important;
}

/* Ensure each recent post card takes full height */
.recent-posts-query .wp-block-post-template > * {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* No results message styling */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* Mobile responsive for query grid */
@media (max-width: 768px) {
    .wp-block-query .wp-block-post-template,
    .recent-posts-query .wp-block-post-template {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .wp-block-query .wp-block-post-template,
    .recent-posts-query .wp-block-post-template {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}