#company-input,
#plan-input,
#payment-input,
#confirm {
  display: none;
}
#company-input.show,
#plan-input.show,
#payment-input.show,
#confirm.show {
  display: block;
}
#plan-input {
  width: 85%;
  margin: auto;
}
.plan-header-empty-area {
  width: 23%;
}
.plan-area {
  width: 25.9%;
  cursor: pointer;
}
.triangle::after {
  display: block;
  width: 20px;
  height: 20px;
  margin: -12px calc(50% - 10px) 0;
  content: "";
  transform: rotate(45deg);
}
#plan-a-area-outer.triangle::after {
  display: none;
  background-color: #0aa8a8;
}
#plan-b-area-outer.triangle::after {
  display: none;
  background-color: #3c9600;
}
#plan-c-area-outer.triangle::after {
  display: none;
  background-color: #2869a0;
}
.plan {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  justify-content: center;
  padding: 0 0 10px;
  margin: 0 0 0 7px;
  font-weight: bold;
  color: #ffffff;
  border-radius: 5px 5px 0 0;
}
.plan-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 6px 0;
  margin-right: 0;
  margin-bottom: 10px;
  background-color: #a4def9;
  border-radius: 5px 5px 0 0;
}
.plan-checkbox > div {
  position: relative;
  box-sizing: border-box;
  width: 19px;
  height: 19px;
  background-color: #ffffff;
  border: solid 1px #707070;
  border-radius: 2px;
  box-shadow: inset 1px 1px 1px rgb(0 0 0 / 20%);
}
.triangle .plan-checkbox > div::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 9.5px;
  height: 5px;
  content: "";
  border-top: solid 3px #707070;
  border-right: solid 3px #707070;
  transform: rotateZ(135deg);
}
.checkbox-sentence {
  margin-top: 1px;
  margin-left: 5px;
  color: #333333;
}
.plan-flex-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.plan-description-flex-row {
  display: flex;
  justify-content: flex-end;
  border-bottom: none;
}
.header {
  width: 23%;
  font-weight: bold;
  text-align: left !important;
}
.box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 0;
  text-align: center;
  border-bottom: solid 1px #d3d3d3;
}
.box:not(:first-child) {
  margin-left: 7px;
  cursor: pointer;
  background-color: #ffffff;
}
.st-only,
.sp-only,
.tb-only {
  display: none;
}
.box .transaction-amount {
  font-weight: bold;
}
.header .sub-attention {
  font-size: 13px;
  font-weight: 400;
}
.checked,
.not-checked {
  width: 19px;
}
.situation {
  box-sizing: border-box;
  width: 25%;
  font-size: 13px;
  border-right: solid 1px #d3d3d3;
  border-left: solid 1px #d3d3d3;
}
.bg-col {
  background-color: #eeeeee;
}
.plan-a-description-checked .bg-col {
  background-color: #e6f6f6;
}
.plan-b-description-checked .bg-col {
  background-color: #eaf4e5;
}
.plan-c-description-checked .bg-col {
  background-color: #e9f0f5;
}
.plan-a-description-checked {
  box-sizing: border-box;
  font-weight: normal;
  color: #0aa8a8;
  border-right: solid 1px;
  border-left: solid 1px;
}
.plan-b-description-checked {
  box-sizing: border-box;
  font-weight: normal;
  color: #3c9600;
  border-right: solid 1px;
  border-left: solid 1px;
}
.plan-c-description-checked {
  box-sizing: border-box;
  font-weight: normal;
  color: #2869a0;
  border-right: solid 1px;
  border-left: solid 1px;
}
.plan-explanation img {
  width: 540px;
}
.plan-description-flex-row:last-child .plan-a-description-checked,
.plan-description-flex-row:last-child .plan-b-description-checked,
.plan-description-flex-row:last-child .plan-c-description-checked,
.plan-description-flex-row:last-child .plan-r-description-checked {
  border-bottom: solid 1px;
}
.plan-disabled {
  background-color: #acacac;
}
.plan-disabled > .downward-triangle {
  display: none;
}
#plan-a-area:hover,
.plan-a {
  background-color: #0aa8a8;
}
#plan-b-area:hover,
.plan-b {
  background-color: #3c9600;
}
#plan-c-area:hover,
.plan-c {
  background-color: #2869a0;
}
.name {
  font-weight: normal;
}
.price {
  margin-top: 5px;
  font-size: 20px;
}
.plan-checkbox {
  display: flex;
  justify-content: center;
}
.plan-description {
  text-align: center;
}
.box:not(:first-child) {
  cursor: pointer;
}
.situation {
  width: 25%;
  font-size: 13px;
}
.star {
  font-size: 15px;
  color: #eb9e00;
}
.description-area {
  max-width: 800px;
  max-height: 100%;
  padding: 20px;
  margin: 30px auto;
  font-size: 14px;
  color: #3c3c3c;
  background: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 5px;

  /* android文字拡大対策 */
}
.description-area li {
  list-style-type: disc;
}
.description-area ul {
  padding-left: 20px;
}
.description-area .bold {
  font-weight: bold;
}
.description-area .description-header {
  margin-bottom: 5px;
  font-size: 16px;
}
.plan-a-description-checked {
  font-weight: bold;
  color: #0aa8a8;
}
.plan-b-description-checked {
  font-weight: bold;
  color: #3c9600;
}
.plan-c-description-checked {
  font-weight: bold;
  color: #2869a0;
}
.plan-explanation {
  margin-top: 10px;
  text-align: center;
}
.change_input {
  margin-left: 20px;
  font-size: 13px;
  font-weight: normal;
}
.payment-data-table {
  width: 85%;
  margin: initial;
}
#credit-description {
  margin-bottom: 20px;
  font-weight: normal;
}
#payment-input-form {
  width: 85%;
  margin: auto;
}
.consent-check-area {
  max-width: 740px;
}

