/*
Theme Name:		バッテリーダイレクト専用テーマ
Template:		welcart_simple-plus
Description:	このテーマは「Simple Plus」の子テーマです
Version:		1.0
License:		GNU General Public License v2 or later
License URI:	http://www.gnu.org/licenses/gpl-2.0.html
Tags:			responsive-layout, simple-plus,
*/

html {
  font-size: var(--base-font-size, 16px);
  scroll-behavior: smooth;
}
body {
  color: #0B0000;
}
body a {
  transition: all 0.2s ease;
}
.wp-block-button:not(.is-style-outline) a:hover {
  color: #FFF;
}
button {
  color: #0B0000;
}

header.every {
  min-height: 60px;
  background-color: #FFF;
}
.menu-toggler,
header.display-mobile-search .menu-toggler {
  width: 48px;
}
.menu-toggler .navbar-toggler-icon-open {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: calc((var(--header-height, 60px) - 24px)/2) 14px;
}
header.every .logo.scroll-before,
header.fade-in .logo.scroll-before,
header.scroll-top .logo.scroll-before {
  max-width: 164px;
}
header.scroll-in .navbar-brand img,
header.scroll-top .navbar-brand img,
header.fade-in .navbar-brand img,
header.under-media .navbar-brand img {
  -webkit-transform: scale(1);
  transform: scale(1);
}
header .main-logo {
  position: absolute;
  top: 22px;
  left: calc(50% - 82px);
  z-index: 1;
  width: 164px;
}
.main-logo a {
  margin: 0;
}
.main-logo img {
  max-width: 164px;
}
header.every #ico-menu *,
header.every #ico-menu>path  {
  fill: #B90000;
}
header.every #ico-search-sp *,
header.every #ico-cart * {
  fill: #0B0000;
}
header .sp-user-btn {
  position: absolute;
  top: 12px;
  right: 52px;
  width: 42px;
  height: 42px;
}
header .sp-user-btn a {
  display: block;
  height: 100%;
  background: url(../batterydirect/images/icon-user.svg) no-repeat center center / contain;
}
header.display-mobile-search .search-sp {
  width: 42px;
  height: 42px;
  margin-right: auto;
  padding-right: 0;
  background: url(../batterydirect/images/icon-search.svg) no-repeat center center / contain;
}
header.display-mobile-search .search-sp .ico-search-sp {
  padding: 0;
}
header.display-mobile-search .search-sp .search-box-sp form .s-box button {
  right: inherit;
  left: 0;
}
header .sp-cart-btn {
  margin-right: 10px;
}
header .sp-cart-btn a {
  background: url(../batterydirect/images/icon-cart.svg) no-repeat center center / contain;
}
.total-quant {
  right: 0;
  bottom: 20px;
  background: #B90000;
}
header.display-mobile-search .search-sp .ico-search-sp #ico-search-sp,
header .sp-cart-btn a {
  display: block;
  width: 42px;
  height: 42px;
}
header.display-mobile-search .search-sp .ico-search-sp #ico-search-sp > path {
  fill: transparent;
}
header #global-menu .menu-scroller .sns,
header #ico-cart {
  display: none;
}
header.display-mobile-search:has(.search-sp) .cart-btn {
  width: 40px;
  height: 42px;
  margin: 0 0 0 -5px;
}
header.display-mobile-search:has(.search-sp) .cart-btn a {
  display: block;
  height: 100%;
  background: url(../batterydirect/images/icon-cart.svg) no-repeat center center / contain;
}
header #global-menu .menu-scroller,
header .global-menu-pc .menu-scroller {
  padding-top: 80px;
}
header.display-mobile-search #global-menu .menu-toggler {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: 48px;
  height: 60px;
}
header #global-menu .navbar-nav .nav-item.login,
header .global-menu-pc .navbar-nav .nav-item.login {
  display: none;
}
header #global-menu .navbar-nav .nav-item,
header .global-menu-pc .navbar-nav .nav-item {
  border-bottom: 0;
}
.menu-toggler .navbar-toggler-icon-close {
  width: 100%;
  height: 100%;
  background: #B90000 url(../batterydirect/images/icon-close.svg) no-repeat center center / 16px auto;
  -webkit-mask: none;
  mask: none;
}
header #global-menu .navbar-nav .nav-item.login .nav-link,
header .global-menu-pc .navbar-nav .nav-item.login .nav-link {
  display: flex;
  align-items: center;
}
header #global-menu .navbar-nav .nav-item.login .user-icon span,
header .global-menu-pc .navbar-nav .nav-item.login .user-icon span {
  display: none;
}
header #global-menu .navbar-nav .nav-item.login .user-icon,
header .global-menu-pc .navbar-nav .nav-item.login .user-icon {
  width: 48px;
  height: 48px;
  background: url(../batterydirect/images/icon-user.svg) no-repeat center center / 42px auto;
  -webkit-mask: none;
  mask: none;
}
.form-control:focus,
#cart_table .quantity input.quantity:focus,
#cart_table td input.quantity:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-width: 2px;
  border-color: #0B0000 !important;
  box-shadow: none;
}
header #global-menu .navbar-nav .search .s-box .search-text,
header .global-menu-pc .navbar-nav .search .s-box .search-text,
header.display-mobile-search .search-sp .search-box-sp form .s-box input,
.search-header .s-box .search-text {
  height: 48px;
  padding-right: 0.75rem;
  padding-left: 48px;
  border-color: #0B0000;
  border-radius: 6px;
}
header #global-menu .navbar-nav .search .s-box .button-search,
header .global-menu-pc .navbar-nav .search .s-box .button-search,
header.display-mobile-search .search-sp .search-box-sp form .s-box button,
.search-header .s-box .button-search {
  width: 48px;
  height: 48px;
  background: url(../batterydirect/images/icon-search.svg) no-repeat center center / 42px auto;
  -webkit-mask: none;
  mask: none;
}
header #global-menu .navbar-nav .search .s-box .button-search,
header .global-menu-pc .navbar-nav .search .s-box .button-search {
  right: inherit;
  left: 0;
}
.search-header .s-box .search-text {
  padding-right: 4rem;
  padding-left: 0.75rem;
}
.search-header .s-box .button-search:hover {
  border: 0;
}
#menu-drawer-menu {
  padding-left: 1rem;
}
.btn-outline-secondary {
  border-color: transparent;
}
#ico-search {
  display: none;
}
header.display-mobile-search .search-sp .search-box-sp .close-searchForm {
  width: 48px;
  height: 48px;
  background: url(../batterydirect/images/icon-close-red.svg) no-repeat center center / 16px auto;
  -webkit-mask: none;
  mask: none;
}
header.display-mobile-search .search-sp .search-box-sp .card {
  gap: 0 0.25rem;
  padding: 0.65rem 0.5rem 0.65rem 1rem;
}
.dropdown-item:hover, .dropdown-item:focus {
  background-color: transparent;
}
@media (min-width: 992px) {
  header.container-fluid {
    padding: 0 40px;
  }
  header.every {
    min-height: 90px;
    background-color: #FFF;
  }
  header.every .logo.scroll-before,
  header.fade-in .logo.scroll-before,
  header.scroll-top .logo.scroll-before {
    max-width: 265px;
  }
  header .main-logo {
    top: 32px;
    left: calc(50% - 132.5px);
    width: 265px;
    transition: all 0.5s ease;
  }
  header.every.scroll-in .main-logo,
  body:not(.home) header .main-logo {
    top: 16px;
  }
  .main-logo img {
    max-width: 215px;
  }
  .navbar-toggler-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    margin: 0 !important;
    background: url(../batterydirect/images/icon-toggle.svg) no-repeat center center / contain;
  }
  .navbar-toggler-icon svg {
    display: none;
  }
  header .global-menu-pc .navbar-light {
    position: absolute;
    top: 90px;
    left: 0;
    width: 100%;
    height: 58px;
    background: #FAFAFC !important;
    z-index: 1000;
    transition: all 0.5s ease;
  }
  header #global-menu .menu-scroller,
  header .global-menu-pc .menu-scroller {
    padding-top: 0;
  }
    header.every.scroll-in .global-menu-pc .navbar-light,
  body:not(.home) header .global-menu-pc .navbar-light {
    top: 60px;
  }
  header .global-menu-pc .navbar-light .navbar-nav {
    justify-content: center;
  }
  header.every #global-menu-pc .navbar-light .navbar-nav .nav-link {
    margin: auto 1.5rem;
    color: #0B0000;
    font-size: 0.9375rem;
  }
  header .global-menu-pc .navbar-nav .nav-item .dropdown-toggle::after {
    width: 12px;
    height: 10px;
    margin-left: 1rem;
    background-color: #0B0000;
    -webkit-mask: url(../batterydirect/images/icon-bottom.svg) no-repeat center/contain;
    mask: url(../batterydirect/images/icon-bottom.svg) no-repeat center/contain;
  }
  header .global-menu-pc .navbar-light .navbar-nav .menu-item {
    position: relative;
  }
  header .login-pc {
    position: absolute;
    top: 15px;
    right: 100px;
    width: 60px;
    height: 60px;
    margin: 0;
    transition: all 0.5s ease;
  }
  header .login-pc ul li {
    width: 60px;
    height: 60px;
  }
  header .login-pc ul li a {
    height: 100%;
    background: url(../batterydirect/images/icon-user.svg) no-repeat center center / 60px auto;
  }
  header .login-pc svg {
    display: none;
  }
  header .search-pc {
    position: absolute;
    top: 15px;
    left: 40px;
    width: 60px;
    height: 60px;
    margin: 0 !important;
    transition: all 0.5s ease;
  }
  header.every.scroll-in .search-pc,
  body:not(.home) header .search-pc,
  header.every.scroll-in .login-pc,
  body:not(.home) header .login-pc {
    top: 0;
  }
  header .search-pc a {
    display: block;
    height: 100%;
    background: url(../batterydirect/images/icon-search.svg) no-repeat center center / 60px auto;
  }
  header .search-pc .search-box {
    top: 8px;
    right: inherit;
    left: 60px;
  }
  header .login-pc svg *,
  header .search-pc svg *,
  header .cart-btn svg * {
    fill: #0B0000;
  }
  header.display-mobile-search:has(.search-sp) .cart-btn {
    width: 60px;
    height: 60px;
    transition: all 0.5s ease;
  }
  header.scroll-in.display-mobile-search:has(.search-sp) .cart-btn {
    margin-bottom: auto;
  }
  header .cart-btn .total-quant {
    right: 0;
    bottom: 30px;
  }
  header .global-menu-pc .navbar-nav .nav-item .dropdown-menu.depth_0 {
    display: block;
    top: calc(100% + 0.5rem);
    left: .5rem;
    z-index: 101;
    background-color: #FAFAFC;
  }
  header.scroll-in #global-menu-pc .depth_0 {
    background-color: #FAFAFC;
  }
  header .global-menu-pc .navbar-nav .nav-item .dropdown-menu.show.depth_0 {
    padding: 1rem 1.5rem;
  }
  header .global-menu-pc .navbar-nav .nav-item .dropdown-menu.show.depth_0>li {
    border-right: 0;
  }
  header .global-menu-pc .navbar-nav .nav-item .dropdown-menu.show.depth_0 li a {
    padding-right: 0;
    font-size: 0.9375rem;
  }
  header .sp-user-btn {
    display: none;
  }
}

