/* Merged input1.css, input2.css, input3.css, input4.css */

/* ===== input1.css ===== */
.fullwidth-image {
  margin-top: 19px;
  margin-bottom: 20px;
}

.fullwidth-image img {
  display: block;
  width: 100vw;
  height: auto;
}

.caution {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 40px;
  margin-right: 40px;
  margin-bottom: 30px;
}

.text-tel {
  width: 100%;
  max-width: 220px; /* デザインでは239px */
  display: flex;
  flex-wrap: wrap;
  margin-top: 8px;
}

.text-tel-left {
  flex: 0 0 31px; /* 23px + マージン8px */

  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  margin-right: 8px;
}

.text-tel-right {
  flex: 1 1 auto; /* 残り幅を占有 */
  min-width: 180px;

  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-size: 18px;
  padding-bottom: 6px;
}

.text-caution-area {
  width: 295px;
  height: 50px;
  background: #ff53a2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* ▼を相対配置するために必要 */
}

.text-caution-area::after {
  content: "";
  position: absolute;
  bottom: -8px; /* ▼を下に配置 */
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ff53a2; /* 吹き出しと同じ色 */
}

.text-caution-area span {
  font-size: 16px;
  color: #fff;
}

/* 吹き出しを元に戻す場合は削除するクラス */
.text-caution {
  font-size: 12px;
  color: #ff53a2;
}

/* アイコン - 電話 */
.img-phone {
  height: 23px;
  width: 23px;
  /* margin-right: 8px; */
}

/* 電話番号 */
.text-phoneNumber {
  color: #ff53a2;
  font-size: 24px;
}

/* 営業時間 */
.text-businessHours {
  color: #1d394f;
  font-size: 12px;
}

/* なんでかまるくならないから調査 */
.box-insurance {
  width: 100%;
  height: 100px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin: 0px 0px;
  margin-left: 0px;
  font-size: 16px;
  color: #1d394f;
  cursor: pointer;
  position: relative;
}

.life-insurance-icon {
  /* margin-right: 2.42px; */
  margin-right: 4px;
}

.radio-box {
  position: relative; /* 一応 */
}

.recommendationbadge-icon {
  position: absolute;
  top: -15px; /* 微調整 */
  right: -15px;
  width: 80px;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}

.inline-text {
  display: flex;
  flex-direction: column;
  white-space: normal;
  overflow: hidden;
  line-height: 1.4;
  padding-left: 26px;
}

.content-center {
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 4px; */
}

/* 一行目だけ横並び */
.inline-text-title {
  display: flex;
  white-space: nowrap;
  font-size: 16px;
}

.text-blue {
  color: #2288dd;
  font-weight: 600;
}

.text-black {
  color: #1d394f;
  font-weight: 600;
}

.text-black-smallweight-12px {
  color: #1d394f;
  font-size: 12px;
  font-weight: 300;
}

/* 黒文字 太字 文字サイズ12px */
.text-black-12px {
  color: #1d394f;
  font-size: 12px;
  font-weight: 600;
}

.align-left-group {
  align-self: flex-start;
}

.content-wrapper {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  width: 100%;
}

.radio-row-horizontal {
  /* 分岐によってnoneにして非表示 */
  display: flex;
  gap: 12px;
  justify-content: center;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  /* align-items: center;
  text-align: center; */
  align-items: flex-start; /* ← 子要素の配置を左寄せに */
  text-align: left; /* ← テキストの表示位置を左寄せに */
  line-height: 1.3;
}

/* 選択中のラベルのテキスト色を変える（ご相談方法用） */
.radio-box.selected-label .text-black,
.radio-box.selected-label .text-black-12px,
.radio-box.selected-label .text-black-smallweight,
.radio-box.selected-label .text-black-smallweight-12px {
  color: #2288dd;
  font-weight: bold;
}

/* デバイス選択 */
.box-left-device {
  width: 82px;
  height: 50px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin: 0px 0px;
  margin-left: 0px;
  font-size: 16px;
  color: #1d394f;
  cursor: pointer;
  position: relative;
  text-indent: 10px;
}

.box-right-device {
  width: 123px;

  height: 50px;
  background: white;
  border: 2px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin: 0px 0px;
  margin-right: 0px;
  font-size: 16px;
  color: #1d394f;
  cursor: pointer;
  position: relative;
  text-indent: 10px;
}

/* 生命保険用 */
.device-text-indent-10 {
  text-indent: 10px;
}


/* 住宅ローン用 */
.device-label-visit-mortgate-loan {
  width: 305px;
}

.radio-label-device {
  font-size: 14px;
}

.radio-group {
  width: 305px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ボタンつぶれを防止 */
.custom-radio {
  flex-shrink: 0;
}

/* ラジオボタン自体は非表示 */
.box-insurance input[type="radio"],
.box-left-device input[type="radio"],
.box-right-device input[type="radio"] {
  display: none;
}

.text-small {
  font-size: 14px;
}

.text-small-12 {
  font-size: 12px;
  margin-right: 25px;
}

.pulldown-arrow-wrapper::after {
  top: 32%;
}

.hidden {
  display: none;
}

.seal-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 40px;
}

.only-sp {
  display: block;
  align-self: flex-start;
}

.only-pc {
  display: none;
}

