html{ scroll-behavior: smooth; }

:root {
      --header-height: 64px;
      --primary-color: #002514;
      --dot-size:   8px;   /* ● の直径         */
      --dot-gap:    5px;   /* ● と ● の間隔     */
    }
    body { margin: 0; font-family: "yu-mincho-36p-kana", serif;}

    body.no-scroll{
  position: fixed;     /* 現在位置で固定 */
  width: 100%;         /* 横スクロール防止 */
  overflow: hidden;    /* 縦スクロールも不可 */
}


.error-button-container{
  text-align:center;
}
.error-button-container a{
  color:var(--primary-color);
}

    .content a, .content02 a{
      color:#000;
      text-decoration:none;
    }

    body.has-fixed-header {
  padding-top: calc(var(--header-height) + 40px); /* header 高 + 上下 margin 分 */
}

    /* ===== ヘッダー本体 ===== */
    .site-header {
      border-radius: 999px;
      margin: 20px 20px 0 20px;
      height: var(--header-height);
      display: flex;
      align-items: center;            /* 上下中央 */
      justify-content: space-between; /* 左右配置 */
      padding: 0 2rem;
      background: #fff;
      box-shadow: 0 4px 6px rgba(0,0,0,0.2);

      /* 追加：常時固定 & アニメーション */
  position: fixed;                    /* relative → fixed */
  top: 0;
  left: 0;
  width: calc(100% - 40px);           /* 両サイド margin 分を差し引く */
  transition: transform .3s ease;     /* スライド用 */
  z-index: 1000;

  box-sizing: border-box;             /* ← padding を幅計算に含める */
  width: calc(100% - 40px);           /* マージン分だけ引けば OK */
    }

    .site-header h1 img{ width:150px; }


    .site-header.hide {
      transform: translateY(calc(-100% - 20px)); /* 高さ + 上 margin */
    }




    /*=== ページネーション ===*/
    .pagination{
  margin:40px 0; display:flex; gap:24px; justify-content:center; align-items:center;
}
.pagination .prev,
.pagination .next{
  text-decoration:none; color:#124e90;
  border:1px solid var(--primary-color);
  padding:5px 30px;
  color:var(--primary-color);
}

.pagination .prev:hover,
.pagination .next:hover{
  background-color: var(--primary-color);
  color:#fff;
}

