/* リセット & ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* ヘッダーセクション */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background-color: #000;
  z-index: 1000;
  padding: 10px 15px;
  border-bottom: 1px solid #333;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.header.fade-in {
  opacity: 1;
}

.header-top-logo {
  text-align: center;
  padding: 2px 0;
  /* border-bottom: 1px solid #333; */
}

.header-top-logo img {
  max-width: 60px;
  height: auto;
  display: inline-block;
}

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

.logo-left svg {
  width: 30px;
  height: 30px;
}

.header-title {
  text-align: center;
  flex: 1;
}

.title-line1 {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.title-line2 {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.3px;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  width: 24px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s;
}

/* ファーストビュー（動画セクション） */
.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-label {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(0, 0, 50, 0.8);
  color: #fff;
  padding: 5px 15px;
  font-size: 12px;
  z-index: 10;
  border-radius: 3px;
}

.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.video-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.play-button {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.play-button:hover {
  opacity: 1;
}

.play-button svg {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

/* 商品一覧セクション */
.products-section {
  padding: 40px 20px;
  background-color: #000;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  background-color: #111;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.product-tag {
  display: inline-block;
  background-color: #ff0000;
  color: #fff;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.spec-bar {
  width: 100%;
  margin-top: 10px;
}

.spec-bar img {
  width: 100%;
  height: auto;
  display: block;
}

/* アパレルバナーセクション */
.apparel-section {
  padding: 40px 20px;
  background-color: #000;
  text-align: center;
}

.apparel-image {
  width: 100%;
  margin-bottom: 20px;
}

.apparel-image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.apparel-button {
  width: 100%;
  max-width: 300px;
  padding: 15px;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.apparel-button:hover {
  background-color: #fff;
  color: #000;
}

/* 商品詳細（カルーセル）セクション */
.product-detail-section {
  padding: 40px 20px 0 20px;
  background-color: #000;
}

.product-detail-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}

.product-detail-subtitle {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.carousel-container {
  position: relative;
  width: 100%;
}

.carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: height 0.3s ease;
}

.carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0px;
}

.carousel-slide.active {
  opacity: 1;
}

.slide-content {
  width: 100%;
}

.slide-image {
  width: 100%;
  margin-bottom: 20px;
}

.slide-image a {
  display: block;
  width: 100%;
}

.slide-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
}

.carousel-btn {
  position: absolute;
  top: calc(48px * 1.3 + 30px + 215px);
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.product-info {
  margin-bottom: 30px;
}

.product-tag-detail {
  display: inline-block;
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 15px;
  font-size: 12px;
  margin-bottom: 15px;
}

.product-description {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.8;
}

.product-description-bold {
  font-weight: bold;
}

.product-specs {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.spec-item {
  font-size: 16px;
  margin-bottom: 5px;
  color: #ccc;
}

.spec-weight {
  margin-bottom: 0;
}

.spec-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.color-lineup {
  margin-bottom: 30px;
}

.color-lineup:has(.color-grid:empty) {
  display: none;
}

.lineup-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.color-item {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
}

.color-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.color-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 商品詳細イメージ＋ボタンセクション */
.product-feature-section {
  padding: 40px 20px 40px 20px;
  background-color: #000;
}

.feature-carousel-container {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.feature-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.feature-carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.feature-carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-carousel-slide.active {
  opacity: 1;
}

.feature-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  background-color: #fff;
  border-radius: 5px;
}

.feature-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background-color 0.3s;
}

.feature-carousel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.feature-carousel-btn-prev {
  left: 10px;
}

.feature-carousel-btn-next {
  right: 10px;
}

/* 下部固定ボタンセクション */
.fixed-buttons {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 15px;
  justify-content: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fixed-buttons.fade-in {
  opacity: 1;
}

.feature-btn {
  flex: 1;
  max-width: 200px;
  padding: 15px;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.feature-btn:hover {
  background-color: #fff;
  color: #000;
}

/* フッターセクション */
.footer {
  padding: 30px 20px;
  background-color: #000;
  text-align: center;
  border-top: 1px solid #333;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.footer.fade-in {
  opacity: 1;
}

.copyright {
  font-size: 12px;
  color: #999;
}

/* PC表示時の中央固定 */
@media (min-width: 481px) {
  body {
    background-color: #111;
  }
}
