@charset "UTF-8";

/* =======共通設定========= */
:root {
  --nav-z: 1000;
  --nav-scrim-z: 1001;
  /* 背景スクリーン */
  --nav-menu-z: 1002;
  /* メニュー本体（リスト） */
  --nav-button-z: 1003;
  /* ハンバーガー/✕ボタン */
  --container-max: 1200px;     /* コンテンツの最大幅 */
  --gap: clamp(12px, 2vw, 24px);
  --card-min: 260px;
}
 
html {
  scroll-behavior: smooth;
}

html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  margin: 0;
  line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}



.main-body{
  max-width:1200px;
  width:100%;
  margin-inline:auto;
  box-sizing:border-box;
}

/* 基本：親要素の文字色を使う */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
}
/* 下線の色も文字色に揃える（下線は残す例：推奨）*/
a {
  text-decoration-color: currentColor;
}

/* AI推奨------- / */

/* 0) ボックスサイズを標準化 */
*, *::before, *::after { box-sizing: border-box; }

/* 1) ブロック要素のデフォルト余白だけ消す（:whereで低い詳細度） */
:where(h1,h2,h3,h4,h5,h6,p,figure,blockquote,dl,dd){ margin: 0; }

/* 2) リストの外側余白/内側余白を消す（必要ならrole="list"で限定） */
:where(ul,ol){ margin: 0; padding: 0; }

/* 3) メディア要素のはみ出し防止 */
img, svg, video { display: block; max-width: 100%; height: auto; }

/* 4) 文字系の継承（フォーム崩しにくい最小限） */
button, input, select, textarea { font: inherit; }

/* 5) フォーカスは見えるように */
:focus-visible { outline: 3px solid Highlight; outline-offset: 2px; }




/* ========================================== */


/* ======ヘッダー======== */
header {
  background: #fff;
}

/* 1) h1/h2 のデフォルト余白をゼロに */
/* .header-logo h1,
.header-logo h2 {
  margin: 0;
} */
/* 
.header-logo h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #7285a1;
  font-weight: 580;
  margin-top: 1.5rem;
} */


/* ===============
  ナビバー
================== */

/* 画面上部に固定。初期は上に隠し、スクロール開始で .is-shown が付く想定 */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* 100vwは使わない（はみ出し防止） */
  z-index: var(--nav-z);
  background-color:#f1f2f4;
  transform: translateY(-100%);
  /* 初期は上に隠す */
  opacity: 0;
  /* フェードも併用 */
  transition:
    transform 420ms cubic-bezier(.2, .7, .2, 1),
    opacity 320ms ease-out;
}

.global-nav.is-shown {
  transform: translateY(0);
  opacity: 1;
}

/* デスクトップ：等間隔の横並び */
.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 端も含めて均等配置 */
  width: 100%;
  list-style: none;
  margin: 0;
  padding:1rem 0 0 0;
  gap: 3rem;
  /* space-evenly と gap の二重を避ける */
}

.nav-list a {
  color: #434c59;
  text-decoration: none;
  font-size: clamp(12px, 0.9rem + 0.3vw, 16px); /* ≈18pxで頭打ち */
  
  display: flex;               /* 中央寄せ用 */
  align-items: center;
  justify-content: center;
  height: 48px;                 /* 他の項目と揃える高さ */
  min-width: 80px;              /* 幅もある程度確保 */
  box-sizing: border-box;
  font-weight: 600;
}

/* 画像リンク用の調整 */
.nav-list li a img {
  max-height: 70%;              /* 親の高さに対する割合 */
  max-width: 100%;
  height: auto;
  width: auto;
  display: block;
}

/* ハンバーガー（PCでは非表示） */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #7285a1;
}