/* 楽天プラン */
#plan-r-area-outer.plan-area {
  width: 100%;
}
#plan-r-area-outer.triangle::after {
  display: none;
  background-color: #bf0000;
}
#plan-r-area {
  display: grid;
  grid-template-rows: 45px 100px;
  grid-template-columns: repeat(5, 20%);
  width: 85%;
  padding: 0;
  margin: 30px auto 45px;
}
#plan-r-area.plan-disabled {
  background-color: unset;
}
#plan-r-area .plan-checkbox {
  height: 25px;
  padding: 10px 0 7px;
  margin: 0 0 -4px;
}
.plan-r-head {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  height: 34px;
  font-size: 13px;
  color: #3c3c3c;
  text-align: center;
  background-color: #f6f6f6;
}
.plan-r-head .sub-attention {
  font-size: 12px;
  font-weight: 400;
}
.plan-r-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 100%;
}
#plan-r-area > div:nth-child(n + 2):nth-child(-n + 5) {
  border-right: solid 1px #d3d3d3;
}
#plan-r-area > div:nth-child(6) {
  position: relative;
  width: 100%;
  color: #ffffff;
  background-color: #acacac;
}
#plan-r-area > div:nth-child(6):hover {
  background-color: #bf0000;
}
#plan-r-area > div:nth-child(6):hover::before {
  border-color: #eec23b transparent;
}
#plan-r-area > div:nth-child(6):hover > p:first-child::before,
#plan-r-area > div:nth-child(6):hover > p:first-child::after {
  border-color: #9f7906 transparent transparent;
}
#plan-r-area > div:nth-child(6)::before {
  position: absolute;
  top: 6px;
  left: -22px;
  z-index: 5;
  width: 34px;
  height: 0;
  content: "";
  border-color: #dddddd transparent;
  border-style: solid;
  border-width: 0 20px 20px;
  transform: rotate(-45deg);
}
#plan-r-area > div:nth-child(6) > p:first-child {
  position: absolute;
  top: 5px;
  left: 1px;
  z-index: 10;
  font-size: 12px;
  color: #333333;
  letter-spacing: 4px;
  transform: rotate(-45deg);
}
#plan-r-area > div:nth-child(6) > p:first-child::before,
#plan-r-area > div:nth-child(6) > p:first-child::after {
  position: absolute;
  top: 19px;
  width: 0;
  height: 0;
  content: "";
  border-color: #9c9c9c transparent transparent;
  border-style: solid;
  border-width: 3px;
}
#plan-r-area > div:nth-child(6).plan-r-description-checked::before {
  border-color: #eec23b transparent;
}
#plan-r-area
  > div:nth-child(6).plan-r-description-checked
  > p:first-child::before,
#plan-r-area
  > div:nth-child(6).plan-r-description-checked
  > p:first-child::after {
  border-color: #9f7906 transparent transparent;
}
#plan-r-area > div:nth-child(6).plan-r-description-checked {
  font-weight: 600;
  background-color: #bf0000;
  border: unset;
}
#plan-r-area > div:nth-child(6) > p:first-child::before {
  left: 46px;
}
#plan-r-area > div:nth-child(6) > p:first-child::after {
  left: -22px;
}
#plan-r-area > div:nth-child(8) .transaction-amount {
  font-weight: 600;
}
#plan-r-area > div:nth-child(n + 7):nth-child(-n + 10) {
  font-weight: 400;
  color: #3c3c3c;
  text-align: center;
  background-color: #ffffff;
  border-left: unset;
}
#plan-r-area
  > div:nth-child(n + 7):nth-child(-n + 10).plan-r-description-checked {
  font-weight: bold;
  color: #bf0000;
  border-top: solid 1px;
  border-right: solid 1px #d3d3d3;
  border-bottom: solid 1px;
}
#plan-r-area > div:last-child.plan-r-description-checked {
  border-right: solid 1px #bf0000 !important;
}
.plan-r-description-checked .bg-col {
  background-color: #f5e9e9;
}

