/*
Theme Name: FukuharaHome Storefront Child
Description: Storefront child theme for the FukuharaHome brand shop.
Author: FukuharaHome
Template: storefront
Version: 1.2.4
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); }
.page-id-1300 .content-area { float: none; width: 100%; margin-right: 0; }
.page-id-1300 .widget-area { display: none; }
.page-id-1300 .site-main { max-width: 1120px; margin: 0 auto; }
#common_header { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1240px; min-height: 108px; margin: 0 auto; padding: 22px 30px; background: #fff; }
#common_header > #js-nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; margin: 0; padding: 0; list-style: none; }
#common_header > #js-nav > li { margin: 0; list-style: none; }
#common_header > #js-nav > li > a { color: #333; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
#common_header .woocommerce-product-search { display: flex; margin: 0; }
#common_header .woocommerce-product-search input { box-sizing: border-box; width: 210px; min-height: 42px; padding: 8px 12px; border: 1px solid #ddd; background: #f8f8f8; }
#common_header .woocommerce-product-search button { min-height: 42px; border: 0; background: var(--fh-red); color: #fff; }
#common_header .site-header-cart { width: auto; min-width: 120px; margin: 0; }
#common_header .site-header-cart .widget_shopping_cart { display: none; }
#common_header .hamburger, #common_header #js-mask { display: none; }
.fh-wordmark { display: inline-flex; flex-direction: column; color: var(--fh-red); line-height: 1; text-decoration: none !important; }
.fh-wordmark__jp { font-size: clamp(28px, 3vw, 46px); font-weight: 900; letter-spacing: -.05em; }
.fh-wordmark__en { margin-top: 5px; color: #555; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.fh-company-footer { max-width: 1180px; margin: 0 auto; padding: 30px 20px 12px; text-align: center; }
.fh-company-footer p { margin: 10px 0; line-height: 1.8; }
.fh-footer-showroom { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1180px; margin: 28px auto 0; padding: 24px 28px; border-radius: 12px; background: #fff7f7; text-align: left; }
.fh-footer-showroom p { margin: 6px 0 0; line-height: 1.7; }
.fh-footer-showroom__eyebrow { color: var(--fh-red); font-size: 13px; font-weight: 700; }
.fh-footer-showroom strong { font-size: 22px; }
.fh-footer-showroom__link { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; background: var(--fh-red); color: #fff !important; font-weight: 700; text-decoration: none !important; }

@media (max-width: 900px) {
  #common_header { align-items: flex-start; min-height: auto; padding: 18px 20px; }
  #common_header > #js-nav { flex-wrap: wrap; gap: 10px 16px; }
  #common_header .woocommerce-product-search input { width: 150px; }
}

@media (max-width: 680px) {
  #common_header { display: block; padding: 16px; }
  #common_header > #js-nav { justify-content: flex-start; margin-top: 18px; }
  #common_header > #js-nav > li { width: 100%; }
  #common_header .woocommerce-product-search input { width: calc(100vw - 105px); }
  #common_header .site-header-cart { width: 100%; }
  .fh-promo-strip__inner { grid-template-columns: 1fr; }
  .fh-footer-showroom { display: block; margin: 18px 14px 0; padding: 20px; }
  .fh-footer-showroom__link { margin-top: 14px; }
}
.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; }

#common_header .nav-account > a {
  white-space: nowrap;
}

.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(4, 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; }

/* The default Shop archive title adds a large empty header above navigation. */
.post-type-archive-product .woocommerce-products-header { display: none; }

