@charset "UTF-8";

/* ベーススタイル */
* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  color: #44444b;
  line-height: 1.5;
}

/* レイアウト */
.full-width {
  width: 100%;
}

.fixed-width {
  max-width: 1010px;
  margin: 0 auto;
}

.inner {
  padding: 0 30px;
}

/* 背景 */
.gradient1 {
  background-color: #fff;
  background-image: linear-gradient(180deg, #f8f8f8 0%, #fff 6%, #efefef 74%);
  color: #44444b;
}

/* ヒーローセクション */
.hero {
  padding-top: 20px;
  padding-bottom: 20px;
}

.hero h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 800;
  text-align: center;
}

.green3 {
  background-color: #045143;
  color: #fff;
}

.rc {
  border-radius: 5px;
}

/* テキストユーティリティ */
.ctext {
  text-align: center;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.sptext {
  line-height: 1.6;
}

/* リンク */
a {
  color: #0088d0;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: 0.3;
}

.contents {
  padding: 30px 10px;
}

.link_window::after {
  content: "\f08e";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.8em;
}

/* フォームスタイル */
.form_box {
  display: flex;
  flex-flow: column;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px 1px rgba(0, 0, 0, 0.1);
  padding: 40px;
  margin: 0 auto;
}

.form_box table {
  width: 100%;
  margin: 0 0 10px;
}

.form_box table tr th,
.form_box table tr td {
  width: auto;
  text-align: left;
  border: 0;
  padding: 20px 0;
  font-weight: 600;
  color: #000;
}

.form_box table tr th {
  padding-left: 50px;
  text-indent: -3.5em;
  width: 30%;
  line-height: 18px;
}

.form_box table tr th span {
  color: #fff;
  background: #d9534f;
  border-radius: 5px;
  padding: 5px;
  margin: 0 10px 0 0;
}

        .form_box table tr th span.nini {
	color: #fff;
	    background: rgb(79 171 217) !important;
	border-radius: 5px;
	padding: 5px;
	margin: 0 10px 0 0;
}

.form_box table tr th span.blank {
  background: none !important;
  width: 39px;
  display: inline-flex;
}

/* チェックボックスとラジオボタンの改善 */
.form_box label {
  display: inline-block;
    margin: 1px 0;
  padding: 5px 8px 5px 30px; /* 左側に余白を作る */
  position: relative;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s;
    font-weight: 300;
}

.form_box label:hover {
  background-color: #f5f5f5;
}

/* チェックボックス・ラジオボタンのサイズと位置調整 */
.form_box input[type="checkbox"],
.form_box input[type="radio"] {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 16px;
  height: 16px;
}

/* 機能選択グリッド */
.function-grid {
  display: grid;
  grid-template-columns: 1fr 1fr ;
  gap: 6px;
}

.function-grid label {
    margin: 0;
    padding: 4px 8px 4px 30px;
    background-color: #f9f9f9;
    border-radius: 4px;
    justify-content: flex-start;
    vertical-align: middle;
    align-items: center;
    height: 100%;
    display: flex
;}

.function-grid label:hover {
  background-color: #f0f0f0;
}

.form_box input[type="text"],
.form_box input[type="email"],
.form_box input[type="tel"],
.form_box textarea,
.form_box select {
  width: 100%;
}

.form_box input.short {
  max-width: 200px;
}

.form_box input,
.form_box textarea,
.form_box select {
  background: #f9f9f9;
  border: 1px solid #ececec;
  border-radius: 5px;
  padding: 10px;
  height: 40px;
}

.form_box p.error_messe {
  color: #ff0000;
}

.form_box > p {
  text-align: center;
}

.form_box > p input {
  width: fit-content;
  display: flex;
  min-width: 300px;
  height: 60px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  background: #1c7437;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: pointer;
  margin: 0 auto;
  transition: .3s;
}

.form_box > p input:hover {
  opacity: 0.3;
}

.form_box .columns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* 店舗数の入力欄用スタイル */
.form_box input.tenpo-input {
  max-width: 100px;
  display: inline-block;
  margin-right: 10px;
}

/* 店舗の文字 */
.tenpo-text {
  display: inline-block;
  vertical-align: middle;
}

/* reCAPTCHA */
.g-recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}


