@charset "UTF-8";
/* ===========================================
choice10-w 解体工事の料金計算ツール

解体エージェント（/compute/1/step2）の見た目をワンソースで再現。
choice系の共通CSS（choice-common / destyle）には依存しない。
コンパイル：style.scss → style.css
=========================================== */
/* ===========================================
変数
=========================================== */
/* ===========================================
mixin
=========================================== */
/* ===========================================
ベース
=========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: "Noto Sans Japanese", "Lucida Grande", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", "Meiryo", "メイリオ", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

a {
  color: #00cbcf;
}

button,
input {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* ===========================================
ヘッダー
=========================================== */
.l-header {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2);
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 1000px;
  margin-inline: auto;
  padding: 20px 30px;
}
@media screen and (max-width: 767px) {
  .l-header__inner {
    padding: 10px;
  }
}
.l-header__logo {
  margin: 0;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .l-header__logo img {
    width: 130px;
  }
}
.l-header__tel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
@media screen and (max-width: 767px) {
  .l-header__tel {
    gap: 5px;
  }
}
.l-header__tel-icon {
  flex-shrink: 0;
}
@media screen and (max-width: 767px) {
  .l-header__tel-icon {
    width: 20px;
  }
}
.l-header__tel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.l-header__tel-number {
  width: 200px;
}
@media screen and (max-width: 767px) {
  .l-header__tel-number {
    width: 140px;
  }
}
.l-header__tel-hours {
  font-size: 12px;
}
@media screen and (max-width: 767px) {
  .l-header__tel-hours {
    font-size: 10px;
  }
}

/* ===========================================
メイン画像
=========================================== */
.top-image {
  max-width: 940px;
  margin-inline: auto;
}
.top-image img {
  width: 100%;
}

/* ===========================================
設問エリア全体
=========================================== */
.estimate {
  padding: 40px 40px 80px;
  border-bottom: 5px solid #ff7e16;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .estimate {
    padding: 10px 10px 40px;
    text-align: left;
  }
}

/* ===========================================
設問
=========================================== */
.question {
  position: relative;
  min-width: 0;
  max-width: 940px;
  margin: 0 auto 80px;
  padding: 40px 0 60px;
  border: 0;
  animation: fade-in 1.2s;
}
@media screen and (max-width: 767px) {
  .question {
    margin-bottom: 30px;
    padding: 10px 10px 40px;
  }
}
.question::after {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  border-right: 3px solid #ff7e16;
  border-bottom: 3px solid #ff7e16;
  transform: rotate(45deg);
  position: absolute;
  bottom: -22px;
  left: 50%;
  translate: -50% 0;
}
@media screen and (max-width: 767px) {
  .question::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-right: 3px solid #ff7e16;
    border-bottom: 3px solid #ff7e16;
    transform: rotate(45deg);
    bottom: -10px;
  }
}
.question.is-current {
  min-height: calc(100svh - 110px);
}
.question__title {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  font-size: 28px;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .question__title {
    margin: 0 0 10px;
    font-size: 20px;
    text-align: left;
  }
}
.question__title-inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
@media screen and (max-width: 767px) {
  .question__title-inner {
    align-items: flex-start;
  }
}
.question__title-inner::before {
  content: "";
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: url("../img/compute/ico_check.png") center/contain no-repeat;
}
@media screen and (max-width: 767px) {
  .question__title-inner::before {
    width: 30px;
    height: 30px;
  }
}
.question__title-marker {
  background: linear-gradient(transparent 60%, #ff0 60%);
}
.question__note {
  margin-bottom: 5px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .question__note {
    text-align: left;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .question {
    animation: none;
  }
}
/* ===========================================
回答の選択肢（カード）
=========================================== */
.answer-list {
  --card-width: 270px;
  --card-height: 180px;
  --columns: 2;
  display: grid;
  grid-template-columns: repeat(var(--columns), var(--card-width));
  justify-content: space-between;
  gap: 20px 0;
  width: 600px;
  margin: 20px auto;
}
.answer-list--medium {
  --card-width: 210px;
  --card-height: 140px;
  --columns: 3;
  width: 660px;
}
.answer-list--small {
  --card-width: 180px;
  --card-height: 120px;
  --columns: 4;
  width: 760px;
}
@media screen and (max-width: 767px) {
  .answer-list {
    --card-width: 1fr;
    --card-height: 108px;
    --columns: 2;
    gap: 10px;
    width: auto;
    padding-right: 5px;
  }
}
.answer-list__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.answer-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--card-height);
  padding: 0 5px;
  border: 3px solid #000;
  border-radius: 10px;
  background: #ffff8f;
  box-shadow: 5px 5px 0 0 #333;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.answer-list:has(:checked) .answer-card {
  border-color: #999;
  background: #ccc;
  box-shadow: 5px 5px 0 0 #ccc;
  color: #999;
}
.answer-list__input:checked + .answer-card {
  border-color: #000;
  background: #ff7e16;
  box-shadow: none;
  color: #000;
  translate: 5px 5px;
}
.answer-list__input:focus-visible + .answer-card {
  outline: 3px solid #00cbcf;
  outline-offset: 3px;
}
.answer-list__input:disabled + .answer-card {
  cursor: default;
}

