/* ==========================================================================
   base.css — 北開道アーキテクツ 共通土台（リセット / 正規化 / フォーム状態）
   テーマ固有の色・タイポは monolith.css / blueprint.css で上書きする。
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea {
  font: inherit;
  color: inherit;
}

/* 補助的なアクセシビリティ: 視覚的に隠すがスクリーンリーダーには残す */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   フォーム検証の共通フック（見た目は各テーマで上書き）
   -------------------------------------------------------------------------- */

/* フィールド下に出るエラーメッセージ。JSが .is-visible を付けたら表示 */
.field-error {
  display: none;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.field-error.is-visible {
  display: block;
}

/* 送信後のステータス表示（送信中 / 成功 / 失敗） */
.form-status {
  display: none;
  font-size: 15px;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.form-status.is-visible {
  display: block;
}
