@charset "UTF-8";

body {
  background-color: #ffffff;
  margin: 0 auto; 
  /* font-family: "Helvetica Neue", sans-serif; */
  font-family:
    "Noto Sans JP",
    "Yu Gothic UI",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  font-weight: 400;
  line-height: 1.3;
  font-size: large;
  padding-top: 160px; /*  ヘッダーの高さに応じて適宜調整すること */
}

/* テーマ色 */
:root {
  /* theme-color: #00aaff; */
  --text-color: #333;
  --bg-hover: #00aaff;

}



/* Bodyの枠*/
.container {
      max-width: 1000px;
      margin: 0 auto;
      padding: 1rem 1rem;
}

.product-summary {
  width: 100%;
  /* max-width: 1000px; */
  margin: 0 auto;
  box-sizing: border-box;
}

.product-info {
  box-sizing: border-box;
  padding: 10px;

  display: flex; 
  flex-wrap: nowrap;
  gap: 10px;
}

.jan-and-sp{
  width: 100%;
  max-width: 380px;
  min-width: 280px;
  /*flex: 4;*/
  /*justify-content: center;*/
  align-items: center;
  display: flex;           /* 中身も制御したい場合 */
  flex-direction: column;

}

.jan{
  width: 100%;
  min-width: 300px;
}

.similar-products {
  box-sizing: border-box;
  margin-top: 10px;
  padding: 10px;
  width: 100%;
  justify-content: center;
  text-align: center;

  background: #f2f9ff;
  border-radius: 12px;

}

/*
.related {
  display: flex;

  justify-content: center;
}

.related h4 {
  color: white;
  background-color: #87CEFA;


  padding: 10px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;

}

.related h4 a {
  color: white;

  text-decoration: none;

  font-weight: 500;

}

.related h4:hover {
  color: white;

  background-color: #3498DB;


}

*/

.comment{
  text-align: start;
}

.product-img-display {
  position: relative;
  min-width: 300px;
  max-width: 580px;
  width: 100%;
  /*min-height: 300px;*/
  /*flex: 6;*/
  
  /*width: 100%;*/
  aspect-ratio: 1 / 1;
  /*height: auto;*/
  /* margin: 0 auto 20px auto; */
  display: flex;
  align-items: center;
}

.image-box {
  width:100%;
  height:100%;
  
  border: 1px solid #ccc;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  /* border: 2px solid rgb(92, 140, 241); */

  position: relative; /* カルーセル対応*/
  overflow: hidden; /* カルーセル対応*/
}