/* ===========================================
チャット
=========================================== */
.question--chat {
  max-width: 800px;
  padding: 7px 60px 60px;
}
@media screen and (max-width: 767px) {
  .question--chat {
    padding: 7px 0 40px;
  }
}

.chat {
  text-align: left;
}
.chat__item {
  display: flex;
  align-items: center;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.chat__item--human {
  justify-content: flex-end;
}
.chat__icon {
  flex-shrink: 0;
  width: 73px;
  border-radius: 50%;
}
@media screen and (max-width: 767px) {
  .chat__icon {
    width: 48px;
  }
}
.chat__bubble {
  position: relative;
  max-width: 510px;
  margin-left: 15px;
  padding: 15px;
  border-radius: 6px;
  background: #ffb21e;
  font-size: 18px;
}
@media screen and (max-width: 767px) {
  .chat__bubble {
    max-width: 80%;
    font-size: 16px;
  }
}
.chat__bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}
.chat__bubble--no-icon {
  margin-left: 88px;
}
@media screen and (max-width: 767px) {
  .chat__bubble--no-icon {
    margin-left: 63px;
  }
}
.chat__item--human .chat__bubble {
  margin-right: 15px;
  margin-left: 0;
  background: #b2b2b2;
}
.chat__item--human .chat__bubble::before {
  right: -5px;
  left: auto;
}
.chat__loader {
  display: flex;
  gap: 5px;
  padding: 5px 0;
}
.chat__loader span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1d2932;
  animation: chat-loader 0.8s infinite linear;
}
.chat__loader span:nth-child(2) {
  animation-delay: -0.6s;
}
.chat__loader span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes chat-loader {
  0%, 100% {
    opacity: 0.2;
    translate: 0 0;
  }
  50% {
    opacity: 0.6;
    translate: 0 -10px;
  }
}
/* ===========================================
お客様情報の入力
=========================================== */
.customer {
  max-width: 940px;
  margin-inline: auto;
  padding: 60px;
  border: 1px solid #999;
  border-radius: 10px;
  background: #fff;
  animation: fade-in 1.2s;
}
@media screen and (max-width: 767px) {
  .customer {
    padding: 20px 10px;
  }
}
.customer.is-current {
  min-height: calc(100svh - 110px);
}
.customer__field {
  width: 430px;
  max-width: 100%;
  margin: 0 auto 20px;
  text-align: left;
}
.customer__label {
  display: block;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}
