
/*
Theme Name: Suudon
Author: Chayama Piyo
Description: 自作WordPressテーマ
Version: 1.0
*/

/* パンくずリスト9 */
.breadcrumb {
    margin: 0 0 8px;
    padding: 0;
    color: #657989;
    font-size: 0.8rem;
    line-height: 1.6;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb li {
    margin: 0;
    padding: 0;
}

.breadcrumb li + li::before {
    content: ">";
    margin: 0 8px;
    color: #9aabb5;
}

.breadcrumb a {
    color: #526a7b;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #299fc5;
}

/* ========================================
   WORKSカテゴリーアーカイブ48
======================================== */

/* 一覧全体：サイドバーなし */
body.category .category-container {
    display: block;
    width: min(1400px, calc(100% - 80px));
    margin: 8px auto 80px;
}

/* サイドバーはWORKS一覧では非表示 */
body.category #secondary,
body.category .sidebar,
body.category aside {
    display: none !important;
}

/* メイン領域 */
body.category .category-main {
    min-width: 0;
}


/* カテゴリータイトル部分 */
body.category .category-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
   /* border-bottom: 1px solid #d9e5e9;*/
}

body.category .category-title {
    margin: 0 0 14px;
    color: #299fc5;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

body.category .category-description {
    margin: 0;
    color: #526a7b;
    font-size: 1rem;
    line-height: 1.9;
}

body.category .category-description p {
    margin: 0;
}



/* 作品カード一覧：2列 100*/
body.category .category-post-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
}

/* カード */
body.category .category-card {
    min-width: 0;
    overflow: hidden;
    background: transparent;
}

/* メイン画像 */
body.category .category-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #edf6f8;
}

body.category .category-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

body.category .category-card-image:hover img {
    transform: scale(1.035);
}

/* カード本文 135*/
body.category .category-card-body {
    padding: 14px 0 0;
}

/* カテゴリーラベル */
body.category .category-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 9px;
}

body.category .category-card-category {
    display: inline-block;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #299fc5;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-decoration: none;
}

/* タイトル：右側に丸い矢印 161*/
body.category .category-card-title {
    margin: 0 0 8px;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
}

body.category .category-card-title a {
    position: relative;
    display: block;
    padding-right: 44px;
    color: #344e60;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* 丸い矢印 178*/
body.category .category-card-title a::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid #299fc5;
    border-radius: 50%;
    color: #299fc5;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

body.category .category-card-title a:hover {
    color: #299fc5;
}

body.category .category-card-title a:hover::after {
    color: #fff;
    background: #299fc5;
    transform: translate(3px, -50%);
}

/* 作品概要 212*/
body.category .category-card-excerpt {
    padding-right: 36px;
    color: #657989;
    font-size: 0.92rem;
    line-height: 1.85;
}

body.category .category-card-excerpt p {
    margin: 0;
}

/* ページ送り 224*/
body.category .category-pagination {
    margin-top: 56px;
    text-align: center;
}

body.category .category-no-posts {
    color: #657989;
    line-height: 1.9;
}

/* ========================================
   タブレット236
======================================== */

@media (max-width: 900px) {
    body.category .category-container {
        width: calc(100% - 48px);
        margin-top: 40px;
    }

    body.category .category-post-list {
        column-gap: 24px;
        row-gap: 36px;
    }
}

/* ========================================
   スマートフォン252
======================================== */

@media (max-width: 560px) {
    body.category .category-container {
        width: calc(100% - 36px);
        margin-top: 32px;
    }

    body.category .category-header {
        margin-bottom: 32px;
    }

    body.category .category-title {
        font-size: 2rem;
        letter-spacing: 0.12em;
    }

    body.category .category-post-list {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }

    body.category .category-card-title {
        font-size: 1.08rem;
    }

    body.category .category-card-excerpt {
        font-size: 0.9rem;
    }
}

/* 動きを減らす設定を使っている人への配慮 284*/
@media (prefers-reduced-motion: reduce) {
    body.category .category-card-image img,
    body.category .category-card-title a,
    body.category .category-card-title a::after {
        transition: none;
    }
}


/* ========================================
   カテゴリータイトル画像・余白調整 295
======================================== */

/* タイトル部分 */
body.category .category-header {
    position: relative;
    margin-top: 0;
    margin-bottom: 20px;
    padding-top: 0;
    padding-bottom: 12px;
  /*  border-bottom: 1px solid #d9e5e9; */
}

/* タイトル背景画像 */
body.category .category-title-bg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* タイトルと説明文を画像に重ねる */
body.category .category-title-content {
    position: absolute;
    left: 5%;
    top: 58%;
    z-index: 1;
}

/* カテゴリー名 */
body.category .category-title {
    margin: 0 0 8px;
    color: #299fc5;
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

/* カテゴリー説明文 */
body.category .category-description {
    margin: 0;
    color: #526a7b;
    font-size: 1rem;
    line-height: 1.6;
}

body.category .category-description p {
    margin: 0;
}

/* スマートフォン */
@media (max-width: 600px) {
    body.category .category-title-content {
        left: 5%;
        top: 55%;
    }

    body.category .category-title {
        margin-bottom: 8px;
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    body.category .category-description {
        font-size: 0.85rem;
    }

    body.category .category-header {
        margin-bottom: 16px;
        padding-bottom: 8px;
    }
}

/* カテゴリーページでは共通ヘッダーを非表示 */
body.category .site-header {
    display: none !important;
}