@media screen and (min-width: 1024px) {
  .fullwidth-image {
    display: flex;
    justify-content: center;
  }
  .fullwidth-image img {
    width: 700px;
  }
  .radio-group,
  .form-row,
  .item-content,
  .input-text,
  .input-text-pulldown {
    width: 649px;
  }

  .text-wrapper {
    display: inline;
    font-size: 0;
  }

  .text-wrapper > span {
    font-size: 16px;
  }

  .box-left-device {
    /* width: 189px; */
    width: 203px;
    text-indent: 20px;
  }

  .box-right-device {
    /* width: 316px; */
    width: 203px;
    text-indent: 15px;
  }
  .PC-width-mortgate-loan {
    width: 100%;
  }
  .PC-width-life-insurance {
    /* width: 189px; */
    width: 100%;
  }
  .radio-label-device {
    font-size: 16px;
  }
  .only-sp {
    display: none;
  }
  .only-pc {
    display: inline;
  }
  .font-size-18px {
    font-size: 18px;
  }
}

/* ===== input2.css ===== */
label {
  font-size: 14px;
  color: #1d394f;
  font-weight: 600;
}

.line {
  margin-top: 25px;
  margin-bottom: 4px;
}

.add-margin-top {
  margin-top: 10px;
}

.text-red {
  font-size: 12px;
  color: #cc0000;
}

@media screen and (min-width: 1024px) {
  .item-content,
  .input-text,
  .input-text-pulldown {
    width: 649px;
  }
}

/* ===== input3.css ===== */
.error-margin-left {
  width: 100%;
  margin-left: 0px;
  margin-right: 8px;
}

.error-margin-right {
  width: 100%;
}

.input-text-birth {
  width: 305px;
  height: 50px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0px;
  font-size: 16px;
  color: #1d394f;
  text-indent: 20px;
}

.text-supplement {
  color: #1d394f;
  font-size: 12px;
  margin-top: 3px;
}

/* PCサイズのときにだけ幅を649pxにする */
@media screen and (min-width: 1024px) {
  .item-content,
  .form-row,
  .input-text-birth {
    width: 649px;
  }
}

/* ===== input4.css ===== */
/* 郵便番号 */
.input-zipcode {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-text-zip {
  width: 177px;
  height: 50px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0px;
  font-size: 16px;
  text-indent: 20px;
}

.input-text-tel {
  width: 305px;
  height: 50px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0px;
  font-size: 16px;
  text-indent: 20px;
}

.input-text-email {
  width: 305px;
  height: 50px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  padding: 0px;
  font-size: 16px;
  text-indent: 20px;
}

/* ご要望 */
.item-title-request {
  font-size: 18px;
  color: #1d394f;
  font-weight: 600;
  margin-left: 0px;
}

.request-inner {
  width: 305px; /* ← ここで横幅を固定。ラベルもtextareaもこの中で揃える */
}

.request-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; /* 必要に応じて調整 */
}

.with-margin {
  margin-top: 20px;
  /* ボタンの開閉に合わせて付け足し */
  /* margin-bottom: 20px;  */
}

.button-group {
  display: flex;
  gap: 8px; /* ボタン間の隙間 */
  /* margin-right: 21px; */
}

.image-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hidden {
  display: none;
}

.customer-address-info {
  display: none;
}

.request-area {
  display: flex;
  justify-content: center;
}

.add-padding {
  padding-top: 11px;
}

.request-area textarea {
  display: none;
  /* width: 305px; */
  width: 100%;
  height: 150px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  padding: 20px; /* 好きな余白 */
  box-sizing: border-box;
}

/* プライバシーポリシー */
.item-title-policy {
  font-size: 18px;
  color: #1d394f;
  font-weight: 600;
  margin-bottom: 8px;
}

.policy-area {
  display: flex;
  justify-content: center;
  align-items: center;
}

.readonly-box {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 0 15px;
  width: 275px;
  height: 108px;
  overflow-y: auto;
  background-color: #fff;
}

.readonly-title {
  font-weight: bold;
  font-size: 14px;
  color: #1d394f;
  padding-top: 12px;
}

.readonly-body {
  font-size: 12px;
  color: #1d394f;
}

.btn-search {
  background: white;
  border-radius: 40px;
  border: 2px #f79626 solid;
  cursor: pointer;

  cursor: pointer;
  width: 118px;
  height: 40px;

  font-size: 14px;
  color: #f79626;
  font-weight: bold;
  position: relative;
  text-align: center;
  padding: 0;
  overflow: hidden;

  &:active {
    transform: scale(0.98);
  }

  &:focus {
    outline: 0;
  }
}

.pulldown-arrow-wrapper::after {
  top: 32%;
}

/* 番地 ビル名 マンション名 表示非表示切り替え用 */
.item-content-address-block {
  display: none;
}

/* 確認する 活性化時*/
.btn-confirmation:enabled {
  background-color: #2188dd;
  color: #fff;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  width: 315px;
  height: 50px;

  position: relative;

  &:active {
    transform: scale(0.98);
  }
}

.btn-confirmation:disabled {
  background-color: #cccccc;
  color: #fff;
  border: 0;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;

  font-size: 18px;
  font-weight: 600;
  width: 315px;
  height: 50px;
  position: relative;
}

.text-area {
  width: 290px;
}

.text-1 {
  font-size: 12px;
  margin: 4px;
  text-align: center;
}

/* スピナーのスタイル */
.spinner {
  display: none;
  border: 8px solid #f3f3f3;
  border-top: 8px solid #2188dd;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* スピナー表示用のオーバーレイ */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

@media screen and (min-width: 1024px) {
  .input-text-zip {
    width: 522px;
  }
  .item-content,
  .input-text,
  .input-text-pulldown,
  .request-inner,
  .readonly-box,
  .input-text-tel,
  .input-text-email {
    width: 649px;
  }
}
