/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #709ecc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-title a {
    color: #709ecc;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e74c3c;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Pickup Section */
.pickup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
}

.pickup-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.pickup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pickup-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.pickup-card:hover {
    transform: translateY(-5px);
}

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

.pickup-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pickup-content {
    padding: 1.5rem;
}

.pickup-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.pickup-summary {
    opacity: 0.9;
    line-height: 1.5;
}

/* Main Layout */
.main {
    padding: 2rem 0;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

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

.post-card {
    background: white;
    /* border-radius: 10px; */
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.post-image img {
    max-width: 100%;
    height: auto;
    object-fit: block;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #709ecc;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
}

.category-tag {
    background: #e74c3c;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-decoration: none;
}

.post-summary {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ddd;
    font-size: 1.2rem;
}

.star.filled {
    color: #f39c12;
}

/* Single Post */
.single-post {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.post-header .post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-featured-image {
    margin-bottom: 2rem;
}

.post-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.work-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.work-info h3 {
    margin-bottom: 1rem;
    color: #709ecc;
}

.work-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.work-details dt {
    font-weight: bold;
    color: #666;
}

.work-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.work-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.work-link:hover {
    opacity: 0.8;
}

.work-link.dlsite {
    background: #0066cc;
    color: white;
}

.work-link.fanza {
    background: #ff6b35;
    color: white;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin: 2rem 0 1rem;
    color: #709ecc;
}

.post-content p {
    margin-bottom: 1rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.nav-prev,
.nav-next {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.nav-prev:hover,
.nav-next:hover {
    background: #e9ecef;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: bold;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #709ecc;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e74c3c;
}

/* Profile */
.profile-avatar {
    text-align: center;
    margin-bottom: 1rem;
}

.profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-description {
    text-align: center;
    color: #666;
    line-height: 1.6;
}

/* Recent Posts */
.recent-list,
.recommended-list {
    list-style: none;
}

.recent-item,
.recommended-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.recent-item:last-child,
.recommended-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-link,
.recommended-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.recent-image,
.recommended-image {
    flex-shrink: 0;
}

.recent-image img,
.recommended-image img {
    max-width: 60px;
    height: auto;
    display: block;
    /* border-radius: 5px; */
}

.recent-title,
.recommended-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-date {
    font-size: 0.8rem;
    color: #999;
}

.recommended-rating {
    font-size: 0.8rem;
}

/* Categories and Tags */
.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.category-link:hover {
    color: #e74c3c;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    background: #f8f9fa;
    color: #666;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.tag-link:hover {
    background: #e9ecef;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination-prev,
.pagination-next,
.pagination-number {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
}

.pagination-prev:hover,
.pagination-next:hover,
.pagination-number:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
}

.pagination-current {
    padding: 0.5rem 1rem;
    background: #e74c3c;
    color: white;
    border-radius: 5px;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #709ecc;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        position: relative;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: none;
        z-index: 1000;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-item {
        border-bottom: 1px solid #eee;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .pickup-title {
        font-size: 1.5rem;
    }
    
    .pickup-grid {
        grid-template-columns: 1fr;
    }
    
    .layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .work-links {
        flex-direction: column;
    }
    
    .work-link {
        text-align: center;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination-numbers {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-title a {
        font-size: 1.2rem;
    }
    
    .pickup {
        padding: 2rem 0;
    }
    
    .pickup-content {
        padding: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .single-post {
        padding: 1rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .work-details {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .work-details dt {
        margin-top: 1rem;
    }
    
    .work-details dt:first-child {
        margin-top: 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background: #2d2d2d;
        border-bottom: 1px solid #404040;
    }
    
    .site-title a {
        color: #e0e0e0;
    }
    
    .nav-link {
        color: #b0b0b0;
    }
    
    .post-card,
    .single-post,
    .sidebar-section {
        background: #2d2d2d;
        border: 1px solid #404040;
    }
    
    .post-title {
        color: #e0e0e0;
    }
    
    .work-info {
        background: #3a3a3a;
    }
    
    .tag-link {
        background: #3a3a3a;
        color: #b0b0b0;
    }
    
    .tag-link:hover {
        background: #404040;
    }
    
    .footer {
        background: #1a1a1a;
        border-top: 1px solid #404040;
    }
}

/* R18警告バー */
.r18-warning {
  background: #ff6b6b;
  color: white;
  padding: 10px 0;
  text-align: center;
  position: relative;
}

.r18-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.r18-close {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  position: absolute;
  right: 20px;
}

/* ピックアップ内の注意書き */
.pickup-r18-notice {
  background: #fffbf0;
  border: 1px solid #ffa500;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

/* R18バッジ */
.r18-badge {
  background: #ff4757;
  color: white;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  margin-left: 5px;
}

/* 年齢確認モーダル */
.r18-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.r18-modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
}

.r18-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.btn-yes, .btn-no {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-yes {
  background: #2ed573;
  color: white;
}

.btn-no {
  background: #ff6b6b;
  color: white;
}