@charset "utf-8";
/* CSS Document */

/*　サイドバー　*/
.product-category-menu {
    width: 200px;
    flex-shrink: 0;
    margin-right: 20px;
	min-width: 0;
	text-align: center;
}

.product-category-menu .product-category-group {
    margin-bottom: 20px;
	border: solid 2px #999;
}

.product-category-menu .product-category-group h2 {
    background-color: #999;
    color: #fff;
    padding: 0.3rem 1rem;
	border: none;
	min-width: 0;
	width: 100%;
	font-size: 16px;
}

.product-category-menu ul {
    list-style: none;
    margin: 6px;
    padding: 0;
}

.product-category-menu li a {
    display: block;
    padding: 0.3rem 1rem;
	margin-bottom: 3px;
    text-decoration: none;
    background-color: #EEE;
}

.product-category-menu .product-category-group.seed li a:hover {
  background-color: #c8d300;
  color: #FFF;
}

.product-category-menu .product-category-group.other li a:hover {
  background-color: #009bd0;
  color: #FFF;
}

.catalog-download {
  margin-top: 2rem;
  text-align: center;
}
.catalog-download img {
  max-width: 100%;
  height: auto;
}

/* --- メイン構成 --- */
.product-page {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
	padding-top: 3rem;
	margin-bottom: 3rem
}

.product-page .sidebar {
	flex: 0;
}

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

.hero_product {
    height: 300px;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.hero-text_product {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFF;
    padding: 0 30px;
    border: solid 2px #FFF;
    margin-top: 100px;
    margin-left: 5%;
    max-width: 320px;
}

.product-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 2rem;
	margin-top: 0;
  border-bottom: 2px solid #CCC;
  padding-bottom: 5px;
}

.product-image {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f8f8;
	margin-bottom: 3rem;
	aspect-ratio: 4/3;
}

.product-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.product-features {
  margin-bottom: 2rem;
}

.products-head {
  font-size: 1.2rem;
  background-color: #00a73b;
  color: #fff;
  padding: 0.2rem 1rem;
  margin-bottom: 1rem;
	width: 100%;
	border: none;
}

.features-text {
  font-size: 1rem;
}

.product-saku .saku-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ccc;
  padding: 4px;
  background-color: #fff;
}

/*　カテゴリー一覧ページ　*/

.product-listing-page {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 24px;
	padding-top: 3rem;
	margin-bottom: 3rem
}

.archive-title {
	font-size: 1.6rem;
	border-bottom: solid 2px #CCC;
	margin: 0 0 1.5rem;
}

.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-item {
  padding: 16px;
  border-bottom: 2px solid #CCC;
  background: #fff;
  transition: box-shadow 0.3s ease;
}

.product-item a {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.product-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.product-item .item-image {
  width: 180px;
  flex-shrink: 0;
}

.product-item .item-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-item .item-body {
  flex: 1;
}

.item-title {
  font-size: 18px;
  font-weight: bold;
  color: #2a8b3b;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}

.badge-recommended {
  display: inline-block;
  background-color: #e53935;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.2rem 1rem;
  border-radius: 2px;
  margin-bottom: 8px;
}

.item-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
}

.item-button .detail-button {
  display: inline-block;
  background-color: #FFF;
  color: #ff8c00;
  border: solid 2px #ff8c00;
  padding: 0.2rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.item-button .detail-button:hover {
	color: #FFF;
	background-color: #ff8c00;
}

@media screen and (max-width: 768px) {
	
	.sidebar {
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	
  .product-page {
    flex-direction: column;
  }
    
  .hero_product {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 280px;
    background-position: center;
    background-size: cover;
  }

  .hero-text_product {
    margin: 0;             /* 既存の margin-top:100px を無効化 */
    max-width: none;       /* 既存の max-width:320px を無効化 */
    width: 100%;
    text-align: center;
    border: none;          /* 白いボックス罫はスマホのみ外す */
    background: rgba(0,0,0,.35);
    padding: 0 3rem;
  }
    .hero-text_product h1 {
        font-size: 1.6rem;
    }

  .hero-text .sub-copy {
    font-size: 1rem;
  }
    
  .product-category-menu {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    background: #FFF;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .product-category-group {
    flex: 0 0 auto;
    display: inline-block;
    min-width: max-content;
	border: none !important;
	margin-bottom: 0 !important;
  }

  .product-category-group h2 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 6px;
    text-align: left;
  }

  .product-category-menu ul {
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
  }

  .product-category-menu li {
    list-style: none;
  }

  .product-category-menu li a {
    display: inline-block;
    padding: 0.3rem 1rem;
    font-size: 0.9rem;
    background: #DDD;
    white-space: nowrap;
    color: #333;
    text-decoration: none;
  }
	
	.product-listing-page {
		flex-direction: column;
	}
	
  .product-item a {
    flex-direction: column;
    align-items: stretch;
  }

  .product-item .item-image {
    width: 100%;
  }
    .catalog-download {
        display: none;
    }
}