.notice-section {
  h3 {
    margin-bottom: 1em;
  }
}

.vps-pricing__grid {
	gap: 60px 0;
}


/* ============================================================
   スペック
   ============================================================ */

.vps-specs {
  padding: 100px 0 100px;
  background: #ffffff;
}

.vps-specs__intro {
  text-align: center;
  margin-bottom: 20px;
}

.vps-specs__title {
  margin-bottom: 24px;
}

.vps-specs__subtitle {
  font-size: 22px;
  text-align: center;
}

.vps-specs__content {
  max-width: 1200px;
  margin: 0 auto;
}

.vps-specs__description {
  text-align: center;
  margin-bottom: 60px;
}

.vps-specs__table-wrapper {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 1000px;
  &:has(.vps-specs__group:nth-child(2)) {
    max-width: 1200px;
  }
  margin-inline: auto;
}

.vps-specs__group {
  display: flex;
  flex-direction: column;
}

.vps-specs__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-bottom: 1px solid #dbe5f3;
  min-height: 100px;
}

.vps-specs__row:first-child {
  border-top: 1px solid #dbe5f3;
}

.vps-specs__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  border-right: 1px solid #dbe5f3;
  border-left: 1px solid #dbe5f3;
  padding: 10px 0;
}

.vps-specs__cell:first-child {
  border-right: none;
}

/* 項目名セル */

.vps-specs__label {
  color: #ffffff;
  position: relative;
  padding-right: 45px;
}

/* 左グループの奇数行項目名 - 青 */

.vps-specs__group--left .vps-specs__row:nth-child(odd) .vps-specs__label {
  background: #1977f2;
}

/* 左グループの偶数行項目名 - 水色 */

.vps-specs__group--left .vps-specs__row:nth-child(even) .vps-specs__label {
  background: #6facfd;
}

/* 右グループの奇数行項目名 - 青 */

.vps-specs__group--right .vps-specs__row:nth-child(odd) .vps-specs__label {
  background: #1977f2;
}

/* 右グループの偶数行項目名 - 水色 */

.vps-specs__group--right .vps-specs__row:nth-child(even) .vps-specs__label {
  background: #6facfd;
}

/* 値セル */

.vps-specs__value {
  background: #f2f4f8;
  color: #111111;
}

.vps-specs__label {
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.vps-specs__tooltip-btn {
  position: absolute;
  top: 50%;
  right: 23px;
  /* transform で中央寄せすると子要素の position: fixed の基準が
     viewport ではなく button になってしまうため、margin-top で代替 */
  margin-top: -12.5px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.vps-specs__tooltip-btn img {
  width: 25px;
  height: 25px;
  display: block;
}

.vps-specs__tooltip-btn:hover {
  opacity: 0.8;
}

/* ツールチップ吹き出し本体 (data-tooltip 属性のテキストを表示)
   .vps-specs__tooltip-btn と .vps-options__tooltip-btn 両方に共通適用。
   position: fixed で viewport 基準。位置 (top/left) は JS が
   getBoundingClientRect から計算して --tooltip-top / --tooltip-left に設定。
   非表示時は -9999px に逃がして親 overflow に影響させない。 */
.vps-specs__tooltip-btn::before{
  content: attr(data-tooltip);
  position: fixed;
  top: var(--tooltip-top, -9999px);
  left: var(--tooltip-left, -9999px);
  width: max-content;
  max-width: 280px;
  padding: 10px 14px;
  background: #333333;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
  line-height: 1.5;
  border-radius: 6px;
  white-space: pre-wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  z-index: 9999;
}

/* 三角矢印 */
.vps-specs__tooltip-btn::after,
.vps-options__tooltip-btn::after {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #333333;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease;
  z-index: 20;
}

.vps-specs__tooltip-btn:hover::before,
.vps-specs__tooltip-btn:focus-visible::before,
.vps-specs__tooltip-btn:hover::after,
.vps-specs__tooltip-btn:focus-visible::after {
  opacity: 1;
  visibility: visible;
}


.vps-specs__note {
  text-align: right;
}

.vps-pricing__specs + .vps-pricing__btn {
  margin-top: auto;
}

.vps-pricing__info:has(.vps-pricing_price-table) {
  background-color: initial;
}
.vps-pricing_price-table {
  th {
    font-weight: normal;
  }
}

@media (max-width: 768px) {
	.vps-pricing__grid {
		gap: 60px 15px;
	}
}


@media (max-width: 1024px) {
	
  .vps-specs__subtitle {
    font-size: 20px;
  }

}

@media (max-width: 768px) {
  /* vps-specs */

  .vps-specs__table-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vps-specs__tooltip-btn {
    right: 10px;
  }

  .vps-specs__tooltip-btn img {
    width: 18px;
    height: 18px;
  }

  .vps-specs__cell {
    padding: 16px 12px;
    text-align: left;
    justify-content: flex-start;
    font-size: 14px;
  }

  .vps-specs__label {
    justify-content: flex-start;
  }

  .vps-specs {
    padding: 60px 0 60px;
  }

  .vps-specs__intro {
    margin-bottom: 40px;
  }

  .vps-specs__description {
    margin-bottom: 40px;
  }

  .vps-specs__row {
    height: auto !important;
    min-height: 60px;
  }

  .vps-specs__note {
    font-size: 12px;
  }
}