/* ============================
   FV
============================ */
#fv {
    position: relative;
    z-index: 0;
    width: 100%;
    box-sizing: border-box;
    --fv-box-top: 50%;
}

.fv-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.fv-img {
    width: 66.3025vw;
    aspect-ratio: 1273 / 1149;  /* PC: fv-pc.webp actual size */
    height: auto;
}

.fv-box {
    position: absolute;
    top: var(--fv-box-top);
    transform: translateY(-50%);
    right: 5vw;
    width: 23.885vw;
}

.fv-txt {
    font-size: 1.1979166666666667vw;
    color: #1D1D1D;
    font-weight: bold;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.fv-comma {
    letter-spacing: -0.2em;
}

.fv-relive-img {
    margin: clamp(0.75rem, -0.693rem + 5.92vw, 1.313rem) auto 0 auto;
    width: 100%;
}

@media screen and (max-width: 1024px) {
    .fv-img {
        width: 100%;
        aspect-ratio: 780 / 1000;  /* Tablet: fv-tab.webp actual size */
    }

    .fv-box {
        width: 52.3%;
        left: 0;
        right: 0;
        top: clamp(15rem, 5.953rem + 18.824vw, 18rem);
        margin: auto;
        margin: auto;
    }

    .fv-txt {
        font-size: 2.5vw;
    }
}

@media screen and (max-width: 768px) {
    .fv-box {
        top: clamp(7.5rem, 3.921rem + 15.27vw, 11.25rem);
        /* 375px: 120px, 768px: 180px */
        transform: translateY(0);
    }
}

@media screen and (max-width: 500px) {
    .fv-box {
        position: absolute;
        width: 70.257%;
    }

    .fv-txt {
        font-size: 14px;
    }
}

@media screen and (max-width: 450px) {
    .fv-img {
        aspect-ratio: 780 / 1424;  /* SP: fv-sp.webp actual size */
    }
}


/* ============================
   ピックアップ
============================ */
#pickup {
    position: relative;
    background: #fff;
    z-index: 999;
    margin-top: -12.2%;
    padding-top: clamp(3.125rem, 2.647rem + 1.96vw, 5rem);
    border-radius: 40px 40px 0 0;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    top: -17%;
    right: 6%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-text {
    color: #050505;
    font-size: clamp(0.875rem, 0.811rem + 0.26vw, 1.125rem);
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    line-height: 1;
    letter-spacing: .1em;
    text-transform: none;
    writing-mode: vertical-lr;
}

/* 縦線 */
.scroll-line {
    display: block;
    --scroll-line-thickness: clamp(1.28px, 1.097px + 0.047vw, 2px);
    width: var(--scroll-line-thickness);
    height: clamp(2.5rem, 2.181rem + 1.31vw, 3.75rem);
    background: rgba(5, 5, 5, 0.2);
    margin-top: clamp(0.5rem, 0.436rem + 0.26vw, 0.75rem);
    position: relative;
    overflow: hidden;
    color: #050505;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    animation: scrollLineFill 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 1;
}

@keyframes scrollLineFill {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100%);
    }
}

/* コンテナ全体 */
.pickup-container {
    width: clamp(19.375rem, -2.451rem + 89.54vw, 105rem);
    margin: 0 auto;
}

.pickup-header {
    width: 100%;
}

.pickup-txt-box {
    width: clamp(9.375rem, 7.782rem + 6.54vw, 15.625rem);
}

.pickup-arrow-box {
    width: clamp(7.438rem, 6.657rem + 3.2vw, 10.5rem);
}

/* 矢印ボタン */
.pickup-arrow-left,
.pickup-arrow-right {
    width: clamp(2.75rem, 2.431rem + 1.31vw, 4rem);
    height: clamp(2.75rem, 2.431rem + 1.31vw, 4rem);
    cursor: pointer;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    right: auto !important;
    left: auto !important;
    position: static !important;
    margin: 0 !important;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }
}

/* Swiperデフォルトの非表示を無効化 */
.pickup-slider .swiper-button-lock {
    display: block !important;
}

