/*
Theme Name: FukuharaHome Storefront Child
Description: Storefront child theme for the FukuharaHome brand shop.
Author: FukuharaHome
Template: storefront
Version: 1.1.15
Text Domain: fukuharahome
*/

:root {
  --fh-red: #e5222a;
  --fh-red-dark: #b71920;
  --fh-ink: #222;
  --fh-muted: #666;
  --fh-line: #e8e8e8;
  --fh-soft: #fff7f7;
}

body { background: #fff; color: var(--fh-ink); }
.home .col-full { box-sizing: border-box; max-width: 100%; margin-right: 0; margin-left: 0; padding: 0; }
#common_footer .fh-showroom-map { border: 0; }

#common_header .nav-categories { position: relative; }
#common_header .category-dropdown {
  position: absolute;
  z-index: 9999;
  top: 100%;
  left: 0;
  display: none;
  min-width: 280px;
  max-height: 70vh;
  margin: 0;
  padding: 8px 0;
  border: 1px solid #eee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  overflow-y: auto;
}
#common_header .category-dropdown li { display: block; margin: 0; padding: 0; }
#common_header .category-dropdown a { display: block; padding: 9px 16px; white-space: nowrap; }
#common_header .category-dropdown .category-children {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px solid #f2f2f2;
}
#common_header .category-dropdown .category-children a {
  padding-top: 6px;
  padding-bottom: 6px;
  color: #555;
  font-size: 13px;
}
#common_header .nav-categories:hover > .category-dropdown,
#common_header .nav-categories:focus-within > .category-dropdown { display: block; }

