/*==================================
  グローバルレイアウト（重複分を削除）
====================================*/
.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 1em;
}

@media screen and (max-width: 610px) {
    .wrapper {
        grid-template-columns: repeat(1, 1fr);
        padding: 1em;
    }
}

.wrapper_child {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

/*==================================
  検索フォームのタグ装飾
====================================*/
.wrapper_child_tag {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wrapper_child_tag input[type="checkbox"] {
    display: none;
}

.wrapper_child_tag label {
    display: block;
    padding: 5px 10px;
    background: linear-gradient(transparent 60%, rgb(255, 157, 0, 0.5) 40%);
    cursor: pointer;
    font-size: 1em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none
}

.wrapper_child_tag label::before {
    background: linear-gradient(transparent 60%, rgb(255, 157, 0) 40%);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: scaleX(0); /* 横方向の拡大を初期値0に設定 */
    transform-origin: left; /* 拡大の起点を左に設定 */
    transition: transform .3s;
    z-index: -1;
}

.wrapper_child_tag input[type="checkbox"]:checked + label::before,
.wrapper_child_tag label:hover::before {
    transform: scaleX(1); /* 横方向の拡大を100%に */
  }

.wrapper_child_tag input[type="checkbox"]:checked + label,
.wrapper_child_tag label:hover {
    color: #000;
}

/*==================================
  投稿コンテンツのレイアウト
====================================*/
.case-top-section {
    display: flex;
    gap: 15px;
}

.case-image-link {
    display: block;
    width: 120px;
    height: 120px;
}

.case-thumbnail,
.case-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.case-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.wrapper_child_tittle {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.entry-excerpt {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.case-tags-container {
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tags a {
    text-decoration: none;
    color: #333;
    background-color: #fecb88;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* 画像コンテナのスタイル */
.case-image-link {
    display: block;
    width: 120px; /* 画像の幅を固定 */
    height: 120px; /* 画像の高さを固定 */
    flex-shrink: 0; /* flexアイテムの縮小を無効にする */
}

/* サムネイル画像のスタイル */
.case-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をトリミングしてボックスに収める */
    border-radius: 5px;
}