/**
 * リビルト基板ページ 個別CSS
 * 対象ページ: #sustainability-rb
 *
 * アップロード先（本番）:
 *   /biz-vision/sustainability/rebuilt/css/index.css
 *
 * HTML（NOREN head 欄）:
 *   noren/head-index-css.html を参照
 */

/* social_contributions/assets/css/style.css と同型（PCでは sp_only 改行を非表示） */
@media screen and (min-width: 768px) {
  br.sp_only {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   リード（.l-section-sustainability）
   -------------------------------------------------------------------------- */

#sustainability-rb .l-section-sustainability .c-leadText + .c-leadText {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   従来 vs リビルト 比較フロー
   -------------------------------------------------------------------------- */

#sustainability-rb .rb-compare {
  margin-top: 32px;
  border-top: 1px solid #cbced6;
  background-color: #fff;
}

#sustainability-rb .rb-compare__row {
  display: flex;
  align-items: stretch;
}

#sustainability-rb .rb-compare__row + .rb-compare__row {
  border-top: 1px solid #cbced6;
}

#sustainability-rb .rb-compare__label {
  display: flex;
  width: 160px;
  min-width: 160px;
  padding: 8px 8px 8px 0;
  box-sizing: border-box;
  background-color: #fff;
  flex-shrink: 0;
}

#sustainability-rb .rb-compare__labelInner {
  display: flex;
  width: 100%;
  min-height: 100%;
  padding: 8px 4px 8px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #2b2f38;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#sustainability-rb .rb-compare__label--conventional .rb-compare__labelInner {
  background-color: #e8e9ec;
}

#sustainability-rb .rb-compare__label--rebuilt .rb-compare__labelInner {
  background-color: #e8f4ec;
}

#sustainability-rb .rb-compare__flow {
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 24px 16px;
  align-items: center;
  gap: 8px;
}

#sustainability-rb .rb-compare__item {
  flex-shrink: 0;
  text-align: center;
}

#sustainability-rb .rb-compare__item--result {
  position: relative;
}

#sustainability-rb .rb-compare__figure {
  margin: 0;
}

#sustainability-rb .rb-compare__figure img {
  display: block;
  width: auto;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
}

#sustainability-rb .rb-compare__flow--wide {
  padding: 0;
}

#sustainability-rb .rb-compare__figure--wide {
  width: 100%;
}

#sustainability-rb .rb-compare__figure--wide .rb-compare__figureSrc--sp {
  display: none;
}

#sustainability-rb .rb-compare__figure--wide img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

#sustainability-rb .rb-compare__caption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #2b2f38;
}

#sustainability-rb .rb-compare__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 2px;
  background-color: #2b2f38;
  position: relative;
}

#sustainability-rb .rb-compare__arrow::after {
  position: absolute;
  top: 50%;
  right: 0;
  display: block;
  width: 0;
  height: 0;
  content: '';
  transform: translateY(-50%);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #2b2f38;
}

#sustainability-rb .rb-compare__branches {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 16px;
  justify-content: center;
}

#sustainability-rb .rb-compare__branch {
  flex: 1;
  min-width: 0;
  max-width: 180px;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
}

#sustainability-rb .rb-compare__branch--reuse {
  background-color: #e8f4ec;
  border: 1px solid #b5d9c4;
}

#sustainability-rb .rb-compare__branch--dispose {
  background-color: #f6f6f8;
  border: 1px solid #cbced6;
}

#sustainability-rb .rb-compare__branchLabel {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #2b2f38;
}

#sustainability-rb .rb-compare__branchText {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: #4f5975;
}

#sustainability-rb .rb-compare__trash {
  display: block;
  width: 32px;
  height: 36px;
  margin: 8px auto 0;
  background-color: #b4b5b9;
  border-radius: 2px 2px 4px 4px;
  position: relative;
}

#sustainability-rb .rb-compare__trash::before {
  position: absolute;
  top: -4px;
  left: 50%;
  display: block;
  width: 40px;
  height: 4px;
  content: '';
  transform: translateX(-50%);
  background-color: #969aa3;
  border-radius: 2px;
}

#sustainability-rb .rb-compare__badge {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
}

#sustainability-rb .rb-compare__badgeRate {
  display: flex;
  width: 72px;
  height: 72px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  text-align: center;
  background-color: #3d8f5f;
  border-radius: 50%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#sustainability-rb .rb-compare__badgeRate em {
  font-style: normal;
  font-size: 16px;
}

#sustainability-rb .rb-compare__note {
  padding: 8px 16px 12px;
  border-top: 1px solid #cbced6;
  background-color: #fff;
}

#sustainability-rb .rb-compare__noteText {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #4f5975;
  text-align: right;
}

#sustainability-rb .rb-compare__noteMark {
  margin-right: 0.25em;
}


/* --------------------------------------------------------------------------
   リビルト作業の工程（4ステップ）
   -------------------------------------------------------------------------- */

#sustainability-rb .rb-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

#sustainability-rb .rb-steps__item {
  display: flex;
  overflow: hidden;
  border: 1px solid #cbced6;
  border-radius: 8px;
  flex-direction: column;
}

#sustainability-rb .rb-steps__head {
  padding: 20px 16px;
  background-color: #e8f4ec;
}

#sustainability-rb .rb-steps__num {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  color: #3d8f5f;
  letter-spacing: 0.05em;
}

#sustainability-rb .rb-steps__title {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #2b2f38;
}

#sustainability-rb .rb-steps__figure {
  margin: 0;
  flex-shrink: 0;
}

#sustainability-rb .rb-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

#sustainability-rb .rb-steps__text {
  margin: 0;
  padding: 20px 16px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #2b2f38;
}

