@charset "UTF-8";

.slick-slide img {
  width: 1000px;
  height: 300px;
  object-fit: cover;
}

.brand-image-list {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    
    .brand-image-list-item-a {
        flex: 1 1 0;
        min-width: 0;
        display: block;
    }
    
    .brand-image-list-item-img {
        display: block;
        width: 100%;
        height: auto;
        transition: transform .6s ease;
    }
    
    .brand-image-list-item-img:hover {
      transform: scale(1.1);
    }
}
    
.block-top-topic {
    .block-top-topic--next-page a {
        display: inline-block;
        padding: 0;
        border-radius: 0;
        background-color: transparent;
        text-decoration: none;
        font-size: 12px;
        font-weight: bold;
        color: #1B7C2D;
    }
    
    .block-top-topic--next-page a::after {
        content: "→";
        margin-left: 4px;
        display: inline-block;
        transition: transform 0.2s ease;
    }
    
    .block-top-topic--next-page a:hover::after {
        transform: translateX(4px);
    }
}

#block_of_topic {
    padding: 40px 0 20px;

    .block-top-topic--next-page {
        position: relative;
        top: -4px;
        margin: 0 0 0 20px;
        display: inline-block;
    }
    
    .block-top-topic--items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .block-top-topic--items > li {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 320px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 16px;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }
    
    .block-top-topic--items > li:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    .block-top-topic--items li:nth-child(2n) {
        margin-left: 0;
    }
    
    .block-top-topic--icon {
        position: absolute;
        top: 16px;
        left: 96px;
        width: 60px;
    }
}

#block_of_event{
    .block-thumbnail-h {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .eventwrap {
        position: relative;
        border-top: none;
        padding: 40px 0px 20px;
    }
}

.search-block {
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;

    /* .search-block--title {
        font-size: 1.4em;
        font-weight: bold;
        margin-bottom: 16px;
    } */
    
    .search-block--items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .search-block--item {
        box-sizing: border-box;
        width: 320px;
        height: 150px;
    }
    
    .search-block--item a::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        z-index: 1;
        pointer-events: none; /* マスクがクリックを邪魔しないように */
    }
    
    .search-block--item a {
        position: relative;
        display: block;
        border-radius: 8px;
        overflow: hidden;
        isolation: isolate;
    }
    
    .search-block--item img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative;
        z-index: 0;
        transition: transform 0.3s ease;
    }
    
    .search-block--item a:hover img {
        transform: scale(1.05);
    }
    
    .search-block--label {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 12px 16px;
        color: #fff;
        font-weight: bold;
        font-size: 2em;
        box-sizing: border-box;
        z-index: 2;
    }
}

.block-top-free2--body {
    li:nth-child(4n+2),
    li:nth-child(4n+3),
    li:nth-child(4n+4) {
        margin-left: 0;
    }
    
    ul {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    ul > li {
        box-sizing: border-box;
    }
    
    ul > li > a {
        display: flex;
        flex-direction: column;
        height: 100%;
        color: inherit;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        background-color: #fff;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }
    
    ul > li > a:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-2px);
    }
    
    ul > li figure {
        margin: 0;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    
    ul > li figure img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    ul > li > a > div {
        padding: 12px;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    
    ul > li p {
        margin: 0;
        font-size: 0.9em;
        line-height: 1.5;
    }
    
    ul > li .feature-item-title {
        margin-top: auto;
        font-size: 0.85em;
        font-weight: bold;
        color: #666;
    }
}

#calendar {
    margin: 0;
    border: 1px solid #eee;
    max-height: none;
}

.pane-left-menu {
     #block_of_categorytree {
         .block-category-tree--items{
            .block-category-tree--item>a {
                border-left: 4px solid #eee;
            }
            
            .block-category-tree--item__open>a {
                color: #1B7C2D;
                background: #f6f6f6;
                border-left: 4px solid #1B7C2D;
            }
            
            .block-category-tree--item>a,
            .block-category-tree--item__open>a {
                padding-left: 9px;
            }

            .block-category-tree--level-2>li,
            .block-category-tree--level-3>li,
            .block-category-tree--level-4>li {
                margin-left: 10px;
                text-indent: 0;
            }
        }
    }
    
    #block_of_genretree {
        .block-genre-tree--items{
            .block-genre-tree--item>a {
                border-left: 4px solid #eee;
            }
            
            .block-genre-tree--item__open>a {
                color: #1B7C2D;
                background: #f6f6f6;
                border-left: 4px solid #1B7C2D;
            }
            
            .block-genre-tree--item>a,
            .block-genre-tree--item__open>a {
                padding-left: 9px;
            }
            
            .block-genre-tree--level-2>li,
            .block-genre-tree--level-3>li,
            .block-genre-tree--level-4>li {
                margin-left: 10px;
                text-indent: 0;
            }
        }
    }
}