footer {
  display: flex;
  flex-direction: column;
}
footer .sns {
  order: 2;
  margin-top: 2rem;
  margin-bottom: 0;
}
footer .sns .follow-us {
  display: none;
}
footer .sns img {
  display: none;
}
footer .sns a {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
footer .sns a[href*="instagram"] {
  background: #707070 url(../batterydirect/images/icon-instagram.svg) no-repeat center center / contain;
}
footer .sns a[href*="x.com"] {
  background: #707070 url(../batterydirect/images/icon-x.svg) no-repeat center center / contain;
}
footer .sns a[href*="youtube"] {
  background: #707070 url(../batterydirect/images/icon-youtube.svg) no-repeat center center / contain;
}
footer .footer-menu {
  margin-top: 3rem;
}
footer .footer-menu::before {
  display: none;
}
footer .footer-menu ul {
  width: 92.39766%;
  max-width: 760px;
  text-align: left !important;
}
footer .footer-menu li {
  margin-bottom: 1em;
}
footer .footer-menu li a {
  color: #E6E6E6;
  font-size: 0.8125rem;
}
footer .copyright {
  order: 3;
  margin-top: 2rem;
}
footer:has(.sns) .copyright {
  margin-top: 0;
}
@media (min-width: 768px) {
  footer .footer-menu ul {
    flex-direction: column;
  }
}

.main-image-area {
  position: relative;
  overflow: hidden;
  height: 112.30769vw;
  margin-top: 4.3rem;
}
.main-image-area::before {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.78) url(../batterydirect/images/img-logos.png) no-repeat center center / 90% auto;
  content: '';
}
@media (min-width: 350px) {
  .main-image-area::before {
    background-position: center 5px;
    background-size: 342px auto;
  }
}
@media (min-width: 768px) {
  .main-image-area::before {
    left: calc(50% - 195px);
    max-width: 390px;
  }
}
.main-image-area::after {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 25px;
  height: 253px;
  background: url(../batterydirect/images/img-tag.svg) no-repeat center center / contain;
  content: '';
}
.main-image-area>.text-white {
  height: 100%;
}
.main-image-area img.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 768px) {
  .main-image-area {
    height: 50vw;
  }
}
@media (min-width: 992px) {
  .main-image-area {
    margin-top: 148px;
    height: 34.21875vw;
  }
}

.site-content {
  background-color: #FAFAFC;
}

body.no-header-image header,
body:not(.home) header {
  position: static;
  min-height: 60px;
}
body:not(.home) .site-content .entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 75px;
  padding: 0 1.5rem;
}
@media (min-width: 992px) {
  body:not(.home):not(.single-topic) .site-content .entry-header {
    min-height: 98px;
    background: url(../batterydirect/images/bg-title.svg) no-repeat right 60px center / cover;
  }
}
body:not(.home) .site-content.index-php article .entry-title {
  margin-bottom: 0;
  padding-left: 0.875rem;
  font-size: 1.25rem;
}
body:not(.home) .site-content.index-php article .stepbar-current {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  width: 120px;
  min-height: 80px;
  margin-bottom: 0;
  padding: 0 1.5rem 0 0;
  background: #D9D9D9;
}
body:not(.home) .site-content.index-php article .stepbar-current::before {
  position: absolute;
  top: 0;
  left: -20px;
  content: '';
  display: block;
  width: 40px;
  height: 100%;
  background: #D9D9D9;
  transform: skewX(-20deg);
}
body:not(.home) .site-content.index-php article .stepbar-current span {
  position: relative;
  z-index: 1;
}
.stepbar-current-step {
  display: block;
  color: #B90000;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Roboto', 'Hiragino Sans', sans-serif;
  letter-spacing: 0.05em;
}
.stepbar-current-title {
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 992px) {
  body:not(.home) .site-content article:has(.stepbar-row)::after {
    position: absolute;
    top: 0;
    right: calc(50% - 50vw);
    width: 50vw;
    height: 98px;
    background-color: #D9D9D9;
    content: '';
  }
  body:not(.home) .site-content.index-php article .stepbar-current {
    width: 254px;
    min-height: 98px;
    padding-right: 4.5rem;
  }
  body:not(.home) .site-content.index-php article .stepbar-current::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 64px;
    background: url(../batterydirect/images/img-slash.svg) no-repeat center center / contain;
    content: '';
  }
  .stepbar-row {
    margin-top: 2.5rem;
  }
}

.site-content.front-page {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.front-page .widget.widget_block h2:not(.wp-block-heading) {
  font-size: 1.5rem;
}
.front-page .widget.widget_block p {
  font-size: 0.75rem;
}
.front-page .widget.widget_block p.title {
  font-size: 1rem;
}
.front-page .widget.widget_block h2 + p {
  margin-top: 1rem;
}
.front-page .news-front .news-title::after,
.content-title::after {
  display: none;
}
.front-page h2::after,
.front-page .h2::after {
  display: block;
  width: 100%;
  margin: 0;
  border-bottom: 0;
  color: #B90000;
  font-weight: 700;
  font-family: 'Roboto', 'Hiragino Sans', sans-serif;
  font-size: 0.75rem;
}
.front-page .wp-block-button__link {
  border-width: 1px;
  font-weight: 700;
  font-size: 1rem;
}

.front-page .widget:has(.group-cta) {
  order: 1;
  padding-bottom: 0;
}
.front-page .new-items {
  order: 2;
  width: 100%;
}
.front-page .widget:has(.group-summary) {
  order: 3;
  padding-bottom: 0;
}
.front-page .topics {
  order: 4;
  width: 100%;
}
.front-page .widget:has(.group-brand) {
  order: 5;
  padding-top: 0;
  padding-bottom: 1rem;
}
.front-page .wp-block-buttons>.wp-block-button.has-custom-width {
  width: 92.39766%;
  max-width: 320px;
}
.front-page .new-items .read-more {
  display: none;
}

.front-page h2:not(.wp-block-heading),
.front-page .h2:not(.wp-block-heading) {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
}

.front-page .new-items h2::after {
  content: 'Best Sellers';
}
.front-page .topics h2::after {
  content: 'Blog';
}
.front-page .new-items .container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.front-page .new-items .grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0;
  min-width: min-content;
}
.front-page .new-items .g-col-6 {
  width: 12.5rem;
}
.front-page .new-items .g-col-6 a {
  display: block;
  height: 100%;
  border-radius: 8px;
  background-color: #FFF;
  padding: 30px 10px 10px;
}
.new-items .grid-image {
  overflow: visible;
  width: 140px;
  margin-right: auto;
  margin-left: auto;
}
.front-page .new-items .g-col-6 .grid-tag-area-category {
  display: flex;
  gap: 5px;
  top: -20px;
  right: inherit;
  left: -20px;
}
.assistance_item .grid-tag-area-category {
  display: flex;
  gap: 5px;
  top: 1rem;
  right: inherit;
  left: 10px;
}
.grid-tag-area-category i:first-child {
  margin-top: 0;
}
.front-page .new-items .g-col-6 .grid-tag-area-category i.grid-tag,
.assistance_item .grid-tag-area-category i.grid-tag {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.6875rem;
}
.front-page .new-items .g-col-6 .grid-tag-area-category i.tag-itemreco,
.assistance_item .grid-tag-area-category i.tag-itemreco {
  background: linear-gradient(#007AD8, #009BB5, #00B594);
  color: #FFF;
}
.new-items .card-body .card-title.item-name {
  font-weight: 700;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .front-page .new-items .g-col-6 .grid-tag-area-category {
    top: -15px;
    left: -50px;
  }
}

.group-summary .title {
  font-weight: 700;
  text-align: center;
}
.group-summary .wp-block-group {
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px 10vw 20px 4vw;
  border: 1px solid #D9D9D9;
  border-radius: 10px;
  background-color: #FFF;
}
.group-summary .wp-block-group::before {
  display: block;
  position: absolute;
  top: 10px;
  left: 14px;
  width: 48px;
  height: 48px;
  content: '';
}
.group-summary .wp-block-group.recs-1::before {
  background: url(../batterydirect/images/icon-recs-01.svg) no-repeat center center / contain;
}
.group-summary .wp-block-group.recs-2::before {
  background: url(../batterydirect/images/icon-recs-02.svg) no-repeat center center / contain;
}
.group-summary .wp-block-group.recs-3::before {
  background: url(../batterydirect/images/icon-recs-03.svg) no-repeat center center / contain;
}
.group-summary .wp-block-group.recs-4::before {
  background: url(../batterydirect/images/icon-recs-04.svg) no-repeat center center / contain;
}
.group-summary .wp-block-group.recs-5::before {
  background: url(../batterydirect/images/icon-recs-05.svg) no-repeat center center / contain;
}
.group-summary .wp-block-group::after {
  position: absolute;
  top: 0;
  right: 12px;
  width: 15px;
  height: 15px;
  background: url(../batterydirect/images/img-mark.svg) no-repeat center top / contain;
  content: '';
}
.group-summary .wp-block-group .wp-block-heading {
  margin-left: 48px !important;
  font-size: 1.25rem;
  font-weight: 700;
}
.group-summary .wp-block-group p {
  position: relative;
  margin: 8px 0 0 30px;
  padding-left: 18px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.57;
}
.group-summary .wp-block-group.recs-2 p {
  color: #B90000;
}
.group-summary .wp-block-group:not(.recs-2) p::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 10px;
  height: 8px;
  background: url(../batterydirect/images/icon-check.svg) no-repeat center center / contain;
  content: '';
}

