:root {
    /* Color Palette - Premium Tech */
    --color-bg-body: #fff4e6;
    --color-bg-card: rgba(255, 250, 245, 0.7);
    --color-bg-card-hover: rgba(255, 250, 245, 0.9);
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-accent-gradient: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

    /* Typography */
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 70px;
    --radius-lg: 16px;
    --radius-md: 12px;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.3);
    --glass-blur: blur(12px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(at 0% 0%, rgba(251, 146, 60, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(253, 186, 116, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header - Glassmorphism */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: var(--glass-border);
    display: flex;
    align-items: center;
}

.site-header .container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-icon {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
}

.site-brand:hover .site-icon {
    transform: rotate(10deg) scale(1.1);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Box */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 280px;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 2px solid rgba(249, 115, 22, 0.2);
    border-radius: 24px;
    background: rgba(255, 250, 245, 0.8);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-muted);
}

.search-input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 250, 245, 1);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    color: var(--color-primary);
    pointer-events: none;
}

/* Social Link */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    margin: 0 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(249, 115, 22, 0.1);
}

.social-link:hover {
    background: rgba(249, 115, 22, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

/* Hero Section */
/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 4.5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: #ffffff;
    /* Plain white background */
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://res.cloudinary.com/dwnnwfudi/image/upload/w_1200,f_auto,q_auto/v1777542436/asasasa_oyingg.png');
    background-size: cover;
    /* Cover usually looks better for "just the image" if it's high quality, or contain if illustration */
    /* User said "just show image normally", assuming cover for a hero section is standard "normal" */
    background-position: center 20%;
    background-repeat: no-repeat;
    opacity: 1;
    /* Full visibility */
}


.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 2rem;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.8);
    /* Add semi-transparent bg to text to ensure readability over image */
    border-radius: 16px;
    backdrop-filter: blur(4px);
}

.hero h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); Removed shadow for clean look on light bg */
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 500;
    color: #7c2d12;
    /* Muted distinct color */
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    background: var(--color-accent-gradient);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04), var(--shadow-glow);
}

/* 2-Column Layout */
.content-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

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

.sidebar-wrapper {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.popular-posts {
    width: 100%;
}

/* Profile Section */
.profile-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.profile-icon-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
}

.profile-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.profile-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    text-align: left;
}

.profile-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.profile-read-more:hover {
    color: var(--color-primary-dark);
}

/* Popular Posts Sidebar */
.popular-posts-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
    color: var(--color-text-main);
}

/* Category Sidebar */
.category-section {
    margin-bottom: 2rem;
    width: 100%;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
}

.category-link:hover {
    background: var(--color-bg-card-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--color-primary);
}

.category-link::before {
    content: '📂';
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.popular-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.popular-post-item:hover {
    background: var(--color-bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
}

.popular-post-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background: var(--color-accent-gradient);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
}

.popular-post-content {
    flex: 1;
    min-width: 0;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popular-post-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Post Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card-link:hover .post-card {
    transform: translateY(-4px);
    background: var(--color-bg-card-hover);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.3);
}

.post-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card-link:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
}

.post-card-link:hover .post-title {
    color: var(--color-primary-dark);
}

.post-excerpt {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more::after {
    content: '→';
    transition: transform 0.2s;
}

.post-card-link:hover .read-more::after {
    transform: translateX(4px);
}

/* Article Detail */
article {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 4rem;
}

article h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

article .post-date {
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

article p {
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
    color: #334155;
}

article h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-primary);
}

article ul,
article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    background: #f1f5f9;
    padding: 2rem 2rem 2rem 3rem;
    border-radius: var(--radius-md);
}

article li {
    margin-bottom: 0.75rem;
}

article img {
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Tables */
article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

article th,
article td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

article th {
    background: #f8fafc;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 1rem;
}

article td {
    color: #334155;
}

article tr:last-child td {
    border-bottom: none;
}

article tr:hover {
    background: #fafafa;
}

/* Footer */
.site-footer {
    background: white;
    padding: 4rem 0;
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid #e2e8f0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-primary);
}

/* Contact Page */
.contact-page h1,
.sitemap-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.contact-intro,
.sitemap-intro {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.google-form-container {
    margin-top: 2rem;
}

.form-placeholder {
    background: var(--color-bg-card);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: left;
}

.form-placeholder p {
    margin-bottom: 1rem;
}

.form-placeholder ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.form-placeholder code {
    display: block;
    background: #f1f5f9;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    overflow-x: auto;
}

.contact-footer-links {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    text-align: center;
    border: var(--glass-border);
}

.contact-footer-links p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.contact-footer-links a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-footer-links a:hover {
    color: var(--color-primary-dark);
}

/* Sitemap Page */
.sitemap-section {
    margin-bottom: 3rem;
}

.sitemap-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.sitemap-list {
    list-style: none;
    padding: 0;
}

.sitemap-item {
    margin-bottom: 1rem;
}

.sitemap-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    border: var(--glass-border);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.sitemap-link:hover {
    background: var(--color-bg-card-hover);
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.3);
}

.sitemap-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    min-width: 100px;
}

.sitemap-title {
    font-weight: 600;
    color: var(--color-text-main);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.875rem;
    background: var(--color-bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 10px;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pagination-link:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.3);
}

.pagination-link.active {
    background: var(--color-accent-gradient);
    color: white;
    pointer-events: none;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border-color: transparent;
}

.pagination-arrow {
    font-size: 1.25rem;
    min-width: 2.75rem;
    font-weight: 400;
}

.pagination-arrow:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px) scale(1.05);
}

/* Animations */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* Responsive */