.fh-promo-strip {
  padding: 14px 20px;
  border-top: 1px solid var(--fh-line);
  border-bottom: 1px solid var(--fh-line);
  background: #fff;
}
.fh-promo-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}
.fh-section-heading { margin-bottom: 18px; text-align: center; }
.fh-section-heading p {
  margin: 0 0 4px;
  color: var(--fh-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.fh-section-heading h2 {
  margin: 0;
  color: var(--fh-ink);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
}

.fh-home-products {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 44px;
}
.fh-category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}
.fh-category-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 15px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 13px;
  text-decoration: none !important;
}
.fh-category-link:hover,
.fh-category-link:focus,
.fh-category-link--all {
  border-color: var(--fh-red);
  background: var(--fh-red);
  color: #fff;
}
.fh-home-products__grid .woocommerce { width: 100%; }
.fh-home-products__grid ul.products { margin-bottom: 18px; }
.fh-home-products__grid ul.products li.product {
  margin-bottom: 28px;
  text-align: left;
}
.fh-home-products__grid ul.products li.product img {
  aspect-ratio: 1 / 1;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fff;
  object-fit: contain;
}
.fh-home-products__grid ul.products li.product .woocommerce-loop-product__title {
  min-height: 3em;
  color: var(--fh-ink);
  font-size: 14px;
  line-height: 1.5;
}
.fh-home-products__grid ul.products li.product .price {
  color: var(--fh-red);
  font-weight: 700;
}
.fh-home-products__grid ul.products li.product .button {
  border-radius: 6px;
  background: var(--fh-red);
  color: #fff;
}
.fh-view-all {
  display: block;
  max-width: 360px;
  margin: 0 auto;
  padding: 12px 22px;
  border: 1px solid var(--fh-red);
  border-radius: 999px;
  color: var(--fh-red);
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
}
.fh-view-all:hover,
.fh-view-all:focus { background: var(--fh-red); color: #fff; }

.fh-shop-categories {
  width: 100%;
  margin: 0 0 42px;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--fh-line);
}
.fh-shop-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fh-shop-category-card {
  display: flex;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--fh-line);
  border-radius: 10px;
  background: #fff;
  color: var(--fh-ink);
  text-align: center;
  text-decoration: none !important;
  flex-direction: column;
}
.fh-shop-category-card:hover,
.fh-shop-category-card:focus {
  border-color: rgba(229, 34, 42, .45);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .07);
}
.fh-shop-category-card__image {
  display: block;
  width: 100%;
  margin-bottom: 8px;
}
.fh-shop-category-card__image img {
  width: 100%;
  height: 110px;
  margin: 0;
  object-fit: contain;
}
.fh-shop-category-card__name {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.fh-shop-category-card__count { color: #888; font-size: 11px; }
.post-type-archive-product .fh-shop-categories ~ .storefront-sorting,
.post-type-archive-product .fh-shop-categories ~ ul.products { display: none; }
.fh-promo-card {
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid var(--fh-line);
  border-radius: 12px;
  background: #fff;
  color: var(--fh-ink);
  text-decoration: none !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fh-promo-card:hover,
.fh-promo-card:focus-within {
  border-color: rgba(229, 34, 42, .45);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .09);
  transform: translateY(-1px);
}
.fh-promo-card--coupon { background: linear-gradient(135deg, var(--fh-soft), #fff); }
.fh-promo-card__image {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin-right: 12px;
  object-fit: contain;
}
.fh-promo-card__body { min-width: 0; }
.fh-promo-card__label {
  display: block;
  margin-bottom: 3px;
  color: var(--fh-red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}
.fh-promo-card__title {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: var(--fh-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.fh-promo-card__price {
  color: var(--fh-red);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.fh-promo-card__price del {
  margin-right: 5px;
  color: #999;
  font-size: 12px;
  font-weight: 400;
}
.fh-promo-card__price ins { background: transparent; text-decoration: none; }
.fh-promo-card__coupon-mark {
  display: grid;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  margin-right: 14px;
  border-radius: 50%;
  background: var(--fh-red);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  place-items: center;
}
.fh-copy-coupon {
  margin-top: 5px;
  padding: 4px 10px;
  border: 1px solid var(--fh-red);
  border-radius: 999px;
  background: #fff;
  color: var(--fh-red-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.fh-copy-coupon:hover,
.fh-copy-coupon:focus { background: var(--fh-red); color: #fff; }

.top_marketplaces { padding: 28px 20px 44px; background: #fff; }
.top_marketplaces__inner { max-width: 980px; margin: 0 auto; text-align: center; }
.top_marketplaces h2 {
  margin: 0 0 8px;
  color: var(--fh-ink);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
}
.top_marketplaces__inner > p { margin: 0 0 22px; color: var(--fh-muted); font-size: 14px; }
.top_marketplaces__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.marketplace-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  padding: 18px 24px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #fff;
  color: var(--fh-ink);
  text-decoration: none !important;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.marketplace-card:hover { box-shadow: 0 9px 24px rgba(0, 0, 0, .11); transform: translateY(-2px); }
.marketplace-card--amazon:hover { border-color: #f90; }
.marketplace-card--mercari:hover { border-color: #49a6df; }
.marketplace-card__logo { flex: 0 0 auto; margin-right: 18px; white-space: nowrap; }
.marketplace-card__logo--amazon {
  position: relative;
  padding-bottom: 7px;
  color: #111;
  font: 700 29px/1 Arial, sans-serif;
  letter-spacing: -.04em;
}
.marketplace-card__logo--amazon::after {
  position: absolute;
  right: 2%;
  bottom: 0;
  left: 18%;
  height: 4px;
  border-radius: 0 0 70% 70%;
  background: #f90;
  content: "";
  transform: rotate(2deg);
}
.marketplace-card__logo--mercari { color: #333; font: 700 20px/1.1 Arial, sans-serif; }
.marketplace-card__logo--mercari b {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-right: 7px;
  border-radius: 12px;
  background: linear-gradient(135deg, #49a6df 0 52%, #ef4b5f 52% 100%);
  color: #fff;
  font-size: 25px;
  place-items: center;
}
.marketplace-card__text { display: grid; gap: 5px; margin-left: auto; text-align: right; }
.marketplace-card__text strong { font-size: 16px; line-height: 1.35; }
.marketplace-card__text small { color: #777; font-size: 12px; }

.topitem_sl .slick-slide { margin-right: 6px; margin-left: 6px; }
.topitem_sl .slick-slide img { width: 100%; height: 165px; object-fit: contain; }
.topitem_sl .slick-slide p {
  display: -webkit-box;
  min-height: 46px;
  max-height: 46px;
  margin-bottom: 8px;
  padding: 5px 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Company information page. */
.page-id-6083 .site-main > article > .entry-header {
  display: none;
}
.page-id-6083 .company-info {
  max-width: 1040px;
  padding-top: 8px;
}
.page-id-6083 .company-info > header {
  margin-bottom: 8px;
  padding: 38px 20px 34px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7f7, #fff);
  text-align: center;
}
.page-id-6083 .company-info > header p {
  margin-bottom: 8px;
  color: var(--fh-red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}
.page-id-6083 .company-info > header h2 {
  margin-bottom: 0;
}
.page-id-6083 .company-section {
  padding: 52px 0;
}
.page-id-6083 .business-grid {
  align-items: stretch;
}
.page-id-6083 .business-card {
  height: 100%;
  padding: 18px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 7px 24px rgba(0, 0, 0, .05);
}
.page-id-6083 .business-card h3 {
  margin: 4px 0 10px;
  font-size: 20px;
  line-height: 1.5;
}
.page-id-6083 .business-card p:last-child {
  margin-bottom: 0;
}
.page-id-6083 .company-two-col {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
}
.page-id-6083 .company-two-col > p:empty {
  display: none;
}
.page-id-6083 .company-two-col > p {
  margin: 0;
}
.page-id-6083 .company-two-col > img,
.page-id-6083 .company-two-col > p > img {
  display: block;
  width: 100%;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
}
.page-id-6083 .company-section:nth-of-type(2) .company-two-col > img {
  max-height: 380px;
}
.page-id-6083 .company-section:nth-of-type(3) .company-two-col > p > img {
  max-height: 430px;
  object-position: center top;
}

@media (max-width: 767px) {
  #common_header .category-dropdown {
    position: static;
    display: block;
    margin: 4px 0 8px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  #common_header .category-dropdown a { padding: 6px 10px; font-size: 14px; }
  .fh-promo-strip { padding: 10px 0 10px 14px; overflow: hidden; }
  .fh-promo-strip__inner {
    display: flex;
    gap: 10px;
    padding-right: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .fh-promo-card { flex: 0 0 82vw; min-height: 104px; scroll-snap-align: start; }
  .fh-promo-card__image { flex-basis: 78px; width: 78px; height: 78px; }
  .fh-home-products { padding: 26px 14px 34px; }
  .fh-category-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    overflow-x: auto;
  }
  .fh-category-link { flex: 0 0 auto; }
  .fh-home-products__grid ul.products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .fh-home-products__grid ul.products::before,
  .fh-home-products__grid ul.products::after { display: none; }
  .fh-home-products__grid ul.products li.product {
    float: none;
    width: 100%;
    margin: 0 0 18px;
  }
  .fh-shop-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fh-shop-category-card__image img { height: 105px; }
  .top_marketplaces { padding: 20px 14px 32px; }
  .top_marketplaces__links { grid-template-columns: 1fr; gap: 12px; }
  .marketplace-card { min-height: 82px; padding: 15px 18px; }
  .marketplace-card__logo--amazon { font-size: 25px; }
  .marketplace-card__logo--mercari { font-size: 18px; }
  .marketplace-card__text strong { font-size: 14px; }
  .topitem_sl .slick-slide img { height: 150px; }
  .page-id-6083 .company-info > header { padding: 28px 14px 26px; }
  .page-id-6083 .company-section { padding: 38px 0; }
  .page-id-6083 .company-two-col { grid-template-columns: 1fr; gap: 24px; }
  .page-id-6083 .company-section:nth-of-type(3) .company-two-col > p { order: -1; }
}
