@charset "Shift_JIS";

/*--------------------------------------------------------
  フルCSSプロフェッショナルテンプレート部品設定
--------------------------------------------------------*/
/* スマホ・タブレット共通 */
.itemlist img {
  width: 100%;
  height: auto;
  display: block;
}


.hpb-parts-cnt-style
{
    border-color: #ffffff;
}

.hpb-parts-hl-style
{
    padding: 0.5em 0.2em !important;
    margin: 0.5em 0px !important;
    border-color: #000000;
}

.hpb-parts-cbox-style
{
    border-color: #ffffff;
}

.hpb-parts-img-02
{
    background-color: #ffffff;
}

.hpb-parts-hr-style
{
    border-color: #ffffff;
}

.hpb-parts-pbox-style
{
    border-color: #ffffff;
}
.hpb-parts-pbox-style h4
{
    padding: 0px !important;
}
.hpb-parts-pbox-style img
{
    margin-bottom: 0px !important;
    background-color: #ffffff;
}

.hpb-parts-blist-style
{
    border-color: #ffffff;
}
a.hpb-parts-blist-style:link
{
    color: #666666;
}
a.hpb-parts-blist-style:visited
{
    color: #666666;
}
a.hpb-parts-blist-style:hover
{
    color: #000000;
}
a.hpb-parts-blist-style:active
{
    color: #000000;
}

/* モバイル用ナビ調整 -----------------------------------------------------*/

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
    padding: 10px;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  /* レイアウト全体 */
  #hpb-container,
  #hpb-header,
  #hpb-footer,
  #hpb-inner,
  #hpb-wrapper,
  #hpb-aside,
  #hpb-nav ul,
  #hpb-title h2 {
    width: 100% !important;
    float: none !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* 商品一覧の縦積み表示 */
  .itemlist .item,
  [class^="hpb-parts-pbox-"],
  [class^="hpb-parts-mpbox-"],
  [class^="hpb-parts-img-"] {
    float: none !important;
    width: 100% !important;
    margin: 10px auto;
    display: block;
  }

  /* ナビメニューを縦並びに */
  #hpb-nav ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  #hpb-headerLogo,
  #hpb-headerExtra1 {
    text-align: center;
  }

  input,
  textarea {
    width: 100% !important;
    box-sizing: border-box;
  }

  .left, .right {
    float: none !important;
    display: block;
    text-align: center;
  }
}

/* background-image を使っているバナー系クラス（#nbanner, #outbanner, .item aなど）に下記を追加： */@media screen and (max-width: 768px) {
  a {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
  }
}


/* スマホ用追加部分 */
@media screen and (max-width: 768px) {

  /* wrapper / main / nav / aside を縦並びに */
  #hpb-wrapper,
  #hpb-main,
  #hpb-nav,
  #hpb-aside {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ナビゲーション全体をスマホ用に */
  #hpb-nav {
    position: static !important;
    height: auto !important;
    overflow: visible !important;
  }

  /* ul の固定幅を解除して縦並びに */
  #hpb-nav ul {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* li の固定幅と float を解除 */
  #hpb-nav li {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* a の固定幅・高さを解除してスマホ幅にフィット */
  #hpb-nav li a {
    width: 100% !important;
    height: auto !important;
    padding: 12px !important;
    background-size: cover !important;
    background-position: center !important;
    display: block !important;
    text-align: center !important;
    font-size: 1.1em;
  }

  /* itemlist の float解除と幅100%化 */
  #hpb-wrapper #toppage-item .itemlist .item,
  #item .itemlist .item {
    width: 100% !important;
    float: none !important;
    margin: 0 auto 20px !important;
  }

  /* itemdata も100%に */
  #hpb-wrapper #toppage-item .itemlist .item .itemdata,
  #item .itemlist .item .itemdata {
    width: 100% !important;
  }

  /* 画像をスマホ幅にフィット */
  #hpb-wrapper #toppage-item .itemlist .item img,
  #item .itemlist .item img {
    width: 100% !important;
    height: auto !important;
  }
}
  @media screen and (max-width: 768px) {
  .hpb-layoutset-01 #hpb-title h2 {
    width: 100% !important;
    height: 350px !important;  /* 高さは調整可能 */
    background-size: 150% auto !important;
    background-position: center !important;
    text-indent: -9999px !important;
    display: block !important;
  }
}
@media screen and (max-width: 768px) {
  /* h2 の親要素も幅100%に */
  #hpb-title,
  #hpb-header {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    position: static !important;
  }

}

