/* 全体のスタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f7fa;
}

a {
  text-decoration: none;
  color: #3490dc;
}

a:hover {
  text-decoration: underline;
}

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

/* ヘッダー */
header {
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 20px;
}

.nav-menu a {
  color: #4a5568;
}

/* ヒーローセクション */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  background-color: #000; /* バックアップの背景色 */
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  animation: bgSlide 15s infinite;
}

@keyframes bgSlide {
  0%, 30% {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/slide.png');
    opacity: 1;
  }
  33%, 63% {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/slide02.png');
    opacity: 1;
  }
  66%, 96% {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/hero-bg.jpg');
    opacity: 1;
  }
  /* フェード効果のための透明度変化 */
  31%, 32%, 64%, 65%, 97%, 98% {
    opacity: 0.5;
  }
}

.hero h1, .hero p, .hero-buttons, .hero-note {
  position: relative;
  z-index: 1; /* テキストを背景の上に配置 */
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: bold;
  margin: 5px;
  transition: all 0.3s;
  gap: 8px;
}

.btn svg {
  margin-right: 5px;
}

.btn-white {
  background-color: #fff;
  color: #3490dc;
}

.btn-blue {
  background-color: #3490dc;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn-dark {
  display: inline-block;
  background-color: #1a202c;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
  width: 100%;
}

.btn-dark:hover {
  background-color: #2d3748;
  text-decoration: none;
}

/* 事業内容セクション */
.business-content {
  padding: 60px 0;
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  color: #2d3748;
}

.section-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #4a5568;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.category-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.category-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.category-card p {
  margin-bottom: 15px;
  color: #4a5568;
  text-align: center;
}

.category-list {
  list-style: none;
  margin-top: 15px;
}

.category-list li {
  position: relative;
  padding-left: 15px;
  margin-bottom: 8px;
}

.category-list a {
  color: #3490dc;
}

/* その他のサービスセクション */
.other-services {
  padding: 60px 0;
  background-color: #f0fdf4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.service-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #2d3748;
}

.service-card p {
  color: #4a5568;
}

/* 製品セクション */
.products {
  padding: 60px 0;
  background-color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.product-image {
  height: 200px;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d3748;
}

.product-info p {
  color: #718096;
  font-size: 14px;
  margin-bottom: 15px;
}

.maker-info {
  margin-top: auto;
  margin-bottom: 15px;
}

.maker-info h4 {
  font-size: 14px;
  margin-bottom: 5px;
  color: #4a5568;
}

.maker-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 10px;
}

.maker-list li {
  font-size: 14px;
  color: #718096;
}



/* お問い合わせフォームセクション */
.contact-section {
  padding: 50px 0;
  background-color: #f8fafc;
}

.contact-time {
  text-align: center;
  margin-bottom: 30px;
  color: #4a5568;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.contact-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 250px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.contact-card-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.contact-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #2d3748;
}

.contact-detail {
  font-size: 18px;
  color: #3490dc;
  font-weight: bold;
}

/* 製品詳細ページ */
.breadcrumb {
  padding: 10px 0;
  background-color: #f8fafc;
  margin-bottom: 20px;
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
}

.breadcrumb a, .breadcrumb span {
  margin: 0 5px;
}

.product-detail {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
}

.product-detail-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-detail-content {
  flex: 1;
  min-width: 300px;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.manufacturer-list {
  margin-top: 30px;
}

.manufacturer-list h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
}

.manufacturer-card {
  text-align: center;
}

.manufacturer-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* 会社情報ページ */
.company-info {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  margin: 40px 0;
}

.company-info-title {
  font-size: 24px;
  color: #2d3748;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ebf4ff;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.info-table th, .info-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.info-table th {
  width: 30%;
  color: #4a5568;
  font-weight: normal;
}

.history-section h3, .mission-section h3, .office-section h3 {
  font-size: 20px;
  color: #2d3748;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ebf4ff;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.history-table th, .history-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.history-table th {
  width: 20%;
  color: #4a5568;
  font-weight: normal;
}

/* フッター */
footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 40px 0 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-info {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-contact {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-title {
  color: #e2e8f0;
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-list {
  list-style: none;
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  color: #a0aec0;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #2d3748;
  font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-menu {
    margin-top: 15px;
    justify-content: center;
  }
  
  .nav-menu li {
    margin: 0 10px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .categories-grid, .services-grid, .products-grid {
    grid-template-columns: 1fr;
  }
  
  .manufacturer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    flex-direction: column;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}