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-color: #fff;
}

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: 60px;
  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 {
  text-align: center;
  font-size: 20px;
}

h1 span {
  font-weight: bold;
  font-size: smaller;
  color: #575536;
}

h2 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.6;
}

#kanban_image {
  display: block;
  margin: 0 auto;
}

.introduction {
  background-color: #fffacd;
  border-radius: 1rem;
  width: 90%;
  margin: 2rem auto 0;
  padding: 1rem;
}

.introduction p {
  line-height: 1.8;
}

.marker-line {
  border-bottom: 3px solid #c03;
  font-weight: bold;
}

.colortext_01 {
  color: #c03;
  font-weight: bold;
}

.font_larger {
  font-size: larger;
}

.choice_pc {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.choice_pc li {
  flex: 1;
  text-align: center;
}

.choice_pc img {
  max-width: 100%;
  height: auto;
  display: block;
}

.label {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.setsumei_01 {
  position: relative;
  margin: 3rem auto;
}

.setsumei_01 .ttl {
  position: absolute;
  top: -1.5rem;
  left: 1rem;
  display: inline-block;
  line-height: 1;
  padding: 1rem;
  margin: 0;
  background-color: #575536;
  color: #fff;
  font-size: 18px;
}

.setsumei_01 .txt {
  padding: 3rem 2rem 1rem 2rem;
  margin: 0;
  background-color: #fffacd;
  border-radius: 1rem;
}

.smaller {
  font-size: smaller;
}

.txt_erab {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.image_erab {
  width: 150px;
  display: block;
  margin: 0 auto;
}

.text_erab {
  margin-left: 1rem;
}

.text_erab span {
  background-color: #543156;
  color: #fff;
  padding: 10px 15px;
  border-radius: 1rem;
  display: block;
  margin-left: auto;
  width: 100%;
  text-align: center;
}


.erabikata_01 {
  position: relative;
  margin: 3rem auto;
}

.erabikata_01 .ttl {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  line-height: 1;
  padding: 1rem;
  margin: 0;
  background-color: #575536;
  color: #fff;
  font-size: 20px;
}

.erabikata_01 .txt_erab {
  padding: 3rem 2rem 1rem 2rem;
  margin: 0;
  background-color: #fffacd;
  border-radius: 1rem;
}

.tantounoosuusme {
  font-size: 20px;
  font-weight: bold;
  border-bottom: double 5px #575536;
}

.omukae {
  background-color: #fffacd;
  width: 90%;
  margin: 1rem auto;
  padding: 1rem;
}


/* ================================================= */
/* どこでもカート (productslist) & アイテム内のスタイル */
/* ================================================= */

/* productslist: Flexコンテナ (横並びの土台 - 全画面で有効) */
.productslist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 5px;
}

/* 個別商品アイテム (cartanywhere): モバイルでは縦1列 */
.cartanywhere {
  /* ★ モバイル: 縦1列 (幅100%) */
  width: calc(100% - 10px);
  margin: 0 5px 1rem;
  display: block;
}

/* productslist ul: モバイルでの画像と情報の二分割用 */
.productslist ul {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #ccc;
  padding: 1rem;
  margin: 0;
}

/* 1. 画像エリア (モバイル: 50%) */
.productslist ul li:nth-child(1) {
  flex-basis: 50%;
  padding-right: 10px;
}

.productslist ul li:nth-child(1) img {
  width: 100% !important;
  height: auto;
  padding-right: 0;
  margin: 0 auto 1rem;
}

/* 2. 情報エリア (モバイル: 50%) */
.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;
}

.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;
}

.cartcoupon {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #d80c39;
  color: #ffffff;
  font-size: 1.0rem;
  font-weight: bold;
  padding: 4px 0;
  box-sizing: border-box;
}

.cartcoupon:empty {
    display: none;
}

.coupon-explanation {
    position: absolute;      /* 商品画像や文字に被せて表示 */
    bottom: 60px;            /* 表示位置（調整してください） */
    left: 10px;
    right: 10px;
    background-color: #fffce5; /* 少し黄色味のある色でかわいく */
    border: 2px solid #ffcc00; /* 縁取りを少し太く */
    border-radius: 8px;
    padding: 10px;
    font-size: 0.75rem;
    color: #333;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 100;

    /* アニメーションの設定 */
    opacity: 0;              /* 最初は透明 */
    visibility: hidden;      /* 完全に隠す */
    transform: translateY(10px); /* 10px下に配置 */
    transition: all 0.3s ease;   /* 0.3秒かけて変化させる */
}

.cartanywhere:hover .coupon-explanation {
    opacity: 1;              /* 不透明にする */
    visibility: visible;     /* 表示する */
    transform: translateY(0); /* 元の位置（上）に浮き上がる */
}

.coupon-explanation::before {
    content: '';
    position: absolute;
    bottom: -10px;           /* 下側に配置 */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0 10px; /* 下向きの三角形 */
    border-style: solid;
    border-color: #ffcc00 transparent transparent transparent;
}

.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);
}

/* ================================================= */
/* メディアクエリ (横並びの上書き) */
/* ================================================= */

/* --- タブレット用デザイン (768px以上): 4列表示 --- */
@media all and (min-width: 768px) {
  article {
    max-width: 90%;
    margin: 0 auto;
  }

  /* 使い方セクションの横並び */
  .how-to-use-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .step-container {
    flex: 1;
    margin: 0 10px;
  }

  /* --- 商品リスト (4列表示) --- */

  .cartanywhere {
    flex: 0 0 calc(25% - 10px);
    /* 4列表示: 幅25% - 左右マージン */
    max-width: calc(25% - 10px);
    margin: 0 5px 1rem;
  }

  .productslist ul {
    display: block;
    border: none;
    padding: 0;
  }

  .productslist ul li:nth-child(1),
  .productslist ul li:nth-child(2) {
    flex-basis: auto;
    padding-right: 0;
    width: 100%;
  }

  .productslist ul li img {
    display: block;
    margin: 0 auto 1rem;
  }
}

/* --- PC用デザイン (920px以上): 5列表示 --- */
@media all and (min-width: 920px) {
  article {
    max-width: 1000px;
    margin: 0 auto;
  }

  .step-container {
    margin: 0 15px;
  }

  /* 個別商品アイテム: 5列表示 (20%) */
  .cartanywhere {
    flex: 0 0 calc(20% - 20px);
    max-width: calc(20% - 20px);
    margin: 0 4px 1.5rem;

    border: 1px solid #eeeeee;
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
  }
  .productslist ul li:nth-child(2) {
        padding: 0 10px 10px;
        box-sizing: border-box;
    }
    
  .productslist ul li img {
        margin-bottom: 10px;
    }
}


#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;
}


.item-list {
  margin-bottom: 2rem;
  display: grid;
  gap: 1.2em;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .item-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .item-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.item-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1.2em;
  border-radius: 0.5rem;
  background: #fdfbeb;
  border: 1px solid #d0dce5;
  transition: all 0.2s ease;
}

.item-button:hover {
  background: #e5eef5;
  border-color: #575536;
  box-shadow: 0 2px 8px rgba(0, 89, 175, 0.1);
}

.item-img {
  width: 72px;
  height: auto;
  margin-bottom: 0.75em;
  border-radius: 0.3em;
  filter: grayscale(10%);
}

.item-label {
  font-size: 0.85em;
  font-weight: 600;
  color: #003e78;
  text-align: center;
  letter-spacing: 0.02em;
}