@media (max-width: 768px) {
    .sidebar-wrapper {
        width: 100%;
    }

    :root {
        --header-height: 60px;
    }

    /* Header Mobile Adjustments */
    .site-header {
        padding: 0;
    }

    .site-header .container {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .site-brand {
        gap: 0.5rem;
    }

    .site-icon {
        width: 32px;
        height: 32px;
    }

    .site-title {
        font-size: 1.1rem;
        white-space: nowrap;
    }

    .social-link {
        margin: 0;
        padding: 0.4rem;
    }

    .search-container {
        margin-left: auto;
    }

    .search-input {
        width: 140px;
        padding: 0.5rem 2rem 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .search-icon {
        right: 0.8rem;
        width: 16px;
        height: 16px;
    }

    /* Hero Mobile Adjustments */
    .hero {
        min-height: auto;
        aspect-ratio: auto;
        padding: 4rem 1rem;
        border-radius: 0;
        margin-bottom: 2rem;
    }

    .hero::before {
        background-size: cover;
        opacity: 0.6;
    }

    .hero h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    article {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    article h1 {
        font-size: 1.75rem;
    }

    article h2 {
        font-size: 1.4rem;
        margin: 2rem 0 1rem;
    }

    .pagination {
        gap: 0.25rem;
        margin-top: 3rem;
    }

    .pagination-link {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
        padding: 0 0.5rem;
    }

    .content-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .popular-posts {
        width: 100%;
        order: 99;
        /* Move to bottom instead of top if preferred, or keep -1 */
    }

    .popular-posts-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .site-title {
        font-size: 1rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 140px;
        /* Limit width to force truncation if needed */
        display: block;
        /* Needed for max-width to work on non-block partials if any */
    }

    .search-input {
        width: 100px;
        /* Small but visible width */
        padding: 0.4rem 0.5rem 0.4rem 2rem;
        /* Make room for icon on left if wanted, or keep icon right? Original had icon right. Let's keep icon right but ensure text space. */
        padding: 0.4rem 0.5rem 0.4rem 0.8rem;
        /* Adjustment */
        color: var(--color-text-main);
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(249, 115, 22, 0.3);
        border-radius: 20px;
        position: relative;
        z-index: 2;
        cursor: text;
        transition: all 0.3s ease;
        font-size: 0.8rem;
    }

    .search-input::placeholder {
        color: transparent;
        /* Hide placeholder when small if needed, or keep it */
    }

    .search-input:focus {
        width: 180px;
        /* Expand wider */
        background: white;
        border-color: var(--color-primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 10;
        position: relative;
        /* Keep in flow if possible or absolute if needed. Previous was absolute right:0. */
        /* If we keep it relative, it pushes title. If absolute, it overlaps title. 
           User wants it "visible", so maybe relative is okay if title shrinks? 
           But title is already shrinking. Let's try absolute expansion only if needed, 
           BUT previous absolute logic was "right: 0; top: 0". 
           If I make it static width 100px, title might get too small.
           Let's try: static width 80px, expanded absolute width 200px.
        */
        position: absolute;
        right: 0;
        width: 220px;
    }

    /* When not focused, use normal flow but limited width */

    /* Trick to show icon */
    .search-container {
        position: relative;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
    }

    .search-icon {
        position: absolute;
        right: 0.5rem;
        width: 14px;
        height: 14px;
        pointer-events: none;
        z-index: 12;
        color: var(--color-primary);
    }
}

/* Share Buttons */
.share-container {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

.share-x {
    background: #000000;
}

.share-facebook {
    background: #1877f2;
}

.share-line {
    background: #06c755;
}

.share-hatena {
    background: #008fde;
}

.share-btn-text {
    position: relative;
}

@media (max-width: 640px) {
    .share-buttons {
        gap: 0.75rem;
    }

    .share-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 120px;
    }
}

/* Featured Picks Section */
.featured-picks-section {
    padding-bottom: 3rem;
    padding-top: 1rem;
}

.featured-picks-section.is-description-only {
    padding-bottom: 1.5rem;
}

.featured-picks-section.is-description-only .featured-picks-description {
    margin-bottom: 0;
}

.featured-picks-description {
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.home-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
    color: var(--color-text-main);
}

.featured-picks-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.featured-picks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-picks-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Popular Recommendations Section */
.popular-recommendations-section {
    padding-bottom: 3rem;
}

.popular-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.featured-pick-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
    background: var(--color-bg-card);
    border: var(--glass-border);
}

.featured-pick-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(249, 115, 22, 0.3);
}

.featured-pick-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f0f0;
}

.featured-pick-top {
    width: 100%;
}

.featured-pick-top .featured-pick-image-wrapper {
    aspect-ratio: 16 / 4.5;
    /* 50% height of 16/9 */
}

.featured-pick-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}



.featured-pick-item:hover .featured-pick-image {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .featured-picks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-picks-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-recommendations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-pick-item {
        max-height: 200px;
    }

    .featured-pick-image-wrapper {
        height: 100%;
    }
}

/* Table of Contents */
details.toc {
    background: var(--color-bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

details.toc summary {
    font-weight: 800;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    outline: none;
    list-style: none;
    /* Hide default triangle in some browsers if unwanted, or keep it */
}

/* Custom indicator if we want, but default is usually fine. Let's keep default but ensure spacing. */
details.toc summary::-webkit-details-marker {
    color: var(--color-primary);
}

details.toc summary:hover {
    color: var(--color-primary);
}

details.toc[open] {
    max-height: 400px;
    overflow-y: auto;
    padding-bottom: 1.5rem;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
}

details.toc[open]::-webkit-scrollbar {
    width: 6px;
}

details.toc[open]::-webkit-scrollbar-track {
    background: transparent;
}

details.toc[open]::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 20px;
}