/* ==================================================
   マツシタホーム 共通フッター
   Mobile First
================================================== */

.mhome-common-footer-page .works-bottom-modelhouse {
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 30px;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}

.mhome-common-footer-page .works-bottom-catch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 20px;
  color: #222;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

.mhome-common-footer-page .works-bottom-catch-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 25px;
}

.mhome-common-footer-page .works-bottom-catch-mark::before,
.mhome-common-footer-page .works-bottom-catch-mark::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 22px;
  background: #C42921;
  transform-origin: bottom center;
}

.mhome-common-footer-page .works-bottom-catch-mark::before { left: 4px; }
.mhome-common-footer-page .works-bottom-catch-mark::after { right: 4px; }

.mhome-common-footer-page .works-bottom-catch-mark-left::before,
.mhome-common-footer-page .works-bottom-catch-mark-left::after {
  transform: rotate(-34deg);
}

.mhome-common-footer-page .works-bottom-catch-mark-right::before,
.mhome-common-footer-page .works-bottom-catch-mark-right::after {
  transform: rotate(34deg);
}

.mhome-common-footer-page .works-reservation-benefit {
  margin: 0 0 24px;
  padding: 20px 14px 18px;
  border: 1px solid #dedbd6;
  border-radius: 5px;
  box-sizing: border-box;
  background: #fffdfa;
}

.mhome-common-footer-page .works-reservation-benefit-title {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 2px dotted #C42921;
  background: none;
  color: #222;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.mhome-common-footer-page .works-reservation-benefit-lead {
  margin: 0 0 10px;
  color: #C42921;
  font-size: clamp(10px, 3.4vw, 12px);
  line-height: 1.6;
  text-align: center;
}

.mhome-common-footer-page .works-reservation-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 2px 0 10px;
  border-bottom: 1px dashed #ccc;
  list-style: none;
}

.mhome-common-footer-page .works-reservation-benefit-list li {
  min-width: 0;
  margin: 0;
  padding: 0 2px;
  color: #333;
  font-size: clamp(9px, 3.2vw, 11px);
  line-height: 1.5;
  text-align: center;
  list-style: none;
}

.mhome-common-footer-page .works-reservation-benefit-image {
  display: block;
  width: 100%;
  max-width: 92px;
  height: auto;
  aspect-ratio: 92 / 64;
  margin: 0 auto 7px;
  overflow: hidden;
  border-radius: 0 10px 0 10px;
  background: #e6e6e6;
  box-sizing: border-box;
}

.mhome-common-footer-page .works-reservation-benefit-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mhome-common-footer-page .works-reservation-benefit-item-text {
  display: block;
}

/* 予約特典画像：古いダミー円を確実に無効化 */
.mhome-common-footer-page .works-reservation-benefit-list li::before,
.mhome-common-footer-page .works-reservation-benefit-list li::after {
  content: none !important;
  display: none !important;
}

/* 実画像だけを円形に表示 */
.mhome-common-footer-page .works-reservation-benefit-image {
  display: block !important;
  overflow: hidden !important;
  border-radius: 0 10px 0 10px !important;
}

.mhome-common-footer-page .works-reservation-benefit-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
}

.mhome-common-footer-page .works-reservation-benefit-list li::marker {
  content: "";
}
.mhome-common-footer-page .works-reservation-benefit-note {
  margin-top: 8px;
  text-align: center;
}

.mhome-common-footer-page .works-reservation-benefit-note p {
  margin: 2px 0;
  color: #555;
  font-size: clamp(9px, 3vw, 10px);
  line-height: 1.6;
}

.mhome-common-footer-page .works-modelhouse-section { margin: 0 0 22px; }

.mhome-common-footer-page .works-bottom-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.mhome-common-footer-page .works-bottom-section-title::before,
.mhome-common-footer-page .works-bottom-section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #bbb;
}

.mhome-common-footer-page .works-modelhouse-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 12px;
}

.mhome-common-footer-page .works-modelhouse-card {
  display: block;
  min-width: 0;
  color: #333;
  text-decoration: none;
}

.mhome-common-footer-page .works-modelhouse-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: #eee;
}

