


.grid_trial {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 24px;
}
.grid_trial_form {
    grid-column: span 6 / span 6;
}

.grid_trial_time {
    grid-column: span 6 / span 6;
    grid-column-start: 7;
}

.grid_trial_bt {
    grid-column: span 12 / span 12;
    grid-row-start: 2;
}

@media screen and (max-width: 640px){
.grid_trial {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 16px;
}
.grid_trial_form {
    grid-column: span 12 / span 12;
}

.grid_trial_time {
    grid-column: span 12 / span 12;
    grid-column-start: 1;
    grid-row-start: 3;
}

.grid_trial_bt {
    grid-column: span 12 / span 12;
    grid-column-start: 1;
    grid-row-start: 2;
}
}



ul.bt_contact_oubo{
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
}
ul.bt_contact_oubo li {
	display: inline-block;
	padding: 0;
	margin: 0;
	margin-left: 8px;
	text-decoration: none;
max-width: 230px;
}
ul.bt_contact_oubo li a {
	display: block;
	padding: 8px 4em;
	margin: 0;
	background-color: #36a1c1;
	color: #FFF;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
}
@media screen and (max-width: 640px){
ul.bt_contact_oubo li a {
	padding: 8px 3em;
}
}
ul.bt_contact_oubo li:first-child {
	margin-left: 0;
}



ul.bt_contact_oubo li a:hover img{
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	opacity: 0.7;
}

/************************************
** フォーム
************************************/


.form_box {
  display: grid;
  gap: 16px;
  grid-template-columns: [label] 16em [input] 1fr;
}

.form_box > .form_name {
  grid-column: label;
  min-height: 2.5em;
/*  place-content: center;*/
}

.form_box > .form_cont {
  grid-column: input;
  min-height: 2.5em;
  place-content: center;
}

.form_box > button[type="submit"] {
  grid-column: 1 / -1;
}


@media screen and (max-width: 640px){
.form_box {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.form_box > .form_name {
  grid-column: 1 / -1;
  border-bottom: 1px dotted #CCC;
  padding: 0;
  padding-bottom: 8px;
  min-height: inherit;
}

.form_box > .form_cont {
  grid-column: 1 / -1;
  min-height: inherit;
}
}


.input-mini {
  width: 25% !important;
}
.input-small {
  width: 30% !important;
  display: inline-block;
}
.input-medium {
  width: 50% !important;
}
.input-large {
  width: 100% !important;
}
.input-xlarge {
  width: 100% !important;
}
.input-xxlarge {
  width: 100% !important;
}

@media screen and (max-width: 640px) {
.input-mini {
  width: 
  30%!important;
}
  .input-small {
    width: 50% !important;
  }
  .input-medium {
    width: 100% !important;
  }
  .input-large {
    width: 100% !important;
  }
  .input-xlarge {
    width: 100% !important;
  }
}

.hissu {
  border-radius: 0;
  line-height: 100%;
  padding: 3px 5px;
  margin-left: 8px;
  margin-top: -0.3em;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  color: #fff !important;
  background-color: #c00;
}
@media only screen and (max-width: 640px) {
.hissu {
  padding: 2.5px 5px;
  margin-left: 4px;
  margin-bottom: 0;
}
}
.wpcf7 {
margin-bottom: 0;
padding-bottom: 0;
}

div.wpcf7 .ajax-loader {
    display: none !important;
}
div.wpcf7 .wpcf7-spinner {
    display: none !important;
}


select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"] {
box-sizing: border-box;
  display: inline-block;
  margin: 4px 0;
  width: auto;
  min-width: inherit;
  border-radius: 0;
}
select {
padding: 8px;
}
textarea {
  display: block;
}
.box_mitsumorisousa input[type="text"],
.box_mitsumorisousa input[type="email"],
.box_mitsumorisousa input[type="tel"] {
  display: block;
  width: 100%;
}

input[type="radio"],input[type="checkbox"] {
  position: relative;
  top: 0.px;
  height: auto;
  margin-right: 2px; /*追加*/
  left: 0;
  z-index: 2;
  cursor: pointer;  /* クリック可能にする */
}
input[type="radio"] {
  top: -0.0em;
  left: 0;
  display: inline-block;
  vertical-align: middle;
}


@media only screen and (max-width: 1024px) {
input[type="radio"],input[type="checkbox"] {
  margin-right: 0; /*追加*/
}
input[type="checkbox"] {
  top: -0.0em;
  height: 1.0em;
  width: 1.0em;
  vertical-align: middle;   /* テキストとの垂直位置を合わせる */
  z-index: 2;
  cursor: pointer;  /* クリック可能にする */
  box-sizing: border-box;   /* paddingとborderがボックスサイズに含まれるようにする */
}
}

