.hero {
  background-image: url('../img/bg_bldg.jpg');
  background-size: cover;
  background-position: center;
  padding: 75px 20px;
  min-height: 30vh;
}

/* Product Section Styles */
.section {
  max-width: 1024px;
  margin: 40px auto;
  padding: 20px;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--primary-color);
}

.product-list {
  display: grid;
  gap: 30px;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 25px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  background-color: var(--section-bg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.product-item img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 0;
  flex-shrink: 0;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

.product-item-text {
  display: flex;
  flex-direction: column;
}

.product-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.product-item p {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color-light);
  flex-grow: 1;
}

.product-item .product-link {
  margin-top: 20px;
  align-self: flex-start;
  text-decoration: none;
  color: var(--text-color-on-primary);
  background-color: var(--product-link-bg);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.product-item .product-link:hover {
  background-color: var(--product-link-hover-bg);
}

.theme-part-timer .common-section-content h2 {
  background-color: var(--secondary-color);
  color: var(--text-color-on-primary);
  padding: 10px 15px;
  border-bottom: none;
}

@media (max-width: 768px) {
  .product-item {
    flex-direction: column; /* 要素を縦並びにする */
    align-items: center;   /* 中央揃えにする */
    text-align: center;
  }

  .product-item img {
    width: 100%; /* 画像幅をコンテナに合わせる */
    max-width: 250px; /* 画像が大きくなりすぎないようにする */
    height: auto;
  }

  .product-item .product-link {
    align-self: center; /* ボタンを中央に配置 */
  }

  .location-access-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.location-access-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.location-access-text {
  flex-grow: 0;
}

.location-access-image {
  flex-shrink: 0;
}

/* Image Gallery Styles */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.image-gallery img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox Modal Styles */
.lightbox-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  text-decoration: none;
}
