@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body#ocean header.header {
  background-color: #F6F6F6;
  padding: 8px;
  font-family: 'Inter', sans-serif !important;
}

body#ocean header.header .header__inner {
  position: relative;
  display: block;
  padding-top: 17px;
  border: 2px solid #E8E8E8;
  border-radius: 16px;
  box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
}

.header__inner--has-cust-image {
  background: linear-gradient(to right, transparent 76%, #E5EDF6 86%), #ffffff;
}

body#ocean header.header .header__inner .header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 14px;
  margin-bottom: 14px;
  font-size: inherit;
  font-weight: inherit;
  gap: 10px;
}

.header__top-left {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 30px;
}

body#ocean header .header__top .header__logo--pc {
  max-width: 137px;
  width: 100%;
}

.header__logo--pc,
.header__cart-icon {
  display: block;
}

.header__logo--sp {
  width: 100px;
}

.header__logo-link--sp,
.header__nav-item--hide-pc,
.search-suggest ul:empty {
  display: none;
}

.header__username {
  font-weight: 400;
  font-size: 14px;
  color: #393939;
  line-height: 17px;
}

.header__back {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
  cursor: pointer;
}

.header__back-label {
  font-weight: 400;
  font-size: 14px;
  color: #6A6A6A;
  line-height: 17px;
}

body#ocean header.header .header__inner .header__bottom {
  max-width: 100%;
  min-width: unset;
  margin: 0;
  display: grid;
  align-items: end;
  grid-template-columns: 1fr;
  padding-right: 22px;
}

body#ocean header.header .header__inner .header__bottom--has-cust-image {
  grid-template-columns: minmax(0, 1fr) clamp(80px, 14vw, 202px);
  gap: clamp(24px, 4.5vw, 65px);
  padding-right: 0;
}

.header__search-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 17px;
}

.header__form {
  width: 100%;
}

.header__form-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  gap: clamp(20px, 3vw, 40px);
}

.header__form-left {
  flex: 1;
  min-width: 0;
}

.header__search-bar {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 300px;
  background-color: #eef4fa;
  border: 1px solid #dbe4ec;
  border-radius: 8px;
}

.header__category {
  position: relative;
  max-width: 176px;
  width: 100%;
  margin-left: 12px;
  flex-shrink: 0;
}

.header__category-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  padding: 8px 12px;
  background-color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #393939;
  line-height: 17px;
  white-space: nowrap;
}

.header__category-trigger:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.header__category-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.header__category-arrow {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: #393939;
}

.header__category-arrow--open {
  transform: rotate(180deg);
}

.header__category-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 100;
  min-width: 200px;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  list-style: none;
  margin: 0;
}

.header__category-option {
  padding: 8px 16px;
  font-size: 14px;
  color: #393939;
  cursor: pointer;
}

.header__category-option:hover {
  background-color: #f5f7fa;
}

.header__category-option--active {
  color: #409eff;
  font-weight: 600;
  background-color: #f0f7ff;
}

.header__keyword-box {
  flex: 1;
  position: relative;
}

.header__keyword-input {
  width: 100%;
  height: 50px;
  padding: 0 10px 0 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #626262;
  outline: none;
}

.header__keyword-input::placeholder {
  color: #626262;
  font-size: 14px;
}

.header__suggest-box {
  width: 100%;
}

.header__search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 50px;
  background-color: #393939;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0px -1px 0 0 #393939, 1px 0 0 0 #393939, 0 1px 0 0 #393939;
}

.header__search-icon-sp {
  display: none;
  width: 16px;
  height: 16px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  max-width: 276px;
  min-width: 212px;
}

.header__nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}

.header__nav-label {
  font-size: 12px;
  font-weight: 700;
  color: #393939;
  line-height: 17px;
}

.header__cart-badge {
  position: relative;
  display: inline-block;
}

.header__cart-count {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: -6px;
  right: -8px;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 11px;
  background-color: #EF3434;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  line-height: 14px;
  text-align: center;
}

.header__hamburger {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.header__cust-image {
  object-fit: cover;
}

.header__cust-image-img {
  width: 100%;
  border-radius: 0 16px 0 0;
}

body#ocean header.header .header__drawer-overlay {
  display: none;
  position: fixed;
  margin-top: 0;
  inset: 0;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.5);
}

body#ocean header.header .header__drawer {
  position: fixed;
  display: none;
  top: 8px;
  left: unset;
  right: 5px;
  height: auto;
  z-index: 2002;
  width: 56.67%;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.25);
  padding: 8px 20px 25px;
  transform: translateX(110%);
  transition: transform 0.3s ease;
}

