/* カスタマイズ用CSS */

/* ===============================
 * Design Tokens
 * =============================== */
/*
 * Breakpoints (統一定義)
 * --------------------------------------------------
 * SP  : max-width: 767px  (768px 未満)
 * TAB : 768px 〜 1023px
 * PC  : min-width: 1024px
 *
 * 新規記述時は必ず上記の値を使用すること。
 * 768px と 767px の混在禁止（767px に統一）
 * 1024px と 1023px の混在禁止（767px 境界の上は min-width: 768px に統一）
 * --------------------------------------------------
 */
:root {
  /* Text */
  --color-text-body: #0f172a;
  --color-text-primary: #1e293b;
  --color-text-secondary: #334155;
  --color-text-link: #33a8d0;
  --color-text-success: #15803d;
  --color-text-warning: #b45309;
  /* Surfaces */
  --color-bg-surface: #ffffff;
  --color-bg-muted: #f5f6f8;
  --color-bg-muted-end: #eef1f4;
  --color-bg-placeholder: rgba(248, 250, 252, 0.8);
  --color-bg-section: #f8f9fa;
  --color-bg-thumb-muted: #f4f4f5;
  --color-bg-cream-start: #fffefb;
  --color-bg-cream-end: #f9f7f4;
  /* Borders */
  --color-border-strong: #e0e0e0;
  --color-border-default: #dfe3e8;
  --color-border-subtle: #e5e7eb;
  --color-border-dashed: #e2e8f0;
  --color-border-divider: rgba(226, 232, 240, 0.85);
  --color-border-soft: rgba(226, 232, 240, 0.9);
  /* Brand-tinted surfaces (レビューCTA等) */
  --color-brand-surface: rgba(182, 158, 132, 0.14);
  --color-brand-border: rgba(139, 111, 71, 0.24);
  --color-brand-surface-hover: rgba(182, 158, 132, 0.22);
  --color-brand-border-hover: rgba(139, 111, 71, 0.42);
  --color-brand-border-accent: rgba(182, 158, 132, 0.45);
  --color-brand-base: #b69e84;
  --color-brand-dark: #8b6f47;
  --color-brand-deeper: #6f5538;
  --color-text-inverse: #ffffff;
  /* Elevation */
  --color-shadow-soft: rgba(15, 23, 42, 0.05);
  --color-shadow-card: rgba(0, 0, 0, 0.1);
  --color-shadow-card-hover: rgba(0, 0, 0, 0.15);
  --color-shadow-brand: rgba(182, 158, 132, 0.4);
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  /* Animation */
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Line Height */
  --leading-tight: 1.3;
  --leading-base: 1.5;
  --leading-loose: 1.7;
}

/* ===============================
 * Modern header decoration
 * =============================== */
.ec-layoutRole__header {
  position: static;
  background: var(--color-bg-surface);
  border-bottom: none;
}

.ec-layoutRole__header .ec-headerNaviRole {
  background: var(--color-bg-surface);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  padding: 8px 10%;
}

/* PC: タイトル（ec-headerRole）以外のヘッダーを固定 */
@media (min-width: 768px) {
  .ec-layoutRole__header .ec-headerNaviRole {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 130;
    width: 100vw;
    max-width: 100vw;
    background: var(--color-bg-surface);
  }

  /* デバッグモード表示時は、そのバーの下に固定ヘッダーを配置 */
  body:has(.ec-debugModeAlert) .ec-layoutRole__header .ec-headerNaviRole {
    top: 50px;
  }

  /* 固定化したヘッダー分だけタイトル帯を下げる */
  .ec-layoutRole__header .ec-headerRole {
    margin-top: 56px;
  }
}

/* ===============================
 * CMS blog page visuals
 * =============================== */
.ec-cmsPage--blog {
  max-width: 900px;
  margin: 0 auto;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px;
}

.ec-cmsPage__meta {
  margin-bottom: 12px;
}

.ec-cmsPage__category {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(185, 152, 116, 0.12);
  color: #2d6a6a;
  font-size: 12px;
  font-weight: 700;
}

.ec-cmsPage--blog img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}

.ec-cmsPage--blog figure {
  margin: 1rem 0;
}

.ec-cmsPage--blog table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.ec-cmsPage--blog table th,
.ec-cmsPage--blog table td {
  border: 1px solid #dbe3ed;
  padding: 10px;
}

/* 左サイドバー（カテゴリナビ）：画面サイズ（ビューポート）に応じて下にずらす */
/* z-index を高めにしてメインエリア・スライダーに重なってもクリック可能に */
.ec-layoutRole .ec-layoutRole__left {
  margin-top: 280px;
  position: relative;
  z-index: 100;
}

/* メインエリアはサイドバーより手前に描画されないように（新着情報がカテゴリメニューに被らない） */
.ec-layoutRole .ec-layoutRole__mainWithColumn {
  position: relative;
  z-index: 1;
}

/* マイページログイン画面：カテゴリーメニューを非表示 */
body#page_mypage_login .ec-layoutRole__left {
  display: none !important;
}

body#page_mypage_login .ec-layoutRole__mainWithColumn {
  width: 100%;
  max-width: 100%;
}

body#page_mypage_login .ec-categoryNaviRole {
  display: none !important;
}

/* マイページログイン：フォーム周りのグレー背景を角丸に */
body#page_mypage_login .ec-login {
  border-radius: 16px;
  overflow: hidden;
}

/* ショップオーナーログイン：マイページログインと同じレイアウト調整 */
body#page_shop_owner_login .ec-layoutRole__left {
  display: none !important;
}

body#page_shop_owner_login .ec-layoutRole__mainWithColumn {
  width: 100%;
  max-width: 100%;
}

body#page_shop_owner_login .ec-categoryNaviRole {
  display: none !important;
}

body#page_shop_owner_login .ec-login {
  border-radius: 16px;
  overflow: hidden;
}

/* カテゴリーナビ：モダンなデザイン（左サイドバー内） */
.ec-layoutRole__left .ec-categoryNaviRole.category-nav-modern,
.ec-categoryNaviRole.category-nav-modern {
  margin: 0;
  padding: 0;
  max-width: none;
  font-size: 15px;
  position: relative;
  z-index: 10;
}

/* 左カラムのカテゴリーナビを少し左へ寄せる */
.ec-layoutRole__left .ec-categoryNaviRole.category-nav-modern {
  left: -12px;
}

.category-nav-modern__heading {
  margin: 0 0 12px;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.02em;
}

/* カテゴリーナビ直下：ショップで探す */
.ec-layoutRole__left .ec-categoryNaviRole.category-nav-modern.shop-nav-modern,
.ec-categoryNaviRole.category-nav-modern.shop-nav-modern {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 26, 46, 0.1);
}

.ec-layoutRole__left .ec-categoryNaviRole.category-nav-modern.media-nav-modern,
.ec-categoryNaviRole.category-nav-modern.media-nav-modern {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(26, 26, 46, 0.1);
}

/* トップ：ご利用の流れ（PCはHTMLステップ / SPは画像） */
.top-rental-step {
  padding: 8px 16px 28px;
  box-sizing: border-box;
}

/* SP: ヒーロー直下の画像ブロック（PCでは非表示） */
.top-rental-step--after-hero-sp {
  display: none;
}

.top-rental-step__inner {
  max-width: 1140px;
  margin: 0 auto;
}

.top-rental-step__flow {
  display: none;
}

.top-rental-step__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 767px) {
  .top-rental-step--after-hero-sp {
    display: block;
    padding-top: 4px;
    padding-bottom: 12px;
  }

  .top-rental-step--after-hero-sp .top-rental-step__img--after-hero-sp {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  /* 画像はヒーロー直下に集約（カテゴリー・人気の下の重複を避ける） */
  .top-rental-step--main {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .top-rental-step {
    padding: 20px 24px 48px;
  }

  .top-rental-step__flow {
    display: block;
    padding: 32px 28px 36px;
    border-radius: 24px;
    background: #faf8f5;
    border: 1px solid rgba(185, 152, 116, 0.2);
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
  }

  .top-rental-step__img {
    display: none !important;
  }

  .top-rental-step__head {
    text-align: center;
    margin-bottom: 28px;
  }

  .top-rental-step__label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b99874;
  }

  .top-rental-step__title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
  }

  .top-rental-step__steps {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    padding: 0;
  }

  .top-rental-step__item {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 20px 14px 22px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(185, 152, 116, 0.2);
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.04);
    position: relative;
  }

  .top-rental-step__num {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: #b99874;
    box-shadow: none;
  }

  .top-rental-step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 8px auto 14px;
    border-radius: 14px;
    background: rgba(185, 152, 116, 0.14);
    color: #6b5344;
    font-size: 22px;
  }

  .top-rental-step__name {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: -0.02em;
  }

  .top-rental-step__desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #64748b;
  }

  .top-rental-step__sep {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    color: rgba(107, 83, 68, 0.55);
    font-size: 13px;
    align-self: center;
    margin: 0 -2px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .top-rental-step__item {
    padding: 18px 10px 20px;
  }

  .top-rental-step__name {
    font-size: 14px;
  }

  .top-rental-step__desc {
    font-size: 12px;
  }

  .top-rental-step__icon {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .top-rental-step__sep {
    width: 20px;
  }
}

/* 商品カルーセル（人気商品・新着商品共通） */
.popular-carousel-wrap,
.popular-carousel-wrap.ec-topicRole,
.new-item-carousel-wrap,
.new-item-carousel-wrap.ec-topicRole {
  margin: 8px 0 16px;
  padding: 8px 8px 12px;
  border-radius: 16px;
  box-sizing: border-box;
}

/* ショップ一覧（/stores） */
.store-list__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.store-list__item {
  min-width: 0;
}

.store-list__card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.store-list__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-list__link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.14);
  border-color: rgba(92, 177, 177, 0.35);
}

/* /stores: フラットデザイン（シャドウ・グラデーション・浮き上がりを抑制） */
body.store_page_list .store-list__link,
body.store_page_list .store-list__link.cms42-list__rowLink {
  background: #fff;
  border: 1px solid #d1d5db;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.store_page_list .store-list__link:hover,
body.store_page_list .store-list__link.cms42-list__rowLink:hover {
  transform: none;
  box-shadow: none;
  border-color: #b99874;
  background: #fafafa;
}

body.store_page_list .store-list__image {
  background: #f3f4f6;
}

body.store_page_list .store-list__filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

body.store_page_list .store-list__filter-btn {
  background: #b99874;
  box-shadow: none;
  transition: background-color 0.2s ease;
}

body.store_page_list .store-list__filter-btn:hover {
  background: #8f6f4d;
}

body.store_page_list .store-list__filter-btn:active {
  transform: none;
}

.store-list__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(185, 152, 116, 0.12), rgba(245, 158, 11, 0.10));
}

.store-list__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-list__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-list__placeholder-icon {
  font-size: 34px;
  color: rgba(15, 23, 42, 0.45);
}

.store-list__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.store-list__badge {
  align-self: flex-start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #b99874;
  background: rgba(185, 152, 116, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
}

.store-list__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.store-list__desc {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-list__actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.store-list__cta {
  font-weight: 700;
  color: #1a1a2e;
}

.store-list__cta-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(185, 152, 116, 0.12);
  color: #2d6a6a;
}

@media (max-width: 767px) {
  .store-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .store-list__content {
    padding: 10px 10px 12px;
  }

  .store-list__title {
    font-size: 14px;
  }

  .store-list__desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .store-list__placeholder-icon {
    font-size: 24px;
  }
}

/* ショップ一覧：絞り込み（キーワード・並び替え） */
.store-list__filter {
  margin: 14px 10px 28px;
  padding: 26px 28px;
  background: rgba(248, 250, 252, 0.95);
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.store-list__filter-form {
  margin: 0;
}

.store-list__filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.store-list__filter-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.store-list__filter-keyword {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 260px;
  min-width: 0;
}

.store-list__filter-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--input-text);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.store-list__filter-input:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: none;
}

.store-list__filter-btn {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #b99874;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.store-list__filter-btn:hover {
  background: var(--color-brand-dark);
}

.store-list__filter-btn:active {
  background: var(--color-brand-deeper);
  transform: scale(0.98);
}

.store-list__filter-sort {
  flex: 0 0 auto;
  min-width: 200px;
}

.store-list__filter-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 36px 10px 14px;
  font-size: 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.store-list__filter-select:focus {
  outline: none;
  border-color: #b99874;
}

.store-list__filter-result {
  margin: 14px 0 0 0;
  font-size: 14px;
  color: #475569;
}

.store-list__filter-count {
  font-weight: 700;
  color: #0f172a;
}

.store-list__filter-clear {
  margin-left: 12px;
  color: #2563eb;
  text-decoration: underline;
}

.store-list__filter-clear:hover {
  color: #1d4ed8;
}

/* キーワード行のラベル＋入力（CMS・商品一覧で /stores と同型に） */
.store-list__filter-keyword-block {
  flex: 1 1 280px;
  min-width: 0;
}

.store-list__filter-hint {
  margin: 12px 0 0 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.55;
}

.store-list__filter .ec-searchConditions {
  margin: 14px 0 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #475569;
  background: transparent;
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}

.store-list__filter .ec-searchConditions__label {
  font-weight: 700;
  color: #334155;
}

.store-list__filter .ec-searchConditions__chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 767px) {
  .store-list__filter {
    margin: 12px 6px 22px;
    padding: 20px 18px;
  }

  .store-list__filter-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .store-list__filter-keyword {
    flex: none;
    flex-wrap: wrap;
  }

  .store-list__filter-sort {
    min-width: 0;
  }

  .store-list__filter-keyword-block {
    flex: none;
  }

  /* スマホ：カテゴリは横スクロールカルーセルに任せ、セレクトは非表示 */
  .store-list__filter-sort--category {
    display: none !important;
  }
}

/* CMS ページ・記事一覧（/cms/pages 等・body.cms_page_list）：カード・絞り込みをフラット化 */
body.cms_page_list .ec-pageHeader::after {
  background: #8b6f47;
}
body.cms_page_list .store-list__link.cms42-list__rowLink {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
body.cms_page_list .store-list__link.cms42-list__rowLink:hover {
  transform: none;
  box-shadow: none;
  border-color: #b99874;
  background: #fafafa;
}
body.cms_page_list .store-list__link.cms42-list__rowLink:active {
  transform: none;
}
body.cms_page_list .store-list__image {
  background: #f1f5f9;
}
body.cms_page_list .store-list__filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}
body.cms_page_list .store-list__filter-btn {
  box-shadow: none;
}
body.cms_page_list .store-list__filter-btn:active {
  transform: none;
}
body.cms_page_list .cms42-list__readmore-icon {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

/* ショップ一覧：スマホ向けカテゴリカルーセル（PCでは非表示） */
.store-category-carousel {
  display: none;
  margin: 6px 8px 16px;
  scroll-margin-top: 72px;
}

.store-category-carousel__track-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 0;
}

.store-category-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: visible;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  padding: 2px 0 0;
  justify-content: center;
}

.store-category-carousel__track::-webkit-scrollbar {
  display: none;
}

.store-category-carousel__chip {
  flex: 1 1 0;
  min-width: 0;
  max-width: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #374151;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease;
}

.store-category-carousel__chip:hover,
.store-category-carousel__chip:focus-visible {
  opacity: 0.88;
  text-decoration: none;
}

.store-category-carousel__chip-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid #d6dae0;
  background: #f8fafc;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.store-category-carousel__chip-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

.store-category-carousel__chip-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  line-height: 1.15;
}

.store-category-carousel__chip.is-active .store-category-carousel__chip-icon {
  border-color: var(--color-brand-dark);
  color: var(--color-brand-dark);
  background: #fffaf3;
  box-shadow: 0 0 0 2px rgba(182, 158, 132, 0.12);
}

.store-category-carousel__chip.is-active .store-category-carousel__chip-label {
  color: #111827;
}

.store-category-carousel__arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  padding: 0;
  cursor: pointer;
}

.store-category-carousel__arrow:hover,
.store-category-carousel__arrow:focus-visible {
  color: #6b7280;
  outline: none;
}

.store-category-carousel__arrow i {
  font-size: 22px;
  line-height: 1;
}

@media (max-width: 767px) {
  .store-category-carousel {
    display: block;
  }
}

/* ヘッダー検索：1段バー（カテゴリ＋キーワード＋検索）・一覧/ショップと色・角丸を揃える */
.ec-headerSearch__srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ec-headerSearch--storeListUnified {
  background: transparent;
  overflow: visible;
}

.ec-headerSearch--storeListUnified form.ec-headerSearch__barForm {
  display: block;
  width: 100%;
  max-width: min(100%, 640px);
  margin: 0;
}

.ec-headerNaviRole__left .ec-headerNaviRole__search .ec-headerSearch--storeListUnified form.ec-headerSearch__barForm {
  max-width: 100%;
}

.ec-headerSearch__bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 38px;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.ec-headerSearch__barSegment {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.ec-headerSearch__barSegment--category {
  flex: 0 0 auto;
  max-width: 32%;
  border-right: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.92);
}

