/* 秋田県物産展 改善版スタイル */

:root {
  --primary-color: #8f1d2c;
  --secondary-color: #f7f3ef;
  --text-color: #2f2f2f;
  --border-color: #e8e1dc;
  --soft-bg: #faf8f6;
}

/* 全体 */
body {
  background: #ffffff;
  color: var(--text-color);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  line-height: 1.7;
}

/* キャッチ画像セクション */
.catch-section {
  text-align: center;
  padding: 20px 20px 50px;
  background:
    linear-gradient(
      to bottom,
      #ffffff 0%,
      #faf8f6 100%
    );
}

.catch-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.08);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.catch-image-wrapper:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 28px rgba(0,0,0,0.12);
}

.catch-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.catch-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.68) 0%,
      transparent 100%
    );
  padding: 28px;
  color: white;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.catch-image-wrapper:hover .catch-overlay {
  opacity: 1;
}

.scroll-hint {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #777;
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 開催予定 */
.schedule-section {
  padding: 40px 20px;
  background: white;
  text-align: center;
}

.schedule-title {
  font-size: 1.9rem;
  margin-bottom: 30px;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.schedule-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.schedule-button {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04);
}

.schedule-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(143,29,44,0.08),
      transparent
    );
  transition: left 0.5s;
}

.schedule-button:hover::before {
  left: 100%;
}

.schedule-button:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px rgba(143,29,44,0.10);
}

.schedule-button.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow:
    0 4px 14px rgba(143,29,44,0.18);
}

.schedule-button.active:hover {
  background: #771826;
  border-color: #771826;
}

.schedule-date {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.schedule-venue {
  display: block;
  font-size: 0.95rem;
  opacity: 0.92;
}

.schedule-button .arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s;
}

.schedule-button:hover .arrow {
  transform: translateX(4px);
}

/* NEWS */
.news-section {
  background: white;
  padding: 40px 20px;
  margin: 30px 0;
}

.news-list {
  max-width: 860px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 18px;
  border-bottom:
    1px solid var(--border-color);
  transition: background 0.3s;
  align-items: flex-start;
  border-radius: 10px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  background: #faf8f6;
}

.news-date {
  flex-shrink: 0;
  width: 120px;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.95rem;
}

.news-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.news-content {
  flex-grow: 1;
}

.news-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* 商品セクション */
.products-section {
  padding: 70px 20px;
  background: var(--soft-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size:
    clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--text-color);
  letter-spacing: 0.04em;
}

.section-subtitle {
  color: #777;
  font-size: 1.02rem;
}

.product-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 18px rgba(0,0,0,0.06);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  box-shadow:
    0 10px 28px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f3f3f3;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #8f1d2c;
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: bold;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.12);
}

.product-content {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-company {
  font-weight: bold;
  font-size: 1.18rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.product-name {
  color: #666;
  font-size: 0.94rem;
  margin-bottom: 8px;
  min-height: 38px;
  line-height: 1.4;
}

.product-price {
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 8px 0 12px;
}

.product-price-tax {
  font-size: 0.82rem;
  font-weight: normal;
  color: #777;
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s;
  font-weight: 500;
  margin-top: auto;
  font-size: 0.92rem;
}

.product-link:hover {
  background: var(--primary-color);
  color: white;
}

/* CTA */
.cta-section {
  padding: 70px 20px;
  background:
    linear-gradient(
      135deg,
      #7b1b27 0%,
      #5d1420 100%
    );
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.cta-description {
  font-size: 1.05rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 15px 34px;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.15);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 20px rgba(0,0,0,0.18);
}

/* ナビゲーション - 既存のテンプレートに対応 */
#menubar {
  /* 既存のstyle.cssに依存 */
}

#menubar nav ul {
  /* 既存のstyle.cssのスタイルを継承 */
}

/* フッター */
footer {
  background: #2a2a2a;
  padding: 40px 20px 25px;
  color: white;
}

#footermenu {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 30px;
  margin: 0 auto 25px;
  max-width: 800px;
}

#footermenu li {
  flex: 0 0 auto;
}

#footermenu a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
  display: block;
  white-space: nowrap;
}

#footermenu a:hover {
  color: #ff6b6b;
}

.copy {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 5px;
}

.copy a {
  color: white;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 768px) {

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .schedule-section {
    padding: 30px 15px;
  }

  .schedule-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .schedule-buttons {
    gap: 12px;
  }

  .schedule-button {
    padding: 14px 18px;
  }

  .schedule-date {
    font-size: 1.05rem;
    margin-bottom: 3px;
  }

  .schedule-venue {
    font-size: 0.9rem;
  }

  .news-section {
    padding: 30px 15px;
    margin: 25px 0;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
    padding: 15px;
  }

  .news-date {
    width: auto;
  }

  .product-content {
    padding: 18px;
  }

  .product-name {
    min-height: auto;
  }

  .section-title {
    font-size: 1.5rem;
  }

  #footermenu {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #footermenu li {
    width: 100%;
    text-align: center;
  }

}

@media (max-width: 480px) {

  .catch-section {
    padding: 10px 10px 20px;
  }

  .catch-overlay {
    display: none;
  }

  .scroll-hint {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 0.85rem;
  }

  .schedule-section {
    padding: 20px 12px;
  }

  .schedule-title {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .schedule-buttons {
    gap: 10px;
  }

  .schedule-button {
    padding: 12px 16px;
  }

  .schedule-date {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .schedule-venue {
    font-size: 0.88rem;
  }

  .news-section {
    padding: 25px 12px;
    margin: 20px 0;
  }

  .news-item {
    padding: 12px;
  }

  .news-title {
    font-size: 1rem;
  }

  .product-content {
    padding: 16px;
  }

  .product-name {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .product-price {
    font-size: 1.3rem;
    margin: 6px 0 10px;
  }

  .product-description {
    font-size: 0.88rem;
    margin-bottom: 16px;
  }

  .product-link {
    padding: 9px 18px;
    font-size: 0.9rem;
  }

  footer {
    padding: 30px 15px 20px;
  }

  #footermenu {
    gap: 12px;
    margin-bottom: 20px;
  }

  #footermenu a {
    font-size: 0.9rem;
  }

  .copy {
    font-size: 0.8rem;
    padding-top: 15px;
  }

  .cta-title {
    font-size: 1.6rem;
  }

}