/* 確認画面 */
.form_box {
	display: flex;
	flex-flow: column;
	justify-content: center;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 5px 1px rgb(0 0 0 / 10%);
	padding: 40px;
	margin: 0 auto;
}

.form_title h2 {
	color: #045143;
	font-size: 2.4rem;
	text-align: center;
	line-height: 1.5;
	margin: 0 0 30px;
}

.form_box h3 {
	font-size: 1.6rem;
	text-align: center;
	line-height: 1.5;
	margin: 0 0 10px;
}

.form_box h3 + div {
	color: #ff0000;
	text-align: center;
	margin: 0 0 30px;
}

.form_box table {
	margin: 0 0 10px;
}

.form_box table tr th,
.form_box table tr td {
	width: auto;
	text-align: left;
	border: 0;
    padding: 10px 0 10px;
	font-weight: 600;
	color: #000;
}

td.narrow {
    padding: 6px 0 0px !important;
}

.form_box table tr th {
    padding-left: 50px;
    text-indent: -3.5em;
	width: 30%;
	line-height: 18px;

}

.form_box table tr th span {
	color: #fff;
	background: #d9534f;
	border-radius: 5px;
	padding: 5px;
	margin: 0 10px 0 0;
}
        .form_box table tr th span.nini {
	color: #fff;
	    background: rgb(79 171 217) !important;
	border-radius: 5px;
	padding: 5px;
	margin: 0 10px 0 0;
}

.form_box table tr th span.blank {
    background: none !important;
    width: 39px;
    display: inline-flex;
}

.form_box label {
	line-height: 1.5;
}

.form_box input[type="text"],
.form_box input[type="email"],
.form_box input[type="tel"],
.form_box textarea,
.form_box select {
	width: 100%;
}

.form_box input.short {
	max-width: 200px;
}

.form_box input,
.form_box textarea,
.form_box select {
	background: #f9f9f9;
	border: 1px solid #ececec;
	border-radius: 5px;
	padding: 10px;
}

.form_box p.error_messe {
	color: #ff0000;
}

.form_box > p.front {
	text-align: center;
	margin: 0 0 30px;
}

.form_box > p input {
	width: fit-content;
	display: flex;
	min-width: 300px;
	height: 60px;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.6rem;
	font-weight: bold;
	background: #045143;
	border: none;
	border-radius: 5px;
	box-shadow: 0 2px 3px 0 rgb(0 0 0 / 20%);
	position: relative;
	cursor: pointer;
	margin: 0 auto;
	transition: .3s;
}

.form_box > p input.back {
	color: #fff;
	background: #999;
}

.form_box > p input:hover {
	opacity: 0.3;
}

.form_box .columns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.form_box table.kakunin_table tr th,
.form_box table.kakunin_table tr td {
	border: 1px solid #ccc;
	padding: 20px;
	text-indent: 0em;
    font-weight: 300;

}

.form_box table.kakunin_table tr th {
	font-weight: bold;
	background: #eee;
}

.form_box table.kakunin_table + p {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
}





/* レスポンシブ設定 */
@media screen and (max-width: 1024px) {
  .inner {
    padding: 0 20px;
  }
  
  .form_box {
    padding: 20px 20px 40px;
  }

  .form_box table tr {
    display: flex;
    flex-flow: column;
  }

  .form_box table tr th {
    width: 100%;
    padding: 20px 0 0;
    padding-left: 0px;
    text-indent: 0em;
  }

  .form_box input.short {
    max-width: 100%;
  }
  
  .form_box table tr th span.blank {
    width: 0px;
    display: contents;
  }
}

