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/ouensale/images/ouensale_back.png');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

header {
  width: 100%;
  margin: 0 auto;
  background-color: #182d7c;
  background-repeat: repeat-x;
  height: 60px;
}

footer {
  font-size: 16px;
  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;
}

h3 {
  font-size: 14px;
  text-align: center;
  color: #fff;
  background-color: #182d7c;
  padding: 8px;
}

h3 a { 
  color: #fff !important;
  text-decoration: underline;
}

table {
  border-collapse: collapse;
  text-align: center;
  width: 100%;
}

th, td {
  border: 1px solid #000;
  background-color: #fff;
  color: #182d7c;
  padding: 8px;
  text-align: center;
}

#kanban {
  width: 100%;
}

#kanban img {
  display: block;
  margin: 0 auto 1rem;
}

#caution {
  font-size: 14px;
  text-align: center;
  color: #fff;
  background-color: #182d7c;
  padding: 8px ;
}

#caution a { 
  color: #fff !important;
  text-decoration: underline;
}


/* 通常のヘッダーメニュー */
#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;
}

/* ボタンのコンテナ（共通） */
.button-container {
  display: flex;
  flex-wrap: wrap; /* ボタンが複数行になるようにする */
  gap: 10px; /* ボタン間のスペース */
  padding: 10px 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* カテゴリボタン（共通） */
.scroll-button {
  display: flex; /* flexboxを使い、テキストを中央揃えにする */
  justify-content: center;
  align-items: center;
  height: 50px;
  background-color: #182d7c;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-align: center;
  
  /* テキストの折り返しと省略 */
  word-break: break-word; /* 単語の途中で改行を許可 */
  overflow: hidden;
  line-height: 1.2; /* 行間を調整して、2行表示に対応 */
  padding: 0 5px; /* テキストと端の間に少し余白を持たせる */
}

/* スマホ向けのスタイル（3列表示） */
/* 767px以下の画面幅に適用 */
@media (max-width: 767px) {
  .button-container {
    justify-content: space-around; /* ボタンを均等に配置 */
  }
.scroll-button {
      /* 1行に3つボタンを配置（paddingも計算に含める） */
      width: calc(33.33% - 10px);
      font-size: 14px; /* スマホ向けにフォントサイズを少し小さくする */
  }
}

/* PC向けのスタイル（4列表示） */
/* 768px以上の画面幅に適用 */
@media (min-width: 768px) {
  .button-container {
      justify-content: center;
  }
  .scroll-button {
      /* 1行に5つボタンを配置（paddingも計算に含める） */
      width: calc(20% - 10px);
      white-space: nowrap; /* テキストを折り返さない */
      font-size: 16px;
  }
}

.scroll-button:hover {
  background-color: #A0B1ED;
  border-radius: 0.5rem;

}

/* もっと見るボタン */
.morebutton-container {
  display: block;
  width: 80%;
  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: 50%;
padding-right: 10px;
}

.productslist ul li:nth-child(1) img {
    /* HTML内にあるインラインのstyleで600pxが指定されているため、!importantで上書き */
    width: 100% !important; /* 80%にすることで、左右に余白を作りつつ大きく表示 */
    height: auto;
    padding-right: 0; /* 右側のパディングをリセット */
    margin: 0 auto 1rem; /* 中央寄せ */
  }

.productslist ul li:nth-child(2) {
    flex-basis: 50%; /* 商品情報エリアもフル幅にする */
    text-align: left; /* 商品情報を左寄せ */
  }

.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;
text-align: left;
}

.cartprice {
  font-size: 1.5rem;
  color: #ff0000;
  font-weight: bold;
  text-align: left;
}

.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: 767px) {
  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;
    width: 40%;
  }
}

/* ------------------------------------ */
/* ▼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;
}

/* フッター */
#footer_area.sale_footer {
    width: 100%;
    font-size: 12px;
    background-color: #182d7c;
    color: #FFFFFF;
    text-align: center;
    padding: 20px 0 20px;
}

.sale_footer .footer-notice {
    font-weight: bold;
    text-align: center;
}


@media(min-width: 600px) {
    .sale_footer .footer-notice br {
        display: none;
    }
}