.customer__input {
  display: block;
  width: 100%;
  height: 80px;
  padding: 0 6px;
  border: 1px solid #999;
  border-radius: 0;
  background: #ff0;
  font-size: 18px;
}
@media screen and (max-width: 767px) {
  .customer__input {
    height: 70px;
  }
}
.customer__input:focus {
  background: #fff;
}
.customer__input[aria-invalid=true] {
  border-color: #f00;
}
.customer__error {
  margin-top: 5px;
  color: #f00;
  font-weight: bold;
}
.customer__error:empty {
  display: none;
}
.customer__error--center {
  text-align: center;
}
.customer__agreement {
  padding: 20px 0;
  text-align: center;
}
.customer__checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.customer__checkbox-label {
  position: relative;
  display: inline-block;
  padding: 5px 0 5px 30px;
  font-size: 18px;
  font-weight: bold;
  text-align: left;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .customer__checkbox-label {
    font-size: 15px;
  }
}
.customer__checkbox-label::before, .customer__checkbox-label::after {
  content: "";
  position: absolute;
  top: 50%;
}
.customer__checkbox-label::before {
  left: 5px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 1px solid #999;
  background: #fff;
}
.customer__checkbox-label::after {
  left: 10px;
  width: 10px;
  height: 15px;
  margin-top: -12px;
  border-right: 3px solid #ff7e16;
  border-bottom: 3px solid #ff7e16;
  opacity: 0;
  transform: rotate(45deg);
}
.customer__checkbox:checked + .customer__checkbox-label::after {
  opacity: 1;
}
.customer__checkbox:focus-visible + .customer__checkbox-label::before {
  outline: 3px solid #00cbcf;
  outline-offset: 2px;
}
.customer__checkbox[aria-invalid=true] + .customer__checkbox-label::before {
  border-color: #f00;
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 386px;
  max-width: 100%;
  aspect-ratio: 625/139;
  margin: 40px auto;
  padding: 0 0 4px;
  border: 0;
  background: url("../img/compute/submit.png") center/contain no-repeat;
  color: #fff;
  font-size: 21px;
  font-weight: bold;
  letter-spacing: 0.2em;
  cursor: pointer;
}
.submit-button::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 3px solid currentcolor;
  border-right: 3px solid currentcolor;
  transform: rotate(45deg);
}
.submit-button:hover {
  opacity: 0.7;
}
.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.submit-button:focus-visible {
  outline: 3px solid #00cbcf;
  outline-offset: 3px;
}

/* ===========================================
ダイアログ共通
=========================================== */
dialog {
  padding: 0;
  border: 0;
  color: inherit;
}

/* ===========================================
市区町村の選択ダイアログ
=========================================== */
.city-dialog {
  width: 400px;
  max-width: 90%;
  max-height: min(600px, 90svh);
  border: 1px solid #ff7e16;
  border-radius: 5px;
  overflow: hidden;
}
.city-dialog[open] {
  display: flex;
  flex-direction: column;
}
.city-dialog:focus {
  outline: none;
}
.city-dialog::backdrop {
  background: rgba(255, 178, 30, 0.5);
}
.city-dialog__title {
  margin: 0;
  padding: 10px 16px;
  background: #ff7e16;
  color: #fff;
  font-size: 24px;
  text-align: center;
}
.city-dialog__list {
  flex: 1;
  margin-right: 5px;
  padding-bottom: 20px;
  overflow-y: auto;
  scrollbar-color: #ffb21e #e5e5e5;
}
.city-dialog__kana {
  padding: 22px 14px 7px;
}
.city-dialog__kana span {
  display: inline-block;
  min-width: 2em;
  padding: 4px 7px;
  border-radius: 50%;
  background: #ffe500;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}
.city-dialog__button {
  display: block;
  width: calc(100% - 48px);
  margin-inline: 24px;
  padding: 13px 10px;
  border: 0;
  border-bottom: 1px dashed #ccc;
  background: none;
  color: #7c7a78;
  font-size: 20px;
  text-align: left;
  cursor: pointer;
}
.city-dialog__button:hover, .city-dialog__button:focus-visible {
  background: #ffff8f;
  color: #000;
}

/* ===========================================
離脱防止のポップアップ
=========================================== */
.exit-dialog {
  width: 500px;
  max-width: calc(100% - 40px);
  padding: 40px 0 20px;
  border: 5px solid #000;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 15px 15px 0 #222;
  text-align: center;
}
.exit-dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
}
.exit-dialog__img {
  width: 380px;
  max-width: calc(100% - 30px);
  padding: 20px 0;
}
.exit-dialog__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.exit-dialog__close::before, .exit-dialog__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: #7f7f7f;
}
.exit-dialog__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.exit-dialog__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.exit-dialog__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 300px;
  max-width: calc(100% - 40px);
  margin: 20px;
  border: 3px solid #000;
  border-radius: 35px;
  background: #ff0;
  box-shadow: 5px 5px #ccc;
  font-size: 18px;
  font-weight: bold;
  line-height: 65px;
  cursor: pointer;
}
.exit-dialog__back::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentcolor;
  border-right: 2px solid currentcolor;
  transform: rotate(45deg);
}
.exit-dialog__back:hover, .exit-dialog__back:focus-visible {
  background: #ff7e16;
  color: #fff;
}
