/* ===== HERO TOP ===== */
.hero-top {margin-top: 64px!important;
  width: 100%; height: 50%; 
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;align-items: flex-start;
  overflow: hidden;
  color: #fff;
}
.hero-top > * {margin: 0; padding: 0;}
main#main {padding: 0;}
main#main > .hero-top {margin: 0;padding: 0;width: 100%;}
.hero-overlay {position: absolute;inset: 0;background:linear-gradient(0deg, rgba(0, 0, 0, 0.20) 0%, rgba(0, 0, 0, 0.20) 100%),
    radial-gradient(ellipse 50% 50% at 50% 50%, #4F345E 34%, #1F182D 100%); z-index: 1;}
.hero-content {position: relative; z-index: 2;text-align: center;}
.hero-img {max-width: 1000px;width: 100%;margin-top: 12px;}



/* セクション全体 */
.product-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 16px 64px;
  color: #fff;box-sizing: border-box;
}

/* タイトル */
.section-title {text-align: center;color: #55495C;
  font-size: clamp(24px, 2vw, 32px);;font-weight: 400;font-family: "Lexend Exa", sans-serif; letter-spacing: 3px; opacity: 0.4; mix-blend-mode: screen;
  margin-bottom: 24px;
}

/* グリッド */
.product-grid {display: grid;  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));  gap: 24px;}

/* カード */
.product-card {border-radius: 8px; text-align: center;}
.card-img {  aspect-ratio: 4/3;  border-radius: 6px;  overflow: hidden;}
.card-img img {  width: 100%;  height: auto;  display: block;}
.card-title {margin-top: 12px; margin-left: 4px; font-size: clamp(12px, 2vw, 18px); text-align: left; letter-spacing: 2px; text-transform: uppercase;}

/* レスポンシブ：SPで2列 */
@media (max-width: 768px) {
  .product-grid {
	  grid-template-columns: repeat(2, 1fr);}
  .product-section {padding-top: 32px;  width: 100%; }

  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 8px; /* カード間の余白を小さく */  }}


/* バナーセクション*/
.banner-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px 64px;
  box-sizing: border-box;
  color: #fff;
}

.section-title {
  text-align: center;
  font-size: clamp(1rem, 0.684rem + 1.35vw, 1.5rem);
  font-family: "Lexend Exa", sans-serif;
  opacity: 0.4;
  margin-bottom: 24px;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PCは4列 */
  gap: 16px;
}

.banner-img {
  width: 100%;
  aspect-ratio: 3/2;   /* サムネの比率を固定（240x160相当） */
  object-fit: cover;   /* 中央をトリミング */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.banner-img:hover {
  transform: scale(1.03);
}
/* animeセクション*/
.anime-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 8px 16px 64px;
  box-sizing: border-box;
  color: #fff;
}
.anime-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* PCは4列 */
  gap: 16px;
}
.anime-img {
  width: 100%;aspect-ratio: 1/1; 
  object-fit: cover;   /* 中央をトリミング */
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.anime-img:hover {
  transform: scale(1.03);
}

/* SPでは2列 */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .anime-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* ===== モーダル ===== */
.modal {
  display: none; /* JSでflexに切り替え */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease; /* 背景のフェード */
}

.modal.show {
  display: flex;
  opacity: 1;
}
.modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}


/* ===== Others Section ===== */
.others-section {
  width: 100%;
  margin: 0;
  padding: 40px 0;
  overflow: hidden;
}

.others-title {
  text-align: center;
  font-size: 32px;
  font-family: "Lexend Exa", sans-serif;
  font-weight: 400;
  color: #55495C;
  opacity: 0.4;
  letter-spacing: 3px;
  mix-blend-mode: screen;
  margin-bottom: 32px;
}

/* 横スクロール可 */
.others-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.others-track {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.others-card {
  flex: 0 0 auto;
  width: 500px;
  height: 304px;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.others-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.others-card:hover { transform: scale(1.03); }
.others-card:hover img { transform: scale(1.03); }

/* レスポンシブ */
@media (max-width: 1024px) {
  .others-card { width: 360px; height: 220px; }
}
@media (max-width: 768px) {
  .others-card { width: 280px; height: 180px; }
}
@media (max-width: 480px) {
  .others-card { width: 220px; height: 140px; }
}


/*==============mockup=============== */
.mockup-section {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 16px 20px;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  background: none;
}

/* 共通 */
.device {
  position: relative;
}

.device .screen {
  position: absolute;
  top: 11%; left: 11%;
  width: 78%; height: 77%;
  overflow-y: auto;     /* ← 外側をスクロール領域に */
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.device .screen::-webkit-scrollbar { display: none; }


/* imgバージョン */
.device .screen img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* iframeバージョン */
.device .screen iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 200%;
  border: none;
  display: block;
  z-index: 1;
}

/* PCモック */
.device.pc {
  position: relative;
  max-width: 600px;
  z-index: 1; /* 背面 */
}
.device.pc .screen {
  top: 11%; left: 11%;
  width: 78%; height: 77%;
  z-index: 1;
}
.device.pc .frame {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 5; /* PC用フレームは中層 */
  pointer-events: none;
}

/* SPモック */
.device.sp {
  position: absolute;
  top: 30%;
  right: 10%;
  max-width: 180px;
  z-index: 10; /* 前面に表示 */
}
.device.sp .screen {
  top: 3%; left: 7%;
  width: 85%; height: 92%;
  border-radius: 10px;
  z-index: 10;
}
.device.sp .frame {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 15; /* 一番前に固定 */
  pointer-events: none;
}

/*=========text=========*/
.text-section {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 64px;
  box-sizing: border-box;
}
.text-1{
  font-size: clamp(10px, 1vw, 14px);
  font-family: "jost", 'Noto Sans JP',sans-serif;
  color: #D1C4DD;letter-spacing: 0.15em;
  padding-bottom: 4%;
}
h1 {
  font-size: clamp(16px, 1vw, 24px);font-weight: 500;
  font-family: "jost", 'Noto Sans JP',sans-serif;
  letter-spacing: 0.2em;
  color: #D1C4DD;
}

section.lp-beta {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 12px 0 64px 0;
  color: #fff;
  box-sizing: border-box;
  display: flex;
  gap: 16px;
  justify-content: center;
  img{
    width: 300px;
    height: 1300px;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0.8;
  }
}

section.lp-mock {
  position: relative;
  width: 100%;
  max-width: 800px;
  min-width: 351px;
  margin: 0 auto;
  padding: 0 0 3% 0;
  border-radius: 8px;
  img {
    width: 100%;
    min-width: 351px;
    border-radius: 8px;
    opacity: 0.8;
  }
}

/* クラスごとに開始位置を変える */
section.lp-beta img.lp1 { object-position: 0% 0%; }   /* 左上から */
section.lp-beta img.lp2 { object-position: 0% 40%;}  /* 少し下から */
section.lp-beta img.lp3 { object-position: 0% 85.75%; }  /* 中央から */

section.back-page{
  width: 100%;
  max-width: 400px;
  margin: 0 auto 10% auto;
  text-align: center;
}
/*==========sp===========*/
@media screen and (max-width: 768px) {
  .mockup-section {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    justify-content: center;
}
.device.sp {
    position: absolute;
    transform: translate(10px, 120px);
  }

  .text-section{position: relative;
    width: 100%;
    max-width: 330px;
    margin: 160px 24px 24px 24px;
    padding: 0;
    box-sizing: border-box;}

  .btn-outline__label {
    font-size: 14px;
    letter-spacing: .32em;
    }
section.lp-beta {gap: 8px;}

}