
/*メインビジュアル
------------------------------------------*/
.mv .worksMessage {
  position: absolute;
  bottom: -52px;
  right: 0;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  padding: 4.2%;
  /* background: #ffffff99; */
  background: #ecf5f799;
  backdrop-filter: blur(5px);
  border-radius: 20px;
}
/* .overlay-wh {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(98, 183, 222, 0.2) 18%, rgba(104, 173, 205, 0.2) 82%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  z-index: 3;
} */
.mv .mv_inner {
	z-index: 2;
}
/*糸から生地まで
------------------------------------------*/
/*ウェーブ背景*/
.bg_wave01 {
  width: 100%;
  /* height: 100vh; */
  background-image: url("../img/bg_wave01.png");
  background-size: cover;
  background-position: center;
}
.bg_wave02 {
  width: 100%;
  /* height: 100vh; */
  background-image: url("../img/bg_wave02.png");
  background-size: cover;
  background-position: center;
}
.bg_wave03 {
  width: 100%;
  /* height: 100vh; */
  background-image: url("../img/bg_wave03.png");
  background-size: cover;
  background-position: center;
}
.YarnToFabric {text-align: center;}
.YarnToFabricBox {
  padding: 4.2rem;
  backdrop-filter: blur(5px);
  background: #ffffff85;
  border-radius: 20px;
  height: -webkit-fill-available;
  text-align: left;
}
.YarnToFabricBox img {
  border-radius: 10px;
  width: 100%;
  height: 50vh;
  object-fit: cover;
}
.wave01list li:first-child {
  margin-bottom: 130px;
}
.wave01list li:nth-child(2) {
  margin-top: 130px;
}

/*生地
------------------------------------------*/
.contentBox2{
  /* max-width: 1200px; */
  margin: 0 auto;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
.imageContainer h5 {
  position: absolute;
  top: 0;
  left: 1.5rem;
  font-size: 3.5rem;
  opacity: 0.5;
}
.imageContainer img {
    width: 480px;
    height: 50vh;
    object-fit: cover;
}
.imageContainer .overlay {
  background-color: rgb(0 0 0 / 34%);
  opacity: 1;
  visibility: inherit;
  padding: 2rem;
}
.carouselLineup {
  /* flex-direction: column; */
}
.imageContainer .overlay p {
  margin-top: auto;
  color: #fff;
}
.carouselWrapper {
  /* padding: 4.2rem; */
  backdrop-filter: blur(5px);
  /* background: #ffffff85; */
}

/* スリックスライダー */
.my-slick{
	width: 100%; height: auto;/* Slickのサイズ */
	margin: auto; padding: 0px;
	/* background-color: silver; */
}
.my-slick img{
	width: 240px; height: 160px;/* 画像のサイズ */
}
.slick-prev:before,
.slick-next:before{
	color: black;
}
/* ==================================== */
/* カルーセル (my-slick) のカスタマイズ */
/* ==================================== */
.carouselWrapper {
    padding: 20px 0; 
}
.carouselLineup01 li {
    padding: 0 20px;
    outline: none;
}
.carouselLineup01 .slick-center .imageContainer {
    /*transform: scale(1.05);  中央の画像を少し拡大 */
    transition: transform 0.3s ease-in-out;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);  影で強調 */
}
.carouselLineup01 .imageContainer {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    height: 50vh;
}
.carouselLineup01 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carouselLineup01 .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    box-sizing: border-box;
    justify-content: flex-end;
    flex-direction: column;
}
/* 説明文の省略表示 (2行で省略する例) */
.carouselLineup01 .overlay p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px 0 0;
}
.carouselLineup01 button {
display: none !important;
}
/* ==================================== */
/* カルーセル矢印のカスタマイズ */
/* ==================================== */

