/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


/*必須項目赤色*/
.contact .req{
	color: #f00;
}

/* お問い合わせフォーム */

.cf7__list {
display: flex;
flex-wrap: wrap;
margin-bottom: 60px;
}

.cf7__list dt:nth-of-type(n + 2),
.cf7__list dd:nth-of-type(n + 2) {
margin-top: 30px;
}

.cf7__list dt {
width: 35%;
padding-top: 15px;
}

.cf7__list dd {
width: 65%;
}

/* 必須・任意 */
.cf7__required,
.cf7__optional {
  margin-right: 15px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}

.cf7__required {
  background: #BE1D1D;
}
.cf7__optional {
  background: #878D8E;
}

/* 入力欄 */
.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd textarea {
width: 100%;
padding: 15px 20px;
background: #F4F4F4;
border: none;
}

/* プレースホルダー */
.cf7__list dd input[type="text"]::placeholder,
.cf7__list dd input[type="tel"]::placeholder,
.cf7__list dd input[type="email"]::placeholder,
.cf7__list dd textarea::placeholder {
color: #a5a5a5;
}

/* チェックボックス・ラジオ共通 */
.cf7__list dd .wpcf7-list-item {
display: block;
margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
margin-top: 18px;
}

.cf7__list dd .wpcf7-list-item label {
cursor: pointer;
}


/* チェックボックス */
input[type="checkbox"] {
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 1px solid #bcbcbc;
  border-radius: 3px;
  background: #fff;
  vertical-align: -4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* チェック時 */
input[type="checkbox"]:checked {
  border-color: #000;
  background: #000;
}

/* チェックマーク */
input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

/* 同意欄 */
.cf7__agreement {
display: block;
width: 100%;
margin-top: 20px;
}

.cf7__agreement label {
display: inline-block;
}

/* 送信ボタン */
.cf7__button {
text-align: center;
padding-left: 0;
}

input[type="submit"] {
width: 260px;
height: 60px;
background: #000;
color: #fff;
border: none;
cursor: pointer;
transition: opacity .6s;
}

input[type="submit"]:hover {
opacity: .6;
}

/* スピナー非表示 */
div.wpcf7 .wpcf7-spinner {
display: none !important;
}

/* ラジオボタン */
input[type="radio"] {
	position: relative;
	width: 18px;
	height: 18px;
	margin-right: 8px;
	border: 1px solid #bcbcbc;
	border-radius: 50%;
	background: #fff;
	vertical-align: -3px;
	cursor: pointer;
	appearance: none;
}

/* 選択時 */
input[type="radio"]:checked::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #0b6c5f; /* サイトカラー */
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

/* スマホ */
@media screen and (max-width: 767px) {

.cf7__list dt {
width: 100%;
margin-bottom: 15px;
padding-top: 0;
}

.cf7__list dd {
width: 100%;
}

.cf7__list dd:nth-of-type(n + 2) {
margin-top: 0;
}

.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
padding-top: 15px;
}

.cf7__list dd input[type="text"],
.cf7__list dd input[type="tel"],
.cf7__list dd input[type="email"],
.cf7__list dd textarea {
font-size: 16px;
}

input[type="submit"] {
width: 180px;
height: 56px;
}
}
