
@media screen and ( max-width: 1024px ) {

  main {
    padding: 0;
  }

  section.plan-detail {
    padding: 0 15px;
  }

}

/* Promise Box */

#header.plan > .promise-box {
  display: none;
  width: var( --layout-contents-width );
  margin: 0 auto;
  margin-bottom: 4%;
}

#header.plan > .promise-box img {
  width: 100%;
}

@media screen and ( max-width: 1024px ) {

  #header.plan > .promise-box {
    width: 75%;
    /*margin-bottom: 10%;*/
    padding: var( --outline-padding-width );
  }

}

/* Refund Box */

#header.plan > .refund-box {
  width: var( --layout-contents-width );
  margin: 0 auto;
  margin-bottom: 4%;
}

#header.plan > .refund-box img {
  width: 100%;
}

@media screen and ( max-width: 1024px ) {

  #header.plan > .refund-box {
    width: 90%;
    margin-bottom: 10%;
    padding: var( --outline-padding-width );
  }

}

/* Infomation Box */

#header.plan > .infomation-box {
  width: var( --layout-contents-width );
  margin: 0 auto;
  margin-bottom: 4%;
}

#header.plan > .infomation-box img {
  width: 100%;
}

#header.plan > .infomation-box > .refund {
  text-align: right;
}

#header.plan > .infomation-box > .refund > a {
  text-decoration: none;
}

@media screen and ( max-width: 1024px ) {

  #header.plan > .infomation-box {
    width: 90%;
    /*margin-bottom: 10%;*/
    padding: var( --outline-padding-width );
  }

  #header.plan > .infomation-box > .refund > a {
    font-size: 3.0vw;
  }

}

/* Case Box */

#header.plan > .case-box {
  width: var( --layout-contents-width );
  margin: 0 auto;
  margin-bottom: 4%;
}

#header.plan > .case-box img {
  width: 100%;
  margin-left: 6%;
}

@media screen and ( max-width: 1024px ) {

  #header.plan > .case-box {
    width: 75%;
    margin-bottom: 10%;
    padding: var( --outline-padding-width );
  }

}

/* Article - Header */

article > header {
  margin-bottom: 4%;
  border: 0;
}

article > header > h1 > img {
  width: 65%;
  margin: 0 auto;
  display: block;
}

/* Section */

.section > .header {
  margin-bottom: 2%;
  padding-top: 2%;
}

.section > .header > img {
  /*width: 75%;*/
  /*margin: 0 auto;*/
  display: block;
}

.section:is( .hyper, .boost, .basic ) {
  margin-bottom: 0;
  padding-bottom: 4%;
}

.section:is( .hyper, .boost, .basic ) > .content {
  padding: 0 2%;
}

.section.hyper > .header > img {
  width: 62.46%;
  aspect-ratio: 1 / 0.2518;
}

.section.boost > .header > img {
  width: 53%;
  aspect-ratio: 1 / 0.2351;
}

.section.basic > .header > img {
  width: 51.7%;
  aspect-ratio: 1 / 0.2403;
}

.section:is( .hyper, .boost, .basic ) > .header > img {
  margin-left: 5%;
}

/* Plan Box */

.plan-box {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  /*gap: 1.0vw;*/
}

.plan-box > .item {
  /*flex-basis: calc( ( 100% - ( 1.0vw * 2 ) ) / 3 );*/
  flex-basis: calc( 100% / 3 );
  background-size: 100%;
  background-repeat: no-repeat;
  width: 100%;
  aspect-ratio: 0.3700 / 1;
  position: relative;
}

/* Plan Box - Discount */

.plan-box > .item > .discount {
  width: 35%;
  display: inline-block;
  position: absolute;
  top: 21%;
  right: -3%;
  z-index: 10;
}

.plan-box > .item > .discount > img {
  width: 100%;
}

/* Plan Box - CTA */

.plan-box > .item > .cta {
  width: 75%;
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translate( -50%, 0 );
}

.plan-box > .item > .cta > a {
  display: block;
}

.plan-box > .item > .cta > a > img {
  width: 100%;
}

/* Plan Box - Hightend */

.section.hyper {
  background-color: rgba( 73, 201, 224, 0.3 );
}

.plan-box.hyper > .item.briset-18 {
  background-image: url( '/images/plan/briset/hyper/18/background.png' );
}
.plan-box.hyper > .item.briset-24 {
  background-image: url( '/images/plan/briset/hyper/24/background.png' );
  margin: 0 -5px;
  z-index: 1;
}
.plan-box.hyper > .item.briset-30 {
  background-image: url( '/images/plan/briset/hyper/30/background.png' );
}

