@charset "utf-8";

/*==========================
contact header
==========================*/

.contactpage-header {
  background: linear-gradient(90deg, #9CCAC0 0%, #95B3CB 100%);
  height: 475px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 110px;
  position:relative;
}

/* メインタイトル */
.contactpage-title {
  font-family: Montserrat;
  line-height: 0.8;
  font-size: 17rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.50);
  margin: 0;
}

/* サブタイトル */
.contactpage-subtitle {
  font-size: 4.8rem;
  font-weight: 700;
  color: #515459;
  margin-top: 10px;
  position: absolute;
}

@media (max-width: 768px) {
  .contactpage-header {
    height: 350px;
    padding-top: 80px;
  }

  .contactpage-title {
    font-size: 8rem;
  }

  .contactpage-subtitle {
    font-size: 2.4rem;
  }

}

/*==========================
Main contents
==========================*/
.contact-bg {
  background: #fff;
  padding: 100px 0;
  display: flex;
  justify-content: center;
}

.contact-message {
  text-align: center;
  font-size: 1.6rem;
  line-height: 2;
  margin-bottom: 50px;
}

.message-notice {
  color: #E1977F;
  font-size: 1.6rem;
}

.essential {
  background: #E1977F;
  color: #fafafa;
  font-size: 1.4rem;
  padding: 0 10px;
  font-weight: normal;
  margin-left: 10px;
}

.contact-area {
  padding: 90px;
  width: 1000px;
}

.contact-table {
  width: 100%;
}

.table-list {
  display: flex;
  justify-content: space-between;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
  width: 100%;
  margin-bottom: 40px;
}

.table-list th {
  font-size: 1.6rem;
  font-weight: bold;
  width: 250px;
  text-align: left;
}

.table-list-address {
  flex-wrap: wrap;
}

.table-list-address .input-area {
  margin-bottom: 10px;
}

.input-area {
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.05em;
  padding: 0 10px;
  border: none;
  width: 550px;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #c4c4c4;
}

.table-list td {
  font-size: 13px;
  width: calc(100% - 250px);
}

input::placeholder {
  color: #bfbfbf;
  font-size: 12px;
  font-weight: bold;
}

textarea {
  border: none;
  width: 550px;
  height: 200px;
  padding: 0;
  border: 1px solid #c4c4c4;
  resize: vertical; /* 横方向のみサイズを固定する */
}

textarea::placeholder {
  color: #bfbfbf;
  font-size: 12px;
}

input[type="text"] {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.contact-area .text {
  font-size: 13px;
  text-align: center;
  margin-bottom: 100px;
}

.contact-area .text a {
  color: #000;
  border-bottom: 1px solid #000;
  transition: all .3s;
  text-decoration: none;
}

.contact-area .text a:hover {
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
  color: #777;
}

.submit-button {
  font-size: 1.6rem;
  box-sizing: border-box;
  position: relative;
  display: block;
  margin: 30px auto 0;
  background-color: #e4eeef;
  cursor: pointer;
  border: 1px solid #e4eeef;
  color: #000;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  outline: none;
  -webkit-transition: all .3s;
  transition: all .5s;
  padding: 20px 80px;
}

.submit-button:hover {
  background: #cae1e3;
  color: #000;
  border: 1px solid #cae1e3;
}

.box_check {
  text-align: center;
  margin: 20px auto;
}

.box_check label {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  cursor: pointer;
}

.box_check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9CCAC0;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  outline: none;
  margin-right: 10px;
}

.box_check input[type="checkbox"]:checked {
  background-color: #9CCAC0;
  border-color: #9CCAC0;
}

.box_check input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: white;
}

/* リンクのスタイル */
.box_check a {
  color: #31708E;
  text-decoration: none;
  font-weight: bold;
}

.box_check a:hover {
  text-decoration: underline;
}

/* 無効時の送信ボタン */
.submit-button:disabled {
  background-color: #ccc;
  border: 1px solid #ccc;
  color: #777;
  cursor: not-allowed;
}


@media(max-width:1200px) {
  .contact-area {
      width: 80%;
      padding: 60px;
  }
}

@media(max-width:1024px) {
  .contact-bg{
    padding: 0;
  }
  .contact-area {
      padding: 50px 15px;
  }

  .table-list th {
      width: 180px;
  }

  .table-list td {
      width: 100%;
  }

  .input-area {
      width: 500px;
      height: 40px;
  }

  textarea {
      width: 500px;
      height: 200px;
  }

  .contact-message {
      margin-bottom: 30px;
  }

  .contact-area .text {
      margin-bottom: 30px;
  }
}


@media(max-width:768px) {

  .contact-bg{
    margin: 0;
  }

  .contact-area {
      margin: 50px auto;
      padding: 50px 20px;
  }

  .check-box label {
      width: 100%;
  }

  .input-area {
      width: 100%;
      height: 30px;
  }

  textarea {
      width: 100%;
      height: 200px;
  }

  .table-list {
      flex-wrap: wrap;
      margin-bottom: 20px;
  }

  .table-list th {
      font-size: 12px;
      width: 200px;
      margin-bottom: 10px;
  }

  .table-list td {
      font-size: 12px;
  }

  .table-list td {
      width: 100%;
  }

  .contact-message {
      font-size: 13px;
  }

  .contact-area .text {
      font-size: 13px;
  }
}

@media (max-width:640px) {
  .contact-message {
    text-align: left;
  }

  .contact-area .text {
    text-align: left;
  }
}

@media(max-width:320px) {
  .input-area {
    width: 100%;
  }

  textarea {
    width: 100%;
  }
}

