body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
/* パララックス */



.parallax-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.parallax-item {
  will-change: transform;
}


/*horizon*/
.horizontal-text-section {
  height: 24vh;
  overflow: hidden;
  position: relative;
  background-color: #272C29;
  display: flex;
  align-items: center;
}

.scroll-text {
  font-size: 12vw;
  white-space: nowrap;
  color: white;
  font-weight:bolder;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
}

/* svg */
.masked {
  -webkit-mask-type: alpha;
  mask-type: alpha;
}

.logo-part {
  height: 480px;
  transition: all 0.3s ease;
}


#mainVideo {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask: url(#video-mask);
  -webkit-mask: url(#video-mask);
}


/* Mask */
.mask-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 4rem); /* 画像間の余白 */
  width: 100%;
  padding: 3rem 0;
  background-color: #fff; /* 背景確認用（任意で削除） */
}

.masked-item {
  width: 425px; /* 画像サイズに合わせて調整 */
  height: 480px;
  position: relative;
  overflow: hidden;
}

.masked-item img.masked {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-repeat: no-repeat;
  mask-size: contain;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
}




@media (max-width: 768px) {
  .mask-wrapper {
    flex-direction: row; /* 横並びに */
    align-items: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* スナップ感のあるスクロール */
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 2rem 1rem;
  }

  .masked-item {
    flex: 0 0 auto;
    width: 80vw;
    max-width: 425px;
    height: auto;
    aspect-ratio: 425 / 480;
    scroll-snap-align: center;
    overflow: hidden;
  }

  .masked-item img.masked,
  .masked-item video.masked {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-repeat: no-repeat;
    mask-size: cover;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    -webkit-mask-position: center;
  }
}

#fallbackImage {
  z-index: 999;
}

/* 色切り替え */

/* 白文字に切り替えるクラス */
.navbar-white .nav-link {
  color: white !important;
}

.navbar-white .navbar-brand img,
.navbar-white .logomark {
  filter: brightness(100);
}


.scroll-down-icon svg {
  transition: filter 0.8s ease;
}
.navbar-white .scroll-down-icon svg {
  filter: invert(1);
}
.navbar-white .ruby-menu {
  color: white !important;
}

.scroll-hint-wrapper {
  color: #272c29; /* 通常の黒 */
  transition: color 0.1s ease;
 
}
.navbar-white .scroll-hint-wrapper {
  color: #ffffff; /* 暗背景時は白に */
}/* scroll icon*/

.scroll-down-icon svg {
  animation: bounceDown 1.5s infinite;
  opacity: 1;
  transition: opacity 0.3s;
}

.scroll-down-icon:hover svg {
  opacity: 0.8;
}
.scroll-label {
  color: inherit; /* ← これが大事！ */
}
.text-white {
  color: white !important;
}


@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
/* card */
.card-scroll-wrapper {
  scrollbar-width: none;          /* Firefox */
}
.card-scroll-wrapper::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari */
}

.card-scroll-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding-bottom: 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.card-scroll-wrapper .card {
  min-width: 320px;
  max-width: 400px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}


