.case-page {
  max-width: 1180px;
  margin: 0 auto;
}

.case-head {
  margin-bottom: 36px;
}

.case-list {
  display: block;
}

.case-row {
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.case-row:first-child {
  border-top: 1px solid #e5e5e5;
}

.case-row__link {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  color: inherit;
  text-decoration: none;
}

.case-row--text .case-row__link {
  display: block;
}

.case-row__content {
  width: 100%;
  max-width: 760px;
}

.case-row__date {
  display: block;
  margin-bottom: 10px;
  color: #555;
  font-size: 13px;
}

.case-row__title {
  margin: 0 0 10px;
  color: #111;
  font-size: 22px;
  line-height: 1.5;
}

.case-row__text {
  margin: 0 0 14px;
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}

.case-row__cat {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #666;
  font-size: 12px;
  font-weight: 700;
}

.case-row__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
}

.case-row__more::after {
  content: "›";
  font-size: 22px;
  line-height: 1;
}

.case-row__image {
  width: 320px;
  height: 220px;
  overflow: hidden;
}

.case-row__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-row__link:hover .case-row__title,
.case-row__link:hover .case-row__more {
  color: #d6001c;
}

@media (max-width: 768px) {
  .case-head {
    margin-bottom: 24px;
  }

  .case-row__link {
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
    align-items: stretch;
    padding: 22px 0;
  }

  .case-row--text .case-row__link {
    display: block;
  }

  .case-row__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .case-row__title {
    font-size: 18px;
  }

  .case-row__text {
    font-size: 14px;
  }
}

.case-detail-page {
  max-width: 920px;
  margin: 0 auto;
}

.case-back {
  margin: 0 0 28px;
  font-size: 14px;
}

.case-back a {
  color: #333;
  text-decoration: none;
}

.case-back a:hover {
  color: #d6001c;
}

.case-detail__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e5e5;
}

.case-detail__date {
  display: block;
  margin-bottom: 12px;
  color: #666;
  font-size: 14px;
}

.case-detail__title {
  margin: 0;
  color: #111;
  font-size: 34px;
  line-height: 1.5;
}

.case-detail__cat {
  margin: 14px 0 0;
}

.case-detail__cat a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #666;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.case-gallery {
  margin: 28px 0 36px;
}

.case-gallery__main {
  text-align: center;
}

.case-gallery__main img {
  max-width: 420px;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.case-gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.case-gallery__thumb {
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.case-gallery__thumb.is-active {
  border-color: #d6001c;
}

.case-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-detail__body {
  font-size: 16px;
  line-height: 2;
  color: #222;
}

.case-related-box {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.case-related-box h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.case-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.case-modal.is-open {
  display: flex;
}

.case-modal-image {
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
}

.case-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .case-detail__title {
    font-size: 26px;
  }

  .case-gallery__main img {
    max-width: 100%;
  }

  .case-gallery__thumb {
    width: 64px;
    height: 64px;
  }

  .case-detail__body {
    font-size: 15px;
    line-height: 1.9;
  }

  .case-modal-close {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }
}
.breadcrumb {
  margin: 0 0 28px;
  font-size: 13px;
  color: #666;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: #aaa;
}

.breadcrumb a {
  color: #555;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #d6001c;
}

.breadcrumb [aria-current="page"] {
  color: #111;
  font-weight: 700;
}

@media (max-width: 768px) {
  .breadcrumb {
    font-size: 12px;
    line-height: 1.7;
  }
}

.case-product-card {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 620px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.case-product-card__image {
  flex: 0 0 140px;
}

.case-product-card__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-product-card__body {
  flex: 1;
}

.case-product-card__body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.5;
}

.case-product-card__price {
  margin: 0 0 14px;
  color: #d6001c;
  font-size: 17px;
  font-weight: 800;
}

.case-product-card__button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.case-product-card:hover .case-product-card__button {
  background: #d6001c;
}

@media (max-width: 768px) {
  .case-product-card {
    align-items: flex-start;
    gap: 14px;
  }

  .case-product-card__image {
    flex: 0 0 100px;
  }

  .case-product-card__body h3 {
    font-size: 16px;
  }

  .case-product-card__price {
    font-size: 15px;
  }
}