/* --------------------------------------------------------------------------
   2枚画像（手すりカバー等）
   -------------------------------------------------------------------------- */

#sustainability-rb .rb-images {
  display: flex;
  gap: 16px;
}

#sustainability-rb .rb-images .c-img {
  flex: 1;
  min-width: 0;
}

#sustainability-rb .rb-images .c-img img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   エレベーター保守サービス（.t-productsTop .box 相当・LP内スコープ）
   -------------------------------------------------------------------------- */

#sustainability-rb .grid {
  display: grid;
  gap: 18px;
}

#sustainability-rb .grid.grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

#sustainability-rb .box {
  position: relative;
  overflow: hidden;
}

#sustainability-rb .box .box_img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

#sustainability-rb .box .box_content {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  padding: 11px 20px;
  transition: margin 0.35s ease-out;
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
}

#sustainability-rb .box.box--md .box_content {
  padding: 17px 24px;
}

#sustainability-rb .box .box_content .box_title {
  font-size: 18px;
  font-weight: 700;
  line-height: 140%;
  position: relative;
  display: inline-block;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

#sustainability-rb .box.box--md .box_content .box_title {
  font-size: 20px;
  line-height: 160%;
}

#sustainability-rb .box .box_content .box_title::after {
  content: "";
  position: absolute;
  top: -1000%;
  bottom: 0;
  left: 0;
  display: block;
  width: 100%;
  cursor: pointer;
}

#sustainability-rb .box .box_content .box_title:hover,
#sustainability-rb .box .box_content .box_title:focus {
  color: #fff;
  text-decoration: none;
}

#sustainability-rb .box .box_content .box_title + .box_lead {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 16px;
  -webkit-box-orient: vertical;
}

#sustainability-rb .box .box_content .box_lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

#sustainability-rb .box .box_content .box_lead p {
  margin: 0;
}

@media screen and (min-width: 768px) {
  /* エレメンテ .t-productsTop .box 相当（margin でリードを下に逃がし、ホバーでスルッと上がる） */
  #sustainability-rb .box .box_content {
    margin-bottom: -88px;
  }

  #sustainability-rb .box .box_content .box_title + .box_lead {
    display: block;
    overflow: visible;
    margin-top: 16px;
  }

  #sustainability-rb .box:hover .box_content {
    margin-bottom: 0 !important;
  }

  #sustainability-rb .box:hover .box_content .box_title {
    position: static;
    text-decoration: none;
  }
}

/* --------------------------------------------------------------------------
   レスポンシブ
   -------------------------------------------------------------------------- */

@media screen and (max-width: 1023px) {
  #sustainability-rb .rb-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  /* 比較フロー SP（罫線なし・ラベル帯→画像の縦積み） */
  #sustainability-rb .rb-compare {
    border-top: none;
  }

  #sustainability-rb .rb-compare__row {
    flex-direction: column;
  }

  #sustainability-rb .rb-compare__row + .rb-compare__row {
    border-top: none;
    margin-top: 24px;
  }

  #sustainability-rb .rb-compare__label {
    width: 100%;
    min-width: 0;
    padding: 0 0 16px;
    background-color: transparent;
  }

  #sustainability-rb .rb-compare__labelInner {
    position: relative;
    width: 100%;
    height: 50px;
    min-height: 50px;
    padding: 0 16px;
    line-height: 1.2;
  }

  #sustainability-rb .rb-compare__labelInner::after {
    position: absolute;
    bottom: -16px;
    left: 50%;
    display: block;
    width: 0;
    height: 0;
    content: '';
    transform: translateX(-50%);
    border-top: 16px solid #e8e9ec;
    border-right: 16px solid transparent;
    border-left: 16px solid transparent;
  }

  #sustainability-rb .rb-compare__label--rebuilt .rb-compare__labelInner::after {
    border-top-color: #e8f4ec;
  }

  #sustainability-rb .rb-compare__flow.rb-compare__flow--wide {
    padding: 0;
  }

  #sustainability-rb .rb-compare__figure--wide .rb-compare__figureSrc--pc {
    display: none;
  }

  #sustainability-rb .rb-compare__figure--wide .rb-compare__figureSrc--sp {
    display: block;
  }

  #sustainability-rb .rb-compare__note {
    padding: 8px 0 12px;
    border-top: none;
  }

  #sustainability-rb .rb-compare__noteText {
    text-align: left;
  }

  #sustainability-rb .rb-compare__arrow {
    width: 2px;
    height: 16px;
    transform: rotate(90deg);
  }

  #sustainability-rb .rb-compare__branches {
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  #sustainability-rb .rb-compare__branch {
    max-width: none;
  }

  #sustainability-rb .rb-compare__badge {
    position: static;
    margin-top: 8px;
    transform: none;
  }

  #sustainability-rb .rb-compare__badgeRate {
    margin: 0 auto;
  }

  #sustainability-rb .rb-steps {
    grid-template-columns: 1fr;
  }

  #sustainability-rb .rb-images {
    flex-direction: column;
  }

  #sustainability-rb .grid.grid--2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* メンテタブ .t-productsTop .box 相当（SPはタイトル帯のみ・リード非表示） */
  #sustainability-rb .box .box_content {
    position: static;
    margin-bottom: 0;
  }

  #sustainability-rb .box.box--md .box_content,
  #sustainability-rb .box .box_content {
    padding: 7px 12px;
  }

  #sustainability-rb .box.box--md .box_content .box_title,
  #sustainability-rb .box .box_content .box_title {
    font-size: 16px;
    line-height: 150%;
    position: static;
  }

  #sustainability-rb .box .box_content .box_title + .box_lead {
    display: none;
    margin-top: 0;
    overflow: visible;
  }
}