.front-page .topics .container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
  scrollbar-width: none; /* Firefox用スクロールバー非表示 */
  -ms-overflow-style: none; /* IE/Edge用スクロールバー非表示 */
}
.front-page .topics .container::-webkit-scrollbar {
  display: none; /* Chrome/Safari用スクロールバー非表示 */
}
.front-page .topics .grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 0;
  min-width: min-content; /* コンテンツの最小幅を確保 */
}
.front-page .topics .g-col-6 {
  flex: 0 0 auto; /* 要素のサイズを固定 */
  list-style-type: none;
  width: 17.125rem; /* カードの幅を固定 */
}
.front-page .topics .g-col-6 a {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 12px;
  background-color: #FFF;
}
.front-page .topics .g-col-6 .grid-image {
  width: 100%;
  height: 10.5625rem;
  object-fit: cover;
}
.topics .card-imag-top.grid-image img {
  border-radius: 0;
}
.front-page .topics .grid .not-overlay-image .card-body {
  padding: 24px 20px 20px;
}
.front-page .topics .grid .not-overlay-image .card-body .card-title {
  font-size: 1rem;
}
.front-page .topics .grid .not-overlay-image .card-body .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: calc(1.6em * 4); /* line-height * 4行 */
  margin-bottom: 0;
}
.btn-readmore {
  width: 81.02564%;
  max-width: 320px;
  height: 50px;
  border-radius: 8px;
  background-color: #0B0000;
  color: #FFF;
  font-weight: bold;
  line-height: calc(50px - 1em);
}
.btn-readmore::after {
  display: none;
}
@media (min-width: 768px) {
  .front-page .topics .grid .not-overlay-image.g-col-6 .card-body {
    padding: 24px 20px 20px;
  }
  .front-page .topics .grid .not-overlay-image .card-body .card-title {
    font-size: 1.125rem;
  }
  .front-page .topics .grid .not-overlay-image .card-body .card-text {
    font-size: 0.875rem;
  }
  .btn-readmore {
    max-width: 420px;
    height: 60px;
    font-size: 1.25rem;
    line-height: 48px;
  }
}

.group-brand .content-title {
  color: #7F7F7F;
  font-weight: 700;
  font-size: 0.6875rem;
  font-family: 'Roboto', 'Hiragino Sans', sans-serif;
}
.group-brand .wp-block-image.is-style-default {
  overflow: hidden;
  border-radius: 12px;
}
.group-brand .wp-block-group__inner-container > .wp-block-image a {
  display: block;
  overflow: hidden;
  position: relative;
  height: 44.87179vw;
  border-radius: 12px;
}
.group-brand .wp-block-group__inner-container > .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.group-brand .wp-block-columns.is-layout-flex {
  flex-wrap: nowrap !important;
  gap: 8px;
}
.group-brand .wp-block-columns.is-layout-flex .wp-block-image {
  margin-top: 0;
  margin-bottom: 0;
  border: 1px solid #FAFAFC;
  border-radius: 2px;
  background-color: #FFF;
}
.group-brand .wp-block-columns.is-layout-flex + p {
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .front-page h2:not(.wp-block-heading),
  .front-page .h2:not(.wp-block-heading) {
    font-size: 1.75rem;
  }
  .front-page h2::after,
  .front-page .h2::after {
    font-size: 0.875rem;
  }
  .front-page .new-items .container,
  .front-page .topics .container {
    max-width: 1120px;
  }
  .front-page .new-items .g-col-6 {
    width: 16.75rem;
  }
  .front-page .group-cta h2 {
    font-size: 2rem;
  }
  .front-page .group-cta h2 br {
    display: none;
  }
  .front-page .widget.widget_block p {
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.8125rem;
    line-height: 1.61;
  }
  .front-page .widget.widget_block h2 + p {
    font-size: 1.125rem;
    line-height: 1.8;
  }
  .front-page .wp-block-buttons>.wp-block-button.has-custom-width {
    max-width: 420px;
  }
  .front-page .wp-block-button__link {
    font-size: 1.25rem;
  }
  .group-brand .content-title {
    font-size: 1.3125rem;
  }
  .group-summary {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
  }
  .front-page .group-summary > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
  }
  .front-page .widget.widget_block .group-summary p.title {
    width: 100%;
    max-width: inherit;
    font-size: 1.5rem;
  }
  .group-summary .wp-block-group {
    padding: 2rem 2.5rem;
    text-align: left;
  }
  .front-page .group-summary .wp-block-group {
    width: calc(50% - 0.5rem);
    margin: 0;
    padding-left: 100px;
    }
  .front-page .group-summary .wp-block-group::before {
    left: 5px;
    width: 100px;
    height: 100px;
  }
  .front-page .group-summary .wp-block-group::after {
    width: 23px;
    height: 23px;
  }
  .front-page .group-summary .wp-block-group .wp-block-heading {
    font-size: 1.5rem;
    text-align: left;
  }
  .front-page .group-summary .wp-block-group p {
    margin-top: 0.5rem !important;
    margin-left: 30px;
    font-weight: normal;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    text-align: left;
  }
  .front-page .group-summary .wp-block-group:not(.recs-2) p::before {
    left: -10px;
    width: 20px;
    height: 16px;
  }
  .front-page .group-brand {
    max-width: 550px;
    margin-right: auto;
    margin-left: auto;
  }
  .group-brand .wp-block-image.is-style-default {
    width: 350px;
    margin-right: auto;
    margin-left: auto;
  }
}

body:not(.blog) .site-content {
  margin-top: 0;
  padding-top: 2px;
  padding-bottom: 2rem;
  background: #FAFAFC;
}
body.page .site-content.index-php {
  padding-bottom: 0;
}
.not-found .page-content {
  margin: 0 auto !important;
}
@media (min-width: 768px) {
  body:not(.blog) .site-content {
    position: relative;
    max-width: inherit;
  }
  body:not(.blog).single-post .site-content {
    margin-top: 2.5rem;
  }
  .entry-content,
  .error-404 .page-content {
    width: 80vw;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
  .error-404 .page-content {
    margin-top: 0;
  }
}
@media (min-width: 992px) {
  body:not(.blog) .site-content {
    max-width: inherit;
    padding: 58px 2.5rem;
  }
  #content {
    max-width: 1080px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
  }
}
  body.page .site-content.index-php {
  overflow: hidden;
  margin-top: 0;
  padding-right: 0;
  padding-left: 0;
}
body:not(.home) .site-content.index-php article {
  padding-bottom: 0;
  border-bottom: 0;
}

body:not(.home) .site-content header {
  position: relative;
  overflow: hidden;
  height: 75px !important;
  margin: 0 -1.5rem;
  padding: 1.5rem;
  color: #0B0000;
}
body.category-item .site-content header,
body:not(.home) .site-content header:has(.stepbar-current) {
  background-color: #FFF;
}
body:not(.home) .site-content article.page,
body:not(.home) .site-content article.post,
body.post-type-archive-topic .archive-topic,
body.category #content,
body.search #content,
body.error404 #content {
  position: relative;
}
body:not(.home) .site-content article.page::before,
body:not(.home) .site-content article.post:not(.article-item)::before,
body.post-type-archive-topic .archive-topic::before,
body.category #content::before,
body.search #content::before,
body.error404 #content::before {
  position: absolute;
  top: 0;
  left: -1.5rem;
  width: calc(100vw - 44px);
  height: 75px;
  background: url(../batterydirect/images/bg-title.svg) no-repeat right center / cover;
  content: '';
}
body:not(.home) .site-content article.post#wc_error::before {
  display: none;
}
@media (min-width: 992px) {
  body:not(.home) .site-content article.page::before,
  body:not(.home) .site-content article.post:not(.article-item)::before,
  body.post-type-archive-topic .archive-topic::before,
  body.category #content::before,
  body.search #content::before,
  body.error404 #content::before {
    left: calc(50% - 50vw);
    width: 50vw;
    height: 98px;
    background: #FFF;
  }
  body:not(.home) .site-content header {
    display: flex;
    align-items: center;
    height: 98px !important;
    height: auto;
    background: url(../batterydirect/images/bg-title.svg) no-repeat right 60px top / auto 98px;
  }
  body.single-topic .site-content header {
    background: transparent;
  }
}
body:not(.home) .site-content .archive-header::after,
body:not(.home) .site-content .entry-header::after,
body.post-type-archive-topic .page-header::after,
body.search .search-header::after,
body.error404 .page-header::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 64px;
  background: url(../batterydirect/images/img-slash.svg) no-repeat center center / contain;
  z-index: 1;
}
body:not(.home) .site-content.index-php .entry-header::after,
body:not(.home) .site-content .post-9 .entry-header::after {
  display: none;
}
body.single-topic .site-content header::after {
  display: none;
}
body.single-topic article {
  position: relative;
}
body.single-topic article::before {
  position: absolute;
  top: 0;
  left: -1.5rem;
  width: calc(100% + 3rem);
  height: 260px;
  background: linear-gradient(#DBE4F2, #FAFAFC);
  content: '';
}
body.single-topic .site-content .entry-header,
body.single-topic .site-content .entry-navigation,
body.single-topic .site-content .entry-content {
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  body.single-topic article::before {
    left: calc(50% - 50vw);
    width: 100vw;
    height: 300px;
  }
}

.page-title,
.content-title {
  margin: 0;
}
.search-header .page-title::after {
  display: none;
}
div.header_explanation,
.member_page_title {
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  min-height: 75px;
  margin: 0 -1.5rem 2.5rem;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.member_page_title + #memberpages div.header_explanation {
  display: none;
}
div.header_explanation::after,
.member_page_title::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 64px;
  background: url(../batterydirect/images/img-slash.svg) no-repeat center center / contain;
  z-index: 1;
}
#wc_lostmemberpassword form .submit input,
#wc_newmemberform .send input,
article.wc_login form .submit input,
article.wc_login .new-entry .nav a,
article.wc_member #memberinfo ul.member_submenu li a,
article.wc_member #memberinfo ul.member_submenu div a {
  height: 3rem;
  border-radius: 8px;
  background-color: #0B0000;
  font-size: 1rem;
  line-height: 3rem;
}
#wc_lostcompletion #memberpages p a,
#wc_changepasscompletion #memberpages p a,
#wc_newcompletion #memberpages p a,
#wc_ordercompletion #memberpages p a,
article.wc_member #memberinfo ul.member_submenu li:last-child a,
.wpcf7-form .wp-block-buttons>.wp-block-button .wp-block-button__link,
.wp-block-buttons.button>.wp-block-button .wp-block-button__link {
  height: 3rem;
  border: 1px solid #0B0000;
  border-radius: 8px;
  background-color: #FFF;
  color: #0B0000;
  font-size: 1rem;
  font-weight: 700;
  line-height: 3rem;
}
.wp-block-buttons.button.back>.wp-block-button .wp-block-button__link {
  background-color: #0B0000;
  color: #FFF;
}
.wpcf7-form .wp-block-buttons>.wp-block-button,
.wp-block-buttons.button>.wp-block-button  {
  width: 92.39766%;
  max-width: 320px;
}
.wpcf7-form .wp-block-buttons>.wp-block-button p {
  margin: 0;
}
.wpcf7-form .wp-block-buttons>.wp-block-button .wp-block-button__link,
.wp-block-buttons.button>.wp-block-button .wp-block-button__link {
  padding: 0 1rem;
  line-height: 3rem;
  text-decoration: none;
}
article.wc_member #memberinfo ul.member_submenu li:last-child a {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
.usces_filter_history label {
  white-space: nowrap;
}
.usces_filter_history .exclude_cancel,
article.wc_member #memberinfo .usces_filter_history .usce_period span {
  font-size: 0.875rem;
}
article.wc_member #memberinfo .usces_filter_history select {
  padding-right: 2rem;
  padding-left: 0.75rem;
  background-color: #FFF;
  background-position: right 0.5rem center;
}
#wc_lostcompletion #memberpages p:first-of-type,
#wc_changepasscompletion #memberpages p:first-of-type,
#wc_newcompletion #memberpages p:first-of-type,
#wc_ordercompletion #memberpages p:first-of-type {
  font-size: 1rem;
}
#wc_lostcompletion #memberpages .send a,
#wc_changepasscompletion #memberpages .send a,
#wc_newcompletion #memberpages .send a,
#wc_ordercompletion #memberpages .send a,
article.wc_login .member-box .nav a {
  padding-bottom: 4px;
  font-size: 0.875rem;
}
article.wc_member #memberinfo .user-history .currency_code {
  font-size: 0.875rem;
  text-align: right;
}
@media (max-width: 414px) {
  article.wc_member #memberinfo .usces_filter_history {
    gap: 0.5rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (min-width: 768px) {
  .search-header .page-title {
    margin-bottom: 60px;
  }
  .wpcf7-form .wp-block-buttons>.wp-block-button,
  .wp-block-buttons.button>.wp-block-button {
    max-width: 424px;
  }
  .wpcf7-form .wp-block-buttons>.wp-block-button .wp-block-button__link,
  .wp-block-buttons.button>.wp-block-button .wp-block-button__link {
    height: 58px;
    font-size: 1.25rem;
    line-height: 58px;
  }
  .entry-content .wpcf7-form .wp-block-buttons + p {
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.8125rem;
    line-height: 1.61;
  }
}
@media (min-width: 992px) {
  div.header_explanation,
  .member_page_title {
    min-height: 98px;
    background: url(../batterydirect/images/bg-title.svg) no-repeat right 60px top / auto 98px;
  }
  #wc_delivery .send input.back_to_customer_button {
    position: static;
  }
}

