/* ------------------------------------------- */
/* ST Advanced Contact Form - Clean Blue Style
/* ------------------------------------------- */
.sacf-form--clean-blue {
  font-family: inherit;
  border: 5px solid #00a0e9;
  padding: 20px;
  background-color: #fff;
}
.sacf-form--clean-blue .sacf-form__row {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.sacf-form--clean-blue .sacf-form__row:last-child {
  border-bottom: none;
}
.sacf-form--clean-blue .sacf-form__label {
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  font-size: 1.25em;
}
.sacf-form--clean-blue .sacf-form__label-tag {
  background-color: #ff3333;
  color: #fff;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 3px;
  margin-right: 10px;
}

/* --- テキスト入力、textarea, select の共通スタイル --- */
.sacf-form--clean-blue .sacf-form__control input[type="text"],
.sacf-form--clean-blue .sacf-form__control input[type="email"],
.sacf-form--clean-blue .sacf-form__control input[type="tel"],
.sacf-form--clean-blue .sacf-form__control input[type="number"],
.sacf-form--clean-blue .sacf-form__control textarea,
.sacf-form--clean-blue .sacf-form__control select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  box-sizing: border-box;
}

/* --- チェックボックスとラジオボタンのスタイル --- */
.sacf-form--clean-blue .sacf-form__control label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer;
  font-weight: normal;
  letter-spacing: -0.05em;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.sacf-form--clean-blue .sacf-form__control input[type="checkbox"],
.sacf-form--clean-blue .sacf-form__control input[type="radio"] {
  display: none;
}
.sacf-form--clean-blue .sacf-form__control label > span {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #00a0e9;
  margin-right: 8px;
  position: relative;
}
.sacf-form--clean-blue .sacf-form__control input[type="radio"] + span {
  border-radius: 50%;
}
.sacf-form--clean-blue .sacf-form__control input[type="checkbox"]:checked + span::before {
  content: "";
  display: block;
  position: absolute;
  top: -4px;
  left: 5px;
  width: 6px;
  height: 12px;
  border-right: 3px solid #00a0e9;
  border-bottom: 3px solid #00a0e9;
  transform: rotate(45deg);
}
.sacf-form--clean-blue .sacf-form__control input[type="radio"]:checked + span::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #00a0e9;
  transform: translate(-50%, -50%);
}

/* --- 「お問い合わせ内容」の3カラムレイアウト --- */
.sacf-form--clean-blue .sacf-form__control--checkbox-group-3col {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  margin-bottom: 15px;
}

.sacf-form--clean-blue .sacf-form__control--checkbox-group-3col label {
  width: 100%; /* スマホでは1列 */
  margin-right: 0;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  box-sizing: border-box;
}

/* 同意チェックボックスにも枠線スタイルを適用 */
.sacf-form--clean-blue .sacf-form__acceptance-label {
  display: inline-flex; /* 中央揃えのために inline-flex に */
  border: 1px solid #ddd;
  padding: 10px 15px; /* 左右のpaddingを少し広めに */
  border-radius: 5px;
  box-sizing: border-box;
}

.sacf-form--clean-blue .sacf-form__note {
  font-size: 12px;
  color: #555;
  margin-top: 8px;
}
.sacf-form--clean-blue .sacf-form__submit {
  text-align: center;
  padding-top: 30px;
}
.sacf-form--clean-blue .sacf-form__submit button {
  background-color: #00a0e9;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px 50px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
}
.sacf-form--clean-blue .sacf-form__submit button:hover {
  opacity: 0.8;
}
.txt-center {
  text-align: center;
}
/* --- 送信後のメッセージのスタイル調整 --- */

.sacf-response-output {
  /* display: none; はJSで制御するため削除 */
  opacity: 0; /* 初期状態は透明 */
  transform: translateY(20px); /* 初期状態は少し下に */
  transition: opacity 0.5s ease, transform 0.5s ease;

  margin: 30px auto 0; /* フォームとの間に余白を取り、中央揃えに */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.6;
  max-width: 700px; /* メッセージの最大幅 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 影を付ける */
}

/* 表示されるときのアニメーション */
.sacf-response-output.is-active {
  opacity: 1; /* 不透明にする */
  transform: translateY(0); /* 元の位置に戻す */
}

/* 成功メッセージのスタイル */
.sacf-response-output.success {
  background: linear-gradient(135deg, #00a0e9, #007bff); /* グラデーション背景 */
  color: #fff;
  border: none;
}

/* エラーメッセージのスタイル */
.sacf-response-output.error {
  background: linear-gradient(135deg, #ff4d4d, #cc0000);
  color: #fff;
  border: none;
}

.sacf-response-output p {
  margin: 0;
}
.sacf-form--toyama-style .sacf-form__row {
  display: flex;
  flex-direction: column;
  padding: 0; /* paddingをリセット */
  border-top: 1px solid #ddd;
}
.sacf-form--toyama-style .sacf-form__row:first-child {
  border-top: none;
}

/* ▼▼▼ このセレクタに枠線を追加 ▼▼▼ */
.sacf-form--toyama-style .sacf-form__label-cell {
  padding: 20px 10px;
  font-weight: bold;
  /* PC表示の際に右側に線が引かれるように、ここでは枠線を指定しない */
}

.sacf-form__control--address {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sacf-form__address-group {
  /* display: flex; は不要に */
  align-items: center;
}
.sacf-form__zip-prefix {
  margin-right: 5px;
  font-weight: bold;
}
/* ▼▼▼ 1. サブラベルのスタイルを追加 ▼▼▼ */
.sacf-form__sub-label {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}
/* --- PC表示用のレイアウト --- */
@media (min-width: 768px) {
  .sacf-form--clean-blue .sacf-form__row {
    display: flex;
    align-items: center;
  }
  .sacf-form--clean-blue .sacf-form__row--textarea {
    align-items: flex-start;
  }
  /* ▼▼▼ このセレクタに枠線を追加 ▼▼▼ */
  .sacf-form--toyama-style .sacf-form__label-cell {
    width: 30%;
    margin-bottom: 0;
    padding: 20px 10px;
    box-sizing: border-box;
    border-right: 1px solid #ddd; /* PC表示での右側の縦線 */
    height: 100%; /* 高さを揃えるため */
    align-self: stretch; /* flexアイテムの高さを親に合わせる */
  }
  .sacf-form--clean-blue .sacf-form__label {
    width: 30%;
    margin-bottom: 0;
  }
  .sacf-form--clean-blue .sacf-form__row--textarea .sacf-form__label {
    padding-top: 12px;
  }
  .sacf-form--clean-blue .sacf-form__control {
    width: 70%;
  }
  .sacf-form--clean-blue .sacf-form__control--checkbox-group-3col label {
    width: calc(32.33% - 7px);
    font-size: 12px;
  }
}