/* ===== モバイル（≤768px） ===== */
@media (max-width: 768px) {

  /* モバイルではナビ本体は常に画面上に配置（スクロール条件を無効化） */
  .global-nav {
    transform: none;
    opacity: 1;
  }

  /* ハンバーガー常時表示（前面固定） */
  .nav-toggle {
    display: block;
    position: fixed;
    /* メニューの上に出す */
    top: 8px;
    left: 12px;
    right: auto;
    z-index: var(--nav-button-z);

    background: none;
    border: 0;
    color: #7285a1;
    font-size: 30px;
    /* 少し大きめ */
    width: 44px;
    height: 44px;
    /* タップ推奨サイズ */
    line-height: 1;
  }

  /* メニューは全画面オーバーレイ（開くまで非表示） */
  .nav-list {
    position: absolute;
    /* 親 .global-nav は fixed のまま */
    inset: 0;
    height: 100svh;
    z-index: var(--nav-menu-z);

    display: flex;
    /* ★ display: none を使わない（アニメ可にする） */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;

    padding-top: calc(56px + env(safe-area-inset-top));
    padding-left: 16px;
    padding-right: 16px;
    gap: 8px;

    /* 背景はほぼ白。スクリーンが少し透けるように少しだけ透明 */
    background: rgba(255, 255, 255, 0.96);

    /* 閉じている間は視覚・操作ともに無効化（アニメ可能） */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    /* 開いた時だけスクロールに切替 */
    transform: translateY(-8px) translateZ(0);
    transition:
      opacity 320ms ease,
      transform 320ms ease,
      visibility 0s linear 320ms;
  }

  .global-nav.menu-open .nav-list {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transform: none;
    transition:
      opacity 360ms ease,
      transform 360ms ease,
      visibility 0s;
  }

  /* ボタンは前面固定（既に設定済みならそのままでOK） */
  .nav-toggle {
    position: fixed;
    z-index: var(--nav-button-z);
  }

  /* モバイルの各項目 */
  .nav-list a {
    display: block;
    width: 100%;
    padding: 14px 16px;
    font-size: 18px;
    /* モバイルでの読みやすさ優先 */
    color: #7285a1;
    text-decoration: none;
  }


  /* 背景を薄暗くするスクリーン（メニューを開いた時だけ有効） */
  .global-nav::before {
    content: "";
    position: fixed;
    /* 画面全体を覆う */
    inset: 0;
    z-index: var(--nav-scrim-z);
    background: rgba(0, 0, 0, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease, visibility 0s linear 240ms;
  }

  .global-nav.menu-open::before {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 280ms ease, visibility 0s;
  }
}

/* 買い物かご */
/* .floating-cart {
  position: fixed;
  top: 8px;
  right: 12px;
  z-index: var(--nav-button-z); /* ハンバーガーと同じかそれ以上 
} */

.floating-cart .cart-link svg {
  width: 30px;
  height: 30px;
  color: #7285a1;
}

/* 画面スクロール固定用（iOS対応の定番パターン） */
.scroll-lock {
  position: fixed;
  overflow: hidden;
  inset: 0;
  /* top/right/bottom/left:0 */
  width: 100%;
}

/* スマホ用の企業ロゴ---------------------------- */
/* .menu-logo {
  display: none;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1rem;
}

/* navがmenu-openのときに表示 
.global-nav.menu-open ~ .main-body .title_box .menu-logo {
  display: block;
} */


/* ======================================================================

人気商品

============ */
/* 「主題・副題」の設定 --------------------*/
.trend_title{
  text-align: center;
  font-size: clamp(18px, 2vw + 1rem, 30px);
  color: #7285A1;
  margin: 8rem auto 0 auto;
  font-family: "HGゴシックE", "ＭＳ ゴシック", sans-serif;
}

.product_title {
  text-align: center;
  font-size: clamp(18px, 2vw + 1rem, 30px);
  color: #7285A1;
  margin: 8rem auto 0 auto;
  font-family: "HGゴシックE", "ＭＳ ゴシック", sans-serif;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trend_subtitle,
.product_subtitle {
  text-align: center;
  font-size: clamp(16px, 0.52vw + 1rem, 24px);
  margin: 0 auto 0 auto;
  color: #A8C7FA;
  position: relative;
  /*下線を表示する親要素に対して「基準の位置」を指定 */
}

/* 下線設定-------------------------------- */
.trend_subtitle::after,
.product_subtitle::after {
  content: "";
  position: absolute;
  left: 50%;/* 左端が中央に来る */
  transform: translateX(-50%);/* 中央基準に全体を移動 */
  width: 80%;  /* 画面幅の% */
  max-width: 80%;  /* 最大でも%（親幅基準） */
  height: 1px;  /* 線の高さ */
  background-color: #22447D;
  display: block;  /* 幅・高さを反映させる */
  margin-bottom: 1rem;
}





/*スライド設定-----------------------------------------*/
.product-slider{
  /* ビューポート幅に拡張して中央レイアウトから“はみ出す” */
  width: 100vw;
  margin-left: calc(50% - 50vw);/* "-120px"*/
  /* (左端まではみ出るための距離を計算している。はみ出す分の距離=「親幅の50%−表示画面幅の50%」=1/2 - 1 */
  margin-right: calc(50% - 50vw);/*-120px*/
  /* 見切れ防止と演出 */
  position: relative;
  overflow: hidden;
}

/* PC/タブ：高さ = min( 100vw * 0.7(=10/7), 上限 ) */
.product-slider .swiper{
  width: 100%;
  /* 10:7 → 高さ = 幅 * 0.7。大画面では 680px を上限にする例 */
  height: min(calc(100vw * 0.7), 680px);
}

/* SP：4:5（=1.25）。ただし画面高を超えないように調整 */
/* @media (max-width: 600px){
  .product-slider .swiper{
    height: min(calc(100vw * 1.25), 85svh, 640px);
  }
} */

/* 中身は枠にフィット */
.product-slider .swiper-slide{ height: 100%; }
.product-slider .slider-card{ 
  display:block; width:100%; height:100%; 
}
.product-slider .slider-card img{
  display:block;
  width:100%; height:100%;
  object-fit: cover;
  object-position: center; /* 必要に応じて 50% 35% 等 */
}

/* スライダー内側に左右パディング＝チラ見せ幅の源 */
.product-slider .swiper{
  padding-inline: clamp(16px, 4vw, 48px);
}

/* 各スライドの幅を「コンテナ幅 − 両側の見せ幅」で決める */
.product-slider .swiper-slide{
  width: calc(100% - clamp(32px, 8vw, 96px));
  height: 100%; /* 既存の高さ制御に追従 */
}






/*=======前回レイアウト
 .product-slider {
  width: 100%;
  max-width:1200px; 
  margin:1rem auto 0 auto;    /* 中央寄せ 
  background: #f9f9f9;
  
}
.slider-card {
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 2px;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.slider-card img {
  width: 100%;
  aspect-ratio: 21 / 9;
  aspect-ratio: 21 / 9; より横長に 
  object-fit: cover;    /* 画像を枠いっぱいにトリミング 
  display: block;
} */



/* ==========================================================================-
  
商品一覧

===================================== */

/*   */
.shop-items{
  max-width: 1200px; /* 下のコンテンツと同じ幅に設定 */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0 20px;   /* 画面端との余白 */
}


/*  ナビアイコン ==============*/

.category-nav{
  margin-top: 2rem;
}

.category-btn{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* PCは常に4列 */
  gap: 24px;                    /* 既存の 3rem が広すぎれば24px程度に */
  max-width: 800px;            /* 上部コンテンツと同じ幅に揃える */
  width: 100%;
  margin: 0 auto;               /* 中央寄せ */
  padding: 0 20px;              /* 端の余白（必要に応じて調整） */
  list-style: none;
}
/* ▼4列が窮屈になる幅では2列へ */
@media (max-width: 768px){
  .category-btn{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
 
.category-item {
  display: flex;              /* 中央寄せ用 */
  flex-direction: column;     /* 画像→テキストの縦並び */
  justify-content: center;    /* 縦方向中央 */
  align-items: center;        /* 横方向中央 */
  padding: 1rem;
}

/* 1) 対象要素の祖先を「クエリコンテナ」にする */
.category-item { container-type: inline-size; }

/* 2) spanの文字サイズをコンテナ幅に応じて流体化 */
.category-item span{
  font-size: clamp(14px, 0.73vw + 11.3px, 20px);
  line-height: 1.4;
  color: #111827;
  font-weight: 600;
}


.category-item a {
  display: flex;
  flex-direction: column;     /* 画像→テキストの縦並び */
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.category-item img {
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s ease, transform 1s ease;
}



.category-item img:hover{
  opacity: 0.5;
  /* transform: scale(1.005); 拡大 */
}


/* フィルターボタン=========================================== */
.filter-bar {
  display: grid;
  grid-template-columns: 4fr 1.5fr 1.5fr 1.5fr 1.5fr;
  gap: 12px;
  align-items: center;
  max-width: 1200px;
  margin: 7rem auto 0 auto;
}

/* ここを変更：対象を .filter-btn に限定 */
.filter-item .filter-btn {
  width: 100%;
}

/* 初期状態：グリッド内の <select> を非表示にしておく */
.filter-item.sort-select {
  display: none;
}

/* 1200px以下では、並び替えボタングループ→<select>に切替 */
@media (max-width: 1200px) {

  /* 並び替えボタンを含むセルだけを消す */
  .filter-item:has([data-sort]) {
    display: none;
  }

  /* フォールバック（:has未対応ブラウザ用・任意） */
  @supports not (selector(:has(*))) {
    .filter-btn[data-sort] { display: none; }
    .filter-item:empty { display: none; }
  }

  /* <select> を表示し、1〜4列ぶんを占有（5列目はページネーション） */
  .filter-item.sort-select {
    display: block;
    grid-column: 1 / span 4;
  }

  /* ページネーションは右端で右寄せ */
  .filter-item.pagination {
    justify-self: end;
  }

  /* セレクトの見た目 */
  .sort-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    background: #f9fafb;
    font-size: 14px;
    margin-bottom: 0;
  }
}

/* 視覚的に隠すラベル（任意） */
.sr-only {
  position: absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip: rect(0 0 0 0); white-space:nowrap; border:0;
}

/* 既存の見た目系（そのまま維持でOK） */
.filters, .pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.filter-btn, .page-btn {
  appearance: none;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #111827;
  padding: 8px 12px;
  border-radius: 3px;
  min-height: 36px;
  min-width: 36px;
  cursor: pointer;
}
.page-btn { background-color: rgba(172,178,187,0.945); }
.page-btn_bottom { display: flex; justify-content: flex-end; }
.wide-filter { font-weight: 650; }
.filter-btn[aria-pressed="true"] { background:#6791d7; color:#fff; }
.page-btn[disabled] { opacity:.5; cursor:not-allowed; }
.filter-btn:hover:not([aria-pressed="true"]),
.page-btn:hover:not([disabled]) {
  background:#eef2ff; border-color:#6366f1;
}
.filter-btn:focus-visible,
.page-btn:focus-visible {
  outline: 3px solid #93c5fd; outline-offset: 2px;
}

/* ▼ ここからは“別の@media”として独立で書く（入れ子にしない） */
/* コンテンツ下部のページボタン */
.pagination-bottom {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 1rem 0 7rem 0;
}

/* 必要ならスマホ時にボタンを大きく */
@media (max-width: 768px) {
  .pagination-bottom .page-btn {
    padding: 10px 14px;
    font-size: 18px;
    min-width: 44px;
    min-height: 44px;
  }
}






/*===========================================
 商品一覧 ここから
======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min), 1fr));
  gap: var(--gap);
  width: 100%;
  /* 4列の幅（カード4枚＋ギャップ3つ＋左右パディング）を上限にすることで「上限4列」を実現 */
  max-width: calc(var(--card-min) * 4 + var(--gap) * 3);
  margin-inline: auto;
  margin:3rem auto 0 auto;
}

/* レスポンシブ対応 */
@media (max-width:768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットは2列 */
  }
}

.product-card {
  display: grid;
  gap: 8px;
  background: #fff;
  overflow: hidden; /* Safari対策でclipよりhiddenが無難 */
}

/* 画像とタイトルを含むリンクをブロック化（クリック範囲↑） */
.product-card > a{
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

 /* 画像：比率固定＋CLS対策 */
.product-card img{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card img:hover {
  opacity: 0.5; /* ホバー時に透過 */
  transform: scale(1.01); /* 5%拡大 */

}

/* ---レスポンシブ----------------- */
  /* PCやマウス操作がある環境だけでホバー効果を適用 */
@media (hover: hover) and (pointer: fine) {
  .product-card img {
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .product-card img:hover {
    opacity: 0.7;
  }
}


  /* タイトル：2行省略＋流体タイポ */
.product-name{
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  padding: 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price{
  font-variant-numeric: tabular-nums;
  padding: 0 12px 12px;
}

/* キーボード操作の可視フォーカス */
.product-card > a:focus-visible{
  outline: 3px solid Highlight;
  outline-offset: 4px;
  border-radius: calc(var(--radius) - 2px);
}



.back-to-top {
  position: fixed;         /* 画面に固定表示 */
  bottom: 20px;            /* 下から20px */
  right: 20px;             /* 右から20px */
  background-color: #bbe11a;  /* 背景色 */
  color: #fff;             /* 文字色 */
  padding: 10px 16px;      /* 内側余白 */
  border-radius: 4px;      /* 角丸 */
  text-decoration: none;   /* リンクの下線を消す */
  font-size: 14px;         /* 文字サイズ */
  transition: opacity 0.3s ease, background-color 0.3s ease;
  z-index: 1000;           /* 他要素より前面に表示 */
}

@media (max-width: 854px) {
  .back-to-top {
    display: none;  /* スマホでは非表示 */
  }
}

.back-to-top:hover {
  opacity:0.5;              /* ホバー時に不透明に */
  /* background-color: #e03f37;  背景色を少し明るく */
}

/* 商品一覧 ここまで----------*/

/* 商品一覧ここまで========= */



/* ============================================================

  フッター

================ */

footer{
  /* background-color:rgb(34,68,125,0.7); */
  border-top: 1px solid rgb(34,68,125,0.3);
  padding: 2rem 1rem 0 1rem;
}

.footer_nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* ロゴ＋3カラム */
  gap: 20px;
  list-style: none;
  /* padding: 0; */
  /* margin:  2rem auto; */

  /* 1) ブロック自体を中央寄せ */
  /* place-items: center; 各セル内で中央寄せ */
  max-width: 1200px;
  margin-inline: auto;
  /* 2) アイテムの上端を揃える（縦=align-items） */
  align-items: start;
}

.footer_nav-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer_nav-block a {
  color: #111827;
  text-decoration: none;
  font-size: 1rem;
}

.footer_nav-block a:hover {
  text-decoration: underline;
}

.footer_logo img {
  max-width: 150px; /* ロゴサイズ調整 */
  height: auto;
}

footer p {
  text-align: center;
  margin-top:1.5rem;
  font-size: 0.8rem;
  color: #ccc;
}

.footer_search-form{
  margin-top: 0.5rem;
}

/* スマホ対応：縦並び */
@media (max-width:550px) {
  .footer_nav-list {
    /* grid-template-columns: 1fr; */
    text-align: center;
    /* gap: 1rem; */
    display: block; /* Gridを解除 */

  }
   .footer_nav-block {
    margin-bottom: 1rem; /* 各ブロック間の余白 */
  }

  .footer_nav-block a {
    display: block;          /* 幅いっぱいにして上下余白を効かせやすく */
    padding: 8px 0;          /* 上下8pxの余白（お好みで調整） */
    margin: 0;               /* マージンはリセット */
    line-height: 1.5;        /* 行間を統一 */
  }


  .footer_logo {
    align-items: center;
  }
  footer p {
  margin-top:2rem;
}
}



/* フッターここまで================*/
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}