@charset "UTF-8";

/* --------------------------------------------------
個人サイト向けひとことフォーム コイブミ Ver1.3.1
製作者    ：ガタガタ
サイト    ：https://do.gt-gt.org/
ライセンス：MITライセンス
全文      ：https://ja.osdn.net/projects/opensource/wiki/licenses%2FMIT_license
公開日    ：2020.09.13
最終更新日：2022.05.11
このプログラムはどなたでも無償で利用・複製・変更・
再配布および複製物を販売することができます。
ただし、上記著作権表示ならびに同意意志を、
このファイルから削除しないでください。
-------------------------------------------------- */

div#koibumi_wrap {
    margin: 30px 0;
}

div#koibumi_thanks {
  width: 80%;
  margin: 2rem auto;
  background: var(--background);
  /* border: 1px solid #ffc6c7; */
  border-radius: 10px;
  padding: 10px;
  /* filter: drop-shadow(0 2px 8px #cccccc7d); */
  /* position: absolute;
  top: 475px;
  opacity: 0;
  animation-name: koibumi_thanks-up;
  animation-duration: .5s;
  animation-fill-mode: both; */
}

/* div#koibumi_thanks:after {
    content: '';
    width: 0px;
    height: 0px;
    border-bottom: 20px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 20px solid #ffc6c7;
    position: absolute;
    left: 20px;
} */

div#koibumi_thanks.koibumi_thanks_bottom {
    width: 300px;
    max-width: 100%;
    background: white;
    border: 1px solid #efefef;
    border-radius: 10px;
    padding: 10px;
    filter: drop-shadow(0 2px 8px #cccccc7d);
    position: absolute;
    bottom: auto;
    top: 110%;
    opacity: 0;
    animation-name: koibumi_thanks-down;
    animation-duration: .5s;
    animation-fill-mode: both;
}

div#koibumi_thanks.koibumi_thanks_bottom:after {
    content: '';
    width: 0px;
    height: 0px;
    border-top: 20px solid transparent;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 20px solid white;
    position: absolute;
    bottom: calc(100% - 1px);
    left: 20px;
} 

div#koibumi_thanks.koibumi_thanks_right {
  right: 0;
  left: auto;
}

div#koibumi_thanks.koibumi_thanks_right:after {
  left: auto;
  right: 20px;
} 

div#koibumi_form {
  display: flex;
  gap: 5px;
  width: 100%;
  overflow: hidden;
flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

input#koibumi_text {
  /* border: 1px solid #959595; */
  flex: 1 1 0%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 14px;
  padding: 10px;
  width: 100%;
  height: 40px;
  margin: 0;
  font-family: inherit;
}
textarea#koibumi_text {
  font-size: 14px;
  padding: 10px;
  line-height: 1.4em;
  width: 100%;
  /* border: 1px solid #959595; */
  border-radius: 3px;
  font-family: inherit;
  resize: vertical;
  min-height: 10rem;
}

input#koibumi_text:focus,
textarea#koibumi_text:focus,
button#koibumi_btn:focus {
  outline: none;
}
button#koibumi_btn {
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 5px;
  line-height: 1em;
  width: 65px;
  /* background: #333333; */
  /* color: white; */
  transition: .3s;
  margin: auto 0 0;
  height: 40px;
  text-align: center;
  flex-shrink: 0;
}

/* button#koibumi_btn:hover {
  background: #f3567a;
} */

div#koibumi_wrap p.attention {
    font-size: 10px;
    /* opacity: .5; */
}

.koibumifadeout {
  animation : koibumifadeout 1s !important;
  animation-fill-mode: both;
}

p#koibumi_alert {
    padding: 10px 0;
    margin: 2rem auto;
    font-size: 14px;
    /* position: absolute; */
    z-index: 10;
    width: 80%;
    /* top: 100%; */
    background: var(--white);
    /* box-shadow: 0 2px 6px #00000014; */
}
p#koibumi_alert.success {
    background: #d4effc;
    color: #0f286a;
}
p#koibumi_alert.alert {
    background: var(--white);
    border: 4px solid var(--secondary);
    color: var(--paragraph);
}

div#koibumi_thanks p {
    font-size: 14px;
    margin: 0;
}

div#koibumi_thanks img {
  max-width: 100%;
}

@keyframes koibumifadeout {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes koibumi_thanks-up {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes koibumi_thanks-down {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(from var(--paragraph) r g b / 0.7);
}

.modal-content {
  background-color: var(--white);
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);  padding: 20px;
  width: 80%;
  max-width: 500px;
  /* text-align: center; */
  border-radius: 10px;
  max-height: 95vh; /* モーダルの高さ制限 */
  overflow-y: auto; /* 高さを超える場合にスクロール */
}

.modal-btn {
  margin: 0 10px;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

#koibumiModalButton{
  text-align: right;
  margin: 2rem 0;
}



#cancelSend {
  background-color: var(--white);
  color: var(--paragraph);
  border: 1px solid var(--paragraph);
}

#cancelSend:hover {
  border: 1px solid var(--highlight);
  color: var(--highlight);
}

p#koibumiModalMessage {
  margin: 2rem 0;
  background: var(--background);
  padding: 1rem;
  overflow-wrap: break-word;
}
