.bootstrap-table thead th.newPrice,
.bootstrap-table thead th.newDiffPrice,
.bootstrap-table thead th.usedPrice,
.bootstrap-table thead th.usedDiffPrice,
.bootstrap-table thead th.newUnitPrice,
.bootstrap-table thead th.rentalPrice,
.bootstrap-table thead th.usedUnitPrice {
  display: none;
}

.bootstrap-table tbody td.newPrice,
.bootstrap-table tbody td.newDiffPrice,
.bootstrap-table tbody td.usedPrice,
.bootstrap-table tbody td.usedDiffPrice,
.bootstrap-table tbody td.newUnitPrice,
.bootstrap-table tbody td.rentalPrice,
.bootstrap-table tbody td.usedUnitPrice {
  display: none;
}

.p-tophero {
  padding-top: 210px;
}

.result-summary {
  display: flex;
}

.result-summary dt {
  text-align: right;
  font-weight: bold;
}

.result-summary dt>span {
  display: inline-block;
  padding: 5px 10px;
  background: #555;
  color: #FFF;
  border-radius: 20px;
  text-align: center;
  width: 10rem;
}

.result-summary dd {
  text-align: left;
  font-weight: bold;
  color: #333;
  margin-left: 20px;
}

.p-table {
  width: 100%;
  border-collapse: collapse;
}

.p-table td, .p-table th {
  padding: 5px;
}

.p-table thead th {
  border-left: 1px solid #E4E4E4;
}

.p-table tbody th {
  border-top: 1px solid #E4E4E4;
}

.p-table tbody td {
  border-top: 1px solid #E4E4E4;
  border-left: 1px solid #E4E4E4;
}

.p-table thead th>span {
  background-color: #F2F5F7;
  width: 100%;
  display: block;
  border-radius: 1rem;
  font-size: var(--fsize-medium);
  padding: 5px;
}

.p-table tbody th>span {
  color: #FFF;
  width: 100%;
  display: block;
  border-radius: 1rem;
  font-size: var(--fsize-medium);
  padding: 5px;
}

.p-table tbody th>span.rental {
  background-color: rgba(54, 162, 235, 1);
}

.p-table tbody th>span.reuse {
  background-color: rgba(75, 192, 192, 1);
}

.p-table tbody th>span.newPrice {
  background-color: rgba(99, 99, 99, 1);
}

.d-room-none .table {
  display: none;
}

.d-room-none figure {
  display: none;
}

.p-table-container {
  overflow-x: auto;
}

@media only screen and (max-width: 768px) {
  .p-table {
    width: max-content;
    max-width: max-content !important;
  }
}

.table thead th.num,
.table tbody td.num {
  text-align: right;
}

.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 20px 0;
}

.tab-wrap:after {
  content: '';
  width: 100%;
  height: 3px;
  background: DeepSkyBlue;
  display: block;
  order: -1;
}

.tab-label {
  color: White;
  background: LightGray;
  font-weight: bold;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
  white-space: nowrap;
  text-align: center;
  padding: 10px .5em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  flex: 1;
  margin-top: 5px;
}

.tab-label:not(:last-of-type) {
  margin-right: 5px;
}

.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  border: 0;
  padding: 0;
}

/* アクティブなタブ */
.tab-switch:checked+.tab-label {
  background: DeepSkyBlue;
}

.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: auto;
  padding: 7px 7px 7px 0;
  opacity: 1;
  transition: .5s opacity;
}

/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}

.tab-wrap {
  margin: 0;
}

/* 品目アコーディオン（<=1012pxで有効） */
.items-accordion-toggle {
  display: none;
}

@media (max-width: 1012px) {
  .items-accordion-toggle {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    margin: 6px 0;
    border-radius: 8px;
    border: 1px solid #E4E4E4;
    background: #F2F5F7;
    font-weight: bold;
  }

  /* デフォルト閉 */
  .items-accordion-content {
    display: none;
  }

  .items-accordion-content.-open {
    display: table;
  }
  div.items-accordion-content.-open {
    display: block;
  }
}

@media (min-width: 1013px) {
  .items-accordion-toggle {
    display: none !important;
  }

  .items-accordion-content {
    display: table !important;
  }
  div.items-accordion-content {
    display: block !important;
  }
}

