/* 2026-08 annotated design adjustments */
@media screen and (min-width: 1201px) {
  .container {
    width: 1120px;
  }

  #header_text .container,
  #header_menu_box .container,
  #header_under_text .container,
  #grobal_nav .container {
    width: 1336px;
  }

  #toppage .top-purpose-grid > div label h3,
  #toppage .top-occupation-grid > div label h3 {
    font-size: 19px;
  }

  #toppage .top-main-content > .col4:not(.top-purpose-grid):not(.top-occupation-grid) > div > a > span {
    font-size: 20px;
  }
}

.header-contact-menu .header-contact-mail {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100px;
  justify-content: flex-start;
}

.header-contact-mail-icon {
  align-items: center;
  background: #f4f6fb;
  border-radius: 50%;
  color: #0033a1;
  display: flex;
  font-size: 27px;
  height: 70px;
  justify-content: center;
  width: 70px;
}

.header-contact-mail-label {
  color: #111;
  display: block;
  font-size: 16px;
  font-weight: bold;
  line-height: 18px;
  margin-top: 12px;
  white-space: nowrap;
}

#grobal_nav {
  position: relative;
}

.mwm-nav-scroll-hint {
  align-items: center;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 55%);
  bottom: 1px;
  color: #0033a1;
  display: flex;
  font-size: 25px;
  justify-content: flex-end;
  padding-right: 7px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity .2s ease;
  width: 44px;
  z-index: 2;
}

.mwm-nav-scroll-hint.is-hidden {
  opacity: 0;
}

.mwm-banner-carousel,
.top-works-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.mwm-banner-carousel::-webkit-scrollbar,
.top-works-carousel::-webkit-scrollbar {
  display: none;
}

.mwm-banner-carousel {
  margin: 20px auto 10px;
  max-width: 1440px;
  padding: 0 12px;
}

.mwm-banner-carousel > a {
  flex: 0 0 calc((100% - 24px) / 3);
  scroll-snap-align: start;
}

.mwm-banner-carousel img,
.top-popular-grid img,
.top-wide-banner img {
  display: block;
  height: auto;
  width: 100%;
}

.top-popular-products {
  padding-top: 4px;
}

.top-popular-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px 0;
}

.top-search-row {
  display: block;
  margin: 0 auto 35px;
  max-width: 620px;
}

.top-search-label {
  margin: 0 auto 6px;
  max-width: 620px;
  text-align: center;
}

.top-search-row > div {
  margin: 0;
  width: 100%;
}

.top-search-form {
  align-items: stretch;
  display: flex;
  gap: 9px;
  width: 100%;
}

.top-search-form .search_icon {
  box-sizing: border-box;
  flex: 1 1 auto;
  height: 40px;
  min-width: 0;
  width: auto;
}

.top-search-form .button {
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 40px;
  margin: 0 !important;
}

.top-wide-banner {
  margin: 28px auto 48px;
  text-align: center;
  width: 100%;
}

.top-wide-banner img {
  margin: 0 auto;
  max-width: 100%;
}

.top-works-banner {
  margin-bottom: 26px;
}

.top-works-carousel {
  margin-bottom: 28px;
}

.top-works-carousel > div {
  flex: 0 0 calc((100% - 36px) / 4);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.top-works-carousel > div img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.top-works-carousel > div .date {
  background: rgba(219, 218, 240, .3);
  box-sizing: border-box;
  color: #111;
  display: block;
  font-size: 12px;
  height: 80px;
  line-height: 1.5em;
  padding: 12px;
  text-align: left;
}

#toppage #tokuten_body #tokuten_list > div {
  margin-right: 20px;
  width: calc((100% - 80px) / 5);
}

#toppage #tokuten_body #tokuten_list > div:nth-child(4n) {
  margin-right: 20px;
}

#toppage #tokuten_body #tokuten_list > div:nth-child(5n) {
  margin-right: 0;
}

.category-brand-grid > .cat_maker_banner {
  margin-right: 16px;
  width: calc((100% - 64px) / 5);
}

.category-brand-grid > .cat_maker_banner:nth-child(4n) {
  margin-right: 16px;
}

.category-brand-grid > .cat_maker_banner:nth-child(5n) {
  margin-right: 0;
}

.product-order-actions {
  clear: both;
  display: grid;
  float: none;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0 auto;
  width: 320px;
}

.item_detail .product-order-actions {
  width: 320px;
}

.col4_search .product-order-actions {
  float: none;
  width: 100%;
}

.product-order-action {
  align-items: center;
  border: 1px solid #0033a1;
  border-radius: 6px;
  box-sizing: border-box;
  display: flex;
  font-size: 16px;
  font-weight: bold;
  justify-content: center;
  line-height: 1.4;
  min-height: 46px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .2s ease, color .2s ease;
}

.product-order-action--plain {
  background: #fff;
  color: #0033a1 !important;
}

.product-order-action--custom {
  background: #0033a1;
  color: #fff !important;
}

.product-order-action--plain:hover {
  background: #eef2fa;
}

.product-order-action--custom:hover {
  background: #002778;
}