/* 遷移型フォームレスポンシブ
----------------------------------------------------------------------------------------------- */
@media screen and (width <= 940px) {
  .tb-only {
    display: block;
  }
  .st-only {
    display: inline-block;
  }
  #plan-input .data-table .plan-header-empty-area,
  #plan-input .data-table .plan-description-flex-row > .header {
    display: flex;
    width: 24%;
    padding-bottom: 15px;
    font-size: 13px;
    text-align: center !important;
  }
  #plan-input .data-table .plan-header-empty-area {
    display: inline-block;
    margin-left: 0 !important;
    font-size: 12px;
    font-weight: normal;
  }
  #plan-input .data-table .header .sub-attention {
    margin-left: 0 !important;
  }
  #plan-input .data-table .box .sp-line-height {
    margin-bottom: 7px;
    line-height: 1.4;
  }
  #plan-input .data-table .box .sp-line-height:last-child {
    margin-bottom: 0;
  }
  #plan-input .data-table .box .end {
    margin-bottom: 0;
  }
  #plan-input .data-table .plan-area {
    width: 34.5%;
  }
  #plan-input .data-table .plan {
    flex-flow: column nowrap;
    font-size: 13px;
  }
  #plan-input .data-table .plan-description-flex-row {
    flex-wrap: nowrap;
  }

  /* 楽天プラン */
  .plan-r-head {
    line-height: 17px;
  }
}
@media screen and (width <= 670px) {
  .pt-only {
    display: none;
  }
  .tb-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
  #plan-input .data-table #pre-form-wrap .sp-11 {
    font-size: 10px;
    font-weight: bold;
  }
  #plan-input .data-table .situation {
    font-size: 12px;
  }
  #plan-input .data-table .box:not(:first-child) {
    margin-left: 5px;
  }
  #plan-input .data-table .plan-header-empty-area {
    width: 13%;
  }
  #plan-input .data-table .plan-flex-row {
    margin-top: 20px;
  }
  #plan-input .data-table .plan-description-flex-row > .header {
    width: 18%;
    padding-bottom: 10px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }
  #plan-input .data-table .box {
    padding: 10px 0;
  }
  #plan-input .data-table .plan {
    margin: 0 0 0 5px;
    font-size: 11px;
  }
  #plan-input .data-table .plan-area {
    width: 28.3%;
  }
  #plan-input .data-table .price {
    margin-top: 0;
    font-size: 14px;
  }
  #plan-input .data-table .price-yen {
    font-size: 11px;
  }
  #plan-input .data-table .plan-checkbox {
    align-items: center;
    padding: 3px 0;
  }
  #plan-input .data-table .checkbox-sentence {
    margin-left: 2px;
  }
  #plan-input .data-table .checked,
  #plan-input .data-table .not-checked {
    width: 15px;
  }
  #plan-input .data-table .header .sub-attention {
    margin-top: 5px;
    font-size: 10px !important;
    line-height: 1.7;
  }
  #plan-input .data-table .description-area {
    margin: 20px auto 30px;
  }
  .plan-checkbox > div {
    width: 15px;
    height: 15px;
  }
  .triangle .plan-checkbox > div::after {
    top: 2px;
    left: 2px;
    width: 7px;
    height: 4px;
    border-top: solid 2.5px #707070;
    border-right: solid 2.5px #707070;
  }

  /* 楽天プラン */
  #plan-r-area {
    grid-template-rows: 35px 74px 75px 75px 53px 53px;
    grid-template-columns: 150px 1fr;
    gap: 0 4px;
    width: 100%;
  }
  #plan-r-area .plan-checkbox {
    grid-area: 1 / 2 / 2 / 3;
  }
  #plan-r-area > div:nth-child(2).plan-r-head {
    grid-area: 3 / 1 / 4 / 2;
  }
  #plan-r-area > div:nth-child(3).plan-r-head {
    grid-area: 4 / 1 / 5 / 2;
  }
  #plan-r-area > div:nth-child(4).plan-r-head {
    grid-area: 5 / 1 / 6 / 2;
  }
  #plan-r-area > div:nth-child(5).plan-r-head {
    grid-area: 6 / 1 / 7 / 2;
  }
  #plan-r-area > div:nth-child(6).plan-r-description {
    grid-area: 2 / 2 / 3 / 3;
    padding-top: 4px;
    margin-top: 4px;
  }
  #plan-r-area > div:nth-child(7).plan-r-description {
    grid-area: 3 / 2 / 4 / 3;
  }
  #plan-r-area > div:nth-child(8).plan-r-description {
    grid-area: 4 / 2 / 5 / 3;
  }
  #plan-r-area > div:nth-child(9).plan-r-description {
    grid-area: 5 / 2 / 6 / 3;
  }
  #plan-r-area > div:nth-child(10).plan-r-description {
    grid-area: 6 / 2 / 7 / 3;
  }
  #plan-r-area > div:nth-child(n + 2):nth-child(-n + 5) {
    height: 100%;
    line-height: 155%;
    border-right: unset;
    border-bottom: solid 1px #d3d3d3;
  }
  #plan-r-area > div:nth-child(n + 7):nth-child(-n + 10) {
    border-bottom: solid 1px #d3d3d3 !important;
  }
  #plan-r-area
    > div:nth-child(n + 7):nth-child(-n + 10).plan-r-description-checked {
    border-top: unset;
    border-right: solid 1px;
    border-left: solid 1px;
  }
  #plan-r-area
    > div:nth-child(10).plan-r-description.plan-r-description-checked {
    border-bottom: solid 1px #bf0000 !important;
  }
  #plan-r-area > div:nth-child(6)::before {
    top: 10px;
  }
  #plan-r-area > div:nth-child(6) > p:first-child {
    top: 10px;
  }
  #plan-r-area > div:nth-child(6) > p:first-child::before {
    left: 46px;
  }
}

