:root {
  --prymary: #ecf4e1;
  --secondary: #05aa22;
  --tertiary: #b2b2b2;
  --gray-999: #999;
  --gray-ccc: #ccc;
  --gray-666: #666;
  --gray-dc: #dcdcdc;
  --white: #fff;
  --bold: bold;
  --normal: normal;
  --font: #232b39;
  --black: #000;
  --red: #ff0000;
  --yellow: #ffee93;
  --orange: #eb5a3c;
  --green: #57dd06;
  --black-alpha: rgba(0, 0, 0, .2);
}

/* サポート */
.chat__input.space__input {
  margin-top: 1.25rem;
}

/* ================================== */
/* フォーム全体のラッパー */
/* ================================== */

/* 送信前のラッパー */
.form__wrapper {
  padding: 0 0 50rem;
}

/* 送信後のラッパー */
.form__wrapper--answers {
  padding: 0;
}

/* ================================== */
/* 吹き出しのラッパー */
/* ================================== */

/* 設問のラッパーと最初の吹き出し */
.chat__question,
.chat__question--comp {
  display: none;
  margin: 0 0 3.75rem;
  transition: opacity 0.3s ease;
  position: relative;
}

/* 送信後のふきだし */
.chat__question--talk {
  transition: opacity 0.3s ease;
  margin: 0 0 1rem;
  padding: 1.125rem 0;
  position: relative;
}

/* 送信前の吹き出し */
.chat__talk,
.chat__talk--last {
  display: none;
  margin: 0;
  position: relative;
}

.chat__question::before,
.chat__question--comp::before,
.chat__question--talk::before,
.chat__talk::before,
.chat__talk--last::before {
  background: url(/register_resources/img/register-2-operator.png) no-repeat left top / contain;
  content: "";
  position: absolute;
  height: 3.125rem;
  width: 3.125rem;
  top: 0;
  left: 0;
}

.chat__question::after,
.chat__question--comp::after,
.chat__question--talk::after,
.chat__talk::after,
.chat__talk--last::after {
  content: "いいお墓スタッフ";
  font-size: .625rem;
  line-height: 1.5;
  position: absolute;
  left: 3.25rem;
  top: 0;
}

/* ================================== */
/* フォーム内パーツ・レイアウト */
/* ================================== */

/* フォーム内パーツ・初期は非表示 */
.chat__input,
.select__hakajimai,
.chat__select,
.chat__button,
.chat__note {
  display: none;
}

/* 送信前設問表示関連 */
.chat__question.is-active {
  opacity: 1;
  pointer-events: auto;
}

.chat__input {
  margin: 0 .625rem;
  position: relative;
}

