@charset "UTF-8";
/* ========================================
   Variables
======================================== */
/* ========================================
   Progress (共通)
======================================== */
.es-progress {
  margin-bottom: 20px;
}
.es-progress__wrap {
  display: flex;
  align-items: center;
}
.es-progress__wrap.is-vertical {
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.es-progress__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #91C324;
  background-color: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.es-progress__dot.is-done {
  background: #91C324;
}
.es-progress__dot.is-current {
  transform: scale(1.3);
}
.es-progress__line {
  background: #333;
  flex: 1 1 auto;
  opacity: 0.15;
}
.es-progress__text {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
}
.es-progress {
  /* 横バー（SP） */
}
.es-progress__wrap:not(.is-vertical) .es-progress__line {
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}
.es-progress__wrap:not(.is-vertical) .es-progress__line.is-active {
  transform: scaleX(1);
  opacity: 0.35;
  transition: transform 0.26s ease, opacity 0.26s ease;
}
.es-progress {
  /* 縦バー（PC） */
}
.es-progress__wrap.is-vertical .es-progress__line {
  width: 2px;
  height: 32px;
  flex: 0 0 auto;
  transform: scaleY(0);
  transform-origin: top center;
}
.es-progress__wrap.is-vertical .es-progress__line.is-active {
  transform: scaleY(1);
  opacity: 0.35;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

/* ========================================
   Layout
======================================== */
.es-layout {
  display: block;
}

@media (max-width: 1023px) {
  #estimate-simulator {
    padding: 1rem;
    margin-top: 65px;
    margin-bottom: 80px;
  }
}
.es-mobile-progressbar {
  margin: 32px 0;
}

.es-progress--pc {
  display: none;
}

.es-right {
  display: none;
}

.page-id-9 .wp-block-post-title {
  font-size: 20px;
}

.es-question {
  margin: 48px auto 0px;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

@media (min-width: 1024px) {
  .es-question {
    margin: 48px auto 32px;
    font-size: 32px;
  }
}
.es-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 20px;
}
.es-choices button {
  width: 48%;
  margin: 8px 0px;
  padding: 32px 12px;
  border: solid 5px #91C324;
  border-radius: 20px;
  background-color: #fff;
  color: #545a65;
  box-shadow: 0 5px 8px 4px rgb(232, 220, 198);
  font-size: 20px;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .es-choices button {
    font-size: 24px;
  }
}
.es-back {
  border: none;
  padding: 8px 16px;
  border-radius: 5px;
  background-color: #91C324;
  color: #fff;
}

.es-nav {
  margin-top: 20px;
}
.es-nav button {
  font-weight: bold;
}

.es-result {
  border: 5px solid #91C324;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 5px 8px 4px rgb(232, 220, 198);
  padding: 0 16px;
}

.es-result__box {
  text-align: center;
  margin: 24px 0;
}

.es-result__label {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 8px;
}

.es-result__value {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
}

.es-result-notes {
  font-size: 16px;
  margin-left: 8px;
}

@media (min-width: 1024px) {
  .es-result__value {
    font-size: 40px;
  }
}
.es-estimate-notes {
  text-align: left;
  font-size: 12px;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}
.es-estimate-notes dt {
  margin-bottom: 6px;
}
.es-estimate-notes dd {
  margin: 0 8px;
}

/* SPでは重複する見出しを非表示 */
@media (max-width: 1023px) {
  /* 結果エリアの「見積もり完了」 */
  .es-result__label {
    display: none;
  }
  /* 見積ボックス内の1つ目のラベルを消す */
  .es-contact-estimate .es-result__label {
    display: none;
  }
}
/* ========================================
   PC Layout
======================================== */
@media (min-width: 1024px) {
  #estimate-simulator {
    width: 100%;
    max-width: 960px;
    margin: 200px auto 100px;
  }
  .es-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
  }
  .es-right {
    display: block;
    padding-left: 16px;
  }
  .es-progress--mobile {
    display: none;
  }
  .es-progress--pc {
    display: block;
  }
  /* PC履歴を縦グリッドで揃える */
  .es-history--pc {
    display: grid;
    row-gap: 8px;
  }
  .es-pc-grid-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: center;
    height: 46px;
  }
  .es-pc-grid-dot {
    width: 16px;
    height: 16px;
    border: 3px solid #91C324;
    border-radius: 50%;
    position: relative;
    background-color: #fff;
  }
  .es-pc-grid-dot.is-done {
    background: #91C324;
  }
  .es-pc-grid-dot.is-current {
    transform: scale(1.5);
  }
  .es-pc-grid-dot::after {
    content: "";
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 46px;
    background: #ccc;
  }
  .es-pc-grid-row:last-child .es-pc-grid-dot::after {
    display: none;
  }
  .es-pc-grid-title {
    font-size: 13px;
    opacity: 0.8;
    margin-left: 16px;
  }
  .es-pc-grid-value {
    font-size: 14px;
    font-weight: 600;
    margin-left: 16px;
  }
}
/* ========================================
   Mobile Toggle History
======================================== */
.es-mobile-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.es-mobile-history {
  margin-top: 10px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}

