/*
Theme Name: canon_tcd109-child
Author: SS Web Design
Description: This is our original theme.
Template: canon_tcd109
Version: 1.1.4
*/




/* --------------------------------
 * ログイン画面
 * -------------------------------- */
/*ロゴ画像を変更*/
#login h1 a, .login h1 a {
	background-image: url(images/login-logo.png);
	background-size: 360px;
	height: 130px;
	width: 360px;
}

/*背景画像を変更*/
body.login {
	background: url(images/bg_login_img.jpg) no-repeat center /cover;
}

/*ログインのボタンを大きくする*/
div#login form#loginform p.submit input#wp-submit {
 	float:none;
 	width:100%;
 	margin-top:3%;
 	height:50px;
}


/*フォーム部分の色を変更*/
body.login div#login form#loginform p.submit input#wp-submit {
	background: #5c0d11;
	border-color: #5c0d11;
}

/*メッセージ横のボーダー色変更*/
.login #login_error, .login .message, .login .success {
    border-left: 4px solid #5c0d11;
}

/*ログインフォームの幅を変更*/
body.login div#login {
   width: 400px;
    background: rgba(255,255,255,0.8);
    margin: 100px auto;
    height: 570px;
    padding: 20px;
}



/*トップへ戻るリンクを非表示にする*/
body.login div#login p#backtoblog {
     display: none;
}

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

/* フォーム全体 */
.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.contact-form-grid .form-col {
  min-width: 0;
}

.contact-form-grid .form-col-1 {
  grid-column: 1 / -1;
}

.contact-form-grid .form-col-2 {
  grid-column: span 1;
}

/* CF7の自動出力ラッパー対策 */
.contact-form-grid .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 入力欄共通 */
.contact-form-grid .cf-control {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9d9d9;
  background: #fff;
  border-radius: 0;
  font-size: 16px;
  color: #222;
  box-sizing: border-box;
  box-shadow: none;
  appearance: none;
}

/* placeholder */
.contact-form-grid .cf-control::placeholder {
  color: #888;
}

/* textarea */
.contact-form-grid .cf-textarea {
  height: 150px;
  min-height: 150px;
  padding: 14px 16px;
  line-height: 1.6;
  resize: vertical;
}

/* ラジオ全体 */
.contact-form-grid .cf-radio-wrap {
  border: 1px solid #d9d9d9;
  background: #fff;
  padding: 14px 16px 6px;
}

.contact-form-grid .cf-radio-title {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}

/* ラジオの並び */
.contact-form-grid .cf-radio-wrap .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.contact-form-grid .cf-radio-wrap .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.contact-form-grid .cf-radio-wrap .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  cursor: pointer;
}

.contact-form-grid .cf-radio-wrap input[type="radio"] {
  margin: 0;
  transform: translateY(-1px);
}

.contact-form-grid .cf-radio-wrap .wpcf7-list-item-label {
  font-size: 14px;
  line-height: 1.4;
  color: #222;
}

/* 同意エリア */
.contact-form-grid .cf-agree-wrap {
  display: grid;
  gap: 10px;
}

/* 1項目 */
.contact-form-grid .cf-agree-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #d9d9d9;
  background: #fff;
  padding: 12px 14px;
  box-sizing: border-box;
}

/* acceptanceの自動出力を整える */
.contact-form-grid .cf-agree-item .wpcf7-form-control-wrap {
  display: inline-flex;
  align-items: flex-start;
  width: auto;
  flex: 0 0 auto;
  margin-top: 2px;
}

.contact-form-grid .cf-agree-item .wpcf7-form-control {
  display: inline-flex;
  margin: 0;
}

.contact-form-grid .cf-agree-item .wpcf7-list-item {
  margin: 0;
}

.contact-form-grid .cf-agree-item label {
  margin: 0;
}

.contact-form-grid .cf-agree-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  vertical-align: top;
}

/* 同意文 */
.contact-form-grid .cf-agree-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #222;
}

.contact-form-grid .cf-agree-text span {
  font-weight: 500;
}

.contact-form-grid .cf-agree-text .privacy {
  display: inline-block;
  margin-top: 4px;
  color: #222;
  text-decoration: underline;
}

/* submit */
.contact-form-grid .cf-submit-wrap {
  text-align: center;
  margin-top: 4px;
}

.contact-form-grid .cf-submit {
  display: inline-block;
  min-width: 220px;
  height: 54px;
  padding: 0 24px;
  border: none;
  background: #06153a;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 54px;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
}

/* エラーメッセージ */
.contact-form-grid .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* スマホ */
@media (max-width: 767px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-form-grid .form-col-2 {
    grid-column: 1 / -1;
  }

  .contact-form-grid .cf-control {
    height: 48px;
    font-size: 15px;
  }

  .contact-form-grid .cf-textarea {
    height: 130px;
    min-height: 130px;
  }

  .contact-form-grid .cf-radio-wrap .wpcf7-form-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-form-grid .cf-submit {
    width: 100%;
    min-width: 0;
  }
}

.contact-form-grid .cf-submit {
    margin: 0 auto;
    display: block;
}


/* -----------------------------
   同意欄のズレ修正
----------------------------- */

/* CF7が自動で入れるpタグの余白を消す */
.contact-form-grid .cf-agree-item p {
  margin: 0;
  padding: 0;
}

/* 同意欄全体 */
.contact-form-grid .cf-agree-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #d9d9d9;
  background: #fff;
  padding: 14px 16px;
  box-sizing: border-box;
}

/* チェックボックス側 */
.contact-form-grid .cf-agree-item > p:first-child,
.contact-form-grid .cf-agree-item .wpcf7-form-control-wrap {
  flex: 0 0 26px;
  width: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2px;
}

/* チェックボックス本体 */
.contact-form-grid .cf-agree-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  display: block;
}

/* 文章側 */
.contact-form-grid .cf-agree-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #222;
}

/* 文章側の中のpも詰める */
.contact-form-grid .cf-agree-text p {
  margin: 0;
  padding: 0;
}

/* 1行目と2行目の間だけ少し空ける */
.contact-form-grid .cf-agree-text p + p {
  margin-top: 6px;
}

/* リンク */
.contact-form-grid .cf-agree-text .privacy {
  display: inline-block;
  margin-top: 2px;
  color: #222;
  text-decoration: underline;
}

.contact-form-grid .cf-agree-item > p:first-child {
  position: relative;
  top: 6px;
}

/* --------------------------------
 * コンタクトフォーム　ここまで
 * -------------------------------- */