@charset "utf-8";
@import "common.css";

#mainImg{
  background-image: url(../img/mainImg/contact_mainImg.jpg);
  background-position: top 63% center;
}

/* content */
#sec01{
}
iframe {
  width: 52vw;
  height: 700px;
}
#infoBox{
  width: 90%;
  display: flex;
  justify-content: space-around;
  text-align: left;
  margin: 50px auto;
}
#roadInfoBox img{
  width: 250px;
}
#roadInfoBox{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#sec01 a:hover{
  text-decoration: underline;
}
#sec01 p{
  font-size: .95em;
  margin: 10px 0;
}
#sec01 span{
  color: var(--primary);
  font-weight: 500;
}


/* ----------------------------------------------------------------------------- */

#content02{
  /* background-color: #fff; */
}
#mailBox{
  margin: 0 auto;
  /* width: 80%; */
  width: 52vw;
  border-spacing: 0;
  border-top: 1px solid #d5d5d5;
}
#mailBox .input_sec{
  padding: 10px 10px;
}
#mailBox input{
  padding: 1px 3px;
  font-size: .95em;
  font-weight: 400;
  border: 1px solid #d5d5d5;
}
#mailBox input:focus, #mailBox textarea:focus{
  outline: .5px solid #c2131980;
  box-shadow: 0px 0px 3px 1px rgba(255, 0, 0, 0.514);
}
#mailBox input::placeholder {
  color: #00000080;
}
#mailBox textarea {
  padding: 1px 3px;
  resize: none;
  border: 1px solid #d5d5d5;
}
#emailTitle,
#emailText {
  width: 80%;
}
#mailBox tr {
  height: 50px;
  text-align: left;
}
#mailBox td {
  border-bottom: 1px solid #d5d5d5;
}
#mailBox td span {
  color: red;
}
#mailBox td:nth-child(1) {
  width: 160px;
  background-color: #fbfbfb;
  font-weight: 500;
  text-align: center;
}
#mailBox .error{
  display: none;
  margin-left: 10px;
  font-size: .9em;
  color: red;
}
#mailBox .error.show {
  display: inline !important;
}
#mailBox .info {
  display: inline;
  margin-left: 10px;
  font-size: .9em;
  color: #666;
}
#mailBtn_sec{
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

button#sendBtn {
  font-size: 20px;
  background: var(--primary);
  color: white;
  padding: 0.7em 1em;
  padding-left: 0.9em;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s;
}

button#sendBtn span {
  display: block;
  margin-left: 0.3em;
  transition: all 0.3s ease-in-out;
  color: #fff;
}

button#sendBtn svg {
  display: block;
  transform-origin: center center;
  transition: transform 0.3s ease-in-out;
}

button#sendBtn:hover .svg-wrapper {
  animation: fly-1 0.6s ease-in-out infinite alternate;
}
  
button#sendBtn:hover svg {
  transform: translateX(1.2em) rotate(45deg) scale(1.1);
}

button#sendBtn:hover span {
  transform: translateX(5em);
}

button#sendBtn:active {
  transform: scale(0.95);
}

@keyframes fly-1 {
  from {
    transform: translateY(0.1em);
  }
  
  to {
    transform: translateY(-0.1em);
  }
}
   
.thx {
  display: none;
  /* background: #fffdf3; */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #FFF;
  /* border-radius: 10px; */
  /* border: 2px solid var(--primary); */
  z-index: 100;
}
.thx .text {
  position: relative;
  padding: 20px;
  background: #FFF;
  border-radius: 4px;
  z-index: 10;
}
.thx h2 {
  text-align: left;
}
.thx div div {
  margin: 40px 0;
  width: 20vw;
}
.thx button {
  padding: 6px 20px;
  background: var(--primary);
  color: #FFF;
}
.thx .thxBg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: #00000080;
}

/* ************************* */
/* mobile___ */
.mobile .wBox {
  margin: 0;
}
.mobile iframe {
  width: 100%;
  /* height: calc(100vw - 40px); */
  height: 400px;
}
.mobile #infoBox {
  flex-direction: column;
  gap: 20px;
}
.mobile #mailBox {
  width: 100%;
  margin: 0;
}
.mobile #mailBox td:nth-child(1) {
  padding-left: 6px;
  text-align: left;
}
.mobile label {
  font-size: 14px;
}
.mobile #mailBox input {
  width: 100%;
}
.mobile #emailText {
  width: 100%;
}
.mobile #sendBtn {
  opacity: 1 !important;
}