/* Plan Box - Boost */

.section.boost {
  background-color: rgba( 238, 132, 178, 0.3 );
}

.plan-box.boost > .item.briset-10 {
  background-image: url( '/images/plan/briset/boost/10/background.png' );
}
.plan-box.boost > .item.briset-12 {
  background-image: url( '/images/plan/briset/boost/12/background.png' );
  margin: 0 -5px;
  z-index: 1;
}
.plan-box.boost > .item.briset-15 {
  background-image: url( '/images/plan/briset/boost/15/background.png' );
}

/* Plan Box - Entry */

.section.basic {
  background-color: rgba( 255, 168, 29, 0.3 );
}

.plan-box.basic > .item.briset-03 {
  background-image: url( '/images/plan/briset/basic/03/background.png' );
}
.plan-box.basic > .item.briset-05 {
  background-image: url( '/images/plan/briset/basic/05/background.png' );
  margin: 0 -5px;
  z-index: 1;
}
.plan-box.basic > .item.briset-07 {
  background-image: url( '/images/plan/briset/basic/07/background.png' );
}

/* Other */

.section.other {
  margin-top: 6%;
}

.section.other > .header {
  margin: 0;
  padding: 0;
}

.section.other > .header > img {
  width: 100%;
}

.section.other > .content > .frame {
  background-image: url( '/images/plan/briset/other/background.png' );
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  aspect-ratio: 1 / 0.8979;
  display: flex;
  align-items: flex-start;
  gap: 2.3%
}

.section.other > .content > .frame > .item {
  /*flex-basis: calc( ( 100% - 2.3% ) / 2 );*/
  flex-basis: calc( 100% / 2 );
}

.section.other > .content > .frame > .item > .header {
  background-color: var( --main-color );
  padding: 5% 17%;
}

.section.other > .content > .frame > .item > .content {
  background-color: #fff;
  width: 100%;
  aspect-ratio: 0.79 / 1;
  /*border: 0.7em solid var( --main-color );*/
  border: 8px solid transparent;
  border-top: 0;
  position: relative;
}

.section.other > .content > .frame > .item > .content .cta {
  padding: 3%;
  padding-top: 0;
}

.section.other > .content > .frame > .item > .content .cta > :is( a, input[type="image"] ) {
  width: 52%;
  margin: 0 auto;
  display: block;
}

.section.other > .content > .frame > .item > .content .cta > a > img {
  width: 100%;
}

/* Other - briset Custom */

.section.other > .content > .frame > .item.briset-custom > .header {
  background-color: var( --main-color );
  padding: 5% 22.54%;
}

.section.other > .content > .frame > .item.briset-custom > .header > img {
  width: 100%;
}