/* 矢印画像 */
.pickup-arrow-left::after,
.pickup-arrow-right::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
}

.pickup-arrow-left::after {
    background-image: url('../images/pickup-arrow-left.png');
}

.pickup-arrow-right::after {
    background-image: url('../images/pickup-arrow-right.png');
}

/* 矢印非活性時 */
.pickup-arrow-left.swiper-button-disabled,
.pickup-arrow-right.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* Swiperスライダー */
.pickup-slider {
    width: 100%;
    padding-top: clamp(2.48rem, 1.637rem + 0.72vw, 2.5rem);
    position: relative;
}

/* スライドを横並びに */
.pickup-slider .swiper-wrapper {
    display: flex;
}

/* スライド1枚 */
.pickup-slider .swiper-slide {
    background: #fff;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* コンテンツ全体 */
.pickup-content {
  position: relative;
  width: 100%;
}

/* 画像ラッパー（拡大用） */
.pickup-content-img-box {
  overflow: hidden;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2; /* 画像比率固定 */
}

/* 画像 */
.pickup-content-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

@media (hover: hover) {
  .pickup-content-img:hover {
    opacity: 0.7;
  }
}

/* テキスト */
.pickup-content-txt {
  text-align: left;
  font-size: clamp(0.875rem, 0.875rem + 0vw, 0.875rem);
  line-height: 24px;
  font-weight: 500;
  padding: clamp(0.5rem, 0.468rem + 0.13vw, 0.625rem) 0 0 0;
}

.swiper:not(.swiper-initialized) {
  opacity: 0;
  visibility: hidden;
}

/* 初期化後に表示 */
.swiper.swiper-initialized {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}

/* 1200px～390px */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    body {
        overflow-x: hidden;
    }

    #pickup {
        margin-top: -6%;
    }

    .pickup-container {
        position: relative;
        overflow: visible; /* スライダーが外に出ても隠さない */
    }

    .pickup-slider {
        position: relative;
        width: 97vw;
    }

    .pickup-slider .swiper-wrapper {
        overflow: visible;
    }

    .pickup-content-img {
        transform-origin: center center;
    }
}

/* SP */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .scroll-box {
        top: -18%;
        right: 9%;
    }

    .pickup-container {
        overflow: hidden;
    }

    .pickup-slider {
        width: 100%;
        left: 0;
        transform: none;
    }

    .pickup-content-img {
        transform-origin: center center;
    }
  
    .pickup-arrow-left,
    .pickup-arrow-right {
        width: 44px;
        height: 44px;
    }

    .pickup-content-txt {
        letter-spacing: 0.04em;
    }
}

@media screen and (max-width: 450px) {
    #pickup {
        margin-top: -33.3%;
    }
}


/* ============================
   世界中の人々に、着る健康を。
============================ */
#world {
    padding: clamp(1.125rem, 1.013rem + 0.46vw, 1.563rem) 0 0 0;
}

.world-container {
    position: relative;
    width: 100%;
}

.world-txt-box {
    z-index: 99;
    position: absolute;
    top: 9%;
    left: 8%;
    width: clamp(19.375rem, 15.074rem + 17.65vw, 36.25rem);
}

.world-txt-h1 {
    font-size: clamp(1.875rem, 1.397rem + 1.96vw, 3.75rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    line-height: clamp(2.75rem, 1.858rem + 3.66vw, 6.25rem);
}

.world-text-p {
    font-size: clamp(0.875rem, 0.843rem + 0.13vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: clamp(1.75rem, 1.67rem + 0.33vw, 2.063rem);
    width: clamp(19.375rem, 15.902rem + 14.248vw, 33rem);
    margin-top: 29px;
}

.world-img-box {
    width: clamp(24.375rem, 8.284rem + 66.01vw, 87.5rem);
    margin: 0 -3% 0 auto; /* 右に少し移動 */

    position: relative;
    height: auto;
    overflow: hidden;
}

.world-img {
    display: block;
    width: 100%;
    height: auto;
}

.world-img-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 1) 20%, /* ← 白100% */ 
        rgba(255, 255, 255, 0) 100% /* ← 右端で透明 */
    );
    pointer-events: none;
}

