/**
*Theme Name: DesignGoodsHouse
*/

* {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  box-sizing: border-box;
  font-size: 16px;
}

input {
  border: solid 1px black;
}

a {
  text-decoration: none;
}

ins {
  text-decoration: none;
}

/* アイテムのホバー時の挙動 */
.List_of_seller ul li, .products li {
  transition: opacity 0.3s ease-in-out;
}

.List_of_seller ul li:hover, .products li:hover {
  opacity: 0.6;
}

.single_add_to_cart_button, .add_to_cart_button {
  transition: opacity 0.3s ease-in-out;
}

.single_add_to_cart_button:hover, .add_to_cart_button:hover {
  opacity: 0.6;
  color: #333;
}


/*top*/
header {
  width: 100%;
  height: 75px;
  background-color: rgb(211, 211, 211);
  position: relative;
}

.main-container {
  max-width: 1280px;
  margin: 0 auto;
}

.page-title {
  width: 30%;
  margin-left: 10%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);

}

.main_nav {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

#menu {
  display: flex;
}

#menu li {
  margin: 0 10px;
}

.List_of_seller {
  margin: 20px auto;
  width: 75%;
}

.List_of_seller ul {
  display: flex;
  overflow-x: auto;
}

.List_of_seller ul li {
  background-color: rgb(233, 233, 233);
  margin: 5px;
  border-radius: 5px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

.List_of_seller ul li p {
  text-align: center;
  margin: 5px auto;
}

.user_icon {
  height: 150px;
  width: 150px;
  object-fit: cover;
  border-radius: 50%;
  padding: 10px 5px 5px;
}

.products_container>h2 {
  width: 75%;
  margin: 30px auto 10px;

}

.products_sort {
  width: 75%;
  margin: 5px auto;
}

.orderby {
  width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f0f0f0;
  color: #333;
  font-size: 0.8rem;
}

.woocommerce-ordering {
  width: 200px;
  position: relative;
}

.woocommerce-ordering::after {
  content: '\25BC';
  position: absolute;
  transform: translateY(30%);
  right: 10%;
  pointer-events: none;
  font-size: 1.2rem;
}

option {
  background-color: #fff;
  color: #333;
}

select:hover, select:focus {
  border-color: #007bff;
}


.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: auto;
  max-width: 1000px;
}

.products .product {
  flex: 1;
  max-width: calc(33.33% - 10px);
  border: solid 1px black;
  border-radius: 5px;
  margin: 10px;
  padding: 5px;
  max-width: 310px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
}

/* ユーザープロフィールページ */
.user_page_contents_area {
  max-width: 1280px;
  margin: auto;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2), -5px 0 10px rgba(0, 0, 0, 0.2);
}

.user_page_header {
  height: 300px;
  margin: auto;
}

.user_page_header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user_page_icon {
  transform: translateY(-50%);
  margin-left: 20px;
  display: inline-block;
}

.user_page_icon img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: solid 3px white;
}

.user_page_name {
  width: 95%;
  margin: -100px auto 20px auto;
}

.user_page_profile {
  width: 95%;
  margin: 0 auto 20px;
}

.user_page_contents_area>p {
  min-height: 100px;
  padding: 5px;
}

/* 商品詳細ページ */
.single_product {
  width: 90%;
  margin: 0 auto;
}

.single_product .product {
  margin-top: 20px;
}

.single_product_item {
  display: flex;
  flex-wrap: wrap;
}

.single_product_item .onsale {
  width: 100%;
  font-size: 1.5rem;
  padding-left: 10%;
}

.single_product .product .woocommerce-product-gallery {
  width: 50%;
}

.woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:not(:first-child) {
  display: inline-block;
  margin-left: 2px;
}

.single_product .product .entry-summary {
  width: 50%;
  padding: 10px 0 0 20px;
}

.quantity .qty {
  width: 50px;
}

.wc-tabs-wrapper {
  border: solid 1px #ddd;
  border-radius: 5px;
}

.wc-tabs a {
  display: block;
  color: rgb(0, 0, 0);
}

/* タブ全体のスタイル */
.woocommerce-tabs.wc-tabs-wrapper {
  border-top: 2px solid #ddd;
  /* タブ上部に線を追加 */
  margin-top: 20px;
  /* 適切なマージンを設定 */
}

/* タブのリストのスタイル */
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  border-bottom: 2px solid #ddd;
  /* タブの下に線を追加 */
}

/* タブのリストアイテムのスタイル */
.woocommerce-tabs ul.tabs li {
  flex: 1;
  text-align: center;
  cursor: pointer;
  border-right: 2px solid #ddd;
  /* タブ間に線を追加 */
}

/* 最後のタブの右ボーダーを削除 */
.woocommerce-tabs ul.tabs li:last-child {
  border-right: none;
}

/* 選択されたタブのスタイル */
.woocommerce-tabs ul.tabs li.active {
  background-color: #f8f8f8;
  /* 選択されたタブの背景色 */
}