.product-order-action:focus-visible {
  outline: 3px solid rgba(255, 164, 28, .45);
  outline-offset: 2px;
}

.portfolio-category-tabs {
  border-bottom: 1px solid #d6dbe6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 34px;
  padding-bottom: 12px;
}

.portfolio-category-tabs a {
  background: #eef1f7;
  border: 1px solid #d6dbe6;
  color: #333;
  display: inline-block;
  font-weight: bold;
  padding: 9px 20px;
  text-decoration: none;
}

.portfolio-category-tabs a.is-active,
.portfolio-category-tabs a:hover {
  background: #0033a1;
  border-color: #0033a1;
  color: #fff;
}

.portfolio-category-label {
  background: #e6ebf6 !important;
  color: #0033a1 !important;
  display: inline-block !important;
  font-size: 11px !important;
  height: auto !important;
  line-height: 1 !important;
  margin: 4px 0;
  padding: 5px 8px !important;
  text-align: left !important;
}

#footer_5 .col5 > div img {
  display: block;
  height: auto;
  width: 100%;
}

#footer .footer_banner img {
  aspect-ratio: 3 / 1;
  object-fit: contain;
  width: 100%;
}

.mwm-page-top {
  align-items: center;
  background: #0033a1;
  border: 0;
  bottom: 24px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 48px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transition: opacity .2s ease;
  width: 48px;
  z-index: 1900;
}

.mwm-page-top.is-visible {
  opacity: .88;
  pointer-events: auto;
}

@media screen and (max-width: 1200px) {
  .mwm-banner-carousel {
    padding: 0 9px;
  }

  .mwm-banner-carousel > a {
    flex-basis: 82%;
  }

  .top-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-purpose-grid > div,
  .top-occupation-grid > div {
    margin-right: 6px;
    width: calc((100% - 12px) / 3);
  }

  .top-purpose-grid > div:nth-child(2n),
  .top-occupation-grid > div:nth-child(2n) {
    margin-right: 6px;
  }

  .top-purpose-grid > div:nth-child(3n),
  .top-occupation-grid > div:nth-child(3n) {
    margin-right: 0;
  }

  .top-purpose-grid > div label,
  .top-occupation-grid > div label {
    box-sizing: border-box;
    min-height: 45px;
    padding: 6px 3px;
  }

  .top-purpose-grid > div label h3,
  .top-occupation-grid > div label h3 {
    font-size: 11px;
    line-height: 1.25;
  }

  .top-works-carousel > div {
    flex-basis: 72%;
  }

  #toppage #tokuten_body #tokuten_list > div,
  #toppage #tokuten_body #tokuten_list > div:nth-child(4n),
  #toppage #tokuten_body #tokuten_list > div:nth-child(5n) {
    margin-right: 8px;
    width: calc((100% - 8px) / 2);
  }

  #toppage #tokuten_body #tokuten_list > div:nth-child(2n) {
    margin-right: 0;
  }

  .category-brand-grid > .cat_maker_banner,
  .category-brand-grid > .cat_maker_banner:nth-child(4n),
  .category-brand-grid > .cat_maker_banner:nth-child(5n) {
    margin-right: 6px;
    width: calc((100% - 12px) / 3);
  }

  .category-brand-grid > .cat_maker_banner:nth-child(3n) {
    margin-right: 0;
  }

  .item_detail .list_icon_widnow .top {
    align-items: flex-start;
    column-gap: 8px;
    margin-bottom: 10px;
    row-gap: 6px;
  }

  .item_detail .list_icon_widnow .top > img {
    flex: 0 0 auto;
    float: none !important;
  }

  .item_detail .list_icon_widnow .top > span {
    flex: 0 0 auto;
    margin-right: 0;
  }

  .product-order-actions {
    float: none;
    gap: 8px;
    margin: 10px 0 0;
    width: 100%;
  }

  .item_detail .product-order-actions {
    width: 100%;
  }

  .product-order-action {
    font-size: 14px;
    min-height: 44px;
    padding: 9px 6px;
  }

  .col4_search .product-order-actions,
  .col4_search .product-order-actions:nth-child(2n) {
    margin-right: 0;
    width: 100%;
  }

  #footer_5 .col5 {
    display: flex;
    gap: 4px;
  }

  #footer_5 .col5 > div,
  #footer_5 .col5 > div:nth-child(4n),
  #footer_5 .col5 > div:nth-child(5n) {
    margin: 0;
    width: calc((100% - 16px) / 5);
  }

  #footer_banner img {
    height: auto;
    max-width: 72%;
  }

  #footer_contact .read_text {
    text-align: center;
  }

  #footer_contact .read_text br {
    display: block;
  }

  #footer_contact #call_btn {
    width: 78%;
  }

  #footer .footer_banner,
  #footer .col4 .footer_banner:nth-child(7),
  #footer .col4 .footer_banner:nth-child(8) {
    box-sizing: border-box;
    margin: 0 2% 18px;
    padding: 0;
    width: 46%;
  }

  .mwm-page-top {
    bottom: 16px;
    height: 42px;
    right: 12px;
    width: 42px;
  }
}
