/*----------------------------simuration---------------------------------*/

:root {
  --fs44: clamp(2.2rem, 3.38vw, 4.4rem);
}

select,
input {
  font-size: var(--fs28);
  background: var(--yellow2);
  border: none;
  border-radius: 5px;
  padding: var(--sz10);
  font-weight: 600;
}

.header_denki {
  background: var(--pink);
}

.header_denki>.inner {
  width: 1200px;
  max-width: 100%;
  height: clamp(70px, 7.69vw, 100px);
  margin: auto;
  background: var(--portas) url(../img/mv_bg.gif) no-repeat top -30px right 0 / 300px 137px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--sz40);
  overflow: hidden;
}

.header_denki h1 {
  width: clamp(140px, 20.77vw, 270px);
}

.header_denki picture {
  width: clamp(100px, 12.3vw, 160px);
  margin-bottom: -1em;
}

#inputarea {
  background: var(--pink);
  padding: 0 0 var(--sz50);
}

.wrap_inputarea {
  width: 1300px;
  max-width: 96%;
  margin: auto;
  background: #fff;
  border-radius: 10px;
  padding: var(--sz50);

  @media screen and (max-width: 768px) {
    padding: var(--sz50) 10px;
  }
}

.box_inputarea {
  background: var(--glay) url(../img/flow_ill03.png) no-repeat;
  background-size: min(17.69vw, 230px);
  border-radius: 5px;
  padding: var(--sz20) var(--sz50) var(--sz40);

  @media screen and (max-width: 768px) {
    padding: var(--sz20) 10px var(--sz40);
  }

  @media screen and (max-width: 480px) {
    background-image: none;
  }
}

.wrap_simcatch {
  display: flex;
  justify-content: space-between;

  @media screen and (max-width: 480px) {
    justify-content: center;
  }

  & picture {
    width: clamp(50px, 12.23vw, 159px);

    @media screen and (max-width: 580px) {
      display: none;
    }
  }

  & p {
    font-size: var(--fs38);
    font-weight: 700;
    font-family: "M PLUS Rounded 1c", sans-serif;
    line-height: 1.5;
    padding-left: min(17.69vw, 230px);
    margin-bottom: var(--sz10);

    @media screen and (max-width: 480px) {
      padding-left: 0;
      text-align: center;
    }
  }

  & p b {
    color: var(--portas);
  }

  & p strong {
    color: var(--portas);
    font-size: var(--fs44);
  }

  & p small {
    font-size: var(--fs34);
  }
}

.unit-price,
.unit-power-company,
.unit-ampere,
.unit-simulation,
.button-trial-calculation {
  display: flex;
  background: #fff;
  padding: var(--sz20);
  font-size: var(--fs32);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  border-radius: 5px;
  align-items: center;
  margin-bottom: var(--sz20);

  @media screen and (max-width: 580px) {
    flex-direction: column;
    gap: 5px;
    justify-content: flex-start;
    align-items: flex-end;
  }
}

.unit-simulation,
.button-trial-calculation {
  padding: var(--sz50);
  justify-content: center;
}

.unit-simulation p {
  width: 100%;
  text-align: center;
}

.unit-price .text-price:before,
.unit-power-company .text-power-company:before,
.unit-ampere .text-power-company:before {
  content: "1";
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  width: clamp(36px, 5.53vw, 72px);
  height: clamp(36px, 5.53vw, 72px);
  background: var(--yellow);
  font-size: var(--fs50);
  font-family: "Outfit", sans-serif;
}

.unit-power-company .text-power-company:before {
  content: "2";
}

.unit-ampere .text-power-company:before {
  content: "3";
}

.text-price,
.text-power-company {
  display: flex;
  align-items: center;
  gap: var(--sz15);
  width: min(36.92vw, 480px);
  border-right: 4px solid var(--glay);

  @media screen and (max-width: 768px) {
    width: clamp(10px, 28.64vw, 220px);
  }

  @media screen and (max-width: 580px) {
    width: 100%;
    border: none;
  }
}

.text-power-company {
  & span {
    line-height: 1;
  }

  & em {
    color: var(--bk);
  }

  & mall {
    font-size: 80%;
    display: inline-block;
  }
}

