/******************************/
/* category */
/******************************/
.p-category__ttl {
  margin: 10px 0 40px 0;
  line-height: 1.4;
  font-size: 30px;
  font-weight: normal;
  text-align: center;
  color: #000000;
  word-break: break-all;
}
@media screen and (max-width: 767px) {
  .p-category__ttl {
    margin-bottom: 30px;
    font-size: 20px;
  }
}

.p-category-free {
  margin-top: 30px;
  margin-bottom: 40px;
  margin-left: 100px;
  margin-right: 100px;
  line-height: 2;
}
@media screen and (max-width: 1023px) {
  .p-category-free {
    margin-left: 15px;
    margin-right: 15px;
  }
}
@media screen and (max-width: 767px) {
  .p-category-free {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-left: 0;
    margin-right: 0;
  }
}

.p-category-search {
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .p-category-search {
    margin-bottom: 20px;
    text-align: center;
  }
}

/***** カテゴリ一覧 *****/
.p-category-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 60px;
  margin-left: -10px;
  margin-right: -10px;
}
@media screen and (max-width: 767px) {
  .p-category-list {
    margin-left: -10px;
    margin-right: -10px;
  }
}
@media screen and (max-width: 767px) {
  .p-category-list {
    display: block;
    margin-left: 0;
    margin-right: 0;
    border-top: 2px solid #2d2d2d;
  }
}

.p-category-list__item {
  box-sizing: border-box;
  margin-top: -2px;
  padding-left: 10px;
  padding-right: 10px;
  width: 33.3333%;
  word-break: break-all;
}
@media screen and (max-width: 1023px) {
  .p-category-list__item {
    width: 50%;
  }
}
@media screen and (max-width: 767px) {
  .p-category-list__item {
    margin-top: 0;
    padding-left: 0;
    padding-right: 0;
    width: auto;
  }
}

.p-category-list__link {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  padding: 14px 35px 14px 25px;
  border-top: 2px solid #2d2d2d;
  border-bottom: 2px solid #2d2d2d;
  min-height: 80px;
}
@media screen and (max-width: 767px) {
  .p-category-list__link {
    padding: 14px 35px 14px 15px;
    border-top: 0;
    min-height: inherit;
  }
}
.p-category-list__link:hover {
  background: #2d2d2d;
  color: #ffffff;
  text-decoration: none;
}
.p-category-list__link:hover:before {
  border-right-color: #ffffff;
  border-bottom-color: #ffffff;
}
.p-category-list__link:before {
  content: "";
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -7px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #2d2d2d;
  border-bottom: 2px solid #2d2d2d;
  transform: rotate(-45deg);
  transition: all ease 0.2s;
}
@media screen and (max-width: 767px) {
  .p-category-list__link:before {
    margin-top: -4px;
  }
}

.p-category-list__img {
  display: block;
  margin-right: 20px;
  width: 100px;
}
@media screen and (max-width: 1023px) {
  .p-category-list__img {
    width: 50px;
  }
}

.p-category-list__name {
  display: block;
  flex: 1;
  font-size: 18px;
}
@media screen and (max-width: 767px) {
  .p-category-list__name {
    font-size: 16px;
  }
}

/***** 商品件数・ソート *****/
.p-item-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
@media screen and (max-width: 767px) {
  .p-item-list-head {
    display: block;
  }
}

@media screen and (max-width: 767px) {
  .p-item-list-num {
    margin-bottom: 15px;
    text-align: center;
  }
}

.p-item-sort {
  display: flex;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .p-item-sort {
    display: block;
  }
}

.p-item-sort__ttl {
  white-space: nowrap;
  margin-right: 10px;
}

.p-item-sort__select {
  padding: 10px;
  border: 2px solid #000000;
  border-radius: 0;
  height: auto;
  min-width: 180px;
  line-height: 1.4;
  color: #000000;
}

.p-item-sort-list {
  display: flex;
  flex-wrap: wrap;
}

.p-item-sort-list__item {
  margin-left: 30px;
}
@media screen and (max-width: 767px) {
  .p-item-sort-list__item {
    margin-left: 25px;
  }
}
.p-item-sort-list__item:first-child {
  margin-left: 0;
}
.p-item-sort-list__item span {
  text-decoration: underline;
}

/* --YouTubeサイズ調整-- */
.iframe-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* --YouTubeサイズ調整-- */




/******************************/
/* ボタンのロールオーバー */
/******************************/
a:hover img {
  opacity: 0.6;
  filter: alpha(opacity=60);
}
/******************************/
/* ボタンのロールオーバー */
/******************************/


