/* 共通============================================== */

.content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: #fff;
    padding: 5rem 0;
}

.ttl-group {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.top-ttl {
    font-family: "Open Sans", sans-serif;
    font-size: 2.625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #00547D;
    margin: auto 0;
    padding: 0;
}

.top-subttl {
    color: #011018;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0;
}

.top-description {
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 3.19rem;
    text-align: center;
}
@media (max-width: 768px) {
.content-wrapper {
    padding: 6.25rem 1.25rem 0;
}
.top-description {
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 800px;
    margin: 1.88rem 0 0;
    text-align: center;
}
}


/* fv ==============================================*/

.fv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5rem;
    z-index: 1;
    color: var(--secondary-color);
    background-image: url(../../assets/top/fv-top.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.fv::before {
    content: ""; /* 空のコンテンツを生成 */
    position: absolute; /* 親要素を基準に配置 */
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(18, 18, 18, 0.10) 0%, rgba(76, 76, 76, 0.30) 50%, rgba(91, 91, 91, 0.50) 100%);
    pointer-events: none; /* マスク部分がクリックなどの操作を妨げないようにする */
    z-index: 1;
}
.fv-ttl {
    will-change: transform, opacity;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 10;
    padding-left: 5vw;
}
.subTitle {
    font-size: var(--font-size-p);
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.fv-mainTitle {
    color: #fff;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.16);
    font-size: 3.125rem;
    font-family: "source-han-sans-japanese", sans-serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.3125rem;
}

.fv-subTitle {
    opacity: 0.9;
    color: #fff;
    font-weight: 500;
    text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.16);
    font-family: "Open Sans", serif;
    font-size: 0.9375rem;
    letter-spacing: 0.04688rem;
    font-style: normal;
    line-height: normal;
}

.fv-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    width: 100%;
}

@media (max-width: 1200px) {
    .fv{
        padding: 0 1.88rem;
        background-position: 65% 50%;
    }
    }

@media (max-width: 768px) {
    .fv {
        background-position: 65% 50%;
    }
    .fv-ttl {
        margin-top: 4.5rem;
    }
    .fv-mainTitle {
        font-size: 1.875rem;
        letter-spacing: 0.1875rem;
    }
    .fv-subTitle {
        font-size: 0.5625rem;
        letter-spacing: 0.01688rem;
    }
}

/* メッセージ============================================== */
.message-highlight.flex.items-center.justify-center {
    margin-top: 5rem;
}


.message-section {
    position: relative;
    background-color: transparent;
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s ease;
    margin-top: 100vh;
    z-index: 2;
}

.message-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.message-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 3rem 3rem 8rem;
    border-radius: 8px;
    color: #fff;
}

.message-text {
    font-size: 1.625rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #fff;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
    font-weight: 600;
}

  .flex {
    display: flex;
  }
  
  .items-center {
    align-items: center;
  }
  
  .justify-center {
    justify-content: center;
  }
  
  
  .w-full {
    width: 100%;
  }
  
  .space-y-8 > * + * {
    margin-top: .5rem;
  }
  
  .inline-block {
    display: inline;
  }
  
  .relative {
    position: relative;
  }
  
  .overflow-hidden {
    overflow: hidden;
  }
  
  .invisible {
    visibility: hidden;
  }
  
  .absolute {
    position: absolute;
  }
  
  .top-0 {
    top: 0;
  }
  
  .left-0 {
    left: 0;
  }
  
  .w-full {
    width: 100%;
  }

  
  .h-full {
    height: 100%;
  }
  
  .text-7xl {
    color: #FFF;
    font-size: 2rem;
    line-height: normal;
    letter-spacing: 0.1rem;
  }
  
  .font-bold {
    font-weight: bold;
  }
  
  .message-first-text {
    color: #fff;
    background: #00547D;
    padding: 0 1rem;
}
  
  .mb-2 {
    margin-bottom: 0.5rem;
  }
  
  
  .bg-blue-500 {
    background-color: #00547D;;
  }
  
  .transform {
    transform: translateX(0);
  }
  
  .transition-transform {
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  .transition-opacity {
    transition: opacity .5s ;
  }
  
  .opacity-0 {
    opacity: 0;
  }
  
  .opacity-100 {
    opacity: 1;
  }
  .z-100 {
    z-index: 100;
  }
  /* 文字が表示されるクラス */
.char.hidden {
    opacity: 0;
}

.char.show-char {
    opacity: 1;
    transition: opacity 0.1s ease-in; /* 瞬時に表示 */
}
@media (max-width: 1200px) {
    .message-text {
        font-size: 1.125rem;
        font-weight: 400;
        line-height: 1.75rem; /* 155.556% */
        letter-spacing: 0.05625rem;
        text-transform: lowercase;
    }
    .text-7xl {
        font-size: 1.5rem;
        font-weight: 700;
        letter-spacing: 0.075rem;
    }
}
@media (max-width: 768px) {
    .message-wrapper {
        padding: 0;
        padding: 0 0 4rem;

    }
}

/* クライアント ==============================================*/

/* 🔹 スライダーのコンテンツ全体 */
#client-slider .splide-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* 🔹 PC用スライダー */
#client-slider-pc {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px; /* PCのスライダーの高さ */
    margin-top: 5rem;
}

/* 🔹 スマホ用スライダー */
#client-slider-mobile {
    display: none !important;
}

/* 🔹 各スライダー（Splide） */
#client-slider .splide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: visible !important;
}

/* 🔹 スライダーのトラックを上下中央に */
#client-slider .splide__track {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 🔹 各スライドの高さを揃える */
#client-slider  .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* 🔹 ロゴ画像を中央配置 */
#client-slider .splide__slide img {
    width: auto;
    object-fit: contain;
    display: block;
    margin: auto; /* 画像を中央に配置 */
}

/* 🔹 スマホでは `.slider3`, `.slider4`, `.slider5`, `.slider6` を表示 */
#client-slider
.slider3, .slider4, .slider5, .slider6 {
    display: none;
}