select {
  appearance: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: var(--sz60);

  @media screen and (max-width: 768px) {
    padding-right: var(--sz40);
    width: 4em;
  }
}

.power-company select {
  @media screen and (max-width: 768px) {
    width: 15em;
  }
}

.form-kwh {
  width: 6em;
  text-align: right;
}

.form-ampere {
  min-width: 5em;
  @media screen and (max-width: 768px) {
    width: 15em;
  }
}

.button-trial-calculation span:before {
  content: "";
  display: inline-block;
  background: var(--yellow);
  width: clamp(8px, 1.15vw, 15px);
  height: clamp(10px, 1.53vw, 20px);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  top: 50%;
  transform: translate(0, -50%);
  left: clamp(15px, 2.3vw, 30px);
  vertical-align: middle;
  position: absolute;
  z-index: 2;
}

.box_input {
  display: flex;
  padding: 0 var(--sz50);
  gap: var(--sz15);
  color: var(--portas);
  font-size: var(--fs28);
  position: relative;

  @media screen and (max-width: 768px) {
    padding: 0 var(--sz20);
  }

  @media screen and (max-width: 580px) {
    padding-left: 46px;
  }
}

.select-box {
  position: relative;
}

.select-box:after {
  content: "";
  background: var(--portas);
  height: clamp(8px, 0.76vw, 10px);
  width: clamp(8px, 1.07vw, 14px);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  position: absolute;
  right: var(--sz15);
  top: 50%;
  transform: translate(0, -50%);
}

.select-box:has(.is-disabled):after {
  background: var(--glay4);
}

.button-simulation button {
  max-width: 500px;
  width: 100%;
  border: 3px solid var(--yellow);
  background: var(--orange2);
  border-radius: 100px;
  color: #fff;
  font-size: var(--fs28);
  font-weight: 600;
  font-family: "M PLUS Rounded 1c", sans-serif;
  padding: var(--sz20) var(--sz60);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  transition: all 0.5s ease 0s;
}

.button-trial-calculation>span {
  max-width: 500px;
  width: 100%;
  position: relative;
}

.button-simulation button:before,
.button-trial-calculation>span:before {
  content: "";
  display: inline-block;
  background: var(--yellow);
  width: clamp(8px, 1.15vw, 15px);
  height: clamp(10px, 1.53vw, 20px);
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
  top: 50%;
  transform: translate(0, -50%);
  left: clamp(15px, 2.3vw, 30px);
  vertical-align: middle;
  position: absolute;
}

.button-simulation button:after {
  content: "";
  background: url(../img/flow_icon01.svg) no-repeat 0 0 / contain;
  display: block;
  width: clamp(15px, 2.3vw, 30px);
  height: clamp(20px, 3.07vw, 40px);
  top: 50%;
  transform: translate(0, -50%);
  right: clamp(15px, 2.3vw, 30px);
  position: absolute;
}

.button-simulation button:hover {
  background: var(--portas);
  cursor: pointer;
}

.button-trial-calculation input {
  max-width: 500px;
  width: 100%;
  border: 3px solid var(--yellow);
  background: var(--orange2) url(../img/flow_icon01.svg) no-repeat right clamp(15px, 2.3vw, 30px) top 50%;
  background-size: clamp(15px, 2.3vw, 30px) clamp(20px, 3.07vw, 40px);
  border-radius: 100px;
  color: #fff;
  font-size: var(--fs28);
  font-family: "M PLUS Rounded 1c", sans-serif;
  padding: var(--sz20) var(--sz60);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  transition: all 0.5s ease 0s;
}

.button-trial-calculation input:hover {
  background: var(--portas) url(../img/flow_icon01.svg) no-repeat right clamp(15px, 2.3vw, 30px) top 50%;
  cursor: pointer;
}

#result {
  background: var(--glay);

  & h3 {
    margin-bottom: var(--sz40);
  }
}

.wrap_result {
  margin: var(--sz30) auto 0;
  border-radius: 10px;
  background: var(--portas);
  padding: var(--sz50);

  @media screen and (max-width: 768px) {
    padding: var(--sz20);
  }
}

