/* EC_SHOES001 — layout inspired by IBN4202 public demo (original CSS) */
:root {
  --shoes-bg: #f7f3ee;
  --shoes-surface: #ffffff;
  --shoes-ink: #2c241c;
  --shoes-muted: #6e6258;
  --shoes-line: #e4d8c8;
  --shoes-accent: #8b5e3c;
  --shoes-accent-dark: #6b4f3a;
  --shoes-max: 1100px;
  --shoes-font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

.shoes-theme {
  background: var(--shoes-bg);
  color: var(--shoes-ink);
  font-family: var(--shoes-font);
  font-weight: 400;
  line-height: 1.7;
}

/* 本文リンクのみ（ヘッダー／フッターは個別指定） */
.shoes-main a {
  color: var(--shoes-accent-dark);
  text-decoration: none;
}
.shoes-main a:hover {
  color: var(--shoes-accent);
  text-decoration: underline;
}

.shoes-layout {
  background: var(--shoes-bg);
}

/* Header — 1行配置: ロゴ | 検索 | 会員・カート */
.shoes-header {
  background: var(--shoes-surface);
  border-bottom: 0;
  box-shadow: none;
}
.shoes-header__top {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 16px 20px;
  max-width: var(--shoes-max);
  margin: 0 auto;
  padding: 18px 16px 14px;
}
.shoes-header__logo {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: #2c241c !important;
  line-height: 1.25;
}
.shoes-header__shop {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2c241c !important;
}
.shoes-header__tag {
  margin-top: 2px;
  font-size: 0.65rem;
  color: #6e6258 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shoes-header__search {
  min-width: 0;
}
.shoes-header__search .ec-headerSearch {
  display: flex !important;
  width: 100%;
  margin: 0 !important;
  max-width: none !important;
}
.shoes-header__search .ec-headerSearch__category {
  display: none !important; /* カテゴリ未整備時は検索を簡潔に */
}
.shoes-header__search .ec-headerSearch__keyword {
  flex: 1;
  width: 100% !important;
}
.shoes-header__search .ec-headerSearch__keyword .ec-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--shoes-line);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}
.shoes-header__search .search-name {
  flex: 1;
  border: 0 !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  min-height: 40px;
  font-size: 0.9rem;
  background: transparent;
}
.shoes-header__search .ec-headerSearch__keywordBtn {
  border: 0 !important;
  background: var(--shoes-ink) !important;
  width: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shoes-header__search .ec-headerSearch__keywordBtn img {
  width: 16px;
  height: 16px;
  filter: invert(1);
}
.shoes-header__utils {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  justify-content: flex-end;
}
.shoes-header__account .ec-headerNav {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.shoes-header__account .ec-headerNav__item {
  margin: 0 !important;
}
.shoes-header__account .ec-headerNav__item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #2c241c !important;
  text-decoration: none !important;
  font-size: 0.68rem;
  line-height: 1.2;
}
.shoes-header__account .ec-headerNav__itemLink {
  color: #2c241c !important;
}
.shoes-header__account .ec-headerNav__itemIcon {
  font-size: 1rem !important;
  color: #2c241c !important;
}
.shoes-header__cart .ec-cartNavi {
  display: flex !important;
  align-items: center;
  gap: 6px;
  color: #2c241c !important;
  cursor: pointer;
}
.shoes-header__cart .ec-cartNavi__icon {
  font-size: 1.15rem;
  position: relative;
  color: #2c241c !important;
}
.shoes-header__cart .ec-cartNavi__badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--shoes-accent);
  color: #fff !important;
  font-size: 0.65rem;
  line-height: 16px;
  text-align: center;
}
.shoes-header__cart .ec-cartNavi__price {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2c241c !important;
}
.shoes-header__menuBtn {
  display: none;
  border: 0;
  background: transparent;
  color: #2c241c !important;
  font-size: 1.35rem;
  padding: 6px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .shoes-header__top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand utils"
      "search search";
  }
  .shoes-header__brand { grid-area: brand; }
  .shoes-header__search { grid-area: search; }
  .shoes-header__utils { grid-area: utils; }
  .shoes-header__account { display: none; }
  .shoes-header__menuBtn { display: inline-flex; }
  .shoes-header__cart .ec-cartNavi__label { display: none; }
}

