/* === 基本設定 === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === ナビゲーションバー === */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 64px;
}

.logo-img {
  height: 48px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  color: #333;
}

.nav-links a:hover {
  color: #000;
}

.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* === HEROセクション（トップ） === */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  width: 100%;
  min-height: 100vh;
  background: url('img/herovisual.jpg') no-repeat center center/cover;
  padding: 2rem;
  overflow: hidden;
}

.hero-text {
  background: rgba(0, 0, 0, 0.35);
  padding: 2.5rem;
  border-radius: 12px;
  color: #fff;
  z-index: 2;
  max-width: 600px;
  width: 100%;
  animation: fadeIn 1.8s ease-out forwards;
  opacity: 0;
}

.headline {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-weight: 400;
  line-height: 1.3;
}

.mobile-only {
  display: none;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #eee;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* === ボタンスタイル（共通／BASEカート用） === */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.primary {
  background-color: #1a1a1a;
  color: #fff;
}
.primary:hover {
  background-color: #333;
}

.secondary {
  background-color: #fff;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}
.secondary:hover {
  background-color: #f2f2f2;
}

/* === 製品ページ HERO === */
.products-hero {
  text-align: center;
  padding: 4rem 1rem 2rem;
  background-color: #fafafa;
}

.products-hero h1 {
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.products-hero p {
  font-size: 1rem;
  color: #666;
  margin: 0 auto;
  max-width: 480px;
  line-height: 1.8;
}

/* === 製品セクション === */
.product-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.product-row.reverse {
  flex-direction: row-reverse;
}

.product-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.product-text {
  max-width: 440px;
}

.product-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.product-text h3 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 1.5rem;
}

.product-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 1.5rem;
}

.product-text form {
  margin-top: 1rem;
}

/* === フッター === */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  background: #f5f5f5;
  color: #777;
}

/* === アニメーション === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
  }

  .headline {
    font-size: 2rem;
  }

  .mobile-only {
    display: inline;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .product-row {
    flex-direction: column !important;
    text-align: center;
  }

  .product-image img {
    max-width: 100%;
  }

  .product-text {
    max-width: 100%;
  }

  .about-section {
    padding: 2rem 1.2rem;
    margin: 3rem auto;
  }

  .about-section h1 {
    font-size: 1.8rem;
  }

  .company-info dt {
    font-size: 1rem;
  }
}

/* === 会社概要ページ（洗練バルミューダ風） === */
.about-section {
  max-width: 860px;
  margin: 5rem auto;
  padding: 2rem 1.5rem;
  text-align: left;
  background-color: #fdfdfd;
}

.about-section h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  padding-left: 0.5rem;
  border-left: 4px solid #1a1a1a;
  color: #111;
}

.about-section p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 3rem;
  color: #333;
  font-weight: 300;
}

.company-info {
  font-size: 1rem;
  line-height: 1.9;
  color: #444;
}

.company-info dt {
  font-weight: 500;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.3rem;
  color: #111;
}

.company-info dd {
  margin-left: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 1.2rem;
  color: #555;
  font-weight: 300;
}


/* 基本的なスタイル */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto; /* 自動調整 */
}


.carousel-image-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  width: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.5s ease-in-out;
}

/* 画像が中央に来るように調整 */
.carousel-wrapper img {
  width: 100%;
  height: auto;
  object-position: center;
}

/* === スライダー画像1枚だけ表示に強制 === */
.carousel-wrapper {
  overflow: hidden;
  max-width: 480px; /* お好みで */
  margin: 0 auto;
}

.carousel-image-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-image {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
/* === 追加したもの === */
.carousel-wrapper {
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
}

.carousel-image-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-image {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
