@charset "UTF-8";

/*** ヘッダー部 ***/
.navbar-dark .navbar-toggler-icon{
  /* 三本線 */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(128, 128, 128, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 初期状態のロゴサイズ */
.navbar a img {
    width: 110px !important;
    height: auto !important;
}

/* スマホやモニター幅が小さい場合のスタイル */
@media (max-width: 768px) {
    .navbar a img {
        width: 110px !important; /* 75%に縮小 */
        height: auto !important; /* 高さを自動調整 */
    }
}


/*** メインエリア ***/
.main-area{
	margin-top:80px;
}

.main-area-50{
	margin-top:50px;
}

.main-area-160{
	margin-top:160px;
}

.main-row{
	margin-top:40px;
}


/*type="number"の矢印非表示*/
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance:textfield;
}


.badges-required{
	color: #FFFFFF;
	background-color: #DC3545;
	padding: 1px 3px;
	font-size: 11px;
	border-radius: 3px;
}




input[type="file"] {
  margin: 2px;
  padding: 5px;
  font-size: 16px;
}


/*** フッター部 ***/
.footer{
	margin-bottom: 0px;
	padding: 30px 0 30px 0;
}


/*numberの矢印を消す*/
.no-spin::-webkit-inner-spin-button,
.no-spin::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    -moz-appearance:textfield !important;
}



/* 通常のボタンスタイル */
.btn-original {
  color: #fff; /* テキストの色を白に設定 */
  background-color: #219393; /* 通常時の背景色 */
  border: 1px solid #219393; /* 通常時の枠線色 */
}

.btn-original:hover {
  color: #fff; /* マウスオーバー時のテキスト色を白に保持 */
  background-color: #90C9CA; /* マウスオーバー時の背景色 */
  border-color: #90C9CA; /* マウスオーバー時の枠線色 */
}

/* アウトラインスタイルのボタン */
.btn-outline-original {
  color: #219393; /* 通常時のテキスト色 */
  background-color: transparent; /* 通常時の背景色を透明に設定 */
  border: 1px solid #219393; /* 通常時の枠線色 */
}

.btn-outline-original:hover {
  color: #90C9CA; /* マウスオーバー時のテキスト色 */
  background-color: transparent; /* マウスオーバー時も背景色を透明に保持 */
  border-color: #90C9CA; /* マウスオーバー時の枠線色 */
}


.badge.bg-original {
    background-color: #219393; /* 背景色 */
    color: #FFFFFF;           /* テキスト色 */
}






.btn-xs {
  font-size: 11px;
  padding: 2px 5px;
}


/* badge */
.badge-outline-danger {
    color: #dc3545; /* 赤色のテキスト */
    background-color: transparent; /* 透明な背景 */
    border: 1px solid #dc3545; /* 赤色の境界線 */
    padding: 0.25em 0.4em; /* 上下左右のパディング */
    line-height: 1; /* 行の高さ */
    vertical-align: middle; /* 垂直方向の配置 */
}

.badge-outline-primary{
    color: #007bff; /* 赤色のテキスト */
    background-color: transparent; /* 透明な背景 */
    border: 1px solid #007bff; /* 赤色の境界線 */
    padding: 0.25em 0.4em; /* 上下左右のパディング */
    line-height: 1; /* 行の高さ */
    vertical-align: middle; /* 垂直方向の配置 */
}


.btn-disabled {
	pointer-events: none;
	opacity: 0.65;
}


/* 最大時（デフォルト）は5列 */
.custom-col {
  flex: 0 0 20%; /* 5列分の幅 */
  max-width: 20%;
}

/* Large devices (窓幅 ≥ 992px) から (窓幅 ≥ 1200px) へ変更 */
@media (max-width: 1199.98px) { 
  .custom-col {
    flex: 0 0 25%; /* 4列分の幅 */
    max-width: 25%;
  }
}

/* Medium devices (窓幅 ≥ 768px かつ < 992px) から (窓幅 ≥ 992px かつ < 1200px) へ変更 */
@media (max-width: 991.98px) { 
  .custom-col {
    flex: 0 0 33.333%; /* 3列分の幅 */
    max-width: 33.333%;
  }
}

/* Small devices (窓幅 < 768px) から (窓幅 ≥ 768px かつ < 992px) へ変更 */
@media (max-width: 767.98px) { 
  .custom-col {
    flex: 0 0 50%; /* 2列分の幅 */
    max-width: 50%;
  }
}
/* Extra small devices (窓幅 < 576px) の場合も2列に固定 */
@media (max-width: 575.98px) { 
  .custom-col {
    flex: 0 0 50%; /* 常に2列分の幅 */
    max-width: 50%;
  }
}
/* 最大時（デフォルト）は5列 */



/*商品一覧時の画像処理*/
.img-wrapper, .card-body {
    transition: transform 0.3s ease, margin-top 0.3s ease;
}

.img-wrapper {
    height: 150px; /* 固定の高さ */
    width: 100%; /* 親要素の幅に合わせる */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 枠外の画像部分を隠す */
    position: relative; /* バッジを重ねるため */
}

.img-wrapper img {
    max-width: 90%; /* 横幅は親要素に合わせる */
    max-height: 90%; /* 高さを親要素にフィット */
    object-fit: contain; /* 画像が枠内に収まるように調整 */
    object-position: center; /* 画像を中央に配置 */
}


/* 商品名と画像の間の余白を調整 */
.card-body {
    padding: 0px 10px; /* デフォルトよりも小さな余白に調整 */
}

/* タイトルの余白を調整 */
.card-title {
    margin-bottom: 5px; /* ここで画像と商品名の間の余白を調整 */
    font-size: 1rem; /* フォントサイズも調整可能 */
}

/* テキスト（価格や重量）の余白を調整 */
.card-text {
    margin-bottom: 5px; /* デフォルトは大きいため、調整 */
}


/* 画像の左下にバッジを配置するためのCSS */
/* デフォルトのバッジスタイル */
.badge-overlay {
  position: absolute;
  bottom: 25px;
  left: 8px;
  color: white;
  padding: 2px 8px;
  font-size: 0.8rem;
  font-weight: bold;
}

/* 青色のバッジ */
.badge-overlay-blue {
  background-color: rgba(0, 123, 255, 0.8); /* 青 */
}

/* 赤色のバッジ */
.badge-overlay-red {
  background-color: rgba(255, 0, 0, 0.8); /* 赤 */
}

/* 緑色のバッジ */
.badge-overlay-green {
  background-color: rgba(0, 255, 0, 0.8); /* 緑 */
}

/* オレンジ色のバッジ */
.badge-overlay-orange {
  background-color: rgba(255, 165, 0, 0.8); /* オレンジ */
}
/* グレーのバッジ（セリ前を示す色として） */
.badge-overlay-gray {
  background-color: rgba(128, 128, 128, 0.8); /* グレー */
}

/* 黄色のバッジ（セリ前を示す色として） */
.badge-overlay-yellow {
  background-color: rgba(255, 255, 0, 0.8); /* 黄色 */
}




/* カード全体の余白を調整 */
.card {
  padding: 10px; /* カード全体の内側の余白をなくす */
}



/*プルダウン展開するメニューを拡大*/
.dropdown-menu a.nav-link {
  white-space: nowrap;
  min-width: 220px;
}