/* カスタマイズ用CSS */

/* ESC通知ブロック用スタイル */
.esc-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin: 20px;
  background-color: #fff;
}

.notice-item {
  margin-bottom: 20px;
}

.notice-item h3 {
  color: white;
  padding: 4px 8px;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 -1px 0;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.notice-item p {
  margin: 0;
  font-size: 16px;
  color: #525263;
}

.notice-item a:hover {
  opacity: .7;
}

/* 通知アイテムの色バリエーション */
.notice-item.notice-item-yellow h3 {
  background-color: #ffff00;
  color: #ff0000;
}

.notice-item.notice-item-red h3 {
  background-color: #ff0000;
  color: white;
}

.notice-item.notice-item-green h3 {
  background-color: #32cd32;
  color: white;
}

.notice-item.notice-item-black h3 {
  background-color: #000000;
  color: white;
}

.notice-item.notice-item-blue h3 {
  background-color: #0000ff;
  color: white;
}

.notice-item.notice-item-green2 h3 {
  background-color: #008000;
  color: white;
}

/* ============================================
   レイアウト関連のスタイル
   ============================================ */
@media only screen and (min-width: 768px) {
  .ec-layoutRole .ec-layoutRole__mainWithColumn {
      width: 82%;
  }
}
@media only screen and (min-width: 768px) {
  .ec-layoutRole .ec-layoutRole__mainBetweenColumn {
      width: 64%;
  }
}

@media only screen and (min-width: 768px) {
  .ec-layoutRole .ec-layoutRole__left, .ec-layoutRole .ec-layoutRole__right {
      display: block;
      width: 18%;
  }
}

.ec-layoutRole__contentTop {
    margin-bottom: 16px;
    border-top: solid 3px #f90;
    border-bottom: solid 1px #ccc;
    background-color: #fffaf0;
}

.ec-headerTitle .ec-headerTitle__title a {
    margin-bottom: 16px;
}

.right-content-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin: 0 auto;
}