.mhome-common-footer-page .works-modelhouse-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mhome-common-footer-page .works-modelhouse-name {
  display: block;
  margin: 5px 0 0;
  color: #333;
  font-size: clamp(9px, 3.2vw, 11px);
  line-height: 1.4;
  text-align: center;
}

.mhome-common-footer-page .works-modelhouse-cta,
.mhome-common-footer-page .works-contact-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 10px 36px;
  box-sizing: border-box;
  color: #fff;
  font-size: clamp(12px, 3.8vw, 14px);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.mhome-common-footer-page .works-modelhouse-cta {
  border: 1px solid #C42921;
  border-radius: 3px;
  background: #C42921;
}

.mhome-common-footer-page .works-bottom-button-arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-52%);
}

.mhome-common-footer-page .works-bottom-contact {
  margin: 0;
  padding: 18px 16px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  box-sizing: border-box;
  background: #f7f7f7;
  text-align: center;
}

.mhome-common-footer-page .works-bottom-contact-title {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 2px dotted #C42921;
  background: none;
  color: #222;
  font-size: clamp(12px, 4vw, 14px);
  font-weight: 600;
  line-height: 1.45;
}

.mhome-common-footer-page .works-bottom-contact-text {
  margin: 0 0 10px;
  color: #333;
  font-size: clamp(10px, 3.4vw, 12px);
  line-height: 1.7;
}

.mhome-common-footer-page .works-bottom-contact-tel {
  margin: 0 0 10px;
  color: #C42921;
  font-size: clamp(15px, 5vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.mhome-common-footer-page .works-bottom-contact-tel span { font-size: clamp(9px, 3vw, 11px); }

.mhome-common-footer-page .works-contact-button {
  min-height: 46px;
  border: 1px solid #C42921;
  border-radius: 2px;
  background: #fff;
  color: #C42921;
}

.mhome-common-footer-page #footer.works-detail-footer {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border-top: 0;
  box-sizing: border-box;
  background: #fff;
  color: #555;
}

.mhome-common-footer-page #footer.works-detail-footer .works-detail-footer-inner {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
}

.mhome-common-footer-page .works-detail-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  font-size: clamp(10px, 3.4vw, 12px);
}

.mhome-common-footer-page .works-detail-social a,
.mhome-common-footer-page .works-detail-social-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  text-decoration: none;
}

.mhome-common-footer-page .works-detail-social-icon {
  display: inline-flex;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
}

.mhome-common-footer-page .works-detail-instagram-icon {
  fill: none;
  stroke: #C42921;
  stroke-width: 1.8;
}

.mhome-common-footer-page .works-detail-line-icon {
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #4CC764;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
}

.mhome-common-footer-page .works-detail-social-divider { display: none; }
.mhome-common-footer-page .works-detail-social-disabled { cursor: default; }

.mhome-common-footer-page .works-detail-page-top {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 18px;
  border-bottom: 0;
  box-sizing: border-box;
  color: #555;
  font-size: clamp(10px, 3.4vw, 13px);
  text-align: center;
  text-decoration: none;
}

