/* =========================
   ベース
========================= */

/* 全体のフォント */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

/* 見出し */
h1, h2, h3, h4, h5 {
    color: #4641A4;
}

/* Bootstrap .text-primary をブランドカラーに統一 */
.text-primary {
    color: #4641A4 !important;
}

/* =========================
   カード & ドラッグ＆ドロップ
========================= */

/* カードデザイン：白 × 影でクリーンに */
.card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

/* ドラッグ＆ドロップエリア */
#drop-area {
    border: 2px dashed #6c757d;
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    background: #fafafa;
    transition: background 0.2s, border-color 0.2s;
}

#drop-area.dragover {
    background: #e9f7ff;
    border-color: #4641A4;
}

#drop-area p {
    color: #4641A4;
    font-weight: bold;
}

/* =========================
   ナビゲーション
========================= */

/* ナビバーのブランド名（Opt Archi） */
.navbar-brand {
    color: #4641A4 !important;
}

/* ナビバー内のリンク（Home, サブページ など） */
.nav-link {
    color: #4641A4 !important;
}

.nav-link:hover {
    color: #2F2B7A !important;  /* 少し濃い色 */
}

/* =========================
   ボタン
========================= */

/* 角丸ボタン（ピル型） */
.btn-primary,
.btn-outline-primary {
    border-radius: 9999px;
}

/* 塗りつぶしボタン */
.btn-primary {
    background-color: #4641A4 !important;
    border-color: #4641A4 !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #2F2B7A !important;
    border-color: #2F2B7A !important;
}

/* ふちだけ色付きボタン */
.btn-outline-primary {
    border-color: #4641A4 !important;
    color: #4641A4 !important;
}

.btn-outline-primary:hover {
    background-color: #4641A4 !important;
    color: #ffffff !important;
}

/* =========================
   入力系
========================= */

/* スライダー */
input[type="range"] {
    accent-color: #4641A4;
}

/* ファイル選択ボタンを常時表示 */
input[type="file"] {
    display: inline-block;
    opacity: 1 !important;
    position: relative !important;
    cursor: pointer;
    color: #4641A4 !important;
}

/* =========================
   2段組のコンテナ
========================= */
/* 2段組のコンテナ */
.checkgrid-2col{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

/* 各列の中のセクションを縦に積む */
.checkgrid-2col .col{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* セクション（カテゴリ名＋チェック群） */
.rowitem{
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 24px;
  align-items: start;
}

.cat{
  font-weight: 700;
  color: #111;
  padding-top: 4px;
}

.items{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* チェック1行 */
.item{
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
}

.form-check-input{
  width: 1.15rem;
  height: 1.15rem;
}

/* スマホでは1列に戻す */
@media (max-width: 992px){
  .checkgrid-2col{
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================
   検索条件（DB検索画面専用）
========================= */

/* PHC / CPRC ブロック内 */
/* 条件1行（ラベル + 内容） */
.cond-row {
  display: grid;
  grid-template-columns: 1fr 4fr;  /* ← 杭径・MNQ用 */
  gap: 24px;
  margin-top: .75rem;
  align-items: start;
}

/* =========================
   材種条件ブロック専用（横3列）
========================= */
.cond-block > .cond-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* 1条件（強度・杭種別・壁厚） */
.cond-box {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

/* 条件名 */
.cond-title {
  font-weight: 700;
  color: #111;
  white-space: nowrap;
}

/* 選択肢（横並び） */
.cond-items {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

.cond-items label {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}

/* レスポンシブ */
@media (max-width: 992px){
  .cond-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

#pileSlider {
  height: 8px;
  margin-top: 8px;
  width: 100%;
}

/* =========================
   noUiSlider 強制上書き（最終版）
========================= */

/* バー全体 */
.noUi-target {
  background: #e5e7eb !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 999px;
}

/* 選択中のバー */
.noUi-connect {
  background: #4641A4 !important;
}

/* 横スライダー高さ */
.noUi-horizontal {
  height: 6px !important;
}

/* ハンドル本体 */
.noUi-horizontal .noUi-handle {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #4641A4 !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.25) !important;

  /* 位置調整（ここが重要） */
  top: -5px !important;                 /* ← バー中央に来る値 */
  transform: translateX(-50%) !important;

  /* ✋を出さない */
  cursor: pointer !important;
}

/* 左右端のズレ補正（ハンドル半径 = 8px） */
.noUi-horizontal .noUi-origin {
  transform: translateX(8px);
}

/* noUiSlider特有の縦線を完全に消す */
.noUi-handle::before,
.noUi-handle::after {
  display: none !important;
  content: none !important;
}

/* フォーカス枠も消す */
.noUi-handle:focus {
  outline: none !important;
}

/* 杭径だけ横1行で中央揃え */
.pile-row {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* 杭径スライダー幅制御 */
.slider-wrap {
  max-width: 33%;
  min-width: 240px;
}