.section.other > .content > .frame > .item.briset-custom > .content {
  border-color: var( --main-color );
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form {
  width: 100%;
  aspect-ratio: 1 / 0.7859154929577465;
  font-size: 1.7em;
  line-height: 1.7em;
  padding: 12% 15%;
  display: flex;
  flex-direction: column;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > :is( .quantity, .price ) > .forward {
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > :is( .quantity, .price ) > :is( .forward, .unit ) {
  font-size: inherit;
  line-height: inherit;
}

@media screen and ( max-width: 1024px ) {

  .section.other > .content > .frame > .item.briset-custom > .content > form > .form {
    font-size: 3.1vw;
    line-height: 3.1vw;
  }

  .section.other > .content > .frame > .item.briset-custom > .content > form > .form > :is( .quantity, .price ) > .element > input {
    padding: 0.6vw;
  }

}

/* Other - briset Custom - Quantity */

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .quantity {
  font-size: inherit;
  line-height: inherit;
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .quantity > .element {
  flex-basis: auto;
  flex-grow: 1;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .quantity > .element > input {
  width: 100%;
  font-size: inherit;
  text-align: right;
}

/* Other - briset Custom - Unit Price */

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .unit_price {
  font-size: inherit;
  line-height: inherit;
  text-align: right;
}

@media screen and ( max-width: 1024px ) {

  .section.other > .content > .frame > .item.briset-custom > .content > form > .form > .unit_price {
    padding: 0.3em 0;
  }

}

/* Other - briset Custom - Subtotal */

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .subtotal {
  font-size: inherit;
  line-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .subtotal > .logo > img {
  height: 0.7em;
  vertical-align: baseline;
  filter: brightness(0) saturate(100%) invert(72%) sepia(67%) saturate(3523%) hue-rotate(95deg) brightness(90%) contrast(95%);;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .subtotal > .value {
  font-size: inherit;
  line-height: inherit;
}

/* Other - briset Custom - Price */

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .price {
  font-size: inherit;
  line-height: inherit;
  display: flex;
  align-items: flex-end;
  gap: 0.2em;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .price > .element {
  flex-basis: auto;
  flex-grow: 1;
}

.section.other > .content > .frame > .item.briset-custom > .content > form > .form > .price > .element > input {
  width: 100%;
  font-size: inherit;
  text-align: right;
  pointer-events: none;
}

/* Other - briset PC */

.section.other > .content > .frame > .item.briset-pc > .header {
  background-color: var( --main-color );
}

.section.other > .content > .frame > .item.briset-pc > .header > img {
  width: 100%;
}

.section.other > .content > .frame > .item.briset-pc > .content {
  border-color: var( --main-color );
}

.section.other > .content > .frame > .item.briset-pc > .content > .price {
  padding: 5% 18%;
}

.section.other > .content > .frame > .item.briset-pc > .content > .price > img {
  width: 100%;
}

/* Heading */

.heading-box {
  text-align: center;
  margin: var( --paragraph-margin );
}

/* Method Box */

.table-box.horizon > .item > .name > .description:empty {
  margin-top: -1.2rem;
}

.table-box.horizon > .item > .price {
  font-size: 1.1rem;
  text-align: right;
  align-self: center;
}

.table-box.horizon > :is( .header, .item ) > .name {
  flex-basis: auto;
  flex-grow: 1;
}

.table-box.horizon > :is( .header, .item ) > .price {
  flex-basis: 130px;
}

.table-box.horizon > :is( .header, .item ) > .control {
  flex-basis: 150px;
}

/* Overlay */

#overlay {
  overflow-y: scroll;
}

#overlay > img {
  padding: 10% 0;
  position: absolute;
  left: 50%;
  transform: translate(-50%,0);
}

@media screen and ( max-width: 480px ) {

  .table-box.plan > .item {
    flex-direction: row;
  }

  .table-box.plan > .item > :is( .label-box, .content ) {
    flex-basis: calc( ( 100% - 1.5px ) / 2 );
  }

  .table-box.horizon {
    gap: 5px;
  }

  .table-box.horizon > .header {
    display: none;
  }

  .table-box.horizon > .item {
    background-color: #f6f9fe;
    font-size: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .table-box.horizon > .item > div {
    padding: 5px;
  }

  .table-box.horizon > :is( .header, .item ) > .price {
    font-weight: bold;
  }

  .table-box.horizon > :is( .header, .item ) > .control {
    text-align: right;
  }

  .table-box.horizon > .item > :is( .name, .price, .control ) {
    font-size: 0.8rem;
    flex-basis: auto;
    align-self: center;
  }

  .discuss-text > span {
    display: block;
  }

  #sidebar {
    display: none;
  }

  #overlay > img {
    padding: 10% 20px;
  }

}

/* Pagetop */

.pagetop {
  text-align: center;
}

.pagetop > .content {
  font-size: 2.0em;
  margin: 0 auto;
  border: 2px solid var( --main-color );
  padding: 0 3%;
  user-select: none;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: baseline;
}

.pagetop > .content > span.label {
  color: var( --main-color );
  font-size: 1.0em;
  line-height: 1.5em;
}

.pagetop > .content > span.icon {
  font-size: 1.2em;
}

.pagetop > .content > span.icon::after {
  background-color: var( --main-color );
  width: 1.0em;
  height: auto;
  aspect-ratio: 44 / 25;
  mask-image: url( 'data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4Ny44NzMgNDkuOTQ5Ij48cGF0aCBmaWxsPSIjOTFkM2Q5IiBkPSJNMCA0OS45NDloODcuODczTDQzLjkzNyAwIDAgNDkuOTQ5eiIvPjwvc3ZnPg==' );
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url( 'data:image/svg+xml;base64, PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4Ny44NzMgNDkuOTQ5Ij48cGF0aCBmaWxsPSIjOTFkM2Q5IiBkPSJNMCA0OS45NDloODcuODczTDQzLjkzNyAwIDAgNDkuOTQ5eiIvPjwvc3ZnPg==' );
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  display: block;
  content: "";
}
