/* 共通ボタンサイズ */
.btn-small {
    font-size: 0.75rem;
    padding: 5px 10px;
    margin-bottom: 0;
}

/* 画像ラッパーとテキストオーバーレイ */
.img-wrapper {
    position: relative;
    display: inline-block;
}
.img-wrapper img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}
.img-wrapper .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 10;
}
/*普段非表示にしているテキストに対するスタイル*/
.hidden_text{
  display: none; 
  position: fixed; /* ← ここを absolute から fixed に変更！ */
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7); 
  color: #ffffff; 
  font-size: 1.5rem; 
  font-weight: bold; 
  padding: 20px 30px; 
  border-radius: 10px; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
  text-align: center; 
  z-index: 1100;
  animation: fadeInOut 1.5s ease-in-out infinite; /* アニメーションを追加 */
  width: 60%;
  word-wrap: break-word; /* 長い単語を改行して表示 */
}


/* 固定ボタン */
.fixed-save-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.fixed-save-button button {
    padding: 10px 20px;
    font-size: 16px;
}

/* ボックス系 */
.setting_box {
    background-color: white;
}
.empty-field {
    background-color: rgb(201, 201, 201);
    border: 1px dashed red;
}

/* 入力・リスト系 */
.choice-label {
    width: 70%;
}


/* テーブル */
th, td {
    white-space: nowrap;
}

/* スクロールリスト */
.scrollable-list {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 1rem;
    margin-bottom: 0;
}

.form-type-select {
    width: 50%;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(/static/images/css_images/arrow.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
}

.fixed-save-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.fixed-save-button button {
    padding: 10px 20px;
    font-size: 16px;
}

.setting_box {
    background-color: white;
}
.empty-field {
    background-color: rgb(201, 201, 201);
    border: 1px dashed red;
}

.overlay-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #333;
  transition: opacity 0.3s ease;
}

.localmap-form-container {
  display: flex;
  gap: 1rem;               /* フォーム間の余白 */
  overflow-x: auto;        /* 横スクロール許可 */
  padding-bottom: 0.5rem;  /* スクロールバーと内容の間に余裕 */
}

.localmap-form {
  flex: 0 0 auto;          /* 幅を固定して横並びにする */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  min-width: 220px;        /* カードっぽくするため最低幅を指定 */
  background: #fafafa;
}

.area-form-container {
  display: flex;
  gap: 1rem;               /* フォーム間の余白 */
  overflow-x: auto;        /* 横スクロール許可 */
  padding-bottom: 0.5rem;  /* スクロールバーと内容の間に余裕 */
}

.area-form {
  flex: 0 0 auto;          /* 幅を固定して横並びにする */
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  min-width: 220px;        /* カードっぽくするため最低幅を指定 */
  background: #fafafa;
}