@charset "UTF-8";
/*
Theme Name: Ikkatsubin Theme
Theme URI: https://ikkatsubin.jp/
Description: Custom theme for Ikkatsubin, based on the existing specific design.
Version: 1.0.0
Author: Grand Foods Inc.
*/


/*
  NOTE: This theme relies on 'assets/css/index.css' for the main layout.
  The styles below are specifically for WordPress generated content (Blog posts).
*/

/* ==========================================================================
   #WORDPRESS ENTRY CONTENT (Blog Post Styles)
   ========================================================================== */
.entry-content {
    line-height: 1.8;
    color: var(--color-text-main, #333);
    font-family: var(--font-base, sans-serif);
    margin-bottom: 60px;
}

/* Post Thumbnails and List Layout */
/* Post Grid Layout */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Ensure existing .case-card styles work within the grid */
.case-card {
    min-width: 0;
    /* Override index.css min-width: 300px if it causes overflow */
    margin-bottom: 0;
    /* Override default wp behavior */
    height: 100%;
    /* Equal height cards */
    display: flex;
    flex-direction: column;
}

.case-card>a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.case-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.case-body h3 {
    flex-grow: 1;
    /* Push read-more to bottom */
}

/* Responsive Grid */
@media screen and (max-width: 1024px) {
    .case-study-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.entry-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-primary, #ff8c00);
    color: var(--color-text-main, #1a1a1a);
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--color-primary, #ff8c00);
    background: var(--color-bg-light, #f8f9fa);
    padding: 10px 15px;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--color-primary-dark, #e67e00);
}

.entry-content p {
    margin-bottom: 1.5em;
    font-size: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.5em;
}

.entry-content ul li {
    list-style-type: disc;
}

.entry-content ol li {
    list-style-type: decimal;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.entry-content blockquote {
    background: #fff8f0;
    border-left: 5px solid #ff8c00;
    margin: 30px 0;
    padding: 20px;
    font-style: italic;
    color: #555;
}

.entry-content a {
    color: #ff8c00;
    text-decoration: underline;
    transition: color 0.3s;
}

.entry-content a:hover {
    color: #e67e00;
    text-decoration: none;
}

/* Alignments */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

/* Clearfix for floats */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   #SINGLE POST LAYOUT
   ========================================================================== */
.single-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.single-main {
    flex: 1;
    min-width: 0;
}

.single-sidebar {
    width: 20%;
    min-width: 250px;
    flex-shrink: 0;
}

/* Sidebar Widgets */
.widget-recent-posts {
    background: var(--color-bg-ivory, #fffef8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary, #ff8c00);
    color: var(--color-text-main, #1a1a1a);
}

.widget-recent-posts ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.widget-recent-posts li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #ddd;
    line-height: 1.5;
    font-size: 0.95rem;
}

.widget-recent-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget-recent-posts li a {
    text-decoration: none;
    color: var(--color-text-main, #333);
    display: block;
    transition: color 0.3s;
}

.sidebar-post-thumbnail {
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.sidebar-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease;
}

.sidebar-post-thumbnail:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Also trigger zoom when hovering the link */
.widget-recent-posts li a:hover .sidebar-post-thumbnail img {
    transform: scale(1.05);
}

.sidebar-post-title {
    display: block;
    line-height: 1.4;
    font-size: 0.95rem;
}

.widget-recent-posts li a:hover {
    color: var(--color-primary, #ff8c00);
}

.widget-recent-posts li a:hover .sidebar-post-title {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .single-layout {
        flex-direction: column;
    }

    .single-sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .single-sidebar {
        min-width: 0;
    }
}

/* ==========================================================================
   #SINGLE POST HEADER (Hero)
   ========================================================================== */
.single-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align title and image at bottom */
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.single-hero-content {
    flex: 1;
    min-width: 0;
}

.case-study-label {
    display: block;
    font-size: 1rem;
    color: #ff8c00;
    /* Direct color fallback */
    color: var(--color-primary, #ff8c00);
    margin-bottom: 15px;
    font-weight: 700;
    text-align: left;
}

.single-hero-header .entry-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3;
    color: #333;
    color: var(--color-text-main, #333);
    margin: 0;
    text-align: left;
}

.single-hero-image {
    width: 25%;
    flex-shrink: 0;
}

.single-hero-image img {
    width: 100%;
    height: auto;
    /* Width matched height */
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

@media screen and (max-width: 768px) {
    .single-hero-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .single-hero-image {
        width: 100%;
    }

    .single-hero-header .entry-title {
        font-size: 1.8rem;
    }
}