#summarySection {
  transition: all 0.3s;
  transform-origin: top;
  opacity: 1;
  transform: scaleY(1);
}

#spaceSection #spaceSection__room {
  transition: all 0.3s;
  transform: translateX(35%);
}

#spaceSection #spaceSection__room {
  transform: translateX(0);
}

#spaceSection #spaceSection__graph {
  transform: scaleX(0);
  transition: all 0.3s;
  transform-origin: right;
  opacity: 0;
}

#spaceSection #spaceSection__graph {
  transform: scaleX(1);
  opacity: 1;
}

@media only screen and (max-width: 1012px) {
  #spaceSection #spaceSection__room {
    transform: translateX(0);
  }

  #spaceSection #spaceSection__graph {
    transform: scaleX(1);
    opacity: 1;
    padding-top: 20px !important;
  }
}

main {
  margin: 0;
}

/* ===== Tooltip (Balloon) for reuseComment ===== */
#reuseComment[data-balloon] {
  position: relative;
  cursor: pointer;
}

#reuseComment[data-balloon]:hover::after,
#reuseComment[data-balloon].-show-tip::after {
  opacity: 1;
  transform: translate(calc(-100% + 35px), 0px)
}

#reuseComment[data-balloon]::after {
  content: attr(data-balloon);
  position: absolute;
  left: 0%;
  bottom: 100%;
  transform: translate(calc(-100% + 35px), 20px);
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
  pointer-events: none;
}

#reuseComment[data-balloon]:hover::before,
#reuseComment[data-balloon].-show-tip::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

#reuseComment[data-balloon]::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  transform: translate(-50%, 20px) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #333;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 29;
  pointer-events: none;
}

/* ===== Tooltip (Balloon) for rentalComment ===== */
#rentalComment[data-balloon] {
  position: relative;
  cursor: pointer;
}

#rentalComment[data-balloon]:hover::after,
#rentalComment[data-balloon].-show-tip::after {
  opacity: 1;
  transform: translate(calc(-100% + 35px), 0);
}
#rentalComment[data-balloon]:hover::before,
#rentalComment[data-balloon].-show-tip::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

#rentalComment[data-balloon]::after {
  content: attr(data-balloon);
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translate(calc(-100% + 35px), 20px);
  background: #333;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 30;
  pointer-events: none;
}

#rentalComment[data-balloon]::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% - 4px);
  transform: translate(-50%, 20px) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #333;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 29;
  pointer-events: none;
}

@media (max-width: 767px) {
  #rentalComment[data-balloon]::after {
    white-space: normal;
    max-width: 200px;
    width: 50vw;
    text-align: center;
  }
  #reuseComment[data-balloon]::after {
    white-space: normal;
    max-width: 200px;
    width: 50vw;
    text-align: center;
  }
  .p-scroll-btn {
    display: none;
  }
}

@media screen and (min-width: 768px) and (min-height: 550px) {
  .hd2hqmh>.inner {
    position: relative !important;
  }

  html, body {
    margin: 0;
    height: 100vh;
    scroll-snap-type: y mandatory;
    /* 縦方向にスナップ */
  }

  main>.p-breadcrumb {
    scroll-snap-align: end;
  }

  main>.p-middle-hero {
    scroll-snap-align: start;
  }

  main>#message {
    height: calc(100vh - 200px - 34px - 61px);
    display: flex;
    align-items: center;
    scroll-snap-align: end;
  }

  main>#summary {
    padding-top: 2rem;
    scroll-snap-align: start;
    height: 100vh;
    display: flex;
    align-items: center;
  }

  main .costChat01 {
    width: 100%;
    height: 300px;
    max-width: auto;
    max-height: calc(calc(100vh - 420px)) !important;
    margin: auto;
  }

  main .costChat02 {
    width: 100%;
    height: 300px;
    max-width: auto;
    max-height: calc(calc(100vh - 380px)) !important;
    margin: auto;
  }

  main>#spaceTextSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    scroll-snap-align: start;
    height: 100vh;
  }

  main>#spaceSection {
    padding-top: 2rem;
    scroll-snap-align: start;
    height: 100vh;
  }

  main>#numSection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 2rem;
    scroll-snap-align: start;
    height: 100vh;
  }

  main>#contactSection {
    padding-top: 2rem;
    scroll-snap-align: start;
  }

  footer {
    scroll-snap-align: end;
  }
}