/* Basic Reset & Dark Theme Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background-color: #121212;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: #4dabf7;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: #74c0fc;
}

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

ul {
    list-style: none;
    padding: 0;
}

/* Header */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid #333;
    margin-bottom: 2rem;
    text-align: center;
}
.site-title a {
    color: #f1f1f1;
    font-size: 2.5rem;
    font-weight: 700;
}
.site-description {
    color: #aaa;
    margin-top: 0.5rem;
}
.main-navigation ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.main-navigation a {
    color: #ccc;
    font-weight: 700;
}

/* Pickup Section */
.pickup-section {
    margin-bottom: 2rem;
}
.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.pickup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.pickup-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
}
.pickup-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.pickup-item:hover img {
    transform: scale(1.05);
}
.pickup-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem 1rem 1rem;
}
.pickup-item h3 {
    color: #fff;
    margin: 0;
    font-size: 1.2rem;
}

/* Main Layout */
.main-content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.content-column {
    flex: 2;
    min-width: 0; /* flexboxの縮小問題を解決 */
}
.sidebar-column {
    flex-basis: 300px;
    flex: 1;
}

/* Masonry Grid (Homepage) */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.masonry-item {
    background-color: #1e1e1e;
    border: 1px solid #333;
    overflow: hidden;
    break-inside: avoid;
    transition: transform 0.2s ease-in-out;
}
.masonry-item:hover {
    transform: translateY(-5px);
}
.masonry-item a {
    display: block;
    color: #e0e0e0;
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}
.masonry-item .item-content {
    padding: 1rem;
}
.masonry-item h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}
.masonry-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #bbb;
}

/* Single Post */
.post {
    background-color: #1e1e1e;
    padding: 1.5rem 2rem;
    border-radius: 8px;
}
.post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}
.post-title {
    font-size: 2.2rem;
    margin: 0;
}
.post-meta {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.post-meta .categories a {
    margin-left: 0.5rem;
    background-color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ccc;
}
.post-image {
    margin: 1.5rem 0;
}
.post-content {
    font-size: 1.1rem;
}
.post-content h2, .post-content h3 { margin-top: 2.5rem; border-bottom: 1px solid #333; padding-bottom: 0.5rem; }
.post-content blockquote {
    border-left: 4px solid #4dabf7;
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #ccc;
    font-style: italic;
    background-color: #222;
    padding: 1rem;
}

/* Sidebar */
.sidebar .widget {
    margin-bottom: 2rem;
    background-color: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
}
.sidebar .widget-title {
    margin-top: 0;
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.sidebar ul li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #2a2a2a;
}
.sidebar ul li:last-child {
    border-bottom: none;
}
.profile-avatar {
    display: block; width: 100px; height: 100px;
    border-radius: 50%; margin: 0 auto 1rem; object-fit: cover;
}
.profile-name { text-align: center; font-weight: bold; font-size: 1.2rem; }
.profile-bio { font-size: 0.9rem; color: #bbb; text-align: center; }

/* Affiliate Banners */
.affiliate-banner {
    margin-bottom: 1rem;
}
.affiliate-banner img {
    border: 1px solid #444;
    transition: opacity 0.3s;
}
.affiliate-banner img:hover {
    opacity: 0.8;
}

/* CTA Button */
.cta-button {
    display: block;
    width: 90%;
    margin: 2rem auto;
    padding: 15px 20px;
    background: linear-gradient(45deg, #f76707, #f03e3e);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(247, 103, 7, 0.4);
    transition: all 0.3s ease;
}
.cta-button:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(247, 103, 7, 0.5);
}


/* Footer */
.site-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid #333;
    color: #aaa;
    font-size: 0.9rem;
}
.age-disclaimer {
    background-color: #1e1e1e;
    padding: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ccc;
}
.age-disclaimer p {
    margin: 0.5rem 0;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content-area {
        flex-direction: column;
    }
    .post {
        padding: 1rem;
    }
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}
.pagination li {
    margin: 0 5px;
}
.pagination a, .pagination .page-item.active .page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}
.pagination a:hover {
    background-color: #4dabf7;
    color: #121212;
}
.pagination .active a, .pagination .page-item.active .page-link {
    background-color: #4dabf7;
    color: #121212;
    pointer-events: none;
}