@media (max-width: 768px) {
    /* 🔹 スライダーのコンテンツ全体 */
    #client-slider .splide-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    #client-slider 
    .slider3, .slider4, .slider5, .slider6 {
        display: block;
    }

    #client-slider-pc {
        display: none !important;
    }

    #client-slider-mobile {
        display: flex !important;
        justify-content: center;
        height: 150px; /* スマホのスライダーの高さ */
        margin-top: 8rem;
    }
    /* 🔹 各スライドの高さを揃える */
    #client-slider  .splide__slide {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 60px !important;
}
#client .view-all-button {
    margin-top: 10rem;
}

}


/* 🔹 PCでは `.slider3`, `.slider4`, `.slider5`, `.slider6` を非表示 */
@media (min-width: 769px) {
    #client-slider 
    .slider3, .slider4, .slider5, .slider6 {
        display: none;
    }

}


/* お知らせ ==============================================*/
/* News Section */
.news-title {
    color: var(--primary-blue);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.news-subtitle {
    display: block;
    font-size: 1rem;
    margin-top: 5px;
}

/* News Card */
/* カルーセル全体のスタイル */
.news-carousel {
    max-width: 100%;
    padding: 0 10vw;
    margin: 3rem auto 0;
    overflow: visible; /* box-shadowが切れないように */
}

/* ニュースカルーセルの高さを調整 */
.news-carousel .splide__list {
    height: auto;
}

/* スライドのスタイル */
.news-carousel .splide__slide {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 1rem;
    min-height: 26.8125rem; /* 最低限の高さを確保 */
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.16);
    border-radius: 0.75rem;
    box-sizing: border-box;
}

#news .splide__pagination {
    bottom: -2.5rem;
}
#news .splide__pagination__page.is-active {
    background-color: #00547D;
}
.splide__pagination {
        gap: 32px;
}

/* 各ニュースカードのスタイル */
.news-card {
    width: 100%; /* スライドの幅に合わせる */
    height: 100%; /* スライドの高さに合わせる */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}


.news-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #F5F5F5;
    overflow: hidden;
}

.news-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
.news-card:hover .news-image img {
    transform: scale(1.1);
}
}
.news-content {
    height: 15.56rem;
    padding: 1rem .81rem;
    text-align: start;
}

.news-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin-top: .5rem;
}

.news-date {
    color: #00547D;
    font-family: "Open Sans";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.0625rem; /* 235.714% */
    letter-spacing: 0.04375rem;
}

.news-tag {
    padding: .4rem 1.38rem;
    border-radius: 1.875rem;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.new {
    background: #FF8900;
    color: white;
}

.notice {
    background: #B2E0F6;
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.news-card-title {
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 1.18rem 0 0 0;
}

.news-description {
    font-size: 0.85rem;
    color: #011018;
    margin-top: .62rem;
    line-height: 1.5;
}

/* Responsive styles */
@media (max-width: 768px) {
    .news-section {
        max-width: 100%;
        padding:5.44rem 0;
    }
    
    .news-title {
        font-size: 2rem;
    }

    .news-card {
        width: 100%;
        height: auto;
    }
    .news-carousel .splide__slide {
        min-height: 150px; /* スマホ用の高さ調整 */
    }
    #news .view-all-button {
        margin-top: 5rem;
    }
}
/* 私たちについて ==============================================*/

/* About Section */
.about-section {
    width: 100%;
    position: relative;
    z-index: 2;
    background-image: url(../../assets/top/aboutus-bg.webp);
    background-repeat: no-repeat;
    background-size:cover;
    background-position: left top;
    display: flex;
    justify-content: center;
    object-fit: cover;
}

.about-container {
    width: 66%;
    background: rgba(255, 255, 255, 0.85);    
    padding: 4rem 2.5rem;
    box-shadow: 0 0 20px var(--shadow-light);
}

.about-title {
    text-align: center;
    margin-bottom: 50px;
}

.about-title .en {
    display: block;
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-title .jp {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
}

.about-content {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    margin-top: 1.94rem;
}

.about-text {
    text-align: start;
    flex: 1;
}

.about-subtitle {
    color: #00547D;
    font-family: "Noto Sans JP";
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 20px;
}

.about-description {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-text .view-all-button {
    margin-top: 1.44rem;
}

.learn-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    background-color: #00547D;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 2rem;
}

.lmb-sp {
    display: none;
}

.about-image {
    width: 18.75rem;
    height: 12.8125rem;
    background-image: url(../../assets/top/about-president.webp);
    background-position: 45% center;
    background-size: 200%;
    border-radius: 10px;
    box-shadow: 0 4px 20px var(--shadow-light);
}
@media (max-width: 1200px) {
    .about-content {
        flex-direction: column-reverse;
        gap: .81rem;
        align-items: center;
    }
    .lmb-pc {
        display: none;
    }

    .lmb-sp {
        display: inline-flex;
        margin-top: 4.38rem;

    }
}
/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        width: 100%;
        padding: 4rem 1.25rem;
    }
    
    .about-container {
        width: 100%;
        padding: 3.15rem .94rem;
    }

    .about-text {
        text-align: center;
    }
    .about-image {
        flex: 0 0 auto;
        order: -1;
        width: 13.5625rem;
        height: 9.625rem;
    }

    .about-title .en {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.2rem;
    }
}


/* サービス ==============================================*/
.service-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 10vw;
}
.service-customer {
    width: 13.875rem;
    height: 17.875rem;
    margin-top: 18.75rem;
    position: relative;
    margin-right: 8rem;
    align-self: center;
}
.bubble-wrapper {
    width: 100%;
    height: 50%;
    position: absolute;
    top: 0;
    left: 0;
}