.info-link {
  display: block;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  background-image: linear-gradient(#ffffff, #eeeeee);
  padding: 12px 24px 12px 8px;
  margin-bottom: 5px;
  position: relative;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.info-link.ttl {
  font-weight: bold;
}


.info-link::before {
  content: '';
  display: inline-block;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  border-radius: 50%;
  background-image: linear-gradient(#ffffff, #eeeeee);
  box-sizing: border-box;
}

.info-link::after {
  content: '';
  display: inline-block;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center center;
  width: 4px;
  height: 4px;
  border-top: 1px solid #999;
  border-right: 1px solid #999;
}

.info-link .title-black {
  background-color: #000;
  color: #fff;
  padding: 0 16px;
  display: inline-block;
}

.info-link .title-red-bg {
  background-color: #ff0000;
  color: #fff;
  padding: 0 16px;
  display: inline-block;
}

.info-link .text-red {
  color: #ff0000;
}

.info-link .text-green {
  color: #387d39;
}

.info-link .text-pink {
  color: #ff1493;
}

.info-link .text-orange {
  color: #ee7800;
}

.info-link .text-black {
  color: #000000;
}

.info-link .text-blue {
  color: #0000ff;
}

.info-link .title-green-bg {
  background-color: #548235;
  color: #fff;
  padding-left: 4px;
  padding-right: 16px;
  display: inline-block;
}

.info-link .title-pink-bg {
  background-color: #ff1493;
  color: #fff;
  padding: 0 16px;
  display: inline-block;
}

.info-link .title-orange-bg {
  background-color: #ee7800;
  color: #fff;
  padding-left: 4px;
  padding-right: 16px;
  display: inline-block;
}

.info-link .title-blue-bg {
  background-color: #0000ff;
  color: #fff;
  padding: 0 16px;
  display: inline-block;
}

.info-link .text-highlight {
  background-color: #20FEFF;
}

.info-link:hover span {
  text-decoration: underline;
  text-decoration-color: #ff0000;
}

/* Adjust padding for multi-line items */
.info-link.multi-line {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ============================================
   logo.twig のスタイル
   ============================================ */
.ec-headerRole.ec-headerRole-customize {
  max-width: 1150px;
  padding-left: 0;
  padding-right: 0;
}

.ec-headerRole-customize .ec-headerTitle .ec-headerTitle__title {
  text-align: left;
}

.ec-headerTitle img {
  max-width: 180px;
}

/* ============================================
   login.twig のスタイル
   ============================================ */
#page_mypage_login .ec-off2Grid .ec-off2Grid__cell {
  width: 100%;
  margin-left: 0;
}

#page_mypage_login .ec-grid2 {
  justify-content: center;
}

.ec-blockBtn--green {
    background: #48b44c;
    border: 1px solid #48b44c;
}

.ec-blockBtn--green:hover {
    background: #3d9a41;
    border: 1px solid #3d9a41;
    color: #fff;
}

/* ============================================
   calendar.twig のスタイル
   ============================================ */
@media screen and (min-width: 768px) {
    .ec-calendar {
      margin-left: -32px;
    }
}

.ec-role.calendar-wrapper {
    padding: 0;
}

.ec-role .calendar-title {
    padding: 4px 8px;
    border-top: 1px solid #FF9900;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    color: #f60;
    background-image: linear-gradient(#ffffff, #eeeeee);
    font-size: 140%;
    margin-bottom: 6px;
    margin-top: 0;
}

.ec-role .calendar-title-icon {
    font-size: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.ec-role .calendar-title-text {
    vertical-align: middle;
    font-size: 16px;
    font-weight: bold;
}

.ec-role .calendar-holiday-notice {
    font-size: 14px;
}

.ec-calendar__month th, .ec-calendar__month td {
    padding: 6px;
}

/* ============================================
   category_nav_customize.twig のスタイル
   ============================================ */
.category-block {
    border-top: 1px solid #FF9900;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #f8f8f8;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #ccc;
    background-image: linear-gradient(#ffffff, #eeeeee);
}

.category-header-icon {
    display: inline-block;
    width: 20px;
    height: 24px;
    background: #f0c242;
    position: relative;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.category-header-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 7px 7px 0;
    border-style: solid;
    border-color: #f0f0f0 white;
}

.category-header-icon::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    width: 12px;
    height: 1px;
    background: #fff;
    box-shadow: 0 4px 0 #fff, 0 8px 0 #fff;
}

.category-header-title {
    font-size: 16px;
    font-weight: bold;
    color: #f60;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    border-bottom: 1px solid #ddd;
}
.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    text-decoration: none;
    color: #337ab7;
    font-size: 14px;
    font-weight: 500;
}
.category-list a:hover {
    background-color: #eaf4ff;
}

.category-list-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #f0a040;
    margin-right: 8px;
    flex-shrink: 0;
    position: relative;
}

.category-list-icon::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid white;
}

.category-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.category-sub-list.active {
    display: block;
}

.category-sub-list li {
    border-bottom: 1px solid #e0e0e0;
}

.category-sub-list a {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 30px;
    text-decoration: none;
    color: #337ab7;
    font-size: 13px;
    font-weight: 400;
}

.category-sub-list a:hover {
    background-color: #eaf4ff;
}

.category-sub-icon {
    display: inline-block;
    width: 8px;
    height: 12px;
    margin-top: -10px;
    margin-right: 8px;
    border-left: 1px solid #337ab7;
    border-bottom: 1px solid #337ab7;
    border-top: 0;
    border-right: 0;
}

.category-sub-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.category-sub-sub-list.active {
    display: block;
}

.category-sub-sub-list li {
    border-bottom: 1px solid #e0e0e0;
}

.category-sub-sub-list a {
    display: flex;
    align-items: center;
    padding: 8px 10px 8px 50px;
    text-decoration: none;
    color: #337ab7;
    font-size: 12px;
    font-weight: 400;
}

.category-sub-sub-list a:hover {
    background-color: #eaf4ff;
}

.category-sub-sub-icon {
    display: inline-block;
    width: 6px;
    height: 10px;
    margin-top: -8px;
    margin-right: 8px;
    border-left: 1px solid #337ab7;
    border-bottom: 1px solid #337ab7;
    border-top: 0;
    border-right: 0;
}

.category-toggle {
    cursor: pointer;
    user-select: none;
}

.category-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 8px;
    border-style: solid;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    border-top: 8px solid #f00;
    border-bottom: 0;
    opacity: 0;
}

.category-toggle.expanded::after {
    opacity: 1;
}

.category-list a.onlink {
    color: #f00;
    font-weight: bold;
    text-decoration: underline;
}

.category-wrapper {
    margin: 20px 0;
}

/* ============================================
   news.twig のスタイル
   ============================================ */
.ec-newsRole {
    padding: 0;
}
.ec-newsRole__news {
    max-height: 400px;
    overflow-y: auto;
}

