"/* ラジオボタンを非表示 */
input[type="radio"] {
  display: none;
}

/* ▼▼ 中見出し12 ここから ▼▼ */
:root {
--bg-color: #00a7cb; /* 背景色はここのカラーコードを変更 */
}

h4.description-md-title {
background: var(--bg-color);
box-shadow: 0px 0px 0px 7px var(--bg-color);
color: #fff; /* 文字色はここのカラーコードを変更 */
border: dashed 1px #fff; /* 点線の色はここのカラーコードを変更 */
width: calc(100% - 14px);
margin: 15px 0 0 7px;
font-weight: 600;
padding: 15px 15px 15px 15px;
text-align: center;
}

.col-sm-4, .col-sm-8, .col-sm-12 {
padding: 0;
}
/* ▲▲ 中見出し12 ここまで ▲▲ */
/* デフォルトのラベルスタイル */
label {
  display: inline-block;
  padding: 10px 20px;
  background-color: #eeeeee;
  color: #000;
  border: 1px solid #eeeeee;
  border-radius: 5px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;s
}

/* ホバー時: 濃いグレー */
label:hover {
  background-color: #b6d9e0
}

/* チェックされた場合: 緑 */
label:has(input[type="radio"]:checked) {
  background-color: #00a7cb;
  color: #fff;
  border-color: #00a7cb;
}

.radio input[type=radio] {
display: none;
}

/* ラベルリセット用スタイル */
label.control-label {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* ラジオボタンのレイアウト調整 */
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;

}

/* フォーム関連スタイル */
.col-sm-8 {
  padding-left: 0 !important;
  width: 100%;
}

.form-group {
  display: block;
  margin-bottom: 15px;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.control-label {
  text-align: left;
  display: block;
}

label.control-label {
  width: 100%;
}

.form-bottom {
  background: #ffffff;
}

/* ボタンスタイル */
#submit-button {
  background-color: #00a7cb;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 15px 40px;
  box-shadow: 0 6px 15px rgba(128, 128, 128, 0.3);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
  animation: float 2s infinite ease-in-out;
}

/* ボタンのホバー時 */
#submit-button:hover {
  background-color: #b6d9e0;
  box-shadow: 0 8px 20px rgba(189, 33, 48, 0.2);
  transform: scale(1.1);
}

/* ボタンのクリック時 */
#submit-button:active {
  background-color:#00a7cb;
  transform: scale(0.95);
}

/* ボタンのアニメーション */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* 連番スタイル */
.container {
  counter-reset: label-counter;
}

.control-label::before {
  counter-increment: label-counter;
  content: """" counter(label-counter);
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: #00a7cb;/* ボタンの背景色 */
  color: #FFFFFF;
  border-radius: 50%;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 5px;
  margin-bottom: 8px;
  vertical-align: middle;
}

/* ボーダーを追加 */
.col-sm-8 {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.col-sm-8::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #eeeeee;
}

/* ラベル内スパンを非表示 */
label.control-label span.label {
  display: none;
}

/* 画像スタイル */
.description-image {
  border-radius: 8px; /* 半径を指定 */
  width: 100%;
  object-fit: cover;
}

/* 不要な要素を非表示 */
.form-top {
  visibility: hidden;
  height: 0;
  overflow: hidden;
 padding: 0px;
}

/* 全幅調整 */
.col-sm-12 {
  width: 100%;
  padding-right: 0;
  padding-left: 0;
}

.radio, .checkbox {
    position: relative;
    display: block;
    margin-top: 0px;
    margin-bottom: 0px;
}


.col-sm-8 {
   
    margin-top: 12px;
padding-bottom: 24px;
}


.description-md-title {
    margin: 5px -25px;
 }


/*チェックボックス時必ずつける*/
.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input[type=checkbox]:after, .checkbox input[type=checkbox]:after, .checkbox-inline input[type=checkbox]:after {
    margin-top: 8px;
    margin-right: 5px;
    border: 2px solid #666;
    -webkit-transition: .24s;
    -o-transition: .24s;
    transition: .24s;
}

input[type=checkbox]:checked:before, .checkbox input[type=checkbox]:checked:before, .checkbox-inline input[type=checkbox]:checked:before {
    top: 9px;
    left: 6px;
}
"
.checkbox label.text-break {
    background-color: transparent;
    border: none;
    text-align: left;
    display: block;
}
.checkboxes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.checkboxes label{
    background: transparent;
    text-align: left;
border:none;
}
label.text-break {
    text-align: left;
}

.radios div{
width: 100%
}

.radio label{
display:block;
}