/* ========================================
   共通スタイル - ヘッダー & フッター
   ======================================== */

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ヘッダー */
.header {
  background-color: #EBF5F9; /* 薄い水色 */
  box-shadow: none;
  border-bottom: 1px solid rgba(15,23,42,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.1rem;
  font-weight: 500;
  color: #5f6368;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: #80868b;
  font-weight: 400;
  transition: color 0.3s;
  font-size: 0.8125rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.nav a:hover {
  color: #5f6368;
}

.nav a.active {
  color: #202124;
  position: relative;
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1.2rem;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #202124;
}

.cart-icon {
  position: relative;
}

.cart-icon a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  background-color: #2c3e50;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: all 0.3s;
}

.cart-icon a:hover {
  background-color: #3d5064;
}

.cart-svg {
  width: 20px;
  height: 20px;
  color: white;
}

.cart-count {
  color: white;
  font-size: 0.75rem;
  font-weight: 400;
}

/* フッター */
.footer {
  background-color: #ffffff;
  color: #5f6368;
  padding: 3rem 0 1.5rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(62,79,103,0.06);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-content {
  flex: 1;
  max-width: 600px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
  margin-left: auto;
  margin-right: 20rem;
}

.footer-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #202124;
}

.footer-content p {
  color: #5f6368;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #5f6368;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #1967d2;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(62,79,103,0.06);
  text-align: center;
}

.footer-bottom p {
  color: #80868b;
  font-size: 0.75rem;
}

/* ── カート追加トースト通知 ─────────────────────────── */
.cart-toast {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e0eef2;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(32,68,76,0.12);
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #2d4d58;
  font-family: 'Noto Sans JP', system-ui, sans-serif;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease;
  min-width: 180px;
}
.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.cart-toast-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #3aab8c;
}
.cart-limit-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  background: rgba(20, 33, 45, 0.92);
  color: #f8fbff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(2, 18, 32, 0.28);
  transition: opacity 0.18s ease, transform 0.2s ease;
  white-space: nowrap;
}
.cart-limit-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── グローバルカートドロワー ─────────────────────────── */
.global-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 36, 48, 0.34);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 3000;
}

.global-cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.global-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(460px, 100vw);
  height: 100dvh;
  background: #f2f7fb;
  box-shadow: -20px 0 38px rgba(24, 36, 48, 0.22);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 3001;
}

.global-cart-drawer.active {
  transform: translateX(0);
}

.global-cart-head {
  padding: 22px 24px;
  border-bottom: 1px solid #c7d9e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eef4f8;
}

.global-cart-title {
  margin: 0;
  color: #42556f;
  font-size: 1.22rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.global-cart-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #dce8f0;
  color: #5f738d;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.global-cart-items {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.global-cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 40px;
  gap: 14px;
}

.global-cart-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #e8f2f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.global-cart-empty-title {
  margin: 0;
  font-size: 1rem;
  color: #4a6680;
  letter-spacing: 0.01em;
}

.global-cart-empty-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #7a99ae;
}

.global-cart-empty {
  margin: 18px 0;
  text-align: center;
  color: #677f93;
  font-size: 0.95rem;
}

.global-cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  background: #eef6fb;
  border: 1.5px solid #c9ddea;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(46, 80, 99, 0.08);
}

.global-cart-thumb {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #d6e6f0;
  border: 1.5px solid #cce1ee;
}

.global-cart-thumb img,
.global-cart-thumb-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.global-cart-main {
  min-width: 0;
}

