@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.2
*/

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

/* 制作実績グリッド */
.works-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

/* カラム数の設定 */
.works-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.works-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.works-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 各アイテム */
.works-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.works-item:hover {
	transition: transform 0.3s ease;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.works-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.works-item:hover.works-link{
	color:#333;
}


/* サムネイル */
.works-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.works-item:hover .works-thumbnail img {
    transform: scale(1.1);
}

/* コンテンツ部分 */
.works-content {
    padding: 15px;
}

.works-title {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
}

.works-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .works-col-3,
    .works-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .works-grid {
        grid-template-columns: 1fr !important;
    }
}

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

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

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