.page-category .block-top-topic--items {
    height: 160px;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.block-category-list--topic {
    position: relative;
    margin-top: 20px;

    .block-top-topic--header {
        margin: 0 0 10px;
    }
    
    .block-top-topic--next-page {
        position: absolute;
        top: 1px;
        left: 50px;
    }
    
    .block-top-topic--next-page a {
        display: inline-block;
        padding: 0;
        border-radius: 0;
        background-color: transparent;
        text-decoration: none;
        font-size: 12px;
        font-weight: bold;
        color: #1B7C2D;
    }
    
    .block-top-topic--next-page a::after {
        content: "→";
        margin-left: 4px;
        display: inline-block;
        transition: transform 0.2s ease;
    }
    
    .block-top-topic--next-page a:hover::after {
        transform: translateX(4px);
    }
}

.block-top-topic--header,
.top-feature-title h2,
.block-top-event--header,
.top-showroom-title,
.search-block--title {
    display: inline-block;
    border-top: none;
    text-align: left;
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 16px;
}

@keyframes nibble {
  0%   { transform: rotate(0deg) translate(0, 0); }
  20%  { transform: rotate(-8deg) translate(-2px, 2px); }
  40%  { transform: rotate(6deg) translate(2px, -1px); }
  60%  { transform: rotate(-5deg) translate(-1px, 2px); }
  80%  { transform: rotate(4deg) translate(1px, -1px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

@keyframes a-nibble {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-4px); }
  40%  { transform: translateY(2px); }
  60%  { transform: translateY(-3px); }
  80%  { transform: translateY(1px); }
  100% { transform: translateY(0); }
}

@keyframes spin-bounce {
  0%   { transform: rotate(0deg); }
  45%  { transform: rotate(30deg); }
  70%  { transform: rotate(-10deg); }
  88%  { transform: rotate(6deg); }
  100% { transform: rotate(0deg); }
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 80px;
  height: 80px;
  background: #fff;
  border: 2px solid #2d7a3a;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 4px 16px rgba(45, 122, 58, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.2s;
  z-index: 100;

  &.visible {
    opacity: 1;
    transform: translateY(0);
  }

  &:hover {
    /* box-shadow: 0 6px 24px rgba(45, 122, 58, 0.28); */
    background: #f0f7ec;
  }

  &:active {
    transform: scale(0.95);
  }

  & .btn-icon {
    width: 44px;
    height: auto;
    display: block;

    &.spinning {
      animation: spin-bounce 0.65s ease-out forwards !important;
    }
  }

  &.visible:hover .btn-icon,
  &:hover .btn-icon {
    animation: nibble 0.5s ease-in-out infinite;
  }

  & .btn-label {
    font-size: 10px;
    color: #2d7a3a;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    padding-top: 4px;
  }
}

.block-topic-details{
    .block-topic-details--header {
        margin-top: 40px;
    }
    
    .block-topic-details--header-rss .block-icon-image--rss-square {
        background-image: url('/img/usr/mercart/topic/icon_rss.png');
        background-size: contain;
        background-repeat: no-repeat;
        object-fit: cover;
        width: 20px;
        padding-top: 30px;
        overflow: visual;
        background-position: 50% 50%;
        border-radius: 0;
        background-color: transparent;
    }

    .block-topic-details--pager-top {
        margin: 0
    }
}

/* ヘッダーカテゴリ階層 */
.js-dynamic-category .block-dynamic-category--row img {
  display: none;
}

.block-globalnav-menu.is-open .inner {
  max-height: calc(100vh - 80px); 
  overflow-y: auto;
  overscroll-behavior: contain;
}

.category-menu {
  display: flex;
  margin: 0 auto;
}

.category-column {
  margin: 0 30px;
}

.category-column .category-block__header {
  margin-bottom: 15px
}

.block-dynamic-category--row {
  font-weight: normal;
}

.block-globalnav-menu .block-dynamic-category--body,
.block-globalnav-menu .block-dynamic-genre--body {
  flex-direction: column;
}

.block-globalnav-menu .block-dynamic-category--body li,
.block-globalnav-menu .block-dynamic-genre--body li {
  width: 100%;
  font-size: 12px;
  margin-bottom: 5px;
  padding-left: 14px;
}

.block-globalnav-menu .block-dynamic-category--body li a,
.block-globalnav-menu .block-dynamic-genre--body li a {
  padding-left: 10px;
  margin-bottom: 5px;
}

.block-globalnav-menu .block-dynamic-category--body li a:before,
.block-globalnav-menu .block-dynamic-genre--body li a:before {
  left: -5px;
  margin-top: -2px;
  transform: rotate(125deg);
}

.block-globalnav-menu-main ul .block-dynamic-category--body{
  padding-left: 0px;
}

.category-block__header a::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
  margin-right: 15px;
  margin-left: 1px;
}

/* 一覧ページ並べ替え */
.block-goods-list--sort-order-select {
  float: left;
  display: flex; 
  align-items: center;
  margin: 15px 0 0px 0;
}

/* フッターカテゴリ階層 */
#footer-category {
  background: #F6F6F6;
  padding-bottom: 50px;
}