/* タブのコンテンツのスタイル */
.woocommerce-tabs .panel {
  display: none;
  padding: 20px;
}

/* 選択されたタブのコンテンツを表示 */
.woocommerce-tabs .panel.active {
  display: block;
}

/* タブのリストアイテムのスタイル */
.woocommerce-tabs ul.tabs li {
  flex: 1;
  text-align: center;
  cursor: pointer;
  border-right: 2px solid #ddd;
  /* タブ間に線を追加 */
  transition: background-color 0.1s;
  /* 背景色変更のアニメーション */
}

/* 選択されたタブのスタイル */
.woocommerce-tabs ul.tabs li.active {
  background-color: rgb(164, 164, 164);
  /* 選択されたタブの背景色 */
  color: #c7c7c7;
  /* 選択されたタブの文字色 */
}

/* タブがクリックされた時のスタイル */
.woocommerce-tabs ul.tabs li:hover {
  background-color: #f0f0f0;
  /* クリック時の背景色 */
}




/* モーダル用 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: 20px auto;
  display: block;
  width: auto;
  height: auto;
  /* max-width: 800px; */
  max-width: 100vw;
  max-height: 100vh;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.woocommerce-product-gallery__image a {
  display: inline-block;
}

.woocommerce-product-gallery__wrapper img {
  pointer-events: none;
}

/* カートに入れるボタン */
.add_to_cart_button, .single_add_to_cart_button {
  display: inline-block;
  background-color: #007bff;
  height: 30px;
  color: #fff;
  margin: 3px 0;
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}


/* お買い物カゴを表示 */
.added_to_cart {
  margin-left: 10px;
}

/* カート */
.page_title {
  width: 30%;
  margin-left: 10%;
  padding-top: 10px;
}

/* ログイン画面 */
#customer_login {
  padding: 10px;
}

/* マイアカウントページ */
.my_account_wrapper {
  display: flex;
  margin-top: 20px;
}

.woocommerce-MyAccount-navigation {
  width: 35%;
}

.woocommerce-MyAccount-navigation li {
  width: 50%;
  font-size: 1.2rem;
  margin: 7px auto;
  padding: 4px;
  box-shadow: 2px 0 2px rgba(0, 0, 0, 0.2), -2px 0 2px rgba(0, 0, 0, 0.2);
  border-radius: 5px;

}

.woocommerce-MyAccount-navigation ul li a {
  display: block;
}

.woocommerce-MyAccount-content {
  width: 65%;
}

/* 支払いページ */
#customer_details {
  padding: 10px;
}

#order_comments {
  border: solid 1px black;
}

/* ご注文内容 */
#order_review {
  padding: 10px;
}

.onsale {
  color: red;
  font-weight: 600;
  font-size: 1.2rem;
}

footer {
  min-height: 100px;
}

/* 以下woocommerceのcss書き換え */
/* パスワード表示切替マーク */
.woocommerce form .show-password-input, .woocommerce-page form .show-password-input {
  top: 0.2rem;
}


/* スマートフォン（モバイル）向けスタイル */
@media only screen and (max-width: 690px) {
  header {
    height: 100px;
    position: fixed;
    z-index: 1;
  }

  .page-title {
    width: 100%;
    transform: translateY(0);
    top: 0;
    padding-top: 10px;
  }

  .main_nav {
    display: block;
    position: relative;
    right: 0;
    top: -10px;
    /* transform: translateY(0); */
  }

  #menu {
    justify-content: space-between;
    margin: 30px 20px;
  }

  .main-container {
    padding-top: 100px;
  }

  .products .product {
    max-width: 100%;
    width: 100%;
    font-size: 0.8rem;
  }

  .products .product img {
    width: 150px;
    height: auto;
  }

  /* ユーザーページ */
  .user_page_contentes_area {
    padding-top: 40px;
  }

  .user_page_header {
    height: 150px;
    padding-top: 40px;
  }

  .user_page_icon img {
    width: 100px;
    height: 100px;
  }

  .user_page_name {
    margin: -60px auto 10px auto;
  }

  .user_page_profile {
    font-size: 0.8rem;
  }

  /* 商品詳細ページ */
  .single_product .product .woocommerce-product-gallery {
    width: 100%;
  }

  .single_product {
    width: 100%;
  }

  .single_product .product {
    margin: 0;
    padding-top: 45px;

  }

  .single_product_item {
    display: block;
  }

  .woocommerce-product-gallery__wrapper> :first-child img {
    width: 100vw;
    height: auto;
  }

  .return-to-shop {
    margin: 0 5px;
  }

  /* メッセージ */
  .woocommerce-message {
    padding: 40px 10px 0 10px;
    margin: 0;
  }
}

@media only screen and (max-width: 989px) and (min-width: 691px) {
  .products {
    justify-content: center;
  }
}