.service-bubble {
    position: absolute;
    font-size: 1rem;
    transform: scale(1); /* 最初は縮小状態 */
    white-space: nowrap;
    background-size: 100%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rg-8f {
    background-image: url(../../assets/top/bubble-lightgray.svg);
    color: #8F8F8F;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.bb-ff {
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
/* 特定化学物質 */
.service-bubble1 { 
    top: -150px; left: -150px; 
    width: 8.5rem;
    height: 5.8125rem;
}
/* リスク分散 */
.service-bubble2 { 
    top: -55px; left: -140px; 
    width: 11rem;
    height: 6.0625rem;
}
/* 擬似要素で背景画像を設定 */
.service-bubble2::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 18px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-risk.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
/* 工場統廃合 */
.service-bubble3 { 
    top: 50px; left: -130px;
    width: 7.375rem;
    height: 5.05713rem;
}
/* コンプライアンス */
.service-bubble4 { 
    top: -200px; left: 0px;
    width: 11.5625rem;
    height: 11.5625rem;
}
/* 擬似要素で背景画像を設定 */
.service-bubble4::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-conpra.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
/* 処理委託先 */
.service-bubble5 {
    top: -210px; left: 180px; 
    width: 7.375rem;
    height: 5.0625rem;
}
/* コスト削減 */
.service-bubble6 { 
    top: -150px; left: 190px; 
    width: 10rem;
    height: 9rem;
}
    /* 擬似要素で背景画像を設定 */
    .service-bubble6::before {
        content: '';
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../../assets/top/bubble-risk.svg);
        background-size: 100%;
        background-repeat: no-repeat;
        transform: rotate(-25deg) scaleX(-1); /* 45度回転＋垂直反転 */
        z-index: -1;
    }

/* 契約書代行 */
.service-bubble7 { 
    top: -130px; right: -240px; 
    width: 7.375rem;
    height: 5.0625rem;
}
/* 業務改善 */
.service-bubble8 { 
    top: -40px; right: -200px;
    width: 9.5rem;
    height: 6rem;
}

/* 擬似要素で背景画像を設定 */
.service-bubble8::before {
    content: '';
    position: absolute;
    top: -27px;
    left: -40px;
    width: 180%;
    height: 120%;
    background-image: url(../../assets/top/bubble-education.svg);
    background-size: 65%;
    background-repeat: no-repeat;
    transform: rotate(-15deg) scaleY(-1);
    z-index: -1;
}
/* セミナー */
.service-bubble9 { 
    top: 30px; right: -270px; 
    width: 5.5625rem;
    height: 3.8125rem;
    }
/* 社員教育 */
.service-bubble10 { 
    top: 80px; right: -200px; 
    width: 9.375rem;
    height: 4.875rem;
}

/* 擬似要素で背景画像を設定 */
.service-bubble10::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -17px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-education.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
.service-suggest {
    color: #00547D;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-top: 3rem;
}
.service-triangle {
    margin-top: 3rem;
}

@media (max-width: 1024px) {
	.service-customer {
    width: 13.875rem;
    height: 17.875rem;
    margin-top: 18.75rem;
    position: relative;
    margin-right: 8rem;
}
}
@media (max-width: 768px) {

.service-customer {
    width: 7rem;
    height: auto;
    margin-top: 10.73rem;
    margin-right: 2rem;
}
.rg-8f {
    font-size: 0.5rem;
    font-weight: 700;
}
.bb-ff {
    font-size: 0.5rem;
    font-weight: 700;
}

.service-triangle {
    margin-top: 1.25rem;
}

/* 特定化学物質 */
.service-bubble1 { 
    top: -90px; left: -100px; 
    width: 4.78838rem;
    height: 3.2835rem;
}

/* リスク分散 */
.service-bubble2 { 
    top: -40px; left: -90px; 
    width: 6.19675rem;
    height: 3.42875rem;
}
/* 擬似要素で背景画像を設定 */
.service-bubble2::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 10px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-risk.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
/* 工場統廃合 */
.service-bubble3 { 
    top: 15px; left: -100px;
    width: 4.15463rem;
    height: 2.84888rem;
}
/* コンプライアンス */
.service-bubble4 { 
    top: -140px; left: -20px;
    width: 6.51363rem;
    height: 6.53688rem;
}
/* 擬似要素で背景画像を設定 */
.service-bubble4::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-conpra.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
/* 処理委託先 */
.service-bubble5 {
    top: -130px; left: 90px; 
    width: 4.15463rem;
    height: 2.84888rem;
}
/* コスト削減 */
.service-bubble6 { 
    top: -90px; left: 75px; 
    width: 5rem;
    height: 4rem;
}
    /* 擬似要素で背景画像を設定 */
    .service-bubble6::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url(../../assets/top/bubble-risk.svg);
        background-size: 100%;
        background-repeat: no-repeat;
        transform: rotate(-25deg) scaleX(-1); /* 45度回転＋垂直反転 */
        z-index: -1;
    }

/* 契約書代行 */
.service-bubble7 { 
    top: -85px; right: -135px; 
    width: 4.15463rem;
    height: 2.84888rem;
}
/* 業務改善 */
.service-bubble8 { 
    top: -35px; right: -100px;
    width: 5.07006rem;
    height: 3.38006rem;
}

/* 擬似要素で背景画像を設定 */
.service-bubble8::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -20px;
    width: 180%;
    height: 120%;
    background-image: url(../../assets/top/bubble-education.svg);
    background-size: 65%;
    background-repeat: no-repeat;
    transform: rotate(-15deg) scaleY(-1);
    z-index: -1;
}
/* セミナー */
.service-bubble9 { 
    top: 2px; right: -145px; 
    width: 3.13356rem;
    height: 2.14875rem;
    }

/* 社員教育 */
.service-bubble10 { 
    top: 20px; right: -110px; 
    width: 5.28131rem;
    height: 2.74056rem;
}

/* 擬似要素で背景画像を設定 */
.service-bubble10::before {
    content: '';
    position: absolute;
    top: 2px;
    left: -11px;
    width: 100%;
    height: 100%;
    background-image: url(../../assets/top/bubble-education.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    z-index: -1;
}
}

/* 各サービスページグリッド ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝*/

