/* Company setup: price section reference treatment. */

.p-setup #fee {
  position: relative;
  overflow: hidden;
  padding-block: 68px 58px;
  background: #fffdfa;
}

.p-setup #fee::before {
  position: absolute;
  top: 44px;
  right: max(32px, calc((100vw - 72rem) / 2 + 36px));
  width: min(34vw, 480px);
  height: 180px;
  background: url("../assets/contact-riverside-v1.png") right center / contain no-repeat;
  content: "";
  opacity: .12;
  pointer-events: none;
}

.p-setup #fee > .container {
  position: relative;
  z-index: 1;
}

.p-setup #fee .section__head {
  max-width: 760px;
  margin-bottom: 28px;
}

.p-setup #fee .section__no {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  color: #b98519;
  font-size: 1.45rem;
  line-height: 1;
}

.p-setup #fee .section__no small {
  font-family: "Noto Sans JP", sans-serif;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3em;
}

.p-setup #fee .section__no::after {
  width: 82px;
  height: 1px;
  background: #b98519;
  content: "";
}

.p-setup #fee .section__title {
  margin: 0;
  padding: 0;
  color: #071d3a;
  font-size: 4.6rem;
  line-height: 1.12;
}

.p-setup #fee .section__title::after {
  display: none;
}

.p-setup #fee .section__lede {
  margin-top: 14px;
  color: #152b46;
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.8;
}

.p-setup .setup-price-stage {
  position: relative;
  width: 100%;
}

.p-setup .setup-price-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.p-setup .setup-price-package {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: stretch;
  gap: 0;
  min-height: 250px;
  padding: 44px 32px 22px;
  color: #fff;
  background: #081f3b;
  border: 1px solid #b98519;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(6, 25, 49, .16);
}

.p-setup .setup-price-package > .setup-price-package__ribbon {
  position: absolute;
  top: -15px;
  left: 26px;
  z-index: 2;
  min-width: 258px;
  margin: 0;
  padding: 12px 26px;
  color: #071d3a;
  background: #dfb54d;
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  box-shadow: 0 5px 14px rgba(4, 20, 39, .18);
}

.p-setup .setup-price-package__body {
  min-width: 0;
  padding: 2px 34px 0 8px;
}

.p-setup .setup-price-package__body h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.45;
}

.p-setup .setup-price-package__lead {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, .78);
  font-size: .76rem;
  line-height: 1.7;
}

.p-setup .setup-price-package .setup-price-services {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-setup .setup-price-services li {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  color: #fff;
  font-size: .69rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

.p-setup .setup-price-package .setup-price-services li::before {
  display: none;
  content: none;
}

.p-setup .setup-price-package .setup-price-services > li > span:last-child {
  font-size: .69rem;
}

.p-setup .setup-price-services__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 50%;
}

.p-setup .setup-price-services__icon img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.p-setup .setup-price-services li b {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  color: #071d3a;
  background: #edd07e;
  border-radius: 50%;
  font-size: .65rem;
  line-height: 1;
}

.p-setup .setup-price-package__amount {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  padding-left: 30px;
  border-left: 1px solid rgba(223, 181, 77, .55);
  color: #edca6e;
  text-align: center;
}

.p-setup .setup-price-package__amount > p {
  margin: 0 0 8px;
  font-family: "Shippori Mincho", serif;
  font-size: .78rem;
  font-weight: 600;
}

.p-setup .setup-price-package__amount > div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

.p-setup .setup-price-package__amount strong {
  font-family: "Shippori Mincho", serif;
  font-size: 4.45rem;
  font-weight: 600;
  line-height: 1;
}

.p-setup .setup-price-package__amount span {
  font-family: "Shippori Mincho", serif;
  font-size: 1.35rem;
}

.p-setup .setup-price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.p-setup .setup-price-panel {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #d8d5cf;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(6, 25, 49, .08);
}

.p-setup .setup-price-panel__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 14px 20px;
  color: #fff;
  background: #0b2745;
}

.p-setup .setup-price-panel__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
}

.p-setup .setup-price-panel__icon img {
  width: 34px;
  height: 34px;
  filter: brightness(0) invert(1);
}

.p-setup .setup-price-panel__head h3 {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.35;
}

.p-setup .setup-price-panel__head small {
  color: rgba(255, 255, 255, .72);
  font-size: .59rem;
  font-weight: 500;
  letter-spacing: .28em;
  white-space: nowrap;
}

.p-setup .setup-price-panel table,
.p-setup .setup-price-panel tbody {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
}

.p-setup .setup-price-panel tr {
  display: table-row;
  background: transparent;
}

.p-setup .setup-price-panel th,
.p-setup .setup-price-panel td {
  height: 64px;
  padding: 10px 18px;
  border: 0;
  border-top: 1px solid #dedbd6;
  vertical-align: middle;
}

.p-setup .setup-price-panel tbody tr:first-child th,
.p-setup .setup-price-panel tbody tr:first-child td {
  border-top: 0;
}

.p-setup .setup-price-panel th {
  width: 74%;
  color: #0b203b;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.p-setup .setup-price-panel th span {
  display: block;
  margin-top: 3px;
  color: #687485;
  font-size: .62rem;
  font-weight: 400;
  line-height: 1.45;
}

