/* =====================================================================
   fandam-wf-bridge.css
   ワイヤー shared/components.css（= fandam-wf.css）は無改変。
   ecforce 実マークアップとの差分・ドロワー・タブバーだけを置く。
   PC/SP の切替はファイル分割に任せ、@media は使わない。
   ===================================================================== */

html, body {
  margin: 0;
  background: var(--c-bg, #fff);
}
body.ui {
  min-height: 100%;
  font-size: 14px;
}
a { color: inherit; }
img { max-width: 100%; }

#sidebar-view { display: none; }

.site-header__nav a {
  text-decoration: none;
  color: var(--c-ink-2);
}
.site-header__nav a:hover { color: var(--c-ink); }
.footer__links a {
  text-decoration: none;
  margin-right: var(--s4);
}

.wf-main { min-height: 40vh; }

/* ---------- ドロワー ---------- */
.wf-drawer[hidden] { display: none; }
.wf-drawer { position: fixed; inset: 0; z-index: 80; }
.wf-drawer__backdrop {
  position: absolute; inset: 0;
  background: oklch(0% 0 0 / 0.4);
}
.wf-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--c-bg);
  padding: var(--s5) var(--s4);
  display: flex; flex-direction: column; gap: var(--s3);
  box-shadow: var(--sh-3);
  overflow: auto;
}
.wf-drawer__panel a {
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--c-line);
  font-weight: var(--w-medium);
}
.wf-drawer__close {
  align-self: flex-end;
  border: 0; background: none;
  font-size: 24px; cursor: pointer; color: var(--c-ink-2);
}

/* ---------- SP タブバー ---------- */
.wf-tabbar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; justify-content: space-around;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  padding: 8px 4px 12px;
}
.wf-tabbar a {
  text-decoration: none;
  font-size: 11px;
  font-weight: var(--w-medium);
  color: var(--c-ink-2);
  padding: 6px 4px;
}
body.is-checkout .wf-tabbar { display: none; }

/* ---------- ecforce form をワイヤー部品に寄せる ---------- */
.wf-main input[type="text"],
.wf-main input[type="email"],
.wf-main input[type="password"],
.wf-main input[type="tel"],
.wf-main input[type="number"],
.wf-main select,
.wf-main textarea {
  font: inherit;
  border: 1px solid var(--c-line-2);
  border-radius: var(--r1);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  background: var(--c-bg);
}
.wf-main button,
.wf-main input[type="submit"] {
  font: inherit;
}

.alert { padding: var(--s3); border-radius: var(--r1); margin: var(--s3) 0; }
.alert-success { background: var(--c-fill); }
.alert-danger { background: var(--c-urgent-bg); color: var(--c-urgent); }

.wf-page-title {
  font-size: var(--t-2xl);
  font-weight: var(--w-black);
  margin: 0 0 var(--s5);
}
.wf-page-title span {
  font-size: var(--t-sm);
  font-weight: var(--w-regular);
  color: var(--c-ink-3);
  margin-left: 8px;
}

.product-body--pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  padding: var(--s5) 0 var(--s7);
}
.cart-pc-wrap { display: flex; flex-direction: column; gap: var(--s5); }

.placeholder-img {
  background: var(--c-fill-2);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-3);
  font-size: var(--t-sm);
}

.card__media img,
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wf-hero-bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: 100vw;
  position: relative;
}
.wf-hero-bars {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  height: 4px;
  display: flex;
  gap: 3px;
  align-items: flex-end;
}
.wf-hero-bars i {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,.4);
  border-radius: 1px;
}
.wf-hero-bars i.on {
  height: 2px;
  background: #fff;
  opacity: .9;
}

.product-gallery .img-wrap {
  display: flex;
  gap: var(--s2);
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
.product-gallery .img-box,
.product-gallery__thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: var(--r1);
  border: 1.5px solid transparent;
  overflow: hidden;
  padding: 0;
  background: var(--c-fill);
  cursor: pointer;
}
.product-gallery .img-box.is-on,
.product-gallery__thumb.is-on {
  border-color: var(--c-ink);
}
.product-gallery .img-box img,
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#add-shop-cart-form #btn-add {
  display: none !important;
}

.wf-fallback-note {
  font-size: 11px;
  color: var(--c-ink-3);
  margin: 0 0 var(--s3);
}

.pc-section { padding: var(--s5) 0; }
.sectabs a {
  flex: 0 0 auto;
  padding: var(--s3) var(--s4);
  font-size: var(--t-sm);
  font-weight: var(--w-bold);
  color: var(--c-ink-3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.sectabs a.is-on,
.sectabs a.sectab--active {
  color: var(--c-ink);
  border-bottom-color: var(--c-ink);
}

.card--clickable { text-decoration: none; color: inherit; display: block; }

.spec-table { margin: 0 0 var(--s5); }
.spec-table dt {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink-3);
  margin-top: var(--s3);
}
.spec-table dd { margin: 4px 0 0; }

.wf-signup-link { margin: var(--s4) 0; }
.wf-hidden-contract { display: none !important; }
[data-wf-hero] [data-wf-hero-slide] { display: block; height: 100%; }
[data-wf-hero] img { width: 100%; height: 100%; object-fit: cover; display: block; }
