.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: #000000;
  position: relative;
  padding-right: 45px;
}

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

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

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

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

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

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

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

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

/* 値セル */

.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 {
  width: 1000px;
  margin: 0 auto;
  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;
  }
}

/* ---- */

.vps-mv__description > div {
  font-size: 80%;
}
.vps-about__content {
  display: grid;
  grid: auto-flow / 1fr 1fr 1fr;
  gap: 50px;
  & > div {
    background-color: white;
    text-align: center;
    border-radius: 50px;
    padding: 30px;
    & > div {
      width: 100%;
      margin-inline: auto;
    }
  }
  img {
    margin-inline: auto;
    height: 100px;
  }
}

.vps-survey {
  .vps-survey__graphs {
    & > div:first-child {
      display: flex;
    }
    & > div:not(:first-child) {
      border: solid 1px;
      border-top-width: 0;
    }
    input {
      display: none;
    }
    label {
      display: block;
      flex: 1;
      border: solid 1px grey;
      background-color: lightgrey;
      color: grey;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      font-weight: 600;
      text-align: center;
      padding: 5px 0;
      font-size: 16pt;
    }
    input:checked + label {
      border: solid 1px blue;
      background-color: white;
      color: blue;
    }
    img {
      display: none;
      margin-inline: auto;
    }

    div:has(#ping:checked) + div > img#ping-image {
      display: block;
    }

    div:has(#jitter:checked) + div > img#jitter-image {
      display: block;
    }

    div:has(#speed:checked) + div > img#speed-image {
      display: block;
    }
  }
}

.vps-pricing {
  margin-block: 20px;
}
.vps-pricing__service_header {
  grid-column: span 2;
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
  &.vps {
    background-color: #F8BFD2;
  }
  &.private {
    background-color: #FBDA94;
  }
}

.vps-pricing__features li {
  font-size: 16px;
}
.vps-pricing__card {
  &.vps {
    .vps-pricing__btn, .vps-pricing__header {
      color: #000;
      background-color: #F8BFD2;
    }

  }
  &.private {
    .vps-pricing__btn, .vps-pricing__header {
      color: #000;
      background-color: #FBDA94;
    }
  }

  .vps-pricing__btn::after {
    background: url("../../img/common/icon_arrow-black.svg") center / contain no-repeat;
  }
}

.vps-reasons {
  ul {
    list-style-type: none;
    li {
      background-color: #FFF2B9;
      border-radius: 20px;
      padding-left: 120px;
      position: relative;
      width: 66.6%;
      margin-inline: auto;
      margin-block: 20px;
      padding-block: 20px;
      &::before {
        content: attr(data-number);
        color: #FFCD00;
        background-color: white;
        position: absolute;
        left: 40px;
        top: 20px;
        font-size: 32px;
        font-weight: 900;
        line-height: 58px;
        width: 60px;
        height: 60px;
        border-radius: 30px;
        text-align: center;
      }
      div {
        font-size: 16px;
      }
      div:first-child {
        font-size: 24px;
        font-weight: 700;
      }
    }

  }
}


.fx-flow {
  padding: 100px 0 0;
  background-color: #FFF2B9;
  .fx_flow__list {
    display: flex;
    & > div {
      background-color: white;
      position: relative;
      height: 300px;
      width: 18%;
      display: inline-block;
      margin-left: 5%;
      text-align: center;
      padding: 40px 15px 20px;
      flex: 1;
      &::before {
        font-size: 18px;
        content: attr(data-number);
        position: absolute;
        left: 0;
        top: 0;
        width: 20px;
        color: white;
        background-color: #FFCD00;
      }
      &:first-child::before {
        background-color: #FF9900;
      }

      &::after {
        content: "";
        position: absolute;
        top: 0;
        left: 100%;
        
        width: 15%;
        height: 300px;
        
        background-color: white;
        
        /* 左上、左下、右の中央を結んで三角形に切り抜く */
        clip-path: polygon(0% 0%, 0% 100%, 100% 50%);
      }

      img {
        margin-inline: auto;
        height: 33%;
        width: auto;
      }
      h3 {
        height: 70px
      }
    }
  }
}

.vps-trial-top-cta.white {
  background-color: #FFFFFF;
}

.vps-trial-top-cta.apply {
  .vps-trial-cta__card-btn {
    height: 96px;
    &.vps {
        background-color: #FF3366;

    }
    &.private {
        background-color: #FF9900;
    }
  }
}

.vps-subpage-header {
  background-image: none;
  background-color: #FFCD00;
}

/* -- */

.vps-pricing__grid {
  grid-template-columns: 1fr 1fr;
}

.vps-pricing__features li {
  grid-template-columns: none;
}

.vps-pricing {
  h3 {
    border-style: solid;
    border-width: 5px;
    border-radius: 10px;
    width: 200px;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 20px;
    &#vps {
      border-color: #F8BFD2;
    }
    &#private {
      border-color: #FBDA94;
    }
    & + div {
      text-align: center;
      margin-bottom: 20px;
    }
  }
}