@charset "UTF-8";

/* ヘッダー
------------------------------------------------------------*/
.header{
	position: relative;
  overflow:hidden;
  width:100%;
}

.header img{
	object-fit:cover;
	position: relative;
  padding-top: 100px;
  width:100%;
	height: 300px;
}

.panel img {
	position: absolute;
	padding: 28px 0px 0px 30px;
	width: 220px;
}

#contact-title{
	position: absolute;
  top: 50%;
	width: 100%;
	-webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
	color: #fff;
	line-height: 1.2;
	text-align: center;
}

#contact-title h1{
	font-size: 30px;
	font-weight:normal;
	margin-top: 70px;
}

#contact-title h2{
	font-size: 20px;
	font-weight:normal;
}


/* 共通
------------------------------------------------------------*/

/* コンタクトフォーム */

.contact-form {
	width: 60%;
 	margin: 30px auto;
}

.contact-table {
	width: 100%;
	margin-bottom: 30px;
	border-spacing: 2px 2px;
	border-collapse:separate;
}

.table td th {
	border: 2px solid #000;
}

.contact-body {
	padding: 20px;
	background-color: #eee;
}

.contact-item {
	width: 250px;
	padding: 20px 0px 20px 20px;
	text-align: left;
	background-color: #000000;
	color: #ffffff;
}

.form {
	margin: 0 auto;
}

.form p {
	margin-bottom: 20px;
}

