.img-wrapper p.label-tl,
.mold p.label-tl,
.img-wrapper p.label-tr {
  font-size: 1.2rem;
  line-height: 1.5rem;
  max-height: 1.5rem;
}

.img-wrapper p.label-bl,
.mold p.label-bl {
  font-size: 1.2rem;
  line-height: 1.5rem;
  max-height: 1.5rem;
}

.ad-price {
  font-size: 1.4rem!important;
  line-height: 1.7rem!important;
  max-height: 1.7rem!important;
}

/* --- ナビゲーションバー全体のスタイル --- */
.side-nav {
  position: fixed; /* ★画面に固定 */
  top: 90px;
  right: 20px;     /* ★画面の右端から20pxの位置に配置 */
  background-color: rgba(255, 255, 255, 0.9); /* 少し透明な白 */
  padding: 0 5px 0;
  border-radius: 8px; /* 角を丸くする */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 影を付けて立体感を出す */
  z-index: 10; /* 他の要素より手前に表示 */
}

/* --- ナビゲーションのリストのスタイル --- */
.side-nav ul {
  list-style: none; /* リストの黒点を非表示 */
  padding: 10px 15px;
  margin: 0;
  text-align: right; /* テキストを右揃えに */
  max-height: calc(100vh - 120px); /* (画面の高さ) - (上下の余白など) */
  overflow-y: auto;
}

.side-nav li {
  margin: 15px 0; /* 各リンクの上下に余白を設ける */
}

/* --- ナビゲーションのリンクのスタイル --- */
.side-nav a {
  /* text-decoration: none; 下線を非表示 */
  /* color: #555; 文字色 */
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease; /* 色が変わるアニメーション */
  position: relative;
  /* padding-right: 20px; 文字と右端のドットの間に余白 */
}

.side-nav ul::-webkit-scrollbar {
  width: 6px;
}
.side-nav ul::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}

/* --- マウスが乗った時のリンクのスタイル --- */
/* .side-nav a:hover {
  color: #007bff; 文字色を青に変更
} */

/* --- リンクの右側にドット（装飾）を追加 --- */
/* .side-nav a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.3s ease;
} */

/* --- マウスが乗った時のドットのスタイル --- */
.side-nav a:hover::after {
  background-color: #007bff; /* ドットの色を青に変更 */
}

input[type="number"] {
  width: 5em;
}

input[type="text"] {
  width: 10em;
}

.floating-label-group {
  position: relative;
}

.form-group {
  display: inline-block;
}

/* 通常時のラベルの位置（inputの内側に配置） */
.floating-label-group label {
  position: absolute;
  top: 0.375rem; /* form-controlのpaddingに合わせる */
  left: 0.75rem;
  color: #6c757d; /* Bootstrapのtext-mutedカラー */
  transition: all 0.2s ease-in-out;
  pointer-events: none; /* ラベルのクリックを無効化し、下のinputを操作可能に */
  background-color: #fff;
  padding: 0 0.25rem;
}

/*
 * inputにフォーカスが当たった時、または値が入力されてプレースホルダーが非表示の時
 */
.floating-label-group .form-control:focus + label,
.floating-label-group .form-control:not(:placeholder-shown) + label {
  top: -0.7rem; /* inputの上枠線に重なるように移動 */
  left: 0.5rem;
  font-size: 0.8rem; /* 少し小さくする */
  /* color: #007bff; Bootstrapのprimaryカラー */
}