/* Slick標準の「Previous」「Next」の文字を非表示にし、代わりに記号を設定 */
.slick-prev:before,
.slick-next:before {
    /* 標準の文字を上書き */
    font-family: 'slick'; /* フォントファミリーはそのまま */
    font-size: 30px; /* 記号のサイズ */
    line-height: 0.4;
    opacity: 0.75;
    color: #333; /* 矢印の色 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 「<」記号への変更 */
.slick-prev:before {
    content: '<'; /* 任意の記号に置き換え（HTML文字参照でも可: \2190など） */
}

/* 「>」記号への変更 */
.slick-next:before {
    content: '>'; /* 任意の記号に置き換え（HTML文字参照でも可: \2192など） */
}

/* 矢印ボタン自体のスタイル */
.slick-prev,
.slick-next {
    width: 40px;  /* ボタンの幅 */
    height: 40px; /* ボタンの高さ */
    z-index: 10;
    /* 背景を透明にし、ボタンを目立たなくする */
    background: transparent;
    border: 0;
    border-radius: 50%; /* 必要に応じて円形にする */
    transition: background-color 0.3s;
    font-size: 0; 
    line-height: 0;
    color: transparent;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: rgba(255, 255, 255, 0.5); /* ホバー時の背景色 */
}

/* PCでの非表示は引き続き行い、スマホでの配置を再調整 */
@media (min-width: 768px) {
    /* PCではボタンを非表示 (arrows: trueにしているので、CSSで非表示にする) */
    .carouselLineup01 .slick-prev,
    .carouselLineup01 .slick-next {
        display: none !important;
    }
}


/* --- スマートフォン (max-width: 767px) の修正 --- */
@media (max-width: 767px) {
    /* 以前のCSSにあった不要なボタン非表示設定を削除し、再配置のみ行う */
    .carouselLineup01 .slick-prev {
      position: absolute;
      top: 50%;
      left: 5px; /* 画面端からの距離 */
      transform: translateY(-50%);
    }
    .carouselLineup01 .slick-next{
      position: absolute;
      top: 50%;
      right: 5px; /* 画面端からの距離 */
      transform: translateY(-50%);
    }

    /* 左右の画像が見えにくい問題に対処するため、paddingを再度調整 */
    .carouselLineup01 li {
        padding: 0 10px; /* スライド間の左右のスペースを少し減らして、隣の画像を見やすく */
    }
}

@media (max-width: 767px) {
    .carouselLineup01 .imageContainer {
        /* height: 250px;  */
        /* height: 50vh; */
    }
    .carouselLineup01 li {
      /* width: 20% !important; */
    }
    .carouselLineup01 button {
      display: block !important;
    } 
    .carouselLineup01 .slick-prev {
      position: absolute;
      top: 50%;
      left: 0;
    }
    .carouselLineup01 .slick-next{
      position: absolute;
      top: 50%;
      right: 0;
    }
    .carouselLineup01 .slick-dots {
      display: none !important;
    }
}
/* ==================================== */
/* 拡大モーダル (enlargement-modal) のスタイル */
/* ==================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
}
.modal-content {
    background: #fff;
    padding: 30px 60px;
    max-width: 85%;
    max-height: 85vh;
    /* width: 600px; */
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    text-align: left;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #868686;
    cursor: pointer;
    transition: color 0.2s;
    /* ★ z-index を高くして、他の要素より手前に表示 ★ */
    z-index: 1000; 
    /* ★ タップしやすいようにクリック領域を確保 ★ */
    width: 40px; 
    height: 40px;
    line-height: 40px; /* 文字を垂直中央に */
    text-align: center; /* 文字を水平中央に */
}
.modal-close:hover {
    color: #98761b;
}
.modal-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}
.modal-title {
    font-size: 4em;
    color: #333;
    opacity: 0.5;
}
.modal-description {
    white-space: pre-wrap;
    font-size: 1.4em;
    line-height: 1.6;
    color: #555;
}
/* スマートフォンでの調整 */
@media (max-width: 767px) {
    .modal-content {
        padding: 15px;
        width: 95%;
    }
    .modal-close {
        top: 5px;
        right: 15px;
        width: 50px; 
        height: 50px;
        line-height: 50px;
        font-size: 35px; /* ボタンを大きく見せる */
    }
}






  
  



/*繊維製品
------------------------------------------*/
.textileProducts {
  text-align: center;
}
.productContainer {
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 40px;
}
.productImg img {
    width: 100%;
    height: 46vh;
    object-fit: cover;
}
.productContainer .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.productContainer .overlay {
  background-color: rgb(0 0 0 / 34%);
  opacity: 1;
  visibility: inherit;
  padding: 2rem;
}
.productContainer h5 {
  position: absolute;
  top: 1rem;
  left: 2.2rem;
  font-size: 2.8rem;
  font-weight: bold;
  opacity: 0.5;
}
.productContainer .overlay p {
  margin-top: auto;
  color: #fff;
}







/*タブレット・スマホ
------------------------------------------*/

@media screen and (max-width: 768px) {
/*ウェーブ背景*/
.bg_wave01 {
  background-image: url("../img/bg_wave01_sp.png");
}
.bg_wave02 {
  background-image: url("../img/bg_wave02_sp.png");
}
.bg_wave03 {
  background-image: url("../img/bg_wave03_sp.png");
}
  .col-start {
    /* display: block; */
  }
  .title_leftlong {
    padding: 1.5rem 1.5rem 1.5rem 5.6rem;
}
.title_leftlong::before {
    width: 2.2em;
}
.mv .worksMessage {
    position: absolute;
    bottom: -52px;
    right: 0;
    transform: translateX(-7%);
    -webkit-transform: translateX(-7%);
    padding: 4.2%;
    border-radius: 12px;
    width: 80%;
}
.mv .worksMessage p {
    font-size: 1.3rem;
}
.title_kakko {
    padding: 1rem 4.5rem;
    font-size: 2.2rem;
}

.YarnToFabricBox {
    padding: 2.2rem;
    border-radius: 15px;
    height: auto;
}
.YarnToFabric p {
  font-size: 1.3rem;
  text-align: left;
}
.YarnToFabricBox img {
    height: 30vh;
}
.wave01list li:first-child {
    margin-bottom: 20px;
    margin-right: 45px;
}
.wave01list li:nth-child(2) {
    margin-top: 20px;
    margin-left: 45px;
}
.wave01list p {
  font-size: 1.3rem;
}
.imageContainer img {
    width: 30vh;
    height: 50vh;
}
.productImg img {
    width: 100%;
    height: 50vh;
}
.imageContainer p {
    font-size: 1.2rem;
}
.productContainer .overlay p {
    font-size: 1.3rem;
}
.textileProducts p {
    font-size: 1.3rem;
    text-align: left;
}







}