body#ocean header.header .header__drawer.header__drawer--open {
  transform: translateX(0);
}

.header__drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 12px;
}

.header__drawer-username {
  font-weight: 400;
  font-size: 12px;
  color: #393939;
}

.header__drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.header__drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 17px;
  color: #393939;
}

.header__drawer-item {
  margin-bottom: 32px;
}

.header__drawer-item--bold {
  font-weight: 700;
}

.header__drawer-item--guide {
  margin-bottom: 37px;
}

.header__drawer-item--cart {
  margin-bottom: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__drawer-cart-link {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: inherit;
}

.header__drawer-cart-icon {
  width: 16px;
  height: 17px;
}

.header__drawer-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  border-radius: 4px;
  background-color: #767676;
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  padding: 0 2px;
}

.header__drawer-back {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #6A6A6A;
  cursor: pointer;
}

.header__search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2001;
}

.header__search-overlay--open {
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.header__search-dialog {
  display: none;
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 2002;
  min-height: 93px;
  background: #ffffff;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.header__search-dialog--open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header__search-dialog-header {
  display: flex;
  justify-content: flex-end;
  padding: 7px;
}

.header__search-dialog-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__search-dialog-input-wrap {
  display: flex;
  align-items: center;
  background-color: #EEF4FA;
  border: 1px solid #DBE4EC;
  border-radius: 8px;
  margin: 0 5px 7px;
  padding: 0 15px;
}

.header__search-dialog-icon {
  margin-right: 16px;
  flex-shrink: 0;
}

.header__search-dialog-input {
  flex: 1;
  height: 50px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #626262;
  outline: none;
}

.header__search-dialog-input::placeholder {
  color: #626262;
}

.search-suggest,
.history-suggest {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  max-height: 663px;
  overflow-y: scroll;
  border-radius: 0 0 16px 16px;
  padding: 20px 0;
  background-color: #fff;
  font-size: 0.85rem;
  flex-direction: column;
  border: 2px solid #E8E8E8;
  z-index: 20;
}

.search-suggest .on,
.history-suggest .on {
  display: flex;
}

.search-suggest ul,
.history-suggest ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggest ul li a,
.history-suggest ul li a {
  display: block;
  text-decoration: none;
  padding: 2px 20px;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  color: #393939;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggest ul li a:hover,
.history-suggest ul li a:hover {
  color: #393939;
  background-color: #EDEDED;
}

.search-suggest ul:not(.keyword) li,
.history-suggest ul:not(.keyword) li {
  padding: 3px 0;
}

.history-suggest h2 {
  color: #888;
  font-size: 1rem;
  padding: 10px 20px 0;
  margin: 0;
}

.search-suggest ul:not(:first-child) {
  padding-top: 15px;
}

.search-suggest ul:not(:last-child) {
  padding-bottom: 14px;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
}

.search-suggest ul.model-number li a::before,
.search-suggest ul.item-number li a::before,
.search-suggest ul.product-name li a::before,
.search-suggest ul.category li a::before,
.search-suggest ul.maker li a::before,
.search-suggest ul.tag li a::before {
  display: inline-block;
  margin-right: 14px;
  color: #fff;
  font-size: 13px;
  padding: 2px 0;
  width: 88px;
  text-align: center;
  font-weight: 700;
  border-radius: 3px;
}

.search-suggest ul.model-number li a::before {
  content: "型番";
  background-color: #338995;
}

.search-suggest ul.item-number li a::before {
  content: "品番";
  background-color: #931d28;
}

.search-suggest ul.product-name li a::before {
  content: "商品名";
  background-color: #316EF6;
}

.search-suggest ul.category li a::before {
  content: "カテゴリー";
  background-color: #aaa130;
}

.search-suggest ul.maker li a::before {
  content: "メーカー";
  background-color: #c74691;
}

.search-suggest ul.tag li a::before {
  content: "タグ";
  background-color: #46c793;
}

.badge-search.product {
  background: rgba(234, 74, 125, 0.15);
  color: rgba(234, 74, 125, 1);
  border: 1px solid rgba(234, 74, 125, 1);
}

.badge-search.category {
  background: rgba(219, 147, 54, 0.15);
  color: rgba(219, 147, 54, 1);
  border: 1px solid rgba(219, 147, 54, 1);
}

.badge-search.maker {
  background: rgba(79, 129, 189, 0.15);
  color: rgba(79, 129, 189, 1);
  border: 1px solid rgba(79, 129, 189, 1);
}

body#ocean footer#footer {
  position: relative;
  width: 100%;
  overflow: unset;
  border-top: unset;
  padding: 25px 38px;
  background-color: #656565;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  line-height: 17px;
  font-family: 'Inter', sans-serif !important;
}

#footer .footer__nav {
  display: flex;
  margin: 0 0 15px;
  padding-left: 0;
  list-style: none;
  gap: 10px;
}

