@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/*必要ならばここにコードを書く*/

/* ===== ぶっかけ作品 アーカイブページスタイル ===== */

/* 基本レイアウト */
.bukkake-taxonomy-archive,
.bukkake-main-archive,
.bukkake-single-post {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* アーカイブヘッダー */
.archive-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* フィルタリングメニュー */
.bukkake-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.bukkake-filters > div {
    flex: 1;
    min-width: 200px;
}

.bukkake-filters h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #495057;
    border-bottom: 2px solid #6c757d;
    padding-bottom: 5px;
}

.bukkake-filters ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bukkake-filters li {
    margin-bottom: 5px;
}

.bukkake-filters a {
    display: block;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.bukkake-filters a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.bukkake-filters li.current a {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* 投稿グリッド */
.bukkake-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.bukkake-post-item {
    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;
}

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

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bukkake-post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    font-weight: bold;
}

.post-title a {
    color: #212529;
    text-decoration: none;
    line-height: 1.4;
}

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

.post-excerpt {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* タクソノミー表示 */
.bukkake-post-taxonomies {
    margin-top: 15px;
}

.taxonomy-group {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.taxonomy-label {
    font-weight: bold;
    color: #495057;
}

.taxonomy-group a {
    color: #007bff;
    text-decoration: none;
    margin-right: 5px;
}

.taxonomy-group a:hover {
    text-decoration: underline;
}

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

.bukkake-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bukkake-pagination .page-numbers:hover,
.bukkake-pagination .page-numbers.current {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* メインアーカイブページ */
.bukkake-taxonomy-menu {
    margin-bottom: 50px;
}

.bukkake-taxonomy-menu h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #495057;
}

.taxonomy-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.taxonomy-menu-item {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #007bff;
}

.taxonomy-menu-item h3 {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.3rem;
    text-align: center;
}

.taxonomy-menu-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.taxonomy-menu-item li {
    margin-bottom: 8px;
}

.taxonomy-menu-item a {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 5px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.taxonomy-menu-item a:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* 個別投稿ページ */
.bukkake-single-post {
    max-width: 800px;
}

.bukkake-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

.bukkake-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.bukkake-breadcrumb a:hover {
    text-decoration: underline;
}

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

.post-header .post-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #212529;
}

.post-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

.post-featured-image {
    margin-bottom: 30px;
    text-align: center;
}

.post-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.post-taxonomies {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 4px solid #007bff;
}

/* 関連投稿 */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #dee2e6;
}

.related-posts h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #495057;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.related-post-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.related-post-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.related-post-item h4 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.related-post-item a {
    color: #495057;
    text-decoration: none;
}

.related-post-item a:hover {
    color: #007bff;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .bukkake-taxonomy-archive,
    .bukkake-main-archive,
    .bukkake-single-post {
        padding: 15px;
    }
    
    .archive-title {
        font-size: 2rem;
    }
    
    .bukkake-filters {
        flex-direction: column;
    }
    
    .bukkake-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .taxonomy-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header .post-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.5rem;
    }
    
    .post-header .post-title {
        font-size: 1.5rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bukkake-post-item {
    animation: fadeInUp 0.6s ease forwards;
}

.bukkake-post-item:nth-child(1) { animation-delay: 0.1s; }
.bukkake-post-item:nth-child(2) { animation-delay: 0.2s; }
.bukkake-post-item:nth-child(3) { animation-delay: 0.3s; }
.bukkake-post-item:nth-child(4) { animation-delay: 0.4s; }

/* ロード状態 */
.bukkake-posts-grid.loading .bukkake-post-item {
    opacity: 0.5;
    pointer-events: none;
}

/* 検索フォーム（オプション） */
.bukkake-search-form {
    max-width: 400px;
    margin: 0 auto 40px auto;
    display: flex;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.bukkake-search-form input[type="search"] {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
}

.bukkake-search-form button {
    padding: 15px 25px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bukkake-search-form button:hover {
    background: #0056b3;
}

/* ===== ぶっかけ作品 アーカイブページスタイル ===== */

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px){
  /*必要ならばここにコードを書く*/
}

/*834px以下*/
@media screen and (max-width: 834px){
  /*必要ならばここにコードを書く*/
}

/*480px以下*/
@media screen and (max-width: 480px){
  /*必要ならばここにコードを書く*/
}
