/* KUJIRA Theme Base Style */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "游ゴシック", YuGothic, sans-serif;
  color: #333;
  background: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.8;
}

a {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #005077;
}

header, footer {
  background: #f5f5f5;
  padding: 20px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5 {
  font-weight: bold;
  margin-top: 1.5em;
}

button,
input[type="submit"] {
  background: #0073aa;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
  background: #005077;
}

.main {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
}

@media screen and (max-width: 768px) {
  .main {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}

/* 商品カードデザイン */
.product-card {
  list-style: none;
  border: 1px solid #eee;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s ease;
  background: #fff;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #333;
}

.price {
  display: block;
  font-weight: bold;
  color: #e91e63;
  margin-bottom: 0.8rem;
}

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

.kujira-product-card {
  border: 1px solid #eee;
  padding: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.kujira-product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.kujira-product-card .product-thumbnail img {
  width: 100%;
  height: auto;
  transition: transform 0.3s;
}

.kujira-product-card:hover .product-thumbnail img {
  transform: scale(1.05);
}

.kujira-product-card .product-title {
  font-size: 1.1rem;
  margin-top: 0.8rem;
}

.kujira-product-card .product-price {
  color: #d9534f;
  font-weight: bold;
  display: block;
  margin: 0.5rem 0;
}

/* ====== Single Product Page Design - KUJIRA ====== */
/* 商品詳細ページ：横並び＆レイアウト安定 */
.single-product .product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1024px;
  margin: 0 auto 60px;
  padding: 0 20px;
  align-items: flex-start;
}

.single-product .woocommerce-product-gallery {
  flex: 1 1 45%;
  max-width: 512px;
  width: 100%;
}

.single-product .summary {
  flex: 1 1 50%;
  min-width: 280px;
  max-width: calc(100% - 512px - 40px); /* ギャラリー + gap を差し引き */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* スマホ表示で縦並び */
@media screen and (max-width: 768px) {
  .single-product .product {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .single-product .woocommerce-product-gallery,
  .single-product .summary {
    max-width: 100%;
    width: 100%;
  }
}