.global-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.global-cart-name {
  margin: 0;
  color: #4a5d78;
  font-size: 1.06rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-cart-remove {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: #ffecee;
  color: #dc3c3c;
  font-size: 1.3rem;
  cursor: pointer;
}

.global-cart-remove svg {
  width: 20px;
  height: 20px;
}

.global-cart-meta {
  margin-top: 4px;
  color: #7a90a4;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-cart-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid #d0d9e2;
}

.global-cart-price {
  margin-top: 6px;
  color: #4a5d78;
  font-size: 1.06rem;
  font-weight: 500;
}

.global-cart-qty {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.global-cart-qty button {
  width: 34px;
  height: 34px;
  border: 2px solid #c7dce8;
  border-radius: 12px;
  background: #fff;
  color: #4a5d78;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.global-cart-qty span {
  color: #4a5d78;
  font-size: 1rem;
  min-width: 28px;
  text-align: center;
}

.global-cart-foot {
  border-top: 1px solid #c7d9e5;
  background: #eef4f8;
  padding: 18px 20px 22px;
}

.global-cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  color: #5b7088;
  font-size: 1.02rem;
}

.global-cart-total-row strong {
  color: #4a5d78;
  font-size: 1.62rem;
}

.global-cart-view-btn {
  width: 100%;
  text-align: center;
  margin-top: 14px;
  display: block;
  text-decoration: none;
}

.global-cart-clear-btn {
  margin-top: 14px;
  width: 100%;
  border-radius: 50px;
  border: 2px solid rgb(62, 79, 103);
  background: #ffffff;
  color: rgb(62, 79, 103);
  padding: 0.8rem 1.8rem;
  font-size: 0.9375rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.18s ease, opacity 0.12s ease;
}

.global-cart-clear-btn:hover {
  background-color: #f6f7fb;
  border-color: rgb(52, 69, 93);
  opacity: 0.98;
}

@media (max-width: 900px) {
  .global-cart-drawer {
    width: 100vw;
  }

  .global-cart-head {
    padding: 14px 16px;
  }

  .global-cart-title {
    font-size: 1.16rem;
  }

  .global-cart-close {
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }

  .global-cart-items {
    padding: 12px;
    gap: 10px;
  }

  .global-cart-item {
    grid-template-columns: 72px 1fr;
    border-radius: 14px;
    padding: 10px;
    gap: 10px;
  }

  .global-cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .global-cart-name {
    font-size: 0.98rem;
  }

  .global-cart-meta {
    margin-top: 3px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .global-cart-dot {
    width: 10px;
    height: 10px;
  }

  .global-cart-price {
    margin-top: 5px;
    font-size: 0.95rem;
  }

  .global-cart-qty {
    margin-top: 7px;
    gap: 8px;
  }

  .global-cart-qty button {
    width: 34px;
    height: 34px;
    border-width: 1.5px;
    border-radius: 12px;
    font-size: 1.4rem;
  }

  .global-cart-qty span {
    font-size: 1rem;
  }

  .global-cart-remove {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .global-cart-foot {
    padding: 12px 12px 14px;
  }

  .global-cart-total-row {
    font-size: 0.92rem;
  }

  .global-cart-total-row strong {
    font-size: 1.56rem;
  }

  .global-cart-clear-btn {
    font-size: 0.92rem;
    padding: 9px 12px;
  }
}

/* レスポンシブ（フッター共通） */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    margin-left: 0;
    margin-right: 0;
  }

  .footer-content {
    max-width: 100%;
  }

  .footer-bottom {
    padding: 1.5rem 1rem 0;
  }
}


/* ========================================
   商品カード コンポーネント
   ========================================

   【概要】
   商品一覧ページで使用するカードUIです。
   画像エリア・バッジ・カラードット・価格・ボタンで構成されます。
   カードは product-data.js から JS で自動生成します（推奨）。

   【product-data.js の商品データ構造（1商品分）】
   --------------------------------------------------------
   {
     id: 1,
     name: 'トムのオリジナルTシャツ',  // 商品名
     price: 980,                        // 価格（数値）
     category: 'ウェア',                 // カテゴリ
     tag: '人気',                       // バッジ文字。'人気' / '新商品' / 'おすすめ' / '' (なし)
     description: '説明文...',            // 商品説明
     colors: ['#000000'],                // カラーバリエーション（16進数カラーコードの配列）
     image: ['image/tom1.png', 'image/tom2.png'],  // 商品画像（image/フォルダ内、1枚目がサムネイル）
   }
   --------------------------------------------------------
   ※ image が空配列 [] の場合、カードではカラードット、商品ページではカラープレビューが表示されます。

   ▼ tag とバッジクラスの対応
   '人気'     → class="product-badge popular"
   '新商品'   → class="product-badge new"
   'おすすめ' → class="product-badge recommend"
   '' (空文字) → バッジなし（HTML要素ごと省略）

   ▼ JSでカードを生成する関数の例（product-list.js で実際に使用中）
   --------------------------------------------------------
   const badgeClassMap = { '人気': 'popular', '新商品': 'new', 'おすすめ': 'recommend' };

   function getBadgeHTML(tag) {
     const cls = badgeClassMap[tag];
     return cls ? `<div class="product-badge ${cls}">${tag}</div>` : '';
   }

   function getColorDotsHTML(colors) {
     return colors.map((c, i) =>
       `<span class="color-dot${i === 0 ? ' selected' : ''}" style="background:${c};"></span>`
     ).join('');
   }

   function createProductCardHTML(product) {
     const hasImage = product.image && product.image.length > 0;
     const imageContent = hasImage
       ? `<img src="${product.image[0]}" alt="${product.name}">`
       : `<div class="color-dots">${getColorDotsHTML(product.colors)}</div>`;

     return `
       <div class="product-card"
            data-id="${product.id}"
            data-category="${product.category}"
            data-price="${product.price}"
            data-tag="${product.tag || ''}">
         ${getBadgeHTML(product.tag)}
         <div class="product-image">
           ${imageContent}
         </div>
         <div class="cart-button"></div>
         <div class="product-info">
           <h3 class="product-name">${product.name}</h3>
           <div class="color-dots">${getColorDotsHTML(product.colors)}</div>
           <div class="product-footer">
             <span class="product-price">¥${product.price.toLocaleString()}</span>
             <button class="view-details">詳細を見る →</button>
           </div>
         </div>
       </div>`;
   }

   // グリッドにまとめて挿入
   const grid = document.getElementById('productGrid');
   grid.innerHTML = productsData.map(createProductCardHTML).join('');
   --------------------------------------------------------

   ▼ 商品ページの画像カルーセル
   --------------------------------------------------------
   image 配列の画像をフェード切り替えで表示。
   - 1枚目が初期表示（一覧カードのサムネイルと同じ）
   - 左右矢印または下部ドットで切り替え
   - 画像がない商品はカラープレビューを表示
   → 実装は product-page.js の setupImageCarousel()
   --------------------------------------------------------

   ▼ サイズ選択（ウェアカテゴリのみ）
   --------------------------------------------------------
   category が 'ウェア' の商品だけ、カラー選択の下にサイズ選択が表示されます。
   大人: SS, S, M, L, LL
   子供: 120, 130, 140, 150
   → 実装は product-page.js の setupSizeSelection()
   --------------------------------------------------------

   ▼ 複数枚並べる場合の親グリッドCSS
   --------------------------------------------------------
   .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
   --------------------------------------------------------

   【クラス一覧】
   .product-card          カード全体のラッパー（幅可変）
   .product-badge         左上のバッジ
     .popular             水色 (#5fb3cc) ← tag: '人気'
     .new                 緑  (#5ebaa7) ← tag: '新商品'
     .recommend           水色 (#5fb3cc) ← tag: 'おすすめ'
   .product-image         上部の画像エリア（正方形・グラデーション背景）
   .product-image img     商品画像（object-fit: cover でフィット）
   .cart-button           ホバー時に右下に表示される丸いカートボタン
   .product-info          下部の白い情報エリア
   .product-name          商品名テキスト
   .color-dots            カラードットの横並びコンテナ
   .color-dot             1つのカラードット（styleで色を指定）
     .selected            選択中ドット（大きく・青い輪郭）
   .product-footer        価格とボタンを左右に並べるフレックス行
   .product-price         価格テキスト
   .view-details          「詳細を見る →」ボタン

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

/* ── カード本体 ── */
.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid #c1d9e5;
  box-shadow: 0 2px 8px 0 rgba(60, 64, 67, 0.08);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 300 / 450;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 8px 24px 0 rgba(60, 64, 67, 0.15);
  transform: translateY(-4px);
}