@media screen and (max-width: 1440px) {
    .world-img-box::before {
        width: 20%;
        background: linear-gradient(
            to right,
            rgba(255, 255, 255, 1) 20%, /* ← 白100% */
            rgba(255, 255, 255, 0) 100% /* ← 右端で透明 */
        );
    }
}

@media screen and (max-width: 1024px) {
    .world-img-box {
        width: 74%;
    }

    .world-img-box::before {
        width: 27%;
        background: linear-gradient(to right, rgba(255, 255, 255, 1) 11%, /* ← 白100% */ rgba(255, 255, 255, 0) 100% /* ← 右端で透明 */);
    }

    .world-txt-box {
        top: 5%;
    }
}

@media screen and (max-width: 800px) {
    .world-text-p {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .world-container {
        display: flex;
        flex-wrap: wrap;
    }

    .world-text-p {
        margin-top: 20px;
        letter-spacing: 0.1em;
    }

    .world-txt-box {
        order: 2;
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: 79.49%;
        margin: 8.21% auto 0 auto;
    }

    .world-img-box {
        order: 1;
        width: 100%;
        margin: 0; /* SP版は右移動なし */
    }

    .world-img-box::before {
        display: none;
    }

    .more-link {
        gap: 20px;
    }
}


/* ============================
   りらいぶについて
============================ */
#about {
    position: relative;
    z-index: 999;
    margin: -10% 0 0 0;
}

.about-container {
    background: #BA2A20;
    width: clamp(21.875rem, -1.863rem + 97.39vw, 115rem);
    margin: 0 auto 0 auto;
    border-radius: 20px;
}

.about-box {
    padding: 1.09% 1.09% 1.09% 5.43%;
}

.about-box-left {
    width: clamp(19.375rem, 18.547rem + 3.4vw, 22.625rem);
}

.about-box-left-p {
    margin: clamp(0.25rem, 0.123rem + 0.52vw, 0.75rem) 0 0 0;
}

/* ノートPC帯: マージンを広げる */
@media screen and (min-width: 1280px) and (max-width: 1800px) {
    .about-box-left-p {
        margin: clamp(1rem, 0.5rem + 0.8vw, 1.5rem) 0 0 0;
    }
}

.about-box-left-p::after {
    display: none;
}

.about-btm-right {
    width: clamp(19.375rem, 2.679rem + 68.5vw, 84.875rem);
    background-color: rgba(240, 192, 181, 0.1);
    border-radius: 20px;
    padding: 1.18% 1.55%;
}

.about-btm-divider {
    width: 2px;
    height: 7.19vw;
    background-color: #fff;
    opacity: 0.6;
}

@media screen and (max-width: 1380px) {
    #about {
        margin: 0;
    }

    .about-box {
        display: block;
        padding: 2.13% 2.7%;
    }

    .about-btm-right {
        width: 100%;
        margin-top: 18px;
    }
}

@media screen and (max-width: 1024px) {
    .about-box {
        padding: 2.88% 3.72%;
    }

    .about-btm-right {
        width: 100%;
        margin-top: 18px;
    }
}

@media screen and (max-width: 900px) {
    #about {
        margin-top: 6.67vw;
    }

    .about-box {
        padding: 25px 20px 20px 20px;
    }

    .about-btm-right {
        display: block;
        padding: 0 10px 0 10px;
    }

    .about-btm-divider {
        height: 1px;
        width: 100%;
    }
}


/* ============================
   代表あいさつ
============================ */
#message {
    padding: clamp(5.688rem, 3.632rem + 8.43vw, 13.75rem) 0 0 0;
}

.message-container {
    position: relative;
}

.message-box {
    align-items: flex-start;
    width: 100%;
}

.message-img-box {
    width: 41.88%;
}

.message-img {
    width: 100%;
}

.message-txt-box {
    width: 52.94%;
    margin: clamp(0rem, -0.542rem + 2.22vw, 2.125rem) 0 0 0;
}