.chat__input--inr {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* ================================== */
/* 吹き出しの見出し h2, h3 */
/* ================================== */

/* 見出し h2　バブル */
.chat__bubble,
.chat__talk .bubble__text,
.chat__talk--last .bubble__text {
  display: inline-block;
  background: var(--prymary);
  border-radius: 1.25rem;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-size: .875rem;
  font-weight: var(--bold);
  line-height: 1.5;
  margin: 1.125rem 0 1.875rem 3.75rem;
  position: relative;
  width: 74.65%;
  z-index: 1;
}

.chat__talk--ans {
  display: inline-block;
  background: var(--prymary);
  border-radius: 1.25rem;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-size: .875rem;
  font-weight: var(--bold);
  line-height: 1.5;
  margin: 0 0 0 3.75rem;
  position: relative;
  width: 74.65%;
  z-index: 1;
}

.chat__bubble::before,
.chat__talk .bubble__text::before,
.chat__talk--last .bubble__text::before,
.chat__talk--ans::before {
  background: url(/register_resources/img/register-2-arrow.png) no-repeat left top / contain;
  content: "";
  position: absolute;
  top: .5rem;
  left: -.375rem;
  height: .875rem;
  width: 1.5rem;
  z-index: -1;
}

.bubble__text--small {
  display: block;
  font-size: .75rem;
  font-weight: var(--normal);
  line-height: 1.5;
  margin-top: .125rem;
}

/* 見出し h3 */
.chat__item {
  font-size: .875rem;
  font-weight: var(--bold);
  line-height: 1.8;
  margin: 0 .625rem .25rem;
}

.chat__item--expansion {
  font-size: .875rem;
  font-weight: var(--bold);
  line-height: 1.8;
  margin: 0 auto .25rem;
}

/* ================================== */
/* loading */
/* ================================== */

.loading-dots {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.chat__talk .loading-dots,
.chat__talk--last .loading-dots {
  left: 1rem;
  top: 40%;
  z-index: 3;
}

.loading-dots span {
  display: block;
  width: .375rem;
  height: .375rem;
  background: var(--gray-999);
  border-radius: 50%;
  animation: blink 1s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ================================== */
/* フォーム内パーツ・その他 */
/* ================================== */

.chat__note {
  color: var(--secondary);
  font-size: .75rem;
  line-height: 1.8;
  width: 100%;
}

.chat__text--agree {
  font-size: .75rem;
  line-height: 1.5;
  margin-top: 1.875rem;
}

.chat__text--info {
  font-size: .625rem;
  line-height: 1.5;
  margin-top: .625rem;
  text-align: center;
}

/* エラー 直書きしていたstyleをclassにするため */
.chat__error {
  opacity: 0.87;
  position: relative;
  top: 0;
  left: 0;
  right: initial;
  margin-top: 0;
  display: block;
}

/* 墓じまいとは？ */
.info__hakajimai {
  align-items: center;
  color: var(--secondary);
  display: flex;
  font-size: .8125rem;
  font-weight: var(--normal);
  position: absolute;
  right: 0;
  top: -2.75rem;
  cursor: pointer;
  z-index: 10;
}

.info__hakajimai::before {
  border: .0625rem solid var(--secondary);
  border-radius: 50%;
  content: '?';
  display: inline-block;
  font-size: .8rem;
  height: .75rem;
  margin-right: .125rem;
  text-align: center;
  width: .75rem;
}

/* ================================== */
/* 見学のみの場合に出す部分：gtmのスタイル移植 */
/* ================================== */

.attention__note {
  color: var(--red);
  font-size: .875rem;
}

.npa-cv h3 {
  text-align: center;
}

.npa-cv h3 span {
  background: linear-gradient(transparent 70%, var(--yellow) 0%);
}

.npa-cv img {
  display: block;
  margin: 0 auto 3.125rem;
}

.conversion-pdf {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 100%;
  max-width: 25rem;
}

.conversion-pdf_wrap {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  margin-bottom: .375rem;
}

.conversion-pdf_img {
  flex-shrink: 0;
}

.conversion-pdf_txt {
  margin-left: .625rem;
}

.conversion-pdf_ttl {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: .375rem;
}

.conversion-pdf_subtxt {
  font-size: 1rem;
  color: var(--gray-666);
}

.button_conversion-pdf {
  background: linear-gradient(to bottom, var(--green), var(--secondary));
  border-radius: .375rem;
  border: .0625rem solid var(--secondary);
  box-shadow: 0 .125rem .25rem var(--black-alpha);
  padding: 0 0 .375rem;
  width: 100%;
  text-align: center;
}

.button_conversion-pdf a {
  color: var(--white);
  display: block;
  padding: .625rem 0;
  text-decoration: none;
}

.conversion-pdf_img img {
  margin: 0 0 .375rem .375rem;
  max-width: 5rem;
}

.conversion-pdf_ttl {
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: .5rem;
}

.conversion-pdf_subtxt {
  font-size: .875rem;
  line-height: 1.4;
}

.button_conversion-pdf {
  background: linear-gradient(to bottom, var(--green), var(--secondary));
  border-radius: .375rem;
  border: .0625rem solid var(--secondary);
  box-shadow: 0 .125rem .25rem var(--black-alpha);
  padding: 0 0 .375rem;
  width: 100%;
  text-align: center;
}

.button_conversion-pdf a {
  color: var(--white);
  display: block;
  padding: .625rem 0;
  text-decoration: none;
}

.cv-button-title {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: bold;
  text-shadow: 0 0 .375rem var(--black-alpha);
}

.button_conversion-pdf .icon-free {
  background-color: var(--white);
  border-radius: .125rem;
  color: var(--secondary);
  display: inline-block;
  font-size: .875rem;
  font-weight: bold;
  height: 1.5rem;
  line-height: 1.5rem;
  margin-left: .375rem;
  padding: 0 .375rem;
  transform: translateY(-.1875rem);
}

.wrap_form .ttl__h3--slash {
  align-items: center;
  display: flex;
  font-size: 0.875rem;
  font-weight: bold;
  justify-content: center;
  line-height: 1.5;
  margin-bottom: .5rem;
  position: relative;
}

.wrap_form .ttl__h3--slash::before {
  content: "";
  width: 1.5rem;
  height: .0625rem;
  background-color: var(--font);
  margin: 0 .25rem .25rem;
  transform: rotate(60deg);
}
.wrap_form .ttl__h3--slash::after {
  content: "";
  width: 1.5rem;
  height: .0625rem;
  background-color: var(--font);
  margin: 0 .25rem .25rem;
  transform: rotate(-60deg);
}

/* ================================== */
/* 霊園カード 複数ある場合 */
/* ================================== */

.scrollable {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: .5rem;
  padding: 0 0 .5rem 0;
  scroll-snap-type: x mandatory;
  margin-bottom: 2.625rem;
}

.scrollable .blk_cemetery {
  display:block;
  min-width: 11.75rem;
  width: 11.75rem;
  margin: 0;
}

.cemetery-container::-webkit-scrollbar {
  height: .25rem;
}

.cemetery-container::-webkit-scrollbar-thumb {
  background-color: var(--tertiary);
  border-radius: .25rem;
}

.scrollable .blk_cemetery .img_cemetery {
  height: auto;
  margin-right: .625rem;
  width: 81%;
}

.scrollable__ttl {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.scrollable .ttl_cemetery {
  font-size: .875rem;
}

.scrollable .blk_cemetery .open_detail>a {
  font-size: .75rem;
}

.scrollable__note {
  font-weight: normal;
  align-items: center;
  color: var(--secondary);
  justify-content: center;
  font-size: .625rem;
  line-height: 1.4;
  display: flex;
  gap: .125rem;
  border-radius: .25rem;
  background: var(--prymary);
  padding: .25rem 0;
  line-height: 1.375rem;
  height: 1.375rem;
  width: 8.75rem;
}

/* ================================== */
/* モーダル：墓じまいとは */
/* ================================== */

.modal__inr--hakajimai {
  padding: 1.25rem;
}

.modal__contents--hakajimai {
  border-radius: .625rem;
  border: .0625rem solid var(--prymary);
  padding: 1rem 1.875rem;
  text-align: center;
}

.modal__header--hakajimai {
  border-bottom: solid .0625rem var(--gray-dc);
  height: 3rem;
  line-height: 3rem;
}

.modal__header--hakajimai h2 {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.modal__ttl--hakajimai strong{
  color: var(--white);
  display: inline-block;
  font-size: .75rem;
  font-weight: bold;
  line-height: 1.66667;
  background: var(--secondary);
  padding: .125rem 1.5rem;
}

.modal__description--hakajimai {
  color: var(--black);
  font-size: .875rem;
  line-height: 1.42857;
  margin: 0 0 1.25rem 0;
}

.modal__text--note {
  background: var(--prymary);
  padding: .125rem 1.5rem;
  color: var(--secondary);
  font-size: .75rem;
  font-weight: bold;
  line-height: 1.66667;
}

.modal__img--hakajimai {
  width: 80%;
  margin: .625rem auto;
}

.modal__header--hakajimai .btn-close {
  cursor: pointer;
  display: inline-table;
  line-height: 1.5rem;
  padding: 0;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
}

.modal__header--hakajimai .btn-close i.material-icons {
  border: solid .0625rem var(--gray-ccc);
  border-radius: .25rem;
  box-sizing: border-box;
  color: var(--gray-ccc);
  font-size: 1.5rem;
  height: 1.5rem;
  margin: .75rem;
  text-align: center;
  width: 1.5rem;
}

/* ================================== */
/* アイコン */
/* ================================== */

.icon__tel1--red,
.icon__email--red,
.icon__first_name--red,
.icon__first_kana--red,
.icon__address1--red,
.icon__address2--red,
.icon__hakajimai--red{
  border: var(--orange) solid .0625rem;
  background: var(--white);
  border-radius: .125rem;
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: var(--bold);
  height: 1.375rem;
  line-height: 1.375rem;
  margin: 0 0 0 .5rem;
  text-align: center;
  width: 2.25rem;
}

.icon__tel1--green,
.icon__email--green,
.icon__first_name--green,
.icon__first_kana--green,
.icon__address1--green,
.icon__address2--green,
.icon__hakajimai--green{
  background: var(--white);
  border: .0625rem solid var(--secondary);
  border-radius: .125rem;
  color: var(--secondary);
  font-size: 0.8125rem;
  font-weight: var(--bold);
  height: 1.375rem;
  line-height: 1.375rem;
  margin: 0 0 0 .5rem;
  text-align: center;
  width: 2.25rem;
}

.icon__statement--red,
.icon__statement--green {
  display: none;
}

/* ================================== */
/* 送信後のフォーム */
/* ================================== */

.complete__section {
  opacity: 0;
  transition: opacity 0.8s ease;
  display: none;
}

.complete__section.is-visible {
  display: block;
  opacity: 1;
}

.chat__anchor {
  align-items: center;
  background: var(--secondary);
  border: none;
  color: var(--white);
  border-radius: .3125rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  line-height: normal;
  margin: 0 auto 5rem;
  padding: .82rem;
  text-decoration: none;
  font-weight: var(--bold);
  font-size: 1rem;
  width: 80%;
}

.chat__hr {
  border: none;
  border-top: .0625rem solid var(--tertiary);
  margin: 2.5rem 0;
}

/* ================================== */
/* フォーム内パーツ・上書き */
/* ================================== */
.list-time .label_cemetery {
  margin-bottom: .875rem;
}

.chat__select {
  margin: 0 .625rem .875rem;
  position: relative;
}

.chat__select--state {
  margin: 0 0 .875rem;
  position: relative;
}

.chat__select::after,
.chat__select--state::after {
  border-top: solid .1875rem var(--secondary);
  border-right: solid .1875rem var(--secondary);
  content: "";
  height: .5rem;
  position: absolute;
  right: .625rem;
  top: 1rem;
  transform: rotate(135deg);
  width: .5rem;
  pointer-events: none;
}

.chat__label {
  align-items: center;
  border: .0625rem solid var(--tertiary);
  border-radius: .3125rem;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  margin-bottom: .875rem;
  padding: .91rem .625rem;
  justify-content: center;
  position: relative;
  width: 47.77%;
}

.chat__label--end {
  border: .0625rem solid var(--tertiary);
  border-radius: .3125rem;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  font-size: 0.875rem;
  margin-bottom: .875rem;
  padding: .91rem .625rem;
  position: relative;
  text-align: center;
  width: 100%;
}

.chat__label--basic {
  border: .0625rem solid var(--tertiary);
  border-radius: .3125rem;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  margin-bottom: .875rem;
  padding: .91rem .625rem;
  width: 100%;
}

.chat__label--recommend {
  border: .0625rem solid var(--tertiary);
  border-radius: .3125rem;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  padding: .91rem .625rem .91rem 2.625rem;
  position: relative;
  width: 100%;
}

.check-disabled {
  background: var(--white);
  border: .0625rem solid var(--gray-ccc);
  color: var(--gray-ccc);
}

.chat__submit {
  margin: 1rem auto 1.875rem;
  text-align: center;
}

.chat__submit--visit {
  margin: 1.875rem auto 0;
  text-align: center;
}

.chat__button {
  border: none;
  box-sizing: border-box;
  color: var(--tertiary);
  cursor: pointer;
  font-size: .875rem;
  font-weight: var(--bold);
  justify-content: center;
  line-height: normal;
  margin: 0 auto;
  padding: .25rem 0 0;
  position: relative;
}

.chat__button::before {
  content: "";
  margin: 0 .25rem 0 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-right: .375rem solid transparent;
  border-left: .375rem solid transparent;
  border-top: .75rem solid var(--tertiary);
  border-bottom: 0;
  position: relative;
  top: .35rem;
}

.chat__button:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.chat__button--send,
.chat__button--visit {
  align-items: center;
  background: var(--secondary);
  border: none;
  border-radius: .3125rem;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  justify-content: center;
  line-height: normal;
  margin: 0 auto;
  padding: .82rem 0;
  width: 59.8%;
}

.chat__button--send:disabled,
.chat__button--visit:disabled {
  background: var(--gray-ccc);
  cursor: not-allowed;
}

.footer__img--iso {
  height: 3.5rem;
  width: auto;
}

.wrap_form {
  min-height: 100vh;
  margin: 0 .625rem;
}

.info_type {
  font-weight: normal;
  top: -2.75rem;
  z-index: 10;
}

.info_type::before {
  border: .0625rem solid var(--secondary);
}

.list-time {
  margin-bottom: .375rem;
}

#footer {
  background: var(--white);
  color: var(--font);
}

#footer address {
  background: var(--secondary);
  color: var(--white);
  padding: 1.125rem 0;
}

.footer__form--inr {
  gap: .625rem;
  padding: 1.25rem;
}

.footer__form--inr--txt,
#footer address {
  font-size: .625rem;
}

.footer__form--inr--txt {
  padding: 0;
}

.footer__form--inr--txt strong {
  font-weight: var(--normal);
}

.footer__form--inr--image {
  height: 3.25rem;
  width: auto;
}

.pagetop {
  z-index: 100;
}

input[type="radio"]+.chat__label::before {
  background: var(--white);
  border: .0625rem solid var(--tertiary);
  border-radius: 50%;
  box-sizing: border-box;
  content: "";
  display: inline-flex;
  height: 1.375rem;
  left: 0;
  margin: 0 .625rem;
  position: absolute;
  width: 1.375rem;
}

input[type="radio"]:checked+.chat__label::after {
  background: var(--secondary);
  border-radius: 50%;
  content: "";
  display: inline-flex;
  height: 1rem;
  margin: 0 .625rem;
  position: absolute;
  left: .1875rem;
  width: 1rem;
}

input[type="checkbox"]:checked+.chat__label,
input[type="checkbox"]:checked+.chat__label--end,
input[type="checkbox"]:checked+.chat__label--recommend {
  background: var(--prymary);
}

input[type="checkbox"]+.chat__label::before,
input[type="checkbox"]+.chat__label--end::before,
input[type="checkbox"]+.chat__label--recommend::before {
  background: var(--white);
  border: .0625rem solid var(--tertiary);
  border-radius: .3125rem;
  box-sizing: border-box;
  content: "";
  display: inline-flex;
  height: 1.375rem;
  left: 0;
  margin: 0 .625rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.375rem;
}

input[type="checkbox"]:checked+.chat__label::before,
input[type="checkbox"]:checked+.chat__label--end::before,
input[type="checkbox"]:checked+.chat__label--recommend::before {
  background: var(--white);
  border: .0625rem solid var(--secondary);
}

input[type="checkbox"]:checked+.chat__label::after,
input[type="checkbox"]:checked+.chat__label--end::after,
input[type="checkbox"]:checked+.chat__label--recommend::after {
  border-bottom: .125rem solid var(--secondary);
  border-right: .125rem solid var(--secondary);
  content: "";
  display: inline-flex;
  height: .75rem;
  left: 1.125rem;
  position: absolute;
  top: .75rem;
  transform: rotate(45deg);
  width: .3125rem;
}

input[type="button"],
button,
select {
  background: var(--white);
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
  color: var(--font);
}

input[type="radio"],
input[type="checkbox"] {
  visibility: hidden;
  position: absolute;
  width: .0625rem;
  height: .0625rem;
}

input[type="radio"]:checked+.chat__label {
  background: var(--prymary);
}

select {
  border: var(--tertiary) solid .0625rem;
  border-radius: .3125rem;
  box-sizing: border-box;
  height: 3rem;
  padding: 0 .625rem;
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus{
  outline: var(--secondary);
  border: var(--secondary) solid 2px;
  background: var(--white);
}

select:focus{
  height: 3rem;
  padding: 0 .625rem;
}

/* フォーカスしたらプレースホルダーを削除する */
input:focus::-webkit-input-placeholder {
	color: transparent;
}
input:focus::-moz-placeholder {
	color: transparent;
}
input:focus::-ms-input-placeholder {
	color: transparent;
}
input:focus::placeholder {
	color: transparent;
}

.list-time input[type="checkbox"]:checked~.label_cemetery{
  font-weight: var(--normal);
}

input[type="checkbox"]+.check-disabled::before {
  border: .0625rem solid var(--gray-ccc);
}

.wrap_form input.js-required:placeholder-shown {
  background: var(--white);
  color: var(--tertiary);
}

.wrap_form select:invalid {
  background: var(--white);
  color: var(--font);
}

.chat__button--send input,
.chat__button--visit input {
  background: inherit;
  color: var(--white);
  font-size: 1rem;
  font-weight: var(--bold);
}

@media (min-width: 768px) {

  .wrap_form {
    margin: 0 auto;
    width: 30rem;
  }

  .chat__input {
    margin: 0;
  }

  .scrollable .blk_cemetery {
    min-width: 12.5rem;
    width: 12.5rem;
  }

  .chat__bubble,
  .chat__talk .bubble__text,
  .chat__talk--last .bubble__text,
  .chat__talk--ans {
    width: 88%;
  }

  .wrap_form .ttl__h3--slash {
    font-size: 1rem;
    margin-bottom: .625rem;
  }

  .modal__description--hakajimai{
      font-size: 1rem;
  }

  .modal__text--note,
  .modal__ttl--hakajimai strong {
      font-size: .875rem;
  }

  .chat__select--state {
    margin: 0 0 .875rem;
  }

  .chat__anchor {
    width: 59.8%;
  }

  .footer__form--inr--txt,
  #footer address {
    font-size: .75rem;
  }

}
