@charset "utf-8";
/*---------------- index_works --------------------*/

/*----------------
  works（セクション共通）
--------------------*/
#index_works {
    padding-top: 450px;
    background: #fff;
    position: relative;
    overflow: hidden;
}

#index_works .works_area {
    position: relative;
    overflow: hidden;
    /* 左を物理的に切る（右だけ覗かせたいのでここが重要） */
}

#index_works .vnote {
    position: absolute;
    right: 30%;
    top: 4%;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: .18em;
    line-height: 1.9;
    font-size: 3.2rem;
    color: #294C79;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
}

#index_works .top_ttl {
    max-width: 1490px;
    padding: 0 20px;
    margin: 0 auto 35px;
}

#index_works .works_lead {
    max-width: 675px;
    width: 100%;
    margin: 25px 0;
}

#index_works .top_ttl h2::before {
    color: #fff;
}

/* ================= Our Works（Slick） ================= */

/* スライダーの高さ枠 */
#index_works .slide {
    position: relative;
    background: transparent;
    height: clamp(420px, 56vw, 850px);
}

/* ▼重要：absolute配置はやめる（ズレ・余白増の原因になりやすい） */
#index_works .slide>.works-carousel {
    position: relative;
}

/* 右だけ覗かせる（覗かせ量：220px） */
#index_works .works-carousel .slick-list {
    overflow: visible;
    padding-right: 110px;

    /* 右端の“余計な空き”対策：スライド間隔(40px)ぶん相殺 */
    margin-right: 0;
}

/* 覗かせ分の幅ブレ防止（220px） */
#index_works .works-carousel {
    margin-right: -110px;
}

/* ★スライド間隔：ここだけで作る（40px） */
#index_works .works-carousel .slick-slide {
/*     padding-right: 0 !important; */
    /* 既存70px等を無効化 */
}

#index_works .works-carousel .slick-slide>div {
    position: relative;
    /* キャプション絶対配置の基準 */
/*     padding-right: 0; */
    /* ←スライド同士の間隔 */
}

/* 画像（PC） */
.works-carousel .pc_size {
    display: block;
    max-width: 1025px;
    width: calc(100% - 80px);
    height: auto;
    margin-left: 220px;
    border: none;
}

/* 画像（SP） */
.works-carousel .sp_size {
    display: none;
    width: 100%;
    height: auto;
}

/* キャプション（装飾はそのまま） */
.works-carousel .p_textBox {
    position: absolute;
    left: 175px;
    bottom: 247px;
    max-width: 730px;
    z-index: 5;
    background: #0050E6;
    color: #fff;
    padding: 30px;
    line-height: 1.8;
}

.works-carousel .p_textBox .slide_ttl {
    margin: 0 0 12px;
    font-size: 3.2rem;
    font-weight: 500;
    letter-spacing: .06em;
    color: #fff;
}

.works-carousel .p_textBox .slide_txt {
    margin: 0;
    letter-spacing: .03em;
    color: #fff;
}

/* ドット（装飾はそのまま） */
.works-carousel .slick-dots {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    bottom: 20%;
    left: 15%;
}

.works-carousel .slick-dots li {
    width: 64px;
    height: 4px;
    margin: 0;
}

.works-carousel .slick-dots li button {
    width: 100%;
    height: 100%;
    padding: 0;
}

.works-carousel .slick-dots li button:before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #D1D9E6;
}

.works-carousel .slick-dots li.slick-active button:before {
    background: #0050E6;
    opacity: 1;
}

.works-carousel .slick-dots li button:hover:before {
    filter: brightness(.92);
}

/* 矢印を消す（装飾の一部） */
.works-carousel .slick-prev,
.works-carousel .slick-next {
    display: none !important;
}

.works-carousel .slick-prev::before,
.works-carousel .slick-next::before {
    content: none !important;
}

/* ---------------- Responsive（Works） ---------------- */

/* スライド上下余白 */
@media (min-width: 1025px) {
    .works-carousel .slick-slide {
        padding: 0;
    }
}

@media (max-width: 1024px) {
    .works-carousel .slick-slide {
        padding: 24px 5px;
    }
}

/* スマホではPC/SP画像の出し分け */
@media (max-width: 767px) {
    .works-carousel .pc_size {
        display: none;
    }

    .works-carousel .sp_size {
        display: block;
    }
}

/* 1024px以下：覗かせをやめて縦積み */
@media (max-width: 1024px) {
    #index_works .slide {
        height: auto;
    }

    #index_works .works-carousel {
        margin-right: 0;
    }

    #index_works .works-carousel .slick-list {
        overflow: hidden;
        padding-right: 0;
        margin-right: 0;
    }

