.plan {
  height: 1200px;
  width: 100%;
  padding-top: 100px;
}

.plan-item3 {
  margin: 60px auto 0;
  max-width: 1140px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: center;
  gap: 0;
}

.plan3 {
  border-radius: 0;
  padding: 40px 33px;
  background: #fff;
  position: relative;
}

.plan3:first-child {
  width: 50%;
  border-radius: 5px 0 0 5px;
  position: relative;
  padding: 40px 33px;
}

/* スタータープランのタイトル部分 - 50%幅（右詰め） */
.plan3:first-child .starter-plan-header {
  width: 50%;
  margin-left: auto;
  text-align: center;
}

/* スタータープランの比較部分 - 100%幅 */
.plan3:first-child .starter-comparison {
  width: 100%;
  margin-bottom: 30px;
}

/* スタータープランのフッター部分（お問い合わせボタン） - 50%幅（右詰め） */
.plan3:first-child .starter-plan-footer {
  width: 50%;
  margin-left: auto;
  text-align: center;
}

.plan3:first-child .comparison-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(81, 81, 81, 0.1);
  padding: 13px 0;
  margin: 10px -33px 0 -33px;
  padding-left: 33px;
  padding-right: 33px;
}

.plan3:first-child .comp-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #515151;
  opacity: 0.7;
  width: 50%;
  text-align: left;
}

.plan3:first-child .comp-data {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #515151;
  width: 50%;
  text-align: center;
}

.plan3:nth-child(2) {
  width: 25%;
}

.plan3:nth-child(3) {
  width: 25%;
  border-radius: 0 5px 5px 0;
}

.plan3:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: rgba(81, 81, 81, 0.1);
}

#plan-title {
  font-size: 36px;
  text-align: center;
}

.plan-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.88px;
  color: #515151;
  text-align: center;
}

.plan3.bule-color .plan-title {
  color: #3179c0;
}

.green-color .plan-title {
  color: #40c3a3;
}

.sub-pay {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #515151;
  opacity: 0.7;
  text-align: center;
  margin: 0 0 18px 0;
}

.main-pay {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 2.05px;
  color: #515151;
  text-align: center;
  margin: 20px 0 8px;
}

.small {
  font-size: 16px;
  font-weight: 700;
  padding-left: 5px;
}

.target {
  background: transparent linear-gradient(272deg, #999999 0%, #5a5a5a 100%) 0%
    0% no-repeat padding-box;
  border-radius: 5px;
  opacity: 0.8;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.75px;
  color: #ffffff;
  text-align: center;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
}

.btn--ping {
  color: #fff;
  display: block;
  font-size: 12px;
  padding: 3px;
  background-color: #f56500;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #f56500;
  border-radius: 0.5em;
  margin-left: 8px;
}

.border-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-bottom: 1px solid rgba(81, 81, 81, 0.1);
  padding: 13px 0;
  margin: 10px -33px 0 -33px;
  padding-left: 33px;
  padding-right: 33px;
}

.th-p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #515151;
  opacity: 0.7;
  width: 41%;
  display: inline-block;
}

.td-p {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: #515151;
  margin: 0 0 0 78px;
  display: inline-block;
}

/* PC表示でスタンダード・プレミアムプランのデータ部分を中央揃え */
@media screen and (min-width: 1201px) {
  .plan3:nth-child(2) .td-p,
  .plan3:nth-child(3) .td-p {
    margin: 0;
    text-align: center;
    width: 100%;
  }
}

.plan3.bule-color .plan-title {
  color: #3179c0;
}

.plan3.bule-color .sub-pay {
  color: #3179c0;
}

.plan3.bule-color .main-pay {
  color: #3179c0;
}

.plan3.bule-color .target {
  background: transparent linear-gradient(89deg, #2667a8 0%, #3aa1de 100%) 0% 0%
    no-repeat padding-box;
  padding: 13px 0;
}

.plan3.bule-color .btn-register {
  background: transparent
    linear-gradient(272deg, #2667a8 0%, #3aa1de 51%, #2667a8 100%) 0% 0%
    no-repeat padding-box;
  background-size: 200% auto;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.green-color .plan-title {
  color: #40c3a3;
}

.green-color .sub-pay {
  color: #40c3a3;
}

.green-color .main-pay {
  color: #40c3a3;
}

.green-color .target {
  background: transparent linear-gradient(89deg, #3aa4b0 0%, #40c3a3 100%) 0% 0%
    no-repeat padding-box;
}

.plan3.green-color .btn-register {
  background: transparent
    linear-gradient(272deg, #3aa4b0 0%, #40c3a3 51%, #3aa4b0 100%) 0% 0%
    no-repeat padding-box;
  background-size: 200% auto;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

.btn-register {
  background: transparent
    linear-gradient(272deg, #5a5a5a 0%, #999999 51%, #5a5a5a 100%) 0% 0%
    no-repeat padding-box;
  background-size: 200% auto;
  box-shadow: 0px 0px 30px rgba(102, 102, 102, 0.1);
  border-radius: 70px;
  width: 100%;
  padding: 23px 0 23px;
  font-size: 16px;
  letter-spacing: 0.85px;
  margin: 30px 0 0 0;
  text-align: center;
  width: 100%;
  transition: 0.5s;
  color: #fff;
  text-decoration: none;
}

/* PC表示：1200px以上で中央と右のプランのタイトルを非表示 */
@media screen and (min-width: 1201px) {
  .plan3:nth-child(2) .th-p,
  .plan3:nth-child(3) .th-p {
    display: none;
  }
  
  /* スターターのPC表示でヘッダー内の比較項目とモバイルボタンを非表示 */
  .plan3:first-child .starter-plan-header .border-item,
  .plan3:first-child .starter-plan-mobile {
    display: none !important;
  }
}

/* タブレット表示 */
@media screen and (max-width: 1024px) {
  #plan-title {
    font-size: 32px;
  }
}

/* スマホ表示 */
@media screen and (max-width: 1200px) {
  #plan-title {
    font-size: 24px;
  }
  
  .plan {
    height: auto;
  }

  .plan-item3 {
    flex-direction: column;
    width: 90%;
    gap: 20px;
  }

  .plan3 {
    width: 100% !important;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0px 0px 30px rgba(102, 102, 102, 0.1);
    padding: 40px 33px !important;
    display: block !important;
  }

  .plan3::after {
    display: none;
  }
  
  /* スマホ表示でスターターの特殊構造を非表示 */
  .plan3:first-child .starter-comparison,
  .plan3:first-child .starter-plan-footer {
    display: none !important;
  }
  
  /* スマホ表示でスターターヘッダーを調整 */
  .plan3:first-child .starter-plan-header {
    width: 100% !important;
    margin-left: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* スマホ表示でモバイルボタンを表示 */
  .plan3:first-child .starter-plan-mobile {
    display: block !important;
  }
  
  .border-item {
    margin: 10px 0 0 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  /* スマホ表示でスタータープランの比較ラベルを左揃え */
  .plan3:first-child .th-p {
    text-align: left;
  }
}

/* お問い合わせリンクの下線を削除 */
.text-dec-none {
  text-decoration: none !important;
}

.text-dec-none:hover {
  text-decoration: none !important;
}
