/* =================================================================
                    Hero / メインビジュアル
===================================================================*/
.hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

.hero__inner {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide picture,
.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}

.hero__catch {
    position: absolute;
    bottom: 4.16666666vw;
    padding-left: 4.16666666vw;
    width: 54.7222222vw;
    z-index: 10;
}

.hero__catch img {
    width: 100%;
    height: auto;
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .hero__inner {
        padding-top: -100px;
    }
    .hero-swiper .swiper-slide picture,
    .hero-swiper .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero__catch {
        bottom: 4.16666666vw;
        padding-left: 4.16666666vw;
        width: 92vw;
        z-index: 10;
    }
}


/* =================================================================
                    About / ライゼンについて
===================================================================*/

.about {
    width: 100%;
    background-image: url(../image/top/about-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 0 auto;
    padding: 0 60px;
    width: 100%;
    max-width: 1320px;
}

.about__image {
    width: 39.75%;
    max-width: 477px;
    height: auto;
}

.about__image img {
    width: 100%;
    height: auto;
}

.about__content {
    width: 51.25%;
}

.about__content > h2.section-title {
    margin-bottom: 0.75em;
}

.about__description {
    margin-bottom: 2.7777777777em;
}

.about__text {
    font-size: var(--font-size-body-lg);
    line-height: 2;
    color: var(--text-color-gray);
    margin-bottom: 0.75em;
}

.about__link {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */

@media (max-width: 1024px) {
    .about__inner {
        gap: 30px;
        padding: 0 40px;
    }

    .about__image {
        width: 100%;
        max-width: 477px;
        height: auto;
    }

    .about__content {
        width: 57.25%;
    }
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .about__inner {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 50px;
        padding: 0 24px;
    }

    .about__image {
        width: 87.2vw;
    }

    .about__content {
        width: 100%;
    }

    .about__link {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}


/* =================================================================
                    features / ライゼンの特長
===================================================================*/

.features {
    position: relative;
    width: 100%;
}

.features__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 91.66666666vw;
    height: 48.125vw;
    max-height: 680px;
    background-color: var(--bg-color-light-gray);
    z-index: -9;
}

.features__link {
    margin-top: -120px;
    margin-bottom: 80px;
    text-align: right;
}

/* ==== features swiper common ==== */
.features-swiper__wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    max-width: 1200px;
    margin-left: auto;
    list-style: none;
    padding: 0;
}

.features-swiper__slide {
    width: 30%;
    flex-shrink: 0;
}

.features__item {
    position: relative;
}

.features__item a {
    transition: opacity 0.3s ease;
}

.features__item a:hover {
    opacity: .6;
} 

.features__image {
    width: 100%;
    z-index: 9;
}

.features__image img {
    display: block;
    transition: opacity 0.3s ease;
}

.features__desc {
    pointer-events: none;
}
.features__item a:hover .features__image img {
    opacity: 0.6;
}
.features__number {
    position: absolute;
    top: -0.1em;
    left: 0;
    font-size: clamp(4em, 0.625vw ,9rem);
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 34, 119, 0.2);
    z-index: 99;
}

h3.features__title {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    width: 100%;
    height: 34.7826%;
    padding: 8%;
    background-color: rgba(24, 24, 24, 0.5);
    font-weight: 700;
    color: var(--text-color-white);
    z-index: 99;
}

h3.features__title span {
    display: inline-block;
    font-size: clamp(1.6rem, 1.666666vw , 2.4rem);
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color-white);
}

.fa-solid {
    position: absolute;
    right: 7%;
    bottom: 7%;
    z-index: 999;
}

