/* =====================================================================
 * Global Menu (header offcanvas + footer 共通) — minimal edition
 *
 * 3 グループ (商品から探す / ご利用案内 / イチリュウについて) で構成。
 * 装飾は控えめにし、リンク間の罫線も最小限に抑えてすっきり見せる。
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. カテゴリーカード（ハンバーガー展開画面 6 枚グリッド）の修正
 *    元の固定 height + img タグ未制御で右切れしていたので、
 *    aspect-ratio と object-fit で枠内に収める。
 * ------------------------------------------------------------------ */
.offcanvas-panel .category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.offcanvas-panel .category-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece5d6;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
  transition: transform 0.15s ease-out, border-color 0.15s ease-out;
}
.offcanvas-panel .category-item:active,
.offcanvas-panel .category-item:hover {
  border-color: var(--brand-gold, #c19a3d);
  transform: translateY(-1px);
}
.offcanvas-panel .category-item .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  margin: 0 0 6px;
  border-radius: 6px;
  background: #f7efde;
  overflow: hidden;
  position: relative;
}
.offcanvas-panel .category-item .thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.offcanvas-panel .category-item .cat-label,
.offcanvas-panel .category-item span {
  display: block;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #2f2a21;
  line-height: 1.4;
  margin: 0;
}

/* ---------------------------------------------------------------------
 * 2. グローバルメニュー共通（ミニマル）
 *    - グループタイトルは小さく、ゴールドで控えめに
 *    - リンク行に下罫線は付けない（罫線は group title のみ）
 *    - リンクは hover でゴールドに色変わる程度
 * ------------------------------------------------------------------ */
.global-menu {
  display: grid;
  gap: 24px;
}
.global-menu__group {
  margin: 0;
}
.global-menu__group-title {
  margin: 0 0 8px;
  padding: 0 0 4px;
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-gold-deep, #a07f2c);
  border-bottom: 1px solid rgba(160, 127, 44, 0.2);
}
.global-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.global-menu__item {
  margin: 0;
}
.global-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  text-decoration: none;
  color: inherit;
  border: 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 40px;
  transition: color 0.15s ease-out;
}
.global-menu__link:hover,
.global-menu__link:focus-visible {
  color: var(--brand-gold-deep, #a07f2c);
}
.global-menu__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.global-menu__chev {
  flex: 0 0 auto;
  color: rgba(160, 127, 44, 0.5);
  font-size: 14px;
  line-height: 1;
}

/* ---------------------------------------------------------------------
 * 3. オフキャンバス (ハンバーガー展開) 用バリアント
 * ------------------------------------------------------------------ */
.global-menu--offcanvas {
  margin-top: 8px;
}
.global-menu--offcanvas .global-menu__list {
  grid-template-columns: 1fr;
  gap: 0;
}
/* Offcanvas remains a narrow drawer on tablet/PC, so keep the same stacked
   guide layout as mobile instead of forcing three cramped columns. */
@media (min-width: 768px) {
  .global-menu--offcanvas {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------------------------------------------------------------------
 * 4. フッター用バリアント（ベージュ背景 → ダーク文字）
 * ------------------------------------------------------------------ */
.footer-modern .footer-menu .global-menu {
  gap: 28px;
}
.footer-modern .footer-menu .global-menu__group-title {
  color: var(--brand-gold-deep, #a07f2c);
  border-bottom-color: rgba(160, 127, 44, 0.25);
}
.footer-modern .footer-menu .global-menu__link {
  color: var(--brand-ink, #2f2a21);
}
.footer-modern .footer-menu .global-menu__link:hover,
.footer-modern .footer-menu .global-menu__link:focus-visible {
  color: var(--brand-gold-deep, #a07f2c);
}
.footer-modern .footer-menu .global-menu__chev {
  color: rgba(160, 127, 44, 0.5);
}

/* タブレット以上は 3 グループ横並び */
@media (min-width: 768px) {
  .footer-modern .footer-menu .global-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
}

/* End of global-menu.css */