.ec-headerSearch__barSegment--keyword {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect {
  margin: 0;
  height: 100%;
  min-height: 38px;
  display: flex;
  align-items: stretch;
}

.ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect.ec-select::before {
  border-top-color: #64748b;
  right: 10px;
  z-index: 1;
  pointer-events: none;
}

.ec-headerSearch--storeListUnified .ec-headerSearch__categoryField,
.ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  height: 100%;
  margin: 0;
  padding: 0 28px 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #334155;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}

.ec-headerSearch--storeListUnified .ec-headerSearch__categoryField:focus,
.ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect select:focus {
  outline: none;
}

/* フォーカス時も外枠はグレーのみ（茶色の枠・リングは付けない） */
.ec-headerSearch__bar:focus-within {
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.ec-headerSearch__keywordField {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  height: 100%;
  margin: 0;
  padding: 0 40px 0 12px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.ec-headerSearch__keywordField::placeholder {
  color: #94a3b8;
}

.ec-headerSearch__keywordField:focus {
  outline: none;
}

.ec-headerSearch__submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 0;
  background: linear-gradient(180deg, #c4a882 0%, #b99874 100%);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

/* ホバーも茶系のまま（緑にはしない） */
.ec-headerSearch__submit:hover {
  background: linear-gradient(180deg, #ae8f6c 0%, #9a7b59 100%);
  color: #fff;
}

.ec-headerSearch__submit:focus {
  outline: none;
}

.ec-headerSearch__submit:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.85);
  outline-offset: 1px;
  box-shadow: none !important;
}

/* ヘッダー検索バー内：グローバル focus-visible の茶色リングを付けず、必要ならグレーのみ */
.ec-headerSearch__bar input:focus-visible,
.ec-headerSearch__bar select:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.65) !important;
  outline-offset: 1px !important;
  box-shadow: none !important;
}

.ec-headerSearch__submit:active {
  transform: scale(0.98);
}

@media (min-width: 768px) {
  .ec-headerSearch__bar {
    min-height: 40px;
  }

  .ec-headerSearch--storeListUnified .ec-headerSearch__categoryField,
  .ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect select {
    min-height: 40px;
    padding-left: 12px;
    font-size: 13px;
  }

  .ec-headerSearch__barSegment--category {
    flex: 0 0 128px;
    max-width: 148px;
  }

  .ec-headerSearch__keywordField {
    min-height: 40px;
    font-size: 13px;
    min-width: 0;
  }

  /* PC：検索をややコンパクトに（左42%） */
  .ec-headerNaviRole:has(.ec-headerSearch--storeListUnified) .ec-headerNaviRole__left {
    width: 42%;
    min-width: 0;
  }

  .ec-headerNaviRole:has(.ec-headerSearch--storeListUnified) .ec-headerNaviRole__right {
    width: 58%;
    min-width: 0;
  }

  .ec-headerNaviRole:has(.ec-headerSearch--storeListUnified) .ec-headerNaviRole__search {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .ec-headerNaviRole:has(.ec-headerSearch--storeListUnified) .ec-headerSearch--storeListUnified {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .ec-headerSearch--storeListUnified form.ec-headerSearch__barForm {
    max-width: 100%;
  }

  .ec-headerSearch__barSegment--category {
    flex: 0 0 118px;
    max-width: 36%;
  }

  .ec-headerSearch--storeListUnified .ec-headerSearch__categoryField,
  .ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect select {
    padding: 0 26px 0 10px;
    font-size: 16px;
    min-height: 44px;
  }

  .ec-headerSearch__bar {
    min-height: 44px;
  }

  .ec-headerSearch__keywordField {
    min-height: 44px;
    font-size: 16px;
    padding-left: 12px;
  }

  .ec-headerSearch__submit {
    width: 46px;
    min-height: 44px;
  }
}

.ec-drawerRole .ec-headerSearch--storeListUnified form.ec-headerSearch__barForm {
  max-width: 100%;
}

/* ドロワー（スマホメニュー）内：カテゴリを上段・キーワード＋検索を下段 */
.ec-drawerRole .ec-headerSearch__bar {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
}

.ec-drawerRole .ec-headerSearch__barSegment--category {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  border-right: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.ec-drawerRole .ec-headerSearch__barSegment--keyword {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.ec-drawerRole .ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect {
  min-height: 44px;
}

.ec-drawerRole .ec-headerSearch--storeListUnified .ec-headerSearch__categoryField,
.ec-drawerRole .ec-headerSearch--storeListUnified .ec-headerSearch__nativeSelect select {
  min-height: 44px;
  font-size: 16px;
  padding: 0 32px 0 14px;
}

.ec-drawerRole .ec-headerSearch__keywordField {
  min-height: 44px;
  font-size: 16px;
  padding-left: 14px;
}

.ec-drawerRole .ec-headerSearch__submit {
  width: 48px;
  min-height: 44px;
}

/* スマホドロワー表示時の閉じるボタンを右上に固定 */
.ec-drawerRoleClose {
  left: auto;
  right: 12px;
  top: 12px;
  z-index: 100100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.98);
  color: #334155;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.ec-drawerRoleClose.is_active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ec-drawerRoleClose .fas {
  position: static;
  transform: none;
  font-size: 18px;
}

@media (max-width: 767px) {
  .ec-drawerRoleClose {
    right: 10px;
    top: 10px;
  }
}

/* ドロワーメニュー下部リンクエリア：デフォルトの黒をブランド茶色に統一 */
.ec-drawerRole .ec-headerLinkArea {
  background: var(--color-brand-dark);
}

.ec-drawerRole .ec-headerLinkArea .ec-headerLink__list {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ec-drawerRole .ec-headerLinkArea .ec-headerLink__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ec-drawerRole .ec-headerLinkArea .ec-headerLink__item:hover {
  background: var(--color-brand-deeper);
  color: #ffffff;
}

/* ショップ詳細（/store/{id}/products）上部カード */
.store-profile {
  display: flex;
  gap: 18px;
  /* center だと右カラム（説明・営業時間）の高さ変化で左のアバターが縦に動く */
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.10);
  margin: 10px 0 18px;
}

.store-profile__media {
  flex: 0 0 180px;
  align-self: flex-start;
}

.store-profile__img {
  width: 180px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, rgba(185, 152, 116, 0.12), rgba(245, 158, 11, 0.10));
}

.store-profile__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-profile__placeholder-icon {
  font-size: 30px;
  color: rgba(15, 23, 42, 0.45);
}

.store-profile__body {
  min-width: 0;
  flex: 1 1 auto;
}

.store-profile__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.store-profile__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(184, 153, 117, 0.4);
  color: #6e573b;
  background: #fff;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.store-profile__action-btn:hover {
  text-decoration: none;
  color: #4f3e2a;
  border-color: rgba(184, 153, 117, 0.7);
  background: #fff9f2;
}

.store-profile__favorite-btn.is-active {
  color: #fff;
  border-color: #b99874;
  background: linear-gradient(135deg, #b99874 0%, #9d7d59 100%);
  box-shadow: 0 4px 12px rgba(157, 125, 89, 0.25);
}

.store-profile__favorite-btn.is-active:hover {
  color: #fff;
  border-color: #8f6f4d;
  background: linear-gradient(135deg, #a98965 0%, #8f6f4d 100%);
}

.store-profile__contact-btn {
  color: #2d6a6a;
  border-color: rgba(45, 106, 106, 0.35);
  background: rgba(255, 255, 255, 0.98);
}

.store-profile__contact-btn:hover {
  color: #1f4f4f;
  border-color: rgba(45, 106, 106, 0.55);
  background: rgba(235, 247, 247, 0.9);
}

.store-profile__about-toggle {
  margin: 2px 0 0;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: #1a1a2e;
  font-weight: 700;
  cursor: pointer;
}

.store-profile__about-toggle-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(185, 152, 116, 0.12);
  color: #2d6a6a;
  transition: transform 0.2s ease;
}

.store-profile__about-toggle[aria-expanded="true"] .store-profile__about-toggle-icon {
  transform: rotate(180deg);
}

.store-profile__about {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.store-profile__desc {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.store-profile__desc--muted {
  color: #94a3b8;
}

.store-profile__hours {
  margin-top: 10px;
}

.store-profile__hours-heading {
  display: block;
  margin-bottom: 8px;
}

.store-profile__hours-table {
  width: 100%;
  max-width: 420px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.store-profile__hours-table th,
.store-profile__hours-table td {
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.store-profile__hours-table thead th {
  background: rgba(241, 245, 249, 0.85);
  font-weight: 600;
  color: #334155;
}

.store-profile__hours-table tbody th {
  font-weight: 500;
  width: 28%;
  background: rgba(248, 250, 252, 0.9);
}

.store-profile__hours-table tbody tr:nth-child(even) td,
.store-profile__hours-table tbody tr:nth-child(even) th {
  background: rgba(248, 250, 252, 0.45);
}

@media (max-width: 767px) {
  .store-profile {
    flex-direction: column;
    align-items: stretch;
  }

  .store-profile__media {
    flex: 0 0 auto;
    align-self: stretch;
  }

  .store-profile__img {
    width: 100%;
    height: 160px;
  }
}

.popular-carousel-wrap .popular-carousel__header,
.new-item-carousel-wrap .popular-carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
  gap: 12px;
}

.popular-carousel-wrap .popular-carousel__secHeading,
.new-item-carousel-wrap .popular-carousel__secHeading {
  flex: 1 1 auto;
  margin: 0;
}

.popular-carousel-wrap .popular-carousel__more,
.new-item-carousel-wrap .popular-carousel__more {
  font-size: 13px;
  font-weight: 600;
  color: #b99874;
  text-decoration: none;
}

.popular-carousel-wrap .popular-carousel__more:hover,
.new-item-carousel-wrap .popular-carousel__more:hover {
  color: #4a9a9a;
  text-decoration: underline;
}

.popular-carousel-wrap .popular-carousel__track-wrap,
.new-item-carousel-wrap .popular-carousel__track-wrap {
  position: relative;
  margin: 0 -4px;
}

.popular-carousel-wrap .popular-carousel__track,
.new-item-carousel-wrap .popular-carousel__track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 2px 40px 4px 40px;
}

.popular-carousel-wrap .popular-carousel__track::-webkit-scrollbar,
.new-item-carousel-wrap .popular-carousel__track::-webkit-scrollbar {
  display: none;
}

.popular-carousel-wrap .popular-carousel__card,
.new-item-carousel-wrap .popular-carousel__card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  display: block;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.popular-carousel-wrap .popular-carousel__card:hover,
.new-item-carousel-wrap .popular-carousel__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.popular-carousel-wrap .popular-carousel__img-wrap,
.new-item-carousel-wrap .popular-carousel__img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #f2f2f2;
  overflow: hidden;
  border-radius: 0;
}

/* NEW ITEM はトップページ指定色に固定 */
.new-item-carousel-wrap .popular-carousel__img-wrap,
.new-item-carousel-wrap .ec-productCardImageWrap {
  background: #f7f7f7;
  background-color: #f7f7f7;
}

.ec-productCardImageWrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-surface, #f2f2f2);
  contain: layout style;
}

.ec-shelfGrid__item-image,
.popular-carousel__img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-surface, #f2f2f2);
  contain: layout style;
}

.popular-carousel__img-wrap {
  flex-shrink: 0;
}

.ec-imageView__item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.category-modern__img-wrap,
.category-modern__scroll-img-wrap {
  aspect-ratio: 1 / 1;
  contain: layout;
}

.store-list__thumbnail,
.store-profile__avatar {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-bg-surface, #f2f2f2);
}

.store-favorite-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.15s ease;
}

.ec-productCardRibbons {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 16px);
}

