/* Custom CSS for additional styling */
html {
  scroll-behavior: smooth;
}

/* スクロールアニメーション用の初期状態 */
.scroll-animate {
  transition: all 1s ease-out;
}

.scroll-animate.animate {
  opacity: 1 !important;
  transform: translateY(0) translateX(0) scale(1) !important;
}

/* アコーディオンのアニメーション */
.accordion-content {
  height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: height 0.3s ease, padding 0.3s ease;
}

.accordion-content.open {
  max-height: 500px;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

/* ナビゲーションのアクティブ状態 */
.nav-link.active,
.mobile-nav-link.active {
  color: #0284c7 !important;
  font-weight: bold !important;
}

/* ホバーエフェクト */
.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* 動画のエラーハンドリング 
#hero-video:not([src]) {
  display: none;
}*/

/* レスポンシブ調整 */
@media (max-width: 640px) {
  .text-balance {
    text-wrap: balance;
  }
}

/* グラデーションテキスト対応 */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* カスタムシャドウ */
.shadow-3xl {
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.25);
}

/* フォーカス状態の改善 */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #3fa9f5;
  outline-offset: 2px;
}

/* アニメーション遅延クラス */
[data-delay="200"] {
  animation-delay: 0.2s;
}
[data-delay="300"] {
  animation-delay: 0.3s;
}
[data-delay="400"] {
  animation-delay: 0.4s;
}
[data-delay="500"] {
  animation-delay: 0.5s;
}
[data-delay="600"] {
  animation-delay: 0.6s;
}
[data-delay="800"] {
  animation-delay: 0.8s;
}

/*　入力画面　*/
.container {
  padding: 24px;
}

/*タイトル*/
.page-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #374151;
}

/*説明文*/
.description {
  font-size: 17px;
  margin-bottom: 24px;
  color: #4b5563;
}

/*入力項目テーブル*/
.form-table {
  width: 100%;
  border: 2px solid #9ca3af;
  border-collapse: collapse;
  margin-bottom: 24px;
  background-color: white;
}

.form-table td {
  border: 2px solid #9ca3af;
  padding: 12px;
  vertical-align: middle;
}

.label-cell {
  position: relative;
  background-color: #e6faff;
  width: 400px;
  font-size: 18px;
  font-weight: 500;
  color: #374151;
  border-right: 2px solid #9ca3af;
  padding-right: 40px;
}

/*必須ラベル*/
.required-badge {
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #f97316;
  color: white;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

/*入力欄セル*/
.input-cell {
  background-color: white;
}

/*氏名入力欄*/
.name-inputs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.name-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-group span {
  display: inline-block;
  width: 25px;
  color: #374151;
  text-align: right;
}

/*入力欄*/
.form-input {
  border: 2px solid #d1d5db;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 16px;
  width: 223px;
}

.form-input.wide {
  width: 256px;
}

#address {
	width: 500px;
}

#inquiry {
  width: 100%;
  min-height: 120px;
}

#questions {
  width: 100%;
  min-height: 120px;
}

.form-input:focus {
  outline: none;
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/*チェックボックス*/
.checkbox-section {
  margin-bottom: 32px;
  display: block;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/*.checkbox-item.required {
  align-items: flex-start;
}*/

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  vertical-align: middle;
}

.checkbox-item label {
  font-size: 16px;
  color: #374151;
  cursor: pointer;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item .required-badge {
  position: static;
  transform: none;
  margin-left: 0;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}

.checkbox-job {
  display: flex;
  gap: 40px;
}

.checkbox-job label {
  display: flex;
  align-items: center;
  gap: 4px;
}

/*ボタン*/
.button-container {
  display: flex;
  justify-content: flex-end;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 20px 48px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #3fa9f5;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #0d78d3;
}

/*エラーメッセージ*/
.help-block {
  color: #dc2626;
  font-size: 16px;
  display: block;
}

/* エラー時の入力欄を赤枠 */
.form-input.is-error {
    border: 2px solid red;
    background-color: #ffe6e6;
    border-radius: 4px;
    padding: 4px;
}

/* フォーカス時の見た目を調整 */
.form-input.is-error:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255,0,0,0.5);
}

/* エラー時のチェックボックスとラジオボタンに赤枠 */
.checkbox-item.is-error,
.checkbox-job.is-error,
.radio-experience.is-error,
.radio-information.is-error {
    border: 2px solid red;
    padding: 8px;
    border-radius: 4px;
    background-color: #fff5f5;
}

/*確認画面*/

/*戻るボタン*/
.btn-secondary {
  background-color: #9ca3af;
  color: white;
}

.btn-secondary:hover {
  background-color: #6b7280;
}

/*確認項目テーブル*/
.confirmation-table {
  width: 100%;
  border: 2px solid #9ca3af;
  border-collapse: collapse;
  margin-bottom: 32px;
  background-color: white;
}

.confirmation-table td {
  border: 2px solid #9ca3af;
  padding: 12px;
  vertical-align: middle;
}

.confirmation-table .label-cell {
  background-color: #e6faff;
  width: 300px;
  font-weight: 500;
  border-right: 2px solid #9ca3af;
}

.confirmation-table .value-cell {
  background-color: white;
  color: #1f2937;
}

.button-row {
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