/* Category nav — 明るいバー（ヘッダーと同系・通常の文字色） */
.shoes-theme .ec-categoryNaviRole.shoes-category-nav,
.shoes-theme .shoes-category-nav {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border-top: 1px solid var(--shoes-line) !important;
  border-bottom: 1px solid var(--shoes-line) !important;
  box-sizing: border-box;
}
.shoes-theme .shoes-category-nav .ec-itemNav {
  background: transparent !important;
  border: 0 !important;
  width: 100%;
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav {
  max-width: var(--shoes-max);
  margin: 0 auto !important;
  padding: 0 8px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  float: none !important;
  gap: 0;
  list-style: none !important;
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav > li {
  float: none !important;
  width: auto !important;
  display: list-item !important;
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav > li > a {
  display: block !important;
  padding: 12px 18px !important;
  color: #2c241c !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border-bottom: 3px solid transparent !important;
  white-space: nowrap;
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav > li > a:hover {
  color: var(--shoes-accent) !important;
  border-bottom-color: var(--shoes-accent) !important;
  text-decoration: none !important;
  background: transparent;
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav ul {
  background: #fff !important;
  border: 1px solid var(--shoes-line) !important;
  box-shadow: 0 8px 20px rgba(44, 36, 28, 0.08);
}
.shoes-theme .shoes-category-nav .ec-itemNav__nav ul a {
  color: #2c241c !important;
}

/* Contents */
.shoes-contents {
  max-width: var(--shoes-max);
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.shoes-main {
  background: transparent;
}
.shoes-side {
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  padding: 12px;
}

/* Hero */
.shoes-hero {
  margin: 0 0 28px;
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  overflow: hidden;
}
.shoes-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

/* Sections */
.shoes-section {
  margin: 0 0 48px;
}
.shoes-section-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--shoes-ink);
  margin: 0 0 24px;
}
.shoes-section-more {
  text-align: center;
  margin-top: 20px;
}
.shoes-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--shoes-accent);
  border-bottom: 1px solid var(--shoes-accent);
}

/* Featured */
.shoes-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .shoes-featured-grid { grid-template-columns: 1fr; }
}
.shoes-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
}
@media (max-width: 600px) {
  .shoes-featured-card { grid-template-columns: 1fr; }
}
.shoes-featured-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.shoes-featured-card__body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.shoes-featured-card__body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.shoes-featured-card__body p {
  margin: 0;
  color: var(--shoes-muted);
  font-size: 0.85rem;
}

/* Topics list (IBN-like rows) */
.shoes-topics-list {
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
}
.shoes-topics-item {
  display: grid;
  grid-template-columns: 64px 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid var(--shoes-line);
  text-decoration: none !important;
  color: inherit !important;
  font-size: 0.9rem;
}
.shoes-topics-item:last-child { border-bottom: 0; }
.shoes-topics-item__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--shoes-accent);
}
.shoes-topics-item__date {
  color: var(--shoes-muted);
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .shoes-topics-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* Product grid */
.shoes-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) {
  .shoes-product-grid { grid-template-columns: repeat(2, 1fr); }
}
.shoes-product-grid--wide {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 700px) {
  .shoes-product-grid--wide { grid-template-columns: 1fr; }
}
.shoes-product-card {
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  padding: 10px;
  text-decoration: none !important;
  color: #2c241c !important;
  display: block;
  transition: box-shadow 0.2s ease;
}
.shoes-product-card:hover {
  box-shadow: 0 6px 18px rgba(44, 36, 28, 0.08);
}
.shoes-product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--shoes-bg);
  margin-bottom: 10px;
}
.shoes-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shoes-product-card__title {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #2c241c !important;
}
.shoes-product-card__desc {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #6e6258 !important;
}
.shoes-product-card__price {
  margin: 0;
  font-size: 0.9rem;
  color: #2c241c !important;
}
.shoes-product-card--row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
}
.shoes-product-card--row .shoes-product-card__media {
  margin: 0;
  aspect-ratio: 1 / 1;
}

/* Category tiles */
.shoes-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .shoes-category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .shoes-category-grid { grid-template-columns: repeat(2, 1fr); }
}
.shoes-category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  text-align: center;
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--shoes-ink) !important;
  text-decoration: none !important;
}
.shoes-category-card:hover {
  border-color: var(--shoes-accent);
  background: #fffaf4;
}

/* Existing block headings (layout-placed) */
.shoes-theme .ec-secHeading {
  text-align: center;
  margin-bottom: 20px;
}
.shoes-theme .ec-secHeading__en {
  display: block;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.shoes-theme .ec-secHeading__ja {
  display: block;
  color: var(--shoes-muted);
  font-size: 0.8rem;
}
.shoes-theme .ec-secHeading__line {
  display: none;
}

/* Footer — IBN4202風: 黒背景・白文字・縦リスト（標準footerクラス非依存） */
.shoes-footer,
.shoes-theme .shoes-footer {
  background: #111111 !important;
  color: #ffffff !important;
  margin-top: 48px !important;
  padding: 0 !important;
}
.shoes-ft {
  width: 100%;
  background: #111111;
  color: #ffffff;
}
.shoes-ft__inner {
  max-width: var(--shoes-max);
  margin: 0 auto;
  padding: 44px 20px 32px;
  box-sizing: border-box;
}
.shoes-ft__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  margin: 0 0 36px;
}
@media (max-width: 700px) {
  .shoes-ft__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.shoes-ft__col {
  min-width: 0;
  text-align: left;
}
.shoes-ft__heading {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  text-align: left;
}
.shoes-ft__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}
.shoes-ft__list > li {
  display: block;
  margin: 0 0 10px;
  padding: 0;
  line-height: 1.55;
  font-size: 0.86rem;
}
.shoes-ft__list > li > a,
.shoes-ft a {
  color: #ffffff !important;
  text-decoration: none !important;
  border: 0 !important;
  background: transparent !important;
}
.shoes-ft__list > li > a:hover,
.shoes-ft a:hover {
  color: #d8d8d8 !important;
  text-decoration: underline !important;
}
.shoes-ft__brand {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 22px;
  text-align: center;
}
.shoes-ft__shop {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  text-decoration: none !important;
}
.shoes-ft__copy {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #c8c8c8 !important;
}

/* News / topic blocks on layout */
.shoes-theme .ec-newsRole,
.shoes-theme .ec-topicRole,
.shoes-theme .ec-newItemRole {
  background: var(--shoes-surface);
  border: 1px solid var(--shoes-line);
  padding: 20px 16px;
  margin-bottom: 24px;
}
