@charset "UTF-8";

body {
    font-family: "EB Garamond", serif;
    letter-spacing: 0.1rem;
    color: #222;
}

h2 {
    color: #fff;
    font-size: 2rem;
    font-style: italic;
}

h4 {
    font-size: 2rem;
}

.slider-content {
    bottom: 10%;
    left: 6%;
    display: flex;
    justify-content: space-between;
    height: 100vh;
    align-items: flex-end;
    padding: 4rem 4rem;
}

.slider-text {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

p {
    line-height: 2rem;
}

/* カーソル */
/*デフォルトのマウスカーソルを非表示にする*/
html,
body,
a {
  cursor: none;
}

/*独自のマウスカーソルを作成*/
.cursor {
  position: fixed;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #888;
  z-index: 1000;
  transition: width 0.5s, height 0.5s, top 0.5s, left 0.5s;
  transform: translate(0, 0);
  pointer-events: none;
}

/*aタグにホバーした時に見た目変化*/
.cursor.cursor--hover {
  top: -20px;
  left: -20px;
  width: 50px;
  height: 50px;
  background: rgba(205, 114, 113, 0.5);
}

/*動き確認用ボタン*/
.btn {
  display: inline-block;
  min-width: 300px;
  margin: 20px;
  padding: 20px;
  color: #fff;
  background-color: #000;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.w-container {
  width: 100%;
  max-width: 1400px;  /* 1200より少し大きく */
  margin: 0 auto;
  padding: 0 6rem;
}







/* title */
    .vertical-title {
      writing-mode: vertical-rl;
      text-orientation: mixed;
      font-size: 1rem;
      font-family: serif;
      position: relative;
      margin: 4rem 2rem;
      color: #888;
    }

    .vertical-title::before {
      content: "";
      position: absolute;
      width: 1px;
      height: 100%;
      background-color: #888;
      top: 0;
    }

    .vertical-title::before {
      left: -10px; /* 左線との距離調整 */
    }

    .vertical-title::after {
      right: -10px; /* 右線との距離調整 */
    }


    
/* 縦書き日本語 */
    .vertical-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 18px;
    line-height: 4rem;
    white-space: pre-wrap;
    margin-top: 4rem;
    font-size: 0.9rem;
    }

/* bland-story */
.bland-story {
    display: flex;
    padding-bottom: 6rem;
    margin-top: -12rem;
    background-image: url("img/sketch.png");
    background-size: contain;    /* 画像全体を収める（余白が出ることも） */
    background-size: 60%;        /* 要素の50%の幅（高さは自動） */
    background-position: 100% 0%;      /* 横・縦の中央 */
    background-repeat: no-repeat; /* 一回だけ表示（よく使う） */

}

.bland-story2 {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 2rem;
    background-image: url("img/map.png");
    background-size: contain;    /* 画像全体を収める（余白が出ることも） */
    background-size: 40%;        /* 要素の50%の幅（高さは自動） */
    background-position: 8% 0%;      /* 横・縦の中央 */
    background-repeat: no-repeat; /* 一回だけ表示（よく使う） */
}



.story h4,.story p{
    margin-bottom: 2%;
}

.story p {
    line-height: 5rem;
    font-size: 1rem;
    width: 70%;
}

.story h4 {
    line-height: 5rem;
}


.story2 p {
    width: 60%;
    margin-bottom: 1rem;
    line-height: 5rem;
    font-size: 1rem;
    margin-left: auto; /* ← 左側を自動にして右に押し出す */
    margin-right: 2rem;
    margin-top: 6rem;
}

.bland-story-btn {
    text-align: right;
    margin-bottom: 4rem;
    margin-right: 6rem;
}

.bland {
    margin-bottom: 10rem;
    margin-top: 6rem;
}

/* 31 */

.MW31-box {
    display: flex;
    align-items: center;
}

.MW31-box figure,
.MW31-box .MW31-text {
    flex: 1;
    box-sizing: border-box;
}

.MW31-text h4  {
    margin-bottom: 2rem;
}

.MW31-box.reverse {
    flex-direction: row-reverse;
}

.basic .MW31-text p,.basic .MW31-text h4{
    margin-left: 5rem;
}

.MW31-text h4 {
    font-size: 1.7rem;
}

.MW31 {
    margin-top: -4rem;
}

.reverse .MW31-text p,.basic .MW31-text h4 {
  margin-right: 5rem;
}

.MW31-title {
  color: #888;
}

.reverse p {
  margin-bottom: 2rem;
}