@media screen and (max-width: 768px) {

  /* メイン画像の親要素の余白を消す */
  #hpb-title,
  #hpb-header,
  #hpb-inner,
  .hpb-layoutset-01 #hpb-inner {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* メイン画像自体の余白も消す */
  .hpb-layoutset-01 #hpb-title h2 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

}
.main-image {
  width: 100%;
  max-width: 1200px; /* 例：少し広げたい場合 */
  margin: 0 auto;
  display: block;
}

@media screen and (min-width: 768px) {
  .itemlist img {
    max-width: 250px !important;
  }
}

@media screen and (min-width: 1024px) {
  .itemlist img {
    max-width: 200px !important;
  }
}

/* 最終調整：float解除＋flex強制＋表示保険 商品一覧：横並び＋中央揃え */
#toppage-item .itemlist {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
}

/* 商品ブロックの幅と余白 */
#toppage-item .itemlist .item,
#item .itemlist .item,
.itemlist .item {
  float: none !important;
  width: 45% !important;
  box-sizing: border-box;
  margin: 0 0 20px 0 !important;
}

/* 画像サイズの最終調整 */
.itemlist img {
  max-width: 250px !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

#toppage-item .itemlist::after {
  content: none !important;
  display: none !important;
}

/* 最終調整 */
#toppage-item .itemlist .item {
  float: none !important;
  width: 45% !important; /* ← 強制制限 */
  max-width: 45% !important;
  box-sizing: border-box;
  margin: 0 0 20px 0 !important;
  display: block !important;
}

#toppage-item .itemlist .item * {
  max-width: 100% !important;
  box-sizing: border-box;
}

/* サブページ用の2列レイアウト強制 */
#item .itemlist {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
}

#item .itemlist .item {
  float: none !important;
  width: 45% !important;
  max-width: 45% !important;
  box-sizing: border-box;
  margin: 0 0 20px 0 !important;
  display: block !important;
}

#item .itemlist .item * {
  max-width: 100% !important;
  box-sizing: border-box;
}

@media screen and (min-width: 769px) {

  /* itemlist を flex 化して横並びにする */
  body #hpb-wrapper #item .itemlist {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
  }

  /* item を 3列に固定 */
  body #hpb-wrapper #item .itemlist .item {
    flex: 0 0 30% !important;
    width: 30% !important;
    max-width: 30% !important;
    box-sizing: border-box !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* itemdata を下揃えにする */
  body #hpb-wrapper #item .itemlist .itemdata {
    margin-top: auto !important;
  }
}

/* PCではスマホナビを完全に非表示 */
#sp-nav-toggle,
#sp-nav-panel {
  display: none !important;
}

/* スマホ専用 */
@media screen and (max-width: 768px) {


/* PCナビをスマホで非表示 */
  #hpb-nav {
    display: none !important;
  }
/* ハンバーガーアイコン */
#sp-nav-toggle {
  display: block !important;
  position: fixed;
  top: 80px;
  left: 10px;
  z-index: 10000;
  background: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ? の大きさ（大きめのまま） */
#sp-nav-toggle .icon {
  font-size: 24px;
}

/* menu の大きさ（小さく控えめに） */
#sp-nav-toggle .label {
  font-size: 12px;
  margin-left: 6px;
}

/* スライドパネル */
  #sp-nav-panel {
    display: block !important;
    position: fixed;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: #444;
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 20px 10px;
    box-sizing: border-box;
  }

  #sp-nav-panel.open {
    left: 0;
  }

  #sp-nav-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  #sp-nav-panel li {
    margin-bottom: 12px;
  }

  #sp-nav-panel li a {
    display: block;
    padding: 10px;
    background: #555;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
  }
 /* バナー */
  #sp-banner ul {
    margin-top: 20px;
  }

  #sp-banner li a {
    background: #666;
  }
}

@media screen and (max-width: 768px) {

  /* PCバナー全体をスマホで非表示にする */
  #hpb-aside {
    display: none !important;
  }

}