/*
Theme Name: お知らせテーマ
*/

/* この下に通常のcssを書いていく */



/* =========================================================
   Contact Form 7 custom style
   添付デザイン寄せ
========================================================= */
.cf7-custom {
  max-width: 980px;
  margin: 0 auto;
  color: #111;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.cf7-custom *,
.cf7-custom *::before,
.cf7-custom *::after {
  box-sizing: border-box;
}

/* CF7の余計な下余白対策 */
.cf7-custom .wpcf7-form p {
  margin: 0;
}

.cf7-custom .wpcf7-spinner {
  display: block;
  margin: 14px auto 0;
}

/* 行 */
.cf7-row {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  padding: 28px 10px;
  border-top: 1px solid #e5e5e5;
	align-items: center;
}

.cf7-row:last-of-type {
  border-bottom: 1px solid #e5e5e5;
}

/* 左ラベル */
.cf7-label {
  width: 260px;
  flex: 0 0 260px;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: #111;
}

/* 右入力欄全体 */
.cf7-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 14px;
}

/* 必須バッジ */
.cf7-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  background: #ff5a47;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  margin-top: 10px;
}

/* テキスト入力系 */
.cf7-custom .wpcf7-form-control-wrap {
  display: block;
  flex: 1 1 0%;
  min-width: 0;
}

.cf7-custom input[type="text"],
.cf7-custom input[type="email"],
.cf7-custom input[type="tel"],
.cf7-custom input[type="url"],
.cf7-custom input[type="number"],
.cf7-custom textarea,
.cf7-custom select {
  width: 100%;
  appearance: none;
  border: none;
  outline: none;
  border-radius: 6px;
  background: #f3f3f3;
  color: #111;
  font-size: 16px;
  line-height: 1.6;
  padding: 16px 18px;
  box-shadow: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cf7-custom input[type="text"]::placeholder,
.cf7-custom input[type="email"]::placeholder,
.cf7-custom input[type="tel"]::placeholder,
.cf7-custom textarea::placeholder {
  color: #8e8e8e;
}

.cf7-custom input[type="text"]:focus,
.cf7-custom input[type="email"]:focus,
.cf7-custom input[type="tel"]:focus,
.cf7-custom input[type="url"]:focus,
.cf7-custom input[type="number"]:focus,
.cf7-custom textarea:focus,
.cf7-custom select:focus {
  background: #efefef;
  box-shadow: 0 0 0 1px #cfcfcf inset;
}

.cf7-custom textarea {
  min-height: 230px;
  resize: vertical;
}

/* 備考 */
.cf7-note {
  width: 100%;
  margin-top: 6px;
  padding-left: 54px;
  font-size: 14px;
  line-height: 1.8;
  color: #111;
}

/* プライバシー同意 */
.cf7-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.7;
  color: #111;
  margin-top: 2px;
}

.cf7-custom input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0;
  border: 1px solid #8f8f8f;
  border-radius: 2px;
  background: #fff;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
}

.cf7-custom input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
}

.cf7-privacy-link {
  width: 100%;
  margin-top: 10px;
  padding-left: 54px;
  font-size: 15px;
  line-height: 1.8;
}

.cf7-privacy-link a {
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cf7-privacy-link a:hover {
  text-decoration: none;
}

/* 送信ボタン */
.cf7-submit {
  padding: 34px 10px 0;
  text-align: center;
}

.cf7-custom input[type="submit"] {
  appearance: none;
  min-width: 180px;
  height: 48px;
  padding: 0 34px;
  border: none;
  border-radius: 9999px;
  background: #506a9b;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cf7-custom input[type="submit"]:hover {
  opacity: 0.88;
}

.cf7-custom input[type="submit"]:active {
  transform: translateY(1px);
}

/* エラーメッセージ */
.cf7-custom .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #d93025;
}

.cf7-custom .wpcf7 form.invalid .wpcf7-response-output,
.cf7-custom .wpcf7 form.unaccepted .wpcf7-response-output,
.cf7-custom .wpcf7 form.sent .wpcf7-response-output,
.cf7-custom .wpcf7 form.failed .wpcf7-response-output,
.cf7-custom .wpcf7 form.aborted .wpcf7-response-output,
.cf7-custom .wpcf7 form.spam .wpcf7-response-output,
.cf7-custom .wpcf7 form.init .wpcf7-response-output {
  margin: 24px 10px 0;
  padding: 14px 16px;
  border: 1px solid #ddd;
  font-size: 14px;
  line-height: 1.8;
  border-radius: 6px;
  background: #fafafa;
}

/* メール確認用などで横幅を自然に見せる */
.cf7-row--textarea .cf7-field .wpcf7-form-control-wrap {
  flex-basis: 0;
}

/* スマホ */
@media screen and (max-width: 767px) {
  .cf7-custom {
    font-size: 14px;
  }

  .cf7-row {
    display: block;
    padding: 22px 0;
  }

  .cf7-label {
    width: auto;
    padding-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .cf7-field {
    display: block;
  }

  .cf7-badge {
    margin-top: 0;
    margin-bottom: 10px;
  }

  .cf7-custom .wpcf7-form-control-wrap {
    width: 100%;
    display: block;
  }

  .cf7-custom input[type="text"],
  .cf7-custom input[type="email"],
  .cf7-custom input[type="tel"],
  .cf7-custom input[type="url"],
  .cf7-custom input[type="number"],
  .cf7-custom textarea,
  .cf7-custom select {
    font-size: 16px;
    padding: 14px 14px;
  }

  .cf7-custom textarea {
    min-height: 190px;
  }

  .cf7-note,
  .cf7-privacy-link {
    padding-left: 0;
    margin-top: 8px;
    font-size: 13px;
  }

  .cf7-check {
    display: flex;
    align-items: flex-start;
    min-height: auto;
    margin-top: 6px;
  }

  .cf7-custom input[type="checkbox"] {
    margin-top: 4px;
  }

  .cf7-submit {
    padding: 28px 0 0;
  }

  .cf7-custom input[type="submit"] {
    width: 100%;
    max-width: 220px;
    height: 46px;
    font-size: 14px;
  }
}