.item-text-area h2{
  color: #888;
  margin-bottom: 1rem;
}






/* 流れる文字 */

.container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  margin: 3rem 0;
}
.wrapper {
  display: flex;
  animation: loop-text 15s linear infinite;
}
.double-content {
  display: inline-block;
  font-size: 6rem;
  white-space: nowrap;
  color: #c6c6c6;
}
@keyframes loop-text {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.MW31-mobile {
  display: none;
}


/* movie */
.movie video {
  width: 30rem;         /* 任意のサイズ */
  height: 30rem;        /* 横と縦を同じにして1:1 */
  border-radius: 50%;   /* これで丸くする！ */
  object-fit: cover;    /* はみ出さないようにトリミング */
  display: block;
  overflow: hidden;
}

.open-box {
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 8rem;
  gap: 4rem;
}

.open-box p ,.open-box h4 {
  color: #fff;
}

.open-box h4 {
  margin-bottom: 1rem;
}

.red {
  color: rgb(122, 44, 43);
}

.openheart {
  background-color: #000;
  margin-top: 8rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 2s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}


.open-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 左揃え（テキストは左に揃えたい場合） */
  gap: 1rem; /* h4とp、ボタンの間の余白 */
  position: relative;
}

.open-text .btnlinestretches5 {
  align-self: flex-end; /* ボタンだけ右端に寄せる */
}

#animated-text {
  transition: opacity 0.8s ease;
  display: inline-block;
}


/* dital */

.dital-area {
  display: flex;
  gap: 4rem;
  padding-top: 8rem;
  padding-bottom: 8rem;

  /* 高さ揃えるために子要素を等高に */
  align-items: stretch;
}

.madeinjp {
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

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

.dial-box h3{
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.dial-box {
  display: flex;
  flex-direction: column; /* お好みで */
  flex: 1;             /* 幅も揃える */
}






/* series */

.series-box {
  display: flex;
  width: 100%;
}

.img-wrapper {
  width: 33.3333%;
  aspect-ratio: 2 / 3; /* ← これで縦長比率に */
  overflow: hidden;
}

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

/* リンクをブロック要素にし親と同じサイズに */
.img-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none; /* 下線消し */
  color: inherit;        /* 文字色継承 */
}

/* 画像 */
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity 0.3s ease; /* アニメーション */
}

.img-wrapper {
  position: relative;
  width: 33.3333%;
  height: 600px;  /* 400px → 600px に伸ばす */
  overflow: hidden;
}


/* ホバー時に画像を薄く */
.img-wrapper a:hover img {
  opacity: 0.6;
}

/* 文字はホバーでもそのまま */
.overlay-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1rem;
  text-shadow: 0 0 5px rgba(0,0,0,0.7);
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease; /* 文字色変化など追加するなら */
}



/* designer */

.topic {
 margin-top: -4rem;
 margin-bottom: 8rem;
}

.slide-caption {
  font-size: 1.5rem;
  color: #888;
  margin-top: 1rem;
}

/* スライダーの幅調整 */
.slider-news {
  width: 94%;
  margin: 8rem auto;

}

.slider-news img {
  width: 100%;
  height: auto;
}

/* slick-slide の余白 */
.slider-news .slick-slide {
  margin: 0 10px;
}

/* 矢印 */
.slider-news-prev,
.slider-news-next {
  position: absolute;
  top: 42%;
  cursor: pointer;
  outline: none;
  border-top: 2px solid #666;
  border-right: 2px solid #666;
  height: 15px;
  width: 15px;
  z-index: 1;

}

.slider-news-prev {
  left: -1.5%;
  transform: rotate(-135deg);

}

.slider-news-next {
  right: -1.5%;
  transform: rotate(45deg);
}

.slider-news-prev,
.slider-news-next {
  display: none !important;
}

/* ドット */
.slider-news-dots {
  text-align: center;
  margin: 20px 0 0 0;
}

.slider-news-dots li {
  display: inline-block;
  margin: 0 5px;
}

.slide-item .btnlinestretches52 {
  font-size: 0.7rem;
}

.slider-news-dots button {
  color: transparent;
  outline: none;
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 50%;
  background: #ccc;
}

.slider-news-dots .slick-active button {
  background: #333;

}

.slider-news img {
  width: 100%;
  height: 250px; /* 任意の高さに固定 */
  object-fit: cover;
  display: block;
}


/* footer */

.footer-area {
  background-color: #999;
  display: flex;
  justify-content: space-between;
  align-items: end; /* ← centerの方が自然 */
  padding: 6rem;
  flex-wrap: wrap; /* ← スマホ対応にも有効 */
}