.message-txt-h4 {
    font-size: clamp(1.125rem, 1.045rem + 0.33vw, 1.438rem);
    font-weight: 400;
    line-height: clamp(2.25rem, 1.915rem + 1.37vw, 3.563rem);
    margin: clamp(1.75rem, 1.304rem + 1.83vw, 3.5rem) 0 0 0;
}

.message-txt-p {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    line-height: clamp(1.75rem, 1.67rem + 0.33vw, 2.063rem);
    margin: clamp(1.25rem, 1.202rem + 0.2vw, 1.438rem) 0 0 0;
    width: clamp(19.375rem, 14.866rem + 18.5vw, 37.063rem);
}

.more-link-message {
    margin: clamp(1.5rem, 1.309rem + 0.78vw, 2.25rem) 0 0 0;
}

.message-txt-box-btm {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52.94%;
}

.message-btm-right {
    width: 100%;
    background-color: #F3F3F3;
    padding: 3.5%;
}

.message-btm-right-link {
    height: 5.5vw;
    width: clamp(18.125rem, 16.436rem + 6.93vw, 24.75rem);
}

.message-btm-right-arrow {
    background: #050505;
    border: none;
}

.message-btm-divider {
    height: 5.5vw;
    background-color: rgba(5, 5, 5, 0.6);
}

@media screen and (max-width: 1800px) {
    .message-txt-box-btm {
        bottom: 5%;
    }
}

@media screen and (max-width: 1630px) {
    .message-txt-box-btm {
        bottom: 0%;
    }
}

@media screen and (max-width: 1450px) {
    .message-btm-right {
        padding: 16px 21px;
    }

    .message-btm-right-link {
        height: 6.2vw;
        width: 49.91%;
    }
}

@media screen and (max-width: 900px) {
    .message-btm-right-link {
        width: 100%;
    }

    .message-btm-divider {
        height: 1px;
    }
}

@media screen and (max-width: 1028px) {
    .message-txt-box-btm {
        position: relative;
        bottom: unset;
        right: unset;
        width: 100%;
        margin: clamp(2.5rem, 2.11rem + 1.6vw, 3.25rem) auto 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .message-box {
        width: 88.57%;
        margin: 0 auto 0 auto;
    }

    .message-txt-box {
        width: 100%;
    }

    .message-img-box {
        width: 100%;
        margin-top: 40px;
    }

    .message-txt-p {
        width: 100%;
    }

    .message-btm-right {
        padding: 3px 30px;
    }

    .message-btm-right-link {
        height: 17.7vw;
    }
}


/* ============================
   リライブウェアとは
============================ */
#relivewear {
    padding: clamp(5.875rem, 4.824rem + 4.31vw, 10rem) 0 0 0;
}

.relivewear-box {
    margin: clamp(2.5rem, 1.895rem + 2.48vw, 4.875rem) 0 0 0;
    background: #F6F6F6;
    border-radius: 50px;
    padding: 0 5.81% 0 4.94%;
}

.relivewear-txt-box {
    width: 33.69%;
}

.relivewear-logo {
    width: clamp(12.25rem, 8.044rem + 17.25vw, 28.75rem);
}

.relivewear-txt-h4 {
    font-size: clamp(1.125rem, 1.045rem + 0.33vw, 1.438rem);
    line-height: 36px;
    font-weight: 400;
    margin: clamp(1.5rem, 1.165rem + 1.37vw, 2.813rem) 0 0 0;
}

/* ノートPC帯: フォントサイズを抑える */
@media screen and (min-width: 1280px) and (max-width: 1800px) {
    .relivewear-txt-h4 {
        font-size: clamp(1.063rem, 0.95rem + 0.25vw, 1.313rem);
        letter-spacing: 0.1em;
        white-space: nowrap;
    }
}

.relivewear-txt-p {
    width: 100%;
    margin: clamp(1rem, 0.825rem + 0.72vw, 1.688rem) 0 0 0;
    line-height: clamp(1.75rem, 1.623rem + 0.52vw, 2.25rem);
}

.more-link-relivewear {
    margin: clamp(1.25rem, 0.868rem + 1.57vw, 2.75rem) 0 0 0;
}