.icon-chevron {
    font-size: clamp(2.0rem, 2.5vw, 3.6rem);
    transition: font-size 0.7s ease;
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .features {
        padding: 80px 20px;
    }

    .features::before {
        width: 87.2vw;
        height: 478px;
    }

    .features__inner {
        padding: 0;
    }

    .features__link {
        margin-top: initial;
        margin-bottom: 40px;
    }

    .features-swiper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 20px;
    padding-right: 20px;
    scrollbar-width: none; /* Firefox */
    }

    .features-swiper::-webkit-scrollbar {
        display: none; /* Chrome/Safari*/
    }
    .features-swiper__wrapper {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        list-style: none;
        padding: 0;
        margin: 0;
        justify-content: flex-start; /* ← 右寄せを防ぐ */
        width: max-content; /* ← 必須！横幅に応じて拡張 */
    }

    .features-swiper__slide {
        width: 250px;
        flex-shrink: 0;
    }

    h3.features__title {
        height: 98px;
    }

    .fa-solid {
        bottom: 20px;
    }

    .icon-chevron {
        font-size: 1.8rem;
    }
}


/* =================================================================
                    Reasons / 選ばれる理由
===================================================================*/

.reasons {
    width: 100%;
    background-color: var(--bg-color-light-gray);
}

.reasons__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.reasons__link {
    margin-top: -120px;
    margin-bottom: 80px;
    text-align: right;
}

.reasons__list {
    width: 100%;
    max-width: 1180px;
    padding: 0 40px;

}

.reasons__item {
    position: relative;
    width: 600px;
    height: 150px;
    border: 2px solid var(--text-color-gray);
    background-color: var(--text-color-white);

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left; /* テキスト寄り防止のため念のため追加 */
}

.reasons__item:first-child {
    margin-left: auto;
    margin-bottom: 60px;
}

.reasons__item:nth-child(2){
    margin: auto;
    margin-bottom: 60px;
}


.reasons__number {
    position: absolute;
    top: calc(-1em / 2);
    left: calc(-1em / 2);
    font-size: clamp(7rem, 6.25vw, 9rem);
    font-weight: 700;
    color: #BFBFBF;
}

h3.reasons__title {
    display: flex;
    align-items: center;
    gap: 20px; /* 画像とテキストの間隔 */
    font-size: var(--font-size-title-lg);
    font-weight: 700;
    line-height: 1.4;
    margin: 0; /* デフォルトの余白除去 */
}

.reasons__title span {
    display: inline-block; /* brを使った箇所以外で改行しないように */
    white-space: pre-line; /* <br>だけで改行されるように */
}

h3.reasons__title img {
    width: 70px;
    height: auto;
}

/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */
@media (max-width: 1024px) {
    .reasons__inner {
        margin: 0 auto;
        padding: 0 40px;
    }
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .reasons__inner {
        margin: 0 auto;
        padding: 0 24px;
    }
    .reasons__link {
        margin-top: initial;
        margin-bottom: 40px;
    }

    .reasons__list {
        width: 100%;
        padding: 0;
    }


    .reasons__item {
        width: 100%;
        max-width: 327px;
        height: 80px;
        border: 1px solid var(--text-color-gray);
    }
    .reasons__number {
        position: absolute;
        top: calc(-1em / 2);
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        font-size: 4rem;
        font-weight: 700;
        color: #BFBFBF;
    }

    h3.reasons__title img {
        width: 43px;
        height: auto;
    }
}


/* =================================================================
                    products / 製品紹介
===================================================================*/

.products {
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 60px;
}

.products__link {
    margin-top: -120px;
    margin-bottom: 80px;
    text-align: right;
}

.products__contents {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 20px;
}

.products__desc p {
    padding-bottom: 1.333333em;
    font-size: var(--font-size-body-lg);
    font-weight: 700;
    line-height: 2;
}


/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */
@media (max-width: 1024px) {
    .products {
        padding: 80px 40px;
    }
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .products {
        padding: 80px 24px;
    }

    .products__link {
        margin-top: initial;
        margin-bottom: 40px;
    }

    .products__contents {
        flex-direction: column;
        gap: 40px;
        padding: 0;
    }
    .products__image {
        max-width: 477px;
    }

}


/* =================================================================
                    Flow / ご依頼から納品までの流れ
===================================================================*/
.flow {
    position: relative;
    width: 100%;
}