.fh-shop-brands {
  width: 100%;
  margin: 0 0 28px;
  padding: 16px 0 26px;
  border-bottom: 1px solid var(--fh-line);
}
.fh-shop-brands__header {
  display: flex;
  margin-bottom: 14px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.fh-section-heading--brands { margin: 0; text-align: left; }
.fh-section-heading--brands p { margin-bottom: 2px; }
.fh-brand-search { display: flex; width: min(360px, 100%); margin: 0; gap: 7px; }
.fh-brand-search input[type="search"] {
  min-width: 0;
  height: 42px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  flex: 1 1 auto;
}
.fh-brand-search button {
  flex: 0 0 auto;
  height: 42px;
  margin: 0;
  padding: 8px 17px;
  border: 1px solid var(--fh-red);
  border-radius: 999px;
  background: var(--fh-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.fh-brand-search button:hover,
.fh-brand-search button:focus { background: var(--fh-red-dark); }
.fh-brand-search input[type="search"]:focus {
  border-color: var(--fh-red);
  outline: 2px solid rgba(229, 34, 42, .14);
  outline-offset: 1px;
}
.fh-shop-brands__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}
.fh-shop-brand-card {
  display: flex;
  min-width: 0;
  min-height: 104px;
  padding: 8px 7px 7px;
  align-items: center;
  border: 1px solid var(--fh-line);
  border-radius: 9px;
  background: #fff;
  color: var(--fh-ink);
  text-align: center;
  text-decoration: none !important;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fh-shop-brand-card:hover,
.fh-shop-brand-card:focus {
  border-color: rgba(229, 34, 42, .45);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .07);
  transform: translateY(-1px);
}
.fh-shop-brand-card[hidden] { display: none !important; }
.fh-shop-brand-card__media {
  display: grid;
  width: 100%;
  height: 45px;
  margin-bottom: 6px;
  place-items: center;
}
.fh-shop-brand-card__media img {
  width: 100%;
  max-width: 88px;
  height: 42px;
  margin: 0;
  object-fit: contain;
}
.fh-shop-brand-card__initial {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fh-soft);
  color: var(--fh-red-dark);
  font-size: 18px;
  font-weight: 700;
  place-items: center;
}
.fh-shop-brand-card__name {
  display: -webkit-box;
  width: 100%;
  min-height: 2.6em;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.fh-shop-brand-card__count { margin-top: auto; color: #888; font-size: 10px; }
.fh-shop-brands__empty {
  margin: 18px 0 0;
  padding: 18px;
  border-radius: 8px;
  background: #f7f7f7;
  color: var(--fh-muted);
  text-align: center;
}

.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; }

.fh-footer-marketplaces {
  padding: 18px 5%;
  border-bottom: 1px solid #ddd;
  background: #fafafa;
}
.fh-footer-marketplaces__inner {
  display: flex;
  width: min(1120px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.fh-footer-marketplaces__heading {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  color: var(--fh-ink);
  text-align: left;
}
.fh-footer-marketplaces__heading strong { font-size: 16px; line-height: 1.5; }
.fh-footer-marketplaces__heading span { color: var(--fh-muted); font-size: 12px; }
.fh-footer-marketplaces__links {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}
.fh-footer-marketplace {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  color: var(--fh-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fh-footer-marketplace:hover,
.fh-footer-marketplace:focus {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}
.fh-footer-marketplace--amazon:hover,
.fh-footer-marketplace--amazon:focus { border-color: #f90; }
.fh-footer-marketplace--mercari:hover,
.fh-footer-marketplace--mercari:focus { border-color: #49a6df; }
.fh-footer-marketplace__amazon {
  position: relative;
  margin-right: 10px;
  padding-bottom: 4px;
  color: #111;
  font: 700 18px/1 Arial, sans-serif;
  letter-spacing: -.04em;
}
.fh-footer-marketplace__amazon::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 16%;
  height: 2px;
  border-radius: 0 0 70% 70%;
  background: #f90;
  content: "";
  transform: rotate(2deg);
}
.fh-footer-marketplace__mercari {
  display: inline-grid;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  border-radius: 8px;
  background: linear-gradient(135deg, #49a6df 0 52%, #ef4b5f 52% 100%);
  color: #fff;
  font: 700 17px/1 Arial, sans-serif;
  place-items: center;
}
.fh-footer-marketplace__arrow { margin-left: 8px; color: #777; font-size: 11px; }

.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-brands { margin-bottom: 24px; padding: 8px 0 18px; }
  .fh-shop-brands__header { display: grid; margin-bottom: 12px; gap: 8px; }
  .fh-section-heading--brands { text-align: center; }
  .fh-section-heading--brands p { display: none; }
  .fh-section-heading--brands h2 { font-size: 21px; line-height: 1.3; }
  .fh-brand-search { width: 100%; }
  .fh-brand-search input[type="search"],
  .fh-brand-search button { height: 38px; }
  .fh-brand-search input[type="search"] { padding: 7px 12px; font-size: 13px; }
  .fh-brand-search button { padding: 7px 15px; font-size: 13px; }
  .fh-shop-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .fh-shop-brand-card { min-height: 88px; padding: 6px 4px; }
  .fh-shop-brand-card__media { height: 31px; margin-bottom: 4px; }
  .fh-shop-brand-card__media img { max-width: 58px; height: 29px; }
  .fh-shop-brand-card__initial { width: 30px; height: 30px; font-size: 14px; }
  .fh-shop-brand-card__name { font-size: 10px; }
  .fh-shop-brand-card__count { font-size: 9px; }
  .fh-shop-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fh-shop-category-card__image img { height: 105px; }
  .fh-footer-marketplaces { padding: 16px 14px; }
  .fh-footer-marketplaces__inner { display: grid; gap: 12px; }
  .fh-footer-marketplaces__heading { text-align: center; }
  .fh-footer-marketplaces__links { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .fh-footer-marketplace { justify-content: center; min-height: 42px; }
  .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; }
}

/* WooCommerce Checkout Block layout.
 *
 * WooCommerce's block stylesheet is not currently present on the checkout
 * response, so keep these rules scoped to the checkout body class. This
 * prevents the legacy fixed header and global article styles from overlapping
 * the title, and restores a usable form/sidebar layout.
 */
body.woocommerce-checkout #content {
  padding-top: clamp(32px, 4.2vw, 56px);
}

body.woocommerce-checkout article {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 4rem;
}

body.woocommerce-checkout .entry-header {
  margin: 0;
  padding: 18px 0 26px;
  text-align: center;
}

body.woocommerce-checkout .entry-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.25;
}

body.woocommerce-checkout .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 30px;
  align-items: start;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout > div:first-child:empty {
  display: none;
}

body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar {
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step {
  box-sizing: border-box;
  margin: 0 0 18px !important;
  padding: 22px !important;
  border: 1px solid var(--fh-line);
  border-radius: 12px;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
  margin: 0 0 16px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

body.woocommerce-checkout .wc-block-components-text-input {
  display: flex;
  margin: 0 0 14px !important;
  flex-direction: column;
}

body.woocommerce-checkout .wc-block-components-text-input input {
  order: 2;
  width: 100% !important;
  min-height: 48px;
  padding: 11px 12px !important;
  border: 1px solid #d8d8d8 !important;
  border-radius: 6px;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label {
  position: static !important;
  order: 1;
  display: block !important;
  margin: 0 0 5px !important;
  color: #444;
  font-size: 13px !important;
  line-height: 1.4 !important;
  transform: none !important;
}

body.woocommerce-checkout .wc-block-components-combobox {
  margin-bottom: 14px !important;
}

body.woocommerce-checkout .wc-block-components-combobox-control input {
  width: 100% !important;
  min-height: 48px;
  border: 1px solid #d8d8d8 !important;
  border-radius: 6px;
  background: #fff !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-sidebar {
  position: sticky;
  top: 215px;
  padding: 22px !important;
  border: 1px solid var(--fh-line);
  border-radius: 12px;
  background: #fafafa;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
  margin-bottom: 12px;
}

body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
  min-height: 48px;
  border-radius: 7px;
  background: var(--fh-red);
  color: #fff;
}

body.woocommerce-checkout .wc-block-components-checkbox {
  min-height: 24px;
  margin: 12px 0 !important;
}

body.woocommerce-checkout .wc-block-components-checkbox label {
  position: relative;
  display: flex !important;
  min-height: 24px;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

body.woocommerce-checkout .wc-block-components-checkbox__input {
  box-sizing: border-box;
  flex: 0 0 20px;
  width: 20px !important;
  height: 20px !important;
  margin: 2px 0 0 !important;
  border: 1px solid #707070;
  border-radius: 3px;
  appearance: none;
  background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkbox__mark {
  position: absolute !important;
  top: 5px;
  left: 3px;
  display: none !important;
  width: 14px !important;
  height: 12px !important;
  pointer-events: none;
  fill: var(--fh-red);
}

body.woocommerce-checkout .wc-block-components-checkbox__input:checked
  + .wc-block-components-checkbox__mark {
  display: block !important;
}

body.woocommerce-checkout .wc-block-components-checkbox__label {
  flex: 1 1 auto;
}

body.woocommerce-checkout > #common_footer {
  display: none;
}

/* Cart payment actions.
 *
 * The WooCommerce block stylesheet is not present on the current cart
 * response, so restore the express-payment separator and the standard
 * checkout call to action without affecting product or payment data.
 */
body.woocommerce-cart .wc-block-components-express-payment__event-buttons {
  display: grid;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-cart #content {
  padding-top: clamp(34px, 4.5vw, 62px);
}

body.woocommerce-cart .entry-header {
  padding-top: 16px;
  text-align: center;
}

.single-product .fh-shipping-note {
  margin: 10px 0 18px;
  padding: 10px 12px;
  border-left: 4px solid var(--fh-red);
  border-radius: 4px;
  background: var(--fh-soft);
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

.fh-free-shipping-progress {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid #f1c9cb;
  border-radius: 9px;
  background: var(--fh-soft);
  color: #333;
}

.fh-free-shipping-progress__message {
  margin: 0 0 8px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.fh-free-shipping-progress__track {
  position: relative;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfe0;
}

.fh-free-shipping-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--fh-red);
  transition: width .25s ease;
}

.fh-free-shipping-progress.is-complete {
  border-color: #b9dec7;
  background: #f2fbf5;
}

.fh-free-shipping-progress.is-complete .fh-free-shipping-progress__message {
  color: #176c38;
}

.fh-free-shipping-progress.is-complete .fh-free-shipping-progress__bar {
  background: #23864b;
}

body.woocommerce-checkout .fh-free-shipping-progress {
  max-width: none;
  margin-bottom: 18px;
}

@media (max-width: 568px) {
  .fh-free-shipping-progress {
    margin-bottom: 13px;
    padding: 11px 12px;
  }

  .fh-free-shipping-progress__message {
    font-size: 13px;
  }
}

body.woocommerce-cart .wc-block-components-express-payment__event-buttons > li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-cart .wc-block-components-express-payment-continue-rule--cart {
  display: flex;
  margin: 18px 0 !important;
  align-items: center;
  gap: 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

body.woocommerce-cart .wc-block-components-express-payment-continue-rule--cart::before,
body.woocommerce-cart .wc-block-components-express-payment-continue-rule--cart::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px solid #d8d8d8;
}

body.woocommerce-cart .wc-block-cart__submit {
  min-height: 52px;
}

body.woocommerce-cart .wc-block-cart__submit-container {
  width: 100%;
}

body.woocommerce-cart .wc-block-cart__submit-button {
  box-sizing: border-box;
  display: flex !important;
  width: 100% !important;
  min-height: 52px;
  padding: 13px 20px !important;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fh-red) !important;
  border-radius: 7px;
  background: var(--fh-red) !important;
  color: #fff !important;
  font-size: 0 !important;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus {
  border-color: var(--fh-red-dark) !important;
  background: var(--fh-red-dark) !important;
  color: #fff !important;
}

body.woocommerce-cart
  .wc-block-cart__submit-button
  .wc-block-components-button__text::after {
  content: "通常の購入手続きへ（クレジットカード・銀行振込）";
  font-size: 16px;
}

@media (max-width: 900px) {
  body.woocommerce-checkout #content {
    padding-top: 24px;
  }

  body.woocommerce-checkout .entry-header {
    padding: 12px 0 20px;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  body.woocommerce-checkout .wc-block-components-sidebar {
    position: static;
  }

  body.woocommerce-cart .wc-block-cart__submit-button {
    min-height: 50px;
    padding: 12px 14px !important;
  }
}

@media (max-width: 568px) {
  body.woocommerce-checkout article {
    max-width: 100%;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout {
    padding: 0 2px !important;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-components-sidebar {
    padding: 16px !important;
    border-radius: 9px;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__title {
    font-size: 19px;
  }
}


/* Full-width storefront content and homepage brand directory. */
.site-content .content-area { float: none; width: 100%; margin-right: 0; }
.site-content .widget-area { display: none; }
.home .fh-shop-brands { box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 34px 20px 36px; }