/* 支払い方法変更周り
----------------------------------------------------------------------------------------------- */
#payment-input-form .data-table .pay-method-paid {
  font-weight: normal;
}
#payment-input-form .data-table .pay-method-paid .paid-input {
  background: none;
}
#payment-input-form
  .data-table
  .pay-method-paid
  .paid-input
  .paid-padding-area {
  padding: 20px 0;
}
#payment-input-form .data-table .pay-method-paid .paid-input .ci-tr .ci-th {
  width: 40em;
  border: none;
}
.data-table .pay-method-paid .paid-input .ci-tr .ci-th .ci-radio-btn {
  cursor: pointer;
}
.data-table .pay-method-paid .paid-input .ci-tr .ci-th p {
  margin-bottom: 20px;
  font-weight: normal;
}
.data-table .pay-method-paid .paid-radio-btn {
  display: none;
}
.data-table .pay-method-paid .paid-input-label {
  cursor: default;
}
a.co-arrow-link {
  padding-top: 1px;
  padding-right: 12px;
  letter-spacing: 0.5px;
  background: url(/web/img/pre/icon/img_icon_arrow.gif) center right no-repeat;
  background-size: 7px 11px;
}

/* ステップ表示周り
----------------------------------------------------------- */
.step-info.step5::after {
  width: 70%;
  margin: 0 15%;
}

@media screen and (width <= 940px) {
  #pre-form-wrap .container {
    width: 95%;
  }
  .plan-header-empty-area,
  .plan-description-flex-row > .header {
    display: flex;
    width: 100%;
    padding-bottom: 0;
    font-size: 15px;
    text-align: center;
  }
  .plan-header-empty-area,
  .plan-description-flex-row > .header .sub-attention {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    font-weight: normal;
  }
  .plan-header-empty-area,
  .plan-description-flex-row > .plan-header-empty-area {
    display: none;
  }
  .plan {
    flex-flow: column-reverse nowrap;
    font-size: 13px;
  }
  .plan-checkbox {
    z-index: 1;
    margin-right: initial;
  }
  .price {
    font-size: 16px;
  }
  .plan-description-flex-row {
    flex-wrap: wrap;
  }
  .plan-description-flex-row > .situation {
    width: 33%;
  }
  .description-area {
    width: 90%;
    padding: 15px;
    text-align: left;
  }
  .description-area img {
    max-width: 100%;
  }
}
@media screen and (width <= 670px) {
  #payment-input-form {
    width: 95%;
  }
  .pay-method-form .data-table .pay-method-paid .paid-input .ci-tr .ci-th {
    padding-right: 20px;
  }
  #pre-form-wrap .sp-11 {
    font-size: 10px;
  }
}
.step-info .step-txt p {
  word-break: keep-all;
}

/* 支払い方法まわり
----------------------------------------------------------------------------------------------- */
@media screen and (width <= 670px) {
  .data-table .pay-method-credit .credit-input .ci-tr .ci-th {
    width: 8em;
  }
  .data-table .pay-method-credit .credit-input .credit-num-input {
    width: 4em;
  }
}

/* プラン選択の注記
----------------------------------------------------------------------------------------------- */
.plan-description-table-attention {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 10px 0;
  font-size: 11px;
}

@media screen and (width <= 670px) {
  .plan-description-table-attention {
    display: inline-block;
  }
}