article.wc_login .new-entry .nav a {
  display: flex;
  justify-content: center;
  align-items: center;
}
article.wc_login .new-entry h2,
article.wc_login .new-entry .h2 {
  text-align: left;
}

.archive-header .page-title,
.page-header .page-title,
.entry-header .entry-title,
.not-found .page-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 1.25rem;
}
.not-found .page-title {
  margin-top: 0;
}
.entry-header .entry-title span {
  display: block;
  color: #B90000;
  font-size: 1rem;
}
.archive-topic .page-header,
.post-category .page-header {
  text-align: left;
}
.archive-topic .page-header .page-title::after,
.post-category .page-header .page-title::after,
.not-found .page-title::after {
  display: none;
}
@media (min-width: 992px) {
  .archive-header .page-title,
  .page-header .page-title,
  .entry-header .entry-title {
    font-size: 1.5rem;
  }
  .single-topic .entry-header .entry-title {
    font-size: 1.75rem;
  }
}

.archive-topic > .container > .grid {
  display: block;
}
.archive-topic > .container > .grid .g-col-6 + .g-col-6 {
  margin-top: 1.5rem;
}
.archive-topic .grid article a {
  overflow: hidden;
  border-radius: 12px;
  background-color: #FFF;
}
.archive-topic .grid article .card-imag-top {
  height: 52.82051vw;
  border-radius: 0;
}
.archive-topic .grid article .card-imag-top>img {
  border-radius: 0;
}
.archive-topic .grid .g-col-6.g-rounded-20 .card-body {
  padding: 24px 20px 20px;
}
.archive-topic .grid .not-overlay-image .card-body .card-title {
  font-size: 1rem;
}
.archive-topic .grid .not-overlay-image .card-body .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  max-height: calc(1.6em * 4);
  margin-bottom: 0;
  font-weight: normal;
  font-size: .8rem;
}
@media (min-width: 768px) {
  .archive-topic > .container > .grid {
    display: grid;
    gap: 1rem;
  }
  .archive-topic .grid .g-col-md-3 {
    grid-column: auto / span 6;
  }
  .archive-topic > .container > .grid .g-col-6 + .g-col-6 {
    margin-top: 0;
  }
  .archive-topic .grid article a {
    height: 100%;
  }
  .archive-topic .grid article .card-imag-top {
    height: 26.41025641vw;
  }
}
@media (min-width: 992px) {
  .archive-topic .grid .g-col-md-3 {
    grid-column: auto / span 4;
  }
  .archive-topic .grid article .card-imag-top {
    height: 169px;
  }
}

.archive-topic .archive-count-page,
.post-category .archive-count-page {
  margin-top: 1rem;
}
.entry-navigation {
  margin-bottom: 1.5rem;
}
.entry-navigation .btn-back {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 0.75rem;
}
.entry-navigation .btn-back::before {
  content: '';
  display: block;
  margin-right: 0.5rem;
  width: 10px;
  height: 10px;
  background: url(../batterydirect/images/icon-arrow-back.svg) no-repeat center center / contain;
}

.entry-content {
  margin-top: 2.5rem;
  padding-right: 0;
  padding-bottom: 2.5rem;
  padding-left: 0;
}
.index-php .entry-content {
  padding-bottom: 0;
}
.entry-content h1:first-child {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  font-size: 1.25rem;
}
body.single-topic .entry-content h1:first-child {
  margin-bottom: 0;
}
.entry-content ul,
.entry-content ol {
  margin: 1rem 0 1rem 1rem;
}
.entry-content ul li,
.entry-content ol li {
  margin: 0;
  padding-left: 0;
  font-size: 0.875rem;
  line-height: 1.57;
}
.entry-content ul li:not(:first-child),
.entry-content ol li:not(:first-child) {
  margin-top: 0.5rem;
}
.entry-content ul li::marker{
  color: #B90000;
}
.is-logo.-moll {
  border: 1px solid #B90000;
}
.is-logo.-varta {
  border: 1px solid #10238C;
}
@media (min-width: 768px) {
  .is-logo {
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
  }
}
@media (min-width: 992px) {
  .entry-content h1:first-child {
    margin-top: 2.5rem;
    font-size: 1.5rem;
  }
  .entry-content ul li,
  .entry-content ol li {
    font-size: 1rem;
  }
}

.wp-block-navigation,
.wp-block-buttons,
.wp-block-loginout,
.wp-block-post-date,
.wp-block-code,
.wp-block-post-featured-image,
.wp-block-image,
.blocks-gallery-grid,
.wp-block-gallery,
.wp-block-audio,
.wp-block-cover,
.wp-block-cover-image,
.wp-block-file,
.wp-block-media-text,
.wp-block-embed,
.wp-block-separator,
.wp-block-group,
.wp-block-post-terms,
.wp-block-search,
.wp-block-calendar {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.front-page .wp-block-buttons + p {
  width: 92.39766%;
  margin: -1.5rem auto 0;
}

footer {
  max-width: inherit;
  margin-top: 0;
  background: #7F7F7F;
  color: #FFF;
}
.single-post footer {
  padding-bottom: 104px;
}
@media (min-width: 768px) {
  .single-post footer {
    padding-bottom: 114px;
  }
}


/* ステップバー */
.stepbar-row {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 2px 0 8px;
  background-color: #D9D9D9;
}
.entry-content .stepbar {
  display: flex;
  align-items: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}
.entry-content .stepbar .step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% / 3 + 5px);
  min-width: 90px;
  height: 32px;
  margin: 0;
  padding: 0 20px;
  background: #FFF;
  color: #D9D9D9;
  font-family: 'Roboto', 'Hiragino Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  border: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
  position: relative;
  z-index: 1;
}
.entry-content .stepbar .step:first-child {
  text-indent: -10px;
}
.entry-content .stepbar .step:nth-child(2) {
  z-index: 1;
  width: calc(100% / 3 - 10px);
}
.entry-content .stepbar .step:last-child {
  z-index: 0;
  text-indent: 10px;
}
.entry-content .stepbar .step:nth-child(2)::before,
.entry-content .stepbar .step:nth-child(2)::after {
  content: '';
  display: block;
  position: absolute;
  height: 100%;
  transform: skewX(-20deg);
}
.entry-content .stepbar .step:nth-child(2)::before {
  left: -5px;
  z-index: 3;
  width: calc(100% + 10px);
  background: #FFF;
}
.entry-content .stepbar .step:nth-child(2)::after {
  right: -7px;
  width: calc(100% + 14px);
  background: #D9D9D9;
  z-index: 2;
}
.entry-content .stepbar .step.current {
  background: #B90000;
  color: #fff;
}
.entry-content .stepbar .step:nth-child(2).current::before {
  background: #B90000;
}
.entry-content .stepbar .step span {
  position: relative;
  z-index: 4;
}

/* アコーディオンパネル */
.battery-accordion {
  position: relative;
  padding: 42px 1.5rem 40px;
}
.battery-accordion + .battery-accordion {
  border-top: 4px solid #D9D9D9;
}
.battery-accordion::before {
  position: absolute;
  top: 0;
  left: 32.82051%;
  content: '';
  display: block;
  width: 20px;
  height: 146px;
  background-color: #D9D9D9;
  transform: skewX(-20deg);
  transition: background-color 0.5s ease;
}
.battery-accordion:has(.is-open)::before {
  background-color: transparent;
}
.battery-accordion-panel {
  max-height: 0;
  padding: 0 8px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  will-change: max-height, opacity;
}
.battery-accordion-panel.is-open {
  max-height: 1200px;
  opacity: 1;
  overflow: visible;
}