.service-card-wrapper {
    display: grid;
    gap: 3.15rem;
    width: 100%;
    max-width: 2000px;
    margin-top: 3.13rem;
    padding: 0 12vw;
  }
  .service-card-set {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 1.6875rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 19rem;
    /* height: 16.98731rem; */
    position: relative;
    z-index: 1;
    transform-origin: center;
  }

  .service-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 1.6875rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    height: 19rem;
    position: relative;
    z-index: 1;
    transform-origin: center;
  }

  .service-card-set::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }
@media (hover: hover) and (pointer: fine) {
.service-card-set:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.service-card-set:hover::before {
    opacity: 1;
}
}
.service-card-op {
    display: flex;
    flex-direction: row-reverse;
}
.service-card-link {
    text-decoration: none;
    margin-top: 1.6rem;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4375rem; /* 153.333% */
    letter-spacing: 0.0375rem;
    color: #00547D;
}
  .service-card-link::after {
    content: "→";
    margin-left: 0.75rem;
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover .service-card-link::after {
    transform: translateX(4px);
}
}
.service-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: start;
}
.service-card-copy {
    color: #00547D;
    font-family: "Noto Sans JP";
    font-size: 1.375rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4375rem; /* 127.778% */
}
.service-card-title {
    margin-top: .75rem;
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.service-card-description {
    color: #011018;
    margin-top: .75rem;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 400;
line-height: normal;
}

.service-card-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
}
@media (hover: hover) and (pointer: fine) {
.service-card:hover  {
    transform: scale(1.05);
}
.top-banner.mail-banner img:hover {
    opacity: .65;
    transition: 0.3s ease-in-out;
}
.top-banner.book-banner img:hover {
    opacity: .65;
    transition: 0.3s ease-in-out;
}
}  
.top-banner img {
    width: 100%;
}
.top-banner.mail-banner img{
    transition: 0.3s ease-in-out;
}
.top-banner {
    width: 65%;
    max-width: 1500px;
    margin-top: 0.62rem;
}
.top-banner-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.book-banner {
    margin-bottom: 8rem;
}
.top-banner-description-blue, 
.top-banner-description-black {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5625rem; /* 138.889% */
    letter-spacing: 0.0375rem;
}
.top-banner-description-blue {
    color: #0097E0;
    margin-top: 8.75rem;
}
.top-banner-description-black {
    color: #00547D;
    margin-top: 5rem;
}

@media (max-width: 1200px) {

    .service-card-wrapper {
        padding: 0 5vw;
    }

    .service-card-set {
        height: 100%;
        position: relative;
        z-index: 1;
        transform-origin: center;
        flex-direction: column-reverse;
    }
    .service-card-image {
        height: auto;
        width: 100%;
    }

    .service-card-copy {
        font-size: 1.125rem;
    }
    .service-card-title {
        font-size: 1.35rem;
    }
    .service-card-content {
        padding: 2rem .94rem;
    }
}
@media (max-width: 768px) {
.service-card-wrapper {
    width: 100%;
    margin-top: 3.13rem;
    padding: 0;
    gap: 1.25rem;
}
.service-card-set {
    height: 100%;
    flex-direction: column-reverse;
}

.service-card-image {
    width: 100%;
    height: 100%;
}

.service-card-content {
    padding: 2rem .94rem;
}

.service-card-link {
    align-self: flex-end;
}

.top-banner {
    width: 100%;
    /* margin-top: 5rem; */
} 
.book-banner {
    margin-bottom: 7.5rem;
}
.service-card-copy {
    font-size: 1.125rem;
}
.service-card-title {
    font-size: 1.25rem;
}
.service-card-description {
    line-height: 1.5625rem; /* 138.889% */
}

.top-banner-description-blue {
    margin-top: 6.25rem;
}

}

/* 追加分ー＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ */

  #service .title-section {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  #service .title-section h2 {
    font-size: 1.84094rem;
    margin: 0;
    color: #00547D;
    font-family: "Noto Sans JP";
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }
  
  #service .title-section .number-group {
    text-decoration: underline;
    text-decoration-color: #0097e0;
    text-underline-offset: 0.5rem;
  }
  
  #service .title-section .number {
    color: #0097e0;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: -0.5rem;
  }
  
  #service .title-section .service-text {
    color: #0097e0;
  }
#service .top-triangle {
    margin-top: 1.26rem;
}
#service .top-description-second {
    color: #00547D;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: normal;
    margin-top: 3rem;
}
/* ここからサービスカード＝＝＝＝＝＝＝＝＝＝ーー＝＝＝＝＝＝＝＝＝＝ */
  #service .services-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin: 40px 0;
    width: 61.5rem;
    max-width: 1200px;
  }
  
  #service .card {
    display: inline-flex;
    position: relative;
    padding: 0;
    border-radius: 1.6875rem;
    overflow: hidden;
    color: white;
    text-align: start;
    align-items: stretch;
    height: 280px;
    -webkit-tap-highlight-color: transparent;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    box-shadow: none;
}
#service .card.card-wide {
    height: 240px;
}
 
  #service .card::before,
  #service .card::after,
  #service .card *,
  #service .card *::before,
  #service .card *::after {
    border-radius: inherit;
  }

  .card-bg-img,
  .card-bg-img-dg,
  .card-bg-img-matching,
  .card-bg-img-daiko,
  .card-bg-img-seminar,
  .card-bg-img-other {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.6875rem;
    overflow: hidden;
    mix-blend-mode: darken;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  #service .card:active {
    border-radius: 1.6875rem;
    overflow: hidden;
  }

  #service .card:active *,
  #service .card:active *::before,
  #service .card:active *::after {
    border-radius: inherit;
  }
  
  #service .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 1;
    background: transparent;
}


.card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    top: 0 !important;
    transform: translateY(0) !important;
    height: 100%;
}
#service .card-large .card-content,
#service .card-wide .card-content {
    padding: 2.5rem ;
}
#service .card-large .card-content {
    gap: 3.75rem;
    justify-content: flex-start;
}