.relivewear-img-box {
    width: 52.51%;
}

.relivewear-img-box-left {
    width: 48%;
}

.relivewear-img-box-right {
    width: 48%;
}

@media screen and (max-width: 1440px) {
    .relivewear-txt-box {
        width: 39.8% impo;
    }
}

@media screen and (max-width: 768px) {
    .relivewear-box {
        display: block;
        border-radius: 16px;
        padding: 40px 21px 0 21px;
    }

    .relivewear-txt-box {
        width: 94.1%;
    }

    .relivewear-img-box {
        width: 100%;
        margin: 40px 0 0 0;
    }

    .relivewear-img-box-left {
        width: 47.5%;
    }

    .relivewear-img-box-right {
        width: 47.5%;
    }
}

/* 無限縦スクロール設定 */
.relivewear-img-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2%;
    overflow: hidden;
    height: clamp(31.25rem, 15.125rem + 25.2vw, 45.375rem); /* 500px at 1024px → 726px at 1920px */
    margin: 0;
    padding: 0;
    position: relative;
}

.relivewear-img-box-left,
.relivewear-img-box-right {
    width: 48%;
    overflow: hidden;
    position: relative;
}

.v-marquee {
    overflow: hidden;
    position: relative;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.v-track {
    --offset: 0px;
    display: flex;
    flex-direction: column;
    gap: 27px;
    animation: scrollDown 60s linear infinite both;

    /* ✅ ガタつき防止 */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    image-rendering: -webkit-optimize-contrast;
}

/* 右カラムの段差 */
.v-stagger .v-track {
    --offset: -301px;
    animation-delay: -310s;
}

.v-track img {
    display: block;
    width: 100%;
    height: auto;
    /* ✅ GPUレイヤー確保でブレ防止 */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
}
/* アニメーション：上→下 */
@keyframes scrollDown {
    0% {
        transform: translate3d(0, calc(var(--offset) - 50%), 0);
    }
    100% {
        transform: translate3d(0, var(--offset), 0);
    }
}

/* アニメーション：下→上 */
@keyframes scrollUp {
    0% {
        transform: translate3d(0, var(--offset), 0);
    }
    100% {
        transform: translate3d(0, calc(var(--offset) - 50%), 0);
    }
}

/* 左カラムは上方向に流す */
.relivewear-img-box-left .v-track {
    animation-name: scrollUp;
}


@media screen and (max-width: 1440px) {
    .v-track {
        gap: 21px;
    }

    .v-stagger .v-track {
        animation-delay: -202s;
    }
}

@media screen and (max-width: 1024px) {
    .v-track {
        gap: 14px;
    }

    .v-stagger .v-track {
        animation-delay: -204s;
    }
}

/* SP調整 */
@media screen and (max-width: 768px) {
    .relivewear-img-box {
        flex-direction: row;
        height: 345px;
        margin-top: 40px;
    }
    .v-track {
        gap: 15px;
        animation: scrollDown 40s linear infinite both;
    }
    .v-stagger .v-track {
        --offset: -212px;
        animation-delay: -209s;
    }
    .relivewear-img-box-left,
    .relivewear-img-box-right {
        width: 47.5%;
    }
}


/* アニメ抑制設定は解除済み */


/* ============================
   ニュース
============================ */
#news {
    padding: clamp(6.063rem, 4.501rem + 6.41vw, 12.188rem) 0 0 0;
}

.news-wrapper {
    width: 100%;
}

.news-txt-box {
    width: 233px;
}

.news-category {
    margin: clamp(3.25rem, 3.234rem + 0.07vw, 3.313rem) 0 0 0;
}

.news-category-list {
    margin-top: 34px;

    li {
        font-size: 16px;
        font-weight: 500;
        &:nth-child(n+2) {
            margin-top: 26px;
        }
    }

    .active {
        color: #BA2A20;
    }
}

.news-list-box {
    width: 79.25%;
    margin-top: 14px;
}