@media screen and (max-width: 767px) {
  .sptext {
    font-size: 1.4rem;
  }
  
  .pconly {
    display: none;
  }
  
  .form_box .columns {
    flex-flow: column;
    font-size: 1.2rem;
  }
  
  .form_box > p input {
    min-width: 280px;
  }
  
  /* モバイル向け調整 */
  .function-grid {
    grid-template-columns: 1fr;
  }
  
  .form_box label {
    padding: 10px 8px 10px 34px;
  }
  
  .form_box input[type="checkbox"], 
  .form_box input[type="radio"] {
    width: 18px;
    height: 18px;
    left: 10px;
  }
}

/* レスポンシブデザイン強化用追加CSS */

/* モバイル用基本設定 */
@media screen and (max-width: 768px) {
  /* フォーム全体の余白調整 */
  .fixed-width.inner {
    padding: 0 10px;
  }
  
  /* ヘッダーテキスト調整 */
  .hero h1 {
    font-size: 20px;
    padding: 15px 10px;
  }
  
  /* 導入文のテキスト調整 */
  .ctext.mb-10.sptext,
  .ctext.mb-30.sptext {
    text-align: left;
    padding: 0 5px;
    font-size: 14px;
  }
  
  /* フォームテーブル調整 */
  .form_box {
    padding: 15px 10px;
  }
  
  .form_box table,
  .form_box tbody {
    width: 100%;
  }
  
  .form_box tr {
    margin-bottom: 15px;
  }
  
  .form_box th {
    font-size: 14px;
    border-radius: 4px 4px 0 0;
  }
  
  .form_box th span {
    margin-right: 5px;
  }
  
  .form_box td {
    border-top: none;
    border-radius: 0 0 4px 4px;
  }
  
  /* 入力フィールド調整 */
  .form_box input,
  .form_box select,
  .form_box textarea {
    font-size: 16px; /* iOSでズームしないサイズ */
    padding: 10px;
  }
  
  /* 機能チェックボックス調整 */
  .function-grid {
    gap: 5px !important;
  }
  
  .function-grid label {
    padding: 8px 5px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 25px;
  }
  
  .function-grid label input[type="checkbox"] {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
  
  /* その他機能入力欄 */
  .other-function-wrapper {
    flex-direction: column;
    padding: 5px;
  }
  
  .other-function-wrapper label {
    width: 100%;
    padding: 8px 5px 8px 25px !important;
  }
  
  .other-function-wrapper input[type="text"] {
    width: 100%;
    margin-left: 0;
    margin-top: 5px;
    box-sizing: border-box;
    min-height: 40px;
  }
  
  /* 送信ボタン */
  #svsend {
    width: 100%;
    max-width: 300px;
    font-size: 16px;
    padding: 12px;
    margin: 0 auto;
    display: block;
  }
  
  /* reCAPTCHA領域の調整 */
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
    margin: 0 auto 15px !important;
  }

  /* スマホ向けテーブル互換性強化 */
  tr, th, td {
    box-sizing: border-box !important;
  }
  
  td > div {
    width: 100% !important;
  }
  
  /* ご希望の連絡方法チェックボックス調整 */
  td label input[type="checkbox"] {
    position: relative;
    vertical-align: middle;
    margin-right: 8px;
  }
  
  /* スマホでのフォーカス時のハイライト調整 */
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4d90fe;
    box-shadow: 0 0 5px rgba(77, 144, 254, 0.5);
  }
}

/* 小型スマートフォン用の調整 */
@media screen and (max-width: 480px) {
  /* 特に小さい画面向けの調整 */
  .form_box th {
    font-size: 13px;
  }
  
  .hero h1 {
    font-size: 18px;
    padding: 12px 5px;
  }
  
  /* 店舗数・台数入力欄 */
  div[style*="display: flex; align-items: center;"] {
    flex-wrap: wrap;
  }
  
  div[style*="display: flex; align-items: center;"] input {
    margin-bottom: 5px;
  }
  
  /* チェックボックス選択肢を縦に並べる */
  .function-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* 検討理由ラジオボタンの間隔調整 */
  td > div > label {
    display: block;
    margin-bottom: 8px;
    position: relative;
    padding-left: 25px;
  }
  
  /* ラジオボタンとチェックボックスの位置修正 */
  input[type="radio"], 
  input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}