#service .card-small-top .card-content,
#service .card-small-bottom .card-content {
    padding: 1.88rem ;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg, rgba(0, 153, 227, 0.20) 0.07%, rgba(0, 153, 227, 0.80) 74.12%, rgba(5, 136, 199, 0.90) 98.29%);
    mix-blend-mode: darken;
}

.card-bg-img-dg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(270deg, rgba(0, 153, 227, 0.20) 0.07%, rgba(0, 153, 227, 0.80) 74.12%, rgba(5, 136, 199, 0.90) 98.29%); */
    mix-blend-mode: darken;
    border-radius: 1.25rem;
}

.card-bg-img-matching {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(270deg, rgba(0, 151, 224, 0.27) 0%, rgba(0, 84, 125, 0.72) 100%); */
    mix-blend-mode: darken;
  }

  .card-bg-img-daiko {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(90deg, rgba(228, 126, 8, 0.80) 0%, rgba(255, 137, 0, 0.48) 50.9%, rgba(255, 137, 0, 0.24) 100%); */
    mix-blend-mode: darken;
  }

  .card-bg-img-seminar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(90deg, rgba(118, 118, 118, 0.90) 4.4%, rgba(118, 118, 118, 0.40) 60.4%, rgba(118, 118, 118, 0.20) 95%); */
    mix-blend-mode: darken;
  }

  .card-bg-img-other {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(90deg, rgba(70, 131, 161, 0.72) 0%, rgba(70, 131, 161, 0.56) 37.4%, rgba(70, 131, 161, 0.04) 99.9%); */
    mix-blend-mode: darken;
  }
  .card-bg-img img {
    transition: 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .card:hover .card-bg-img img {
        transform: scale(1.1);
}
}
  @media (hover: hover) and (pointer: fine) {
    .card:hover .card-bg-img-dg img,
    .card:hover .card-bg-img-matching img,
    .card:hover .card-bg-img-daiko img,
    .card:hover .card-bg-img-seminar img,
    .card:hover .card-bg-img-other img {
      transform: scale(1.1);
      transition: transform 0.3s ease;
    }
  }

  .card-bg-img-dg img,
  .card-bg-img-matching img,
  .card-bg-img-daiko img,
  .card-bg-img-seminar img,
  .card-bg-img-other img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 1;
}

    #service .service-intro-mainttl {
        color: #FFF;
        font-family: "Noto Sans JP";
        font-style: normal;
        font-weight: 600;
        line-height: 1.1;
        margin: 0;
        letter-spacing: 1;
}

  /* First card title keeps original size */
  #service .card-large .service-intro-mainttl {
    font-size: 2.8125rem;
  }
  
  /* All other card titles use smaller size */
  #service .card:not(.card-large) .service-intro-mainttl {
    font-size: 1.6875rem;
  }
  
  #service .service-intro-mainttl span {
    font-size: 1.6875rem !important;
    display: block;
    margin: 0;
  }
  
  #service .card p {
    margin-top: 1rem;
    color: #FFF;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }
  
  #service .card a {
    display: inline-flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-weight: 500;
    border-radius: 3.125rem;
    border: 1.5px solid #FFF;
    padding: 0.5rem 1rem;
    transition: background 0.3s ease;
    margin-top: 3.75rem;
    width: fit-content;
    align-self: flex-start;
  }
  
  /* Specific margins for each card */
  #service .card-small-top a,
  #service .card-small-bottom a {
    margin-top: 3.69rem;
  }
  
  #service .card-wide-seminar a,
  #service .card-wide-other a {
    margin-top: 1.25rem;
  }
  
  #service .card-large .view-all-button,
  #service .card-small-top .view-all-button,
  #service .card-small-bottom .view-all-button,
  #service .card-wide .view-all-button {
    background-color: transparent;
    color: #FFF;
    border: 1px solid #FFF;
    width: 9.5rem;
    padding: 0.45rem 1.8rem;
}
 #service .view-all-button {
    margin-top: 0;
 }
  #service .slide-up-down-text {
    margin-left: 0;
    font-size: 0.9375rem;
} 
#service .card .right-arrow {
    right: 15%;
}

