@charset "utf-8";



html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f8f8f8;
}

.content_header {
  text-align: center;
  margin: 20px 0;
  padding-top: 100px;
}

h2.body_title {
  font-size: 1.4rem;
  color: #3a1f1f;
}

.line {
  width: 60px;
  height: 2px;
  background-color: #d32f2f;
  margin: 10px auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 10px;
}

.item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eee;
}

.item h3 {
  font-size: 1rem;
  color: #333;
  margin: 10px 0 5px;
}

.item p {
  font-size: 0.9rem;
  color: #777;
}


/*詳細ページ*/

/* 全体のスタイル */
#handmade_001,
#handmade_002,
#handmade_003,
#handmade_004,
#handmade_005,
#handmade_006,
#handmade_007,
#handmade_008,
#handmade_009,
#handmade_010,
#handmade_011,
#handmade_012,
#handmade_013,
#handmade_014, 
#handmade_015,
#handmade_016,
#handmade_017 {
	scroll-margin-top: 90px;
}



#handmade_detail a:link {
	color: #2b8dcd;
}

#handmade_detail a{
	text-decoration: none;
}

#handmade_detail {
	  padding: 100px 0px 0px 0px;
}
#handmade_detail .container {
  display: flex; /* 横並びレイアウト */
  flex-wrap: nowrap; /* PCでは折り返しをさせない */
  justify-content: space-between; /* 子要素間の余白を調整 */
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

#handmade_detail .product-image {
  flex: 1 1 50%; /* 横並びで50%を占める */
  max-width: 50%; /* 最大幅を50%に制限 */
}

#handmade_detail .product-image img {
  width: 100%;
  border-radius: 8px;
}

#handmade_detail .product-details {
  flex: 1 1 50%; /* 横並びで50%を占める */
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



#handmade_detail h2 {
  font-size: 1.8rem;
  margin: 0px 0px 10px 0px;
  padding: 0;
  color: #3a1f1f;
}

#handmade_detail .description {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

#handmade_detail h3 {
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #3a1f1f;
}

#handmade_detail table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
 
}

#handmade_detail table tr {
	border-bottom: 1px solid #ccc;
}

#handmade_detail table th,
#handmade_detail table td {
  padding: 10px;
  text-align: left;
  
}

#handmade_detail table tr th {
  width: 30%;
  font-weight: bold;
  color: #555;
}

#handmade_detail table tr td {
  /*width: 70%;*/
  display: flex;
  justify-content: space-between;
  align-items: center;
   line-height: 1.6;
}

#handmade_detail table tr td > span {
	width: calc(100% - 100px);
}

#handmade_detail .buy-button {
  background-color: #a00000;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  margin-left: 1rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  border-radius:30px;
  width: 80px;
  

}

#handmade_detail .buy-button:hover {
  background-color: #800000;
}


	  
#handmade_detail .back-button {
 display: block;
  margin: 20px auto;
  padding: 1rem 3rem;
  background-color: transparent;
  border: 1px solid #aaa;
  color: #333;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  border-radius:30px;
}

#handmade_detail .back-button:hover {
  background-color: #f0f0f0;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  
  #handmade_detail .product-details {
  padding: 20px;
}


  #handmade_detail {
	padding-top: 100px;
  }
  
    #handmade_detail .container {
    flex-wrap: wrap; /* 折り返しを許可 */
	padding: 20px;
  }

  #handmade_detail .product-image,
  #handmade_detail .product-details {
    flex: 1 1 100%; /* 横幅を100%に設定 */
    max-width: 100%; /* 最大幅も100%に */
  }
}

@media (max-width: 768px) {
  #handmade_detail h2 {
    font-size: 1.5rem;
  }

  #handmade_detail .description {
    font-size: 0.9rem;
  }

  #handmade_detail table th,
  #handmade_detail table td {
    font-size: 0.9rem;
  }

  #handmade_detail .buy-button {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  
    #handmade_detail .product-details {
  padding: 20px 0px;
}

  #handmade_detail h2 {
    font-size: 1.2rem;
  }

  #handmade_detail .description {
    font-size: 0.8rem;
  }

  #handmade_detail table th,
  #handmade_detail table td {
    font-size: 0.8rem;
  }

  #handmade_detail .buy-button,
  #handmade_detail .back-button {
    font-size: 0.9rem;
/*    padding: 6px 10px;*/
  }
  
    #handmade_detail .back-button {
    margin: 3rem auto; /* 上下の余白を増やす */
    padding: 1rem 2rem; /* ボタンの大きさを調整 */
  }
}