.ec-newsRole .news-title {
    padding: 8px;
    color: #f60;
    font-size: 100%;
    margin-bottom: 4px;
    margin-top: 0;
    background-image: linear-gradient(#FEF2DB, #F7E180);
    font-weight: bold;
    border-top: 1px solid #FF9900;
}

/* ============================================
   search_product_customize.twig のスタイル
   ============================================ */
.search-header {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    border-bottom: 1px solid #ccc;
    background-image: linear-gradient(#ffffff, #eeeeee);
}

.search-header-icon {
    display: inline-block;
    width: 20px;
    height: 24px;
    background: #f0c242;
    position: relative;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.search-header-icon::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 7px 7px 0;
    border-style: solid;
    border-color: #f0f0f0 white;
}

.search-header-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-sizing: border-box;
    box-shadow: 4px 4px 0 -1px #fff;
}

.search-header-title {
    font-size: 16px;
    font-weight: bold;
    color: #f60;
}

.search-select {
    width: 100%;
    margin: 4px 0;
    padding: 8px;
    padding-right: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    appearance: none;
}

.search-formlist dd {
    position: relative;
}

.search-formlist dd::after {
    content: '';
    position: absolute;
    right: 18px;
    bottom: 19px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #525263;
    pointer-events: none;
}

.search-form-content .search-formlist:first-child dd::after {
    display: none;
}

.hide {
    display: none;
}
.search-select.small {
    font-size: inherit;
}

.search-form-wrapper {
    border-top: 1px solid #FF9900;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    background: #f9f9f9;
}

.search-header-icon-text {
    font-size: 20px;
    margin-right: 8px;
}

.search-form-content {
    padding: 16px;
}

.search-formlist {
    margin-bottom: 20px;
}

.search-formlist dt {
    margin-bottom: 5px;
    font-weight: bold;
}

.search-formlist dt.margin-bottom-10 {
    margin-bottom: 10px;
}

.search-formlist dd {
    margin-bottom: 0;
}

.search-name-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    maxlength: 50;
}

.search-maker-select {
    max-width: 300px;
}

.search-button-wrapper {
    text-align: center;
}

.search-submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
}

/* ============================================
   footer.twig のスタイル
   ============================================ */
@media only screen and (min-width: 768px) {
  .ec-footerRole {
      padding-top: 20px;
      padding-bottom: 56px;
      background: inherit;
      border-top: solid 1px #ccc;
  }
}

/* ============================================
   商品一覧ページ
   ============================================ */
.product_page .product-list-title {
    padding: 8px;
    color: #f60;
    font-size: 140%;
    margin: 20px 20px 4px;
    background-image: linear-gradient(#FEF2DB, #F7E180);
    font-weight: bold;
}
.product_page .ec-searchnavRole {
  padding-left: 20px;
  padding-right: 20px;
}
.product_page .pagecond_area {
    border: 1px solid #ccc;
    background: #fff;
    padding: 8px 10px;
    margin-bottom: 10px;
    list-style: none;
}
.product_page .pagecond_area li {
    margin-bottom: 2px;
    font-size: 13px;
}
.product_page .pagecond_area li:last-child {
    margin-bottom: 0;
}
.product_page .ec-searchnavRole__infos--no-border {
    border-top: none;
    margin-bottom: 0;
}
.product_page .ec-searchnavRole .ec-searchnavRole__counter {
    font-size: 13px;
}
.product_page .lineridge {
    border-bottom: 2px ridge #ccc;
    margin: 0 20px;
}
.product_page .product-list-card {
    border: none;
    padding: 12px 16% 12px 0;
    margin: 0 20px;
    background: transparent;
    overflow: hidden;
}
.product_page .product-list-card .recommend {
    font-size: 12px;
    font-weight: bold;
    color: #ffa500;
    margin-bottom: 4px;
}
.product_page .product-list-card .model_number,
.product_page .product-list-card .jan_code {
    font-size: 15px;
}
.product_page .product-list-card .maker_name {
    font-size: 12px;
    font-weight: bold;
}
.product_page .product-list-card .product-name {
    font-weight: bold;
    font-size:  15px;
    color: #1E90FF;
    margin: 4px 0;
}
.product_page .product-list-card .listcomment {
    margin: 0 20px 0 10px;
    font-size: 11px;
}
.product_page .product-list-card .linesolid {
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

/* 価格エリア */
.product_page .product-list-card .pricebox {
    font-size: 11px;
}
.product_page .product-list-card .pricebox.sale_price {
    color: #f00;
    font-weight: bold;
    margin-top: 4px;
}
.product_page .product-list-card .space15 {
    margin-left: 15px;
}
.product_page .product-list-card .big {
    font-size: 14px;
}
.product_page .product-list-card .stock_count,
.product_page .product-list-card .product-meta {
    font-size: 12px;
}

.product_page .product-list-card .stock_count {
    color: #28851b;
}


/* ============================================
   商品一覧：表示件数・ソートセレクトに invalid スタイルを当てない
   ============================================ */
.ec-searchnavRole .disp-number.form-select,
.was-validated .ec-searchnavRole .disp-number.form-select:invalid,
.ec-searchnavRole .disp-number.form-select.is-invalid,
.ec-searchnavRole .order-by.form-select,
.was-validated .ec-searchnavRole .order-by.form-select:invalid,
.ec-searchnavRole .order-by.form-select.is-invalid {
  border-color: #ccc;
  background-color: #fff;
}
.was-validated .ec-searchnavRole .disp-number.form-select:invalid:focus,
.ec-searchnavRole .disp-number.form-select.is-invalid:focus,
.ec-searchnavRole .disp-number.form-select:focus,
.was-validated .ec-searchnavRole .order-by.form-select:invalid:focus,
.ec-searchnavRole .order-by.form-select.is-invalid:focus {
  border-color: #ccc;
  box-shadow: none;
}