.form-text {
  width: 100%;
  padding: 20px 10px ;
  border: none;
  appearance: none;
	box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-skill {
  display: block;
}

.form-textarea {
  width: 100%;
  padding: 10px;
  height: 200px;
  border: 0px solid #ccc;
  appearance: none;
	box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.contact-submit,
.conf_button,
.back_button,
.send_button,
.top_back_button {
  width: 250px;
  color: #fff;
  font-weight: bold;
  display: block;
  font-size: 16px;
  padding: 13px;
  border-radius: 30PX;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.contact-submit:hover,
.conf_button:hover,
.back_button:hover,
.send_button:hover,
.top_back_button:hover {
	background-color: #ccf4f5;
	color: #0a8ea1;
}

.contact-submit {
  background-color: #0a8ea1;
  margin: 0 auto;
}

.conf_button {
  background-color: #0a8ea1;
  margin: 0 auto;
}

.back_button {
  background-color: #0a8ea1;
}

.send_button {
  background-color: #0a8ea1;
}

.top_back_button {
  background-color: #0a8ea1;
  margin: 40px auto 0;
  text-align: center;
  text-decoration: none;
}

.send_btn_wrapper {
  display: flex;
  justify-content: center;
  gap: 30px;
}

p.completion_text {
  font-size: 16px;
}

.form_bun_icon {
  margin-right: 5px;
    font-size: 14px;
    vertical-align: 1px;
}

/* コンタクトフォーム レスポンシブ対応 */
@media (max-width: 600px) {
    .contact-submit, 
    .conf_button, 
    .back_button, 
    .send_button, 
    .top_back_button {
      width: 46%;
      font-size: 14px;
      padding: 3%;
  }

  p.completion_text {
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
  }
}

/* form step
--------------------------------------------- */
.form-table {
  width: 100%;
  margin-bottom: 60px;
  border-spacing: 2px 2px;
  font-size: 16px;
  border: 1px solid #bbb;
  box-sizing: border-box;
}

table.form-table tr {
  border-top: 1px solid #bbb;
  display: flex;
  padding: 28px 30px 30px;
  height: auto;
  box-sizing: border-box;
}

table.form-table tr.message_area {
  height: auto;
}

table.form-table tr:first-child {
  border-top: none;
}

table.form-table th {
  font-weight: normal;
  width: 20%;
  min-width: 190px;
  display: flex;
  justify-content: space-between;
  margin-right: 1%;
  align-items: baseline;
}

table.form-table td {
  padding-left: 80px;
  width: 79%;
  box-sizing: border-box;
  position: relative;
}

.form_label {
  font-size: 14px;
  color: #fff;
  background: #eee;
  padding: 3px 7px 5px;
  border-radius: 3px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1;
  position: relative;
  top: -2px;
}

.form_label.required {
  background: #dd422a;
}

.form_label.any_gray {
  background: #a1a1a1;
}

.input_text_box,
.input_email_box {
  width: 70%;
  border: 1px solid #9c9c9c;
  font-size: 15px;
  padding: 7px;
  border-radius: 3px;
  box-sizing: border-box;
}

.input_message_box {
  border: 1px solid #9c9c9c;
  font-size: 15px;
  padding: 7px;
  border-radius: 3px;
  resize: vertical;
  max-width: 800px;
  width: 100%;
  height: 150px;
  box-sizing: border-box;
}

input::placeholder,
textarea::placeholder {
    font-size: 14px; /* フォントサイズ */
    color: #999; /* 色 */
}


/* ステップ全体 */
.form-steps {
  display: flex;
  justify-content: space-between;
  list-style-type: none;
  padding: 0;
  margin: 60px auto 50px;
  width: 70%;
  position: relative;
}

/* 各ステップの基本スタイル */
.step {
  text-align: center;
  color: #ccc;
  font-size: 14px;
  position: relative;
}

.step span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 5px;
  background-color: #ccc;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: bold;
  z-index: 2;
  position: relative;
}

/* 現在のステップ */
.step.current span {
  background-color: #0a8ea1;
  color: #fff;
}

.step.current {
  color: #0a8ea1;
}

/* 完了済み（completed）のステップ */
.step.completed span {
  background-color: #0a8ea1;
  color: #fff;
}

.step.completed {
  color: #0a8ea1;
  font-weight: bold;
}

/* 横棒の設定 */
.form-steps .step {
  position: relative;
  flex: 1;
  text-align: center;
}

.form-steps .step::after {
  content: "";
  position: absolute;
  top: 32%;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ccc;
  transform: translateY(-50%);
  z-index: 1;
}

.form-steps .step:first-child::after {
  left: 50%;
  width: 50%;
}

.form-steps .step:last-child::after {
  width: 50%;
}

/* アクティブな横棒 */
.step.completed::after {
  background-color: #0a8ea1; /* 緑色 */
}

/* 初期の状態を明確にする */
.step:not(.completed)::after {
  background-color: #ccc; /* 未完了の横棒は灰色 */
}

/* バリデーションチェック */
.error-message {
  font-size: 12px;
  font-weight: bold;
  color: #dd422a;
  position: absolute;
}

.error-message.addition {
  margin: 4px 0 0 0;
  line-height: 0;
}

/* レスポンシブ対応 */
@media (max-width: 1000px) {
  .input_text_box, 
  .input_email_box,
  .input_message_box  {
      width: 100%;
  }
}

@media (max-width: 768px) {
  .form-table {
      font-size: 15px;
  }

  table.form-table tr {
      flex-direction: column;
      padding: 28px 30px 30px;
      height: auto;
  }

  table.form-table th {
      font-weight: normal;
      width: 100%;
      min-width: auto;
      display: flex;
      justify-content: initial;
      margin-right: auto;
      align-items: baseline;
      margin-bottom: 10px;
  }

  table.form-table td {
      width: 100%;
      padding-left: 0;
  }

  .input_message_box {
      max-width: none;
      width: 97%;
      box-sizing: content-box;
  }

  .form_label {
      font-size: 12px;
      margin-left: 5px;
  }

  .form-steps {
      width: 100%;
  }

  .step span {
      width: 30px;
      height: 30px;
      font-size: 14px;
  }

  .form-steps .step::after {
      height: 3px;
  }

  .form-steps .step::after {
      top: 28%;
  }
}


/* RESPONSIVE 設定
------------------------------------------------------------*/
@media only screen and (max-width: 1200px){
	.contact-form {
		width: 80%;
	}
}

@media only screen and (max-width: 800px){
	.contact-form {
		width: 80%;
	}
	#contact-title h1{
		margin-top: 0;
	}
	.contact-item {
		width: 200px;
	}
}

@media only screen and (max-width: 640px){
	#contact-title h1{
		margin-top: 0;
	}

	.header{
	  position: relative;
	  overflow:hidden;
	  width:100%;
	  height:568px;
	}
	.header img{
	  padding-top: 0;
	  width:1280px;
	  height:auto;
	  margin-left:-470px;
	}

/* コンタクトフォーム */

	.contact-form {
		width:90%;
		margin: 30px auto;
	}
	.contact-item {
		width: auto;
	}
	.form-text {
		padding: 20px 0px 20px 10px;
	}
	table th,
	table td {
		display: block;
	}
}

@media only screen and (max-width: 799px){
	.header img{
		padding-top: 0;
	}
}