.news-list {
    width: 100%;
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.news-item-meta-box {
    width: 1200px;
    padding-left: clamp(1rem, -2.149rem + 4.916vw, 3.75rem);
    padding-right: 40px;
}

.news-date {
    font-size: 14px;
    color: #858585;
    letter-spacing: 0.1em;
    margin-right: 40px;
    font-weight: 500;
}

.news-cat {
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: 500
}

.news-link {
    display: block;
    font-size: clamp(1rem, 0.968rem + 0.13vw, 1.125rem);
    letter-spacing: -0.01em;
    line-height: 28px;
    text-decoration: none;
    margin-top: 8px;
    font-weight: 500
}

/* ▼ CSSで赤い矢印を再現 */
.news-arrow {
    position: relative;
    width: 0.6%;
    height: 21px;
    flex-shrink: 0;
    margin-right: 12px;
}

.news-arrow::before,
.news-arrow::after {
    content: "";
    position: absolute;
    left: 0;
    width: 3px; /* 線の太さ */
    height: 14px;
    background-color: #BA2A20;
    border-radius: 2px; /* 丸み（stroke-linecap: round相当） */
    transform-origin: left center;
}

.news-arrow::before {
    top: 0;
    transform: rotate(-45deg);
}

.news-arrow::after {
    bottom: 0;
    transform: rotate(45deg);
}

.more-link-news {
    margin: clamp(2.5rem, 2.07rem + 1.76vw, 4.188rem) 0 0 0;

    .more-text {
        letter-spacing: 0;
    }
}

#news {  
    .news-pc-only {
        display: block;
    }

    .news-sp-only {
        display: none;
    }
}
@media screen and (max-width: 1440px) {
    .news-list-box {
        width: 69.25%;
    }
}

@media screen and (max-width: 1024px) {
    #news {  
        .news-pc-only {
            display: none;
        }

        .news-sp-only {
            display: block;
            text-align: center;
        }
    }

    .news-wrapper {
        display: block;
    }

    .news-txt-box {
        width: 100%;
    }

    .news-category-list {
        display: flex;
        gap: 80px;
        align-items: center;
        margin-top: 28px;

        li {
            &:nth-child(n+2) {
                margin-top: 0px;
            }
        }    
    }

    .news-list-box {
        width: 100%;
        margin-top: 56px;
    }

    .animation-box {
        width: 29%;
    }
    .news-item-meta-box {
        padding-left: 0px;
        
    }
}

@media screen and (max-width: 768px) {
    #news {
        .news-sp-only {
            text-align: left;
        }
    }

    .news-container {
        width: 79.488%;
        margin: 0 auto 0 auto;
    }

    .news-category-list {
        margin-top: 5.8%;
    }

    .news-list-box {
        margin-top: 40px;
    }

    .news-item {
        padding: 20px 0 12px 0;
    }

    .news-item-meta-box {
        width: 90.32%;
        padding-right: 0px;
    }

    .news-date {
        margin-right: 17px;
    }
    
    .news-arrow {
        width: 2.6%;
        margin-right: 0px;
    }

    .animation-box {
        width: 100%;
    }
}

/* カテゴリー下スクロールバー */
/* PC/タブレットではカスタムバー非表示 */
.news-scrollbar { display: none; }

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

    /* 左端はコンテンツ幅に揃えたまま */
    .news-category {
        overflow: visible;
        /* 見た目上の左右の余白はそのまま（左は触らない） */
    }

    /* 横スクロール本体 */
    .news-category-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 40px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        margin-top: 6.4%;

        width: calc(100% + (50vw - 50%));   /* 右へだけ拡張 */
        max-width: none;
        /* 左位置は据え置き、右だけ外へ出す */
        margin-right: calc(50% - 50vw);

        /* ネイティブのスクロールバーは消す（自前バーを常時表示） */
        scrollbar-width: none;               /* Firefox */
    }
    .news-category-list::-webkit-scrollbar { display: none; } /* WebKit */
    .news-category-list::after {
        content: "";
        display: block;
        flex: 0 0 40px;
        min-width: 40px;
        height: 1px;
    }

    .news-category-list li {
        flex: 0 0 auto;
        white-space: nowrap;
        margin-top: 0;
    }
    .news-category-list a { display: inline-block; text-decoration: none; }
}