.es-mobile-history-row {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.es-mobile-history-row:last-child {
  border-bottom: none;
}

/* ========================================
   フォーム
======================================== */
.es-contact {
  margin-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.es-contact__lead {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
  opacity: 0.85;
}

@media (min-width: 1023px) {
  .es-contact {
    padding: 80px;
  }
}
.es-form input[type=hidden] {
  display: none;
}

.es-hidden {
  display: none !important;
}

p:has(.es-hidden) {
  display: none !important;
}

.es-form__lead {
  font-size: 14px;
  margin-bottom: 24px;
}

.es-form__row {
  font-size: 1rem;
  margin-bottom: 24px;
}
.es-form__row label {
  font-size: 14px;
  font-weight: bold;
}
.es-form__row .required {
  margin-left: 10px;
  font-size: 12px;
  color: #fff;
  background-color: #d52424;
  padding: 2px 6px;
}
.es-form__row input, .es-form__row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  margin-top: 4px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #b4b4b4;
}

.es-submit {
  width: -moz-fit-content;
  width: fit-content;
  padding: 16px;
  border: none;
  border-radius: 5px;
  margin: 60px auto 0;
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  letter-spacing: 1em;
  text-indent: 1em;
  background: #91C324;
}

@media (min-width: 1024px) {
  .es-submit {
    padding: 24px 64px;
    font-size: 20px;
  }
}
.es-form-error {
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 12px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
}

.mwform-zip-field {
  font-size: 16px;
}

.es-thanks {
  margin-top: 100px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
}
.es-thanks__title {
  font-size: 24px;
  margin: 0 0 10px;
}
.es-thanks__text {
  font-size: 16px;
  margin: 0 0 14px;
  line-height: 1.7;
  opacity: 0.9;
}
.es-thanks__box {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 14px;
}
.es-thanks__label {
  font-size: 12px;
  margin: 0 0 6px;
  font-weight: 600;
}
.es-thanks__note {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}
.es-thanks__btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  text-decoration: none;
}
.es-thanks__link {
  border: solid 5px #91C324;
  border-radius: 20px;
  box-shadow: 0 5px 8px 4px rgb(232, 220, 198);
  width: -moz-fit-content;
  width: fit-content;
  font-size: 16px;
  font-weight: bold;
  color: #545a65;
}

@media (min-width: 1023px) {
  .es-thanks {
    width: 60%;
    margin: 0 auto;
    margin-top: 150px;
    margin-bottom: 100px;
  }
}
/* ========================================
   スタート画面
======================================== */
.is-start .es-mobile-toggle {
  display: none;
}

.is-start .es-right {
  display: none;
}

.is-start .es-left {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}

.is-start#estimate-simulator {
  grid-template-columns: 1fr;
}

.es-start__title {
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}
.es-start__title .es-start__sub {
  font-size: 16px;
  color: #fff;
  background-color: #91C324;
  width: -moz-fit-content;
  width: fit-content;
  padding: 8px;
  border-radius: 10px;
}
.es-start__title .es-start__lead {
  font-weight: bold;
  font-size: 28px;
}

.es-start__img {
  text-align: center;
}
.es-start__img img {
  width: 80%;
}

.es-start .es-start__btn {
  margin: 40px auto 0;
  display: block;
  padding: 16px;
  border-radius: 50px;
}

@media (min-width: 1024px) {
  .es-start__title .es-start__sub {
    font-size: 20xp;
  }
  .es-start__title .es-start__lead {
    font-size: 40px;
  }
  .es-start__img img {
    width: 45%;
  }
  .es-start .es-start__btn {
    width: -moz-fit-content;
    width: fit-content;
    padding: 24px 80px;
  }
}
.es-question {
  white-space: pre-line;
}

.page-simulator .header.sticky {
  background: linear-gradient(90deg, #7fbf3f 0%, #a8d04a 50%, #cddc39 100%);
}
.page-simulator .section--grayRepeat {
  background: none;
}

.wp-block-template-part {
  background-color: #333;
  color: #fff;
}

@media (max-width: 1023px) {
  #es-contact {
    border-top: none;
  }
  #es-contact .es-form {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 16px;
    padding: 40px 16px;
  }
}
.page-simulator header h2 {
  font-size: 3rem;
}

#estimate-simulator button:hover {
  transform: translateY(-2px);
  background: #f5f5f5;
}

/* ========================================
   TOPページ
======================================== */
.floating-simulator-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.floating-simulator-btn__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.floating-simulator-btn__link:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}