/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

    body {
        font-family: 'Inter', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo UI', sans-serif;
        background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
        color: #333;
        line-height: 1.8;
        font-feature-settings: "palt";
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }

/* 検索セクション - 余白を0に */
.search-section {
    padding: 30px 0;
    background: white;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid rgba(135, 206, 235, 0.3);
    border-bottom: 4px solid rgba(135, 206, 235, 0.3);
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

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

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 25px;
}

.search-input {
    flex: 1;
    padding: 20px 25px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border: 3px solid #B0B0B0;
    border-radius: 30px;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #444444;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.4), inset 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-input::placeholder {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

/* 検索ボタン */
.search-btn {
    background-color: #001f3f; /* ネイビー */
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #003366;
}

.search-icon {
    width: 24px;
    height: 24px;
    color: white; /* 虫眼鏡を白く */
    stroke: currentColor;
    fill: none;
}

    .categories {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .category-btn {
        padding: 12px 18px;
        background: linear-gradient(135deg, white, #f5f5f5);
        border: 3px solid #B0B0B0;
        border-radius: 25px;
        color: #333;
        text-decoration: none;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 16px;
        font-weight: 700;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        letter-spacing: 0.05em;
    }

    .category-btn:hover {
        background: linear-gradient(135deg, #444444, #B0B0B0);
        color: white;
        border-color: #444444;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(147, 112, 219, 0.3);
        text-decoration: none;
    }

    /* 週間アクセスランキングセクション - 余白を0に */
    .ranking-section {
        padding: 0px 0;
        background: linear-gradient(135deg, #f8f9ff 0%, #fff0f8 100%);
        margin: 0;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        border-top: 4px solid rgba(147, 112, 219, 0.3);
        border-bottom: 4px solid rgba(147, 112, 219, 0.3);
    }

    .ranking-container {
        padding: 0 20px;
        max-width: none;
        margin: 0;
    }

    .ranking-list {
        display: grid;
        gap: 15px;
    }

    .ranking-item {
        background: white;
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 6px 25px rgba(0,0,0,0.1);
        border: 2px solid rgba(147, 112, 219, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .ranking-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 35px rgba(0,0,0,0.15);
        border-color: #444444;
    }

    .ranking-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(135deg, #444444, #B0B0B0);
    }

    .ranking-number {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        background: linear-gradient(135deg, #444444, #B0B0B0);
        color: white;
        border-radius: 50%;
        font-family: 'Inter', sans-serif;
        font-weight: 900;
        font-size: 16px;
        margin-right: 15px;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        box-shadow: 0 3px 10px rgba(147, 112, 219, 0.3);
    }

    .ranking-number.top3 {
        background: linear-gradient(135deg, #FFD700, #FFA500);
        box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
    }

    .ranking-content {
        flex: 1;
    }

    .ranking-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin-bottom: 8px;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .ranking-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .ranking-title a:hover {
        color: #444444;
        text-decoration: none;
    }

    .ranking-meta {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: #666;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }

    .ranking-views {
        color: #444444;
        font-weight: 600;
    }

    /* セクションタイトル */
    .section-title {
        font-family: 'Inter', sans-serif;
        font-size: 26px;
        font-weight: 900;
        color: #444444;
        margin: 0 0 25px 0;
        padding: 20px 0;
        text-align: center;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        letter-spacing: -0.02em;
        font-feature-settings: "ss01";
        background: linear-gradient(135deg, #444444, #B0B0B0);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* 注目の記事 */
    .featured-section {
        padding: 20px 0;
        background: linear-gradient(to bottom, #f8f9ff, white);
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .featured-list {
        margin-bottom: 40px;
        padding: 0 25px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 新規記事一覧 */
    .articles-section {
        padding: 0px 0;
        background: white;
        width: 100vw;
        margin-left: calc(50% - 50vw);
    }

    .articles-list {
        padding: 0 25px;
        max-width: 1200px;
        margin: 0 auto;
    }

    /* 記事アイテム */
    .topic-item {
        background: white;
        border-radius: 20px;
        padding: 25px;
        margin-bottom: 20px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.12);
        border: 3px solid rgba(135,206,235,0.3);
        transition: all 0.3s ease;
    }

    .topic-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    }

    .featured-item {
        border-color: #444444;
        background: linear-gradient(135deg, #f8f9ff, white);
        box-shadow: 0 10px 40px rgba(147, 112, 219, 0.2);
    }

    .topic-thumbnail img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 12px;
    }
      

    .topic-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 20px;
        font-weight: 800;
        color: #333;
        margin-bottom: 15px;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .topic-title a {
        color: #333;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .topic-title a:hover {
        color: #444444;
        text-decoration: none;
    }

    .topic-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        margin-bottom: 18px;
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #666;
    }

    .topic-description {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 17px;
        color: #555;
        line-height: 1.8;
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .featured-badge {
        display: inline-block;
        background: linear-gradient(135deg, #444444, #B0B0B0);
        color: white;
        padding: 8px 20px;
        border-radius: 20px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 15px;
        box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
        letter-spacing: 0.05em;
    }

    /* ページネーション */
    .pagination {
        text-align: center;
        margin: 40px 0;
        padding: 0 25px;
    }

    .pagination a,
    .pagination span {
        display: inline-block;
        padding: 12px 20px;
        margin: 0 5px;
        background: white;
        border: 2px solid #B0B0B0;
        border-radius: 10px;
        color: #333;
        text-decoration: none;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .pagination a:hover,
    .pagination .current {
        background: linear-gradient(135deg, #444444, #B0B0B0);
        color: white;
        border-color: #444444;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
        text-decoration: none;
    }

    /* 検索結果がない場合 */
    .no-posts {
        text-align: center;
        padding: 60px 25px;
        color: #666;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 18px;
    }

    /* レスポンシブ対応 */
    @media (min-width: 768px) {
        .search-container,
        .ranking-container {
            padding: 0 40px;
        }
        
        .search-input {
            font-size: 20px;
        }
        
        .category-btn {
            font-size: 18px;
        }
        
        .section-title {
            font-size: 32px;
        }
        
        .topic-title {
            font-size: 24px;
        }
        
        .topic-meta {
            font-size: 18px;
        }
        
        .topic-description {
            font-size: 19px;
        }
        
        .ranking-item {
            display: flex;
            align-items: center;
        }
        
        .ranking-title {
            font-size: 20px;
        }
        
        .ranking-meta {
            font-size: 16px;
        }
    }

    @media (min-width: 1200px) {
        .search-container,
        .ranking-container {
            padding: 0 60px;
        }
    }

    .top-image {
        width: 100vw;
        margin-left: calc(50% - 50vw); /* 画面いっぱいに拡張 */
        overflow: hidden;
    }
    
    .top-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hidden-category {
        display: none;
    }
    
    .main-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }

@media (max-width: 767px) {
  .main-wrapper {
    padding: 0;
  }

  .articles-list,
  .ranking-list,
  .featured-list {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .topic-item,
  .ranking-item,
  .featured-item {
    border: none;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    border-radius: 0;
    box-shadow: none;
    padding: 16px 12px;
    margin: 0;
    background: #fff;
  }

  .articles-list .topic-item:first-child,
  .ranking-list .ranking-item:first-child,
  .featured-list .featured-item:first-child {
    border-top: none;
  }

  .topic-title,
  .ranking-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .topic-title a,
  .ranking-title a {
    color: #333;
    text-decoration: none;
  }

  .topic-meta,
  .ranking-meta {
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
  }

  .topic-description {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0em;
  }

  .ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #444444, #B0B0B0);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 6px rgba(147, 112, 219, 0.2);
  }

  .ranking-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }

  .ranking-content {
    flex: 1;
  }

  .section-title {
    font-size: 26px;
    padding: 30px 16px;
    margin-bottom: 10px;
    text-align: left;
    color: white;
    border-left: 4px solid #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
  }

  .featured-badge {
    font-size: 12px;
    padding: 4px 10px;
    margin-bottom: 10px;
  }

  .pagination {
    padding: 20px 10px;
  }

  .ranking-container {
    padding: 0;
    margin: 0;
  }
}

@media (max-width: 767px) {
    .topic-item:hover,
    .ranking-item:hover,
    .featured-item:hover,
    .category-btn:hover {
      transform: none;
      box-shadow: none;
      border-color: inherit;
    }
  }

  .topic-footer-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 24px 16px;
    background: #888888;
    gap: 12px;
    border-top: 2px solid #ddd;
}

.topic-footer-pages a {
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background 0.2s, color 0.2s;
}

.topic-footer-pages a:hover {
    background: #444444;
    color: white;
}

/* スマホ対応（縦並び） */
@media (max-width: 767px) {
    .topic-footer-pages {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .topic-footer-pages a {
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 767px) {
    /* 全体の左右パディングを0にする（投稿・固定ページ共通） */
    .ast-container,
    .ast-container-fluid {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }
  
    /* 固定ページだけに余白を追加 */
    .page .ast-container {
      padding-top: 20px;
      padding-left: 10px;
      padding-right: 10px;
    }
  }

@media (max-width: 767px) {
    .pagination {
        margin: 0;
    }
}

.load-more-container {
    text-align: center;
    background-color: #fff;
    padding: 40px 0;
}
.load-more-btn {
    display: inline-block !important;
    background-color: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.load-more-btn:hover {
    background-color: #005a87;
}
.loading-spinner {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

.voting-comment-section {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 投票セクション */
.voting-section {
    margin-bottom: 2rem;
}

.voting-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vote-option {
    text-align: center;
    flex: 1;
}

.vote-option.support {
    color: #28a745;
}

.vote-option.oppose {
    color: #dc3545;
}

.vote-label {
    display: block;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.vote-percentage {
    font-size: 1.5rem;
    font-weight: bold;
}

.voting-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
}

.support-bar {
    background-color: #28a745;
    transition: width 0.3s ease;
}

.oppose-bar {
    background-color: #dc3545;
    transition: width 0.3s ease;
}

/* コメントフォーム */
.comment-form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.submit-btn {
    background-color: #007cba;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #005a87;
}

/* コメント一覧 */
.comments-list {
    margin-bottom: 1.5rem;
}

.comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007cba;
}

.comment-author {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.comment-content {
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;
}

/* もっと見るボタン */
.load-more-comments {
    text-align: center;
    margin-bottom: 2rem;
}

.load-more-btn {
    background-color: transparent;
    color: #007cba;
    border: 2px solid #007cba;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #007cba;
    color: white;
}

/* バナー */
.banner-section {
    margin: 2rem 0;
    text-align: center;
}

.banner-placeholder {
    background-color: #e9ecef;
    padding: 3rem 2rem;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.1rem;
}

/* 署名フォーム */
.signature-form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #fff3cd;
    border-radius: 8px;
    border: 1px solid #ffeaa7;
}

.signature-form-section h3 {
    margin-top: 0;
    color: #856404;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.signature-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    resize: vertical;
}

.signature-btn {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.3s ease;
}

.signature-btn:hover {
    background-color: #e0a800;
}

/* ステータスセクション */
.status-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.status-badge .status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.status.unsolved {
    background-color: #dc3545;
    color: white;
}

.status.solved {
    background-color: #28a745;
    color: white;
}

.delete-request a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
}

.delete-request a:hover {
    text-decoration: underline;
}

/* SNSボタン */
.sns-buttons {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.sns-buttons h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.sns-button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sns-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.sns-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.sns-btn.facebook {
    background-color: #4267b2;
    color: white;
}

.sns-btn.line {
    background-color: #00c300;
    color: white;
}

.sns-btn.copy-url {
    background-color: #6c757d;
    color: white;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .voting-comment-section {
        padding: 1rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .status-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sns-button-group {
        flex-direction: column;
    }

    .sns-btn {
        justify-content: center;
    }
}