.p-setup .setup-price-panel td:last-child {
  width: 26%;
  border-left: 1px solid #dedbd6;
  color: #a87518;
  font-family: "Shippori Mincho", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.p-setup .setup-price-stage > .fee-note {
  margin: 20px 16px 0;
  padding: 0;
  color: #505a68;
  font-size: .7rem;
  line-height: 1.7;
  list-style: none;
}

.p-setup .setup-price-stage > .fee-note a {
  color: #7f5910;
  text-decoration-color: rgba(127, 89, 16, .45);
  text-underline-offset: 3px;
}

@media screen and (max-width: 72rem) {
  .p-setup .setup-price-package {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 300px);
    padding-inline: 24px;
  }

  .p-setup .setup-price-package__body {
    padding: 2px 22px 0 4px;
  }

  .p-setup .setup-price-package__body h3 {
    font-size: 1.35rem;
  }

  .p-setup .setup-price-package__amount {
    padding-left: 22px;
  }

  .p-setup .setup-price-package__amount strong {
    font-size: 3.65rem;
  }

  .p-setup .setup-price-panel__head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .p-setup .setup-price-panel__head small {
    grid-column: 2;
    margin-top: -10px;
  }
}

@media screen and (max-width: 52rem) {
  .p-setup #fee::before {
    top: 32px;
    right: clamp(1rem, 4vw, 2.25rem);
    width: min(52vw, 360px);
    height: 150px;
    opacity: .09;
  }

  .p-setup #fee .section__title {
    font-size: 3.5rem;
  }

  .p-setup .setup-price-stage {
    width: 100%;
  }

  .p-setup .setup-price-package {
    grid-template-columns: minmax(0, 1fr) minmax(245px, 290px);
  }

  .p-setup .setup-price-package__body {
    padding-left: 4px;
  }

  .p-setup .setup-price-package .setup-price-services {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
  }

  .p-setup .setup-price-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media screen and (max-width: 40rem) {
  .p-setup #fee {
    padding-block: 46px 42px;
  }

  .p-setup #fee::before {
    display: none;
  }

  .p-setup #fee .section__head {
    margin-bottom: 42px;
  }

  .p-setup #fee .section__no {
    font-size: 1.25rem;
  }

  .p-setup #fee .section__no::after {
    width: 54px;
  }

  .p-setup #fee .section__title {
    font-size: 2.65rem;
  }

  .p-setup #fee .section__lede {
    margin-top: 10px;
    font-size: .9rem;
    line-height: 1.75;
  }

  .p-setup .setup-price-package {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 48px 18px 20px;
    border-radius: 6px;
  }

  .p-setup .setup-price-package > .setup-price-package__ribbon {
    top: -14px;
    left: 14px;
    min-width: 220px;
    padding: 11px 20px;
    font-size: 1rem;
  }

  .p-setup .setup-price-package__body {
    padding: 0;
  }

  .p-setup .setup-price-package__body h3 {
    font-size: 1.35rem;
    line-height: 1.55;
  }

  .p-setup .setup-price-package__lead {
    margin-bottom: 16px;
    font-size: .73rem;
  }

  .p-setup .setup-price-package .setup-price-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }

  .p-setup .setup-price-services li {
    font-size: .71rem;
  }

  .p-setup .setup-price-package .setup-price-services > li > span:last-child {
    font-size: .71rem;
  }

  .p-setup .setup-price-services__icon {
    width: 44px;
    height: 44px;
  }

  .p-setup .setup-price-package__amount {
    margin-top: 22px;
    padding: 20px 0 2px;
    border-top: 1px solid rgba(223, 181, 77, .55);
    border-left: 0;
  }

  .p-setup .setup-price-package__amount > p {
    font-size: .72rem;
  }

  .p-setup .setup-price-package__amount strong {
    font-size: 3.45rem;
  }

  .p-setup .setup-price-package__amount span {
    font-size: 1rem;
  }

  .p-setup .setup-price-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .p-setup .setup-price-panel {
    border-radius: 6px;
  }

  .p-setup .setup-price-panel__head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 66px;
    padding: 12px 14px;
  }

  .p-setup .setup-price-panel__icon,
  .p-setup .setup-price-panel__icon img {
    width: 30px;
    height: 30px;
  }

  .p-setup .setup-price-panel__head h3 {
    font-size: 1.16rem;
  }

  .p-setup .setup-price-panel__head small {
    margin-top: -8px;
    font-size: .5rem;
    letter-spacing: .16em;
  }

  .p-setup .setup-price-panel table,
  .p-setup .setup-price-panel tbody,
  .p-setup .setup-price-panel tr {
    display: table;
    width: 100%;
  }

  .p-setup .setup-price-panel tr {
    table-layout: fixed;
  }

  .p-setup .setup-price-panel th,
  .p-setup .setup-price-panel td:last-child {
    display: table-cell;
    height: 74px;
    padding: 10px 12px;
  }

  .p-setup .setup-price-panel th {
    width: 70%;
    font-size: .74rem;
  }

  .p-setup .setup-price-panel th span {
    margin-top: 4px;
    font-size: .57rem;
  }

  .p-setup .setup-price-panel td {
    width: 30%;
    font-size: 1.24rem;
  }

  .p-setup .setup-price-stage > .fee-note {
    margin: 16px 2px 0;
    font-size: .64rem;
  }
}