/* Navy button: shared style for primary actions (shape like category buttons, navy color) */
.navy-button {
  padding: 0.8rem 1.8rem;
  border: 2px solid rgb(62, 79, 103) !important;
  border-radius: 50px !important;
  background-color: rgb(62, 79, 103) !important;
  color: #ffffff !important;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: background-color 0.18s ease, transform 0.12s ease, opacity 0.12s ease;
}
.navy-button:hover{
  background-color: rgb(52, 69, 93) !important;
  border-color: rgb(52, 69, 93) !important;
  opacity: 0.98 !important;
}

/* Make sure SVG/icons inside navy buttons are visually solid and white */
.navy-button svg,
.navy-button .cart-btn-svg,
.navy-button .cart-svg {
  color: #ffffff; /* for currentColor-based SVGs */
  stroke: #ffffff !important;
  fill: #ffffff !important;
  stroke-width: 1.6px !important;
  opacity: 1 !important;
}

/* White button: same pill shape as .navy-button but white background and navy text */
.white-button {
  padding: 0.8rem 1.8rem;
  border: 2px solid rgb(62, 79, 103) !important;
  border-radius: 50px !important;
  background-color: #ffffff !important;
  color: rgb(62, 79, 103) !important;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  transition: background-color 0.18s ease, transform 0.12s ease, opacity 0.12s ease;
}
.white-button:hover{
  background-color: #f6f7fb !important;
  border-color: rgb(52, 69, 93) !important;
  opacity: 0.98 !important;
}

