.web-detail-wrap {
  padding-top: 120px;
}

.web-detail {
  display: flex;
  height: calc(100vh - 120px);
}

.web-detail__left {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: 100%;
  border-right: 0.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.web-detail__back {
  display: block;
  font-size: 18px;
  color: #888;
  text-decoration: none;
  padding: 1.5rem 2rem;
  border-bottom: 0.5px solid #e0e0e0;
  transition: color 0.2s;
  flex-shrink: 0;
}

.web-detail__back:hover {
  color: #111;
}

.web-detail__left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.web-detail__title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.web-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.web-detail__meta-item {
  font-size: 11px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.web-detail__meta-label {
  font-size: 10px;
  color: #aaa;
  display: block;
  margin-bottom: 2px;
}

.web-detail__url {
  font-size: 11px;
  color: #888;
  word-break: break-all;
}

.web-detail__desc {
  font-size: 11px;
  color: #555;
  line-height: 2em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid #e0e0e0;
  letter-spacing: 0.12em;
}

.web-detail__cat-badge {
  display: inline-block;
  font-size: 10px;
  color: #888;
  border: 0.5px solid #ccc;
  border-radius: 20px;
  padding: 3px 12px;
  margin-top: 16px;
  margin-right: 4px;
}

.web-detail__right {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.web-detail__right--single {
  overflow-y: hidden;
  justify-content: center;
}

/* モックアップ表示エリア */
.web-detail__mockup-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
}

.web-detail__mockup {
  position: relative;
  flex-shrink: 0;
}

.web-detail__mockup--pc {
  flex: none;
  width: 65%;
}

.web-detail__mockup--sp {
  width: 16%;
}

.web-detail__mockup-frame {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

/* PC画面エリア: top=5.5% left=4.2% width=91.6% height=65.2% */
.web-detail__mockup-screen--pc {
  position: absolute;
  top: 6%;
  left: 4.2%;
  width: 91.6%;
  height: 64%;
  overflow: hidden;
  z-index: 1;
}

/* SP画面エリア: top=3.1% left=6.1% width=84.0% height=92.2% */
.web-detail__mockup-screen--sp {
  position: absolute;
  top: 3.5%;
  left: 6.1%;
  width: 84%;
  height: 90%;
  overflow: hidden;
  z-index: 1;
}

.web-detail__screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* 追加画像 */
.web-detail__img {
  width: 100%;
  flex-shrink: 0;
}

.web-detail__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* OTHER WORKS */
.web-detail__other {
  padding: 2rem 3rem;
  border-top: 0.5px solid #e0e0e0;
}

.web-detail__other-title {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.web-detail__other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.web-detail__other-card {
  text-decoration: none;
  color: inherit;
}

/* OTHER WORKSモックアップ */
.web-detail__other-mockup {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.web-detail__other-mockup-pc {
  position: relative;
  flex: 1;
}

.web-detail__other-mockup-sp {
  position: relative;
  width: 22%;
  flex-shrink: 0;
  margin-left: -11%;
  z-index: 3;
}

.web-detail__other-frame {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.web-detail__other-screen {
  position: absolute;
  overflow: hidden;
  z-index: 1;
}

.web-detail__other-screen--pc {
  top: 5.5%;
  left: 4.2%;
  width: 91.6%;
  height: 65.2%;
}

.web-detail__other-screen--sp {
  top: 3.1%;
  left: 6.1%;
  width: 84%;
  height: 92.2%;
}

.web-detail__other-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.web-detail__other-name {
  font-size: 11px;
  color: #111;
  margin-top: 0 !important;
}

/* タブレット・スマホ */
@media (max-width: 1023px) {
  .web-detail {
    flex-direction: column;
    height: auto;
  }
  .web-detail__left {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 0.5px solid #e0e0e0;
  }
  .web-detail__back {
    padding: 1rem 2rem;
  }
  .web-detail__left-scroll {
    padding: 2rem;
  }
  .web-detail__right {
    height: auto;
    overflow-y: visible;
    padding: 2rem;
  }
  .web-detail__other {
    padding: 2rem;
  }
  .web-detail__mockup--sp {
    width: 28%;
  }
}

@media (max-width: 767px) {
  .web-detail__mockup-wrap {
    flex-direction: column;
    align-items: center;
  }
  .web-detail__mockup--pc {
    width: 100%;
  }
  .web-detail__mockup--sp {
    width: 60%;
  }
  .web-detail__other-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .web-detail__other-card:nth-child(n+4) {
    display: none;
  }
}