@media (hover: hover) and (pointer: fine) {
  #service .card:hover .slide-up-down-text {
        animation: slideUpDown 0.65s cubic-bezier(0.46,0.03,0.52,0.96);
  } 
  #service .card:hover .right-arrow {
        animation: slideArrow 0.5s ease;
} 
}
  
  #service .card-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
  }
  
  
  #service .card-small-top {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }

  #service .card-small-bottom {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  
  #service .card-wide {
    grid-column: 1 / 3;
  }
  

  /* Tablet styles */
  @media (max-width: 1024px) {
    #service {
        padding: 2.94rem 10vw 0;
    }
    #service .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;

    }
    #service .card {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    #service .card-large {
        grid-column: 1;
        grid-row: 1;
        height: 32.25rem;
      }
      #service .card-small-top {
        grid-column: 1;
        grid-row: 2;
      }
      #service .card-small-bottom {
        grid-column: 1;
        grid-row: 3;
      }
      #service .card-wide {
        grid-column: 1;
      }
    /* #service .card-large {
        grid-column: 1;
        grid-row: 1;
        height: 15.625rem;
    } */
    /* #service .card-small-top {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    } */
    
      /* #service .card-small-bottom {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
      } */
      
      /* #service .card-wide {
        grid-column: 1 / 3;
      } */

    #service .title-section h2 {
      font-size: 1.6rem;
    }
  
    #service .title-section .number {
      font-size: 2.6rem;
    }
  
    #service .card-large .service-intro-mainttl {
      font-size: 2.4rem;
    }
  
    #service .service-intro-mainttl span {
      font-size: 1.5rem !important;
    }
    #service .card-content {
        position: relative;
        text-align: start;
        top: 0;
        transform: translateY(0);
      }

    #service .card-large .card-content,
    #service .card-wide .card-content,
    #service .card-small-top .card-content, 
    #service .card-small-bottom .card-content {
        padding: 1.75rem ;
    }
    #service .slide-up-down-text {
        margin-left: 0;
        font-size: 0.8125rem;
    } 

    }
    
    @media (hover: hover) and (pointer: fine) and (min-width: 1025px) {
        #service .card:hover .slide-up-down-text {
              animation: slideUpDown 0.65s cubic-bezier(0.46,0.03,0.52,0.96);
        } 
        #service .card:hover .right-arrow {
              animation: slideArrow 0.5s ease;
        } 
    }
  /* Mobile styles */
  @media (max-width: 768px) {

    #service .card {
      grid-column: 1 / 2 !important;
      grid-row: auto !important;
      height: auto;
      display: flex;
      flex-direction: column;
    }

  
    #service {
      padding: 1rem;
    }
    #service .ttl-group {
        padding-top: 6.25rem;
    }
    #service .title-section {
      margin-bottom: 2rem;
    }
  
    #service .title-section h2 {
      font-size: 1.3rem;
      margin-top: 0.88rem;
    }

    #service .title-section .number {
        letter-spacing: -0.3rem;
        font-size: 3.29063rem;
        font-weight: 700;
        line-height: normal;
    }
  
    #service .card-large .service-intro-mainttl {
        font-size: 2rem;
        font-style: normal;
        font-weight: 700;
        line-height: 1.25;
    }
  
    #service .card:not(.card-large) .service-intro-mainttl {
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.25;
    }
  
    #service .service-intro-mainttl span {
      font-size: 1.5rem !important;
    }
  
    #service .card p {
        line-height: 1.375;
      margin-top: 0.75rem;
    }

    #service .card a {
        padding: 0.4rem 0.8rem;
        margin-top: auto;
        font-size: 0.9rem;
        width: fit-content;
    }

    #service .card-content {
        gap: 2.5rem;
    }
    #service .card-large {
        aspect-ratio: 1 / 1;
    }
    #service .card.card-wide {
        height: auto;
        
    }
    /* #service .card.card-wide-other {
        aspect-ratio: 1 / 1;
    } */
    #service .card.card-wide-other .card-content {
        justify-content: flex-start;
        gap: 3.75rem;
    }
    #service .card-large .view-all-button,
    #service .card-small-top .view-all-button,
    #service .card-small-bottom .view-all-button,
    #service .card-wide .view-all-button {
      width: 7.5rem;
      padding: 0.4rem 0.94rem 0.5rem;
  }
}

/* コンサルティング事例（Works） ==============================================*/

.case-studies {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.case-study-content {
    display: flex;
    justify-content: center;
    flex: 1;
    position: relative;
    margin-top: 3.46rem;
}

.case-study-bg {
    display: flex;
    position: relative;
    width: 50.375rem;
    height: 25.66113rem;
    background: rgba(0,84,125,0.8);
    border-radius: 1.6875rem;
    align-items: center;
    gap: 1rem;
    box-shadow: 0px 3px 3px 0px rgba(0, 0, 0, 0.16);
    margin-left: -11rem;
}
.case-study {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    width: 30rem;
    margin-left: 1.56rem;
}
.case-study-image {
    width: 100%;
    /* height: 100%; */
    background-size: cover;
    transform: scale(1);
    transition: transform 0.3s ease;

}
.case-study-imgwrap {
    width: 28.125rem;
    height: 19.14131rem;
    margin-right: -30rem;
    border-radius: 0.75rem;
    overflow: hidden;
}
.case-study-bg1 {
    display: flex;
    flex-direction: row-reverse;
    margin-right: -22rem;
}
.case-study1 {
    margin-left: 0;
    margin-right: 1.56rem;
}
.imgwrap1 {
    margin-left: -30rem;
    margin-right: 0;
}
.case-study-image1 {
    margin-right: 0;
}

.case-study-ttl {
    color: #FFF;
    font-size: 1.5625rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: start;
}
.case-study-tags-rapper {
    display: flex;
    flex-direction: column;
    gap: .62rem;
    margin-top: 1.85rem;
}
.case-study-tags {
    display: flex;
    gap: 0.62rem;
    align-items: center;
}

.tag {
    width: 6.25rem;
    background: white;
    color: #00547D;
    border-radius: 1.875rem;
    font-family: "Noto Sans JP";
    font-size: 1rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 0.31rem 1rem;
    
}

.case-study-location {
    font-size: 0.875rem;
    opacity: 0.9;
}

.case-study-link-hov {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    color: white;
    text-decoration: none;
    margin: 1rem 1rem 0 0;
    font-size: 0.9375rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-bottom: 1px solid transparent;
    transition: transform 0.3s ease;
    transform-origin: left;
}
    .case-study-link {
        position: relative;
        display: inline-flex;
        justify-content: flex-end;
        color: white;
        text-decoration: none;
        font-size: 0.9375rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        margin: 1rem 1rem 0 0;
      }
      
      .case-study-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #fff;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease;
      }
      
      @media (hover: hover) and (pointer: fine) {
        .case-study-content:hover .case-study-link::after {
          transform: scaleX(1);
        }
        .case-study-content:hover .case-study-image {
            transform: scale(1.1);
            transition: transform 0.3s ease;
        }
      }
      

#case-studies-pc { 
    display: flex; 
    
}
#case-studies-sp { 
    display: none;
}
.button-center {
    display: flex;
    justify-content: center;}

