@charset "UTF-8";

/**
 * 詳細ページ - デザイン再現CSS
 * Design reference: md.ms123-8.jp
 * NOTE: html { font-size: 10px } - ALL sizes in px
**/

/* ========== Local Variables ========== */
.detail_wrap {
  --main-c: #091645;
  --btn-radius: 10px;
  --btn-height: 50px;
}

/* ========== Hide default portal-base templates ========== */
.detail_head_parts {
  display: none;
}
.detail_top__box_btn {
  display: none;
}
.detail_tab_parts {
  display: none;
}
.detail_old_content {
  display: none;
}
.detail_publicrelations {
  display: none;
}
.module_introduction_wrap {
  display: none;
}


/* ========== Page Layout ========== */
[id="content"]:has(.detail_wrap) {
  background: #fff;
}
.bc_nav ~ [id="content"]:has(.detail_wrap) {
  padding-top: 8px;
}
[id="content"]:has(.detail_wrap) .base_wrap {
  max-width: 1160px;
}


/* ========== Photo Gallery ========== */
.disp-slide {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 40px;
  max-height: 380px;
}
.disp-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.disp-slide__main {
  flex: 1;
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  max-height: 380px;
}
.disp-slide__thumb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 33%;
}
.disp-slide__thumb-item {
  flex: 1;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}
.disp-slide__main,
.disp-slide__thumb-item {
  cursor: pointer;
}
.disp-slide__main::after {
  content: '全ての写真を見る';
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}


/* ========== SP Gallery Slider (hidden on PC) ========== */
.sp-gallery-wrap {
  display: none;
}

/* ========== Gallery Modal ========== */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
}
.gallery-modal.is-open {
  display: flex;
  justify-content: center;
  align-items: center;
}
.gallery-modal__inner {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
}
.gallery-modal__ttl {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-c);
  margin: 0;
}
.gallery-modal__close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 28px;
  color: #62748C;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal__close:hover {
  color: var(--main-c);
}
.gallery-modal__body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex: 1;
  min-height: 0;
}
.gallery-modal__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  max-height: 50vh;
}
.gallery-modal__main img {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
}
.gallery-modal__arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  background: #fff;
  font-size: 18px;
  color: #62748C;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal__arrow:hover {
  border-color: var(--main-c);
  color: var(--main-c);
}
.gallery-modal__counter {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--main-c);
  width: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
}
.gallery-modal__thumbs {
  display: flex;
  gap: 10px;
  padding: 0 24px 24px;
  overflow-x: auto;
}
.gallery-modal__thumb {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
}
.gallery-modal__thumb.active {
  border-color: var(--main-c);
  opacity: 1;
}
.gallery-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ========== Two Column Layout ========== */
.detail_wrap .subpage-wrap {
  display: flex;
  justify-content: space-between;
  padding-block: 0 80px;
}
.detail_wrap .subpage-main {
  width: calc(680 / 1000 * 100%);
}
.detail_wrap .subpage-side {
  width: calc(280 / 1000 * 100%);
}
.detail_wrap .subpage-side__cnt {
  position: sticky;
  top: 80px;
}


/* ========== Head: Title, Badges, Price ========== */
.disp-head {
  margin-bottom: 60px;
}
.disp-head__madal {
  display: flex;
  margin-bottom: 10px;
}
.disp-head__madal-label {
  display: block;
  margin-right: 10px;
  padding: 4px 8px;
  width: max-content;
  max-width: 250px;
  background: #DBEAFE;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--main-c);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.disp-head__ttl {
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 700;
  color: var(--main-c);
}
.disp-head__data {
  display: flex;
  padding: 20px 0;
  background: #F8FAFC;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
}
.disp-head__data-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #E5E7EB;
}
.disp-head__data-item:last-child {
  border-right: none;
}
.disp-head__data-item-label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #62748C;
}
.disp-head__data-item-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--main-c);
  line-height: 1;
}
.disp-head__data-item-num strong {
  font-size: 28px;
}
.disp-head__data-item-num.price {
  color: #DC2626;
}
.disp-head__data-item-num.price strong {
  font-size: 42px;
}


/* ========== Detail Sections ========== */
.disp-detail__block {
  margin-bottom: 60px;
}
.disp-detail__ttl {
  margin-bottom: 20px;
  padding: 0 0 0 20px;
  border-left: 5px solid var(--main-c);
  font-size: 24px;
  font-weight: 700;
  color: var(--main-c);
}
.disp-detail__data {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  border-top: 1px solid #E5E7EB;
}
.disp-detail__data-item {
  display: flex;
  align-items: baseline;
  padding-block: 20px;
  width: calc((100% - 20px) / 2);
  border-bottom: 1px solid #E5E7EB;
}
.disp-detail__data-item.full {
  width: 100%;
}
.disp-detail__data-item-ttl {
  padding-right: 20px;
  width: 150px;
  min-width: 150px;
  font-size: 16px;
  color: #62748C;
}
.disp-detail__data-item-cnt {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: var(--main-c);
}


/* ========== Map ========== */
.disp-detail__map {
  width: 100%;
  aspect-ratio: 68 / 42;
  margin-bottom: 60px;
}
.disp-detail__map #google_map {
  width: 100%;
  height: 100%;
}
.disp-detail__map iframe {
  width: 100%;
  height: 100%;
}


