/*
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;
    }
}

/* ステータス共通 */
.status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
  }
  
  /* 未解決 */
  .status.unsolved {
    background-color: #e74c3c; /* 赤系 */
  }
  
  /* 解決済み */
  .status.solved {
    background-color: #2ecc71; /* 緑系 */
  }
  
  /* ステータスエリア */
  .status-section {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
  }

/* 投稿フォーム専用スタイル */
.post-form-section {
    padding: 40px 0 60px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff0f8 100%);
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.post-form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #666;
    margin-top: 10px;
    font-weight: 500;
}

.post-form-wrapper {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    border: 3px solid rgba(135,206,235,0.2);
}

.form-group {
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.half-width {
    flex: 1;
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.label-text {
    margin-right: 5px;
}

.required {
    color: #ff6b6b;
    font-weight: 900;
}

.form-input,
.form-select {
    width: 100%;
    padding: 18px 25px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border: 3px solid #B0B0B0;
    border-radius: 15px;
    outline: none;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
}

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

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

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    appearance: none;
    height: auto;
    line-height: 1.4;
}

.editor-wrapper {
    border: 3px solid #B0B0B0;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.editor-wrapper:focus-within {
    border-color: #444444;
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.3);
    transform: translateY(-2px);
}

.file-input-wrapper {
    position: relative;
}

.form-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 25px;
    border: 3px dashed #B0B0B0;
    border-radius: 15px;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    color: #666;
    position: relative;
    z-index: 1;
}

.file-input-label:hover,
.form-file:focus + .file-input-label {
    border-color: #444444;
    background: #888888;
    color: #444444;
    transform: translateY(-2px);
}

.file-icon {
    margin-right: 10px;
    font-size: 18px;
}

.file-text {
    font-size: 16px;
}

.submit-btn {
    background: linear-gradient(135deg, #444444, #B0B0B0);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(147, 112, 219, 0.4);
    background: linear-gradient(135deg, #8a5cd6, #6bb8e6);
}

.btn-icon {
    font-size: 20px;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
}

.form-message {
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
}

.error-message {
    background: linear-gradient(135deg, #f8d7da, #f1aeb5);
    border: 2px solid #dc3545;
    color: #721c24;
}

.message-icon {
    font-size: 20px;
    font-weight: 900;
}

/* 成功モーダル */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(147, 112, 219, 0.3);
    animation: slideUp 0.4s ease;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

.success-title {
    font-family: 'Inter', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: #444444;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #444444, #B0B0B0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.success-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-btn,
.another-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.home-btn {
    background: linear-gradient(135deg, #444444, #B0B0B0);
    color: white;
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3);
}

.home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(147, 112, 219, 0.4);
    text-decoration: none;
    color: white;
}

.another-post-btn {
    background: white;
    color: #444444;
    border: 2px solid #444444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.another-post-btn:hover {
    background: #444444;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(147, 112, 219, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .post-form-container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .post-form-wrapper {
        border: none;
        border-top: 1px dashed rgba(0, 0, 0, 0.12);
        border-radius: 0;
        box-shadow: none;
        padding: 20px 12px;
        margin: 0;
        background: #fff;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        margin-bottom: 25px;
    }
    
    .form-input,
    .form-select {
        padding: 15px 16px;
        font-size: 16px;
        border: 2px solid #ddd;
        border-radius: 8px;
    }
    
    .form-input:focus,
    .form-select:focus {
        transform: none;
        box-shadow: 0 0 0 2px rgba(147, 112, 219, 0.3);
    }
    
    .editor-wrapper {
        border: 2px solid #ddd;
        border-radius: 8px;
    }
    
    .editor-wrapper:focus-within {
        transform: none;
        box-shadow: 0 0 0 2px rgba(147, 112, 219, 0.3);
    }
    
    .file-input-label {
        border: 2px dashed #ddd;
        border-radius: 8px;
        padding: 15px 16px;
    }
    
    .file-input-label:hover,
    .form-file:focus + .file-input-label {
        transform: none;
    }
    
    .submit-btn {
        width: 100%;
        padding: 18px;
        font-size: 16px;
    }
    
    .submit-btn:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
    }
    
    .form-description {
        font-size: 16px;
        padding: 0 12px;
    }
    
    .section-title {
        font-size: 22px;
        padding: 20px 16px;
        margin-bottom: 10px;
        text-align: left;
        color: white;
        border-left: 4px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        font-weight: 900;
        letter-spacing: 0.02em;
    }
    
    .form-message {
        margin: 0 0 20px 0;
        padding: 16px 12px;
        border-radius: 0;
        border: none;
        border-left: 4px solid;
    }
    
    .success-message {
        border-left-color: #28a745;
        background: #d4edda;
    }
    
    .error-message {
        border-left-color: #dc3545;
        background: #f8d7da;
    }
}

@media (min-width: 768px) {
    .post-form-container {
        padding: 0 40px;
    }
}

.sns-buttons {
    margin-top: 2em;
    text-align: center;
  }
  
  .sns-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0.8em;
  }
  
  /* ボタン群を中央寄せ */
  .sns-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    text-align: center;
  }
  
  /* ボタン共通スタイル */
  .sns-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    transition: all 0.2s ease;
  }
  
  .sns-btn:hover {
    opacity: 0.85;
    transform: scale(1.07);
  }
  
  /* 各SNSカラー */
  .sns-btn.twitter {
    background-color: #000000; /* X黒 */
  }
  
  .sns-btn.facebook {
    background-color: #1877f2; /* Facebook青 */
  }
  
  .sns-btn.line {
    background-color: #06c755; /* LINE緑 */
  }
  
  /* モバイルでも中央寄せ */
  @media (max-width: 600px) {
    .sns-button-group {
      justify-content: center;
      gap: 12px;
    }
    .sns-btn {
      width: 52px;
      height: 52px;
      font-size: 24px;
    }
  }
  