@media (hover: hover) and (pointer: fine) {

.case-study-link:hover::after {
    transform: trans;
}
}
.case-study-company {
    text-align: start;
    margin-top: .85rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.works-section .works-wrapper {
    max-width: 100%;
    padding: 0 8.5vw;
    margin: 0 auto ;
    overflow: visible;
}

.works-section-noPadding-sp {
    padding: 0;
}

@media (max-width: 1024px) {
    .case-study-bg {
        width: 28.375rem;
        height: 25.66113rem;
        margin-left: -18rem;
    }

    .case-study-bg1 {
        margin-left: 0;
        margin-right: -18rem;
    }

    .case-study-imgwrap {
        width: 20.125rem;
        height: auto;
    }
    .case-study {
        width: 22rem;
    }


}

@media (max-width: 768px) {

    #cases.content-wrapper {
        padding-top: 0;
    }
.works-section-noPadding-pc {
    padding: 0;
}

.works-section-noPadding .view-all-button {
    display: none;
}

.case-study {
    width: 100%;
    height: 15rem;
    padding: 1.25rem 1rem;
    margin-left: 0;
    justify-content: flex-start
}

.case-study-tags-rapper {
    gap: .31rem;
    margin-top: 1.25rem;
}
.case-study-bg {
    flex-direction: column-reverse;
    height: auto;
    margin-left: 0;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    box-shadow: none;
}
.case-study1 {
    margin-right: 0;
}

.case-study-imgwrap {
    width: 100%;
    height: 11.25rem;
    margin-right: 0rem;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
}

.imgwrap1 {
    margin-left: 0;
}

.case-study-image {
    width: 100%;
    margin: auto;
    border-radius: 0.75rem 0.75rem 0rem 0rem;
}

.case-study-bg1 {
    margin-right: 0;
}

.case-study-company {
    font-size: 0.875rem;
}

.case-study-link {
    display: none;
}
    .case-study-ttl {
        font-size: 1.125rem;
        font-weight: 500;
        line-height: 1.6875rem; /* 150% */
    }
    
    /* PC版を非表示、スマホ版を表示 */
    #case-studies-pc { display: none; }
    #case-studies-sp { display: flex; }

    /* スライダー全体 */
    #case-studies-sp {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        overflow: hidden; /* はみ出し防止 */
        width: 100%;
    }

    /* スライドのトラック（ここで崩れやすい） */
    #case-studies-sp .splide__track {
        overflow: hidden !important; /* スライドのはみ出しを防ぐ */
        width: 100%; /* スライドの幅を100%に */
    }

    /* スライドリストの配置 */
    #case-studies-sp .splide__list {
        display: flex;
    }

    /* スライド1枚ずつのスタイル */
    #case-studies-sp .splide__slide {
        flex: 0 0 auto; /* 幅固定で縮小させない */
        /* width: 100% !important; */
        max-width: 19rem; /* 最大幅を設定 */
        height: 33rem !important; /* 固定高さ */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* ページネーション全体（カルーセルのすぐ下に配置） */
    .splide__pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 32px; /* ドットの間隔 */
        bottom: 1rem; /* カードとページネーションの間隔 */
    }
    #news .splide__pagination {
        bottom: -1.5rem; /* ← ここで下方向にずらす */
    }

    /* 各ページネーションのドット */
    .splide__pagination__page {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #D9D9D9; /* 通常時のカラー */
        transition: background 0.3s ease;
    }

    /* アクティブなページネーション（現在表示中のスライド） */
    .splide__pagination__page.is-active {
        background: #00547D; /* 選択中のカラー */
    }

    .case-study-image {
        /* width: 28.125rem;
        height: 19.14131rem;
        margin-right: -30rem;
        border-radius: 0.75rem;
        overflow: hidden; */
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3; /* 画像の比率を4:3に統一 */
        object-fit: cover; /* 縦横比を維持しつつ、エリアいっぱいに表示 */
    }
    .works-section .works-wrapper {
        padding: 0 10vw;
    }
}



/* セミナー ==============================================*/
.seminar-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.seminar-wrapper {
    display: flex;
    width: 100%;
    max-width: 1500px;
    padding: 2.94rem 10vw 0;
    align-items: center;
    justify-content: center;
    gap: 2.44rem;
}
.seminar-content {
    width: 70%;
    text-align: start;
    padding-top: 0;
}

.seminar-outer a {
    display: block;
    transition: all 0.3s ease;
}


.seminar-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px 20px 1.05rem 20px;
    padding-left:0;
    border-bottom: 1px solid #eee;
    background-color: rgba(0, 0, 0, 0);
    transition:.3s cubic-bezier(0.82, 0.02, 0.83, 0.86);
    cursor: pointer;
    margin-bottom : 0;
}

@media (hover: hover) and (pointer: fine) {
  /* ホバーエフェクト */
.news-item:hover {
    background-color: rgba(149, 149, 149, 0.20);
}
.seminar-outer a:hover .seminar-item {
    transform: translateX(10px);
}
.seminar-outer a:hover {
    background-color: rgba(237, 238, 242, .5);
}
.seminar-outer {
    transition: background-color rgba(149, 149, 149, 0.20);
}
}

.seminar-item-pm {
    margin-bottom: 0;
}
.seminar-item-header {
    display: flex;
    align-items: center;
    gap: 20px;
}
#seminar .date {
    color: #959595;
font-family: "Open Sans";
font-size: 0.875rem;
font-style: normal;
font-weight: 600;
line-height: 2.0625rem; /* 235.714% */
letter-spacing: 0.04375rem;
transition: transform var(--transition-duration);

}

.seminar-tags {
    display: flex;
    gap: 10px;
    transition: transform var(--transition-duration);

}

.seminar-tag {
    display: inline-block;
    border-radius: 20px;
    white-space: nowrap;
    text-align: center;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    
}

.free {
    background-color: var(--orange);
    color: white;
    padding: .31rem 2.25rem;
    transition: transform var(--transition-duration);

}

.online {
    background-color: var(--primary-blue);
    color: white;
    padding: .31rem 1.19rem;
    transition: transform var(--transition-duration);

}

.seminar-title {
    margin: 0;
    padding-bottom: 5px;
    margin-top: .65rem;
    color: #011018;
    font-family: "Noto Sans JP";
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4375rem; /* 127.778% */
    letter-spacing: 0.0225rem;
    transition: transform var(--transition-duration);

}

.more-info {
    display: inline-flex;
    align-items: center;
    color: #00547D;
    text-decoration: none;
    position: relative;
    padding: 1rem 0 0;
}

