/* ==========================================================================
   Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333333;
    background-color: #ffffff;
}

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

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #2D5A2D;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #2D5A2D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF6B35;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.btn-primary:hover {
    background-color: #e55a2b;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2D5A2D;
    color: white;
    border-color: #2D5A2D;
}

.btn-secondary:hover {
    background-color: #245024;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #2D5A2D;
    border-color: #2D5A2D;
}

.btn-outline:hover {
    background-color: #2D5A2D;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-affiliate {
    background-color: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-affiliate:hover {
    background-color: #218838;
    color: white;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: #2D5A2D;
}

.logo .tagline {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    color: #333;
    transition: color 0.3s ease;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: #2D5A2D;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: #FF6B35;
}

.studio-info p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a7c4a;
    color: #ccc;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #2D5A2D 0%, #4a7c4a 100%);
    color: white;
    padding: 4rem 0;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin: 2rem 0;
}

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

/* ==========================================================================
   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 ease, box-shadow 0.3s ease;
}

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

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

.post-content {
    padding: 1.5rem;
}

.post-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.separator {
    margin: 0 0.5rem;
}

.category {
    color: #FF6B35;
    font-weight: 500;
}

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

.post-title a {
    color: #2D5A2D;
    text-decoration: none;
}

.post-title a:hover {
    color: #FF6B35;
}

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

.read-more {
    color: #FF6B35;
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    color: #e55a2b;
}

/* ==========================================================================
   Categories Section
   ========================================================================== */

.categories-section {
    padding: 4rem 0;
    background-color: #F5F5F5;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2D5A2D;
}

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

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 1rem;
    color: #2D5A2D;
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Studio Section
   ========================================================================== */

.studio-section {
    padding: 4rem 0;
}

.studio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.studio-features {
    list-style: none;
    margin: 1.5rem 0;
}

.studio-features li {
    margin-bottom: 0.5rem;
    color: #2D5A2D;
}

.studio-image img {
    width: 100%;
    border-radius: 10px;
}

/* ==========================================================================
   Single Post
   ========================================================================== */

.post {
    max-width: none;
}

.post-header {
    margin-bottom: 2rem;
}

.post-categories {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-block;
    background-color: #FF6B35;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.5rem;
}

.post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2D5A2D;
}

.featured-image {
    margin: 2rem 0;
}

.featured-image img {
    width: 100%;
    border-radius: 10px;
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    background-color: #F5F5F5;
    color: #666;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag:hover {
    background-color: #2D5A2D;
    color: white;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

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

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

.widget h3,
.widget h4 {
    margin-bottom: 1rem;
    color: #2D5A2D;
}

.widget-cta {
    background: linear-gradient(135deg, #FF6B35, #e55a2b);
    color: white;
}

.widget-cta h3 {
    color: white;
}

.popular-posts {
    list-style: none;
}

.popular-posts li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.popular-posts li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.popular-posts img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.popular-posts span {
    font-size: 0.9rem;
    line-height: 1.4;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.ad-content {
    text-align: center;
    padding: 2rem;
    background-color: #F5F5F5;
    border-radius: 5px;
}

.ad-placeholder {
    color: #999;
    font-style: italic;
}

/* ==========================================================================
   CTAs and Affiliate
   ========================================================================== */

.studio-cta {
    background: linear-gradient(135deg, #2D5A2D, #4a7c4a);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
}

.studio-cta h3 {
    color: white;
    margin-bottom: 1rem;
}

.cta-benefits {
    margin: 1.5rem 0;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.benefit-icon {
    color: #FF6B35;
    font-weight: bold;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.yoga-cta-inline {
    background-color: #f8f9fa;
    border-left: 4px solid #FF6B35;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.yoga-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.yoga-cta-icon {
    font-size: 2rem;
}

.yoga-cta-text {
    flex: 1;
}

.affiliate-box {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    background-color: #f8f9fa;
}

.affiliate-content {
    display: flex;
    gap: 1rem;
}

.affiliate-image {
    flex-shrink: 0;
}

.affiliate-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}

.affiliate-info {
    flex: 1;
}

.affiliate-title {
    color: #2D5A2D;
    margin-bottom: 0.5rem;
}

.affiliate-description {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.affiliate-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.stars {
    color: #ffc107;
}

.price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e55a2b;
}

.affiliate-disclaimer {
    margin-top: 1rem;
    margin-bottom: 0;
    text-align: center;
    color: #666;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */

.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

.related-post:hover {
    transform: translateY(-3px);
}

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

.related-content {
    padding: 1rem;
}

.related-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-title a {
    color: #2D5A2D;
    text-decoration: none;
}

.related-meta .category {
    font-size: 0.8rem;
    color: #FF6B35;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    margin: 3rem 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

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

.pagination-link:hover,
.pagination-number:hover {
    background-color: #2D5A2D;
    color: white;
}

.pagination-number.active {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

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

/* ==========================================================================
   Table of Contents
   ========================================================================== */

/* 目次のスタイル */
.toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.toc h3 {
    margin-top: 0;
    color: #2D5A2D;
    font-size: 18px;
    border-bottom: 2px solid #2D5A2D;
    padding-bottom: 10px;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

/* h2レベルの目次項目 */
.toc > ul > li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
    font-weight: 600;
    font-size: 16px;
}

.toc > ul > li:before {
    content: "●";
    color: #2D5A2D;
    position: absolute;
    left: 0;
    font-size: 18px;
}

/* h3レベルの目次項目 */
.toc ul ul li {
    margin: 6px 0;
    padding-left: 25px;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

.toc ul ul li:before {
    content: "▶";
    color: #FF6B35;
    position: absolute;
    left: 0;
    font-size: 12px;
}

.toc a {
    color: inherit;
    text-decoration: none;
}

.toc > ul > li > a {
    color: #333;
}

.toc ul ul li a {
    color: #666;
}

.toc a:hover {
    color: #2D5A2D;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .studio-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .yoga-cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .affiliate-content {
        flex-direction: column;
    }
    
    .affiliate-image {
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination-wrapper {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}