html {
  position: relative;
  min-height: 100%;
  font-size: 16px;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 60px;
  font-size: 16px;
  font-family: 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', Hiragino Kaku Gothic Pro W3, "ヒラギノ角ゴ Pro W3", Osaka !important;
  background-image: url('/contents/sougyousai/images/sougyousai_back.png');

}

header {
  width: 100%;
  margin: 0 auto;
  background-color: #182d7c;
  background-repeat: repeat-x;
  height: 60px;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 40px;
  background-color: #182d7c;
  z-index: 1;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: #000;
}

#logo {
  padding: 0px 0px;
  width: 94%;
  max-width: 1000px;
  margin: auto;
}

#logo img {
  height: 60px;
}

@media screen and (min-width: 767px) {
  .toSM {
    display: none;
  }

  .toPC {}
}

@media screen and (max-width: 767px) {
  .toSM {}

  .toPC {
    display: none;
  }
}

/*colors*/
/*ノジマブルー*/
.nojimaBlue {
  color: #182D7C;
}

/*ノジマレッド*/
.nojimaRed {
  color: #E60019;
}

.markerpink {
  background: linear-gradient(transparent 40%, rgb(255, 170, 170) 40%);
}

.markeryellow {
  background: linear-gradient(transparent 40%, rgba(226, 197, 90, 0.79) 40%);
}

.markerblue {
  background: linear-gradient(transparent 40%, rgb(83, 197, 240) 40%);
}

.markerblue02 {
  background: linear-gradient(transparent 40%, rgb(171, 217, 235) 40%);
}

.markeryellow2 {
  background: linear-gradient(transparent 40%, rgb(223, 246, 11) 40%);
}

.breadcrumb {
  padding: 8px 15px;
  margin: 0 auto 20px;
  list-style: none;
  background-color: transparent;
  border-radius: 4px;
  font-size: 0.7rem;
  max-width: 1000px;
}

.breadcrumb>li {
  display: inline-block;
}

.breadcrumb>li+li:before {
  padding: 0 5px;
  color: #ccc;
  content: "/\00a0";
}

.breadcrumb>.active {
  color: #777;
}

/* --------------------------------------------- */
/* ▼モバイルファースト (全環境に共通のデザイン) */
/* --------------------------------------------- */
section {
  margin: 1rem auto 2rem;
}

article {
  max-width: 100%;
  margin: 0 5px;
  background-color: #fff;
}

h1 {
  font-size: 20px;
  text-align: center;
  background-color: transparent;
}

h2 {
  font-size: 20px;
  text-align: center;
  color: #fff;
  background-color: #182d7c;
  padding: 8px;
}

#kanban {
  width: 100%;
}

#kanban img {
  display: block;
  margin: 0 auto 1rem;
}


/* 通常のヘッダーメニュー */
#header-menu {
  background-color: #fff;
  z-index: 999;
  width: 100%;
  display: flex;
  box-sizing: border-box;
  justify-content: center;
}

#header-menu .menu {
  display: flex;
  flex-direction: column;
  /* 垂直方向に並べる */
  gap: 0px;
  /* 行間のスペース */
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
  width: 100%;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  /* 均等配置 */
}


#header-menu li {
  position: relative;
  list-style-type: none;
  font-size: 12px;
  padding: 0 0.5rem;
  text-align: center;
  flex: 1;
  /* flex-grow, flex-shrink, flex-basisのショートハンド */
  min-width: 120px;
  /* ボタンの最小幅 */
}

#header-menu li a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  display: block;
  width: 100%;
  padding: 0.5rem 0;
}

#header-menu li:hover {
  background-color: #4a79e5;
  border-radius: 0.5rem;
}

#header-menu li a::after {
  display: none;
}

/* PCでの表示（768px以上） */
@media all and (min-width: 768px) {
  .flex-row {
    justify-content: space-around;
  }

  .flex-row.second-row {
    justify-content: center;
  }

  #header-menu li {
    padding: 0 1rem;
    min-width: auto;
  }

  #header-menu li a {
    padding: 0;
  }

  #header-menu li a::after {
    display: block;
    margin: 0 auto;
    font-family: "Font Awesome 6 Free";
    content: "\f107";
    font-weight: 900;
    padding-right: 0.2em;
    padding-left: 0.2em;
    text-align: center;
  }
}


/* 各カテゴリボタン */
html {
  scroll-behavior: smooth;
}

/* スマホ向けのデフォルトスタイル（3列表示） */
.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px 0;
}

/* PC向けのスタイル（画面幅が広い場合のみ適用） */
@media (min-width: 768px) {
  .button-container {
    grid-template-columns: repeat(5, 1fr); /* PCでは5列に */
    max-width: 1000px;
    margin: 0 auto;
  }
}