.box_result {
  background: #fff;
  border-radius: 5px;
  padding: var(--sz30) var(--sz80) 0;

  @media screen and (max-width: 768px) {
    padding: var(--sz30) var(--sz30) 0;
  }
}

.estimated-usage-columns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sz40);
  margin-top: var(--sz40);
}

.estimated-usage-column {
  display: flex;
  color: var(--portas);
  font-size: var(--fs28);
  align-items: center;
  width: calc((100% - var(--sz110)) / 3);
  gap: var(--sz05);
  justify-content: flex-end;
  position: relative;

  @media screen and (max-width: 768px) {
    width: calc((100% - var(--sz50)) / 2);
  }

  @media screen and (max-width: 480px) {
    width: 100%;
    justify-content: center;
  }

  & .text-month {
    font-size: var(--fs24);
    color: var(--bk);
    white-space: nowrap;
    width: 3em;
    text-align: right;

    & b {
      font-size: var(--fs32);
    }
  }
}

.input-wrapper {
  position: relative;
}

.plan-name {
  font-family: "M PLUS 2", sans-serif;
  font-weight: 700;
  font-size: var(--fs32);
  text-align: center;
}

.txt-box {
  font-family: "M PLUS 2", sans-serif;
  font-weight: 700;
  font-size: var(--fs42);
  text-align: center;

  & .wrap {
    display: inline-block;
    background: linear-gradient(transparent 80%, #FFFB8E 20%);
    line-height: 1.2;
  }

  & .red {
    color: var(--portas);
    margin: 0 .25em;
  }

  & .num {
    font-size: var(--fs60);
  }
}

.graph-box {
  width: 683px;
  margin: var(--sz40) auto 0;
  position: relative;

  @media screen and (max-width: 768px) {
    width: min(88.93vw, 683px);
  }

  & .current-txt {
    position: absolute;
    left: 20px;
    top: 90px;
    color: #fff;
    text-align: center;
    width: 283px;

    @media screen and (max-width: 768px) {
      width: 36.84vw;
      top: 11vw;
      left: 2.60vw;
    }

    & .company {
      font-size: 18px;

      @media screen and (max-width: 768px) {
        font-size: clamp(14px, 2.34vw, 18px);
      }
    }

    & .price {
      & .num {
        font-family: Manrope;
        font-size: 36px;
        font-weight: 600;

        @media screen and (max-width: 768px) {
          font-size: clamp(22px, 4.68vw, 36px);
        }
      }

      & .sml {
        font-size: 22px;

        @media screen and (max-width: 768px) {
          font-size: clamp(16px, 2.86vw, 22px);
        }
      }
    }
  }

  .m-txt {
    position: absolute;
    right: 20px;
    top: 130px;
    color: #fff;
    text-align: center;
    width: 283px;

    @media screen and (max-width: 768px) {
      width: 36.84vw;
      top: 15vw;
      right: 2.60vw;
    }

    & .company {
      font-size: 18px;

      @media screen and (max-width: 768px) {
        font-size: clamp(14px, 2.34vw, 18px);
      }
    }

    & .price {
      & .num {
        font-family: Manrope;
        font-size: 36px;
        font-weight: 600;

        @media screen and (max-width: 768px) {
          font-size: clamp(22px, 4.68vw, 36px);
        }
      }

      & .sml {
        font-size: 22px;

        @media screen and (max-width: 768px) {
          font-size: clamp(16px, 2.86vw, 22px);
        }
      }
    }
  }
}

.graph-box.even {
  & .m-txt {
    top: 90px;

    @media screen and (max-width: 768px) {
      top: 11vw;
    }
  }
}

.caution {
  text-align: center;
  font-size: var(--fs16);
  margin: var(--sz40) auto;
}

.annual-comparison {
  margin-top: var(--sz20);
}

.annual-comparison h4,
.monthly-section h4 {
  position: relative;
  font-size: var(--fs28);
  background: var(--glay);
  padding-left: var(--sz30);
  margin-bottom: var(--sz50);
}

.annual-comparison h4:before,
.annual-comparison h4:after,
.monthly-section h4:before,
.monthly-section h4:after {
  content: "";
  clip-path: polygon(0 0, 0% 100%, 100% 0);
  background: var(--portas);
  position: absolute;
  width: 18px;
  height: 18px;
  left: 0;
}

.annual-comparison h4:after,
.monthly-section h4:after {
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  left: inherit;
  right: 0;
  bottom: 0;
}

.comparison-cards {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sz40);

  @media screen and (max-width: 480px) {
    gap: var(--sz10);
  }
}