.pagination .pages strong{ font-weight:bold; }

  /*=== ページネーションend ===*/

    .body-content{
      max-width:900px;
      margin:0 auto;
      padding:30px 30px 80px 30px;
    }

    .section{
      padding:40px 0px;
    }

    .section-title {
      display: flex;                  /* 疑似要素とテキストを横並び */
      align-items: center;            /* 上下中央 */
      justify-content: center;        /* 左右中央 */
      gap: var(--dot-gap);            /* テキストと最寄りの丸との間隔 */
      font-size: 1.4rem;
      margin: 2rem 0;
      font-weight:normal;
      font-size:18px;
      letter-spacing:0.2rem;
    }
    /* 左側: テキスト寄りの丸を"content"で描き、box‑shadow で左へ複製 */
    .section-title::before {
      content: '';
      width: var(--dot-size);
      height: var(--dot-size);
      border-radius: 50%;
      background: var(--primary-color);
      display: inline-block;
      /* 2 個目の丸を左方向へ */
      box-shadow: calc(-1 * (var(--dot-size) + var(--dot-gap))) 0 0 0 var(--primary-color);
      margin-right: var(--dot-gap); /* テキストとの間隔 */
    }
    /* 右側: テキスト寄りの丸を"content"で描き、box‑shadow で右へ複製 */
    .section-title::after {
      content: '';
      width: var(--dot-size);
      height: var(--dot-size);
      border-radius: 50%;
      background: var(--primary-color);
      display: inline-block;
      /* 2 個目の丸を右方向へ */
      box-shadow: calc(var(--dot-size) + var(--dot-gap)) 0 0 0 var(--primary-color);
      margin-left: var(--dot-gap); /* テキストとの間隔 */
    }



    /* ===== ハンバーガー ===== */
    .hamburger {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      width: 32px;
      height: 32px;
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
    }
    .hamburger span {
      display: block;
      width: 100%;
      height: 3px;
      background: var(--primary-color);
      transition: 0.3s;
    }

    /* ===== ロゴ ===== */
    .logo {
      position: absolute;             /* 左右幅に関係なく中央寄せ */
      left: 50%;
      transform: translateX(-50%);
      margin: 0;
      font-size: 1.5rem;
      text-align: center;
      line-height: 0;                 /* 画像のみの場合の余白削減 */
    }
    .logo a { color: var(--primary-color); text-decoration: none; display:inline-block; }

    /* ===== 検索フォーム (PC) ===== */
    .search-form {
      position: relative;           /* アイコン絶対配置の基準 */
      width: 100%;
      max-width: 260px;
    }
    .search-form input {
      width: 100%;
      padding: 0.4rem 2.4rem 0.4rem 1.3rem;  /* 右側にアイコン分の余白 */
      border: 2px solid #000;
      border-radius: 999px;          /* pill 形状 */
      min-width: 180px;
      font-size: 13px;
    }
    .search-btn {
      position: absolute;
      top: 50%;
      right: 13px;
      transform: translateY(-50%);
      background: none;
      border: none;
      padding: 0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .search-btn svg {
      width: 18px; height: 18px;
      stroke: var(--primary-color);
      stroke-width: 3px;
      fill: none;
      pointer-events: none;          /* svg 自体のクリックを無効化 → ボタンで捕捉 */
    }

    /* ===== オーバーレイメニュー ===== */
    .overlay {
      z-index: 2000;
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.9);
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      padding:10vw;
    }
    .overlay.active { display: flex; }
    .overlay-search-form {
      position: relative;
      width: 100%;
      max-width: 400px;
    }
    .overlay-search-form input {
      width: 100%;
      padding: 0.9rem 3rem 0.9rem 1rem; /* アイコン用余白 */
      border: none;
      border-radius: 999px;
      font-size: 1.2rem;
    }
    .overlay-search-form button {
      position: absolute;
      top: 50%;
      right: 12px;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .overlay-search-form svg {
      width: 22px; height: 22px;
      stroke: var(--primary-color);
      stroke-width: 2px;
      fill: none;
    }
    .overlay-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 2rem;
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
    }

    .header-ul{
      color:#fff;
      text-align: left;
      margin-left:0px;
      padding-left:20px;
      padding-top:20px;
    }
    .header-ul li{
        list-style: none;
        line-height:60px;
        font-size:17px;
    }

    .header-ul a{
      color:#fff;
      text-decoration:none;
    }


    /* ===== 正方形カードグリッド ===== */
    .content{
      display: grid;
      gap: 1rem;                     /* カード間の余白 */
      grid-template-columns: repeat(5, 1fr); /* PC: 5 列 */
    }
    @media(max-width: 992px){        /* ブレークポイント */
      .content{ grid-template-columns: repeat(3, 1fr); }
    }

    /* ▼ 正方形カード内レイアウト：上 2/3 画像・下 1/3 テキスト */
    :root{
      --card-padding: 8%;          /* ※ここを変えればカード内余白を一括調整 */
    }
    .square-item{
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1;          /* 正方形 */
      padding: var(--card-padding);
      box-sizing: border-box;
      display: grid;
      grid-template-rows: 66% 34%;  /* 上 66% (画像)・下 34% (文字) 固定比率 */
      background: #f9f9f9;
      border-radius: 8px;
      overflow: hidden;  /* 余白内で画像 2/3, テキスト 1/3 */
      background: #f9f9f9;
      border-radius: 8px;
      overflow: hidden;
    }
    .square-item img{
      width: auto;                  /* 横比率優先 */
      height: 100%;                 /* 行高 (66%) にフィット */
      max-width: 100%;              /* 横のはみ出し防止 */
      object-fit: contain;          /* 切り抜かず余白保持 */
      justify-self: center;
      align-self: center;
    }
    .square-item .caption{
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 0 0.5rem;
      font-size: 0.9rem;
      line-height: 1.3;
      white-space: normal;            /* ▼ 自然改行を許可 */
      overflow-wrap: break-word;      /* 長い単語で折り返し */
      /* ▼ 2 行まで表示し、それ以上は ... を付けてカット（必要なら有効化） */
      /* display: -webkit-box;
         -webkit-box-orient: vertical;
         -webkit-line-clamp: 2;
         overflow: hidden;             */
    }


    /* ===== 長方形カードグリッド ===== */
    .content02{
      display: grid;
      gap: 1rem;                     /* カード間の余白 */
      grid-template-columns: repeat(2, 1fr); /* PC: 5 列 */
    }
@media(max-width: 768px){          /* 狭い画面では 1 列 */
  .content02{ grid-template-columns:  repeat(1, 1fr); }
}

