@charset "UTF-8";

/* ヘッダー全体 */
.header {
  background-color: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}

/* ロゴ */
.logo {
  padding: 5px 0;
  max-width: 140px;
  margin-right: 16px;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
  max-width: 140px; /* 追加推奨：親のmax-widthと揃える */
  object-fit: contain; /* 念のため追加、余白が出る場合はcover→containに */
  transition: filter 0.2s;
}
.logo:hover img {
  filter: brightness(1.1) drop-shadow(0 0 3px #f08804);
  border-radius: 8px;
}

/* 検索バー */
.search-bar {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 18px;
}
.search-bar form {
  display: flex;
  width: 340px;
  max-width: 80vw;
  background: #222;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid #f08804;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.search-input {
  flex: 1;
  padding: 9px 16px;
  border: none;
  outline: none;
  font-size: 1em;
  background: #222;
  color: #fff;
  border-radius: 24px 0 0 24px;
}
.search-input::placeholder {
  color: #bbb;
  opacity: 1;
}
.search-btn {
  background: #f08804;
  color: #fff;
  border: none;
  padding: 0 18px;
  border-radius: 0 24px 24px 0;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.search-btn:hover {
  background: #ffb300;
}

/* 会員・カートエリア */
.member-cart-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ドロップダウンメニュー */
.member {
  margin-right: 10px;
}
.dropdown {
  position: relative;
  display: inline-block;
}
.dropbtn {
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  font-size: 1em;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s;
}
.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.17);
  z-index: 100;
  border-radius: 8px;
  padding: 10px 0;
}
.dropdown-content a {
  color: #222;
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 1em;
  transition: background 0.13s;
}
.dropdown-content a:hover {
  background-color: #f5f5f5;
}
.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown:hover .dropbtn {
  background: #222;
}

/* カート */
.cart {
  margin-left: 8px;
  position: relative;
}
.cart-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  position: relative;
}
.cart-count {
  position: absolute;
  top: -7px;
  left: 0px;
  border-radius: 50%;
  background-color:none;
  color: #f08804;
  font-weight: bold;
  font-size: 13px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  /* border: 2px solid #f08804; */
  box-shadow: 0 1px 4px rgba(255,152,4,0.13);
  z-index: 2;
}
.cart-icon {
  margin-right: 6px;
  width: 24px;
  height: 24px;
}
.text-cart {
  font-weight: bold;
  margin-left: 2px;
}

/* スマホ対応 */
@media (max-width: 700px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 8px 2vw;
    gap: 6px;
  }
  .logo {
    margin: 0 auto 4px auto;
  }
  .search-bar form {
    width: 98vw;
    min-width: 0;
  }
  .member-cart-area {
    justify-content: flex-end;
    gap: 8px;
  }
  .cart-count {
    left: 0px;
    top: -5px;
    font-size: 11px;
    width: 18px;
    height: 18px;
    line-height: 18px;
  }
}
