body {
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  margin: 0;
  padding: 0;
}

.form-wrapper {
  max-width: 600px;
  background: white;
  margin: 50px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

label {
  display: block;
  margin-top: 20px;
  color: #34495e;
  font-weight: bold;
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 8px;
  box-sizing: border-box;
  font-size: 16px;
}

.checkbox {
  margin-top: 20px;
  font-weight: normal;
}

button {
  margin-top: 30px;
  width: 100%;
  padding: 15px;
  background: #088424;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #2980b9;
}

.time-select-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.time-select-row select {
  width: 100px;
  padding: 10px;
  font-size: 16px;
}

.time-select-row span {
  font-size: 18px;
  font-weight: bold;
  padding-top: 2px;
}
/*==========================================
              日付ピッカーのスタイル start
==========================================*/
/* 📅 のみ表示し、日付文字は隠す */
#visit-date-picker::-webkit-datetime-edit {
  display: none;
}
#visit-date-picker::-webkit-clear-button,
#visit-date-picker::-webkit-inner-spin-button {
  display: none;
}
#visit-date-picker {
  width: 3em; /* アイコン部分だけ残す */
  cursor: pointer;
}

/*==========================================
            日付ピッカーのスタイル end
==========================================*/

/*==========================================
              性別選択 start
==========================================*/

.gender-group {
  display: flex;
  gap: 30px;
  margin-top: 10px;
}

.gender-option {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 16px;
  user-select: none;
}

.gender-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.gender-checkmark {
  position: absolute;
  top: 2px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid #999;
  border-radius: 50%;
}

.gender-option input:checked ~ .gender-checkmark {
  background-color: #4caf50;
  border-color: #4caf50;
}

.gender-checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.gender-option input:checked ~ .gender-checkmark::after {
  display: block;
}

.gender-option .gender-checkmark::after {
  top: 4px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}
.age-input {
  width: 60px;
}


/*==========================================
              性別選択 end
==========================================*/
.checkbox-container {
  margin: 1.5em 0;
  display: inline-block;
}

/* カスタムチェックボックススタイル */
.custom-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  font-size: 1em;
  padding-left: 2em;
  cursor: pointer;
  color: #333;
  user-select: none;
}

/* デフォルトチェックは非表示 */
.custom-checkbox input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  cursor: pointer;
}

/* チェックボックスの見た目 */
.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 2px solid #888;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* チェック済みスタイル */
.custom-checkbox input:checked + .checkmark {
  background-color: #4caf50;
  border-color: #4caf50;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked + .checkmark::after {
  display: block;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ポップアップ風の説明 */
.popup-message {
  position: relative;
  background-color:#088424;
  color: #fff;
  padding: 0.9em 1.2em;
  margin-top: 0.6em;
  border-radius: 10px;
  font-size: 0.95em;
  line-height: 1.5;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-out;
}

/* 吹き出しの三角形 */
.popup-message::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #f0f8ff transparent;
}

/* フェードイン */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CSS */
.til-logo {
  width: 200px; /* 必要に応じて調整。レスポンシブ対応なら % や clamp() 推奨 */
  max-width: 100%;
}

.til-logo img {
  width: 100%;
  height: auto;
  display: block;
}
  input::placeholder {
    color:#cccccca6; /* 好きな色に変更（例：グレー） */
    opacity: 1;     /* Firefox対策（デフォルトで薄く表示される） */
  }


  




.hero-title {
  margin: 20px auto;
  padding: 15px 0px 0px 0px;
  text-align: center;
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(320deg, #088424, #85acd4);
  border-radius: 20px 20px 0px 0px;
}

.hero-title.blue {
  background: linear-gradient(320deg, #088424, #85acd4);
}

.title-ja {
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #ffffff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  font-family: 'Noto Sans JP', sans-serif;
  position: relative;
  display: inline-block;
  margin: 0 auto;
  padding-bottom: 12px;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #00e676, #00c853);
  -webkit-background-clip: text;
}

.title-ja::after {
  content: "";
  display: block;
  width: 80%;
  height: 4px;
  background: #00e676;
  margin: 10px auto 0;
  animation: underlineAnim 2s ease-in-out infinite;
}

@keyframes underlineAnim {
  0%, 100% { transform: scaleX(1); opacity: 0.8; }
  50% { transform: scaleX(1.2); opacity: 1; }
}

.title-en {
  font-family: 'Orbitron', sans-serif;
  font-size: 1em;
  color: #ccc;
  letter-spacing: 2px;
  margin-top: 10px;
}


.floating-group {
  position: relative;
  margin-bottom: 24px;
  font-family: sans-serif;
}

.floating-group input {
  width: 100%;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  background-color: white;
  box-sizing: border-box;
}

/* 最初の大きなラベル */
.floating-group label.floating-label {
  position: absolute;
  left: 14px;
  top: 25px;
  font-size: 1rem;
  color: #aaa;
  pointer-events: none;
  transition: 0.2s ease all;
  background-color: white;
  padding: 0 4px;
}

/* 入力時またはフォーカス時にラベルを浮かせる */
.floating-group input:focus + label.floating-label,
.floating-group input:not(:placeholder-shown) + label.floating-label {
  top: 7px;
  left: 10px;
  font-size: 0.7rem;
}

/* 上部に通常のラベル（「お名前（必須）」）を表示 */
.floating-group .field-heading {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
}