/*     #index_works .works-carousel .slick-slide>div {
        padding-right: 0 !important;
    } */

    .works-carousel .p_textBox {
        position: static;
        max-width: none;
        padding: 16px;
    }

    .works-carousel .p_textBox .slide_ttl {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

/*     .slide_txt {
        padding-right: 16px;
    } */

/*     .works-carousel .slick-dots {
        padding-left: 0;
    } */
}

/* ドット：スマホは中央寄せ＆サイズ縮小 */
@media (max-width: 767px) {
    .works-carousel .slick-dots {
        justify-content: center;
		z-index: 10;
/*         gap: 10px;
        margin: 14px 0 0; */
    }

    .works-carousel .slick-dots li {
        width: 36px;
        height: 3px;
    }
}

/*----------------
  projects（ここから下は元のまま）
--------------------*/
#index_projects {
    margin-top: 160px;
}

#index_works .projects_ttl {
    text-align: center;
    margin: 0 0 75px;
}

#index_works .projects_ttl h3 {
    font-size: 2.8rem;
    letter-spacing: 0.4rem;
    line-height: 2;
    padding-bottom: 65px;
}

.projects_slide {
    position: relative;
    margin-left: auto;
    overflow: hidden;
}

.projects_slide_area {
    position: relative;
    margin-left: auto;
/*     padding: 0 15% 0 0; */
    width: 100%;
    overflow: hidden;
}

/* swiperここから */
.swiper-wrapper {
    box-sizing: content-box;
    display: flex;
    height: 100%;
    position: relative;
    transition-property: transform;
    width: 100%;
    z-index: 1;
}

.swiper-slide {
    flex-shrink: 0;
    height: 100%;
    position: relative;
    transition-property: transform;
/*     width: 100%; */
}

.swiper-container {}

.swiper-wrapper {
  transition-timing-function: linear !important;
}

.projects_img {
    overflow: hidden;
    margin-bottom: 10px;
}

.projects_img img {
    width: 100%;
    vertical-align: bottom;
}

.projects_txt p {
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.43;
    letter-spacing: 0.06em;
    text-align: center;
    margin-bottom: 18px;
}

/*ページネーション*/
.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
    color: #000;
}

.projects_slide .swiper-button-prev {
    left: 65px;
}

.projects_slide .swiper-button-prev:after {
    color: #707070;
}

.projects_slide .swiper-button-next {
    right: 25px;
}

.projects_slide .swiper-button-next:after {
    color: #707070;
}

/* projects gallery */
.projects_gallery {
    max-width: 1740px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.projects_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 110px;
}

.projects_card {
    position: relative;
}

#index_works .projects_gallery figure {
    margin: 0;
    unicode-bidi: normal;
}

.projects_card figure {
    position: relative;
    overflow: visible;
    padding-bottom: 72px;
}

.projects_card figure>.overlay {
    display: block;
    overflow: hidden;
}

.projects_card .overlay img {
    display: block;
    width: 100%;
    height: auto;
}

.projects_caption {
    position: absolute;
    left: 55px;
    right: 55px;
    bottom: -129px;
    z-index: 2;
    background: #0050E6;
    color: #fff;
    padding: 30px 40px 50px;
    line-height: 1.65;
}

.projects_tag {
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1;
    letter-spacing: .03em;
    margin-bottom: 10px;
}

.projects_fac {
    font-size: 3.0rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin: 14px 0 10px;
}

.projects_txt {
    max-width: 640px;
    font-size: 1.6rem;
}

.projects_more {
    text-align: center;
    margin: 230px 0 0;
}

.btn_ext {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 25px 70px 25px 35px;
    border: 1px solid #294C79;
    color: #294C79;
    text-decoration: none;
    letter-spacing: 0.1em;
}

.btn_ext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 42px;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background: url(../../../img/popup_b.svg) center/contain no-repeat;
    pointer-events: none;
}

.projects_more:hover {
    opacity: .5;
    transition: all .3s ease;
}