/******************************/
/* --リンク先へゆっくりスクロール-- */
/******************************/
html { scroll-behavior: smooth;}
/******************************/
/* --リンク先へゆっくりスクロール-- */
/******************************/



/******************************/
/* h2タグのテキストサイズを変更 */
/******************************/
        h2 {
            font-size: 20px; /* フォントサイズを調整 */
        }
/******************************/
/* h2タグのテキストサイズを変更 */
/******************************/



/******************************/
/* h3タグのテキストサイズを変更 */
/******************************/
        h3 {
            font-size: 16px; /* フォントサイズを調整 */
        }
/******************************/
/* h3タグのテキストサイズを変更 */
/******************************/



/******************************/
/* デフォルトのボタンスタイル */
/******************************/
.btn {
    font-size: 16px; /* テキストのフォントサイズ */
    padding: 10px 20px; /* パディング */
    margin: 3px; /* マージンを追加 */
}

/* スマートフォン用のスタイル */
@media screen and (max-width: 767px) {
    .btn.btn-kanren {
        width: 200px;
        height: 40px;
        display: block;
        margin-bottom: 10px;
        font-size: 16px;
        padding: 6px 14px;
        text-align: center;
        /* line-height: 40px; */ /* テキストが下にずれる原因 */
    }

    .btn.btn-kanren h2 {
        font-size: 13px;
        line-height: 40px; /* テキストの高さとボタンの高さを一致させる */
        margin: 0;
    }
}







/* パソコン用のスタイル */
@media screen and (min-width: 768px) {
    .btn.btn-kanren {
        font-size: 18px; /* パソコン用のフォントサイズ */
        padding: 12px 24px; /* パソコン用のパディング */
    }
}
/******************************/
/* デフォルトのボタンスタイル */
/******************************/



/******************************/
/* --トップへ戻るボタンのスタイル-- */
/******************************/
#scrollToTop {
    display: none;
    position: fixed;
    bottom: 65px; /* トップへ戻るボタンの bottom 位置を調整 */
    right: 15px;
    background-color: #333; /* ダークグレー */
    color: #fff;
    border: none;
    border-radius: 50%; /* 正円にする */
    width: 30px; /* 直径を設定 */
    height: 30px; /* 直径を設定 */
    padding: 0; /* 余白を削除 */
    cursor: pointer;
    text-align: center; /* テキストを中央に配置 */
    line-height: 30px; /* テキストを垂直方向に中央に配置 */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; /* 二重線の影を追加 */
    transition: transform 0.2s; /* 変化のスムーズ化のためのトランジション */
    z-index: 9999; /* ボタンを最前面に配置 */
}
#scrollToTop:hover {
    transform: scale(1.1); /* ホバー時にボタンをわずかに大きくする */
}

/******************************/
/* --「?」ボタンのスタイル-- */
/******************************/
#scrollToquestion {
    display: none;
    position: fixed;
    bottom: 115px; /* 新しいボタンの bottom 位置を調整 */
    right: 15px;
    background-color: #333; /* ダークグレー */
    color: #fff;
    border: none;
    border-radius: 50%; /* 正円にする */
    width: 30px; /* 直径を設定 */
    height: 30px; /* 直径を設定 */
    padding: 0; /* 余白を削除 */
    cursor: pointer;
    text-align: center; /* テキストを中央に配置 */
    line-height: 30px; /* テキストを垂直方向に中央に配置 */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; /* 二重線の影を追加 */
    font-size: 18px; /* 文字サイズを設定 */
    transition: transform 0.2s; /* 変化のスムーズ化のためのトランジション */
    z-index: 9999; /* ボタンを最前面に配置 */
}
#scrollToquestion:hover {
    transform: scale(1.1); /* ホバー時にボタンをわずかに大きくする */
}

/******************************/
/* --再へ移動するボタンのスタイル（画像ボタンに更新）--*/
/******************************/
#scrollToAgain {
    display: none;
    position: fixed;
    bottom: 165px; /* 再へ移動するボタンの bottom 位置を調整 */
    right: 15px;
    border: none;
    border-radius: 50%; /* 画像が円形でない場合はこの値を調整する必要があるかもしれません */
    width: 30px; /* 画像のサイズに合わせて調整 */
    height: 30px; /* 画像のサイズに合わせて調整 */
    padding: 0; /* 余白を削除 */
    cursor: pointer;
    background-image: url('https://livedoor.blogimg.jp/natoriya/imgs/f/e/fe1cc462.gif?v=20240404004116'); /* 画像のURLを指定 */
    background-size: cover; /* 画像がボタンサイズにぴったり収まるようにする */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; /* 二重線の影を追加 */
    transition: transform 0.2s; /* 変化のスムーズ化のためのトランジション */
    z-index: 9999; /* ボタンを最前面に配置 */
}
#scrollToAgain:hover {
    transform: scale(1.1); /* ホバー時にボタンをわずかに大きくする */
}