.mhome-common-footer-page .works-detail-copyright {
  margin: 0;
  padding: 6px 18px 14px;
  color: #777;
  font-size: clamp(9px, 3vw, 11px);
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

html:has(body.mhome-common-footer-page) { scroll-behavior: smooth; }

@media screen and (max-width: 768px) {
  .mhome-common-footer-page .works-reservation-benefit-title,
  .mhome-common-footer-page .works-bottom-section-title,
  .mhome-common-footer-page .works-bottom-contact-title {
    font-weight: 600;
  }
}


@media screen and (max-width: 768px) {
  .mhome-common-footer-page .works-bottom-catch {
    font-size: clamp(12px, 4vw, 14px);
  }

  .mhome-common-footer-page .works-reservation-benefit-title,
  .mhome-common-footer-page .works-bottom-section-title,
  .mhome-common-footer-page .works-bottom-contact-title {
    font-size: clamp(12px, 4vw, 14px);
  }

  .mhome-common-footer-page .works-reservation-benefit-lead,
  .mhome-common-footer-page .works-bottom-contact-text {
    font-size: clamp(10px, 3.4vw, 12px);
  }

  .mhome-common-footer-page .works-reservation-benefit-list li,
  .mhome-common-footer-page .works-modelhouse-name {
    font-size: clamp(9px, 3.2vw, 11px);
  }

  .mhome-common-footer-page .works-reservation-benefit-note p {
    font-size: clamp(9px, 3vw, 10px);
  }

  .mhome-common-footer-page .works-modelhouse-cta,
  .mhome-common-footer-page .works-contact-button {
    font-size: clamp(12px, 3.8vw, 14px);
  }

  .mhome-common-footer-page .works-bottom-contact-tel {
    font-size: clamp(15px, 5vw, 18px);
  }

  .mhome-common-footer-page .works-bottom-contact-tel span {
    font-size: clamp(9px, 3vw, 11px);
  }

  .mhome-common-footer-page .works-detail-social {
    font-size: clamp(10px, 3.4vw, 12px);
  }

  .mhome-common-footer-page .works-detail-page-top {
    font-size: clamp(10px, 3.4vw, 13px);
  }

  .mhome-common-footer-page .works-detail-copyright {
    font-size: clamp(9px, 3vw, 11px);
  }
}

@media screen and (min-width: 769px) {
  .mhome-common-footer-page .works-bottom-modelhouse {
    max-width: 750px;
    padding: 32px 0 16px;
  }

  .mhome-common-footer-page .works-bottom-catch {
    gap: 18px;
    margin-bottom: 27px;
    font-size: 15px;
    font-weight: 600;
  }

  .mhome-common-footer-page .works-reservation-benefit {
    margin-bottom: 22px;
    padding: 22px 40px 18px;
  }

  .mhome-common-footer-page .works-reservation-benefit-title {
    margin-bottom: 8px;
    padding-bottom: 3px;
    font-size: 16px;
    font-weight: 600;
  }

  .mhome-common-footer-page .works-reservation-benefit-lead {
    margin-bottom: 10px;
    font-size: 13px;
  }

  .mhome-common-footer-page .works-reservation-benefit-list {
    gap: 24px;
    padding-top: 2px;
    padding-bottom: 10px;
  }

  .mhome-common-footer-page .works-reservation-benefit-list li {
    margin: 0;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1.6;
  }

  .mhome-common-footer-page .works-reservation-benefit-image {
    width: 176px;
    max-width: 176px;
    height: 110px;
    aspect-ratio: auto;
    margin-bottom: 7px;
  }

  .mhome-common-footer-page .works-reservation-benefit-note {
    margin-top: 8px;
    text-align: center;
  }

  .mhome-common-footer-page .works-reservation-benefit-note p {
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 11px;
  }

  .mhome-common-footer-page .works-modelhouse-section { margin-bottom: 24px; }

  .mhome-common-footer-page .works-bottom-section-title,
  .mhome-common-footer-page .works-bottom-contact-title {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .mhome-common-footer-page .works-bottom-contact-title {
    margin-bottom: 8px;
    padding-bottom: 3px;
  }

  .mhome-common-footer-page .works-modelhouse-list {
    gap: 14px;
    margin-bottom: 16px;
  }

  .mhome-common-footer-page .works-modelhouse-name {
    margin-top: 5px;
    font-size: 14px;
  }

  .mhome-common-footer-page .works-modelhouse-cta {
    min-height: 59px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 14px;
  }

  .mhome-common-footer-page .works-bottom-contact { padding: 18px 40px 16px; }

  .mhome-common-footer-page .works-bottom-contact-text {
    margin-bottom: 8px;
    font-size: 13px;
  }

  .mhome-common-footer-page .works-bottom-contact-tel {
    margin-bottom: 9px;
    font-size: 24px;
  }

  .mhome-common-footer-page .works-bottom-contact-tel span { font-size: 14px; }

  .mhome-common-footer-page .works-contact-button {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 14px;
  }

  .mhome-common-footer-page .works-detail-social {
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .mhome-common-footer-page .works-detail-page-top {
    min-height: 36px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .mhome-common-footer-page .works-detail-copyright {
    padding-top: 6px;
    padding-bottom: 12px;
  }
}
