@charset "UTF-8";
/*
Theme Name: Yukarino Child (AFFINGER6)
Template: affinger
Description: Yukarino.net design for AFFINGER6
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Shippori+Mincho:wght@400;700&display=swap');

:root {
    --primary-color: #383838; /* Slightly softer dark grey for warmth */
    --secondary-color: #f8f5ee; /* Creamier, warm white for paper-like feel */
    --accent-color: #a8815f; /* Muted, traditional gold/brown accent */
    --text-color: #333333;
    --background-color: #fdfdfd; /* Very light, almost white, to allow texture to show */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Font Rendering Optimization */
    text-rendering: optimizeLegibility;
    font-feature-settings: "palt";
    transform: rotate(0.001deg); /* Anti-aliasing hack for Windows */
}

body.home { /* Specific to home page */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px; /* Adjust grid size for subtle texture */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.site-header {
    padding: 30px 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--secondary-color);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Shippori Mincho', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    font-size: 16px;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: 42px;
    color: var(--primary-color);
    margin: 0 0 20px;
    font-weight: 400;
}

.hero p {
    font-size: 18px;
    color: var(--text-color);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
main {
    padding: 80px 0;
}

.section-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 36px; /* Slightly larger */
    text-align: center;
    margin-bottom: 70px; /* More space for the decorative line */
    font-weight: 700;
    color: var(--primary-color);
    position: relative; /* For pseudo-element positioning */
    letter-spacing: 0.1em; /* Enhanced spacing for Japanese */
    padding-bottom: 15px; /* Space for the line */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px; /* Length of the decorative line */
    height: 3px; /* Thickness of the line */
    background-color: var(--accent-color); /* Color of the line */
    border-radius: 2px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: #fff;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02); /* Slightly more lift and scale */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* More pronounced shadow */
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    background-color: rgba(200, 159, 104, 0.1);
    border-radius: 20px;
}

.card-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    margin: 0 0 10px;
    color: var(--primary-color);
}

.card-description {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* About Section */
#about {
    background-color: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

#hito { /* Moved from inline style */
    margin-top: 80px;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}

.site-footer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.site-footer a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header-inner {
        flex-direction: column;
    }

    .logo {
        margin-bottom: 20px;
    }
    
    .nav ul {
        justify-content: center;
        width: 100%;
    }
    
    .nav li {
        margin: 0 15px;
    }

    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    main {
        padding: 60px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-title::after {
        width: 60px; /* Shorter line for smaller screens */
    }
}
/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Single Article Styles */
.single-article {
    max-width: 800px; /* Limit width for readability */
    padding: 60px 20px;
}

.article-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Reusing .card-category style but adjusting if needed */
.article-header .card-category {
    font-size: 14px;
    margin-bottom: 15px;
}

.article-title {
    font-family: 'Shippori Mincho', serif;
    font-size: 32px;
    margin: 0 0 15px;
    color: var(--primary-color);
    line-height: 1.4;
}

.article-meta {
    font-size: 14px;
    color: #888;
}

.article-thumbnail {
    margin-bottom: 50px;
    text-align: center;
}

.article-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.article-content {
    font-size: 18px; /* Further adjust font size */
    line-height: 2.3; /* Further adjust line height for readability */
    color: #444;
    margin-bottom: 60px;
}

.article-content p {
    margin-bottom: 2em; /* More space between paragraphs */
}

.article-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.back-button {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--accent-color);
    color: #fff;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .single-article {
        padding: 40px 20px;
    }
}