.flow__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 60px;
}

.flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 91.66666666vw;
    height: 44.277778vw;
    max-height: 600px;
    background-color: var(--bg-color-light-gray);
    z-index: -9;
}

.flow__link {
    margin-top: -120px;
    margin-bottom: 80px;
    text-align: right;
}


.flow__list {
    display: flex;
    justify-content: end;
    gap: 50px;
    max-width: 1240px;
}

.flow__item {
    position: relative;
    width: 20.8%;
    max-width: 250px;
    height: 260px;
    padding: 50px 10px 55px;
    border: 2px solid var(--text-color-gray);
    background-color: var(--text-color-white);
    text-align: center;
}

.flow__item::after {
    position: absolute;
    top: 50%;    
    right: -39px;
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 20px solid #AEAEAE;

}

.flow__item:last-child::after {
    display: none;

}

.flow__item span {
    position: absolute;
    top: -1em;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    padding: 2rem;
    background-color: var(--text-color-white);
    border: 2px solid var(--text-color-gray);
    border-radius: 50%;
    font-size: clamp(2.1rem, 3.19444444vw, 4.6rem);
    font-weight: 700;
    color: var(--text-color-light-gray);
    z-index: 99;
}

.flow__item img {
    margin: auto;
    height: 120px; /* ここで画像エリアの高さを統一（必要に応じて調整） */
    object-fit: contain; /* アスペクト比を崩さず中に収める */

}
.flow__icon {
    width: 23.6%;
}

.flow__icon--wide {
    width: 42.4%;
}

.flow__item p{
    font-size: var(--font-size-title-sm);
    font-weight: 700;
    line-height: 1.4;
}

/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */

@media (max-width: 1024px) {
    .flow {
        padding: 80px 40px;
    }
    .flow__inner {
        padding: 0;
    }
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .flow {
        padding: 80px 24px;
    }

    .flow::before {
        width: 93.6vw;
        height: 600px;
        background-color: var(--bg-color-light-gray);
        z-index: -9;
    }

    .flow__inner {
        padding: 0;
    }

    .flow__link {
        margin-top: initial;
        margin-bottom: 40px;
    }
    
    .flow__list {
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    .flow__item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 87.2%;
        max-width: 500px;
        height: 80px;
        border: 1px solid var(--text-color-gray);
    }

    .flow__item::after {
        position: absolute;
        top: initial;
        bottom: -32px;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        content: '';
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 16px solid #AEAEAE;
    }

    .flow__item span {
        font-size: 2.1rem;
        padding: 0.5em;
        border: 1px solid var(--text-color-gray);
    }
    

    .flow__item img {
        margin: initial;
        height: 60px; /* ここで画像エリアの高さを統一（必要に応じて調整） */
        object-fit: contain; /* アスペクト比を崩さず中に収める */

    }
    .flow__icon {
        width: 30px;
    }

    .flow__icon--wide {
        width: 60px;
    }

}


/* =================================================================
                    Recruit / 採用情報
===================================================================*/
.recruit {
    width: 100%;
    margin: 0 auto;
    background-color: var(--bg-color-light-blue);
}

.recruit__inner {
    display: flex;
    gap: 60px;
    max-width: 1320px;
    margin: auto;
    padding: 0 60px;

}

.recruit__link {
}

.recruit__contents {
}

.recruit__desc  {
    width: 48.38%;
    max-width: 600px;
}

.recruit__desc > .section-title {
    margin-bottom: 40px;
}

.recruit__desc p {
    padding-bottom: 2.222222em;
    font-size: var(--font-size-body-lg);
    font-weight: 500;
    line-height: 2;
    color: var(--text-color-gray);
}

.recruit__image {
    position: relative;
    width: 43%;
    max-width: 577px;
}

.recruit__image img {
    width: 75.5632%;
    max-width: 436px;
}

