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

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


/* =========================
   WORKS セクション（PC）
========================= */
.works-section {
  padding: 80px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.works-section .section-title {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: 700;
}

.works-section .works-grid {
  display: flex; /* PCはflex */
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.works-section .work-item {
  flex: 0 0 32%; /* 横3列 */
  background: #fff;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.works-section .work-item:hover {
  transform: translateY(-5px);
}

.works-section .work-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.works-section .work-title {
  margin-top: 15px;
  font-size: 18px;
  font-weight: 600;
}

/* =========================
   WORKS セクション（スマホ・Swiper対応）
========================= */
@media (max-width: 768px) {
  .works-section .works-grid {
    display: block; /* Swiperに任せる */
  }

  .works-section .work-item {
    flex: 0 0 auto;
    width: auto;
    margin: 0 auto;
  }
}


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

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

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