@import url(https://fonts.googleapis.com/icon?family=Material+Icons);

body {
  font-family: "Zen Maru Gothic", serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  background: linear-gradient(to bottom, #faf2e8, #f9f9f9);
  font-size: 16px;
  color: #333;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.5em;
  margin-top: 0.25em;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.submit-btn {
  background: #27ae60;
  color: #fff;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 4px;
  margin-top: 2em;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.overHeader {
  padding: 5px;
  background-color: #755d0f;
  color: #fff;
  text-align: center;
  font-size: .8rem;
}

header {
  background: #2c3e50;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

p {
  margin-top: 1rem;
  line-height: 1.5;
}

a {
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

@media (max-width: 860px) {
  header {
    flex-direction: column;
    text-align: center;
  }
}

.headerLogo img {
  width: 120px;
}

.menuIcons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .menuIcons {
    margin-top: 1rem;
  }
}

.searchBox {
  text-align: center;
}

.searchIcons {
  display: flex;
  align-items: center;
}

@media (max-width: 860px) {
  .searchIcons {
    margin-top: 1rem;
  }
}

.searchInput {
  margin: 0;
  border-radius: 1000px 0 0 1000px;
  background-color: #f9f9f9;
  color: #333;
  font-size: 1rem;
  padding: 10px;
  border: none;
}

.searchBtn {
  background: #755d0f;
  padding: 10px 20px 10px 15px;
  display: block;
}

.searchBtn>span {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 1rem;
  display: contents;
}

.searchClearBtn {
  background: darksalmon;
  border-radius: 0 1000px 1000px 0;
  padding: 10px 20px 10px 15px;
  display: block;
  text-decoration: none;
}

.searchClearBtn>span {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 1rem;
  display: contents;
}

.searchBtn:hover,
.searchClearBtn:hover {
  filter: brightness(1.2);
}

.searchTitle {
  width: 860px;
  text-align: center;
  font-size: 1.2rem;
  padding: 1rem;
  margin: 0 auto;
}

.mainVisual {
  width: 100%;
  max-width: 860px;
  margin: 20px auto 0;
}

.mainVisual img {
  width: 100%;
  height: auto;
}

.productList {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: left;
  width: 100%;
  max-width: 860px;
}

@media (max-width: 860px) {
  .productList {
    align-items: center;
  }
}

.productCassette {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 1rem;
  width: 200px;
  margin-top: 20px;
  margin-left: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
}

.productCassette:nth-child(4n +1) {
  margin-left: 0;
}

.productCassette:hover {
  border-color: brown;
}

@media (max-width: 860px) {
  .productCassette {
    width: 46%;
    margin: 2% !important;
  }
}




.productCassette img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-name {
  font-weight: bold;
  margin: 0.5rem 0;
}

.addToCart {
  background-color: cadetblue;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

.logout {
  background-color: tomato;
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.logout:hover {
  filter: brightness(1.2);
}

.addToCart:hover {
  filter: brightness(1.2);
}

.addToCart:disabled,
.addToCart:disabled:hover {
  background: #ccc;
  color: #fff;
  filter: none;
}

footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 20px;
}

.footerLinks {
  font-size: 0.9rem;
  line-height: 1.5;
}

.footerLinks a {
  color: #fff;
  margin: 0 0.5rem;
  display: inline-block;
}

.menu-icons {
  display: flex;
  gap: 1rem;
}

.productDetailArea {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
  justify-content: space-between;
}

.productDetailArea img {
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  border-radius: 8px;
}

.productImage {
  padding: 10px;
  width: 49%;
}

.productInfo {
  width: 49%;
}

@media (max-width: 860px) {
  .productImage {
    padding: 10px;
    width: 100%;
  }

  .productInfo {
    width: 100%;
  }
}

.price {
  color: #e74c3c;
  font-size: 1.5rem;
  margin: 1rem 0 0;
}

footer .footer-links a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: underline;
}

@media (max-width: 860px) {
  .productDetailArea {
    flex-direction: column;
    align-items: center;
  }
}

.menu-icons {
  display: flex;
  gap: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.total {
  text-align: right;
  font-weight: bold;
  margin-top: 1rem;
}

.checkoutBtn {
  background: #27ae60;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 860px) {
  .checkoutBtn {
    width: 100%;
  }
}

.cartBtnWrapper {
  text-align: right;
}

.menu-icons {
  display: flex;
  gap: 1em;
}

.container {
  max-width: 860px;
  margin: 1em auto 0;
  padding: 1em;
  background: #fff;
  border-radius: 8px;
}

.container h1 {
  font-weight: bold;
  font-size: 2rem;
}

label {
  display: block;
  margin-top: 1em;
}

.order-item {
  border-bottom: 1px solid #ccc;
  padding: 1em 0;
  display: flex;
  justify-content: space-between;
}

.order-info p {
  margin: 0.25em 0;
}


.cartZone {
  position: relative;
  display: inline-block;

}

.cartCount {
  position: absolute;
  top: -8px;
  right: -8px;
  background: tomato;
  color: white;
  font-size: .8rem;
  padding: 5px;
  border-radius: 50%;
  font-weight: bold;
  width: 1.2rem;
  height: 1.2rem;
}

.cartCount>span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cartProductImage {
  width: 100px;
  height: 100px;
  overflow: hidden;
  background: #ccc;
}

.cartProductImage img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cartProductImageSmall {
  width: 50px;
  height: 50px;
  overflow: hidden;
  background: #ccc;
}

.cartProductImageSmall img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.checkoutWrapper {
  display: flex;
  justify-content: space-between;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .checkoutWrapper {
    display: block;
  }
}


.purchaseSettings {
  width: 70%;
}

@media (max-width: 860px) {
  .purchaseSettings {
    width: 100%;
  }
}


.purchaseSettings h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1.5rem;
}

.purchaseSettings select {
  margin-top: 1rem;
}

.cartView {
  width: 27%;
}

@media (max-width: 860px) {
  .cartView {
    width: 100%;
  }
}

.settingsCartItemImage {
  display: flex;
  justify-content: space-between;
}

.cartProductTitle {
  width: 100px;
}

.settingsCartList {
  margin-top: 10px;
  padding: 10px 0;
}

.settingsCartList li {
  border-top: 1px solid #333;
  padding: 10px;
}

.twocBlock {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.twocBlock>div {
  width: 49%;
}

.sameAddress {
  display: none;
  height: 1rem;
  width: 1rem;
  vertical-align: text-bottom;
}

.sameAddress:checked+label::before {
  font-family: 'Material Icons';
  content: "check_box";
  font-size: 1.2rem;
  vertical-align: text-bottom;
}

.sameAddress:not(:checked)+label::before {
  font-family: 'Material Icons';
  content: "check_box_outline_blank";
  font-size: 1.2rem;
  vertical-align: text-bottom;
}

.sameAddress:checked~.shippingAdressBox {
  display: none;
}

.errMsg {
  border: 1px solid tomato;
  padding: 10px;
  color: tomato;
  border-radius: 5px;
  background-color: mistyrose;
  margin-top: 1rem;
}

.msg {
  border: 1px solid cadetblue;
  padding: 10px;
  color: cadetblue;
  border-radius: 5px;
  background-color: azure;
  margin-top: 1rem;
}

.mini {
  font-size: 0.8rem;
}

/* アーティクル関係 */
article {
  margin-top: 1rem;
}

article p {
  margin-top: 1rem;
}

article h1,
article h2,
article h3,
article h4,
article h5,
article h6 {
  margin-top: 1rem;
  font-weight: bold;
}

article h1+*,
article h2+*,
article h3+*,
article h4+*,
article h5+*,
article h6+* {
  margin-top: 0.3rem;
}

.pagination {
  display: flex;
  margin: 1rem auto 0;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination li {
  align-items: center;
}

.pagination a {
  margin: 5px;
  border-radius: 100px;
  display: block;
  background: cadetblue;
  color: #fff;
  width: 2rem;
  height: 2rem;
  text-align: center;
  padding: 0.25rem;
}

.pagination .active a {
  background-color: darkolivegreen;
}


.pagination .disabled {
  display: none;
}

.ordersBox {
  border: lightgray solid 1px;
  border-radius: 8px;
  padding: 10px;
  margin-top: 1rem;
}

.orderInfo {
  display: flex;
  justify-content: space-between;
  padding-bottom: 5px;
}

.orderItemInfo {
  display: flex;
  justify-content: space-between;
  border-top: lightgray 1px solid;
  padding: 5px 0;
}

.orderIdArea {
  margin-right: 1rem;
}

.orderTotalInfo {
  display: flex;
  border-top: lightgray 1px solid;
  padding: 5px 0;
  justify-content: space-between;
}

.mypageBox {
  margin-top: 1rem;
}

.mypageBox h2 {
  font-size: 1.2rem;
  font-weight: bold;
}

.mypageBox p {
  margin-top: 0.5rem;
}

.mypageBox h2>div>*,
.mypageBox h2>* {
  display: inline-block;
  vertical-align: middle;
}

.editBtn {
  background-color: lightgray;
  border: solid lightgrey 1px;
  border-radius: 1000px;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0.3rem;
  margin-left: 1rem;
  text-align: center;
}

.editBtn span {
  font-size: 1rem;
}

.editBtn:hover {
  border-color: gray;
}

.mypageHeadArea {
  display: flex;
  justify-content: space-between;
}

.mypageWrap {
  display: flex;
  justify-content: space-between;
}

.mypageWrap>* {
  border: solid 1px lightgray;
  padding: 10px;
  border-radius: 10px;
  width: 48%;
}

.editableHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bleadClumb {
  max-width: 860px;
  margin: 1em auto;
  padding: 1em;
}

.nowCreditBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cardNum {
  font-size: 1.2rem;
  font-weight: bold;
}

.tableWrap {
  width: 100%;
  overflow-x: scroll;
}

.termTable p:first-child {
  margin: 0;
}

@media (max-width: 860px) {
  .termTable td {
    display: block;
    border: none;
    padding: 0;
  }

  .termTable tr {
    display: block;
    margin-top: 2rem;
  }

  .termTable td:first-child {
    font-weight: bold;
  }
}

.creditEditTitleWrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.creditEditTitleWrap label {
  margin-top: 0;
}

.cardArea {
  margin-top: 1rem;
  border: lightgray solid 2px;
  padding: 20px;
  border-radius: 20px;
}

.myMenu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
}

#card-container {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 12px;
  border-radius: 4px;
}

#card-button {
  margin-top: 10px;
  padding: 10px 16px;
}

.soldout {
  font-weight: bold;
}