.comparison-cards .card {
  border: 4px solid var(--glay4);
  border-radius: 10px;
  width: clamp(210px, 23.07vw, 300px);
  padding: var(--sz20);
  font-size: var(--fs24);
  font-weight: 600;

  @media screen and (max-width: 480px) {
    padding: var(--sz10);
  }
}

.comparison-cards {
  & .card.highlight {
    border: 4px solid var(--portas);
    color: var(--portas);
  }

  & .card-title {
    font-family: "M PLUS Rounded 1c", sans-serif;
  }

  & .price {
    font-size: var(--fs36);
  }

  & .price span {
    font-size: var(--fs20);
  }

  & .arrow {
    width: min(7.69vw, 100px);
  }
}

.js-benefit-only:has(+ .box_caution) {
  margin-bottom: var(--sz50);
}

.box_caution {
  border: 1px solid var(--glay4);
  border-radius: 5px;
  padding: var(--sz30);
  text-align: left;

  & h5 {
    font-size: var(--fs28);
    margin: 0 auto var(--sz40);
    text-align: center;
    line-height: 1;
    letter-spacing: .25em;
  }

  & h5:after {
    content: "";
    width: 2em;
    height: 3px;
    background: var(--portas);
    display: block;
    margin: 15px auto 0;
  }

  & ul {
    list-style: disc;
    margin: 0 0 0 1.5em;
    padding: 0;
    color: var(--glay2);
    line-height: 1.8;
  }

  & a {
    color: var(--portas);
    text-decoration: underline;
  }

  & em {
    color: var(--portas);
    font-weight: 600;
  }
}

.monthly-section {
  & table {
    font-size: var(--fs20);
    text-align: center;

    @media (max-width: 768px) {
      font-size: var(--fs16);
    }
  }

  & table th {
    text-align: center;
    color: var(--portas);
    vertical-align: middle;
    white-space: nowrap;
  }

  @media (max-width: 768px) {
    & table tr {
      display: table-row;
    }
  }
}

.wrap_btnarea.entry {
  border-radius: 10px;
  background: var(--portas);
  padding: var(--sz50);
  justify-content: center;

  @media screen and (max-width: 768px) {
    padding: var(--sz20);
  }
}

#caution {
  background: var(--glay);

  & .box_caution {
    width: 1300px;
    max-width: 100%;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    border: none;
  }
}

/*----------------------FormBlank-------------------------*/

.is-disabled {
  display: none;
}

.select-box:has(.is-disabled) {
  background: var(--glay3);
  border: 2px solid var(--glay);
  width: 5em;
  height: var(--sz50);
  border-radius: 5px;

  @media screen and (max-width: 768px) {
    width: 15em;
  }
}

.is-err {
  background: var(--orange);
  border: 2px dotted var(--orange2);
}

.is-err+.balloon,
.input-kwh:has(.is-err)+.balloon {
  display: inline-block;
}

.balloon {
  display: none;
  font-family: 'Noto Sans JP';
  background: var(--orange2);
  border-radius: 5px;
  color: #fff;
  padding: 9px;
  position: absolute;
  top: -50px;
  left: 40%;
  transform: translate(-55%, 0);
  font-size: var(--fs16);
  white-space: nowrap;
  z-index: 3;
}

@media screen and (max-width: 768px) {
  .estimated-usage-column .balloon {
    top: -50px;
    left: 50%;
    transform: translate(-50%, 0);
  }
}

.balloon :after {
  content: "";
  background: var(--orange2);
  height: 16px;
  width: 20px;
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  bottom: -15px;
}

/*----------------------//FormBlank-------------------------*/
