/* 全体の基本スタイル */
body, html {
  margin: 0;
  padding: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  background-color: #000;
  color: white;
  overflow-x: hidden;
}

/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  padding: 10px 0;
}
.fixed-header img {
  width: auto;
  max-width: 350px;
  height: auto;
  margin: 0;
}

/* ナビゲーション */
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 5px 10px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

/* ハンバーガーアイコン */
.hamburger {
  position: fixed;
  top: 110px;
  right: 20px;
  width: 30px;
  height: 19px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 10001;
}
.hamburger span {
  display: block;
  height: 2px;
  background-color: white;
  border-radius: 2px;
}
.hamburger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* モバイルメニュー */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  padding-top: 60px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
}
#mobile-nav.open {
  transform: translateX(0);
}
#mobile-nav ul {
  list-style-type: none;
  padding: 0 24px;
  text-align: left;
  display: block;
}
#mobile-nav li {
  margin: 20px 0;
  text-align: left;
  display: block;
}
#mobile-nav a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: opacity 0.3s ease;
}
#mobile-nav a:hover {
  opacity: 0.7;
}

/* スライダー */
.slider {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}
.slider-section {
  margin-top: 120px;
  margin-bottom: 0;
}
.slider img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  filter: brightness(60%);
  transition: transform 10s ease;
}
.slider .slick-slide img {
  transform: scale(1);
}
.slider .slick-slide.slick-current.slick-active img,
.slider .slick-active img,
.slide:first-child img,
.slide.active img {
  transform: scale(1.05);
}
.slick-dots {
  bottom: -30px;
  text-align: center;
}
.slick-dots li button:before {
  content: '・';
  font-size: 20px;
  color: white;
  opacity: 0.5;
}
.slick-dots li.slick-active button:before {
  opacity: 1;
  color: #ffcc00;
}

/* スライドとキャプション */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease;
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 10s ease;
}
.caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 2rem;
  font-family: "Yu Mincho", serif;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding: 0.5em 1em;
  border-radius: 6px;
  background-color: transparent;
}

/* フェードオーバーレイ */
.fade-overlay {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 9999;
  opacity: 1;
  transition: opacity 2.5s ease;
  pointer-events: none;
}

/* アニメーション */
.fade-in-on-scroll,
.fade-up-on-scroll,
.floating-image {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.fade-in-on-scroll.visible,
.fade-up-on-scroll.visible,
.floating-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* リンク画像の明るさ調整 */
.link-image img {
  transition: filter 0.4s ease;
  filter: brightness(100%);
}
.link-image:hover img {
  filter: brightness(115%);
}

/* 商品セクション */
.product-list {
  padding: 40px 20px;
  background-color: #000;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-content: center;
}
.product-card {
  width: 300px;
  background-color: #111;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(255,255,255,0.05);
  text-align: center;
  transition: transform 0.3s ease;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: white;
}
.image-container {
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #000;
}
.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.image-container:hover img {
  transform: scale(1.05);
}
.product-info {
  padding: 15px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
}
.product-info h3 {
  font-size: 1.2em;
  color: #ffcc00;
  border-bottom: 1px solid white;
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.product-info p {
  font-size: 0.95em;
  color: #ccc;
  line-height: 1.5;
}

/* 言語切り替え */
.language-switch {
  margin-top: 40px;
  font-size: 16px;
  text-align: left;
}
.language-switch a {
  color: white;
  text-decoration: none;
  margin-right: 12px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.language-switch a:hover {
  opacity: 1;
}

/* レスポンシブ対応 */
@media screen and (max-width: 960px) {
  .product-card {
    width: 45%;
  }
}
@media screen and (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  #mobile-nav {
    display: block;
  }
  .main2 {
    transform: scale(0.9);
    transform-origin: top center;
  }
  .scale-wrapper {
    transform: scale(0.6);
  }

  .hamburger {
    top: 65px;
    right: 10px;
    transform: scale(0.9);
  }
}

/* 電話リンク（スマホのみ表示） */
.mobile-call-only {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .mobile-call-only {
    display: block !important;
  }
}