/* Make sure SVG/icons inside white buttons are navy-colored and visually solid */
.white-button svg,
.white-button .cart-btn-svg,
.white-button .cart-svg {
  color: rgb(62, 79, 103);
  stroke: rgb(62, 79, 103) !important;
  fill: rgb(62, 79, 103) !important;
  stroke-width: 1.6px !important;
  opacity: 1 !important;
}


/* ── バッジ ── */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 24px;
  font-size: 0.875rem;
  font-weight: 400;
  z-index: 10;
  color: white;
}

.product-badge.popular   { background-color: #5fb3cc; }
.product-badge.new       { background-color: #5ebaa7; }
.product-badge.recommend { background-color: #5fb3cc; }

/* ── 画像エリア ── */
.product-image {
  background: linear-gradient(135deg, #deeef5 0%, #cfe4ec 100%);
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 画像エリア内のカラードットは非表示（product-info 側だけ使う） */
.product-image .color-dots {
  display: none;
}

/* ── 商品情報エリア ── */
.product-info {
  padding: 1rem 1.2rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-name {
  font-size: 1.05rem;
  color: #5f6368;
  margin-bottom: 0.6rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── カラードット ── */
.color-dots {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  align-items: center;
}

.color-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #95a5a6;
  box-sizing: border-box;
}

.color-dot.selected {
  width: 28px;
  height: 28px;
  border: 2.5px solid #34495e;
  box-shadow: 0 0 0 3px #7dd3fc;
}

.color-dot:hover {
  transform: scale(1.1);
}

/* ── フッター（価格・ボタン） ── */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.product-price {
  font-size: 1.35rem;
  font-weight: 600;
  color: #5f6368;
}

.tax-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: #9aa0a6;
  margin-left: 2px;
}

.view-details {
  background-color: #EBF5F9;
  color: #5f6368;
  border: none;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 400;
  transition: background-color 0.18s ease, transform 0.12s ease, opacity 0.12s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.view-details:hover {
  background-color: #d0e8f2;
  color: #5f6368;
}

/* ========================================
   キーワード検索フォーム（共通ヘッダー用）
   ======================================== */
.search-form {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #d6e1e6;
  border-radius: 30px;
  padding: 6px 14px;
  transition: all 0.3s ease;
}

.search-form:focus-within {
  background: #fff;
  border-color: #00bcd4;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.1);
}

.search-input {
  border: none;
  background: none;
  outline: none;
  font-size: 1rem;
  width: 240px;
  color: #2c3e50;
  font-family: inherit;
}

/* Hide default browser search clear button (to prevent emoji-like 'X') */
input::-webkit-search-cancel-button,
input::-webkit-search-decoration,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration,
input::-ms-clear,
input::-ms-reveal {
  -webkit-appearance: none;
  display: none;
}

.search-input::placeholder {
  color: #b2bec3;
}

.search-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #4a637a;
  display: flex;
  align-items: center;
}

.search-btn:hover {
  color: #2c3e50;
}

/* 検索クリアボタンのスタイル */
.search-clear-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #b2bec3;
  display: none; /* 初期状態は非表示 */
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 5;
}

.search-clear-btn.visible {
  display: flex;
}

.search-clear-btn:hover {
  color: #5f6368;
}

.search-clear-btn svg {
  width: 16px;
  height: 16px;
}

/* ── 商品グリッド ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 300px);
  gap: 1.8rem;
  margin-bottom: 3rem;
  justify-content: center;
}

/* ── セクションヘッダー ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

/* 検索結果を閉じるボタンの調整 */
.close-search-btn {
  margin-left: 16px;
  align-self: center;
  padding: 8px 12px;
  border-radius: 12px;
}

/* 検索ヘッダー内でタイトルとボタンを縦方向中央揃えにする */
.search-results-section .section-header {
  align-items: center;
}

/* ボタン非表示の状態制御（アクセシビリティ） */
.search-results-section.hidden {
  display: none !important;
}

/* 浮かぶ閉じるボタン（右上） */
.search-results-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #eef3f6;
  box-shadow: 0 6px 18px rgba(32,50,60,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  z-index: 40;
}

.search-results-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(32,50,60,0.09);
}

.search-results-section {
  position: relative;
}

.title-wrap h2 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 400;
  margin: 0;
}

/* ── 検索結果セクション ── */
.search-results-section {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid #eef3f6;
  width: 100%;
}

.search-results-section.hidden {
  display: none;
}

.search-results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.search-results-section h2 {
  font-size: 2rem;
  margin: 0 0 32px;
  color: #2c3e50;
  font-weight: 300;
}

.search-close-btn {
  border: 1px solid #cddce5;
  background: #f7fbfd;
  color: #466173;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-close-btn:hover {
  background: #eef6fa;
  border-color: #b8cfdd;
  color: #2f4a5b;
}

.no-results {
  text-align: center;
  padding: 40px;
  color: #6b7b8a;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* ── ページ検索結果の個別スタイル ── */
.result-page {
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border: 1.5px solid #d6e1e6;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-page:hover {
  border-color: #4a637a;
  background: #ffffff;
}

.result-page-content {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.result-page-label {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4a637a;
  background: rgba(74, 99, 122, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.result-page-icon {
  width: 48px;
  height: 48px;
  background: #ebf5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a637a;
  margin-bottom: 1.2rem;
}

.result-page-icon svg {
  width: 24px;
  height: 24px;
}

.result-page-info {
  flex: 1;
}

.result-page-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.result-page-desc {
  font-size: 0.9rem;
  color: #6b7b8a;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-page-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed #d6e1e6;
}

.view-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4a637a;
  transition: color 0.2s;
}

.result-page:hover .view-link {
  color: #1967d2;
}

/* ── レスポンシブ (グリッド) ── */
@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(auto-fit, 300px);
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 1rem;
  }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* モバイル向けの検索結果最適化 */
@media (max-width: 600px) {
  .search-results-section {
    padding: 24px 12px;
  }

  .search-results-section .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 1.5rem;
  }

  .search-results-section .product-card {
    display: flex;
    flex-direction: column;
    height: auto;
    aspect-ratio: auto;
    border-radius: 12px;
    padding: 0;
  }

  .search-results-section .product-card .product-image {
    width: 100%;
    height: 160px;
    padding: 0.5rem;
    border-bottom: 1px solid #eef3f6;
  }

  .search-results-section .product-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .search-results-section .product-info {
    padding: 12px;
  }

  /* 浮かぶ閉じるボタンをモバイルでは固定丸ボタンにして操作しやすくする */
  .search-results-close-btn {
    position: fixed;
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e6eef2;
    box-shadow: 0 10px 30px rgba(11,37,64,0.16);
    z-index: 99999;
  }

  /* セクションヘッダーの余白を抑える */
  .search-results-section .section-header {
    margin-bottom: 16px;
    padding-right: 56px; /* 閉じるボタン分の余白 */
  }
}


/* ========================================
   圧倒的体験のモバイルメニュー (Premium Mobile Menu)
   ======================================== */

/* --- ハンバーガーボタン (ミニマル & 洗練) --- */
.mobile-menu-btn {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: #0b2540;
  border: none;
  border-radius: 50%;
  z-index: 2;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11, 37, 64, 0.28);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(11, 37, 64, 0.4);
}

.mobile-menu-btn .btn-inner {
  position: relative;
  width: 16px;
  height: 10px;
}

.mobile-menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { bottom: 0; width: 70%; left: 30%; }

/* ボタンがアクティブ（開いている）状態 */
.mobile-menu-btn.active {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn.active span {
  background: #0b2540;
  width: 100%;
  left: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* --- オーバーレイメニュー (放射状クリップパス & ブラー) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100%;
  height: 100%;
  background: #0b2540;
  z-index: 10000;
  visibility: hidden;
  clip-path: circle(0% at var(--menu-origin-x, calc(100% - 40px)) var(--menu-origin-y, 40px));
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
  overflow: hidden;
  overflow-x: clip;
  pointer-events: none;
  contain: paint;
}

.mobile-menu-overlay.active {
  visibility: visible;
  clip-path: circle(150% at var(--menu-origin-x, calc(100% - 40px)) var(--menu-origin-y, 40px));
  pointer-events: auto;
}

.overlay-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* 背景の動く装飾形状 */
.overlay-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.4;
  animation: floatShapes 20s infinite alternate ease-in-out;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: #00bcd4;
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: #4a637a;
  bottom: 10%;
  right: -50px;
  animation-delay: -5s !important;
}

@keyframes floatShapes {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 50px) scale(1.2); }
}