.footer-area #g-navi ul {
  flex-direction: column;
  margin-top: 1rem;
}

.footer-area #g-navi ul a{
  padding: 8px;
}

.contact-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;   /* 背景を透明に */
  color: #fff;                     /* 文字を白に */
  border: 1px solid #fff;          /* 白い枠線 */
  border-radius: 30px;              /* 丸みのある角 */
  text-decoration: none;           /* 下線なし */
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #fff;          /* ホバー時に白背景 */
  color: #000;                     /* ホバー時に文字を黒へ */
}


.footer-area #g-navi2 ul {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.footer-area #g-navi2 ul a {
  padding: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  transition: all 0.3s ease;
}

.footer-area #g-navi2 ul a:hover {
  color: #000;
  border-radius: 4px;
}


/* mw31ページ */

.main-img {
  background-image: url(img/top1.png);
  background-size: cover;
  background-position: center;
  height: 100vh; /* または任意の高さ */
  display: flex;
  align-items: flex-end; /* 子要素を下に揃える */
  padding: 60px; /* 下に少し余白を加える */
  box-sizing: border-box; /* padding込みでも崩れないように */
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.main-img2 {
  background-image: url(img/top2.png);
  background-size: cover;
  background-position: center;
  height: 100vh; /* または任意の高さ */
  display: flex;
  align-items: flex-end; /* 子要素を下に揃える */
  padding: 60px; /* 下に少し余白を加える */
  box-sizing: border-box; /* padding込みでも崩れないように */
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.main-img3 {
  background-image: url(img/top3.png);
  background-size: cover;
  background-position: center;
  height: 100vh; /* または任意の高さ */
  display: flex;
  align-items: flex-end; /* 子要素を下に揃える */
  padding: 60px; /* 下に少し余白を加える */
  box-sizing: border-box; /* padding込みでも崩れないように */
      text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.items-box {
  text-align: center;
}

.all-items {
  margin-top: 4rem;
  padding-left: 8rem;
  padding-right: 8rem;
}

.items-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 20px;
}

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

.items-area3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 60px;
}

.items-area3 {
  display: flex;
  justify-content: center;
}

.items-area3 img {
  width: 250px;
}


@media (max-width: 768px) {
  .items-area {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  }

    .items-area2 {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  }

    .items-area3 {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
  }
}

.mw31-text h2{
  color: #777;
  text-align: center;
  margin-top: 8rem;
  margin-bottom: 8rem;
}

.image img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 8rem;
}

.sketchimg img {
  display: block;
  margin-left: auto;
  width: 30%;
  margin-top: -20rem;
}




#scroll-trigger-container {
  position: relative;
  height: 700vh; /* 7つ分の高さ */
}

.scroll-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  opacity: 0;
  transition: opacity 0.5s ease;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 10;
}

.scroll-panel.active {
  opacity: 1;
}

.scroll-panel .left, .scroll-panel .right {
  width: 50%;
  padding: 40px;
  box-sizing: border-box;
}



.scroll-panel .right img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.right {
  display: flex;
}

.left h2 {
  color: #777;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .scroll-panel {
    position: relative; /* stickyを解除 */
    height: auto;       /* 内容に合わせる */
    flex-direction: column; /* 縦並び */
    text-align: center;
    padding: 40px 20px; /* 余白調整 */
  }

  .scroll-panel .left, 
  .scroll-panel .right {
    width: 100%;
    padding: 20px 0;
  }

  .scroll-panel .right img {
    max-width: 100%;
    max-height: none; /* 高さ制限を解除 */
  }

    #scroll-trigger-container {
    height: 900vh; /* 余裕を持って多めに設定 */
  }
}




/* ギャラリー */

.watch-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  gap: 16px;
  background-color: #fff;
  margin-bottom: 8rem;
}

.gallery-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-left img,
.gallery-right img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-left {
  max-width: 48%;
}

.gallery-right {
  max-width: 48%;
}

@media (max-width: 768px) {
  .watch-gallery {
    flex-direction: column;
    padding: 20px;
  }

  .gallery-left,
  .gallery-right {
    max-width: 100%;
  }
}


/* topic */

.topics {
  margin-top: 8rem;
}