.footer-category-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.footer-links {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-links-group__title {
  font-size: 14px;
  font-weight: bold;
  color: #333;
  margin: 0 0 14px;
}

.footer-links-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links-group li a {
  display: block;
  position: relative;
  padding: 4px 0 4px 14px;
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.footer-links-group li a:hover {
  color: #2f7d3c;
  text-decoration: underline;
}

.footer-links-group li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  margin-top: -3px;
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 5px solid #999;
}

.footer-category-menu {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex: 1 1 0;
  min-width: 0;
}

.footer-category-column {
  flex: 1 1 0;
  min-width: 0;
}

.footer-category-block {
  margin-bottom: 20px;
}

.footer-category-block__header {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  margin: 0 0 14px;
}

.footer-category-block__header a {
  display: inline-flex;
  align-items: center;
  color: #333;
  text-decoration: none;
}

.footer-category-block__header a:hover {
  color: #2f7d3c;
}

.footer-category-block__header a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(45deg);
  margin-right: 14px;
  margin-left: -12px;
}

.block-dynamic-category--body {
  list-style: none;
  margin: 0;
  padding: 0;
}

.block-dynamic-category--row a {
  display: flex;
  align-items: flex-start;
  font-size: 13px;
  color: #555;
  text-decoration: none;
  padding: 3px 0;
}

.block-dynamic-category--row a:hover {
  color: #2f7d3c;
  text-decoration: underline;
}

.block-dynamic-category--row a::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #999;
  margin-right: 8px;
  margin-top: 5px;
  flex-shrink: 0;
}

#footer-top {
  padding: 30px 0 30px 0;
}

#footer-top-pagetop {
  display: none;
}

#footer-nav {
    padding: 40px 0;
}

#footer-nav .container {
    justify-content: center;
}

#footer-nav #footer-nav-ectop p {
  font-size: 12px;
}

.footer-category-menu {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
}

.footer-category-menu::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #7b7b7b;
}

/* 一覧画面のイベントデザイン */
.block-category-list--event {
  max-width: 1200px;
  margin: 0 0 40px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
}

.block-top-event--header-row {
    display: flex;
    align-items: center;
    
    .block-top-event--more {
        display: inline-block;
        padding: 0;
        margin: 0 0 16px 10px;
        border-radius: 0;
        background-color: transparent;
        text-decoration: none;
        font-size: 12px;
        font-weight: bold;
        color: #1B7C2D;
    }
    
    .block-top-event--more .block-top-event--more-arrow {
        display: inline-block;
        transition: transform 0.2s ease;
    }
    
    .block-top-event--more:hover .block-top-event--more-arrow {
        transform: translateX(4px);
    }
}

.block-pickup-list-p--add-cart .block-list-add-cart-btn {
  border-radius: 5px;
}

.block-pickup-list-p--item-body {
    margin-bottom: 0px;
}

.block-category-style-t {
  margin: 0px 0 30px 0;
}