/******************************/
/* --最後の逸品ボタンのスタイル-- */
/******************************/
#scrollToLastItem {
    display: none;
    position: fixed;
    bottom: 215px; /* 最後の逸品ボタンの bottom 位置を調整 */
    right: 15px;
    background-color: #333; /* ダークグレー */
    color: #fff;
    border: none;
    border-radius: 50%; /* 正円にする */
    width: 30px; /* 直径を設定 */
    height: 30px; /* 直径を設定 */
    padding: 0; /* 余白を削除 */
    cursor: pointer;
    text-align: center; /* テキストを中央に配置 */
    line-height: 30px; /* テキストを垂直方向に中央に配置 */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; /* 二重線の影を追加 */
    font-size: 18px; /* 文字サイズを設定 */
    transition: transform 0.2s; /* 変化のスムーズ化のためのトランジション */
    z-index: 9999; /* ボタンを最前面に配置 */
}
#scrollToLastItem:hover {
    transform: scale(1.1); /* ホバー時にボタンをわずかに大きくする */
}

/******************************/
/* --ブログへ移動するボタンのスタイル-- */
/******************************/
#scrollToBlog {
    display: none;
    position: fixed;
    bottom: 265px; /* ブログへ移動するボタンの bottom 位置を調整 */
    right: 15px;
    background-color: #333; /* 背景色は画像が読み込まれない時のために設定 */
    border: none;
    border-radius: 50%; /* 正円にする（画像が円形でない場合は調整が必要かもしれません） */
    width: 30px; /* 画像サイズに合わせて調整 */
    height: 30px; /* 画像サイズに合わせて調整 */
    padding: 0; /* 余白を削除 */
    cursor: pointer;
    background-image: url('https://livedoor.blogimg.jp/natoriya/imgs/c/c/ccc89db2.png?v=20240329113302'); /* ここに画像ファイルのパスを指定 */
    background-size: cover; /* 画像がボタンのサイズに合うように調整 */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #333; /* 二重線の影を追加 */
    transition: transform 0.2s; /* 変化のスムーズ化のためのトランジション */
    z-index: 9999; /* ボタンを最前面に配置 */
}
#scrollToBlog:hover {
    transform: scale(1.1); /* ホバー時にボタンをわずかに大きくする */
}


/******************************/
/* --ブランド概要のインデント-- */
/******************************/
.content-text {
    padding-left: 40px; /* 左側に40pxの内側余白を設定 */
    margin-bottom: 20px; /* 段落間のマージン */
    text-align: justify; /* テキストを両端揃えにする場合、追加できます */
}


/******************************/
/* 5つボタン */
/******************************/
.button-container-top {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    position: fixed;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
    box-sizing: border-box;
}

@media (min-width: 601px) and (max-width: 768px) and (orientation: portrait) {
    .button-container-top {
        top: 70px; /* 調整 */
    }
}

@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .button-container-top {
        top: 100px; /* 調整 */
    }
}

@media (min-width: 1025px) {
    .button-container-top {
        top: 100px; /* 既存のデスクトップ用設定 */
    }
}

/* ボタンとドロップダウンボタンのスタイル */
.button, .dropdown > .button {
    flex: 1;
    padding: 1px 0;
    background-color: transparent;
    color: black;
    text-align: center;
    text-decoration: none;
    border: 1.5px solid black; /* 枠線の太さを統一 */
    border-right: none; /* 右側の枠線を削除 */
    font-weight: bold;
    font-size: 12px;
}

/* 最後のボタンだけ右側の枠線を追加 */
.button-container-top .dropdown:last-child > .button {
    border-right: 1.5px solid black; /* 右側の枠線を統一 */
}

/* 既存のスタイルを削除 */
.button:last-child, .dropdown:last-child > .button {
    border-right: none;
}


/******************************/
/* ドロップダウンメニュー(5つボタン用) */
/******************************/
.dropdown {
    position: relative;
    display: flex;
    flex: 1;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid black;
    box-sizing: border-box;
    width: 100%;
    top: 100%; /* プルダウンメニューをボタンの下に配置 */
    
    /* 追加: 右端に近い場合のメニュー表示調整 */
    left: auto;
    right: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

/* スマートフォン向けのスタイル調整 */
@media (max-width: 600px) {
    .dropdown-content {
        left: 0; /* プルダウンメニューを画面の左端に合わせる */
        right: auto; /* 右側の位置指定を無効化 */
        min-width: 120px; /* 必要に応じて幅を調整 */
    }
}