.image-box img {
  /*width: 100%;
  height: auto;
  object-fit: fill;
  display: block;*/
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-box img:first-child {
  opacity: 1;
}

.prev-btn,
.next-btn {
  /*
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;*/
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;

}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* ドット */
.dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 50; /* ←重要：ボタンより上 */
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(118, 189, 248, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/*
.arrow {
  background-color: transparent;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  color: #d6caca;
}

.arrow:hover {
  color: #948e8e98;
}

*/

.features-and-design {
  width: 100%;
  /* max-width: 1000px; */
  /* 或 800px，根据页面内容调整 */
  margin: 0 auto;

  justify-content: center;
  /* 居中关键 */
  /* padding: 20px; */
  gap: 20px;
  /* 元素间距 */


  display: flex;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.features-and-design-detial {
  max-width:45%;
  min-width: 300px;
  /* margin: 0 auto 20px auto; */
  padding: 10px;
  justify-content: center;
  /* box-sizing: border-box; */
  /* border-right: 2px solid #87CEFA; */
  border-bottom: 2px solid #cce4ff; 

}

.connection-image {
  width: 100%;
  /*max-width: 1000px;*/
  /* 或 800px，根据页面内容调整 */
  margin: 0 auto;
  /* 居中关键 */
  box-sizing: border-box;
  justify-items: center;
}

.specification {
  width: 100%;
  /* max-width: 1000px; */
  /* 或 800px，根据页面内容调整 */
  margin: 0 auto;
 
  /* padding: 20px; */
  box-sizing: border-box;
}

.spce{
  width: 95%;
  margin: 0 auto;

}

section {
  margin-bottom: 40px;
}

h1 {
  display: inline-block;
  display: block;
  /* 或保持 inline-block */
  /* width: fit-content;*/
  /*使宽度自适应*/
  margin: 20px auto;
  padding: 10px 20px;
  background-color: #87CEFA;
  /* 天蓝色 */
  color: white;
  font-size: 28px;
  white-space: nowrap;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

}

/*
h2 {

  color: #333;
  margin-bottom: 20px;
}
*/


h2 {
  border-bottom: solid 3px #cce4ff;
  position: relative;
}

h2:after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px #3498db;
  bottom: -3px;
  width: 30%;
}

/*
h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}
  

/* hr {
  border: none;
  border-top: 7px solid #87CEFA;
  margin-bottom: 20px;
} */

/*
.hr-style {
 border:none;
 height:15px;
 background-color:#87CEFA;
 background-image:linear-gradient(#87CEFA, #FFFFFF);
}
*/


p {
  line-height: 1.8;
  color: #444;
}


table {
  width: 100%;
  max-width: 1000px;
  /* 横向居中 */
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  table-layout: auto;
  /* 关键设置：让列宽根据内容自适应 */

}

th {
  padding: 8px 8px;
  white-space: nowrap;

}
td {
  border: 1px solid #ccc;
  padding: 8px 8px;
  text-align: center;
  font-size: clamp(12px, 2vw, 16px);
  white-space: wrap;
  /* 防止文字换行 */
  overflow: hidden;
  /* 隐藏超出 */
  text-overflow: ellipsis;
  /* 显示省略号 */
}

thead {
  background-color: #87CEFA;
  color: white;
}

tbody tr:nth-child(even) {
  background-color: #f2f9ff;
}

.product-image {
  width: 90%;
  margin: 15px 0 15px 0;

}

.product-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.connection-picture {
  width: 90%;
  margin: 15px 0;

}

.connection-picture img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
}


.purchase-area {
  text-align: center;
  padding: 20px 20px;
  background: #f2f9ff;
  margin-top: 20px;
  border-radius: 12px;
}

/*.purchase-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  font-size: medium;
}
*/

.purchase-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  /*font-size: clamp(12px, 2vw, 16px);*/
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  white-space: nowrap;
}


.btn {
  padding: 10px 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  min-width: 220px;
  width: 100%;
}

.btn:hover {
  opacity: 0.7;
}

.rakuten { background: #bf0000; }
.yahoo  { background: #ff0033; }
.amazon { background: #ff9900; }
.related { background: #87CEFA;}

.category{
  width: 100%;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
 
.category-text{
  font-size: 30px;
  font-weight: 400;
}

.category-option{
  width: 48%;
  min-width: 300px; 
}

.category-option img{
  width: 100%;
  display: block;
}

.category-option a{
  display: block;
}

.category-option img:hover {
  opacity: 0.7;
}

.product-card-area{
  width: 100%;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-items: center;
  gap: 10px;
}

.product-card a{
  color: inherit;
  text-decoration: none;
}

.product-card a:hover{
  opacity: 0.7;
  color: inherit;
  text-decoration: none;
}

.product-card{
 /*width: 45%;*/
 width: calc((100% - 70px * 2) / 3); 
 min-width: 250px; 
 border-radius: 20px;
 border: 2px solid #3498db;
 padding: 15px;
}

.product-card img{
  width: 100%;
}

.product-card-title{
  font-weight: 600;
}

.product-card-comment{
  font-weight: 400;
}





@media (max-width: 768px) {

body {
  padding-top: 120px; /*  ヘッダーの高さに応じて適宜調整すること */
}

.category-option{

  width: 98%;

}

.features-and-design-detial {
  max-width:90%;
}

h1 {
  font-size: 20px; 
}

.product-info {
  flex-wrap: wrap;
 
}

.jan-and-sp{
  width: 100%;
  max-width: 768px;
  min-width: 280px;
}

.product-img-display {
  max-width: 768px;
  width: 100%;
}

.product-card{
  width: 90%;
}

}