/* レイアウト全体の調整 */
#fbuilder {
  max-width: 800px;
  margin: 0 auto;
  padding: 1em;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
}

/* 入力フォームのスタイル */
#fbuilder input[type="text"],
#fbuilder input[type="email"],
#fbuilder textarea,
#fbuilder select {
  width: 100%;
  padding: 1em;
  font-size: 1em;
  border: 2px solid #1e73be;
  border-radius: 6px;
  margin-bottom: 1.2em;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#fbuilder input:focus,
#fbuilder textarea:focus,
#fbuilder select:focus {
  border-color: #155d99;
  box-shadow: 0 0 5px rgba(30, 115, 190, 0.3);
  outline: none;
}

/* 送信ボタン */
#fbuilder input[type="submit"],
#fbuilder button[type="submit"] {
  background-color: #1e73be;
  color: white;
  padding: 0.9em 2em;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#fbuilder input[type="submit"]:hover,
#fbuilder button[type="submit"]:hover {
  background-color: #155d99;
  transform: translateY(-2px);
}

/* カレンダー部分 */
#fbuilder .ui-datepicker-inline {
  max-width: 100% !important;
  width: 100%;
  margin-bottom: 1em;
}

/* 選択された日付を目立たせる */
#fbuilder .ui-datepicker td a.ui-state-active {
  background: #1e73be !important;
  color: #fff !important;
  font-weight: bold;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, 0.3);
  transition: all 0.3s ease;
}

#fbuilder .ui-datepicker td a:hover {
  background: #e5f1fb !important;
  border-radius: 50%;
  color: #1e73be !important;
}

/* 時間選択（スロット） */
#fbuilder .slots {
  background: #eef6fd;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 1em;
  border-radius: 8px;
}

#fbuilder .slots div {
  border: none;
}

#fbuilder .slots div a {
  background: #1e73be;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 8px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

#fbuilder .slots div a:hover {
  background: #155d99;
}

/* サービス選択や時間枠 */
#fbuilder .ahb_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 1.2em 0;
}

#fbuilder .ahb_list div {
  padding: 10px 16px;
  background: #f0f0f1;
  border-radius: 6px;
  font-size: 0.95em;
}

#fbuilder .ahb_list a {
  background: #3bb880;
  padding: 10px 16px;
  color: #ffffff;
  display: inline-block;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

#fbuilder .ahb_list a:hover {
  background: #32a06e;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  #fbuilder {
    padding: 0.5em;
  }

  #fbuilder input[type="submit"],
  #fbuilder button[type="submit"] {
    width: 100%;
    max-width: 300px;
    margin: 1em auto;
    display: block;
  }

  /* スロットは横並びを維持 */
  #fbuilder .slots {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  #fbuilder .slots div a {
    width: auto;
    padding: 0.5em 1em;
    text-align: center;
  }

  /* ahb_list（サービス選択）は縦並び */
  #fbuilder .ahb_list {
    flex-direction: column;
    align-items: stretch;
  }

  #fbuilder .ahb_list a {
    width: 100%;
    text-align: center;
  }
}


/* スロットが消えないように */
#fbuilder .slots div a[style*="display: none"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 選択中のスロットを目立たせる */
#fbuilder .slots div a.selected {
  background-color: #f4a460 !important;
  color: #fff !important;
  border: 2px solid #d67a00;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}