@charset "UTF-8";
/* ============================================
   導入事例 case-***
   他CSSへの影響なし・独立スコープ
   ============================================ */
/* ------------------------------------------
   Archive wrapper
   ------------------------------------------ */
.case-archive {
  padding-block: 60px;
}

.case-archive__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

.case-archive__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
}

/* ------------------------------------------
   Filter
   ------------------------------------------ */
.case-filter {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) {
  .case-filter {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
.case-filter__reset {
  color: white;
  background: #3174c8;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  padding: 6px 16px;
}
.case-filter__reset:hover {
  background: #666;
}
.case-filter__wrapper {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 24px;
}

.case-count {
  font-size: 16px;
  font-weight: bold;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 24px;
}
.case-count span {
  font-size: 1.4em;
  font-weight: bold;
  color: #3174c8;
}

.case-filter__group-label {
  clear: both;
  height: auto;
  color: #333;
  font-size: 22px;
  margin: 0 0 30px 0;
  font-weight: bold;
  letter-spacing: 2px;
  line-height: normal;
  padding: 15px 0;
  border-bottom: none;
  background-image: url("../../img/h2bg1.png");
  background-repeat: no-repeat;
  background-position: left bottom;
}

.case-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, background-color 0.2s;
}

.case-filter__checkbox {
  accent-color: #1b5db7;
}

.case-filter__label:has(.case-filter__checkbox:checked) {
  border-color: #1b5db7;
  background-color: #D6E3F4;
}

/* ------------------------------------------
   Grid
   ------------------------------------------ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  min-height: 200px;
}

@media (max-width: 1024px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .case-grid {
    grid-template-columns: 1fr;
  }
}
.case-grid[aria-busy=true] {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.2s;
}

.case-grid__empty {
  grid-column: 1/-1;
  text-align: center;
  color: #666;
  padding: 40px 0;
}

/* ------------------------------------------
   Card
   ------------------------------------------ */
.case-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}

.case-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.case-card__thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
}

.case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-card__body {
  padding: 16px 16px 8px;
}

.case-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 12px;
  padding: 8px 16px;
  line-height: 1.5;
  background: #3174c8;
  border-radius: 3px;
}

.case-card__meta {
  margin: 0;
  font-size: 0.875rem;
  color: #444;
}

.case-card__meta-row {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #c7c7c7;
  line-height: 1.4;
}
.case-card__meta-row:last-child {
  border-bottom: none;
}

.case-card__meta-label {
  font-weight: 600;
  white-space: nowrap;
  width: 7em;
  position: relative;
  padding-left: 0.5em;
  flex-shrink: 0;
}

.case-card__meta-label::after {
  content: "：";
  position: absolute;
  right: 0;
}

dd.case-card__meta-value {
  margin: 0;
  padding-left: 0;
  border-bottom: none;
}

/* ------------------------------------------
   Loading spinner
   ------------------------------------------ */
.case-loading {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.case-loading[aria-hidden=true] {
  display: none;
}

.case-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #1b5db7;
  border-radius: 50%;
  animation: case-spin 0.7s linear infinite;
}

@keyframes case-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ------------------------------------------
   Card リンクあり/なし
   ------------------------------------------ */
.case-card__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
  padding-bottom: 1em;
}
.case-card__link:hover img {
  opacity: 1;
}

.case-card__button {
  margin-top: auto;
  margin-inline: auto;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b71b1b;
  text-align: center;
  position: relative;
  border: 2px solid #b71b1b;
  width: 80%;
  padding: 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
@media (max-width: 600px) {
  .case-card__button {
    width: 88%;
  }
}
.case-card__button::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #b71b1b;
  border-right: 2px solid #b71b1b;
  transform: translate(0, -50%) rotate(45deg);
}

.case-card--linked {
  cursor: pointer;
}

.case-card--linked:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.case-card--linked:hover .case-card__button {
  background: #b71b1b;
  color: white;
}
.case-card--linked:hover .case-card__button::after {
  border-color: white;
}
.case-card--linked:hover .case-card__link img {
  opacity: 0.9;
}

.case-card:not(.case-card--linked) {
  cursor: default;
}

/* ------------------------------------------
   Initial empty message
   ------------------------------------------ */
.case-grid__empty--initial {
  color: #999;
}

.single-case-study #content {
  display: block;
}
.single-case-study #content #main {
  width: 100%;
}
.single-case-study p.jp-06 {
  left: 464px;
}
.single-case-study p.jp-07 {
  left: 452px;
}

.case-study-header {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .case-study-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
  }
}
.case-study-header__image {
  aspect-ratio: 3/2;
  border-radius: 4px;
  overflow: hidden;
}
.case-study-header__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-study-header__content table th {
  white-space: nowrap;
}

/*# sourceMappingURL=case.css.map */