.cropped-img {
  height: 320px; /* 好きな高さに調整 */
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cropped-img2 {
  height: 240px; /* 好きな高さに調整 */
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* -------------------------
   ベーススタイル
------------------------- */
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
.text-justify {
  text-align: justify;
}
.text-kern {
  letter-spacing: 0.01em; /* 例: 文字間を少し広げる */
}


/* -------------------------
   ナビゲーション
------------------------- */
.navbar {
  height: 80px;
  font-family: 'Inter', sans-serif;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  padding: 0 15px;

}

.navbar-toggler {
  border: none;
}


.logomark {
  height: 32px;
  mix-blend-mode: difference;
  filter: brightness(1.5) contrast(1.2);
}

.logotype {
  height: 20px;
  margin-left: 16px; /* ← 少し余白。調整してOK */
}

.ruby-wrap {
  position: relative;
  display: inline-block;
}


.ruby-text {
  position: absolute;
  top: -0.8em;
  left: 0.1em;
  font-size: 0.4em;
  white-space: nowrap;
  color: #272C29;
}

.ruby-menu {
  position: absolute;
  top: -1.2em;
  left: 0.1em;
  font-size: 0.6em;
  white-space: nowrap;
  color: #272C29;
  letter-spacing: 1.6px;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    justify-content: start;
    width: 100%;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #EFEDEA;
    z-index: 9999;
    padding: 2rem;
    overflow-y: auto;
    transition: all 0.3s ease;
  }

  .navbar-collapse.collapsing {
    height: 0 !important;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .navbar-collapse.show {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .navbar-nav .nav-link {
    font-size: 1.5rem;
    margin: 1rem 0;
    text-align: left;
  }

  #menuCloseBtn {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 10000;
    display: block;
  }
}

/* -------------------------
   スティッキーパララックス
------------------------- */

#stacked-wrapper {
  position: relative;
}

.stacked-parallax {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  margin-top: -30vh; /* ← 重なりのキモ */
  z-index: 1;
  box-shadow: 0 -20px 30px rgba(0, 0, 0, 0.1); /* ふわっと境目 */
}

.bg1 { background-image: url('../img/heroimg.png'); z-index: 1; }
.bg2 { background-image: url('../img/brand.jpg'); z-index: 2; }
.bg3 { background-image: url('../img/web.jpg'); z-index: 3; }  
.bg4 { background-image: url('../img/app.jpg'); z-index: 1; }
.bg5 { background-image: url('../movie/timeline.mp4'); z-index: 2; }
.bg6 { background-image: url('../img/corp.jpg'); z-index: 1; }
.bg7 { background-image: url('../img/bizc.jpg'); z-index: 2; }

.fixed-text {
  position: relative;
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.2; /* 行間を詰め気味に */
  color: white;
  z-index: 100;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixed-text h3 {
  transition: transform 0.5s ease, margin 0.5s ease, opacity 0.5s ease;
  transform: scale(0.5);
  margin: 0;         /* 非アクティブは上下の余白なしで詰める */
}

.fixed-text h3.active {
  transform: scale(3.8);
  margin: 2rem 0;    /* 拡大時に上下に余白を追加 */
  z-index: 1;        /* 前に出すことで他と重なりにくく */
}
#stacked-wrapper {
  position: relative;
  z-index: 10; /* .bg-overlay より下にしないこと！ */
}
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 700vh;
  background-color: rgba(0, 0, 0, 0.3); /* 半透明の黒 */
  pointer-events: none; /* クリックを透過させる */
  z-index: 100; /* fixed-text より前に出るように調整 */
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* -------------------------
   ヒーローセクション
------------------------- */
.bg-hero {
  background: url(../img/logo.png) no-repeat center center;
  background-size: contain;
}

.bg-hero1 {
  background: url(../img/heroimg.png) no-repeat center center;
  background-size: cover;
}
.bg-hero2 {
  background: url(../img/im2.jpeg) no-repeat center center;
  background-size: cover;
}
.bg-hero3 {
  background: url(../img/im3.jpg) no-repeat center center;
  background-size: cover;
}
.bg-hero4 {
  background: url(../img/heroimg.png) no-repeat center center;
  background-size: cover;
}

.hero-h1 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: bold;
  line-height: 2;
  letter-spacing: 1.2px;
}

.fs-7 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: dimgrey;
  font-family: 'Noto Sans', sans-serif;
}
.fc-1 {
  letter-spacing: 1.2px;
  color: dimgrey;
  font-family: 'Noto Sans', sans-serif;
}

/* -------------------------
   動画セクション
------------------------- */

/* -------------------------
   アニメーション
------------------------- */
.parallax-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.inner {
  text-align: center;
  font-size: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
}


/* -------------------------
   カード・ユーティリティ
------------------------- */




.noborder {
  border: none;
}

.custom-rounded-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.bg-body-offwhite {
  background-color: #EFEDEA;
}

.bg-body-white {
  background-color: rgba(255, 255, 255, 0.88);
}

/* -------------------------
   フッター
------------------------- */
footer .nav-link {
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767.98px) {
  footer .navbar-nav {
    flex-direction: column;
  }

  footer .nav-link {
    font-size: 10px;
    padding: 0.75rem 1rem;
  }
}

/* -------------------------
  メインアニメーション
------------------------- */



.navbar-invert {
  background-color: transparent !important; /* ここは好みに応じて */
}

.navbar-invert .nav-link {
  color: white !important;
}

.navbar-invert .navbar-brand img {
  filter: brightness(100); /* 白ロゴ画像でない場合は調整 */
}

.navbar-invert .navbar-toggler-icon {
  filter: invert(1);
}





.fs-2 {
  line-height: 1.6;
  font-size: 80%;
}