/* アコーディオンタイトル */
.battery-accordion-inner {
  background-color: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 100%;
  text-align: left;
  padding-top: 0.5rem;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
  outline: none;
  position: relative;
  z-index: 1;
}
.battery-accordion:has(.is-open) .battery-accordion-inner {
  box-shadow: none;
  background-color: transparent;
}
.battery-accordion-step {
  display: block;
  color: #B90000;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Roboto', 'Hiragino Sans', sans-serif;
  margin-bottom: -1.5rem;
  margin-left: 1.5rem;
  letter-spacing: 0.05em;
}
.entry-content .battery-accordion-title {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 1rem;
}
.entry-content .battery-accordion-title::after {
  position: absolute;
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  top: calc(50% - 4px);
  right: 18px;
  border-right: 1.5px solid #B90000;
  border-bottom: 1.5px solid #B90000;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.battery-accordion-title[aria-expanded="true"]::after {
  transform: rotate(225deg);
}
.battery-accordion-title span {
  font-size: 1.25rem;
}

/* 「**から選ぶ」セクション用スタイル */
.choose-model-section {
  display: block;
  background: #EDEFF3;
  border-radius: 12px;
  margin-bottom: 32px;
  padding: 32px 16px;
}
.choose-model-title {
  display: block;
  width: 100%;
  margin: 1.5rem 0 0 !important;
  font-size: 0.875rem;
}
.choose-model-note {
  display: block;
  margin: 20px 0 0 !important;
  font-size: 14px;
}
.choose-model-note a {
  text-decoration: underline;
}

/* アコーディオン（choose-model-list）開閉アニメーション用スタイル */
.choose-model-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

/* ラジオボタン風UI（choose-model-radio） */
.choose-model-btn {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 120px;
  background: #fff;
  border: 1px solid #FFF;
  border-radius: 6px;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.08);
  padding: 16px 20px 16px 36px;
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.choose-size-list .choose-model-btn:not(.choose-model-all):not(.choose-model-more) {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: calc(50% - 4px);
  padding: 7px 20px 7px 36px;
}
.choose-model-btn.is-selected {
  border-color: #B90000;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.16);
}

.choose-model-radio {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1px solid #D9D9D9;
  border-radius: 50%;
  background: #F0F0F0;
  transition: border-color 0.2s;
  display: inline-block;
}
.choose-model-radio::after {
  content: '';
  display: block;
  width: 12px;
  height: 12px;
  background: transparent;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: background 0.2s;
}
.choose-model-btn.is-selected .choose-model-radio {
  border: 1px solid #D9D9D9;
  background: #F0F0F0;
}
.choose-model-btn.is-selected .choose-model-radio::after {
  background: #B90000;
}
.choose-model-label {
  display: block;
  font-weight: 700;
}
.choose-model-dim {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
}
.choose-model-dim {
  margin-left: 1.5em;
}
.choose-size-list .choose-model-dim {
  margin-left: 0;
}

/* 追加サイズ選択肢（choose-model-extra）用スタイル */
.choose-model-extra {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 8px;
}

/* 「すべて」ボタン用スタイル */
.choose-model-all {
  width: 100%;
}

/* 「ほかのサイズをみる」ボタン用スタイル */
.choose-model-more {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 0 12px 0 rgba(0,0,0,0.08);
  padding: 16px 20px;
  color: #0B0000;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.choose-model-more:hover {
  border-color: #EDEDEF;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.16);
}

/*「**から選ぶ」セクション用スタイル */
.choose-size-list,
.choose-type-list,
.choose-maker-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}
.choose-size-list + .choose-model-note,
.choose-type-list + .choose-model-note {
  display: none;
}
.choose-model-cta-wrap {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px calc(1.5rem + 8px);
  box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
  background: #D9D9D9;
}
.choose-model-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #0B0000;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
}
.choose-model-cta:hover {
  background: #B90000;
  color: #FFF;
}
.choose-model-cta[href=""] {
  pointer-events: none;
}
.choose-model-cta[href=""]:hover {
  background: #0B0000;
}
.choose-model-label-bold {
  font-weight: 700;
  font-size: 1rem; /* 16px */
}
@media (min-width: 768px) {
  .choose-model-cta-wrap {
    position: static;
  }
}

.item-category .grid .g-col-6 {
  grid-column: auto/span 12;
}
.item-category .grid article a {
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px 0 rgba(0,0,0,0.08);
  background-color: #FFF;
}
.item-category .card {
  flex-direction: row;
  justify-content: space-between;
  padding: 10px 20px;
}
.item-category .grid-image {
  width: 40%;
}
.item-category .grid-tag-area-category {
  display: none;
}
.item-category .card-body.w-100 {
  flex: inherit;
  width: 55% !important;
  padding: 0.5rem 0;
}
@media (min-width: 768px) {
  .item-category .grid .g-col-6 {
    grid-column: auto / span 6;
  }
}

/* カテゴリーページ用フィルタボタン（サイズ・種類・メーカー） */
.category-filter-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 -1.5rem;
  padding: 1rem 1.5rem;
  background: #FAFAFC;
}
.category-filter-btn-wrap {
  position: relative;
  display: inline-block;
}
.category-modal-list {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  min-width: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  margin-top: 8px;
  transition: none;
}
.category-modal-list.is-active {
  display: block;
}
@media (max-width: 767px) {
  .category-modal-list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    top: auto;
    width: 100vw;
    height: 100vh;
    min-width: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.16);
    background: #fff;
    transition: bottom 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 11000;
    display: block;
    pointer-events: none;
    opacity: 0;
  }
  .category-modal-list.is-active {
    bottom: 0;
    pointer-events: auto;
    opacity: 1;
  }
}

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0.75rem;
  background: #B90000;
  color: #FFF;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: none;
}
.category-filter-btn::after {
  display: block;
  width: 13px;
  height: 8px;
  margin-left: 0.25rem;
  background: url(../batterydirect/images/icon-arrow-down.svg) no-repeat center center / contain;
  content: '';
}
.category-filter-btn:hover,
.category-filter-btn:focus {
  background: #B90000;
  color: #FFF;
  box-shadow: none;
  outline: none;
}

/* カテゴリーページ用 全画面モーダルリスト（サイズ・種類・メーカー） */
.category-modal-list {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(11, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
}
.category-modal-list.is-active {
  pointer-events: auto;
  opacity: 1;
}
.category-modal-inner {
  background: #fff;
  box-shadow: 0 -4px 24px 0 rgba(0,0,0,0.10);
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  max-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modal-slideup 0.3s cubic-bezier(0.4,0,0.2,1);
}
@media (min-width: 768px) {
  .category-modal-list,
  .category-modal-inner {
    min-height: 0;
    max-height: none;
    height: auto;
    transition: all 0.3s ease;
  }
  .category-modal-inner {
    max-width: 390px;
    padding-bottom: 1.5rem;
    box-shadow: 0 8px 16px #0000001f;
  }
}
.category-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 -1.5rem;
  padding: 1.5rem 1.5rem;
}
#cart-modal .category-modal-header {
  background: #E8E8E8;
}
.category-modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  margin: 0;
}
.category-modal-close {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: #B90000;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 1rem;
  flex-shrink: 0;
}
.category-modal-clear {
  position: absolute;
  top: calc(50% - 15px);
  right: 1rem;
  height: 30px;
  padding: .375rem .75rem;
  border: 0;
  border-radius: 4px;
  background-color: #0B0000;
  color: #FFF;
  font-weight: 700;
  font-size: 0.75rem;
}
#cart-modal .category-modal-content {
  margin: 0 -1.5rem;
  padding: 2rem 1.5rem;
  background: #FAFAFC;
}
.moda-cart-button {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-cart-link,
.modal-continue-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3rem;
  border: 1px solid #0B0000;
  border-radius: 8px;
  background-color: #0B0000;
  color: #FFF;
  padding: 0 .75rem;
  -webkit-transition: all .5s ease;
  transition: all .5s ease;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
}
.modal-continue-btn {
  background-color: #FFF;
  color: #0B0000;
}
.modal-recommend .card-body {
  padding: 0;
}
.modal-recommend .card-body .card-title {
  margin: 0;
  font-size: 0.8125rem;
}

/* カテゴリーフィルターモーダルのレスポンシブ配置 */
.category-filter-bar {
  display: flex;
  gap: 12px;
}
.category-filter-btn-wrap {
  position: relative;
  display: inline-block;
}
.category-modal-list {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 100;
  min-width: 320px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.16);
  margin-top: 8px;
  transition: none;
}
.category-modal-list.is-active {
  display: block;
}
.category-modal-list .category-modal-content {
  font-size: 0.875rem;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .category-modal-list {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    top: auto;
    width: 100vw;
    height: 100vh;
    min-width: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.16);
    transition: bottom 0.3s cubic-bezier(.4,0,.2,1);
    z-index: 9999;
    display: block;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
  }
  .category-modal-list.is-active {
    bottom: 0;
    pointer-events: auto;
    opacity: 1;
  }
}
@media (min-width: 768px) {
  .category-modal-list {
    top: 64px;
    max-width: 390px;
    margin-top: 0;
    box-shadow: none;
    background: transparent;
  }
  #category-modal-size {
    left: 1.5rem;
  }
  #category-modal-type {
    left: calc(1.5rem + 95px);
  }
  #category-modal-maker {
    left: calc(1.5rem + 176px);
  }
}

.page-link:focus {
  box-shadow: none;
}

.modal-recommend {
  margin: 0 -1.5rem;
  padding: 2rem 1.5rem;
}
.assistance_item {
  margin: 0 -1.5rem 0;
  padding: 3rem 0;
  background: #DBE4F2;
}
.assistance_item > h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
}
.assistance_item .scroll-smooth {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズスクロール */
  scrollbar-width: none; /* Firefox用スクロールバー非表示 */
  -ms-overflow-style: none; /* IE/Edge用スクロールバー非表示 */
}
.assistance_item .scroll-smooth::-webkit-scrollbar {
  display: none; /* Chrome/Safari用スクロールバー非表示 */
}
.assistance_item .scroll-smooth .grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin: 0 1.5rem;
  padding: 0;
  min-width: min-content; /* コンテンツの最小幅を確保 */
}
.assistance_item .scroll-smooth .grid li {
  flex: 0 0 auto; /* 要素のサイズを固定 */
  list-style-type: none;
  width: 12.5rem; /* カードの幅を固定 */
}
.assistance_item .card-title {
  margin-bottom: 0.25rem;
  font-size: .9rem;
  line-height: 1.4;
}
.card {
  height: 100%;
  border-radius: 8px;
}
.card-text.item-info {
  display: none;
  margin-bottom: .5rem;
  font-size: .75rem;
}
.card-text.item-price {
  font-size: .9rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.card-text.item-price em {
  font-size: .7rem;
  font-style: normal;
}
.item-category .card-body .card-title,
.new-items .card-body .card-title,
.front-page .widget_basic_item_list .card-body .card-title,
.general-widget-area .widget_basic_item_list .card-body .card-title,
.member-favorite .card-body .card-title,
#content>.widget_basic_item_list .card-body .card-title {
  -webkit-line-clamp: inherit;
  line-height: 1.4;
}
.item-category .card-body .card-text,
.new-items .card-body .card-text,
.front-page .widget_basic_item_list .card-body .card-text,
.general-widget-area .widget_basic_item_list .card-body .card-text,
.member-favorite .card-body .card-text,
#content>.widget_basic_item_list .card-body .card-text {
  margin-top: 0.5rem;
}
.item-category .card-body .card-text.item-info,
.new-items .card-body .card-text.item-info,
.front-page .widget_basic_item_list .card-body .card-text.item-info,
.general-widget-area .widget_basic_item_list .card-body .card-text.item-info,
.member-favorite .card-body .card-text.item-info,
#content>.widget_basic_item_list .card-body .card-text.item-info {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.25rem;
  font-weight: normal;
  font-size: 0.75rem;
  line-height: 1.4;
  display: none;
}
.assistance_item .grid-image {
  padding: 30px 1.5rem 0;
}
.assistance_item .card-body {
  padding-top: 0;
}
@media (min-width: 768px) {
  .assistance_item h3,
  .assistance_item .h3 {
    border-bottom: 0;
  }
}