/* ========== Sidebar Buttons ========== */
.detail_wrap .outline-head__btnarea {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.detail_wrap .outline-head__btn {
  margin-bottom: 10px;
}
.detail_wrap .outline-head__btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--btn-radius);
  border: solid 1px var(--main-c);
  background: var(--main-c);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  width: 100%;
  height: var(--btn-height);
  text-decoration: none;
  transition: all 0.3s ease;
}
.detail_wrap .outline-head__btn a:hover {
  border: solid 1px #44bdf2;
  background: #44bdf2;
  color: #fff;
}
.detail_wrap .outline-head__btn.btn--like a {
  background: #fff;
  color: var(--main-c);
  border: solid 1px #E5E7EB;
}
.detail_wrap .outline-head__btn.btn--like a:hover {
  background: #F8FAFC;
  border-color: var(--main-c);
}
.detail_wrap .outline-head__btn.btn--other a {
  background: #fff;
  color: var(--main-c);
  border: solid 1px #E5E7EB;
}
.detail_wrap .outline-head__btn.btn--other a:hover {
  background: #F8FAFC;
  border-color: var(--main-c);
}
.detail_wrap .outline-head__btn.btn--like a::before {
  content: '';
  display: inline-block;
  background: url("../images/icon__btn--likeoff.png") center center / 100% no-repeat;
  width: 18px;
  height: 18px;
  position: relative;
  right: 5px;
}
.detail_wrap .outline-head__btn.btn--other a::before {
  content: '';
  display: inline-block;
  background: url("../images/icon__btn--other.png") center center / 100% no-repeat;
  width: 18px;
  height: 18px;
  position: relative;
  right: 5px;
}
.detail_wrap .outline-head__btn.btn--message a {
  background: var(--main-c);
  border-color: var(--main-c);
  color: #fff;
}
.detail_wrap .outline-head__btn.btn--message a::before {
  content: '';
  display: inline-block;
  background: url("../images/icon__btn--message.png") center center / 100% no-repeat;
  width: 18px;
  height: 18px;
  position: relative;
  right: 5px;
}


/* ========== Bottom CTA Bar ========== */
.detai_bottom__box_btn {
  display: flex;
  gap: 10px;
  padding: 15px 0;
	display: none !important
}
.detai_bottom__box_btn .btn_net a,
.detai_bottom__box_btn .btn_tel a {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--btn-radius);
  font-weight: 700;
  height: 50px;
  text-decoration: none;
}
.detai_bottom__box_btn .btn_net a {
  background: var(--main-c);
  color: #fff;
  padding: 0 30px;
}
.detai_bottom__box_btn .btn_net a span {
  color: #fff;
}


/* ========== Responsive: Tablet ========== */
@media (max-width: 959.98px) {
  .bc_nav ~ [id="content"]:has(.detail_wrap) {
    padding-top: 0;
  }
}


/* ========== Responsive: Mobile ========== */
@media (max-width: 767.98px) {
  .bc_nav ~ [id="content"]:has(.detail_wrap) {
    padding-top: 10px;
  }

  /* Gallery: Hide PC version on mobile */
  .disp-slide {
    display: none;
  }

  /* SP Gallery Slider */
  .sp-gallery-wrap {
    display: block;
    position: relative;
    margin-bottom: 20px;
  }
  .sp-gallery-slider {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
  }
  .sp-gallery-slider__item {
    line-height: 0;
  }
  .sp-gallery-slider__item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .sp-gallery-slider__counter {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    z-index: 2;
  }

  /* Two Column: Stack */
  .detail_wrap .subpage-wrap {
    display: block;
    padding-block: 0 50px;
  }
  .detail_wrap .subpage-main {
    width: 100%;
  }
  .detail_wrap .subpage-side {
    width: 100%;
  }
  .detail_wrap .subpage-side.sp-none {
    display: none;
  }

  /* Head */
  .disp-head {
    margin-bottom: 40px;
  }
  .disp-head__madal-label {
    margin-right: 10px;
    padding: 4px 8px;
    max-width: 120px;
    font-size: 12px;
  }
  .disp-head__ttl {
    margin-bottom: 20px;
    font-size: 16px;
  }
  .disp-head__data {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
  }
  .disp-head__data-item {
    flex: 1;
    align-items: flex-start;
    border-right: none;
  }
  .disp-head__data-item:first-of-type {
    flex: initial;
    margin-bottom: 20px;
    padding-bottom: 20px;
    width: 100%;
    border-bottom: 1px solid #E5E7EB;
  }
  .disp-head__data-item-label {
    font-size: 12px;
  }
  .disp-head__data-item-num {
    font-size: 12px;
  }
  .disp-head__data-item-num strong {
    font-size: 18px;
  }
  .disp-head__data-item-num.price strong {
    font-size: 24px;
  }

  /* Detail blocks */
  .disp-detail__block {
    margin-bottom: 40px;
  }
  .disp-detail__ttl {
    margin-bottom: 10px;
    padding: 0 0 0 10px;
    font-size: 16px;
  }
  .disp-detail__data {
    gap: 0 10px;
  }
  .disp-detail__data-item {
    justify-content: space-between;
    padding-block: 10px;
    width: calc((100% - 20px) / 2);
  }
  .disp-detail__data-item.full {
    width: 100%;
  }
  .disp-detail__data-item.sp-full {
    width: 100%;
  }
  .disp-detail__data-item-ttl {
    padding-right: 20px;
    width: auto;
    font-size: 12px;
  }
  .disp-detail__data-item-cnt {
    flex: initial;
    font-size: 12px;
  }

  /* Map */
  .disp-detail__map {
    aspect-ratio: 68 / 42;
  }

  /* Gallery Modal */
  .gallery-modal__inner {
    width: 95%;
    max-height: 95vh;
  }
  .gallery-modal__header {
    padding: 14px 16px;
  }
  .gallery-modal__ttl {
    font-size: 14px;
  }
  .gallery-modal__body {
    padding: 10px;
  }
  .gallery-modal__thumb {
    width: 70px;
    height: 56px;
  }
  .gallery-modal__thumbs {
    padding: 0 16px 16px;
    gap: 8px;
  }
}
