/* =========================================================
   style.css
   Tailwind（CDN）で表現しきれない、細かな独自スタイルのみを記述。
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, sans-serif;
}

/* アンカーリンクが固定ヘッダーの下に隠れないようにする */
section[id],
main [id] {
  scroll-margin-top: 88px;
}

/* スクロールバー（Webkit系） */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #000;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #eab308;
}

/* フォームの必須マーク */
.required-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  background-color: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* 送信ボタンのローディングスピナー */
.btn-spinner {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #000;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: -2px;
}
@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* フェードインアニメーション（IntersectionObserverで .in-view を付与） */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* honeypot（スパム対策の罠フィールド）は非表示だが読み上げ機を考慮 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media print {
  header,
  footer,
  #to-top {
    display: none !important;
  }
}