.item-header-title {
  margin-bottom: 0;
  padding-top: 1rem;
  padding-bottom: 1.25rem;
  background: url(../batterydirect/images/bg-item-header.svg) no-repeat center bottom / 242px auto;
  font-weight: bold;
  text-align: center;
}
.item-header-title strong {
  font-size: 1.5rem;
}
.group-gallery {
  margin-top: 1rem;
}
.item-header + .group-gallery {
  margin-top: 0;
}
.carousel.single-item-carousel {
  width: 100%;
  margin-left: 0;
}
.carousel.single-item-carousel .carousel-inner .carousel-item {
  aspect-ratio: inherit
}
.carousel.single-item-carousel .carousel-inner .carousel-num,
.carousel.single-item-carousel .carousel-inner .control-tags {
  display: none;
}
.group-add-item .item-name {
  font-size: 1.25rem;
  text-align: left;
}
.group-add-item .item-code,
.group-add-item .skuform .skuinfo,
.group-add-item .skuform .add-to-cart .quantity-box {
  display: none;
}
.group-add-item .skuform .zaikostatus {
  right: inherit;
  bottom: 6.2rem;
  left: 0;
  padding: 0.1rem 0.2rem;
  border: 1px solid #D9D9D9;
  color: #6E6E6D;
  font-size: .75rem;
}
.group-add-item .skuform .add-to-cart .cart-button .skubutton {
  height: 3rem;
  border-radius: 8px;
  background-color: #0B0000;
  font-size: 1rem;
}
.item-category {
  margin: 0.5rem 0 0;
}
.item-category .category-tag {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  margin-right: 0.25rem;
  margin-bottom: 0.5rem;
  background: #007AD8;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #FFF;
}
.item-category .category-tag.item,
.item-category .category-tag.itemreco {
  display: none;
}
.item-warranty span {
  padding: 0.25rem 0.5rem;
  border: 1px solid #0B0000;
  border-radius: 3px;
  background-color: #FFF;
  color: #0B0000;
  font-size: 0.75rem;
}
.item-warranty.additional span {
  border-color: #B90000;
  color: #B90000;
}
.group-add-item .current-status {
  display: flex;
  margin-top: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}
.current-status .campaign_message, .current-status .tag {
  margin: 0;
}
.group-add-item .skuform {
  display: flex;
  flex-direction: column;
}
.group-add-item .skuform .field-price {
  order: 1;
  margin-top: 1rem;
  margin-bottom: 0;
}
.group-add-item .skuform .field-price .tax {
  font-weight: normal;
  font-size: 0.75rem;
}
.group-add-item .skuform .zaikostatus {
  display: inline-block;
  order: 2;
  position: static;
  margin-right: auto;
  text-align: left;
}
.group-add-item .skuform .item-option {
  order: 3;
  margin-top: 2.3rem;
}
.group-add-item .skuform .item-option dt {
  font-size: 0.9375rem;
}
.group-add-item .skuform .item-option dt::after {
  margin-left: 2px;
  color: #E50811;
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
  content: "*";
}
.group-add-item .skuform .item-option dd .iopt_radio_label {
  font-size: 0.9375rem;
}
.group-add-item .skuform .item-option-notice {
  order: 4;
  padding: 1rem;
  background: #EBECED;
  font-size: 0.875rem;
  line-height: 1.6;
}
.group-add-item .skuform .item-option-notice ul {
  margin-bottom: 0;
  padding-left: 1rem;
}
.group-add-item .skuform .add-to-cart {
  order: 5;
}
.group-add-item .skuform .add-to-cart .cart-button {
  margin-top: 3rem;
}
.group-add-item .skuform .error-message {
  order: 6;
}
#wc_delivery div.footer_explanation {
  margin-right: auto;
  margin-left: auto;
  padding: 1rem;
  border: 1px solid #B90000;
  background: #FFF;
  color: #B90000;
  font-size: 0.875rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .group-gallery {
    margin-top: 0;
  }
  .article-item .group-add-item .item-name {
    font-size: 1.5rem;
  }
  .article-item .group-add-item .skuform .field-price {
    margin-bottom: 0;
    font-size: 1.625rem;
  }
  .group-add-item .skuform .field-price .tax {
    font-size: 0.875rem;
  }
  .carousel.single-item-carousel .items-carousel-indicators {
    display: none !important;
  }
}

.group-add-item table.item_custom_field {
  width: 92.39766%;
  margin-right: auto;
  margin-left: auto;
}
.group-add-item table.item_custom_field th,
.group-add-item table.item_custom_field td {
  font-size: 0.75rem;
}
.group-add-item table.item_custom_field th {
  padding: 0.375rem 1rem 0.375rem 0.25rem;
  color: #929292;
  white-space: nowrap;
}
.group-add-item table.item_custom_field td {
  width: 60%;
  padding: 0.375rem 0.25rem;
}

.item-description {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.8;
}
.item-description span::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.25rem;
  background-color: #B90000;
  vertical-align: middle;
  content: '';
}

.type-grid.item-category.auxiliary {
  margin-top: 3rem;
  margin-bottom: 2rem;
}
.auxiliary-title p {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

/** 
 * サポート情報ボックス（support-info）
 */
.support-info {
  margin: 0 -1.5rem;
  padding: 1.5rem;
  background: #fff;
}
.support-info .info-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
}
.support-info .info-box-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #C82525;
  border-radius: 4px;
}
.support-info .info-box-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}
.support-info .info-box-text span {
  font-size: 0.875rem;
}
.support-info a.info-box-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  color: #0b0000;
}
.support-info .support-text {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.8;
}
@media (min-width: 768px) {
  .support-info {
    margin: 2.5rem 0;
  }
}

/** 
 * モーダルメニュー（modal-item）
 */
.modal-item {
  padding: 2rem 0;
}
.modal-menu-item {
  width: 100%;
}
.modal-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1.5rem;
  font-weight: bold;
  font-size: 0.9375rem;
}

.entry-content ul.note-list {
  list-style: none;
  padding-left: 1em;
  margin-left: 0;
  font-size: 0.8125rem;
  line-height: 2;
}
.entry-content ul.note-list li{
  margin: 0;
  text-indent: -1em;
}
.entry-content ul.note-list li:before{
  content: "※";
  color: #B90000;
  margin-right: 0.5em;
}

.entry-content h2,
.entry-content .h2 {
  margin: 1.5rem 0 1rem;
  padding: 0;
  border-top: 0;
  border-bottom: 0;
  font-size: 1.25rem;
}
.entry-content h3,
.entry-content .h3 {
  margin: 1.5rem 0 1rem;
  padding: 0;
  font-size: 1.125rem;
}
.entry-content h3::before,
.entry-content .h3::before {
  display: none;
}
.entry-content p {
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.entry-content .wpcf7-form p {
  margin-bottom: 1.5rem;
}
.entry-content .wpcf7-form .wp-block-buttons + p,
.entry-content .wp-block-buttons.button + p {
  width: 92.39766%;
  margin: -1.5rem auto 2.5rem;
  font-size: 0.75rem;
}
.comment-area {
  display: none;
}
@media (min-width: 992px) {
  .entry-content h2,
  .entry-content .h2 {
    font-size: 1.5rem;
  }
  .entry-content p {
    font-size: 1rem;
  }
  .entry-content .wpcf7-form .wp-block-buttons + p,
  .entry-content .wp-block-buttons.button + p {
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.8125rem;
    line-height: 1.61;
  }
}

.page-template-template-inquiry .wp-block-buttons>.wp-block-button {
  display: block;
}
.wp-block-buttons>.wp-block-button>.button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  color: #0B0000;
  padding: 1.5rem 3rem 1.5rem 10%;
  text-decoration: none !important;
  border: 1px solid #FFF;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #FFF;
  font-weight: bold;
  font-size: 1rem;
}
.wp-block-buttons>.wp-block-button>.button:hover {
  border-color: #B90000;
}
.wp-block-buttons>.wp-block-button.is-text>.button {
  background-image: url(../batterydirect/images/icon-text.svg);
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: 46px auto;
}
.wp-block-buttons>.wp-block-button.is-image>.button {
  background-image: url(../batterydirect/images/icon-image.svg);
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: 48px auto;
}
.wp-block-buttons>.wp-block-button+.wp-block-button {
  margin-top: 0.5rem;
}
.wp-block-buttons>.wp-block-button>.button:hover {
  color: #0B0000;
}
.wp-block-buttons>.wp-block-button>.button span {
  display: block;
  margin-top: 0.5rem;
  font-weight: normal;
  font-size: 0.875rem;
}
@media (min-width: 768px) {
  .page-template-template-inquiry:not(.inquiry-thanks) .wp-block-buttons {
    display: flex;
    justify-content: space-between;
  }
  .page-template-template-inquiry .wp-block-buttons>.wp-block-button {
    width: calc(50% - 0.5rem);
  }
  .wp-block-buttons>.wp-block-button+.wp-block-button {
    margin-top: 0;
  }
  .page-template-template-inquiry .wp-block-buttons>.wp-block-button>.button {
    font-size: 1.125rem;
    text-align: left;
  }
}

.page-template-template-inquiry .entry-content p {
  margin-bottom: 0;
}
.page-template-template-inquiry .entry-content h2 {
  margin-top: 0.5rem;
}
span.red {
  color: #E50811;
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
}

