@charset "utf-8";
/* ============================================================
   基本スタイル(共通)
============================================================ */
.container {
}
.works-list {
    display: grid;
}
.btn-more .btn {
    margin: 2rem 0 5rem; /* 上下の余白（お好みで） */
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #1860ad;
    color: #1860ad;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    transition: all 0.3s;
}
.btn-more .btn:hover {
    background: #1860ad;
    color: #fff;
}
/* ============================================================
 サブビジュアル
============================================================ */
.sbu-visual {
    height: 350px;
    width: auto;
    background-color: #f0f5f5;
}


/* ============================================================
 制作実績
============================================================ */
.works .section-title img {
    max-width: 160px;
    position: relative;
    text-align: center;
    z-index: 10;
    margin: -55px auto 3rem;
}

/* --- カテゴリーボタン --- */
.works-category {
  text-align: center;
  margin-bottom: 3rem;
}

.works-category button {
  padding: 6px 16px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
  transition: .2s;
}

.works-category button.active {
  background: #1e73be;
  color: #fff;
}


/* グリッド配置 */
.works-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px 30px;
    margin-bottom: 50px;
}
/* 各アイテム */
.work-item img {
    width: 100%;
    margin-bottom: 10px;
}
.work-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}
.work-meta .new {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    color: #e63946;
    font-weight: bold;
}
.work-title {
    font-size: 16px;
    font-weight: bold;
    margin: 5px 0;
}
.work-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}
/* ボタン */
.works .btn-more {
    text-align: center; /* 子要素を中央寄せ */
}
/* ============================================================
   レスポンシブ（スマホ対応）
============================================================ */
@media (max-width: 768px) {
    .works-list {
        padding: 0 5px;
        margin-bottom: 50px;
    }
   
    .works .works-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    .works .work-title {
        letter-spacing: 0.15em;
    }
}



/* ============================================================
    モーダル（制作実績）
============================================================ */
/* 背景（フェードイン用） */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;              /* 初期は透明 */
  pointer-events: none;    /* 非表示時はクリック不可 */
  transition: opacity 0.35s ease;
}

/* 表示状態 */
.modal.show {
  opacity: 1;
  pointer-events: auto;    /* 表示時はクリック可能 */
}

/* ボックス（ふわっと拡大） */
.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 12px;
  text-align: center;
  position: relative;

  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* 表示時 */
.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-content img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}



/* スマホ対応 */
@media (max-width: 600px) {
  .modal-content {
    padding: 15px;
  }
  .modal-close {
    font-size: 24px;
  }
}


#modal-title,
#modal-desc {
  display: none !important;
}