#footer .footer__nav li {
  padding-right: 10px;
  border-right: 1px solid #fff;
}

#footer .footer__nav li a {
  text-decoration: none;
  color: #fff;
}

#footer .footer__copy {
  margin: 0;
}

#footer .footer__page-top {
  position: absolute;
  right: 0;
  top: -36px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  width: 119px;
  height: 36px;
  background-color: #393939;
  gap: 6px;
}

@media only screen and (max-width: 768px) {
  body#ocean header.header {
    padding: 7px 4px 2px 4px;
  }

  body#ocean header.header .header__inner {
    padding-top: 5px;
    border-radius: 8px;
  }

  body#ocean header.header .header__inner .header__top {
    padding: 0 6px 4px;
    margin-bottom: 6px;
    border-bottom: 1px solid #E8E8E8;
  }

  .header__top-left {
    display: unset;
  }

  .header__username {
    font-size: 12px;
    line-height: 15px;
    padding-right: 126px;
  }

  .header__logo--pc,
  .header__back,
  .header__nav-item--hide-sp,
  .header__nav-label--hide-sp,
  .header__search-bar {
    display: none;
  }

  body#ocean header.header .header__inner .header__bottom {
    padding-right: 0;
  }

  body#ocean header.header .header__inner .header__bottom--has-cust-image {
    grid-template-columns: 1fr;
  }

  .header__search-wrap {
    padding: 0 10px 7px 8px;
  }

  .header__form-inner {
    gap: 14px;
    padding-left: 0;
    justify-content: end;
  }

  .header__form-left {
    line-height: 23px;
    flex: none;
  }

  .header__nav {
    gap: 20px;
    min-width: unset;
    max-width: unset;
  }

  .header__nav-item--hide-pc {
    display: flex;
    align-items: center;
  }

  .header__cart-icon {
    height: 23px;
    width: auto;
  }

  .header__cust-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 126px;
  }

  .header__cust-image-img {
    max-height: 24px;
    border-radius: 0 8px 0 0;
  }

  .header__search-icon-sp {
    display: flex;
    align-items: center;
  }

  .header__logo-link--sp,
  .header__search-dialog,
  .header__search-overlay--open,
  body#ocean header.header .header__drawer-overlay--open {
    display: block;
  }

  .header__logo-link--sp {
    width: 100%;
  }

  body#ocean header .header__logo--sp {
    max-width: 100px;
    width: 100%;
  }

  .search-suggest {
    padding: 0;
    max-height: unset;
    height: calc(100vh - 167px);
    border: unset;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: unset;
  }

  .search-suggest ul li {
    display: flex;
    flex-direction: column;
    padding: 10px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    gap: 4px;
  }

  .search-suggest ul li a,
  .search-suggest ul li span {
    padding: 0;
    margin: 0;
    color: #393939;
    line-height: 17px;
  }

  .search-suggest ul li .search-suggest-item-title-common {
    padding: 4px 0;
    display: inline-block;
    width: 70px;
    color: #fff;
    font-size: 12px;
    text-align: center;
    line-height: 15px;
    border-radius: 3px;
  }

  .search-suggest ul li .search-suggest-category-item-title {
    background: #aaa130;
  }

  .search-suggest ul li .search-suggest-maker-item-title {
    background: #c74691;
  }

  .search-suggest ul li .search-suggest-productno-item-title {
    background: #931D28;
  }

  .search-suggest ul li .search-suggest-modelno-item-title {
    background: #338995;
  }

  .search-suggest ul li .search-suggest-productname-item-title {
    background: #316EF6;
  }

  .search-suggest ul li .search-suggest-tag-item-title {
    background: #46C793;
  }

  body#ocean header.header .header__drawer.header__drawer--open {
    display: block;
  }

  body#ocean footer#footer {
    padding: 25px 20px;
  }

  body#ocean footer#footer .footer__nav {
    flex-direction: column;
    text-align: left;
    margin-bottom: 25px;
    gap: 8px;
  }

  #footer .footer__nav li {
    border-right: none;
  }

  #footer .footer__copy {
    font-size: 10px;
    line-height: 12px;
  }
}