.cart_navi {
  display: none;
}
.input_area,
.confirm_area {
  transition: all 0.2s ease;
}
input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=url],
input[type=date],
input[type=search] {
  height: 3rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  background: #FFF;
}
article.wc_login form input {
  padding: 0.25rem 0.75rem;
}
textarea {
  border-color: #D9D9D9;
  background: #FFF;
}
.wpcf7-form-control.wpcf7-radio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item {
  width: calc(50% - 4px);
  margin: 0;
}
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #FFF;
  border-radius: 6px;
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.wpcf7-form-control.wpcf7-radio .wpcf7-list-item label:has(input[type=radio]:checked) {
  border-color: #B90000;
}
input[type=radio] {
  width: 18px;
  height: 18px;
  border: 1px solid #D9D9D9;
  background: #F0F0F0;
}
input[type=radio]::after {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #B90000;
  position: absolute;
  top: 2px;
  left: 2px;
}
input[type=checkbox]::after {
  top: 1px;
  left: 7px;
  border-right-color: #B90000;
  border-bottom-color: #B90000;
}
.form-field.required p > label::after {
  margin-left: 2px;
  color: #E50811;
  font-size: 1.5rem;
  line-height: 1;
  vertical-align: middle;
  content: "*";
}
.form-button {
  margin-top: 2rem;
}
.form-button > p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.form-button input[type="reset"],
.form-button input[type="button"],
.form-button input[type="submit"] {
  width: calc(50% - 4px);
  height: 3rem;
  border: 1px solid #0B0000;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1rem;
}
.form-button input[type="reset"] {
  background-color: #FFF;
  color: #0B0000;
}
.form-button input[type="submit"],
.confirm_button {
  background-color: #0B0000;
  color: #FFF;
}
.confirm_button:disabled {
  opacity: 0.8;
  border-color: #7F7F7F !important;
  background-color: #7F7F7F;
  color: #FFF;
  cursor: not-allowed;
}
.wpcf7-file{
  display: inline-block;
  background-color: #FFF;
  color: #0B0000;
  font-size: 0.875rem;
  height: 100%;
  padding-left: 0;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
}
input[type=file]::file-selector-button {
  background: #0B0000 url(../batterydirect/images/icon-file-uploads.svg) no-repeat 20px center / 28px auto;
  padding: 1rem 0.5rem 1rem 3rem;
  border: 1px solid #0B0000;
  color: #FFF;
  height: 100%;
  font-weight: bold;
  font-size: 0.875rem;
  cursor: pointer;
}
.wpcf7-file:hover::file-selector-button {
  opacity: 0.8;
  background-color: #0B0000 !important;
}
.cf7msm-ro {
  display: inline-block;
  min-height: 21px;
  font-size: 1.125rem;
}
@media (min-width: 768px) {
  .form-button {
    max-width: 640px;
    margin: 3rem auto 0;
  }
  .form-button > p {
    gap: 20px;
  }
  .form-button input[type="reset"],
  .form-button input[type="button"],
  .form-button input[type="submit"] {
    width: calc(50% - 10px);
  }
}

#wc_confirm #confirm_table h2,
#wc_confirm #confirm_table .h2,
#wc_confirm #confirm_table h3,
#wc_confirm #confirm_table .h3 {
  position: relative;
  padding-left: 1.375rem;
}
#wc_confirm #confirm_table h2::before,
#wc_confirm #confirm_table .h2::before,
#wc_confirm #confirm_table h3::before,
#wc_confirm #confirm_table .h3::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px;
  height: 19px;
  background: url(../batterydirect/images/img-slash.svg) center / contain no-repeat;
  content: '';
}
#delivery_method_select {
  opacity: 0.5;
  pointer-events: none;
}
#cart .upbutton {
  display: flex;
  align-items: center;
  padding-right: 80px;
  padding-bottom: 0;
  font-size: 0.75rem;
}
#cart .upbutton input,
.customer_form input#search_zipcode {
  width: 22.5%;
  height: 30px;
  padding: .375rem .75rem;
  border: 0;
  border-radius: 4px;
  background-color: #0B0000;
  color: #FFF;
  font-size: 0.75rem;
}
#cart_table tbody {
  background-color: #FFF;
}
#cart_table tbody tr,
article.wc_member #memberinfo .history-area table.retail tr {
  grid-template-columns: 0 35vw 1fr;
  gap: 0;
}
#cart_table td.num,
article.wc_member #memberinfo .history-area table.retail tr .cartrownum {
  font-size: 0;
}
#cart_table td.thumbnail {
  padding-right: 1rem;
  padding-left: 1rem;
}
#cart_table td.productname {
  padding-top: 0.5rem;
  padding-right: 1rem;
}
#cart_table td.stock,
#cart_table td.unitprice,
#cart_table tfoot th.num {
  display: none;
}
#cart_table td.productname {
  word-break: inherit;
}
#cart_table td.productname span {
  font-weight: normal;
  font-size: 0.8125rem;
}
#cart_table td.subtotal {
  padding: 0 1rem 0 0;
}
#cart_table td.quantity::before {
  font-size: 0.8125rem;
}
#cart_table .quantity input.quantity {
  width: 3rem;
  height: 2rem;
  background-color: #FFF;
}
#cart .action input.delButton {
  padding-left: 1rem;
  font-size: 0.8125rem;
}
#cart_table tfoot th.amount-text {
  padding-right: 0.5rem;
  color: #0B0000;
  font-size: 0.875rem;
}
#cart_table tfoot th.aright .tax {
  font-size: 0.7rem;
}
#wc_confirm #cart #cart_table {
  margin-top: 0.5em;
}
#wc_confirm #cart #cart_table tfoot tr:first-child .amount,
#wc_confirm #cart #cart_table tfoot tr:last-child .amount,
#wc_confirm #cart #cart_table tfoot tr:not(:first-child) td:last-child {
  min-width: 90px;
  white-space: nowrap;
}
#wc_confirm #cart tfoot tr:not(:first-child) td {
  padding-right: 0;
}
#cart_table tfoot th.amount {
  color: #0B0000;
}
.send input.to_reganddeliveryinfo_button,
.send input.to_customerinfo_button,
.send input.to_memberlogin_button,
.send input.to_deliveryinfo_button,
.send input.to_confirm_button,
.send input.checkout_button,
.send input#paidy-checkout-button {
  width: 92.39766%;
  min-width: 195px;
  max-width: 320px;
  height: 48px;
  background-color: #0B0000;
  color: #FFF;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  border: 1px solid #0B0000;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
.send input.back_to_customer_button,
.send input.back_cart_button,
.send input.continue_shopping_button,
.send input.back_to_delivery_button {
  width: 92.39766%;
  min-width: 195px;
  max-width: 320px;
  height: 48px;
  background-color: #FFF;
  color: #0B0000;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  border: 1px solid #0B0000;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
}
#wc_confirm .send input.back_to_delivery_button {
  margin-left: auto;
}
.send input.back_to_customer_button,
.send input.back_cart_button,
.send input.continue_shopping_button,
.send input.back_to_delivery_button {
  margin-right: inherit;
}
.customer_form tr td,
#wc_customer .customer_form th {
  font-weight: normal;
  font-size: 0.875rem;
}
table.customer_form tr.inp1 span {
  width: 2rem;
}
table.customer_form tr.inp1 td input {
  width: calc(100% - 2rem - 5%);
}
.customer_form tr {
  padding: 0;
}
.customer_form input[type=text],
.customer_form input[type=password],
.customer_form input[type=email],
.customer_form input[type=tel],
.customer_form input[type=url],
.customer_form input[type=search],
.customer_form input[type=number],
.customer_form input[type=date],
.customer_form input[type=datetime-local],
.customer_form input[type=month],
.customer_form input[type=week],
.customer_form input[type=time],
table.customer_form select {
  height: 3.25rem;
  border: 1px solid #D9D9D9;
  border-radius: 4px;
  background-color: #FFF;
}
.customer_form tr th em {
  color: #E50811;
}
#customer-info h2,
#customer-info .h2 {
  font-weight: 700;
  font-size: 1.25rem;
}
#customer-info form + h2,
#customer-info form + .h2 {
  margin-top: 4rem;
}
#info-confirm,
#cart_completion {
  display: flex;
  flex-direction: column;
}
#wc_ordercompletion .cart_page_title {
  display: none;
}
#info-confirm .header_explanation,
#cart_completion .header_explanation {
  order: 1;
}
#cart_completion .header_explanation {
  display: flex;
  flex-direction: column-reverse;
  padding-top: 1rem;
}
#wc_ordercompletion #cart_completion .header_explanation {
  margin-bottom: 0;
}
#cart_completion .header_explanation p {
  margin-top: 60px;
  font-size: 1rem;
}
#wc_ordercompletion #cart_completion h3 {
  display: none;
}
#info-confirm .confiem_notice,
#cart_completion h3 {
  order: 2;
}
#info-confirm .error_message,
#cart_completion .footer_explanation {
  order: 3;
}
#info-confirm #cart,
#cart_completion .send {
  order: 4;
}
#wc_ordercompletion a.back_to_top_button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  margin-bottom: 3.75rem;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  background-color: #0B0000;
  color: #FFF;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  border: 1px solid #0B0000;
  border-radius: 8px;
  cursor: pointer;
}
#info-confirm #confirm_table {
  order: 5;
}
#info-confirm #purchase_form {
  order: 7;
}
#info-confirm .footer_explanation {
  order: 8;
}
@media (min-width: 768px) {
  #wc_ordercompletion #cart_completion .header_explanation {
    padding-top: 1.5rem;
    font-size: 1.625rem;
  }
  #cart_table thead th {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    text-align: center !important;
  }
  #cart_table td.unitprice {
    display: table-cell;
  }
  #wc_cart #cart #cart_table th.num,
  #wc_cart #cart #cart_table td.num,
  #wc_confirm #cart #cart_table th.num,
  #wc_confirm #cart #cart_table td.num {
    width: 0;
    padding: 0;
    border: 0;
    font-size: 0;
  }
  #wc_cart #cart #cart_table th.thumbnail,
  #wc_cart #cart #cart_table td.thumbnail,
  #wc_confirm #cart #cart_table th.thumbnail,
  #wc_confirm #cart #cart_table td.thumbnail {
    width: 20%;
  }
  #wc_cart #cart #cart_table th.productname,
  #wc_cart #cart #cart_table td.productname,
  #wc_confirm #cart #cart_table th.productname,
  #wc_confirm #cart #cart_table td.productname {
    width: 35%;
  }
  #wc_cart #cart #cart_table th.quantity,
  #wc_cart #cart #cart_table td.quantity,
  #wc_confirm #cart #cart_table th.quantity,
  #wc_confirm #cart #cart_table td.quantity {
    width: 10%;
  }
  #wc_cart #cart #cart_table th.price,
  #wc_cart #cart #cart_table th.unitprice,
  #wc_cart #cart #cart_table th.subtotal,
  #wc_cart #cart #cart_table td.subtotal,
  #wc_confirm #cart #cart_table th.price,
  #wc_confirm #cart #cart_table th.unitprice,
  #wc_confirm #cart #cart_table th.subtotal,
  #wc_confirm #cart #cart_table td.subtotal {
    width: 17.5%;
  }
  #cart_table td.unitprice,
  #cart_table td.subtotal {
    text-align: right;
  }
  #cart_table td.action {
    text-align: center;
  }
  #cart_table tfoot th {
    text-align: right !important;
  }
  #wc_cart #cart_table th.num,
  #wc_cart #cart_table td.num,
  #wc_cart #cart_table th.stock {
    display: none;
  }
  #cart_table tfoot th.amount-text {
    font-size: 1rem;
  }
  #cart_table tfoot th.aright .tax {
    font-size: 0.875rem;
  }
  #wc_cart #cart .upbutton {
    padding-top: 0.5rem;
    font-size: 0.875rem;
  }
  table.customer_form tr th {
    width: 27.5%;
  }
  table.customer_form input[type=password] {
    display: inline-block;
    width: 70%;
    max-width: 470px;
    margin-right: .5em;
  }
  table.customer_form tr.inp1 td input {
    width: calc(100% - 4rem - 2rem);
  }
  .cart-page .send {
    justify-content: center;
    gap: 10px
  }
  #wc_confirm #confirm_table tr.ttl h2,
  #wc_confirm #confirm_table tr.ttl .h2,
  #wc_confirm #confirm_table tr.ttl h3,
  #wc_confirm #confirm_table tr.ttl .h3 {
    border-bottom: 0;
  }
  #wc_confirm #confirm_table h2::before,
  #wc_confirm #confirm_table .h2::before,
  #wc_confirm #confirm_table tr.ttl h3::before,
  #wc_confirm #confirm_table tr.ttl .h3::before {
    top: 6px;
    width: 16px;
    height: 20px;
  }
  #wc_confirm #cart #cart_table tfoot th,
  #wc_confirm #cart #cart_table tfoot td {
    font-size: 1rem;
  }
  #wc_ordercompletion a.back_to_top_button {
    height: 58px;
    font-size: 1.25rem;
  }
  #wc_customer .send,
  #wc_delivery .send, #wc_confirm .send {
    justify-content: center;
  }
  #wc_confirm .send input.back_to_delivery_button {
    margin-left: 0;
  }
}
@media (min-width: 992px) {
  #info-confirm .confiem_notice,
  #info-confirm .error_message,
  #info-confirm #cart,
  #info-confirm #confirm_table,
  #info-confirm #purchase_form,
  #info-confirm .footer_explanation {
    width: 100%;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
  }
}
@media (min-width: 1200px) {
  #wc_confirm .send {
    gap: 30px;
  }
  #wc_confirm .send input.back_to_delivery_button {
    position: static;
  }
}@media (min-width: 1400px) {
  #wc_customer .send input.back_cart_button {
    position: static;
  }
}