.more-info::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #00547D;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
.more-info:hover::after {
    transform: scaleX(1);
}
}
.testimonial-image {
    position: relative;
    width: 24.875rem;
    height: 16.04394rem;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.5s ease-in-out;
}
.testimonial-image img::before {
    z-index: 3;
    background-color: #00547D;
    opacity: .6;
}

.testimonial-image img {
    width: 24.875rem;
    height: 16.04394rem;
    object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
    .testimonial-image:hover {
        transform: scale(1.1);
    }
}

.overlay h2 {
    margin: 0;
    margin-bottom: 20px;
}

.testimonials {
    position: relative;
    margin-bottom: 50px;
}

.seminar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 84, 125, 0.60);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
}

#seminar .view-all-button {
    /* width: 12.8125rem;
    display: inline-flex;
    
    color: white;
    padding: 1rem 1.17rem;
    border-radius: 1.75rem;
    overflow: hidden; */
    margin-top: 2.37rem;
    border: 1px solid #fff;
    background-color: transparent;
}
/* #seminar .view-all-button-text {
    margin-left: 2rem;
} */

@media (max-width: 768px) {
    .seminar-content {
        width: 100%;
        padding-top: 0;
    }

    .seminar-item {
        padding: 0 .94rem;

        /* margin-bottom: 30px;
        padding-left: 0;
        border-bottom: 1px solid #eee; */
    }
    .seminar-wrapper {
        flex-direction: column;
        padding:0;

        /* display: flex;
        width: 100%;
        max-width: 2000px;
        align-items: center;
        justify-content: center;
        gap: 2.44rem; */
    }

    .seminar-title {
        padding-bottom: 1.25rem;
    }
    
    .seminar-list {
        flex-direction: column;
    }

    .testimonial-image {
        width: 100%;
    }

    .seminar-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .more-info {
        width: 100%;
        justify-content: flex-end;
        padding: 2rem .5rem 0 0;
    }

    .view-all-button.slide-up-down.mbSp-only .view-all-button-text.slide-up-down-text {
    margin-left: -1.1rem;
}

}
/* ---------------

ハイライトのCSS 

------------------*/

#highlight-title {
    width: 100%;
  }
  
  #highlight-title.content {
    width: 100%;
    max-width: 42rem;
    padding: 0 1rem;
  }
  
 #highlight-title .line-wrapper {
    overflow: hidden;
    position: relative;
    margin-bottom: .5rem;
  }
  
 #highlight-title .line-wrapper:last-child {
    margin-bottom: 0;
  }
  
 #highlight-title .line {
    display: inline-block;
    position: relative;
    padding: 0 .8rem;
  }

  
 #highlight-title .line span {
    display: inline-block;
    color: white;
    padding: 0.1rem 0.1rem 0.2rem;
    position: relative;
    z-index: 1;
    visibility: hidden;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1rem;
    font-family: "Noto Sans JP";
    font-size: 2rem;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0.1rem;

  }
  
 #highlight-title .line-wrapper.animate .line span {
    visibility: visible;
  }
  
 #highlight-title .line span .char {
    opacity: 0;
    display: inline-block;
  }
  
 #highlight-title .line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00547D;;
    transform: scaleX(0);
    transform-origin: left;
    z-index: 0;
  }
  
 #highlight-title .line-wrapper.animate .line::before {
    animation: extendBackground 0.4s forwards ease-out;
  }
  
 #highlight-title .line-wrapper.animate .line .char {
    animation: fadeInChar 0.2s forwards ease-in-out;
  }
  
  /* PC/Mobile content visibility */
 #highlight-title .mobile-content {
    display: none;
  }
  /* .splide__slide img[src*="KYB-logo.webp"] {
    height: 37% !important; 
    width: auto;
  }
  .splide__slide img[src*="Cosumo-logo.webp"] {
    height: 40% !important; 
    width: auto;
  }
  .splide__slide img[src*="Sekisui-logo.webp"] {
    height: 40% !important; 
    width: auto;
  } */

  @media (max-width: 1024px) {

  #highlight-title .line span {
    font-size: 1.6rem;
  }
  }
  
  @media (max-width: 768px) {
    #highlight-title {
        column-gap: .2rem;
    }
   
    
   #highlight-title .pc-content {
      display: none;
    } 
   #highlight-title .mobile-content {
      display: block;
    }
      
 #highlight-title .line-wrapper {
    margin-bottom: .3rem;
 }
 #highlight-title .line {
    padding: 0 .65rem;
  }
    #highlight-title.content {
        width: 100%;
        max-width: 100%;
    }
    #highlight-title .line span {
        letter-spacing: 0.075rem;
        padding: 0.1rem 0.05rem;
font-size: 1.5rem;
font-weight: 700;
line-height: 1.8rem; 
letter-spacing: 0.03rem;
    } 
  
    /* JSでは、50％で統一 */

  .splide__slide img[src*="Maedakensetu-logo.webp"] {
    height: 80% !important; 
    width: auto;
  }
  .splide__slide img[src*="DaidoTokushuko-logo.webp"] {
    height: 70% !important; 
    width: auto;
  }
  .splide__slide img[src*="SammitHandaPower-logo.webp"] {
    height: 70% !important;
    width: auto;
  }
  .splide__slide img[src*="KYB-logo.webp"] {
    height: 40% !important; 
    width: auto;
  }
  .splide__slide img[src*="AichiSteel-logo.webp"] {
    height: 40% !important; 
    width: auto;
  }
  .splide__slide img[src*="Cosumo-logo.webp"] {
    height: 45% !important; 
    width: auto;
  }
  .splide__slide img[src*="Sekisui-logo.webp"] {
    height: 50% !important; 
    width: auto;
  }
  .splide__slide img[src*="SANKYU-logo.webp"] {
    height: 40% !important; 
    width: auto;
  }
}

  @keyframes extendBackground {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }
  
  @keyframes fadeInChar {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }

  }