@media screen and (max-width: 490px) {
    /* ▼常時表示のカスタムスクロールバー（さらに小さく） */
    .news-scrollbar {
        display: block;
        position: relative;
        width: 100%;
        height: 2px;
        margin-top: 10px;
        border-radius: 999px;
        background: #E6E6E6;
        overflow: hidden;

        /* ✅ iPhoneでタッチをブロックされないように */
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
    }

    .news-scrollbar__thumb {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 30%;  /* JSが実寸に更新 */
        background: #BA2A20;
        border-radius: inherit;

        /* ✅ iPhone対応: タッチを有効化するための必須指定 */
        pointer-events: auto;
        cursor: pointer;
        touch-action: none;
        -webkit-user-select: none;
        user-select: none;
        z-index: 10; /* ← 他要素に埋もれ防止 */
        will-change: left; /* ← スクロール中のチラつき軽減 */
    }

    /* ✅ Safariで親リストがタッチを奪わないようにする */
    .news-category-list {
        -webkit-overflow-scrolling: auto !important;
        -webkit-mask-image: none;
        mask-image: none;
    }
}

/* ============================
   社会貢献について
============================ */
#csr {
   padding: clamp(6.25rem, 5.294rem + 3.92vw, 10rem) 0 0 0; 
}

.csr-bg {
    padding: clamp(3.563rem, 2.941rem + 2.55vw, 6rem) 0 clamp(6.188rem, 5.072rem + 4.58vw, 10.563rem) 0; 
}

.csr-box {
    width: 100%;
}

.csr-img-box {
    width: 60.438%;
    margin-left: calc(-50vw + 50%);

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

.csr-txt-box {
    width: 43.35%;
}

.csr-txt-p {
    font-size: clamp(0.875rem, 0.843rem + 0.13vw, 1rem);
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: clamp(1.75rem, 1.623rem + 0.52vw, 2.25rem);
    margin: clamp(1.25rem, 0.931rem + 1.31vw, 2.5rem) 0 0 0;
}

.more-link-csr {
    margin: clamp(1.5rem, 1.373rem + 0.52vw, 2rem) 0 0 0;
}

/* 横無限スクロール */
.csr-infinite {
    overflow: hidden;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    margin-top: -6.81vw;
    padding: 0 0 3.5% 0;
}

.scrolling-wrapper {
    will-change: transform;
    display: flex;
    width: max-content;
    animation: scroll-left 50s linear infinite;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    font-family: "Archivo", "Noto Sans JP", sans-serif;
    font-size: clamp(7.5rem, 5.62rem + 7.71vw, 14.875rem);
    letter-spacing: 0.04em;
    font-weight: 700;
    opacity: 0.2;
    color: transparent; /* 中をくり抜く */
    -webkit-text-stroke: 2px #D03719; /* 枠線の太さと色 */
    padding-right: 4rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-30%);
  }
}

.word-change-wap {
    width: 79.7901%;
    margin: clamp(48px, 2.49rem + 2.09vw, 80px) auto 0 auto;

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

.word-change-link {
    display: block;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    .word-change-link:hover {
        opacity: 0.8;
    }
}

@media screen and (max-width: 1440px) {
    .csr-infinite {
        margin-top: -7.75vw;
    }
}

@media screen and (max-width: 1024px) {
    .csr-infinite {
        margin-top: -9.01vw;
    }
}

@media screen and (max-width: 768px) {
    .word-change-wap {
        width: 89.745%;
    }

    .csr-container {
        width: 100%;
    }

    .csr-box {
        flex-wrap: wrap;
    }

    .csr-img-box {
        order: 2;
        width: 100%;
        margin-top: 48px;
    }

    .csr-txt-box {
        order: 1;
        width: 79.4%;
        margin: 0 auto 0 auto;
    }

    .csr-infinite {
        margin-top: -10vw;
        padding: 0 0 5% 0;
    }
}

/* コンタクトセクションは common/contact-section.css に移動 */