/* カテゴリボタン */
.scroll-button {
  display: block;
  height: 50px;
  background-color: #182d7c;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  line-height: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color 0.3s ease; /* ホバー効果を滑らかにする */
}

.scroll-button:hover {
  background-color: #A0B1ED;
  border-radius: 0.5rem;

}


/* もっと見るボタン */
.morebutton-container {
  display: block;
  width: 200px;
  margin: 10px auto;
  text-align: center;
  border-radius: 5px;
  background-color: #182d7c; /* 通常時の背景色 */
  transition: background-color 0.3s ease;
}

/* スタイル */
.morebutton {
  display: block;
  padding: 15px;
  color: #ffffff; /* 通常時の文字色（白） */
  text-decoration: none;
  box-sizing: border-box;
  transition: color 0.3s ease;
}

/* ホバー時のスタイル */
.morebutton-container:hover {
  background-color: #A0B1ED; /* ホバー時の背景色 */
}

.morebutton-container:hover .morebutton {
  color: #000000; /* ホバー時の文字色（黒） */
}




/* キャンペーン画像装飾 */
.champ_handyfan {
  text-align: center;
  /* 画像を中央揃えにする */
}

.champ_handyfan a img {
  transition: opacity 0.3s ease;
  /* ホバー効果を滑らかにする */
}

.champ_handyfan a:hover img {
  opacity: 0.7;
  /* ホバーで半透明にする */
}



/* 商品リストフレックス */

.productslist ul {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  padding: 1rem;
}

.productslist ul li:nth-child(1) {
  flex-basis: 25%;
}

.productslist ul li:nth-child(1) img {
  padding-right: 1rem;
}

.productslist ul li:nth-child(2) {
  flex-basis: 75%;
}

.productslist p {
  background-color: #CAE5E9;
  font-size: 0.8rem;
  padding: 0.5rem;
  line-height: 2;
}

.productslist p span {
  background-color: #008899;
  color: #fff;
  display: inline-block;
  padding: 3px 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: bold;
  margin-right: 5px;
}

/* どこでもカート設定 */
.cartanywhere {
  margin-bottom: 1rem;
}

.cartprodname {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.cartprice {
  font-size: 1.5rem;
  color: #ff0000;
  font-weight: bold;
  text-align: right;
}

.yencolor {
  color: #000;
  font-size: 0.8rem;
}

.cartnouki {
  font-size: 0.8rem;
  color: #27c10d;
}

.couponmark {
  font-size: 0.8rem;
}

.couponmark::before {
  content: "\f145";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #ff0000
}

.pointkangen {
  font-size: 0.8rem;
  font-weight: normal;
}

.pointkangen::before {
  content: "\f51e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 0.25em;
  color: rgb(250, 202, 10);
}




/* -------------------------------------------- */
/* ▼タブレット用デザインとして付け足すデザイン */
/* -------------------------------------------- */
@media all and (min-width: 768px) {
  article {
    max-width: 100%;
    margin: 0 5px;
    background-color: #fff;
  }

  section {
    margin: 1rem auto 2rem;
  }

  #header-menu li {
    margin-right: 38px;
    position: relative;
    list-style-type: none;
  }

  /* 商品一覧 */

  .productslist {
    display: flex;
    flex-wrap: wrap;
  }

  .cartanywhere {
    width: 21%;
    display: flex;
    border: 1px solid #ccc;
    margin: 0 1rem 1rem;
    ;
  }

  .productslist ul {
    display: block;
    border: none;
  }

  .productslist ul li {}

  .productslist ul li img {
    display: block;
    margin: 0 auto 1rem;
  }
}

/* ------------------------------------ */
/* ▼PC用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 920px) {
  article {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
  }

  section {
    margin: 1rem auto 4rem;
  }

  #header-menu li {
    margin-right: 38px;
    position: relative;
    list-style-type: none;
    font-size: 1rem;
  }



  /* 商品一覧 */

  .productslist {
    display: flex;
    flex-wrap: wrap;
  }

  .cartanywhere {
    width: 21%;
    display: flex;
    border: 1px solid #ccc;
    margin: 0 1rem 1rem;
    ;
  }

  .productslist ul {
    display: block;
    border: none;
  }

  .productslist ul li {}

  .productslist ul li img {
    display: block;
    margin: 0 auto 1rem;
  }
}

#pageTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

#pageTop a {
  display: block;
  z-index: 999;
  padding: 8px;
  border-radius: 60px;
  width: 70px;
  height: 70px;
  background-color: #9FD6D2;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

#pageTop a:hover {
  text-decoration: none;
  opacity: 0.7;
}