/* ▼ 横 2 : 縦 1 のカード (.square-item-02) */
/*    基本は .square-item と同じだが、aspect-ratio を 2/1 に変更 */
.square-item-02{
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;             /* 横長 (幅:高さ = 2:1) */
  padding: var(--card-padding);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 80% 20%;     /* 上 2/3 画像・下 1/3 テキスト */
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

/* 画像・キャプションのスタイルは square-item と共通 */
.square-item-02 img{
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}
.square-item-02 .caption{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ▼ 追加／調整する箇所だけ ▼ */
.square-item, .square-item-02{
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* アニメーション設定 */
  will-change: transform;                                  /* パフォーマンス向上 */
}

.square-item:hover, .square-item-02:hover{
  cursor:pointer;
  transform: translateY(-6px) scale(1.03);                 /* 浮き上がり＋微拡大 */
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);                /* 影で立体感 */
}



footer{
  /* Fallback ― 旧ブラウザ用の単色 */
  background-color:#00371f;

  /* 左→右方向ベース、30° 傾けたグラデ */
  background-image:linear-gradient(30deg, #00371f 0%, #002514 100%);

  /* 追加でレイアウト用の汎用設定 (任意) */
  color:#fff;
  padding:70px 20px 20px 20px;
}
.footer-logo{
  text-align:center;
}
.footer-logo img{
  max-width:300px;
  width:60vw;
}

footer ul{
  list-style:none;        /* 「・」を消す               */
  padding:0;
  margin:70px 0px;
  display:flex;           /* 横並びにする               */
  justify-content:center; /* 中央寄せ                   */
  gap:32px;               /* 各アイテム間の間隔 (px 調整可) */
  flex-wrap:wrap;
}

footer ul li{
  font-size:14px;         /* 任意。文字サイズを指定したい場合 */
  display:inline-flex;
}

footer ul li a{
  text-decoration:none;
  color:#fff;
  white-space:nowrap;
}

.footer-bottom{
  text-align:center;
  font-size:10px;
}

/* === 商品テーブル ===*/
.product-table th, .product-table td{
  border-bottom:1px solid #000;
  padding:3px 10px;
  font-size:13px;
  font-weight:normal;
}

.product-table th{
  font-size:10px;
}


/* ===== 正方形カードグリッド ===== */
.product-content{
  display: grid;
  gap: 1rem;                     /* カード間の余白 */
  grid-template-columns: repeat(3, 1fr); /* PC: 5 列 */
}
@media(max-width: 992px){        /* ブレークポイント */
  .product-content{ grid-template-columns: repeat(2, 1fr); }
}


.product-item{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.2;          /* 正方形 */
  padding: var(--card-padding);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 68% 20% 13%;
  border:1px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;  /* 余白内で画像 2/3, テキスト 1/3 */
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .product-content{
    gap: 0.6rem;
  }

  .product-item{
    aspect-ratio: 1 / 1.5;
    grid-template-rows: 65% 23% 12%;
  }

  .product-item .product-caption{
    font-size:0.8rem !important;
    line-height:1.2 !important;
  }
}

.product-item img{
  width: auto;                  /* 横比率優先 */
  height: 100%;                 /* 行高 (66%) にフィット */
  max-width: 100%;              /* 横のはみ出し防止 */
  object-fit: contain;          /* 切り抜かず余白保持 */
  justify-self: center;
  align-self: center;
}

.product-item .product-caption{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
  white-space: normal;            /* ▼ 自然改行を許可 */
  overflow-wrap: break-word;      /* 長い単語で折り返し */
  /* ▼ 2 行まで表示し、それ以上は ... を付けてカット（必要なら有効化） */
  /* display: -webkit-box;
     -webkit-box-orient: vertical;
     -webkit-line-clamp: 2;
     overflow: hidden;             */
}

.product-item button{
  border:1px solid var(--primary-color);
  color:var(--primary-color);
  border-radius: 999px;
  font-size:0.7rem;
  background-color: #fff;
}


.product-item button{
  transition: transform 0.25s ease, box-shadow 0.25s ease; /* アニメーション設定 */
  will-change: transform;                                  /* パフォーマンス向上 */
}

.product-item button:hover{
  cursor:pointer;
  transform: scale(1.05);                 /* 浮き上がり＋微拡大 */
  color:#fff;
  background: linear-gradient(30deg, #00371f 0%, #002514 100%);
}

.not-products{
  text-align:center;
  padding-top:15vh;
  padding-bottom:10vh;
}







.overlay-form{
  display:none;
}
    /* ===== レスポンシブ (≤768px) ===== */
    @media (max-width: 768px) {
      .search-form { display: none; }
      .overlay-form{
        display:block;
      }
    }