.ec-productCardRibbons__item {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.ec-productCardRibbons__item--tag {
  background: #f2c94c;
}

.popular-carousel-wrap .popular-carousel__img,
.new-item-carousel-wrap .popular-carousel__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popular-carousel-wrap .popular-carousel__body,
.new-item-carousel-wrap .popular-carousel__body {
  padding: 10px 12px 12px;
}

/* 隣接カードの本文エリア間に薄い縦線（参考デザインのグリッド感） */
.popular-carousel-wrap .popular-carousel__card + .popular-carousel__card .popular-carousel__body,
.new-item-carousel-wrap .popular-carousel__card + .popular-carousel__card .popular-carousel__body {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.popular-carousel-wrap .popular-carousel__empty,
.new-item-carousel-wrap .popular-carousel__empty {
  margin: 8px 4px 4px;
  padding: 28px 16px 32px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  color: #64748b;
  font-size: 14px;
}

.popular-carousel-wrap .popular-carousel__emptyIcon,
.new-item-carousel-wrap .popular-carousel__emptyIcon {
  display: block;
  margin: 0 auto 10px;
  font-size: 26px;
  opacity: 0.4;
  color: #94a3b8;
}

.popular-carousel-wrap .popular-carousel__emptyText,
.new-item-carousel-wrap .popular-carousel__emptyText {
  margin: 0;
  line-height: 1.5;
}

.popular-carousel-wrap .popular-carousel__name,
.new-item-carousel-wrap .popular-carousel__name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-carousel-wrap .popular-carousel__brand,
.new-item-carousel-wrap .popular-carousel__brand {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin: -2px 0 6px;
  line-height: 1.3;
}

.ec-shelfGrid__item-brand {
  color: #64748b;
}

.recent-viewed-inline-brand {
  color: #64748b;
}

.popular-carousel-wrap .popular-carousel__price,
.new-item-carousel-wrap .popular-carousel__price {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.popular-carousel-wrap .popular-carousel__arrow,
.new-item-carousel-wrap .popular-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 2;
  border: none;
  outline: none;
}

.popular-carousel-wrap .popular-carousel__arrow--left,
.new-item-carousel-wrap .popular-carousel__arrow--left {
  left: 8px;
}

.popular-carousel-wrap .popular-carousel__arrow--right,
.new-item-carousel-wrap .popular-carousel__arrow--right {
  right: 8px;
}

@media (max-width: 767px) {

  .popular-carousel-wrap .popular-carousel__arrow,
  .new-item-carousel-wrap .popular-carousel__arrow {
    display: none;
  }
}

@media (min-width: 768px) {

  .popular-carousel-wrap,
  .new-item-carousel-wrap {
    padding: 10px 12px 14px;
    max-width: 100%;
    margin: 8px 0 16px;
  }

  .popular-carousel-wrap .popular-carousel__header,
  .new-item-carousel-wrap .popular-carousel__header {
    margin-bottom: 10px;
  }

  .popular-carousel-wrap .popular-carousel__track,
  .new-item-carousel-wrap .popular-carousel__track {
    gap: 0;
    padding: 2px 48px 6px 0;
  }

  .popular-carousel-wrap .popular-carousel__card,
  .new-item-carousel-wrap .popular-carousel__card {
    flex: 0 0 240px;
  }

  .popular-carousel-wrap .popular-carousel__body,
  .new-item-carousel-wrap .popular-carousel__body {
    padding: 12px 14px 14px;
  }

  .popular-carousel-wrap .popular-carousel__name,
  .new-item-carousel-wrap .popular-carousel__name {
    font-size: 14px;
  }

  .popular-carousel-wrap .popular-carousel__price,
  .new-item-carousel-wrap .popular-carousel__price {
    font-size: 15px;
  }

  .popular-carousel-wrap .popular-carousel__arrow,
  .new-item-carousel-wrap .popular-carousel__arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(242, 242, 242, 0.98) 20%);
  }
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav,
.category-nav-modern .ec-itemNav {
  text-align: left;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav,
.category-nav-modern .ec-itemNav__nav {
  display: block !important;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  border: none;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li {
  float: none;
  width: 100%;
  text-align: left;
  border-bottom: none;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  /* サブメニューと同じ文字色に統一 */
  color: #475569;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  background: #fff;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  /* フォントをサブメニューと同じにする（本文フォントを継承） */
  font-family: inherit;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a:hover {
  background: #f8fafc;
  color: #2d6a6a;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a:focus,
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li a:focus {
  outline: none;
}

/* すべてのカテゴリの横に右向き矢印 */
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a::after,
.category-nav-modern .ec-itemNav__nav>li>a::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #94a3b8;
  margin-left: 8px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a:hover::after,
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li>a:focus::after,
.category-nav-modern .ec-itemNav__nav>li>a:hover::after,
.category-nav-modern .ec-itemNav__nav>li>a:focus::after {
  color: #b99874;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li {
  position: relative;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul,
.category-nav-modern .ec-itemNav__nav li ul {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  min-width: 220px;
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 100;
  pointer-events: auto;
}

/* フォーカスまたはホバーで右側にサブメニューを表示 */
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li:hover>ul,
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li:focus-within>ul,
.category-nav-modern .ec-itemNav__nav>li:hover>ul,
.category-nav-modern .ec-itemNav__nav>li:focus-within>ul {
  display: block !important;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li {
  overflow: visible;
  height: auto;
  border: none;
  transition: none;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li a,
.category-nav-modern .ec-itemNav__nav li ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 10px 24px;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-align: left;
  background: transparent;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
  pointer-events: auto !important;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li a::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 6px;
  flex-shrink: 0;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  transform: rotate(-45deg);
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li a:hover {
  background: #f1f5f9;
  color: #2d6a6a;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li a:hover::after {
  border-color: #b99874;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav>li:hover>ul li ul,
.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li ul {
  position: static;
  display: block;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li ul li a {
  padding-left: 32px;
  font-size: 12px;
  background: transparent;
}

.ec-layoutRole__left .category-nav-modern .ec-itemNav__nav li ul li ul:before {
  display: none;
}

/* ボタン：丸みのあるデザイン + アイコンとテキストの間隔 */
.ec-blockBtn,
.ec-blockBtn--action,
.ec-blockBtn--cancel,
.ec-blockBtn--primary,
.ec-blockBtn--top {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px !important;
}

.ec-inlineBtn,
.ec-inlineBtn--action,
.ec-inlineBtn--cancel,
.ec-inlineBtn--primary,
.ec-productRating__filter-btn,
.ec-productRating__form-submit {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  border-radius: 8px !important;
}

.ec-headerSearch__keywordBtn {
  border-radius: 8px !important;
}

.btn-outline-danger {
  border-radius: 8px !important;
}

.ec-inlineBtn--top {
  border-radius: 8px !important;
}

/* その他のボタン類（円形ボタンは除く） */
.ec-closeBtn:not(.ec-closeBtn--circle),
.btn,
.ec-pager__item a,
.pagination .page-link {
  border-radius: 8px !important;
}

.ec-blockBtn .fa-fw,
.ec-blockBtn--action .fa-fw,
.ec-blockBtn--cancel .fa-fw,
.ec-blockBtn--primary .fa-fw,
.ec-blockBtn--top .fa-fw {
  flex-shrink: 0;
}

.btn-outline-danger .fa-fw {
  margin-right: 4px;
}

/* スマホ：カテゴリーブロックの「カテゴリー」「一覧」ヘッダーを非表示 */
.category-sp__header {
  display: none !important;
}

/* 固定アラート表示時、SPドロワーのボタンが隠れないように位置調整 */
.ec-maintenanceAlert+.ec-layoutRole .ec-headerNavSP,
.ec-debugModeAlert+.ec-layoutRole .ec-headerNavSP,
.ec-maintenanceAlert+.ec-layoutRole .ec-drawerRoleClose,
.ec-debugModeAlert+.ec-layoutRole .ec-drawerRoleClose {
  top: 60px;
}

.ec-twoModeAlert+.ec-layoutRole .ec-headerNavSP,
.ec-twoModeAlert+.ec-layoutRole .ec-drawerRoleClose {
  top: 110px;
}

/* デバッグモードアラートのスタイル修正 */
.ec-debugModeAlert {
  background: #b91c1c !important;
  height: 50px !important;
  position: fixed !important;
  top: 0 !important;
  width: 100% !important;
  color: white !important;
  z-index: 9998 !important;
  display: flex !important;
  font-weight: bold !important;
  font-size: 14px !important;
  line-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
}

.ec-debugModeAlert>* {
  margin: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ec-debugModeAlert .ec-debugModeAlert__icon {
  display: inline-block !important;
  margin-right: 1rem !important;
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  color: #fff !important;
  fill: #fff !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.ec-debugModeAlert .ec-debugModeAlert__icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.ec-debugModeAlert+* {
  margin-top: 50px !important;
}

.ec-twoModeAlert .ec-debugModeAlert {
  top: 50px !important;
  z-index: 9997 !important;
}

.ec-twoModeAlert+* {
  margin-top: 100px !important;
}

/* メンテナンスアラートのスタイルも調整 */
.ec-maintenanceAlert {
  font-size: 14px !important;
  line-height: 50px !important;
  align-items: center !important;
  justify-content: center !important;
}

.ec-maintenanceAlert>* {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ec-maintenanceAlert .ec-maintenanceAlert__icon {
  max-width: 20px !important;
  max-height: 20px !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.ec-maintenanceAlert .ec-maintenanceAlert__icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* ページネーションのアクティブ項目を薄い灰色に変更 */
.ec-pager__item--active a,
.pagination .page-item.active .page-link {
  background-color: #f2f2f2 !important;
  color: #333 !important;
  border-color: #f2f2f2 !important;
}

/* カート追加モーダル：ダイアログ内ボタンのサイズ調整 */
.ec-modal .ec-modal-box .ec-role {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.ec-modal .ec-inlineBtn--cancel,
.ec-modal .ec-inlineBtn--action {
  min-width: 140px;
  padding: 12px 20px;
  font-size: var(--cta-font-size);
  font-weight: var(--cta-font-weight);
  border-radius: var(--cta-radius) !important;
  text-decoration: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.ec-modal .ec-inlineBtn--cancel:hover,
.ec-modal .ec-inlineBtn--action:hover {
  opacity: 0.9;
}

@media (max-width: 767px) {
  .ec-modal .ec-modal-box .ec-role {
    flex-direction: column;
    gap: 10px;
  }

  .ec-modal .ec-inlineBtn--cancel,
  .ec-modal .ec-inlineBtn--action {
    width: 100%;
    max-width: 280px;
    min-width: unset;
    padding: 14px 20px;
  }
}

/* トップページに戻るボタン：システム全体で使用している茶色 (#b69e84) に統一 */
#shopping-error-goto-top.ec-blockBtn--action,
a.ec-blockBtn--action[href*="homepage"] {
  background-color: var(--color-brand-base) !important;
  border-color: var(--color-brand-base) !important;
}

#shopping-error-goto-top.ec-blockBtn--action:hover,
a.ec-blockBtn--action[href*="homepage"]:hover {
  background-color: #a08a70 !important;
  border-color: #a08a70 !important;
  color: #fff !important;
}

/* 購入エラー画面：ボタンサイズ統一 */
.shopping-error-actions .ec-off4Grid__cell .ec-blockBtn--action,
.shopping-error-actions .ec-off4Grid__cell .ec-blockBtn--cancel {
  display: flex !important;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}

.shopping-error-actions .ec-off4Grid__cell p.text-center {
  width: 100%;
}

.shopping-error-actions .ec-off4Grid__cell p.text-center .ec-blockBtn--action,
.shopping-error-actions .ec-off4Grid__cell p.text-center .ec-blockBtn--cancel {
  display: flex !important;
  width: 100%;
}

/* ========================================
 * ページヘッダー - ログイン画面と同じモダンデザイン
 * ======================================== */
.ec-pageHeader {
  text-align: center;
  padding: 40px 24px 36px;
  margin-bottom: 24px;
  border: none !important;
  background: transparent !important;
}

.ec-pageHeader h1,
.ec-pageHeader .h1 {
  margin: 0 0 8px;
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.04em;
}

.ec-pageHeader::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b99874, #8b6f47);
  border-radius: 2px;
  margin: 20px auto 0;
}

@media (max-width: 767px) {
  .ec-pageHeader {
    padding: 28px 16px 24px;
  }

  .ec-pageHeader h1,
  .ec-pageHeader .h1 {
    font-size: 24px;
  }
}

/* マイページ内のヘッダーもログインと同じデザインに統一 */
.mypage .ec-mypageRole .ec-pageHeader {
  text-align: center;
  padding: 40px 24px 36px;
  margin-bottom: 0;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
}

.mypage .ec-mypageRole .ec-pageHeader h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

.mypage .ec-mypageRole .ec-pageHeader::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #b99874, #8b6f47);
  border-radius: 2px;
  margin: 20px auto 0;
}

@media (max-width: 767px) {
  .mypage .ec-mypageRole .ec-pageHeader {
    padding: 24px 16px 20px;
  }

  .mypage .ec-mypageRole .ec-pageHeader h1 {
    font-size: 18px;
  }
}

/* ========================================
 * フォーム入力：モダンでスタイリッシュなデザイン・入力欄を明確に
 * ======================================== */
:root {
  --input-border: #d1d5db;
  --input-border-focus: #b99874;
  --input-bg: #ffffff;
  --input-bg-disabled: #f3f4f6;
  --input-text: #1e293b;
  --input-placeholder: #9ca3af;
  --input-radius: 8px;
  --input-error-border: #dc2626;
  --input-error-bg: #fef2f2;

  /* ec-alert-warning 用 */
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fcd34d;
  --color-warning-text: #92400e;
  --border-radius-lg: 0.75rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* 警告アラート：フラットで現代的なデザイン */
.ec-alert-warning {
  width: 100%;
  padding: 0 !important;
  margin-bottom: 16px;
  text-align: left;
  background: #fff8e7 !important;
  border: 1px solid #f4d08a;
  border-left: 3px solid #e2a93b;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
}

.ec-alert-warning .ec-alert-warning__inner {
  display: block;
  padding: 14px 16px;
}

.ec-alert-warning .ec-alert-warning__inner__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.ec-alert-warning .ec-alert-warning__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  margin-right: 0;
  background: #e2a93b;
  border-radius: 8px;
  flex-shrink: 0;
}

.ec-alert-warning .ec-alert-warning__icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.ec-alert-warning .ec-alert-warning__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #7a5417 !important;
  line-height: 1.45;
  word-break: break-word;
}

/* ========================================
 * フラッシュメッセージ（評価投稿後など）
 * ec-alert-warning のデザイン言語に準拠
 * ======================================== */
.ec-flash {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  padding: 14px 18px;
  border-radius: 10px;
  border-left: 3px solid;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.ec-flash--success {
  background: #f2faf5;
  border-color: #4caf7d;
  color: #1a5c38;
}

.ec-flash--error {
  background: #fff4f4;
  border-color: #e53935;
  color: #7a1515;
}

.ec-flash--info {
  background: rgba(182, 158, 132, 0.1);
  border-color: var(--color-brand-dark, #8b6f47);
  color: #4a3520;
}

.ec-flash__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  font-size: 15px;
  flex-shrink: 0;
}

.ec-flash--success .ec-flash__icon {
  background: #4caf7d;
  color: #ffffff;
}

.ec-flash--error .ec-flash__icon {
  background: #e53935;
  color: #ffffff;
}

.ec-flash--info .ec-flash__icon {
  background: var(--color-brand-dark, #8b6f47);
  color: #ffffff;
}

.ec-flash__text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

/* カートエラー内は警告ボックスの横幅を広げる */
.ec-cartRole .ec-cartRole__error .ec-alert-warning {
  width: 100%;
  max-width: 100%;
  display: block;
}

/* スマホでは横幅いっぱいに表示 */
@media (max-width: 767px) {
  .ec-alert-warning {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
    border-left-width: 4px;
  }

  .ec-alert-warning .ec-alert-warning__inner {
    padding: 10px 12px;
  }

  .ec-alert-warning .ec-alert-warning__text {
    font-size: 12px;
    line-height: 1.7;
  }
}

/* 商品タグ：モダンなバッジデザイン */
.ec-productRole .ec-productRole__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e8edf3;
  list-style: none;
}

.ec-productRole .ec-productRole__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 19px;
  padding: 2px 6px;
  font-size: 9px !important;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  color: #1f2937;
  background: rgba(92, 177, 177, 0.1);
  border: 1px solid rgba(92, 177, 177, 0.35);
  border-radius: 999px;
  list-style: none;
  transition: none;
}

.ec-productRole .ec-productRole__tag:hover {
  transform: none;
  box-shadow: none;
}

/* 商品詳細タグ：タグマスタで設定したリボン色を使用（インライン background 併用） */
.ec-productRole .ec-productRole__tag.ec-productRole__tag--masterColor {
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 700;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  border-width: 0 !important;
  background-image: none;
  box-shadow: none;
  /* 過度な縁取りは避けつつ最小限のコントラストだけ残す */
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  -webkit-text-stroke: 0;
}

.ec-productRole .ec-productRole__tag.ec-productRole__tag--masterColor:hover {
  filter: none;
  color: #ffffff !important;
}

/* 商品詳細：サマリー内アイコンを正円＋茶色で統一（王冠含む全アイコン／product-detail-page.css の配色より後でも反映） */
.ec-productDecisionSummary__item i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: 0 0 28px !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  background: #8b5e3c !important;
  color: #ffffff !important;
  font-size: 13px !important;
}

/* 商品詳細：規格・数量の選択枠を柔らかく */
.ec-productRole .ec-select select,
.ec-productRole .ec-numberInput input[type="number"] {
  border-radius: 12px;
  border-color: #e5e7eb;
  border-width: 1px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ec-productRole .ec-select select:focus,
.ec-productRole .ec-numberInput input[type="number"]:focus {
  border-color: var(--input-border-focus);
  box-shadow: none;
}

/* 商品詳細：上部の区切り線とボタンが重ならないよう余白を追加 */
.product_page #form1 .ec-productRole__btn {
  margin-top: 10px;
}

/* テキスト入力・テキストエリア・セレクトの共通ベース（半角・郵便番号・電話は別指定で位置維持・ヘッダー検索カテゴリは除外） */
.ec-input input[type="text"],
.ec-input input[type="email"],
.ec-input input[type="tel"],
.ec-input input[type="number"],
.ec-input input[type="password"],
.ec-input input[type="search"],
.ec-input input[type="url"],
.ec-input textarea,
.ec-input select,
.ec-numberInput input[type="number"],
.ec-select:not(.ec-select_search) select,
.ec-birth select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--input-text);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

@media (min-width: 768px) {

  .ec-input input[type="text"],
  .ec-input input[type="email"],
  .ec-input input[type="tel"],
  .ec-input input[type="number"],
  .ec-input input[type="password"],
  .ec-input input[type="search"],
  .ec-input input[type="url"],
  .ec-input textarea,
  .ec-input select {
    margin-bottom: 16px;
  }
}

.ec-input input:last-child,
.ec-input textarea:last-child,
.ec-input select:last-child {
  margin-bottom: 0;
}

.ec-input textarea {
  min-height: 120px;
  resize: vertical;
  padding: 12px 14px;
}

/* 入力欄がはっきりわかるように背景を白・ボーダーを明確に */
.ec-input input::placeholder,
.ec-input textarea::placeholder {
  color: var(--input-placeholder);
}

.ec-input input:focus,
.ec-input textarea:focus,
.ec-input select:focus,
.ec-halfInput input:focus,
.ec-telInput input:focus,
.ec-zipInput input:focus,
.ec-select select:focus,
.ec-birth select:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: none;
  background-color: var(--input-bg);
}

/* セレクトの矢印（カスタム見た目）※ヘッダー検索のカテゴリは除外 */
.ec-select:not(.ec-select_search) select,
.ec-birth select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* borderedDefs 内：連続する .ec-input の間に余白（番地・メール確認・パスワード確認など） */
.ec-borderedDefs dd > .ec-input + .ec-input {
  margin-top: 12px;
}

/* エラー時は枠と背景で明確に */
.error.ec-input input,
.error.ec-input textarea,
.error.ec-input select,
.error.ec-halfInput input,
.error.ec-telInput input,
.error.ec-zipInput input,
.error.ec-select select,
.error.ec-select select:focus {
  border-color: var(--input-error-border);
  background-color: var(--input-error-bg);
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

/* 半角入力（姓名など）：横並びを維持しつつ同じ見た目に */
.ec-halfInput input[type="text"] {
  display: inline-block;
  width: 47%;
  min-height: 44px;
  margin-bottom: 10px;
  margin-left: 2%;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--input-text);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  box-sizing: border-box;
  vertical-align: top;
}

.ec-halfInput input[type="text"]:first-of-type {
  margin-left: 0;
}

/* 会社名など単独テキスト入力は全幅で表示 */
.ec-halfInput input[type="text"]:only-child {
  display: block;
  width: 100%;
  margin-left: 0;
}

/* 新規会員登録: 会社名入力は常に全幅 */
#entry_company_name {
  display: block;
  width: 100%;
  margin-left: 0;
}

@media (min-width: 768px) {
  .ec-halfInput input[type="text"] {
    width: 45%;
    margin-left: 15px;
    margin-bottom: 16px;
  }
}

.ec-halfInput input[type="text"]:focus {
  border-color: var(--input-border-focus);
  box-shadow: none;
}

.error.ec-halfInput input[type="text"] {
  border-color: var(--input-error-border);
  background-color: var(--input-error-bg);
}

/* 郵便番号：〒と横並びを維持 */
.ec-zipInput {
  display: inline-block;
}

.ec-zipInput input {
  display: inline-block;
  width: auto;
  max-width: 9em;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--input-text);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  box-sizing: border-box;
  vertical-align: middle;
}

@media (min-width: 768px) {
  .ec-zipInput input {
    margin-bottom: 16px;
  }
}

/* 電話番号：幅制限を維持・余白統一 */
.ec-telInput input {
  display: block;
  width: 100%;
  max-width: 12em;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--input-text);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .ec-telInput input {
    margin-bottom: 16px;
  }
}

/* フォーム dl 内のラベルと入力の位置を揃える */
.ec-borderedDefs dl {
  align-items: flex-start;
}

.ec-borderedDefs dt {
  padding-top: 2px;
}

@media (min-width: 768px) {
  .ec-borderedDefs dt {
    padding-top: 14px;
  }
}

/* セレクトの下余白を統一 */
.ec-select {
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .ec-select {
    margin-bottom: 16px;
  }
}

/* 数量入力 */
.ec-numberInput input[type="number"] {
  max-width: 100px;
  text-align: right;
}

/* 無効・読み取り専用 */
.ec-input input:disabled,
.ec-input textarea:disabled,
.ec-input select:disabled {
  background-color: var(--input-bg-disabled);
  cursor: not-allowed;
  opacity: 0.85;
}

/* フォームで form-control クラスが付与されている場合（注文手続きなど） */
.ec-role .form-control,
.shopping .form-control {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--input-text);
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--input-radius);
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ec-role .form-control:focus,
.shopping .form-control:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: none;
  background-color: var(--input-bg);
}

.ec-role .form-control::placeholder,
.shopping .form-control::placeholder {
  color: var(--input-placeholder);
}

/* select.form-control の矢印 */
.ec-role select.form-control,
.shopping select.form-control {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* お届け日・お届け時間のドロップダウンサイズ調整 */
.ec-orderDelivery__actions .ec-selects .ec-select__delivery select,
.ec-orderDelivery__actions .ec-selects .ec-select__delivery .form-control,
.ec-orderDelivery__actions .ec-selects .ec-select__time select,
.ec-orderDelivery__actions .ec-selects .ec-select__time .form-control {
  min-height: 44px;
  box-sizing: border-box;
}

/* スマホ：お届け日とお届け時間を同じ幅に */
@media (max-width: 767px) {
  .ec-orderDelivery__actions .ec-selects {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ec-orderDelivery__actions .ec-selects .ec-select__delivery,
  .ec-orderDelivery__actions .ec-selects .ec-select__time {
    width: 100%;
    margin-right: 0;
  }

  .ec-orderDelivery__actions .ec-selects .ec-select__delivery select,
  .ec-orderDelivery__actions .ec-selects .ec-select__delivery .form-control,
  .ec-orderDelivery__actions .ec-selects .ec-select__time select,
  .ec-orderDelivery__actions .ec-selects .ec-select__time .form-control {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

@media (min-width: 768px) {

  .ec-orderDelivery__actions .ec-selects .ec-select__delivery select,
  .ec-orderDelivery__actions .ec-selects .ec-select__delivery .form-control,
  .ec-orderDelivery__actions .ec-selects .ec-select__time select,
  .ec-orderDelivery__actions .ec-selects .ec-select__time .form-control {
    width: 180px;
    min-width: 180px;
    max-width: 220px;
  }
}

/* ========================================
 * ヘッダー検索：フラットデザイン + キーワード検索が確実に使えるように
 * ======================================== */
.ec-headerSearch {
  border: none;
  background: #fff;
  overflow: hidden;
}

.ec-headerSearch form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.ec-headerNaviRole__left .ec-headerNaviRole__search {
  margin-left: auto;
}

.ec-headerSearch .ec-headerSearch__category {
  display: none !important;
}

.ec-headerSearch .ec-headerSearch__category .ec-select {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  height: 100%;
}

/* カテゴリ選択：システムの茶色系 (#b69e84) 背景 + 枠線表示 */
.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search {
  background: var(--color-brand-base);
  border: none;
  border-radius: 0;
}

.ec-headerSearch .ec-headerSearch__category .ec-select.ec-select_search::before {
  border-top-color: #fff;
}

.ec-headerSearch .ec-headerSearch__category .ec-select select {
  max-width: 100%;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 0 28px 0 12px;
  font-size: 14px;
  color: #fff;
  background: transparent;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.ec-headerSearch .ec-headerSearch__category .ec-select select option {
  color: #333;
  background: #fff;
}

.ec-headerSearch .ec-headerSearch__keyword {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  color: #525263;
  border: 1px solid #ccc;
  background-color: #f6f6f6;
  border-radius: 50px;
  overflow: visible;
}

.ec-headerSearch .ec-headerSearch__keyword .ec-input {
  position: relative;
  margin: 0;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.ec-headerSearch .ec-headerSearch__keyword input[type="search"],
.ec-headerSearch .ec-headerSearch__keyword input[type="text"] {
  display: block;
  width: 100%;
  height: 34px;
  min-height: 34px;
  padding: 0.5em 50px 0.5em 1em;
  font-size: 12px;
  color: #525263;
  border: none;
  background: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  margin-bottom: 0;
}

.ec-headerSearch .ec-headerSearch__keyword input::placeholder {
  color: #999;
}

.ec-headerSearch .ec-headerSearch__keyword input:focus {
  outline: none;
}

.ec-headerSearch .ec-headerSearch__keywordBtn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-55%);
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0 !important;
  background: none;
  color: inherit;
  cursor: pointer;
  z-index: 1;
}

.ec-headerSearch .ec-headerSearch__keywordBtn:hover {
  background: none;
  color: inherit;
}

.ec-headerSearch .ec-headerSearch__keywordBtn .ec-icon {
  width: 22px;
  height: 22px;
}

/* PC：カテゴリとキーワードを横並び・1行に */
@media (min-width: 768px) {
  .ec-headerSearch form {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
  }

  .ec-headerSearch .ec-headerSearch__keyword {
    flex: 1 1 auto;
    width: auto;
    min-height: 36px;
    min-width: clamp(240px, 30vw, 520px);
    max-width: 100%;
  }

  .ec-headerSearch .ec-headerSearch__keyword input[type="search"],
  .ec-headerSearch .ec-headerSearch__keyword input[type="text"] {
    height: 34px;
    min-height: 34px;
  }
}

/* タブレット幅では入力バー最小幅を抑えて崩れ防止 */
@media (max-width: 1024px) and (min-width: 768px) {
  .ec-headerSearch .ec-headerSearch__keyword {
    min-width: 0;
    width: 100%;
  }
}

/* ドロワー内（SPメニュー）の検索：キーワード入力が確実にできるように */
.ec-drawerRole .ec-headerSearch {
  background: var(--color-bg-muted);
  border: none;
  overflow: visible;
}

.ec-drawerRole .ec-headerSearch .ec-headerSearch__keyword {
  min-height: 44px;
  flex: 1 1 auto;
}

.ec-drawerRole .ec-headerSearch .ec-headerSearch__keyword .ec-input {
  min-height: 44px;
}

.ec-drawerRole .ec-headerSearch form {
  pointer-events: auto;
}

.ec-drawerRole .ec-headerSearch .ec-headerSearch__keyword input[type="search"],
.ec-drawerRole .ec-headerSearch .ec-headerSearch__keyword input[type="text"] {
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-user-select: text;
  user-select: text;
  z-index: 2;
  position: relative;
}

/* スマホ：入力しやすいサイズに調整（デザインは維持） */
@media (max-width: 767px) {
  .ec-headerSearch {
    width: 100%;
    box-sizing: border-box;
  }

  .ec-headerNaviRole__left .ec-headerNaviRole__search {
    width: 100%;
    margin-left: 0;
  }

  .ec-headerSearch .ec-headerSearch__category .ec-select select {
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    /* iOSでフォーカス時のズームを防ぐ */
    padding: 0 32px 0 14px;
  }

  .ec-headerSearch .ec-headerSearch__keyword input[type="search"],
  .ec-headerSearch .ec-headerSearch__keyword input[type="text"] {
    height: 44px;
    min-height: 44px;
    font-size: 16px;
    /* iOSでフォーカス時のズームを防ぐ */
    padding: 0 48px 0 14px;
  }

  .ec-headerSearch .ec-headerSearch__keyword {
    min-width: 0;
    width: 100%;
  }

  .ec-headerSearch .ec-headerSearch__keywordBtn {
    width: 40px;
    height: 40px;
    right: 4px;
  }

  .ec-headerSearch .ec-headerSearch__keywordBtn i {
    font-size: 16px;
  }

  /* ドロワー内：検索が幅いっぱい使えるように */
  .ec-drawerRole .ec-headerSearch {
    padding: 12px 10px 16px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* スマホで横スクロールしないように収める・コンテンツ幅を広げる */
@media (max-width: 767px) {

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

  .ec-layoutRole {
    max-width: 100%;
    overflow-x: hidden;
  }

  .ec-layoutRole__contents,
  .ec-layoutRole__main,
  .ec-layoutRole__mainWithColumn,
  .ec-layoutRole__mainBetweenColumn {
    max-width: 100%;
  }

  .ec-role {
    padding-left: 10px;
    padding-right: 10px;
  }

  .ec-pageHeader {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mypage .ec-mypageRole .ec-pageHeader {
    padding-left: 10px;
    padding-right: 10px;
  }

  /* トップページのメインビジュアル・スライダー */
  .ec-sliderRole.hero-slider,
  .ec-sliderRole .hero-slider__track,
  .ec-sliderRole .hero-slider__slide {
    max-width: 100%;
    overflow: hidden;
  }

  .ec-sliderRole .hero-slider__track img,
  .ec-sliderRole .hero-slider__slide img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .hero-slider-fullwidth {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider {
    padding-left: 0;
    padding-right: 0;
  }
}

/* トップ：スライダーを画面横幅いっぱいに表示（ZOZO風・その下にカテゴリー） */
.hero-slider-fullwidth {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 0;
  box-sizing: border-box;
}

/*
 * 全幅ブレイクアウト
 * ec-layoutRole__contents は max-width:1150px 中央配置（style.css）
 * 1150px 未満は % ベース、1150px 以上は 1150px コンテナ基準でビューポート左端に揃える
 */
@media (min-width: 768px) and (max-width: 1149px) {
  body.front_page .ec-layoutRole__mainWithColumn .hero-slider-fullwidth {
    margin-left: calc(-100vw + 100%);
    margin-right: calc(-100vw + 100%);
  }

  body.front_page .ec-layoutRole__mainBetweenColumn .hero-slider-fullwidth {
    margin-left: calc(25vw - 100vw + 100%);
    margin-right: calc(25vw - 100vw + 100%);
  }

  body.front_page .ec-layoutRole__main .hero-slider-fullwidth {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

@media (min-width: 1150px) {
  body.front_page .ec-layoutRole__mainWithColumn .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__mainBetweenColumn .hero-slider-fullwidth {
    margin-left: calc((1150px - 100vw) / 2 - 1150px * 0.25);
    margin-right: calc((1150px - 100vw) / 2 - 1150px * 0.25);
  }

  body.front_page .ec-layoutRole__main .hero-slider-fullwidth {
    margin-left: calc((1150px - 100vw) / 2);
    margin-right: calc((1150px - 100vw) / 2);
  }
}

/* PC/SPとも共通スライダーを表示 */
@media (max-width: 767px) {
  .hero-slider-fullwidth {
    display: block;
  }
}

@media (min-width: 768px) {
  .hero-slider-fullwidth {
    display: block;
  }
}

/* 左右均等：スライダーをビューポート中央に配置（上記 breakout と併用） */
body.front_page .ec-layoutRole__main .hero-slider-fullwidth,
body.front_page .ec-layoutRole__mainWithColumn .hero-slider-fullwidth,
body.front_page .ec-layoutRole__mainBetweenColumn .hero-slider-fullwidth {
  max-width: 100vw;
}

body.front_page {
  overflow-x: hidden;
}

/* 右矢印が切れないよう、スライダーを含む親ははみ出しを表示 */
body.front_page .ec-layoutRole__contents,
body.front_page .ec-layoutRole__main,
body.front_page .ec-layoutRole__mainWithColumn,
body.front_page .ec-layoutRole__mainBetweenColumn {
  overflow-x: visible;
}

/* トップではカテゴリー一覧をスライダー直下のみ表示（レイアウトのメイン下の重複を非表示） */
body.front_page .ec-layoutRole__mainBottom .category-modern {
  display: none !important;
}

/* 新規会員登録 1000OFF クーポンバナー（新着情報の上・PCのみ表示） */
.coupon-banner-wrap {
  margin: 0 0 24px;
  padding: 0 16px;
  display: none;
}

@media (min-width: 768px) {
  .coupon-banner-wrap {
    display: block;
  }
}

.coupon-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #ff6b6b 0%, #e74c3c 100%);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coupon-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(231, 76, 60, 0.45);
  color: #fff;
}

.coupon-banner__text {
  letter-spacing: 0.02em;
}

.coupon-banner__arrow {
  flex-shrink: 0;
  font-size: 14px;
  opacity: 0.95;
  color: #fff;
}

/* トップでは新着情報をカテゴリー直前に1回だけ表示するため、MainBottom の新着情報は非表示 */
body.front_page .ec-layoutRole__mainBottom .recent-viewed-wrap--news {
  display: none !important;
}

/* トップヒーロースライダー：左右余白＋角丸でモダンに */
.hero-slider-fullwidth .ec-sliderRole.hero-slider {
  width: 100vw;
  max-width: 100vw;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .hero-slider-fullwidth .ec-sliderRole.hero-slider {
    padding-top: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

.ec-sliderRole.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track.slick-slider,
.hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-list,
.hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-track {
  width: 100% !important;
  max-width: 100% !important;
}

/* スライド幅：PCは4等分だが336px上限、1024以下は3枚、SPは1枚 */
.hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
  width: min(calc((100% - 96px) / 4), 336px) !important;
  max-width: 336px !important;
}

@media (max-width: 1024px) {
  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
    width: min(calc((100% - 72px) / 3), 320px) !important;
    max-width: 320px !important;
  }
}

@media (max-width: 767px) {
  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-list {
    overflow: hidden;
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
  }
}

/*
 * ワイド画面（1600px以上）：外枠は画面幅いっぱい、スライド自体は固定サイズで中央配置
 * 4K等でもカードが画面に合わせて巨大化しない
 */
@media (min-width: 1600px) {
  .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__main .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__mainWithColumn .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__mainBetweenColumn .hero-slider-fullwidth {
    width: 100vw;
    max-width: 100vw;
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider {
    width: 100vw;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-list {
    width: min(1440px, calc(100vw - 48px)) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
    width: 336px !important;
    max-width: 336px !important;
  }

  .ec-sliderRole.hero-slider .hero-slider__link {
    max-height: 200px;
  }

  /* インジケーター：スライド列と同じ幅でビューポート中央に配置 */
  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__track .slick-dots {
    left: 50%;
    right: auto;
    width: min(1440px, calc(100vw - 48px));
    max-width: 1440px;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(-50%);
    text-align: center;
  }
}

/* ZOZO風：矢印（左右端・白丸） */
.ec-sliderRole.hero-slider .hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ec-sliderRole.hero-slider .hero-slider__arrow--prev {
  left: 16px;
}

.ec-sliderRole.hero-slider .hero-slider__arrow--next {
  right: 16px;
}

/* PC：矢印をスライド表示エリア（1440px）の左右端に对称配置 */
@media (min-width: 768px) {
  .hero-slider-fullwidth .ec-sliderRole.hero-slider {
    --hero-stage-half: min(720px, calc(50% - 24px));
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__arrow {
    top: calc(50% - 24px);
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__arrow--prev {
    left: max(16px, calc(50% - var(--hero-stage-half) - 28px));
  }

  .hero-slider-fullwidth .ec-sliderRole.hero-slider .hero-slider__arrow--next {
    right: max(16px, calc(50% - var(--hero-stage-half) - 28px));
    left: auto;
  }
}

@media (max-width: 767px) {
  .ec-sliderRole.hero-slider .hero-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .ec-sliderRole.hero-slider .hero-slider__arrow--prev {
    left: 8px;
  }

  .ec-sliderRole.hero-slider .hero-slider__arrow--next {
    right: 8px;
  }
}

.ec-sliderRole.hero-slider .hero-slider__arrow-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
}

.ec-sliderRole.hero-slider .hero-slider__arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ec-sliderRole.hero-slider .hero-slider__arrow:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}

/* 初期読み込み時に余白なし状態が見えないように、Slick 初期化までは非表示 */
.ec-sliderRole.hero-slider .hero-slider__track {
  visibility: hidden;
}

.ec-sliderRole.hero-slider .hero-slider__track.slick-initialized {
  visibility: visible;
}

/* 矢印を常に表示・クリック可能に（Slick の slick-hidden を無効化） */
.ec-sliderRole.hero-slider .hero-slider__arrow.slick-hidden {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 767px) {

  .ec-sliderRole.hero-slider .hero-slider__arrow,
  .ec-sliderRole.hero-slider .hero-slider__arrow.slick-hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 複数枚表示・スライダー要素は横幅最大 */
.ec-sliderRole.hero-slider .hero-slider__track.slick-slider {
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-list {
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-track {
  display: flex;
  width: 100% !important;
}

/* スライド間の余白（モダンなカード感） */
.ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
  margin: 0 12px;
  height: inherit;
  flex: 0 0 auto;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .ec-sliderRole.hero-slider .hero-slider__track .slick-list {
    padding: 0 !important;
  }

  .ec-sliderRole.hero-slider .hero-slider__track .slick-slide {
    margin: 0 !important;
  }
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-slide>div {
  height: 100%;
  width: 100%;
}

.ec-sliderRole.hero-slider .hero-slider__slide {
  height: 100%;
  width: 100%;
}

.ec-sliderRole.hero-slider .hero-slider__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-bg-muted);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
  .ec-sliderRole.hero-slider .hero-slider__link {
    border-radius: 12px;
  }
}

.ec-sliderRole.hero-slider .hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* トップスライダー：画像に暗めのフィルターをかけて文字を読みやすくする */
.ec-sliderRole.hero-slider .hero-slider__link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
  border-radius: inherit;
}

/* トップスライダー：画像上のメイン・サブタイトル */
.ec-sliderRole.hero-slider .hero-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  color: #fff;
  pointer-events: none;
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.ec-sliderRole.hero-slider .hero-slider__caption-main {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
}

.ec-sliderRole.hero-slider .hero-slider__caption-sub {
  display: block;
  font-size: 0.8125rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
}

@media (max-width: 767px) {
  .ec-sliderRole.hero-slider .hero-slider__caption {
    padding: 14px 14px 18px;
    border-radius: 0 0 12px 12px;
  }

  .ec-sliderRole.hero-slider .hero-slider__caption-main {
    font-size: 1rem;
  }

  .ec-sliderRole.hero-slider .hero-slider__caption-sub {
    font-size: 0.75rem;
  }
}

/* Slick初期化前：複数枚を横並び・横幅最大で均等表示（チラつき防止） */
.ec-sliderRole.hero-slider .hero-slider__track:not(.slick-initialized) {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
}

.ec-sliderRole.hero-slider .hero-slider__track:not(.slick-initialized) .hero-slider__slide {
  flex: 0 0 25%;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .ec-sliderRole.hero-slider .hero-slider__track:not(.slick-initialized) .hero-slider__slide {
    flex: 0 0 33.333%;
  }
}

@media (max-width: 767px) {
  .ec-sliderRole.hero-slider .hero-slider__track:not(.slick-initialized) .hero-slider__slide {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .ec-sliderRole.hero-slider .hero-slider__track:not(.slick-initialized) .hero-slider__slide {
    flex: 0 0 100%;
  }
}

/* モバイル時のトップスライダー位置ずれ補正 */
@media (max-width: 767px) {

  body.front_page .ec-layoutRole__main .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__mainWithColumn .hero-slider-fullwidth,
  body.front_page .ec-layoutRole__mainBetweenColumn .hero-slider-fullwidth {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: 0;
  }
}

/* ZOZO風：ドットは下中央・白丸 */
/* ドットをスライダー直下に表示（画像の上ではなく下に配置） */
.ec-sliderRole.hero-slider .hero-slider__track .slick-dots {
  position: absolute;
  top: 100%;
  bottom: auto;
  left: 0;
  right: 0;
  margin: 0;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  text-align: center;
  z-index: 2;
}

.ec-sliderRole.hero-slider {
  padding-bottom: 48px;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-dots li {
  display: inline-block;
  margin: 0 5px;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-dots li button {
  font-size: 0;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-dots li button::before {
  display: none !important;
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-dots li.slick-active button {
  background: rgba(0, 0, 0, 0.6);
  transform: scale(1.2);
}

.ec-sliderRole.hero-slider .hero-slider__track .slick-dots li button:hover {
  background: rgba(0, 0, 0, 0.45);
}

@media (max-width: 767px) {
  /* SPではインジケーターをスライダー直下に確実表示 */
  .ec-sliderRole.hero-slider {
    overflow: visible;
    padding-bottom: 18px;
  }

  .ec-sliderRole.hero-slider .hero-slider__track .slick-dots {
    position: static;
    margin-top: 10px;
    margin-bottom: 0;
  }
}

/* ========================================
 * 新規会員登録1,000円OFFクーポンバナー（トップ以外・画面右下固定）
 * ======================================== */
.ec-couponBanner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9990;
  width: 200px;
  padding: 20px 16px 18px;
  background: linear-gradient(160deg, #e85c4a 0%, #d94a3a 100%);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(232, 92, 74, 0.45);
  color: #fff;
  text-align: center;
}

.ec-couponBanner__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease;
}

.ec-couponBanner__close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* a:hover / a:focus より詳細度を上げ、グローバルリンク色（青）を打ち消す */
a.ec-couponBanner__link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding-top: 8px;
}

a.ec-couponBanner__link:hover,
a.ec-couponBanner__link:focus,
a.ec-couponBanner__link:focus-visible,
a.ec-couponBanner__link:active,
a.ec-couponBanner__link:visited {
  color: #fff;
  text-decoration: none;
}

a.ec-couponBanner__link:hover .ec-couponBanner__head,
a.ec-couponBanner__link:hover .ec-couponBanner__amount,
a.ec-couponBanner__link:focus .ec-couponBanner__head,
a.ec-couponBanner__link:focus .ec-couponBanner__amount,
a.ec-couponBanner__link:focus-visible .ec-couponBanner__head,
a.ec-couponBanner__link:focus-visible .ec-couponBanner__amount,
a.ec-couponBanner__link:active .ec-couponBanner__head,
a.ec-couponBanner__link:active .ec-couponBanner__amount {
  color: #fff;
}

a.ec-couponBanner__link:hover .ec-couponBanner__cta,
a.ec-couponBanner__link:focus .ec-couponBanner__cta,
a.ec-couponBanner__link:focus-visible .ec-couponBanner__cta,
a.ec-couponBanner__link:active .ec-couponBanner__cta {
  color: #e85c4a;
}

.ec-couponBanner__head {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
}

.ec-couponBanner__amount {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ec-couponBanner__cta {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #b93a2d;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-couponBanner__link:hover .ec-couponBanner__cta {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .ec-couponBanner {
    bottom: 14px;
    right: 14px;
    width: 120px;
    padding: 12px 10px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(232, 92, 74, 0.4);
  }

  .ec-couponBanner__close {
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }

  .ec-couponBanner__link {
    padding-top: 4px;
  }

  .ec-couponBanner__head {
    font-size: 10px;
    line-height: 1.35;
    margin-bottom: 6px;
  }

  .ec-couponBanner__amount {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .ec-couponBanner__cta {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 999px;
  }
}

/* ========================================
 * 左下固定エリア（言語切替 + ページトップ）
 * ======================================== */
.ec-fixedBottomLeft {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.ec-fixedBottomLeft .ec-blockTopBtn.pagetop {
  position: static;
  left: auto;
  bottom: auto;
  right: auto;
}

/* ========================================
 * ページトップボタン - 左側・モダンデザイン
 * ======================================== */
.ec-blockTopBtn.pagetop {
  right: auto;
  left: 24px;
  bottom: 24px;
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  border-radius: 24px;
  background: var(--color-brand-base);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(182, 158, 132, 0.35);
  opacity: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  /* ほかの要素の上に常に表示（PC/スマホ共通） */
  position: fixed;
  z-index: 9999;
}

.ec-blockTopBtn.pagetop:hover {
  background: var(--color-brand-dark);
  box-shadow: 0 6px 20px rgba(139, 111, 71, 0.4);
  transform: translateY(-2px);
}

.ec-blockTopBtn.pagetop i {
  font-size: 14px;
}

@media (max-width: 767px) {
  .ec-fixedBottomLeft {
    left: 16px;
    bottom: 16px;
    gap: 6px;
  }

  .ec-blockTopBtn.pagetop {
    left: 16px;
    bottom: 16px;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    font-size: 12px;
  }

  .ec-blockTopBtn.pagetop span {
    display: none;
  }

  .ec-blockTopBtn.pagetop i {
    font-size: 16px;
    margin: 0;
  }
}

/* スマホ：品切れボタンのフォントを小さく */
@media (max-width: 767px) {

  button.ec-blockBtn--action[disabled],
  .ec-blockBtn--action[disabled] {
    font-size: 12px;
  }
}

/* ========================================
 * フッター：茶色背景（システムカラー #b69e84）＋フラットデザイン
 * ======================================== */
.ec-layoutRole__footer,
.ec-footerRole {
  background: var(--color-brand-deeper) !important;
  border-top: none !important;
  box-shadow: none !important;
}

.ec-footerRole .ec-footerRole__inner,
.ec-footerTitle,
.ec-footerNavi,
.ec-footerNavi .ec-footerNavi__link a {
  box-shadow: none !important;
  border-radius: 0 !important;
  background-image: none !important;
}

/* ========================================
 * フッター：サイト名下のSNS・決済アイコン（白）
 * ======================================== */
.ec-footerTitle__icons.footer-icons {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
}

.footer-icons__sns {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icons__sns-link {
  color: #fff;
  opacity: 0.9;
  font-size: 20px;
  transition: opacity 0.2s ease;
}

.footer-icons__sns-link:hover {
  opacity: 1;
  color: #fff;
}

.footer-icons__payment {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 24px;
  color: #fff;
  opacity: 0.95;
}

.footer-icons__card {
  font-size: 22px;
}

.footer-icons__paypay {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  vertical-align: middle;
}

.ec-topicpath .ec-topicpath__item a {
  color: var(--color-link-aa);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-topicpath .ec-topicpath__item a:hover,
.ec-topicpath .ec-topicpath__item a:focus-visible {
  color: var(--color-link-aa-hover);
}

/* 一覧ヘッダのパンくず：グラデーションなし・フラットな区切り（ec-searchnavRole） */
.ec-searchnavRole {
  background: none;
  background-image: none;
  box-shadow: none;
}

.ec-searchnavRole .ec-searchnavRole__topicpath {
  background: none;
  background-image: none;
}

.ec-searchnavRole .ec-topicpath {
  background: transparent;
  background-image: none;
  border-top: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 12px 0.875rem;
  margin: 0;
}

@media (min-width: 768px) {
  .ec-searchnavRole .ec-topicpath {
    padding: 0.875rem 16px 1rem;
    font-size: 0.875rem;
  }
}

.ec-searchnavRole .ec-topicpath .ec-topicpath__divider {
  color: #cbd5e1;
}

.ec-progress .ec-progress__label {
  color: #334155;
}

.ec-progress .is-complete .ec-progress__label {
  color: var(--color-brand-deeper);
}

.ec-productRole .ec-productRole__category a {
  color: #33a8d0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-productRole .ec-productRole__category a:hover,
.ec-productRole .ec-productRole__category a:focus-visible {
  color: #33a8d0;
}

.ec-login .ec-login__link .ec-link {
  color: var(--color-link-aa);
  text-decoration: underline;
}

.ec-login .ec-login__link .ec-link:hover,
.ec-login .ec-login__link .ec-link:focus-visible {
  color: var(--color-link-aa-hover);
}

.ec-login .ec-login__link a.ec-link[href$="/forgot"],
.ec-login .ec-login__link a.ec-link[href$="/forgot"]:visited,
.ec-login .ec-login__link a.ec-link[href$="/forgot"]:hover,
.ec-login .ec-login__link a.ec-link[href$="/forgot"]:focus,
.ec-login .ec-login__link a.ec-link[href$="/forgot"]:active,
.ec-login .ec-login__link a.ec-link[href$="/entry"],
.ec-login .ec-login__link a.ec-link[href$="/entry"]:visited,
.ec-login .ec-login__link a.ec-link[href$="/entry"]:hover,
.ec-login .ec-login__link a.ec-link[href$="/entry"]:focus,
.ec-login .ec-login__link a.ec-link[href$="/entry"]:active {
  color: var(--color-text-link) !important;
}

/* ショップオーナーログイン：サブリンク色（マイページの forgot / entry と同等） */
body#page_shop_owner_login .ec-login .ec-login__link .ec-link,
body#page_shop_owner_login .ec-login .ec-login__link .ec-link:visited,
body#page_shop_owner_login .ec-login .ec-login__link .ec-link:hover,
body#page_shop_owner_login .ec-login .ec-login__link .ec-link:focus,
body#page_shop_owner_login .ec-login .ec-login__link .ec-link:active {
  color: var(--color-text-link) !important;
}

.header-promo-banner .header-promo-banner__content {
  background: var(--color-brand-dark) !important;
  color: #ffffff !important;
}

.header-promo-banner .header-promo-banner__content a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ec-blockBtn--action {
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  color: #ffffff;
}

.ec-blockBtn--action:hover {
  background: var(--color-brand-deeper);
  border-color: var(--color-brand-deeper);
}

@media (max-width: 767px) {
  .ec-footerTitle__icons.footer-icons {
    gap: 14px 20px;
    margin-top: 10px;
    margin-bottom: 6px;
  }

  .footer-icons__sns-link {
    font-size: 18px;
  }

  .footer-icons__payment {
    font-size: 20px;
  }

  .footer-icons__card {
    font-size: 20px;
  }

  .footer-icons__paypay {
    font-size: 12px;
  }
}

/* ========================================
 * 全ページ共通：トップ画像サイズ（help/about に合わせる）
 * ======================================== */
.page-banner__image,
.help-page__banner .page-banner__image,
.genre-page .genre-page__banner {
  display: block;
  margin: 20px auto;
  border-radius: 16px;
  max-width: 100%;
  width: 100%;
  padding: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {

  .page-banner__image,
  .help-page__banner .page-banner__image,
  .genre-page .genre-page__banner {
    max-height: 140px;
    height: 140px;
  }
}

@media (min-width: 768px) {

  .page-banner__image,
  .help-page__banner .page-banner__image,
  .genre-page .genre-page__banner {
    max-height: 200px;
    height: 200px;
  }
}

/* ========================================
 * Help ページ共通デザイン
 * ======================================== */
.help-page {
  --help-border: #e8e6e3;
  --help-text: #1e293b;
  --help-text-muted: #64748b;
}

.help-page__banner {
  display: block;
  margin: 0 auto;
}

.help-page__wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 40px;
}

/* 利用規約ページ */
.help-agreement-wrapper .help-agreement__content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--help-text-muted);
}

.help-agreement-wrapper .help-agreement__content br {
  display: block;
  content: "";
  margin-top: 4px;
}

/* 当サイトについて・特定商取引法 */
.help-page__wrapper .ec-borderedDefs dl {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--help-border);
  border-radius: 0;
  margin: 0;
  padding: 14px 0;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
}

.help-page__wrapper .ec-borderedDefs dl:last-child {
  border-bottom: none;
}

.help-page__wrapper .ec-borderedDefs dt {
  margin: 0;
  flex: 0 0 auto;
  min-width: 120px;
}

.help-page__wrapper .ec-borderedDefs dt .ec-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--help-text);
}

.help-page__wrapper .ec-borderedDefs dd {
  margin: 0;
  flex: 1 1 200px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--help-text-muted);
}

.help-page__wrapper .ec-borderedDefs dd br {
  display: block;
  content: "";
  margin-top: 4px;
}

/* プライバシーポリシー・ご利用ガイド */
.help-page__wrapper .ec-off1Grid__cell {
  padding: 0;
}

.help-page__wrapper p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--help-text-muted);
  margin: 0 0 1em;
}

.help-page__wrapper p:last-child {
  margin-bottom: 0;
}

.help-page__wrapper .ec-heading-bold {
  font-size: 15px;
  font-weight: 600;
  color: var(--help-text);
  margin: 24px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--help-border);
}

.help-page__wrapper .ec-heading-bold:first-child {
  margin-top: 0;
}

.help-page__wrapper strong {
  color: var(--help-text);
  font-weight: 600;
}

.help-page__wrapper ol,
.help-page__wrapper ul {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.help-page__wrapper a {
  color: var(--help-text);
  text-decoration: underline;
}

/* カート空メッセージ：白背景・角丸・枠線なし・巨大カートアイコン */
.ec-cartNaviNull {
  background: #fff !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.ec-cartNaviNull::before {
  border-color: transparent transparent #fff transparent !important;
}

.ec-cartNaviNull .ec-cartNaviNull__message {
  background: #fff !important;
  color: #333 !important;
  border: none !important;
  border-radius: 12px;
  padding: 20px 16px 16px !important;
  font-size: 14px !important;
  font-weight: normal !important;
  text-align: center !important;
}

/* メッセージ上に巨大カートアイコン（Font Awesome fa-shopping-cart） */
.ec-cartNaviNull .ec-cartNaviNull__message::before {
  content: "\f07a";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: block;
  font-size: 56px;
  color: #ddd;
  line-height: 1;
  margin-bottom: 12px;
}

.ec-cartNaviNull .ec-cartNaviNull__message p {
  margin: 0 !important;
}

/* 新着情報カード：フラットデザイン */
.news-card-list {
  border-top: 1px solid #e5e7eb;
}

.news-card-list .news-card {
  background: #fff;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.news-card-list .news-card__header {
  padding: 14px 0;
  background: transparent;
  border: none;
}

.news-card-list .news-card__date {
  color: #64748b;
  font-weight: 500;
}

.news-card-list .news-card__title {
  color: #1f2937;
  font-weight: 600;
}

.news-card-list .news-card__body {
  padding: 0 0 14px;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* 新着情報カード：フォーカス時の強調を非表示 */
.news-card-list .news-card a:focus,
.news-card-list .news-card a:focus-visible,
.news-card-list .news-card button:focus,
.news-card-list .news-card button:focus-visible,
.news-card-list .news-card [role="button"]:focus,
.news-card-list .news-card [role="button"]:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
}

/* 新着情報（EC-CUBE標準クラス）でもフォーカス強調を無効化 */
.ec-newsRole a:focus,
.ec-newsRole a:focus-visible,
.ec-newsRole button:focus,
.ec-newsRole button:focus-visible,
.ec-newsRole [role="button"]:focus,
.ec-newsRole [role="button"]:focus-visible,
.ec-newsRole .ec-newsRole__newsCloseBtn:focus,
.ec-newsRole .ec-newsRole__newsCloseBtn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 新着情報：マウスオーバー時の発光・強調を無効化 */
.ec-newsRole .ec-newsRole__newsItem:hover,
.ec-newsRole .ec-newsRole__newsHeading:hover,
.ec-newsRole .ec-newsRole__newsDescription:hover,
.ec-newsRole .ec-newsRole__newsCloseBtn:hover,
.ec-newsRole .ec-newsRole__newsCloseBtn i:hover,
.ec-newsRole .ec-newsRole__newsTitle:hover,
.ec-newsRole .ec-newsRole__newsDescription a:hover {
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 対象カード周辺の発光（hover/focus/active）を完全に無効化 */
.ec-newsRole__newsItem.news-card,
.ec-newsRole__newsItem.news-card *,
.ec-newsRole__newsItem.news-card:hover,
.ec-newsRole__newsItem.news-card:focus,
.ec-newsRole__newsItem.news-card:active,
.ec-newsRole__newsItem.news-card *:hover,
.ec-newsRole__newsItem.news-card *:focus,
.ec-newsRole__newsItem.news-card *:active {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

.ec-newsRole__newsItem.news-card,
.ec-newsRole__newsItem.news-card .news-card__header,
.ec-newsRole__newsItem.news-card .news-card__body,
.ec-newsRole__newsItem.news-card .news-card__toggle,
.ec-newsRole__newsItem.news-card .news-card__toggle i {
  transition: none !important;
}

/* 商品一覧の検索は .store-list__filter と共通（Product/list.twig） */

/* 指定リンクの文字色 */
a[href="/products/list?category_id=26"] {
  color: var(--color-text-link);
}

a[href="/products/list?category_id=26"]:focus {
  color: var(--color-text-link);
}

.ec-newsRole__newsItem.news-card .news-card__body a,
.ec-newsRole__newsItem.news-card .news-card__body a:visited,
.ec-newsRole__newsItem.news-card .news-card__body a:hover,
.ec-newsRole__newsItem.news-card .news-card__body a:focus,
.ec-newsRole__newsItem.news-card .news-card__body a:active {
  color: var(--color-text-link) !important;
}

/* Main flow helper for 3-click verification */
.ec-flowAssist {
  margin: 0 8px 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  background: var(--color-bg-surface);
}
.ec-flowAssist__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}
.ec-flowAssist__text strong {
  color: var(--color-text-primary);
}

/* 商品一覧ヘッダーの操作エリアは文字をやや小さくする */
.ec-searchnavRole__actions .ec-flowAssist__text {
  font-size: 10px;
  line-height: 1.45;
}

.ec-searchnavRole__actions .ec-select select,
.ec-searchnavRole__actions .ec-select .form-select {
  font-size: 11px;
}
.ec-checkoutPath {
  margin: 10px 0 14px;
  padding: 6px 10px;
}
.ec-checkoutPath__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ec-checkoutPath__item {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-primary);
}
.ec-checkoutPath__item::after {
  content: ">";
  margin-left: 6px;
  color: #94a3b8;
  font-weight: 400;
}
.ec-checkoutPath__item:last-child::after {
  content: "";
  margin: 0;
}
.ec-checkoutPath__item a {
  color: #4a7fb5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(74, 127, 181, 0.4);
  transition: color 0.15s;
}
.ec-checkoutPath__item a:hover {
  color: #2f65a0;
  text-decoration-color: rgba(47, 101, 160, 0.6);
}
.ec-checkoutPath__item.is-current {
  font-weight: 700;
  color: var(--color-text-primary);
  border-bottom: 1.5px solid rgba(74, 127, 181, 0.5);
  padding-bottom: 1px;
}
.ec-checkoutPath__item:not(.is-current):not(:has(a)) {
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ===============================
 * Accessibility baseline (AA)
 * =============================== */
:root {
  --color-link-aa: #0f5f78;
  --color-link-aa-hover: #0b4b60;
  --color-focus-ring: #cbb39a;
  --color-focus-ring-shadow: rgba(203, 179, 154, 0.28);
}

/* カートページ：「あと1点でコーデ完成」と「送料・返却・交換ルール」を同サイズに統一 */
.ec-cartAssist,
.ec-cartPolicy {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 16px;
  background: var(--color-bg-surface, #ffffff);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 8px;
}

.ec-cartAssist__title,
.ec-cartPolicy__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 10px;
}

.ec-cartAssist__text {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}

.ec-cartPolicy__list {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

.ec-cartPolicy__list li {
  margin-bottom: 4px;
}

/* 茶/グレー背景上のリンク可読性を優先 */
a,
.ec-flowAssist a,
.store-list__filter-clear,
.ec-cartAssist__link {
  color: var(--color-link-aa);
}

a:hover,
a:focus-visible,
.ec-flowAssist a:hover,
.ec-flowAssist a:focus-visible,
.store-list__filter-clear:hover,
.store-list__filter-clear:focus-visible,
.ec-cartAssist__link:hover,
.ec-cartAssist__link:focus-visible {
  color: var(--color-link-aa-hover);
}

/* パンくずリンクは青色で表示 */
.ec-checkoutPath__item a:focus-visible {
  color: #1a6bbf;
  outline: 2px solid #1a6bbf;
  outline-offset: 2px;
  border-radius: 2px;
}

/* outline:none を使っている箇所を含め、キーボードフォーカスを可視化 */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.ec-blockBtn--action:focus-visible,
.ec-blockBtn--cancel:focus-visible,
.ec-inlineBtn--action:focus-visible,
.ec-inlineBtn--cancel:focus-visible,
.ec-radio__label:has(input:focus-visible) {
  outline: 3px solid var(--color-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--color-focus-ring-shadow) !important;
}

/* マウスクリック時の :focus でも EC-CUBE デフォルトの赤背景・赤枠線を上書きしてブランドカラーに統一 */
.ec-blockBtn--action:focus,
.ec-inlineBtn--action:focus,
.ec-cartRole__checkoutBtn:focus,
.ec-totalBox__btn .ec-blockBtn--action:focus,
.ec-RegisterRole__actions .ec-blockBtn--action:focus {
  background: var(--cta-primary-bg) !important;
  border-color: var(--cta-primary-bg) !important;
  color: var(--cta-primary-color) !important;
  outline: 3px solid var(--color-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--color-focus-ring-shadow) !important;
}

.ec-blockBtn--cancel:focus,
.ec-inlineBtn--cancel:focus,
.ec-totalBox__btn .ec-blockBtn--cancel:focus,
.ec-cartRole__actions .ec-blockBtn--cancel:focus {
  background: var(--cta-secondary-bg) !important;
  border-color: var(--cta-secondary-border) !important;
  color: var(--cta-secondary-color) !important;
  outline: 3px solid var(--color-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px var(--color-focus-ring-shadow) !important;
}

/* フロントのテキスト系入力：細枠に統一し、グローバル focus-visible の太い二重リングを避ける */
.ec-input input[type="text"]:focus-visible,
.ec-input input[type="email"]:focus-visible,
.ec-input input[type="tel"]:focus-visible,
.ec-input input[type="number"]:focus-visible,
.ec-input input[type="password"]:focus-visible,
.ec-input input[type="search"]:focus-visible,
.ec-input input[type="url"]:focus-visible,
.ec-input textarea:focus-visible,
.ec-input select:focus-visible,
.ec-halfInput input:focus-visible,
.ec-telInput input:focus-visible,
.ec-zipInput input:focus-visible,
.ec-select:not(.ec-select_search) select:focus-visible,
.ec-birth select:focus-visible,
.ec-role .form-control:focus-visible,
.shopping .form-control:focus-visible,
.ec-numberInput input[type="number"]:focus-visible,
.ec-productRole .ec-select select:focus-visible,
.ec-productRole .ec-numberInput input[type="number"]:focus-visible,
.store-list__filter-input:focus-visible {
  outline: 2px solid var(--color-focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}

/* 商品一覧の検索ボタン: 文字/背景コントラストをAAに寄せる */
.store-list__filter-btn {
  color: #ffffff;
  background: var(--color-brand-dark);
}

.store-list__filter-btn:hover {
  background: var(--color-brand-deeper);
}

.store-list__filter-btn:active {
  background: #5b452d;
}

/* ========================================
 * Typography hierarchy by page type
 * 商品詳細・一覧・ブログ・マイページで見出し〜本文を統一
 * ======================================== */
:root {
  --type-h1-size: 32px;
  --type-h1-line: 1.35;
  --type-h1-weight: 700;
  --type-h2-size: 26px;
  --type-h2-line: 1.4;
  --type-h2-weight: 700;
  --type-h3-size: 22px;
  --type-h3-line: 1.45;
  --type-h3-weight: 600;
  --type-h4-size: 18px;
  --type-h4-line: 1.55;
  --type-h4-weight: 600;
  --type-body-size: 16px;
  --type-body-line: 1.75;
  --type-body-weight: 400;
  --type-sub-size: 13px;
  --type-sub-line: 1.6;
  --type-sub-weight: 500;
}

body#page_product_detail .ec-layoutRole__main,
body#page_product_detail .ec-layoutRole__mainWithColumn,
body#page_product_list .ec-layoutRole__main,
body#page_product_list .ec-layoutRole__mainWithColumn,
body[id^="page_mypage"] .ec-layoutRole__main,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn,
body.mypage .ec-layoutRole__main,
body.mypage .ec-layoutRole__mainWithColumn,
.ec-cmsPage--blog {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
  color: var(--color-text-body);
}

body#page_product_detail .ec-layoutRole__main h1,
body#page_product_detail .ec-layoutRole__mainWithColumn h1,
body#page_product_list .ec-layoutRole__main h1,
body#page_product_list .ec-layoutRole__mainWithColumn h1,
body[id^="page_mypage"] .ec-layoutRole__main h1,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn h1,
body.mypage .ec-layoutRole__main h1,
body.mypage .ec-layoutRole__mainWithColumn h1,
.ec-cmsPage--blog h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  font-weight: var(--type-h1-weight);
}

body#page_product_detail .ec-layoutRole__main h2,
body#page_product_detail .ec-layoutRole__mainWithColumn h2,
body#page_product_list .ec-layoutRole__main h2,
body#page_product_list .ec-layoutRole__mainWithColumn h2,
body[id^="page_mypage"] .ec-layoutRole__main h2,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn h2,
body.mypage .ec-layoutRole__main h2,
body.mypage .ec-layoutRole__mainWithColumn h2,
.ec-cmsPage--blog h2 {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line);
  font-weight: var(--type-h2-weight);
}

body#page_product_detail .ec-layoutRole__main h3,
body#page_product_detail .ec-layoutRole__mainWithColumn h3,
body#page_product_list .ec-layoutRole__main h3,
body#page_product_list .ec-layoutRole__mainWithColumn h3,
body[id^="page_mypage"] .ec-layoutRole__main h3,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn h3,
body.mypage .ec-layoutRole__main h3,
body.mypage .ec-layoutRole__mainWithColumn h3,
.ec-cmsPage--blog h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
  font-weight: var(--type-h3-weight);
}

body#page_product_detail .ec-layoutRole__main h4,
body#page_product_detail .ec-layoutRole__mainWithColumn h4,
body#page_product_list .ec-layoutRole__main h4,
body#page_product_list .ec-layoutRole__mainWithColumn h4,
body[id^="page_mypage"] .ec-layoutRole__main h4,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn h4,
body.mypage .ec-layoutRole__main h4,
body.mypage .ec-layoutRole__mainWithColumn h4,
.ec-cmsPage--blog h4 {
  font-size: var(--type-h4-size);
  line-height: var(--type-h4-line);
  font-weight: var(--type-h4-weight);
}

body#page_product_detail .ec-layoutRole__main p,
body#page_product_detail .ec-layoutRole__main li,
body#page_product_detail .ec-layoutRole__main dd,
body#page_product_detail .ec-layoutRole__mainWithColumn p,
body#page_product_detail .ec-layoutRole__mainWithColumn li,
body#page_product_detail .ec-layoutRole__mainWithColumn dd,
body#page_product_list .ec-layoutRole__main p,
body#page_product_list .ec-layoutRole__main li,
body#page_product_list .ec-layoutRole__main dd,
body#page_product_list .ec-layoutRole__mainWithColumn p,
body#page_product_list .ec-layoutRole__mainWithColumn li,
body#page_product_list .ec-layoutRole__mainWithColumn dd,
body[id^="page_mypage"] .ec-layoutRole__main p,
body[id^="page_mypage"] .ec-layoutRole__main li,
body[id^="page_mypage"] .ec-layoutRole__main dd,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn p,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn li,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn dd,
body.mypage .ec-layoutRole__main p,
body.mypage .ec-layoutRole__main li,
body.mypage .ec-layoutRole__main dd,
body.mypage .ec-layoutRole__mainWithColumn p,
body.mypage .ec-layoutRole__mainWithColumn li,
body.mypage .ec-layoutRole__mainWithColumn dd,
.ec-cmsPage--blog p,
.ec-cmsPage--blog li,
.ec-cmsPage--blog dd {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  font-weight: var(--type-body-weight);
}

body#page_product_detail .ec-layoutRole__main small,
body#page_product_detail .ec-layoutRole__mainWithColumn small,
body#page_product_list .ec-layoutRole__main small,
body#page_product_list .ec-layoutRole__mainWithColumn small,
body[id^="page_mypage"] .ec-layoutRole__main small,
body[id^="page_mypage"] .ec-layoutRole__mainWithColumn small,
body.mypage .ec-layoutRole__main small,
body.mypage .ec-layoutRole__mainWithColumn small,
.ec-cmsPage--blog small {
  font-size: var(--type-sub-size);
  line-height: var(--type-sub-line);
  font-weight: var(--type-sub-weight);
}

@media (max-width: 767px) {
  :root {
    --type-h1-size: 26px;
    --type-h2-size: 22px;
    --type-h3-size: 19px;
    --type-h4-size: 17px;
    --type-body-size: 15px;
    --type-sub-size: 12px;
  }
}

/* ========================================
 * CTA unification rule
 * 1画面に主CTAは1つ。副CTAは補助色・同グループ内に配置。
 * ======================================== */
:root {
  --cta-height: 48px;
  --cta-radius: 10px;
  --cta-font-size: 15px;
  --cta-font-weight: 700;
  --cta-primary-bg: var(--color-brand-dark);
  --cta-primary-bg-hover: var(--color-brand-deeper);
  --cta-primary-color: #ffffff;
  --cta-secondary-bg: #ffffff;
  --cta-secondary-color: #475569;
  --cta-secondary-border: #cbd5e1;
  --cta-gap: 10px;
}

.ec-blockBtn--action,
.ec-inlineBtn--action,
.ec-cartRole__checkoutBtn,
.ec-totalBox__btn .ec-blockBtn--action,
.ec-RegisterRole__actions .ec-blockBtn--action {
  min-height: var(--cta-height);
  border-radius: var(--cta-radius) !important;
  font-size: var(--cta-font-size);
  font-weight: var(--cta-font-weight);
  letter-spacing: 0.01em;
  background: var(--cta-primary-bg);
  border: 1px solid var(--cta-primary-bg);
  color: var(--cta-primary-color);
}

.ec-blockBtn--action:hover,
.ec-inlineBtn--action:hover,
.ec-cartRole__checkoutBtn:hover,
.ec-totalBox__btn .ec-blockBtn--action:hover,
.ec-RegisterRole__actions .ec-blockBtn--action:hover {
  background: var(--cta-primary-bg-hover);
  border-color: var(--cta-primary-bg-hover);
  color: var(--cta-primary-color);
}

/* style.css の :disabled 赤（#DE5D50）・グレー（#525263）を全CTAクラスでブランドカラーに統一 */
.ec-blockBtn--action:disabled,
.ec-blockBtn--action.disabled,
button.ec-blockBtn--action[disabled],
.ec-inlineBtn--action:disabled,
.ec-inlineBtn--action.disabled,
button.ec-inlineBtn--action[disabled] {
  background: var(--cta-primary-bg) !important;
  border-color: var(--cta-primary-bg) !important;
  color: var(--cta-primary-color) !important;
  opacity: 0.65;
}

.ec-blockBtn--action:disabled:focus,
.ec-blockBtn--action:disabled:focus-visible,
button.ec-blockBtn--action[disabled]:focus,
button.ec-blockBtn--action[disabled]:focus-visible,
.ec-inlineBtn--action:disabled:focus,
.ec-inlineBtn--action:disabled:focus-visible,
button.ec-inlineBtn--action[disabled]:focus,
button.ec-inlineBtn--action[disabled]:focus-visible {
  background: var(--cta-primary-bg) !important;
  border-color: var(--cta-primary-bg) !important;
  color: var(--cta-primary-color) !important;
}

/* お気に入り追加済み・副CTA disabled：グレー（#525263）を白ベースの副CTAに統一 */
.ec-blockBtn--cancel:disabled,
.ec-blockBtn--cancel.disabled,
button.ec-blockBtn--cancel[disabled],
.ec-inlineBtn--cancel:disabled,
.ec-inlineBtn--cancel.disabled,
button.ec-inlineBtn--cancel[disabled] {
  background: var(--cta-secondary-bg) !important;
  border-color: var(--cta-secondary-border) !important;
  color: var(--cta-secondary-color) !important;
  opacity: 0.85;
  cursor: default;
}

/* 在庫なし（規格 JS で付与）: 主CTAの茶色 disabled にしない。一覧の狭いカードでも読みやすく */
.product_page .ec-productRole__btn .add-cart.add-cart--out-of-stock,
.product_page .ec-productRole__btn .add-cart.add-cart--out-of-stock:disabled {
  background: #f1f5f9 !important;
  border: 1px solid var(--cta-secondary-border, #cbd5e1) !important;
  color: var(--cta-secondary-color, #475569) !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: not-allowed !important;
  line-height: 1.25 !important;
  min-height: 44px !important;
  white-space: normal !important;
  text-align: center !important;
}

.product_page .ec-productRole__btn .add-cart.add-cart--out-of-stock .fa-fw {
  flex-shrink: 0;
}

.ec-blockBtn--cancel,
.ec-inlineBtn--cancel,
.ec-totalBox__btn .ec-blockBtn--cancel,
.ec-cartRole__actions .ec-blockBtn--cancel {
  min-height: var(--cta-height);
  border-radius: var(--cta-radius) !important;
  font-size: var(--cta-font-size);
  font-weight: var(--cta-font-weight);
  background: var(--cta-secondary-bg);
  border: 1px solid var(--cta-secondary-border);
  color: var(--cta-secondary-color);
}

.ec-blockBtn--cancel:hover,
.ec-inlineBtn--cancel:hover,
.ec-totalBox__btn .ec-blockBtn--cancel:hover,
.ec-cartRole__actions .ec-blockBtn--cancel:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--cta-secondary-color);
}

/* style.css の .ec-totalBox .ec-totalBox__btn a { color: inherit } が
 * 上のルールより詳細度が高く、親の #fff を継承して白地に白文字になるのを防ぐ */
.ec-totalBox .ec-totalBox__btn > a.ec-blockBtn--cancel,
.ec-totalBox .ec-totalBox__btn a.ec-blockBtn--cancel {
  color: var(--cta-secondary-color);
}

.ec-totalBox__btn,
.ec-cartRole__actions,
.ec-RegisterRole__actions .ec-off4Grid__cell {
  display: grid;
  gap: var(--cta-gap);
}

/* CTAグループ内では主CTAを先頭に置く（視線誘導を統一） */
.ec-totalBox__btn > .ec-blockBtn--action,
.ec-cartRole__actions > .ec-blockBtn--action,
.ec-RegisterRole__actions .ec-blockBtn--action {
  order: 1;
}

.ec-totalBox__btn > .ec-blockBtn--cancel,
.ec-cartRole__actions > .ec-blockBtn--cancel {
  order: 2;
}

@media (max-width: 767px) {
  :root {
    --cta-height: 44px;
    --cta-font-size: 14px;
    --cta-gap: 8px;
  }
}

/* ========================================
 * Empty / error state assist
 * ======================================== */
.ec-stateAssist {
  margin: 14px 0 20px;
  padding: 16px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ec-stateAssist__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.ec-stateAssist__message {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.ec-stateAssist__actions {
  display: grid;
  gap: 8px;
}

.ec-stateAssist__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.ec-stateAssist__action--primary {
  background: var(--color-brand-dark);
  border: 1px solid var(--color-brand-dark);
  color: #fff;
}

.ec-stateAssist__action--secondary {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #475569;
}

/* ========================================
 * Motion baseline
 * 過剰なホバー/展開を抑え、必要時のみ動かす
 * ======================================== */
:root {
  --motion-fast: 120ms;
  --motion-base: 160ms;
  --motion-ease: ease-out;
}

.ec-blockBtn--action,
.ec-blockBtn--cancel,
.ec-inlineBtn--action,
.ec-inlineBtn--cancel,
.ec-stateAssist__action,
.store-list__link,
.ec-headerSearch__submit,
.category-accordion__header,
.category-accordion__header-icon,
.category-accordion__sub-header,
.popular-carousel__card,
.new-item-carousel-wrap .popular-carousel__card,
.ec-productRating__item,
.ec-productRecommendV1__card,
.ec-productDecisionSummary__item--size,
.ec-productFavoriteCount {
  transition-duration: var(--motion-base);
  transition-timing-function: var(--motion-ease);
}

/* 浮き上がり量を抑えて視線ノイズを低減 */
.store-list__link:hover,
.ec-blockTopBtn.pagetop:hover,
.ec-productRating__item:hover,
.ec-productRecommendV1__card:hover,
.ec-productFavoriteCount:hover,
.ec-productRating__filter-btn:hover,
.ec-productRating__form-submit:hover {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .ec-sliderRole.hero-slider .hero-slider__arrow:hover,
  .store-list__link:hover,
  .ec-productRating__item:hover,
  .ec-productRecommendV1__card:hover,
  .ec-blockTopBtn.pagetop:hover,
  .ec-productFavoriteCount:hover,
  .ec-productRating__filter-btn:hover,
  .ec-productRating__form-submit:hover {
    transform: none !important;
  }
}

/* ========================================
 * ページャー（ショップ一覧 /stores と同型）
 * ec-pagerRole--flat を付与したブロックのみ適用
 * ======================================== */
.ec-pagerRole--flat .ec-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0 12px;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item,
.ec-pagerRole--flat .ec-pager .ec-pager__item--active {
  display: inline-flex;
  padding: 0;
  min-width: 0;
  background: transparent;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item:hover {
  background: transparent;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item a,
.ec-pagerRole--flat .ec-pager .ec-pager__item--active a {
  min-width: 40px;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  background: transparent;
  border: 1px solid transparent;
  line-height: 1;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item a:hover {
  background: #f3f4f6;
  color: #111827;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item--active a {
  background: #111827;
  color: #fff;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item--active a:hover {
  background: #374151;
  color: #fff;
}

.ec-pagerRole--flat .ec-pager .ec-pager__item:not(.ec-pager__item--active):not(:has(> a)) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* ========================================
 * Image tone & thumbnail crop baseline
 * ======================================== */
:root {
  --thumb-tone-brightness: 1.03;
  --thumb-tone-saturation: 0.94;
  --thumb-tone-contrast: 0.98;
  --thumb-object-position: center center;
}

/* 商品一覧サムネ（一覧グリッド） */
.ec-shelfGrid__item-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.ec-shelfGrid__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--thumb-object-position);
  filter: brightness(var(--thumb-tone-brightness)) saturate(var(--thumb-tone-saturation)) contrast(var(--thumb-tone-contrast));
}

/* 商品カルーセル・新着カルーセル */
.popular-carousel-wrap .popular-carousel__img,
.new-item-carousel-wrap .popular-carousel__img {
  object-position: var(--thumb-object-position);
  filter: brightness(var(--thumb-tone-brightness)) saturate(var(--thumb-tone-saturation)) contrast(var(--thumb-tone-contrast));
}

/* ショップ一覧サムネ */
.store-list__image img {
  object-position: var(--thumb-object-position);
  filter: brightness(var(--thumb-tone-brightness)) saturate(var(--thumb-tone-saturation)) contrast(var(--thumb-tone-contrast));
}

.store-list__image--logo img {
  object-fit: contain;
  padding: 12px 16px;
  box-sizing: border-box;
}

/* ========================================
 * マイページ：お気に入り一覧（商品）— 削除ボタンの×を円中央に
 * style.css の .ec-favoriteRole ... .ec-icon img が width/height のみで
 * 標準の absolute 中央指定を無効化し、×が左寄りになるため flex で補正する。
 * ======================================== */
/* サムネイルの <a> が後続 DOM のため上に重なり、×クリックが商品詳細へ飛ぶ問題を防ぐ */
.ec-favoriteRole .ec-favoriteRole__item > .ec-favoriteRole__itemThumb {
  position: relative;
  z-index: 1;
}

.ec-favoriteRole .ec-favoriteRole__item > .ec-closeBtn--circle {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: absolute;
  z-index: 10;
  /* 右端寄せ（標準 right:10px より右へ）＋さらに小さめ */
  right: 4px;
  top: 6px;
  width: 24px;
  min-width: 24px;
  max-width: 24px;
  height: 24px;
  pointer-events: auto;
}

.ec-favoriteRole .ec-favoriteRole__item > .ec-closeBtn--circle .ec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.ec-favoriteRole .ec-favoriteRole__item > .ec-closeBtn--circle .ec-icon img {
  position: static;
  margin: 0;
  top: auto;
  left: auto;
  display: block;
  width: 10px;
  height: 10px;
  vertical-align: middle;
}

/* マイページ：お気に入りショップ */
.mypage-favorite-stores__header p {
  margin: 0;
  line-height: 1.55;
}

.mypage-favorite-stores-page .cms42-list__grid {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  gap: 16px;
}

.mypage-favorite-stores-page .store-list__card {
  height: auto;
}

.mypage-favorite-stores-page .store-list__link.cms42-list__rowLink {
  display: block;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  overflow: hidden;
}

.mypage-favorite-stores-page .store-list__link.cms42-list__rowLink:hover {
  transform: none;
  box-shadow: none;
}

.mypage-favorite-stores-page .store-list__content.cms42-list__main {
  padding: 16px 18px 14px;
}

.mypage-favorite-stores-page .store-list__profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mypage-favorite-stores-page .store-list__avatar {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mypage-favorite-stores-page .store-list__thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mypage-favorite-stores-page .store-list__avatar-fallback {
  color: #6b7280;
  font-size: 22px;
}

.mypage-favorite-stores-page .store-list__identity {
  min-width: 0;
  flex: 1 1 auto;
}

.mypage-favorite-stores-page .cms42-list__category {
  display: inline-block;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.mypage-favorite-stores-page .store-list__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.3;
  color: #111827;
  font-weight: 700;
}

.mypage-favorite-stores-page .store-list__follow-chip {
  min-height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  background: #8b6f47;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mypage-favorite-stores-page .store-list__rating-line {
  font-size: 0.78rem;
  color: #666;
  margin: 8px 0 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.mypage-favorite-stores-page .store-list__rating-line--placeholder {
  visibility: hidden;
  min-height: 1.35em;
}

.mypage-favorite-stores-page .cms42-list__excerpt,
.mypage-favorite-stores-page .store-list__desc.cms42-list__excerpt {
  margin: 0;
  font-size: 1rem;
  color: #1f2937;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.mypage-favorite-stores-page .store-list__social-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6b7280;
  font-size: 1.2rem;
}

.mypage-favorite-stores-page .store-list__social-icon {
  display: inline-flex;
  line-height: 1;
  cursor: pointer;
}

.mypage-favorite-stores__empty-cta {
  text-align: center;
  margin: 16px 0 32px;
}

.mypage-favorite-stores__empty-btn {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .mypage-favorite-stores-page .cms42-list__grid {
    gap: 12px;
    max-width: none;
  }

  .mypage-favorite-stores-page .store-list__content.cms42-list__main {
    padding: 12px;
  }

  .mypage-favorite-stores-page .store-list__profile-head {
    gap: 10px;
  }

  .mypage-favorite-stores-page .store-list__avatar {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .mypage-favorite-stores-page .store-list__title {
    font-size: 1.1rem;
  }

  .mypage-favorite-stores-page .store-list__follow-chip {
    min-height: 30px;
    padding: 0 12px;
    font-size: 0.75rem;
  }

  .mypage-favorite-stores-page .cms42-list__excerpt,
  .mypage-favorite-stores-page .store-list__desc.cms42-list__excerpt {
    font-size: 0.85rem;
  }

  .mypage-favorite-stores-page .store-list__social-row {
    font-size: 1.05rem;
    gap: 12px;
  }
}

/* ============================================================
 * Inline CSS migrated from Twig (performance / cache)
 * ============================================================ */

/* ---- index.twig inline block #1 ---- */
/* 【H】クーポンバナー */
.coupon-band-wrap {
  margin: 32px 0;
  padding: 0 16px;
  box-sizing: border-box;
}
.coupon-band {
  background: linear-gradient(135deg, #b99874 0%, #c8a87e 50%, #b99874 100%);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(185, 152, 116, 0.3);
}
.coupon-band__icon {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}
.coupon-band__body {
  text-align: center;
  color: #fff;
  flex: 1;
  min-width: 0;
}
.coupon-band__sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  opacity: 0.9;
}
.coupon-band__amount {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
}
.coupon-band__off {
  font-size: 22px;
  font-weight: 800;
  vertical-align: middle;
}
.coupon-band__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8f6f4d 0%, #6b5344 100%);
  color: #fffaf5;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(107, 83, 68, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.coupon-band__btn:hover {
  background: linear-gradient(135deg, #7a5f45 0%, #5c4638 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 70, 56, 0.4);
}
.coupon-band__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .coupon-band-wrap {
    display: none;
  }
}

/* ---- Shopping/index.twig inline block #1 ---- */
.ec-orderPayment__radio .ec-orderPayment__item {
  display: block;
  margin-bottom: 12px;
}
.ec-orderPayment__radio .ec-radio__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.ec-orderPayment__radio .ec-radio__label:hover {
  border-color: rgba(92, 177, 177, 0.4);
  background: rgba(92, 177, 177, 0.04);
}
.ec-orderPayment__radio .ec-radio__label:has(input:checked) {
  border-color: #b99874;
  background: rgba(92, 177, 177, 0.08);
}
.ec-orderPayment__radio .ec-radio__label:has(input:checked) .ec-orderPayment__icon {
  background: rgba(92, 177, 177, 0.2);
  color: #b99874;
}
.ec-orderPayment__radio .ec-radio__label input {
  margin: 0;
  flex-shrink: 0;
}
.ec-orderPayment__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(185, 152, 116, 0.12);
  border-radius: 8px;
  color: #b99874;
  font-size: 16px;
  flex-shrink: 0;
}
.ec-orderPayment__label {
  font-weight: 500;
  color: #334155;
}
.ec-orderPayment__radio .ec-orderPayment__item > p {
  margin: 8px 0 0 48px;
}

/* ---- Shopping/login.twig inline block #1 ---- */
.social-login-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-social, .ec-blockBtn-login {
  display: inline-block;
  color: #fff;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  width: 100%;
  border-radius: 20px;
}

.btn-google {
  background-color: #06c755;
}

.btn-google .fa-google {
  margin-right: 10px;
}

.btn-line {
  background-color: #00c300;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
}

.btn-line:hover {
  color: #fff;
}

.ec-blockBtn-login {
  background-color: var(--color-brand-base);
  border-color: #fff;
  color: #fff;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ec-login__link {
  margin-top: 20px;
}

.ec-password-field {
  position: relative;
  display: block;
  width: 100%;
}
.ec-password-field .form-control {
  padding-right: 2.75rem;
  border-radius: 14px;
}
.ec-password-field__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.ec-password-field__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}
.ec-password-field__toggle:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 2px;
}

/* ---- Mypage/navi.twig inline block #1 ---- */
.mypage .ec-navlistRole {
  margin-bottom: 24px;
  padding: 12px;
  border: 1px solid rgba(139, 111, 71, 0.18);
  border-radius: 16px;
  background: #faf6f2;
  box-shadow: none;
}
.mypage .ec-navlistRole .ec-navlistRole__navlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
  background: transparent;
}
.mypage .ec-navlistRole .ec-navlistRole__item {
  margin: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 111, 71, 0.12);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
  min-width: 0;
}
.mypage .ec-navlistRole .ec-navlistRole__item a {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.mypage .ec-navlistRole .ec-navlistRole__item a .ec-navlistRole__linkText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mypage .ec-navlistRole .ec-navlistRole__item i {
  color: var(--color-brand-dark);
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  flex: 0 0 22px;
}
/* Font Awesome 読み込み前後でもアイコン列幅を確保（デスクトップは未指定だったため一瞬ズレやすい） */
.mypage .ec-navlistRole .ec-navlistRole__item a .fa-fw {
  flex: 0 0 1.25em;
  min-width: 1.25em;
  text-align: center;
}
.mypage .ec-navlistRole .ec-navlistRole__item:hover {
  box-shadow: inset 0 0 0 1px rgba(139, 111, 71, 0.25);
  background: #fffaf5;
}
.mypage .ec-navlistRole .ec-navlistRole__item:hover a {
  color: var(--color-brand-deeper);
}
.mypage .ec-navlistRole .ec-navlistRole__item.active {
  background: #f4ece2;
  box-shadow: inset 0 0 0 2px rgba(139, 111, 71, 0.45);
}
.mypage .ec-navlistRole .ec-navlistRole__item.active a {
  color: var(--color-brand-deeper);
  font-weight: 700;
}
.mypage .ec-welcomeMsg {
  margin: 24px 0;
  padding: 20px 24px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(185, 152, 116, 0.15);
  text-align: center;
}
.mypage .ec-welcomeMsg p {
  margin: 0 0 8px;
  font-size: 15px;
  color: #334155;
}
.mypage .ec-welcomeMsg p:last-child {
  margin-bottom: 0;
}
@media (min-width: 768px) {
  .mypage .ec-navlistRole {
    padding: 10px;
  }
  .mypage .ec-navlistRole .ec-navlistRole__navlist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item a .ec-navlistRole__linkText {
    flex: 1 1 0%;
    text-align: center;
  }
}
@media (max-width: 767px) {
  .mypage .ec-navlistRole {
    margin-bottom: 16px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: none;
  }
  .mypage .ec-navlistRole .ec-navlistRole__navlist {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item {
    width: 100%;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(139, 111, 71, 0.14);
  }
  .mypage .ec-navlistRole .ec-navlistRole__item a {
    min-height: 48px;
    padding: 12px 14px;
    justify-content: flex-start;
    font-size: 12px;
    line-height: 1.3;
    gap: 10px;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item a .ec-navlistRole__linkText {
    flex: 1 1 auto;
    text-align: left;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item i {
    width: 22px;
    height: 22px;
    font-size: 12px;
    flex: 0 0 22px;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item.active a {
    color: #5e452a;
    font-weight: 700;
    box-shadow: none;
  }
  .mypage .ec-navlistRole .ec-navlistRole__item.active i {
    color: var(--color-brand-dark);
    background: transparent;
  }
  .mypage .ec-welcomeMsg {
    margin: 16px 0;
    padding: 14px 12px;
    border-radius: 10px;
  }
  .mypage .ec-welcomeMsg p {
    margin: 0 0 6px;
    font-size: 13px;
  }
}

/* マイページ お届け先一覧: スマホで「変更」が縦並びになるのを防止 */
@media (max-width: 767px) {
  body#page_mypage_delivery .ec-addressList__action .ec-inlineBtn {
    display: inline-block;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    min-width: 3.5em;
    text-align: center;
  }
}

/* ---- Mypage/index.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/favorite.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/history.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/delivery.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/change.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/withdraw.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* ---- Mypage/login.twig inline block #1 ---- */
.ec-login__actions {
  width: 100%;
}
.ec-login__actions .ec-blockBtn--cancel {
  width: 100%;
}

/* ゲスト購入：style.css の .ec-guest__actions { color: #fff } 継承を打ち消し */
.ec-guest .ec-guest__actions .ec-blockBtn--cancel {
  color: #1a1a1a !important;
}

.ec-guest .ec-guest__actions .ec-blockBtn--cancel:hover,
.ec-guest .ec-guest__actions .ec-blockBtn--cancel:focus-visible {
  color: #1a1a1a !important;
}

/* ログイン固有：バッジ・サブタイトル（ヘッダー本体はsite-custom.cssで共通化） */
.mypage .ec-login-header__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b99874;
  background: rgba(185, 152, 116, 0.12);
  border-radius: 100px;
  margin-bottom: 14px;
}
.mypage .ec-login-header__subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}
.ec-password-field {
  position: relative;
  display: block;
  width: 100%;
}
.ec-password-field .form-control {
  padding-right: 2.75rem;
  border-radius: 14px;
}
.ec-password-field__toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
}
.ec-password-field__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}
.ec-password-field__toggle:focus-visible {
  outline: 2px solid #337ab7;
  outline-offset: 2px;
}

/* ---- Entry/index.twig inline block #1 ---- */
.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* 新規会員登録：ソーシャルログイン（丸型小アイコン横並び） */
.entry-social-login-block {
  margin: 20px 0 24px;
  text-align: center;
}
.entry-social-login-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.5;
}
.entry-social-login-icons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 !important;
}
.entry-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  transition: opacity 0.2s, transform 0.2s;
}
.entry-social-icon:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.entry-social-icon--google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}
.entry-social-icon--google svg {
  width: 22px;
  height: 22px;
}
.entry-social-icon--facebook {
  background: #1877f2;
}
.entry-social-icon--line {
  background: #00c300;
}
.registration_page .social-login-description {
  font-size: 12px;
  color: #888;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* 生年月日：横並び・サイズ調整 */
.ec-registerRole .ec-birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ec-registerRole .ec-birth select {
  display: inline-block;
  width: auto;
  min-width: 0;
  margin: 0;
}
.ec-registerRole .ec-birth select:nth-of-type(1) {
  width: 88px;
  flex-shrink: 0;
}
.ec-registerRole .ec-birth select:nth-of-type(2),
.ec-registerRole .ec-birth select:nth-of-type(3) {
  width: 76px;
  flex-shrink: 0;
}
.ec-registerRole .ec-birth span {
  margin: 0;
}

/* マイページ会員情報編集: 生年月日サイズを新規会員登録と統一 */
.ec-editRole .ec-birth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.ec-editRole .ec-birth select {
  display: inline-block;
  width: auto;
  min-width: 0;
  margin: 0;
}
.ec-editRole .ec-birth select:nth-of-type(1) {
  width: 88px;
  flex-shrink: 0;
}
.ec-editRole .ec-birth select:nth-of-type(2),
.ec-editRole .ec-birth select:nth-of-type(3) {
  width: 76px;
  flex-shrink: 0;
}
.ec-editRole .ec-birth span {
  margin: 0;
}

/* 性別：ラジオボタン位置調整 */
.ec-registerRole .ec-radio > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.ec-registerRole .ec-radio label {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.ec-registerRole .ec-radio input {
  margin-right: 6px;
  margin-bottom: 0;
}

/* ---- Contact/index.twig inline block #1 ---- */
.help-contact-page {
  --contact-border: #e8e6e3;
  --contact-text: #1e293b;
  --contact-text-muted: #64748b;
}
.help-contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 40px;
}
.help-contact-wrapper .ec-borderedDefs dl {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--contact-border);
  border-radius: 0;
  margin: 0;
  padding: 14px 0;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 16px;
}
.help-contact-wrapper .ec-borderedDefs dl:last-child {
  border-bottom: none;
}
.help-contact-wrapper .ec-borderedDefs dt {
  margin: 0;
  flex: 0 0 auto;
  min-width: 120px;
}
.help-contact-wrapper .ec-borderedDefs dt .ec-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--contact-text);
}
.help-contact-wrapper .ec-borderedDefs dd {
  margin: 0;
  flex: 1 1 200px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--contact-text-muted);
}

/* ---- Block/check_product42_sp.twig inline block #1 ---- */
.ec-checkProductRole {
  padding: 60px 0 0;
}

.ec-checkProductItemRole__list {
  display: flex;
  flex-wrap: wrap;
}

.ec-checkProductRole__listItem {
  margin-bottom: 4%;
  width: 48%;
  height: auto;
}

.ec-checkProductRole__listItem:nth-child(odd) {
  margin-right: 4%;
}

.ec-checkProductRole__listItemTitle {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: bold;
}

.ec-checkProductRole__brand {
  margin: -6px 0 8px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.3;
}

.ec-checkProductRole {
  padding: 60px 0;
}

.ec-checkProductItemRole__list {
  flex-wrap: nowrap;
}

.ec-checkProductRole__listItem {
  margin-bottom: 15px;
  width: calc(100% / 4);
}

.ec-checkProductRole__listItem:not(:last-of-type) {
  margin-right: 30px;
}

.ec-checkProductRole__listItemTitle:nth-child(odd) {
  margin-right: 30px;
}

.page-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 中央に配置 */
  padding: 0 10px; /* 左右に10pxの余白を追加 */
}

.page-card-grid__item {
  width: 48%; /* 2個ずつ表示するために幅を50%未満に設定 */
  margin-bottom: 20px;
  padding: 0 5px; /* 各アイテムに左右5pxの余白を追加 */
}

.page-card-grid__item img {
  width: 100%;
  height: auto;
  border-radius: 15px; /* 角を丸くする */
  display: block;
  margin: 0 auto; /* 中央に配置 */
}

.page-banner {
  text-align: center;
  padding: 20px 0;
}

.no-products-message {
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 20px;
}

/* ---- Block/check_product42_sp.twig inline block #2 ---- */
@media (max-width: 767px) {
  .ec-checkProductRole {
    padding: 20px;
  }

  .ec-newItemRole__list {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ec-newItemRole__list::-webkit-scrollbar {
    display: none;
  }

  .ec-shelfGrid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .ec-shelfGrid__item {
    flex: 1 0 48%;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  .ec-shelfGrid__item:nth-child(odd) {
    margin-right: 4%;
  }

  .ec-checkProductRole__listItemTitle {
    margin: 10px 0;
    font-size: 14px;
    font-weight: bold;
  }
}

@media (min-width: 768px) {
  .ec-checkProductRole {
    display: none;
  }
}

/* 商品一覧カード（ec-shelfGrid__item）をスマホで常に2列表示 */
@media (max-width: 767px) {
  .view_history_page .ec-shelfRole .ec-shelfGrid,
  .product_page .ec-shelfRole .ec-shelfGrid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .view_history_page .ec-shelfRole .ec-shelfGrid > li.ec-shelfGrid__item,
  .product_page .ec-shelfRole .ec-shelfGrid > li.ec-shelfGrid__item {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ===============================
 * 投稿ショップ・著者カード（CMS / ショップ記事詳細・添付デザイン準拠）
 * =============================== */
.cms42-show-store-wrap {
  margin-top: 28px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  body.cms_page .cms42-show-store-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

.cms42-author-card {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
}

.cms42-author-card__toolbar {
  margin-bottom: 20px;
}

.cms42-author-card__toolbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cms42-author-card__engage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  background: none;
  padding: 4px;
  cursor: pointer;
  line-height: 1;
}

.cms42-author-card__engage:hover {
  color: #374151;
}

.cms42-author-card__engage--storemark {
  cursor: default;
  pointer-events: none;
}

.cms42-author-card__store-icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-brand-base, #b69e84);
  background: #faf8f5;
  color: var(--color-brand-dark, #8b6f47);
  font-size: 0.95rem;
}

.cms42-author-card__engage--btn {
  font: inherit;
}

.cms42-author-card__more {
  position: relative;
}

.cms42-author-card__more > summary {
  list-style: none;
}

.cms42-author-card__more > summary::-webkit-details-marker {
  display: none;
}

.cms42-author-card__engage--summary {
  list-style: none;
}

.cms42-author-card__more-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  padding: 8px 0;
  z-index: 20;
}

.cms42-author-card__more-panel a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #111827;
  text-decoration: none;
}

.cms42-author-card__more-panel a:hover {
  background: #f9fafb;
}

.cms42-show-store {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cms42-show-store__media {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f4f6;
  box-sizing: border-box;
}

.cms42-show-store__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border: 0;
  border-radius: 0;
}

.cms42-show-store__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f3f4f6;
  color: #9ca3af;
  font-size: 1.5rem;
  border-radius: 0;
}

.cms42-show-store__body {
  flex: 1 1 auto;
  min-width: 0;
}

.cms42-show-store__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cms42-show-store__title-col {
  min-width: 0;
}

.cms42-show-store__kicker {
  margin: 0 0 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #6b7280;
  text-transform: uppercase;
}

.cms42-show-store__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.cms42-show-store__follow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px;
  background: var(--color-brand-base, #b69e84);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--color-brand-dark, #8b6f47);
  margin-top: 2px;
}

.cms42-show-store__follow:hover {
  background: var(--color-brand-dark, #8b6f47);
  border-color: var(--color-brand-dark, #8b6f47);
  color: #fff !important;
}

.cms42-show-store__desc {
  margin: 0 0 12px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #4b5563;
}

.cms42-show-store__social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cms42-show-social {
  color: #9ca3af;
  font-size: 1.125rem;
  text-decoration: none;
}

.cms42-show-social:hover {
  color: #4b5563;
}

/* category.twig から移設: category-modern */
.category-modern {
  margin: 32px 0 40px;
  padding: 36px 20px;
  border-radius: 24px;
}
.category-modern__header {
  text-align: center;
  margin-bottom: 32px;
}
.category-modern__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b99874;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 4px 12px;
  background: rgba(185, 152, 116, 0.12);
  border-radius: 20px;
}
.category-modern__title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.category-modern__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.category-modern__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.995);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.025);
}
.category-modern__card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}
.category-modern__img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.category-modern__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(var(--thumb-tone-brightness, 1.03)) saturate(var(--thumb-tone-saturation, 0.94))
    contrast(var(--thumb-tone-contrast, 0.98));
}
.category-modern__name {
  letter-spacing: 0.03em;
}
.category-modern__scroll {
  display: none;
}
@media (max-width: 767px) {
  .category-modern__grid {
    display: none;
  }
  .category-modern {
    margin: 24px 0 32px;
    padding: 24px 0;
  }
  .category-modern__header {
    margin-bottom: 20px;
  }
  .category-modern__title {
    font-size: 22px;
  }
  .category-modern__scroll {
    display: block;
    overflow: hidden;
    margin: 0 -16px;
  }
  .category-modern__scroll-inner {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 8px 16px 16px;
  }
  .category-modern__scroll-inner::-webkit-scrollbar {
    display: none;
  }
  .category-modern__scroll-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.2s ease;
  }
  .category-modern__scroll-item:active {
    transform: scale(0.95);
  }
  .category-modern__scroll-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
  }
  .category-modern__scroll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(var(--thumb-tone-brightness, 1.03)) saturate(var(--thumb-tone-saturation, 0.94))
      contrast(var(--thumb-tone-contrast, 0.98));
  }
  .category-modern__scroll-name {
    text-align: center;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
 * category_acodion.twig（SP アコーディオン）— 元インライン style ブロックを集約
 * -------------------------------------------------------------------------- */
.category-accordion {
  display: none;
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
}

.category-accordion__item {
  border-bottom: 1px solid #ddd;
}

.category-accordion__item:last-child {
  border-bottom: none;
}

.category-accordion__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.category-accordion__header:hover {
  background-color: #e9e9e9;
}

.category-accordion__header-icon {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.category-accordion__header img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-right: 10px;
  object-fit: cover;
}

.category-accordion__header img.category-accordion__header-icon {
  width: 12px;
  height: 12px;
  margin-right: 0;
  margin-left: 8px;
  border-radius: 0;
}

.category-accordion__header-title {
  flex-grow: 1;
  text-align: left;
}

.category-accordion__content {
  display: none;
  padding: 15px;
  background-color: #fff;
}

.category-accordion__item.is-open .category-accordion__content {
  display: block;
}

.category-accordion__item.is-open .category-accordion__header-icon {
  transform: rotate(180deg);
}

.category-accordion__sub-item {
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

.category-accordion__sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: #000;
  text-decoration: none;
}

.category-accordion__sub-icon {
  width: 16px;
  height: 16px;
  margin-left: 12px;
  pointer-events: none;
}

.category-accordion__sub-header img {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  object-fit: cover;
}

.category-accordion__sub-header img.category-accordion__sub-icon {
  width: 16px;
  height: 16px;
  margin-right: 0;
  margin-left: 8px;
  border-radius: 0;
}

.category-accordion__sub-title {
  flex-grow: 1;
  text-align: left;
}

@media (max-width: 767px) {
  .category-accordion {
    display: block;
  }
}

/* ===============================
 * GPU Layer 最適化（will-change）
 * hover や JS でアニメーションするコンポーネントに適用
 * =============================== */
.ec-productRole__btn,
.popular-carousel__card,
.category-modern__card,
.ec-blockBtn--action,
.hero-slider__slide {
  will-change: transform;
}

.ec-modal,
.ec-couponBanner,
.ec-drawerRole {
  will-change: opacity, transform;
}

/* ===============================
 * Print Styles
 * =============================== */
@media print {
  .ec-headerRole,
  .ec-footerRole,
  .ec-drawerRole,
  .ec-overlayRole,
  .ec-blockTopBtn,
  .ec-couponBanner,
  .coupon-band-wrap,
  .hero-slider-fullwidth,
  .popular-carousel-wrap,
  .new-item-carousel-wrap {
    display: none !important;
  }

  .ec-layoutRole__contents {
    display: block;
  }

  .ec-layoutRole__main {
    width: 100% !important;
    max-width: 100% !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }

  * {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

/* ===============================
 * Rental Flow Block (rentalflow.twig, rental_flow_footer.twig より移行)
 * =============================== */
.mdc-button {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  border: none;
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  vertical-align: middle;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: #fff;
  background-color: #6200ee;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mdc-button:hover {
  background-color: #3700b3;
}

.mdc-button:active {
  background-color: #6200ee;
}

.mdc-button--blue { background-color: #1e88e5; }
.mdc-button--red { background-color: #e53935; }
.mdc-button--green { background-color: #43a047; }
.mdc-button--yellow { background-color: #fdd835; color: #000; }
.mdc-button--black { background-color: #000; color: #fff; }
.mdc-button--white { background-color: #fff; color: #000; border: 1px solid #ccc; }
.mdc-button--gray { background-color: #9e9e9e; }
.mdc-button--pink { background-color: #e91e63; }
.mdc-button--purple { background-color: #9c27b0; }
.mdc-button--brown { background-color: #795548; }
.mdc-button--orange { background-color: #ff9800; }
.mdc-button--navy { background-color: #001f3f; }
.mdc-button--beige { background-color: #f5f5dc; color: #000; }

@media (max-width: 767px) {
  .horizontal-scroll-menu-top {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 20px;
    scrollbar-width: none;
    justify-content: center;
  }

  .horizontal-scroll-menu-top::-webkit-scrollbar {
    display: none;
  }

  .horizontal-scroll-menu-top a {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    border: 1px solid #ccc;
    margin-right: 10px;
    border-radius: 5px;
  }

  .horizontal-scroll-menu-top a:hover {
    opacity: 0.8;
  }

  .header-title {
    padding: 1em;
    text-align: center;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    font-size: 1.5em;
  }

  .mobile-only {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 768px) {
  .horizontal-scroll-menu-top,
  .header-title,
  .mobile-only {
    display: none;
  }
}

/* 共通モーダルの閉じるボタンを視認性の高い丸型デザインに統一 */
.ec-modal .ec-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.ec-modal .ec-modal-close:hover {
  background: #f8fafc;
  border-color: rgba(17, 24, 39, 0.35);
  transform: scale(1.05);
}

.ec-modal .ec-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ec-modal .ec-modal-close .ec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ec-modal .ec-modal-close .ec-icon img {
  width: 9px;
  height: 9px;
  filter: none;
}

/* マイページ注文履歴・詳細: 商品サムネ（縦横比維持・潰れ防止）
   picture で正方形を確定 → img は領域いっぱいに object-fit: contain で収める */
.ec-mypageRole .ec-imageGrid .ec-imageGrid__img {
  vertical-align: middle;
}

.ec-mypageRole .ec-imageGrid .ec-imageGrid__img picture {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.ec-mypageRole .ec-imageGrid .ec-imageGrid__img picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 旧テンプレ・キャッシュ: ec-imageGrid__img 直下の img のみ（width/height 属性での潰れ防止） */
.ec-mypageRole .ec-imageGrid .ec-imageGrid__img > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

/* お気に入り一覧: 標準 CSS の width:auto が ec-productCardImageWrap と相性悪く潰れるため上書き */
.ec-favoriteRole .ec-favoriteRole__itemThumb .ec-productCardImageWrap picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ec-favoriteRole .ec-favoriteRole__itemThumb .ec-productCardImageWrap picture img,
.ec-favoriteRole .ec-favoriteRole__itemThumb .ec-productCardImageWrap > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
