@charset "utf-8";
/* CSS Document */

main{
    font-family: Arial, sans-serif;
	width: 100%;
	max-width: auto;
	height: auto;
	background-color: #2E2E2E;
	color: #f9f9f7;
	margin: 0 auto;
}

.main{
	width: 100%;
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.h2-text{
	max-width: 600px;
	height: auto;
	line-height: 1.8;
	margin-left: auto;
	margin-right: auto;
	padding: 10px;
}

.gallery {
	display: flex;
    flex-wrap: wrap;
    gap: 20px;
	margin-top: 20px;
	text-align: center;
}

.card {
    width: calc(33.3333% - 20px);
    border: 1px solid #B89B72;
    text-align: center;
    cursor: pointer;
}

.card img {
   	width: 100%;
   	height: auto;
}

.card-text {
   	padding: 10px;
}

.detail-view {
	margin-top: 40px;
    display: flex;
	overflow: hidden;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 2px solid #B89B72;
    padding-top: 20px;
}

.detail-image {
    width: 100%;
    max-width: 400px;
	overflow: hidden;
    padding: 15px;
	border: 1px solid #B89B72;
}

.detail-image img {
    width: 100%;
    height: auto;
	border: 1px solid #B89B72;
}

.detail-info {
	flex: 1;
    min-width: 250px;
    border: 1px solid #B89B72;
    padding: 15px;
    background-color: #2E2E2E;
}

.info-item {
    margin-bottom: 15px;
}

.quantity-controls {
	display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
	width: 30px;
    height: 30px;
    font-size: 18px;
}

input.quantity {
	width: 60px;
    text-align: center;
    font-size: 16px;
}

.cart {
	margin-top: 40px;
    border-top: 2px solid #B89B72;
    padding-top: 20px;
}

.cart-item {
	border-bottom: 1px solid #B89B72;
    padding: 10px 0;
}

.cart-item:last-child {
	border-bottom: none;
}

.info-item button {
	margin-right: 10px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .card {
    width: 100%;
	margin-left: 10px;
	margin-right: 10px;
  }
  .detail-view {
    flex-direction: column;
  }
  .detail-image,
  .detail-info {
    width: 100%;
  }
}

.orderBtns{
	padding-top: 30px;
	padding-bottom: 50px;
}

.orderBtns input {   /*注文ボタンの設定*/
	padding: 2px 12px;   /* ボタン内の余白 */
    font-size: 18px;
    width: 100px;         /* ボタンの幅 */
    height: 40px;         /* ボタンの高さ */
    cursor: pointer;      /* ホバー時にポインター */
    border: none;
    border-radius: 5px;
    background-color: #176B75;
    color: #f9f9f7;
    transition: background-color 0.3s;
}

.orderBtns input:hover {
      color: #B89B72;
}
