@charset "utf-8";
/* =========================================================
   制作・施策事例用のスタイル (case.css)
/* =========================================================
   【16. 事例一覧ページ（アーカイブ・タクソノミー）の装飾】
   ========================================================= */

/* カスタムヘッダー */
.p-caseHeader {
  background: linear-gradient(135deg, #1e3a8a, #4338ca) !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 64px 24px !important; /* 4の倍数 */
  margin-bottom: 40px !important;
  border-radius: 0 0 24px 24px !important;
  box-shadow: 0 12px 32px rgba(30, 58, 138, 0.1) !important;
}

.p-caseHeader__en {
  font-family: 'Brush Script MT', 'Dancing Script', cursive, serif !important;
  font-size: 64px !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
  opacity: 0.9 !important;
}

.p-caseHeader__ja {
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  margin: 0 !important;
  opacity: 0.8 !important;
}

@media (max-width: 599px) {
  .p-caseHeader {
    padding: 40px 16px !important;
    border-radius: 0 0 16px 16px !important;
  }
  .p-caseHeader__en {
    font-size: 48px !important;
  }
  .p-caseHeader__ja {
    font-size: 14px !important;
  }
}

/* カテゴリー絞り込みタブ */
.p-caseTabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px !important;
  margin-bottom: 40px !important;
}

.p-caseTabs__item {
  display: inline-block !important;
  padding: 12px 24px !important; /* 10px -> 12px */
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 24px !important;
  text-decoration: none !important;
  border: 1px solid #cbd5e1 !important;
  transition: all 0.3s ease !important;
}

.p-caseTabs__item:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

.p-caseTabs__item.is-active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

/* カード詳細リンク（右下配置用） */
.p-caseGrid__more {
  text-align: right !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  margin-top: 16px !important;
  align-self: flex-end !important;
  position: relative !important;
  padding-bottom: 4px !important; /* 2px -> 4px */
}

.p-caseGrid__item:hover .p-caseGrid__more {
  text-decoration: underline !important;
}

/* =========================================================
   事例一覧（カルーセル）
   ========================================================= */
body .post_content .carousel {
  position: relative !important;
  width: 100% !important;
  margin: 40px 0 !important;
}

body .post_content .carousel-area {
  display: flex !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory !important;
  gap: 24px !important;
  padding: 16px 8px 32px !important;
  margin: 0 !important;
  list-style: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

body .post_content .carousel-area::-webkit-scrollbar {
  display: none !important;
}

body .post_content .carousel-list {
  flex: 0 0 calc(50% - 8px) !important;
  scroll-snap-align: start !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important; /* 12px -> 8px */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .post_content .carousel-list::before {
  display: none !important;
}

@media (max-width: 899px) {
  body .post_content .carousel-list {
    flex: 0 0 calc(50% - 12px) !important;
  }
}

@media (max-width: 599px) {
  body .post_content .carousel-list {
    flex: 0 0 85% !important;
  }
}

body .post_content .carousel-list:hover {
  transform: translateY(-8px) !important; /* -6px -> -8px */
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.1) !important;
  border-color: #cbd5e1 !important;
}

body .post_content .carousel-list a {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  text-decoration: none !important;
  color: inherit !important;
  position: relative !important;
}

body .post_content .carousel-list img.carousel-img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  border-radius: 8px 8px 0 0 !important; /* 12px -> 8px */
  margin: 0 !important;
}

body .post_content .case-type {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

body .post_content .case-type li {
  padding: 8px 12px !important; /* 6px -> 8px */
  border-radius: 8px !important; /* 24px -> 8px */
  font-size: 11px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  line-height: 1 !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  margin: 0 !important;
}

body .post_content .case-type li::before {
  display: none !important;
}

body .post_content .case-type-seo {
  background: #2563eb !important;
}
body .post_content .case-type-web {
  background: #7c3aed !important;
}
body .post_content .case-type-contents {
  background: #ec4899 !important;
}

body .post_content .carousel-list-info {
  padding: 24px !important; /* 20px -> 24px */
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

body .post_content .case_industry {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

body .post_content .case_title {
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  border: none !important;
  padding: 0 !important;
}

body .post_content .blog_info_excerpt {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
  flex-grow: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body .post_content .carousel .arrow-left,
body .post_content .carousel .arrow-right {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
}

body .post_content .carousel .arrow-left {
  left: -24px !important; /* -20px -> -24px */
}
body .post_content .carousel .arrow-right {
  right: -24px !important;
}

body .post_content .carousel .arrow-btn {
  width: 48px !important; /* 44px -> 48px */
  height: 48px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
}

body .post_content .carousel .arrow-btn:hover {
  background: #f8fafc !important;
  transform: scale(1.1) !important;
  border-color: #cbd5e1 !important;
}

body .post_content .carousel .arrow-btn::after {
  content: "" !important;
  width: 12px !important; /* 10px -> 12px */
  height: 12px !important;
  border-top: 2px solid #1e293b !important;
  border-right: 2px solid #1e293b !important;
}

body .post_content .carousel .arrow-left .arrow-btn::after {
  transform: rotate(-135deg) !important;
  margin-left: 4px !important;
}

body .post_content .carousel .arrow-right .arrow-btn::after {
  transform: rotate(45deg) !important;
  margin-right: 4px !important;
}

@media (max-width: 899px) {
  body .post_content .carousel .arrow-left,
  body .post_content .carousel .arrow-right {
    display: none !important;
  }
}

/* =========================================================
   【15. 実績一覧グリッド（新ショートコード case_list_grid 用）】
   ========================================================= */
.p-caseGrid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

@media (max-width: 900px) {
  .p-caseGrid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 599px) {
  .p-caseGrid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

.p-caseGrid__item {
  background: #ffffff !important;
  border-radius: 8px !important; /* 12px -> 8px */
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.p-caseGrid__item:hover {
  transform: translateY(-8px); /* -6px -> -8px */
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.p-caseGrid__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.p-caseGrid__figure {
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.p-caseGrid__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.p-caseGrid__item:hover .p-caseGrid__img {
  transform: scale(1.05);
}

.p-caseGrid__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.p-caseGrid__industry {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 8px;
}

.p-caseGrid__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.p-caseGrid__terms .c-label {
  padding: 4px 12px; /* 4px 10px -> 4px 12px */
  border-radius: 8px; /* 20px -> 8px */
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.p-caseGrid__terms .c-label.-seo { background: #2563eb; }
.p-caseGrid__terms .c-label.-web { background: #7c3aed; }
.p-caseGrid__terms .c-label.-contents { background: #ec4899; }

.p-caseGrid__title {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 12px;
}

.p-caseGrid__overview {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