.recruit__image img:first-child {
    position: absolute;
    top: -15px;
    right: 0;
    min-width: 400px;
}

.recruit__image img:nth-child(2) {
    position: absolute;
    bottom: -15px;
    left: 0;
    min-width: 400px;
}


/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */

@media (max-width: 1024px) {
    .recruit__inner {
        justify-content: space-between;
        gap: 30px;
        padding: 0 40px;
    }
    .recruit__image img:first-child {
        position: absolute;
        top: 0;
        right: 0;
        min-width: 280px;
        max-width: 312px;
    }
    .recruit__image img:nth-child(2) {
        position: absolute;
        bottom: 0;
        min-width: 280px;
        max-width: 312px;
    }
}


/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {    
    .recruit__inner {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: auto;
        padding: 0;
    }

    .recruit__desc {
        width: 100%;
        max-width: initial;
        padding: 0 24px;
    }

    .recruit__link {
        margin-top: initial;
        text-align: center;
    }

    .recruit__image {
        width: 100%;
        max-width: initial;
    }

    .recruit__image img:first-child {
        position: initial;
        margin-bottom: 30px;
        margin-left: auto;
        min-width: initial;
        max-width: 444px;
    }

    .recruit__image img:nth-child(2) {
        position: initial;
        min-width: initial;
        max-width: 444px;
    }
}


/* =================================================================
                    News / お知らせ
===================================================================*/

.news {
    position: relative;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 140px 60px;
}

.news__inner {
    margin: 0 auto;
}

.news__link {
    margin-top: -120px;
    margin-bottom: 80px;
    text-align: right;
}

.news__list {
    display: block;
    width: 75%;
    margin-left: auto; /* ← 右寄せ */
    margin-right: 60px;
    text-align: left; /* ← リスト内のテキストは左寄せ */
}

.news__item {
    width: 100%; 
    padding-top: 1.6666em;
    padding-bottom: 1.6666em;
    border-bottom: 2px solid #C1C1C1;
    font-weight: 700;
    text-align: left;
    transition: opacity 0.3s ease; 
}

.news__item:first-child {
    padding-top: 0;
    padding-bottom: 1.6666em;
    border-bottom: 2px solid #C1C1C1;
}

.news__item-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-right: 2em;
    color: inherit;
    text-decoration: none;
    gap: 0.5em; /* dateとtitleの間隔 */
}

.news__item:hover {
    opacity: 0.5;
}

.news__title {
    margin: 0; /* pタグのデフォルトマージン除去 */
    font-size: var(--font-size-body-lg);
    font-weight: 700;
    line-height: 1.75;
}

.news__icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #c1c1c1;
    font-size: 1em;
    transition: transform 0.3s ease;
}

/* ホバー時にアイコンが右に動く */
.news__item-link:hover .news__icon {
    transform: translateY(-50%) translateX(5px);
}

.news__date {
    padding-right: 1em;
    font-size: var(--font-size-body-md);
    font-weight: 500;
    line-height: 1.75;
    color: #565656;

}



/* ========================= タブレット・レスポンシブ対応（1024px以下） ========================= */

@media (max-width: 1024px) {
    .news {
        padding: 80px 40px;
    }

    .news__list {
        width: 80%;
        margin-right: 0;
    }

    .news__item {
        width: 100%;
    }
}

/* ========================= SP・レスポンシブ対応（768px以下） ========================= */

@media (max-width: 768px) {
    .news {
        padding: 80px 24px;
    }

    .news__link {
        margin-top: initial;
        margin-bottom: 40px;
    }

    .news__inner {
        padding: 0;
    }

    .news__list {
        width: 100%;
    }
    .news__date {
        padding-right: 1em;
        font-size: 1.2rem;
        font-weight: 500;
        line-height: 1.75;
        color: #565656;
    }   

    .news__item-link {
        flex-direction: column;
        align-items: flex-start;
        gap:initial
    }

    .news__icon {
        top: auto;
        bottom: 6px;
        transform: translateY(6);
    }
}