.mobile-menu-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: var(--menu-close-top, 24px) 32px 40px;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  margin-bottom: 60px;
}

.mobile-menu-header .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.close-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: fixed;
  top: var(--menu-close-top, 24px);
  left: var(--menu-close-left, calc(100% - 56px));
  border: none;
  border-radius: 50%;
  background: #0b2540;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 37, 64, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.close-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 28px rgba(11, 37, 64, 0.36);
}

/* --- 大胆なナビゲーションリンク --- */
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: flex-start;
  padding-top: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  padding: 15px 0;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  overflow: hidden;
}

.nav-number {
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  margin-right: 20px;
  font-weight: 300;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-text {
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 900;
  line-height: 1;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.mobile-menu-overlay.active .nav-number,
.mobile-menu-overlay.active .nav-text {
  transform: translateY(0);
  opacity: 1;
}

/* スタッガード・ディレイ */
.mobile-nav a:nth-child(1) .nav-number, .mobile-nav a:nth-child(1) .nav-text { transition-delay: 0.3s; }
.mobile-nav a:nth-child(2) .nav-number, .mobile-nav a:nth-child(2) .nav-text { transition-delay: 0.4s; }
.mobile-nav a:nth-child(3) .nav-number, .mobile-nav a:nth-child(3) .nav-text { transition-delay: 0.5s; }
.mobile-nav a:nth-child(4) .nav-number, .mobile-nav a:nth-child(4) .nav-text { transition-delay: 0.6s; }
.mobile-nav a:nth-child(5) .nav-number, .mobile-nav a:nth-child(5) .nav-text { transition-delay: 0.7s; }
.mobile-nav a:nth-child(6) .nav-number, .mobile-nav a:nth-child(6) .nav-text { transition-delay: 0.8s; }

.mobile-nav a:hover, .mobile-nav a.active {
  color: #ffffff;
  padding-left: 15px;
}

.mobile-nav a.active .nav-text {
  -webkit-text-stroke: 1px #ffffff;
  color: transparent;
}

/* --- フッターエリア --- */
.mobile-menu-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.social-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.social-links a:hover {
  opacity: 1;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* レスポンシブ制御 */
@media (min-width: 901px) {
  .mobile-menu-btn, .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex;
  }

  .header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 1.5rem !important;
    gap: 0;
  }

  .header .logo {
    order: 1;
    font-size: 1rem;
    text-align: center;
  }

  .right-controls {
    order: 2;
    margin-right: 0;
    margin-top: 8px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  #google_translate_element {
    display: none;
  }

  .right-controls .cart-icon a {
    width: 40px;
    height: 40px;
  }

  .right-controls .cart-svg {
    width: 20px;
    height: 20px;
  }

  .search-form {
    order: 3;
    width: 100%;
    margin-top: 10px;
    position: relative;
    display: flex;
    align-items: center;
  }

  .search-input {
    width: 100% !important;
    height: 40px;
    padding: 0 75px 0 15px;
    border-radius: 20px;
    border: none;
    background: transparent;
    font-size: 16px;
  }

  .search-clear-btn {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
  }

  .search-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #4a637a;
  }

  .header .nav {
    display: none !important;
  }
}