.news-img-box {
  display: flex;
  gap: 1rem;           /* 画像間の隙間 */
  flex-wrap: nowrap;    /* 折り返さない */
  max-width: 100%;      /* はみ出さない */
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.news-img-box2 {
  display: flex;
  gap: 1rem;           /* 画像間の隙間 */
  flex-wrap: nowrap;    /* 折り返さない */
  max-width: 100%;      /* はみ出さない */
  margin: 0 auto;
  margin-top: 4rem;
  margin-bottom: 4rem;
}



.news-img-box img {
  width: calc((100% - 2rem) / 3); /* 3つ横並び + gap分を引く */
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .news-img-box {
    flex-direction: column; /* 縦並び */
    gap: 1rem; /* 下にスペースを確保 */
    padding: 0 1rem; /* 横の余白を維持 */
  }

  .news-img-box img {
    width: 100%; /* 親の幅に収める */
    max-width: 100%; /* はみ出さないように追加 */
    height: auto;
  }
}

.news-img-box2 img {
  width: calc((100% - 2rem) / 2); /* 3つ横並び + gap分を引く */
  height: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .news-img-box2 {
    flex-direction: column; /* 縦並び */
    gap: 1rem; /* 下にスペースを確保 */
    padding: 0 1rem; /* 横の余白を維持 */
  }

  .news-img-box2 img {
    width: 100%; /* 親の幅に収める */
    max-width: 100%; /* はみ出さないように追加 */
    height: auto;
  }
}

.news-text {
  margin-bottom: 12rem;
}

.line {
  height: 0.5px;
  background-color: black;
  width: 100%;
  margin: 100px 0;
}

/* contact全体レイアウト */
/* --- CONTACT SECTION --- */
.contact {
  max-width: 700px;
  margin: 8rem auto;
  padding: 2rem;
  font-family: Arial, sans-serif;
  color: #333;
}

.contact h4 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.contact > p {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* --- COMPANY INFO --- */
.contact-info {
  text-align: left;
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
}

/* --- FORM --- */
.contact-form {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-item {
  margin-bottom: 1.5rem;
}

.form-item label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.form-item input,
.form-item textarea {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-item input:focus,
.form-item textarea:focus {
  border-color: #000000; /* 海外サイトでよくあるブルー系 */
  outline: none;
}

/* --- BUTTON --- */
.form-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #000000;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-btn:hover {
  background: #000000;
}




@media screen and (max-width: 768px) {
  /* 通常メニュー非表示 */
  #g-navi {
    display: none;
  }

.top-slider {
  margin-bottom: 8rem;
}

.slider-content {
  justify-content: center;
}

.bland-story {
  flex-direction: column;
}

}

/* スマホ用調整 */
@media (max-width: 768px) {
  .movie video {
    width: 20rem;     /* 小さくする */
    height: 20rem;    /* 比率維持のため同じ値 */
  }

  .open-box {
    flex-direction: column; /* 横並びを縦並びに */
    gap: 2rem;              /* 間隔を少し狭く */
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .open-text .btnlinestretches5 {
    align-self: center;     /* ボタンを中央寄せに変更可 */
  }

  .MW31 {
    display: none;
  }

  .w-container {
    padding: 0 1rem;
  }

  .story p {
    width: 100%;
    line-height: 3rem;

  }

  .vertical-title {
    margin: 0rem 2rem;
    writing-mode: unset;
  }

  .bland {
    margin-top: 12rem;
  }

  .vertical-text {
    display: none;
  }

  .bland-story {
    display: flex;
    padding-bottom: 6rem;
    margin-top: -12rem;
    background-image: url("img/sketch.png");
    background-size: contain;    /* 画像全体を収める（余白が出ることも） */
    background-size: 120%;        /* 要素の50%の幅（高さは自動） */
    background-position: 0% 0%;      /* 横・縦の中央 */
    background-repeat: no-repeat; /* 一回だけ表示（よく使う） */

}

.bland-story2 {
    display: flex;
    flex-direction: row-reverse;
    margin-top: 2rem;
    background-image: url("img/map.png");
    background-size: contain;    /* 画像全体を収める（余白が出ることも） */
    background-size: 80%;        /* 要素の50%の幅（高さは自動） */
    background-position: 8% 0%;      /* 横・縦の中央 */
    background-repeat: no-repeat; /* 一回だけ表示（よく使う） */
}

.story2 p {
  width: 100%;
  line-height: 3rem;
  margin-top: -2rem;

}

.open-box {
  padding-top: 8rem;
  padding-bottom: 8rem;

}



.dital-area {
  flex-direction: column;
  padding-top: 8rem;
  padding-bottom: 8rem;
}
}

@media (max-width: 768px) {
/* スマホ用はPCと分けて縦並び */
.MW31-mobile {
  display: flex;
  flex-direction: column; /* 縦並び */
  gap: 3rem; /* セクション間の余白 */
  padding: 2rem 1rem;
}

.MW31-box-mobile {
  display: flex;
  flex-direction: column; /* 画像→テキスト */
  align-items: center;
  gap: 1.5rem;
}

.MW31-box-mobile figure {
  width: 100%;
  max-width: 400px; /* 画像の最大幅 */
}

.MW31-box-mobile img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}



.MW31-text-mobile h4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.MW31-text-mobile p {
  margin-bottom: 1rem;
}

.MW31-text-mobile a.btnlinestretches52 {
  display: inline-block;
  margin-top: 1rem;
}

/* スマホ用レイアウト */
@media screen and (max-width: 768px) {
  .series-box {
    flex-direction: column; /* 縦並びに変更 */
    margin-bottom: 8rem;
  }

  .img-wrapper {
    width: 100%;           /* 画面幅いっぱい */
    aspect-ratio: 3 / 2;   /* 横長比率に変更（横3:縦2） */
  }

  .footer-area {
    padding: 2rem;
  }
}
}

/* スマホ用レイアウト（幅768px以下） */
@media screen and (max-width: 768px) {
  .scroll-panel {
    flex-direction: column; /* 縦並びに変更 */
    text-align: center;     /* テキスト中央寄せ（必要に応じて） */
  }

  .scroll-panel .left, 
  .scroll-panel .right {
    width: 100%;     /* 幅を100%にして縦に積む */
    padding: 20px;   /* 余白を少し減らす（任意） */
  }

  .scroll-panel .right img {
    max-width: 100%; /* 画像を横幅にフィットさせる */
    height: auto;    /* 縦横比を維持 */
    max-height: none; /* 80vh制限を解除（必要に応じて） */
  }

  .cursor {
    display: none;
  }
}

.items-area3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* PCは3列 */
  gap: 60px;
  justify-items: center; /* 画像を中央寄せ */
}

.items-area3 img {
  width: 250px;
}

/* スマホ時（画面幅768px以下） */
@media screen and (max-width: 768px) {
  .items-area3 {
    grid-template-columns: repeat(2, 1fr); /* 2列に変更 */
    gap: 30px; /* スマホ用の間隔調整 */
  }

  .items-area3 img {
    width: 150px; /* スマホで小さくしたい場合調整 */
  }
}





/* PCでは今まで通り sticky 演出 */
#scroll-trigger-container {
  position: relative;
  height: 700vh; /* PC用: パネル数×100vh */
}

