:root {
  color-scheme: dark;
  --bf-black: #000000;
  --bf-yellow: #ffc42b;
  --bf-red: #e3222b;
  --bf-white: #ffffff;
  --bf-gray: #efefef;
  --bf-text: #111111;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
}

.bf-page,
.bf-page * {
  box-sizing: border-box;
}

.bf-page {
  min-width: 0;
  overflow: hidden;
  background: var(--bf-black);
  color: var(--bf-white);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.55;
}

.bf-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

.bf-page a {
  color: inherit;
}

.bf-hero {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.bf-hero__image {
  width: 100%;
}

.bf-category-nav {
  background: var(--bf-black);
}

.bf-category-nav__inner {
  display: flex;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  gap: 12px 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.bf-category-nav a {
  position: relative;
  display: inline-flex;
  min-width: 162px;
  min-height: 42px;
  padding: 8px 42px;
  border: 0;
  border-radius: 999px;
  background: var(--bf-yellow);
  color: #222222;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.bf-category-nav a::after {
  position: absolute;
  top: 50%;
  right: 11px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  content: "▼";
  flex: 0 0 20px;
  font-size: 8px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.bf-category-nav a:hover {
  background: #ffd65f;
  outline: none;
}

.bf-category-nav a:active {
  background: #f4b817;
}

.bf-category-nav a:focus-visible {
  outline: 2px solid #d39a00;
  outline-offset: 3px;
}

.bf-main {
  width: min(950px, calc(100% - 32px));
  margin: 0 auto;
}

.bf-category {
  padding: 0 0 76px;
  scroll-margin-top: 16px;
}

.bf-category + .bf-category {
  padding-top: 8px;
}

.bf-category__header {
  margin: 0 0 16px;
  border-bottom: 2px solid #ffffff;
}

.bf-category__header h2 {
  margin: 0;
  padding: 0 0 8px;
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: left;
}

.bf-balloon {
  display: flex;
  width: min(650px, 100%);
  min-height: 58px;
  margin: 0 0 36px;
  align-items: center;
  gap: 14px;
}

.bf-balloon img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 50%;
  object-fit: cover;
}

.bf-balloon p {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 13px 20px;
  border-radius: 6px;
  background: #f2f7ff;
  color: #6d6d6d;
  font-size: 16px;
  line-height: 1.45;
}

.bf-balloon p::before {
  position: absolute;
  top: 50%;
  left: -12px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-right: 13px solid #f2f7ff;
  border-bottom: 9px solid transparent;
  content: "";
  transform: translateY(-50%);
}

.bf-subsection {
  margin: 0;
}

.bf-subsection--featured {
  margin-bottom: 18px;
}

.bf-subsection--products {
  margin-bottom: 4px;
}

.bf-featured-grid {
  display: grid;
  gap: 16px;
}

.bf-featured-card {
  display: block;
  overflow: hidden;
  border: 3px solid var(--bf-yellow);
  background: #171717;
  text-decoration: none;
}

.bf-featured-card:hover {
  outline: none;
}

.bf-featured-card:focus-visible {
  outline: 2px solid var(--bf-yellow);
  outline-offset: 3px;
}

.bf-featured-card img {
  width: 100%;
  aspect-ratio: 950 / 343;
  object-fit: cover;
}

.bf-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.bf-product-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid #d5d5d5;
  background: var(--bf-white);
  color: var(--bf-text);
  flex-direction: column;
  text-decoration: none;
}

.bf-product-card:hover {
  outline: none;
  box-shadow: none;
}

.bf-product-card:focus-visible {
  outline: 3px solid var(--bf-yellow);
  outline-offset: 0;
}

.bf-product-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ffffff;
}

.bf-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bf-product-card__body {
  display: flex;
  min-height: 180px;
  padding: 12px 13px 0;
  flex: 1;
  flex-direction: column;
}

.bf-product-card__name {
  display: -webkit-box;
  order: 1;
  min-height: 3.15em;
  margin: 0 0 10px;
  overflow: hidden;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bf-product-card__badge {
  order: 2;
  width: fit-content;
  margin: 0 0 6px;
  padding: 2px 5px;
  background: var(--bf-red);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.bf-product-card__price {
  order: 3;
  margin: 0 0 13px;
  color: var(--bf-red);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.bf-product-card__tax {
  margin-left: 5px;
  color: var(--bf-red);
  font-size: 11px;
  font-weight: 600;
}

.bf-product-card__cta {
  display: block;
  order: 5;
  margin: auto -13px 0;
  padding: 13px 10px;
  background: var(--bf-yellow);
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.bf-loading,
.bf-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px solid #4a4a4a;
  background: #151515;
  color: #ffffff;
  text-align: center;
}

.bf-footer {
  padding: 18px 16px 54px;
  text-align: center;
}

.bf-footer a {
  display: inline-block;
  padding: 10px 26px;
  border-radius: 999px;
  background: var(--bf-yellow);
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 760px) {
  .bf-category-nav__inner {
    width: min(600px, calc(100% - 24px));
    padding: 22px 0 34px;
    gap: 9px;
  }

  .bf-category-nav a {
    min-width: 0;
    width: calc(50% - 5px);
    min-height: 38px;
    padding: 7px 8px 7px 12px;
    font-size: 12px;
  }

  .bf-main {
    width: min(950px, calc(100% - 24px));
  }

  .bf-category {
    padding-bottom: 58px;
  }

  .bf-category__header h2 {
    font-size: 21px;
  }

  .bf-balloon {
    margin-bottom: 24px;
    gap: 10px;
  }

  .bf-balloon img {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .bf-balloon p {
    padding: 10px 14px;
    font-size: 13px;
  }

  .bf-featured-grid {
    gap: 10px;
  }

  .bf-subsection--featured {
    margin-bottom: 12px;
  }

  .bf-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .bf-product-card__body {
    min-height: 168px;
    padding: 10px 10px 0;
  }

  .bf-product-card__name {
    font-size: 12px;
  }

  .bf-product-card__price {
    font-size: 19px;
  }

  .bf-product-card__cta {
    margin-inline: -10px;
  }
}

@media (max-width: 430px) {
  .bf-product-card__body {
    min-height: 165px;
  }
}

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


