@charset "UTF-8";

/* 全体 */
body {
  margin: 0;
  padding: 20px;
  background-color: #e8ecef;
  color: #333;
  font-family: sans-serif;
  line-height: 1.6;
}

/* タイトル */
.overlay-title a {
  text-decoration: none;
  color: inherit;
}

.overlay-title{
  text-align: center;
  color: silver;
  font-size: 4rem;
  -webkit-text-stroke: 1.5px #4b3832;
  margin-bottom: 10px;
  text-shadow: none;

  font-family: "Prata", serif;
  font-weight: 400;
  font-style: normal;
}

h2 {
  text-align: center;
  color: #00608d;
  font-size: 2rem;
  margin-bottom: 30px;

  font-family: "Lato", sans-serif;
  font-weight: 600;
  font-style: italic;
}

/* 商品テーブル */
table {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 40px;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

th, td {
  padding: 16px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

th {
  background-color: #c0c6c9;
  color: #4b3832;
  font-size: 1.2rem;
}

td {
  font-size: 1rem;
  color: #333;
  position: relative;
  overflow: hidden;
}

  /* 商品画像のスタイル */
  .product-image {
    width: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
  }

  .product-image:hover {
    transform: scale(1.8);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
  }

/* フォーム内のセレクトとボタン */
form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

select {
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #aaa;
  background-color: #f9f9f9;
}

button[type="submit"] {
  background-color: #4b3832;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #664032;
}

/* カート表示 */
#cart-summary {
  margin: 0 auto;
  background-color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  list-style: none;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  width: 80%;
  max-width: 500px;
  font-size: 0.9rem;
}

#cart-summary li {
  margin-bottom: 10px;
  font-size: 1rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 20px;
  border: none;
  background-color: #4b3832;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  line-height: 1;
  padding: 0;
}

.qty-btn:hover {
  background-color: #664032;
}

.zougenbutton{
  background-color: #c0c6c9;
  border-radius: 5px;
}

.zougenbutton:hover{
  background-color: #a9a9a9;
}
/* メッセージ表示 */
#message {
  text-align: center;
  font-size: 1rem;
  margin-top: 10px;
  color: #0090a8;
}

/* 注文ボタン */
#go-to-cart {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
  background-color: #4b3832;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

#go-to-cart:hover {
  background-color: #664032;
}

#back-to-mypage{
  display: block;
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
  color: #4b3832;
  text-decoration: none;
  transition: color 0.3s ease;
}

#back-to-mypage:hover{
  color: #7b5946;
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
table {
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
  }

  table, tbody, tr, th, td {
    display: block;
    width: 95%;
  }

  tr {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: #fff;
  }

  #title{
    display: none;
  }
  
  th {
    display: none;
  }

  td {
    padding: 10px;
    text-align: left;
    border: none;
  }

  td:nth-child(1)::before {
    content: "商品名: ";
    font-weight: bold;
    display: block;
  }

  td:nth-child(3)::before {
    content: "価格: ";
    font-weight: bold;
    display: block;
  }

  td:nth-child(4)::before {
    content: "数量と追加: ";
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }

  form {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .product-image {
    width: 80%;
    max-width: 150px;
    margin: 10px auto;
    display: block;
  }

  #cart-summary {
    width: 90%;
  }

  #cart-summary li{
    font-size: 1em;
  }
}