.scroll-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  opacity: 0;
  transition: opacity 0.5s ease;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 10;
}

.scroll-panel.active {
  opacity: 1;
}

/* スマホでは sticky やめて普通に縦並び */
@media (max-width: 768px) {
  #scroll-trigger-container {
    height: auto; /* 自動高さにする */
  }

  .scroll-panel {
    position: relative; /* stickyを解除 */
    height: auto;       /* 内容に応じた高さ */
    flex-direction: column; /* 縦並び */
    opacity: 1;         /* 常時表示、JSでfade不要なら */
    padding: 40px 20px;
    text-align: center;
  }

  .scroll-panel .left, 
  .scroll-panel .right {
    width: 100%;
    padding: 20px 0;
  }

  .scroll-panel .right img {
    max-width: 100%;
    height: auto;
    max-height: none;
  }

  .slider-content {
    justify-content: space-between;
    padding: 7rem 1rem;
  }

}

/* PCでは今まで通り sticky 演出 */
#scroll-trigger-container {
  position: relative;
  height: 700vh; /* PC用: パネル数×100vh */
}

.scroll-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  opacity: 0;
  transition: opacity 0.5s ease;
  align-items: center;
  justify-content: center;
  background: white;
  z-index: 10;
}

.scroll-panel.active {
  opacity: 1;
}

/* スマホでは sticky やめて普通に縦並び */
@media (max-width: 768px) {
  #scroll-trigger-container {
    height: auto; /* 自動高さにする */
  }

  .scroll-panel {
    position: relative; /* stickyを解除 */
    height: auto;       /* 内容に応じた高さ */
    flex-direction: column; /* 縦並び */
    opacity: 1;         /* 常時表示、JSでfade不要なら */
    padding: 40px 20px;
    text-align: center;
  }

  .scroll-panel .left, 
  .scroll-panel .right {
    width: 100%;
    padding: 20px 0;
  }

  .scroll-panel .right img {
    max-width: 100%;
    height: auto;
    max-height: none;
  }
}