#zeus-loading {
  order: 6;
  width: 100% !important;
}
div[id="3dscontainer"] {
  order: 6;
  margin-bottom: 20px !important;
}
div[id="3dscontainer"] iframe body {
  background-color: transparent !important;
}
@media screen and (min-width: 768px) {
  div[id="3dscontainer"] {
    width: 100%;
    max-width: 760px;
    margin: 40px auto !important;
  }
}

article.wc_member #memberinfo .history-area table#history_head {
  background-color: #FFF;
}
article.wc_member #memberinfo .history-area table.retail {
  margin-top: 1rem;
  padding-top: 0.5rem;
  background-color: #FFF;
}
article.wc_member #memberinfo .history-area table.retail tr .thumbnail {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
}
article.wc_member #memberinfo .history-area table.retail tr .productname {
  padding: 0 1rem 0.5rem 0.5rem;
}
article.wc_member #memberinfo .history-area table.retail tr .price,
article.wc_member #memberinfo .history-area table.retail tr .quantity {
  padding: 0 0.5rem 0.5rem;
  font-size: 0.875rem;
}
article.wc_member #memberinfo .history-area table.retail tr .price::before,
article.wc_member #memberinfo .history-area table.retail tr .quantity::before {
  font-size: 0.8125rem;
}
article.wc_member #memberinfo .history-area table.retail tr .subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1rem;
  font-weight: 700;
  font-size: 1.3rem;
}
article.wc_member #memberinfo .history-area table.retail tr .subtotal::before {
  font-size: 0.875rem;
}
article.wc_member #memberinfo .history-area table#history_head tbody tr.order_head_value {
  width: inherit;
}
article.wc_member #memberinfo .history-area table#history_head {
  padding-right: 0;
}
@media (min-width: 768px) {
  article.wc_member #memberinfo .user-history table.retail tr th.cartrownum {
    width: 50px;
  }
  article.wc_member #memberinfo .user-history table.retail tr th.thumbnail, article.wc_member #memberinfo .user-history table.retail tr td.thumbnail {
    width: 150px;
  }
  article.wc_member #memberinfo .user-history table.retail tr th.productname,
  article.wc_member #memberinfo .history-area table.retail tr .price,
  article.wc_member #memberinfo .history-area table.retail tr .quantity,
  article.wc_member #memberinfo .history-area table.retail tr .subtotal {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    text-align: center;
  }
  article.wc_member #memberinfo .user-history .history-area table#history_head tr.order_head_label th {
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
  }
  article.wc_member #memberinfo .history-area table.retail tr .subtotal {
    display: table-cell;
  }
  article.wc_member #memberinfo .user-history table.retail tr td.productname {
    padding: 0.5rem 1rem;
  }
  article.wc_member #memberinfo .history-area table.retail tr td {
    font-size: 1.125rem !important;
  }
}

.legal-notice .entry-content h2,
.privacy-policy .entry-content h2,
.terms-of-use .entry-content h2,
.error-404 .page-content h2 {
  font-size: 1rem;
}
.error-404 .page-content h2 {
  font-weight: 700;
}
.error-404 .page-content h2 + p {
  font-size: 0.8125rem;
  line-height: 1.8;
}
.legal-notice .entry-content h2:first-child,
.privacy-policy .entry-content h2:first-child,
.terms-of-use .entry-content h2:first-child {
  margin: 3.4rem 0 0;
}
.terms-of-use .entry-content p:first-child {
  margin-top: 3.4rem;
}
.legal-notice .entry-content ul,
.legal-notice .entry-content ol,
.privacy-policy .entry-content ul,
.privacy-policy .entry-content ol,
.terms-of-use .entry-content ul,
.terms-of-use .entry-content ol {
  margin-left: 1.5rem;
}
.legal-notice .entry-content ol,
.privacy-policy .entry-content ol,
.terms-of-use .entry-content ol {
  list-style: none;
}
.legal-notice .entry-content ul li::marker,
.privacy-policy .entry-content ul li::marker,
.terms-of-use .entry-content ul li::marker {
  color: inherit;
}
.legal-notice .entry-content ol li,
.privacy-policy .entry-content ol li,
.terms-of-use .entry-content ol li {
  position: relative;
  list-style-type: none;
}
.legal-notice .entry-content ol li::before,
.privacy-policy .entry-content ol li::before,
.terms-of-use .entry-content ol li::before {
  position: absolute;
  right: calc(100% + 0.5rem);
  content: "(" counter(list-item) ")";
}
@media (min-width: 768px) {
  .legal-notice .entry-content h2:first-child,
  .privacy-policy .entry-content h2:first-child,
  .terms-of-use .entry-content h2:first-child {
    margin: 4.2rem 0 0;
  }
  .terms-of-use .entry-content p:first-child {
    margin-top: 4.2rem;
  }
}
@media (min-width: 992px) {
  .legal-notice .entry-content h2,
  .privacy-policy .entry-content h2,
  .terms-of-use .entry-content h2,
  .error-404 .page-content h2 {
    font-size: 1.25rem;
  }
  .error-404 .page-content h2 + p {
    font-size: 1rem;
  }
}

.wp-block-table.data-table td {
  height: 80px;
  border: 0;
  border-bottom: 1px solid #CCC;
  font-size: 0.875rem;
}
.wp-block-table.data-table td:first-child {
  width: 6em;
}
@media (min-width: 992px) {
  .wp-block-table.data-table td {
    font-size: 1rem;
  }
  .wp-block-table.data-table td:first-child {
    width: 200px;
  }
}

.entry-content .anchor-list {
  margin-left: 0;
}
.anchor-list li {
  display: inline-block;
}
.anchor-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 0.725rem;
  border: 1px solid #B90000;
  background: #FFF;
  color: #B90000;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
}
.anchor-list li a::after {
  display: block;
  width: 12px;
  height: 7px;
  margin-left: 0.25rem;
  background: url(../batterydirect/images/icon-arrow-red.svg) no-repeat center center / contain;
  content: '';
}
.guide .entry-content h2,
.legal-notice .entry-content h2,
.privacy-policy .entry-content h2,
.terms-of-use .entry-content h2 {
  padding-top: 1em;
}
.guide .entry-content h3,
.legal-notice .entry-content h3,
.privacy-policy .entry-content h3,
.terms-of-use .entry-content h3 {
  font-size: 1rem;
}
.guide .entry-content .wp-block-image {
  margin-top: 0;
  text-align: left;
}
@media (min-width: 992px) {
  .guide .entry-content h3,
  .legal-notice .entry-content h3,
  .privacy-policy .entry-content h3,
  .terms-of-use .entry-content h3 {
    font-size: 1.125rem;
  }
}

.fixed-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 12px var(--bs-gutter-x, 1.5rem) 24px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
  background: rgba(11, 0, 0, 0.9);
  font-size: 0.75rem;
}
.fixed-button span {
  color: #FFF;
}
.fixed-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92.3977%;
  max-width: 320px;
  background: #B90000;
  color: #FFF;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 0.667em 1.33em;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none !important;
}
.fixed-button a:hover {
  background: #E01818;
  color: #FFF;
}
@media (min-width: 768px) {
  .fixed-button {
    padding-top: 14px;
    padding-bottom: 20px;
    font-size: 0.8125rem;
  }
  .fixed-button a {
    max-width: 420px;
    font-size: 1.25rem;
  }
}