@charset "UTF-8";

/* 
 * Single Post Redesign (v3 Unified - Mobile First Design)
 * Focus: Clean, Bold, Consistent Vertical Layout
 */

/* ==============================================
   1. Typography & Reset (Base)
   ============================================== */
body.single .entry-content {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
    line-height: 2 !important;
    font-size: 16px !important;
    color: #444 !important;
}

/* Ensure no horizontal overflow from Full Width elements */
body {
    overflow-x: hidden !important;
}

/* ==============================================
   2. Hero Section (Full Width)
   ============================================== */
.custom-post-hero {
    position: relative;
    width: 100% !important;
    /* Fit within main column */
    /* Remove fixed height to respect image aspect ratio */
    height: auto !important;
    min-height: 400px !important;
    /* Minimum for very short images */
    margin: 0 0 60px 0 !important;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Optional: Negative margins */
    margin-left: -20px !important;
    width: calc(100% + 40px) !important;
    border-radius: 4px 4px 0 0 !important;
}

/* Adjust for larger screens */
@media screen and (min-width: 1024px) {
    .custom-post-hero {
        margin-left: -29px !important;
        width: calc(100% + 58px) !important;
    }
}

.hero-bg-img {
    position: relative !important;
    /* Change to relative so it takes space */
    width: 100% !important;
    height: auto !important;
    /* Maintain aspect ratio */
    object-fit: contain !important;
    /* Or cover, but relative+auto usually means intrinsic */
    display: block !important;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.hero-content {
    position: absolute;
    /* Overlay on top of the image */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    max-width: 900px;
    width: 90%;
    padding: 20px;
    color: #fff;
}

/* Hero Meta Absolute */
.hero-cat-absolute {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.hero-cat-absolute a {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.hero-cat-absolute a:hover {
    background: #fff;
    color: #333 !important;
    border-color: #fff;
}

.hero-date-absolute {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    color: #fff;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.hero-date-absolute .hero-date-text {
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 12px;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
}

.hero-date-absolute i {
    margin-right: 6px;
    color: #ddd;
    font-size: 0.9em;
}

.hero-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0 !important;
}

/* ==============================================
   2.5 Affiliate Disclosure (Stealth Marketing)
   ============================================== */
.affiliate-notice {
    width: 100%;
    margin: 0 0 40px 0;
    /* Remove negative margin, standard spacing */
    background: #f9f9f9;
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px;
    /* Slight roundness */
    font-size: 0.75rem;
    color: #888;
}

.affiliate-notice p {
    margin: 0;
}

.affiliate-notice a {
    text-decoration: underline;
    color: #666;
}

/* Adjust Hero margin */
.custom-post-hero {
    margin-bottom: 40px !important;
    /* Restore some margin */
}

/* ==============================================
   3. Main Content Area
   ============================================== */
.custom-content-wrapper {
    max-width: 840px !important;
    /* Slightly wider for modern feel */
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================
   4. Table of Contents (TOC) - TECH / SHARP / CLEAN
   ============================================== */
.toc {
    display: block !important;
    /* Prevent table nesting issues */
    margin: 60px auto !important;
    min-width: 60%;
    max-width: 800px;
    border: 2px solid #000 !important;
    /* Single Strong Border */
    border-radius: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    position: relative !important;
}

.toc-title {
    display: block !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 15px 0 !important;
    text-align: center !important;
    margin: 0 !important;
    letter-spacing: 0.1em;
    border: none !important;
    /* Remove separate border */
    position: relative;
    cursor: pointer;
}

/* Toggle Button Styling */
.toc-title::after {
    content: '[開く]';
    display: inline-block;
    margin-left: 15px;
    font-size: 0.8em;
    font-weight: normal;
    color: #e67e22 !important;
    vertical-align: middle;
}

.toc-checkbox:checked+.toc-title::after {
    content: '[閉じる]';
}

.toc-toggle,
.toc-visible,
.toc-checkbox {
    display: none !important;
}

.toc-content {
    padding: 40px !important;
    /* Increased general padding */
    border-top: 1px solid #000 !important;
    /* Separator only */
    background: #fff !important;
}

/* Unified Counter Logic */
.toc-content ol {
    counter-reset: toc-counter;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    /* Ensure block */
}

/* Top Level Items (H2) */
.toc-content>ol>li {
    margin-bottom: 24px !important;
    /* 24px is fine */
    font-weight: 700;
    color: #333;
    border-bottom: 1px dashed #eee;
    padding-bottom: 15px;
    /* Comfortable padding */
    position: relative;
    padding-left: 36px !important;
    /* Increased for "10." possibility */
    line-height: 1.6;
}

.toc-content>ol>li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Counter (H2) */
.toc-content>ol>li::before {
    counter-increment: toc-counter;
    content: counter(toc-counter) ".";
    color: #e67e22;
    font-weight: 800;
    font-family: "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    /* Increased from 25px */
    text-align: left;
    font-size: 1.1em;
}

/* Nested Items Spacing (H3) */
.toc-content li ol {
    margin-top: 18px !important;
    /* Increased from 15px */
    margin-bottom: 8px !important;
    padding-left: 0 !important;
    border-top: none !important;
    counter-reset: sub-counter;
    /* NEW sub-counter reset if needed, but 'counters' handles it */
}

/* H3/H4 Items */
.toc-content li ol li {
    margin-top: 16px !important;
    /* ADDED top margin */
    margin-bottom: 16px !important;
    /* Increased from 12px for breathing room */
    font-weight: 400 !important;
    font-size: 0.95em;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    padding-left: 55px !important;
    /* Significantly increased for "3.10.1." etc */
    color: #555;
    position: relative;
    line-height: 1.6;
    /* Increased line-height */
}

/* Counter (H3/H4) - Hierarchical Numbering */
.toc-content li ol li::before {
    counter-increment: toc-counter;
    /* Continue main counter */
    /* Using `counters` to show hierarchy: 1.1., 1.2., etc. */
    content: counters(toc-counter, ".") ".";
    color: #e67e22 !important;
    /* Same color as H2 */
    font-weight: 700 !important;
    font-family: "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    /* Increased width to accommodate "10.10.10." */
    text-align: left;
    font-size: 1em;
    /* Ensure it doesn't wrap awkwardly */
    white-space: nowrap;
}

/* Remove default inheritance if accidentally applied */
.toc-content li ol li:last-child {
    margin-bottom: 0 !important;
}

/* Links */
.toc-content ol li a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
    display: block;
    /* Larger hit area */
}

.toc-content ol li a:hover {
    color: #e67e22;
    text-decoration: underline;
}

/* Mobile Responsive TOC */
@media screen and (max-width: 768px) {
    .toc {
        min-width: 100% !important;
        /* Full width */
        width: 100% !important;
        margin: 40px 0 !important;
        border-width: 2px !important;
    }

    .toc-content {
        padding: 20px !important;
    }
}

/* Reset Generic List Styles for TOC */
/* This prevents the "Matryoshka" double-border effect */
.entry-content .toc ol,
.entry-content .toc ul,
.toc-content ol,
.toc-content ul {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* ==============================================
   5. Headings (Tech / Geometric / Sharp)
   ============================================== */
/* Clear overrides */
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    position: relative !important;
    font-family: inherit !important;
}

/* H2: Sharp Black Underline with Geometric Accent */
.entry-content h2 {
    font-size: 2.2rem !important;
    color: #000 !important;
    /* Jet Black */
    font-weight: 800 !important;
    /* Ultra Bold */
    margin: 90px 0 45px !important;
    padding: 0 0 15px 0 !important;
    border-bottom: 3px solid #000 !important;
    /* Thick solid line */
    line-height: 1.3 !important;
    letter-spacing: 0.02em;
}

/* Main Accent Color: Orange #e67e22 */
.entry-content h2::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: #e67e22;
    /* Brand Orange */
    position: absolute;
    bottom: -11px;
    /* Halfway overlap */
    left: 0;
}

/* H3: Modern Bottom Accent (No Side Bar) */
.entry-content h3 {
    font-size: 1.6rem !important;
    margin: 70px 0 30px !important;
    padding: 0 0 10px 0 !important;
    background: transparent !important;
    color: #000 !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: 4px solid #e67e22 !important;
    /* Thick Orange Underline */
    display: inline-block !important;
    /* Shrink to fit text */
    width: auto !important;
    min-width: unset !important;
}

/* H4: Highlighting Marker */
.entry-content h4 {
    font-size: 1.25rem !important;
    margin: 40px 0 20px !important;
    padding-left: 25px !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    color: #333 !important;
    position: relative !important;
}

/* Solid Square Icon */
.entry-content h4::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #e67e22;
    /* Brand Orange */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ==============================================
   6. Link Cards (UNIFIED MOBILE LAYOUT)
   ============================================== */
/* Apply 'Mobile Style' to ALL SCREEN SIZES */
.blogcard {
    display: flex !important;
    flex-direction: column !important;
    /* ALWAYS Column */
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
    padding-bottom: 50px !important;
    /* Space for Bottom Footer */
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    background: #fff !important;
    margin: 40px 0 !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

/* Thumbnail Area (Full Width, Fixed Height) */
.blogcard-thumbnail {
    flex: 0 0 auto !important;
    width: 100% !important;
    /* Height adjustments per screen size */
    height: 280px !important;
    /* Default for wider screens */
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.blogcard-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    filter: brightness(0.65);
    /* Darken for overlay text */
    transition: transform 0.4s ease;
}

.blogcard:hover .blogcard-thumbnail img {
    transform: scale(1.05);
    /* Zoom effect */
}

/* Title Overlay (Centered in Image) */
.blogcard-title {
    position: absolute !important;
    top: 140px !important;
    /* Center of 280px Image */
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    text-align: center !important;
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    font-size: 1.5rem !important;
    /* Larger for PC */
    line-height: 1.4 !important;
    z-index: 5 !important;
    margin: 0 !important;
    pointer-events: none;
    font-weight: 700 !important;
}

/* Content (Snippet) below Image */
.blogcard-content {
    flex: 1 1 auto !important;
    padding: 15px 20px 0 20px !important;
    margin: 0 !important;
    display: block !important;
}

.blogcard-snippet {
    font-size: 0.95rem !important;
    /* Slightly larger text */
    color: #555 !important;
    line-height: 1.6 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    /* Standard property */
    /* Allow 3 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 5px !important;
    margin-top: 5px !important;
    /* Space from top */
}

/* Footer (Flexible Split: Site Left / Date Right) */
.blogcard-footer {
    position: absolute !important;
    bottom: 12px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-direction: row !important;
    font-size: 0.8rem !important;
    /* Readable size */
    color: #999 !important;
    z-index: 10;
    pointer-events: none;
}

/* Footer Alignment Logic */
.blogcard-site {
    order: 1 !important;
    margin-right: auto !important;
    /* LEFT */
    display: flex !important;
    align-items: center !important;
}

.blogcard-site img {
    margin: 0 5px 0 0 !important;
    vertical-align: middle !important;
    border-radius: 50% !important;
}

.blogcard-post-date,
.internal-blogcard-date {
    order: 2 !important;
    margin-left: auto !important;
    /* RIGHT */
    text-align: right !important;
}

/* Label (Optional) */
.blogcard-label {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10 !important;
    background: #e67e22;
    color: #fff;
    padding: 3px 12px;
    font-size: 0.75rem;
}

/* REMOVE READ MORE globally */
.blogcard::after {
    display: none !important;
    content: '' !important;
}

/* ----------------------------------------------
   Mobile-Specific Adjustments (Refinement)
   ---------------------------------------------- */
@media screen and (max-width: 768px) {

    /* Height adjustments for smaller screens */
    .blogcard-thumbnail {
        height: 200px !important;
    }

    .blogcard-title {
        top: 100px !important;
        /* Center of 200px */
        font-size: 1.1rem !important;
    }

    .blogcard-content {
        padding: 15px 15px 0 15px !important;
    }

    .blogcard-snippet {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        /* Standard property */
        /* Reduce lines for mobile */
    }

    .blogcard-footer {
        padding: 0 15px !important;
        font-size: 0.65rem !important;
    }

    .blogcard-label {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
    }

    /* === MOBILE HERO ADJUSTMENT === */
    .custom-post-hero {
        height: auto !important;
        /* Let image dictate height */
        min-height: auto !important;
        /* Remove large minimum */
        margin-left: -20px !important;
        width: calc(100% + 40px) !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
        /* Reduce title size */
        line-height: 1.3 !important;
    }

    .custom-post-hero .hero-content {
        padding: 10px !important;
    }

    .custom-content-wrapper {
        padding: 0 5%;
    }
}


/* ==============================================
   7. External Link (Reverted to Safe/Clean)
   ============================================== */
.ref-link {
    background-color: #f7f7f7;
    margin: 30px 0;
    padding: 20px 20px 20px 55px;
    /* Space for icon */
    border-radius: 6px;
    position: relative;
    border-left: 5px solid #666;
    display: flex !important;
    align-items: center;
    min-height: 60px;
}

.ref-link::before {
    content: '\f0c1';
    /* FontAwesome Link Icon */
    font-family: "Font Awesome 6 Free";
    /* Updated to 6 */
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    /* Adjusted for icon */
    color: #666;
    /* Match border color */
    line-height: 1;
}

.ref-link::after {
    content: 'REFERENCE';
    position: absolute;
    right: 15px;
    top: 5px;
    font-size: 0.6rem;
    color: #ccc;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.ref-link a {
    font-weight: 700;
    color: #333 !important;
    text-decoration: underline;
    line-height: 1.5;
}

/* ==============================================
   8. Tables & Lists & DL (Reverted to Safe/Clean) & DL RESTORED
   ============================================== */
/* Modern Tables (Clean) */
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 50px 0 !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.entry-content th {
    background: #333 !important;
    color: #fff !important;
    padding: 15px !important;
    border: 1px solid #333 !important;
    font-family: sans-serif;
    /* Revert font */
    letter-spacing: normal;
}

.entry-content td {
    padding: 15px !important;
    border: 1px solid #ddd !important;
    background: #fff !important;
}

.entry-content tr:nth-child(even) td {
    background: #fcfcfc !important;
}

/* Scroll Hint Fix */
.scroll-hint::after,
.scroll-hint::before {
    display: none !important;
}

.scroll-hint {
    background: transparent !important;
}

/* Lists (Tech/Sharp) */
.entry-content ul,
.entry-content ol {
    margin: 40px 0 !important;
    padding: 30px 40px !important;
    background: #fff !important;
    border: 2px solid #eee !important;
    border-radius: 0 !important;
    /* Sharp corners */
    list-style: none !important;
    position: relative;
}

/* UL Item (Square Tech Icon) */
.entry-content ul li {
    margin-bottom: 25px !important;
    /* More space */
    padding-left: 25px !important;
    position: relative !important;
    border-bottom: 1px dashed #eee !important;
    padding-bottom: 15px !important;
}

.entry-content ul li::before {
    content: '■';
    /* Tech Square */
    color: #e67e22;
    /* Orange Accent */
    font-size: 0.8em;
    position: absolute;
    left: 0;
    top: 0.2em;
    /* Align visually */
}

.entry-content ul li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    opacity: 1 !important;
    /* Ensure visibility */
    display: block !important;
}

/* OL Item (Tech Numbering 01. 02.) */
.entry-content ol {
    counter-reset: tech-counter;
}

.entry-content ol li {
    margin-bottom: 25px !important;
    padding-left: 50px !important;
    /* Indent for number */
    position: relative !important;
    border-bottom: 1px solid #eee !important;
    /* Solid line for OL */
    padding-bottom: 15px !important;
}

.entry-content ol li::before {
    counter-increment: tech-counter;
    content: counter(tech-counter, decimal-leading-zero) ".";
    /* 01. 02. */
    color: #e67e22;
    /* Orange Number */
    font-weight: 800;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.2em;
    line-height: 1;
}

.entry-content ol li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* DL (Tech/Sharp Style - Option B) */
.entry-content dl {
    margin: 40px 0 !important;
    padding: 30px 40px !important;
    background: #fff !important;
    border: 2px solid #eee !important;
    /* Match UL/OL */
    border-radius: 0 !important;
}

.entry-content dt {
    font-weight: 700 !important;
    background: transparent !important;
    /* Remove gray bg */
    padding: 0 0 0 25px !important;
    /* Space for icon */
    margin-top: 25px !important;
    border: none !important;
    /* Remove border */
    position: relative !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.entry-content dt::before {
    content: '■';
    /* Tech Square */
    color: #e67e22;
    /* Orange Accent */
    font-size: 0.8em;
    position: absolute;
    left: 0;
    top: 0.2em;
    /* Align visually */
}

.entry-content dt:first-child {
    margin-top: 0 !important;
}

.entry-content dd {
    margin: 10px 0 20px 0 !important;
    padding: 0 0 0 25px !important;
    /* Indent to match text start */
    line-height: 1.8 !important;
    color: #555 !important;
}

.entry-content dd:last-child {
    margin-bottom: 0 !important;
}

/* ==============================================
   9. Footer & Related & Archive Button
   ============================================== */
.article-footer-simple {
    margin-top: 100px;
    padding-top: 60px;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Archive Button */
.archive-button-wrap {
    margin-top: 60px;
    text-align: center;
}

.archive-btn {
    display: inline-block;
    padding: 15px 50px;
    background: #fff;
    color: #333;
    border: 1px solid #333;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.1em;
    transition: all 0.3s;
}

.archive-btn:hover {
    background: #333;
    color: #fff;
}

/* Related Grid (More Stories) */
.custom-related-section {
    margin-top: 60px;
    margin-bottom: 100px;
    padding-top: 60px;
    border-top: 1px solid #eee;
    /* Clear separation */
}

.related-section-title {
    text-align: center;
    font-size: 1.6rem !important;
    /* Slightly smaller than 1.8 */
    margin-bottom: 50px !important;
    letter-spacing: 0.1em;
    font-weight: 700 !important;
    /* Bold for standard headers */
    color: #333;
}


.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Fixed 3 Columns on PC */
    gap: 30px;
}

/* Related Card Styling (Clean Vertical) */
.related-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.related-card:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.related-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Consistent Ratio */
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    border-radius: 0 !important;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Zoom on Hover */
.related-card:hover .related-thumb img {
    transform: scale(1.05);
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-date {
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 8px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.05em;
    display: block;
}

.related-title {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    margin: 0 !important;
}

/* Mobile Responsive Related */
@media screen and (max-width: 768px) {

    /* 1. Related Grid Adjustment */
    .related-grid {
        grid-template-columns: 1fr;
        /* Single Column on Mobile */
        gap: 40px;
    }

    .related-thumb {
        aspect-ratio: 16 / 9;
    }

    .related-title {
        font-size: 1.1rem !important;
        /* Larger on mobile for readability */
    }

    /* 2. Blog Card Adjustments (Restored) */
    .blogcard-thumbnail {
        height: 200px !important;
    }

    .blogcard-title {
        top: 100px !important;
        /* Center of 200px */
        font-size: 1.1rem !important;
    }

    .blogcard-content {
        padding: 15px 15px 0 15px !important;
    }

    .blogcard-snippet {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        /* Reduce lines for mobile */
    }

    .blogcard-footer {
        padding: 0 15px !important;
        font-size: 0.65rem !important;
    }

    .blogcard-label {
        padding: 3px 8px !important;
        font-size: 0.65rem !important;
    }

    /* 3. Hero Section Adjustment (Restored) */
    .custom-post-hero {
        height: auto !important;
        /* Let image dictate height */
        min-height: auto !important;
        /* Remove large minimum */
        margin-left: -20px !important;
        width: calc(100% + 40px) !important;
    }

    .hero-title {
        font-size: 1.5rem !important;
        /* Reduce title size */
        line-height: 1.3 !important;
    }

    .custom-post-hero .hero-content {
        padding: 10px !important;
    }

    /* 4. Hero Absolute Adjustments */
    .hero-cat-absolute {
        top: 15px;
        left: 15px;
    }

    .hero-cat-absolute a {
        padding: 4px 12px;
        font-size: 0.7rem;
    }

    .hero-date-absolute {
        bottom: 15px;
        right: 15px;
    }

    .hero-date-absolute .hero-date-text {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .custom-content-wrapper {
        padding: 0 5%;
    }

    .custom-content-wrapper {
        padding: 0 5%;
    }
}