@media screen and (max-width:767px) {

    #index_works .top_ttl {
        padding: 0;
    }

    #index_works {
        padding: 60px 0 50px 0;
    }

    #index_works .works_area {
        margin: 0 20px;
    }

    #index_works .top_ttl {
        margin: 0 auto 20px auto;
    }
	
	#index_projects {
    margin: 50px 20px 0 20px;
		padding-top: 50px;
	}
	
	#index_works .projects_ttl h3 {
		font-size: 1.8rem;
        line-height: 1.5;
        letter-spacing: 0.15rem;
        padding-bottom: 20px;
		text-align: left;
	}

    .projects_slide {
        /*margin-left: 20px;*/
    }
	
	.projects_gallery {
		padding: 0
	}

    .projects_grid {
        grid-template-columns: 1fr;
        gap: 24px;
		margin-top: 50px;
    }

    .projects_card figure {
        padding-bottom: 0;
    }
	
	.projects_caption {
    padding: 20px;
}
	
	.projects_fac {
		font-size: 1.8rem;
	}

    .projects_caption {
        position: static;
    }
	
	.projects_more {
		margin: 50px 0 0;
	}

    .btn_ext {
        padding: 10px 18px;
        border-width: 1.5px;
    }

    .works-carousel .p_textBox {
        left: 0;
        bottom: 0;
    }

    #index_works .vnote {
        writing-mode: unset;
        right: 20px;
        top: 20px;
        font-size: 1.6rem;
    }


    .works-carousel .slick-dots {
        bottom: 0;
        left: 0;
    }

}


/* ================= Our Works（Slick）右寄せ＋右チラ見せ ================= */

/* ① スライダー枠そのものを右寄せ（左に余白ができる） */
#index_works .slide {
    position: relative;
    background: transparent;
    height: clamp(420px, 56vw, 850px);

    max-width: 1240px;
    /* ←この幅が「見た目の基準」 */
    margin-left: auto;
    /* ←右寄せ */
    margin-left: 0;
}

/* absolute は使わない（ズレ・余白増の原因になりやすい） */
#index_works .slide>.works-carousel {
    position: relative;
}

/* ② 右だけ覗かせる（例：220px） */
#index_works .works-carousel .slick-list {
    overflow: visible;
    padding-right: 220px;
    /* ←2枚目のチラ見せ量 */
}

/* ③ 覗かせ分で全体幅がブレないよう相殺 */
#index_works .works-carousel {
    margin-right: -220px;
}

/* ④ スライド同士の間隔（例：40px）
   slick-slide に padding を入れると挙動が不安定になりやすいので、
   “中のdiv” にだけ付ける */
/* #index_works .works-carousel .slick-slide {
    padding-right: 0 !important;
} */

#index_works .works-carousel .slick-slide>div {
    position: relative;
    /* キャプションabsolute基準 */
/*     padding-right: 10px; */
    /* ←スライド間の空き */
}

/* ⑤ 右端だけ余計に空かないよう、空き分を相殺 */
/* #index_works .works-carousel .slick-list {
    margin-right: -15px;
} */


/* ★SlickがRTL扱いにならないように強制 */
#index_works .works-carousel,
#index_works .works-carousel .slick-list,
#index_works .works-carousel .slick-track {
    direction: ltr;
}



@media (max-width: 767px) {
  #index_works,
  #index_works .works_area {
    overflow: visible; /* ← dots が切られないように */
  }
	
	#index_works .works-carousel .slick-dots {
    left: 50%;
    transform: translateX(-50%);
    bottom: max(10px, env(safe-area-inset-bottom)); /* iPhone対策 */
    z-index: 50;
  }
}

#index_works .works-carousel {
  position: relative;
  z-index: 2;
}
#index_works .works-carousel .slick-dots {
  position: absolute;
  z-index: 50;
}

@media screen and (max-width: 767px) {

  /* スライド部分だけ「画面幅いっぱい」にする */
  #index_works .projects_slide {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  /*  右寄せ用の余白(15%)をスマホだけ消す */
  #index_works .projects_slide_area {
    padding-right: 0 !important;
    overflow: visible; /* 端が切れるなら */
  }
}

@media (min-width: 768px){
  #index_works .projects_slide,
  #index_works .projects_slide_area{
    overflow: visible; /* ←PCの“最後が欠ける”を潰す */
  }
}

/* =========================================================
   Swiper(all_slide) 用：止まらない最小構成
   ※ Slick（works-carousel）とは完全に分離
========================================================= */

/* PCで端が切れないように */
@media (min-width: 768px){
  #index_works .projects_slide,
  #index_works .projects_slide_area{
    overflow: visible;
  }
}

/* Swiperの幅計算を壊さない（超重要） */
/* .swiper-container.all_slide .swiper-slide{
  width: auto !important;
}
 */
/* スライドの見た目サイズは「中身」で制御 */
/* @media (min-width: 768px){
  .swiper-container.all_slide .projects_content{
    width: 450px;
  }
} */
/* @media (max-width: 767px){
  .swiper-container.all_slide .projects_content{
    width: 80vw;
  }
} */

/* 画像は必ず枠にフィット */
.swiper-container.all_slide .projects_img img{
  width: 100%;
  height: auto;
  display: block;
}

/* 等速スクロール */
.swiper-container.all_slide .swiper-wrapper{
  transition-timing-function: linear !important;
}