select, input {
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #FFF;
}
textarea {
  height: auto;
  min-height: 3.5em;
}


span.wpcf7-list-item {
display: block;
}

.btn {
  display: inline-block !important;
  width: auto !important;
	padding: 0.5em 5.0em !important;
  margin: 4px 0;
  margin-bottom: 0;
  color: #333;
  height: auto;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: #ccc;
	border-radius:4px;
}
.btn:hover {
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  opacity: 1.0 !important;
}
.btn-primary {
	color:#fff !important;
	text-shadow:0 -1px 0 rgba(0,0,0,0.25);
	background-color:#093;
	background-image:-moz-linear-gradient(top,#1B4,#093);
	background-image:-webkit-gradient(linear,0 0,0 100%,from(#1B4),to(#093));
	background-image:-webkit-linear-gradient(top,#1B4,#093);
	background-image:-o-linear-gradient(top,#1B4,#093);
	background-image:linear-gradient(to bottom,#1B4,#093);
	background-repeat:repeat-x;border-color:#1B4 #093 #1B4;
	border-color:rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#11BB44',endColorstr='#009933',GradientType=0);filter:progid:DXImageTransform.Microsoft.gradient(enabled=false);
	border-radius:4px;
	
}

 


@media only screen and (max-width: 640px) {
  .btn {
    display: block !important;
    margin: 4px auto !important;
  }
}


/* ================================
   iPhone入力時のズレ修正CSS
   既存のCSSに追加してください
================================ */

/* 1. iPhoneの自動ズームを防止（最重要） */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    font-size: 16px !important; /* 16px以上で自動ズームを防止 */
}

/* 2. ビューポート設定（HTMLのheadタグ内に追加） */
/* 
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
を以下に変更：
<meta name="viewport" content="width=device-width, initial-scale=1.0">
*/



/* 4. フォーム入力時のスクロール改善 */
@media screen and (max-width: 834px) {
    input:focus,
    select:focus,
    textarea:focus {
        /* フォーカス時の挙動を改善 */
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    /* テーブルセルの高さを最適化 */
    table.form_table td {
        padding: 12px 0; /* 16pxから12pxに調整 */
        min-height: auto;
    }
}

/* 5. selectボックスの高さを明示的に指定 */
@media screen and (max-width: 834px) {
    select.wpcf7-form-control {
        height: 44px; /* タップしやすい高さ */
        padding: 8px;
        font-size: 16px !important;
    }
}

/* 6. textareaの調整 */
@media screen and (max-width: 834px) {
    textarea.wpcf7-form-control {
        min-height: 120px;
        font-size: 16px !important;
        padding: 8px;
        resize: vertical; /* 縦方向のみリサイズ可能 */
    }
}

/* 7. 送信ボタンがキーボードで隠れないように */
@media screen and (max-width: 834px) {
    .btn.btn-primary {
        margin-top: 20px;
        margin-bottom: 30px; /* 下部に余白を追加 */
    }
}

/* 8. フォーカス時のスクロール位置を固定 */
@media screen and (max-width: 834px) {
    .wpcf7-form {
        position: relative;
        padding-bottom: 50px; /* フォーム下部に余白 */
    }
}
.wpcf7-list-item {
    margin: 0 0 0 0;
}
/* 9. チェックボックスのタップ領域を拡大 */
@media screen and (max-width: 834px) {
    .wpcf7-list-item {
        margin-bottom: 8px;
        padding:　 0;
    }
    
    .wpcf7-list-item label {
        display: inline-block;
        padding: 0　0;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .wpcf7-list-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        vertical-align: middle;
    }
}

/* 10. iOS Safariの入力フィールド装飾を調整 */
@media screen and (max-width: 834px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 4px;
        border: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
    }
    
    /* selectボックスに矢印を追加 */
    select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
        padding-right: 32px !important;
    }
}

/* 11. プレースホルダーのフォントサイズも統一 */
@media screen and (max-width: 834px) {
    input::placeholder,
    textarea::placeholder {
        font-size: 16px !important;
        color: #999;
    }
}

/* 12. フォーム全体のパディング調整 */
@media screen and (max-width: 834px) {
    .box_gray {
        padding: 12px 16px; /* 16pxから12pxに調整 */
    }
}

/* 13. iOS SafariのオートコンプリートUIの調整 */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
}

/* 14. キーボード表示時のビューポート高さ対応 */
@media screen and (max-width: 834px) {
    @supports (-webkit-touch-callout: none) {
        /* iOS Safari専用 */
        body {
            min-height: -webkit-fill-available;
        }
    }
}

