/* Mirai Home Reform AI — construction case blocks v1.0.0 */

body.single-post article.category-works .entry-content .mh-ai-case-intro {
  width: min(760px, 100%);
  margin: 0 auto 2.5rem;
}

body.single-post article.category-works .entry-content .mh-ai-case-intro p {
  margin: 0 0 1.25em;
  color: var(--case-muted, rgba(255, 253, 248, .76));
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: .025em;
}

body.single-post article.category-works .entry-content .mh-ai-gallery {
  margin: 1.25rem 0 2.5rem;
}

body.single-post article.category-works .entry-content .mh-ai-gallery-row {
  gap: 16px !important;
  margin: 0 0 16px !important;
}

body.single-post article.category-works .entry-content .mh-ai-gallery-row > .wp-block-column {
  min-width: 0;
}

body.single-post article.category-works .entry-content .mh-ai-gallery-image,
body.single-post article.category-works .entry-content .mh-ai-gallery-last {
  position: relative;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  overflow: hidden;
  background: var(--case-bg-deep, #041522);
  border: 1px solid rgba(200, 170, 101, .36);
}

body.single-post article.category-works .entry-content .mh-ai-gallery-last {
  width: calc(50% - 8px) !important;
  margin: 0 auto 16px !important;
}

body.single-post article.category-works .entry-content .mh-ai-gallery-image img,
body.single-post article.category-works .entry-content .mh-ai-gallery-last img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
}

body.single-post article.category-works .entry-content .mh-ai-gallery-image .wp-element-caption,
body.single-post article.category-works .entry-content .mh-ai-gallery-last .wp-element-caption {
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  width: auto;
  margin: 0;
  padding: 7px 10px;
  color: var(--case-paper, #fffdf8);
  background: rgba(4, 21, 34, .82);
  border-top: 1px solid rgba(200, 170, 101, .68);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .1em;
}

body.single-post article.category-works .entry-content .mh-ai-renovation-pair {
  margin: 1.5rem 0 2.5rem;
  padding: clamp(20px, 3vw, 34px);
  background: var(--case-panel, #0a263a);
  border: 1px solid rgba(200, 170, 101, .46);
}

body.single-post article.category-works .entry-content .mh-ai-renovation-pair > h3,
body.single-post article.category-works .entry-content .mh-ai-renovation-text h3,
body.single-post article.category-works .entry-content .mh-ai-point h3 {
  margin: 0 0 1rem;
  color: var(--case-paper, #fffdf8);
  font-family: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .05em;
}

body.single-post article.category-works .entry-content .mh-ai-before-after-columns {
  gap: 18px !important;
  align-items: flex-start;
  margin-bottom: 0;
}

body.single-post article.category-works .entry-content .mh-ai-before-after-label {
  display: inline-block;
  margin: 0 0 .7rem;
  padding: .3rem .78rem;
  color: var(--case-bronze, #c8aa65);
  border: 1px solid rgba(200, 170, 101, .72);
  font-family: "Yu Gothic Medium", "Yu Gothic", sans-serif;
  font-size: .78rem;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.single-post article.category-works .entry-content .mh-ai-renovation-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 !important;
  overflow: hidden;
  background: var(--case-bg-deep, #041522);
  border: 1px solid rgba(255, 253, 248, .1);
}

body.single-post article.category-works .entry-content .mh-ai-renovation-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center;
}

body.single-post article.category-works .entry-content .mh-ai-renovation-summary {
  margin: 1.2rem 0 0;
  color: var(--case-muted, rgba(255, 253, 248, .76));
  line-height: 1.9;
}

body.single-post article.category-works .entry-content .mh-ai-renovation-details {
  display: grid;
  gap: 14px;
  margin: 0 0 2.5rem;
}

body.single-post article.category-works .entry-content .mh-ai-renovation-text {
  padding: clamp(20px, 3vw, 30px);
  background: var(--case-panel, #0a263a);
  border-top: 1px solid rgba(200, 170, 101, .3);
  border-right: 1px solid rgba(200, 170, 101, .3);
  border-bottom: 1px solid rgba(200, 170, 101, .3);
  border-left: 3px solid var(--case-bronze, #c8aa65);
}

body.single-post article.category-works .entry-content .mh-ai-renovation-text p {
  margin: 0;
  color: var(--case-muted, rgba(255, 253, 248, .76));
  line-height: 1.95;
}

body.single-post article.category-works .entry-content .mh-ai-spec-table {
  margin: 2.75rem 0;
  overflow: hidden;
  border: 1px solid rgba(200, 170, 101, .45);
}

body.single-post article.category-works .entry-content .mh-ai-spec-table table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
}

body.single-post article.category-works .entry-content .mh-ai-spec-table td {
  padding: 15px 18px;
  color: var(--case-muted, rgba(255, 253, 248, .76));
  background: rgba(10, 38, 58, .72);
  border-color: rgba(200, 170, 101, .22);
}

body.single-post article.category-works .entry-content .mh-ai-spec-table td:first-child {
  width: 28%;
  color: var(--case-bronze, #c8aa65);
  font-weight: 600;
  letter-spacing: .05em;
}

body.single-post article.category-works .entry-content .mh-ai-points {
  margin: 3rem 0 0;
  padding: clamp(24px, 4vw, 44px);
  background: var(--case-panel, #0a263a);
  border: 1px solid rgba(200, 170, 101, .45);
}

body.single-post article.category-works .entry-content .mh-ai-points-title {
  margin-top: 0 !important;
}

body.single-post article.category-works .entry-content .mh-ai-point {
  align-items: stretch;
  gap: 24px !important;
  margin: 1.8rem 0 0;
}

body.single-post article.category-works .entry-content .mh-ai-point > .wp-block-column {
  min-width: 0;
}

body.single-post article.category-works .entry-content .mh-ai-point .wp-block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--case-bg-deep, #041522);
  border: 1px solid rgba(255, 253, 248, .1);
}

body.single-post article.category-works .entry-content .mh-ai-point .wp-block-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

body.single-post article.category-works .entry-content .mh-ai-point > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.single-post article.category-works .entry-content .mh-ai-point p {
  margin: 0;
  color: var(--case-muted, rgba(255, 253, 248, .76));
  line-height: 1.9;
}

@media (max-width: 781px) {
  body.single-post article.category-works .entry-content .mh-ai-gallery-row,
  body.single-post article.category-works .entry-content .mh-ai-before-after-columns,
  body.single-post article.category-works .entry-content .mh-ai-point {
    flex-direction: column;
  }

  body.single-post article.category-works .entry-content .mh-ai-gallery-last {
    width: 100% !important;
  }

  body.single-post article.category-works .entry-content .mh-ai-renovation-pair,
  body.single-post article.category-works .entry-content .mh-ai-points {
    padding: 20px 16px;
  }

  body.single-post article.category-works .entry-content .mh-ai-spec-table td:first-child {
    width: 36%;
  }

  body.single-post article.category-works .entry-content .mh-ai-point > .wp-block-column:last-child {
    display: block;
  }
}
