/* ========================================
共通
======================================== */
/* section */
.section-title {
    font-size: 32px;
    color: #00909F;
    line-height: 1;
    font-weight: 400;
}
.section-title-en {
    display: block;
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    margin-top: .5em;
    color: #2a2a2a;
}

/* ========================================
キービジュアル
======================================== */
.main-visual {
    background-image: url("../img/top/kv01-pc.png");
    background-size: cover;
    background-position: bottom;
    height: clamp(360px, 37.5vw, 720px);
    box-shadow: 5px 4px 4px 0px #00000040;
    position: relative;
    z-index: 1;
    line-height: 1;
}
.main-visual__inner {
    position: absolute;
    bottom: 15%;
    left: 0;
}
.main-visual__catch {
    background: rgba(255, 255, 255, 0.85);
    padding: .6em 0 .6em 5vw;
    margin-bottom: .8em;
    font-size: clamp(12px, 1.875vw, 24px);
    font-weight: 700;
    width: fit-content;
}
.main-visual__lead {
    background: rgba(255, 255, 255, 0.85);
    padding: .3em 0 .3em 5vw;
    margin-bottom: .4em;
    font-size: clamp(10px, 1.25vw, 16px);
    width: fit-content;
}

/* ========================================
私たちについて・事業内容
======================================== */
.top-intro {
    padding: 195px 0 140px;
    margin-bottom: 80px;
    position: relative;
}
.top-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background: #00909F;
}

/* 私たちについて */
.about {
    justify-content: space-between;
    margin-bottom: 100px;
}
.about__left {
    width: 30%;
}
.about__title {
    margin-bottom: 2.1875em;
}
.about__lead {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 1.3em;
}
.about__text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 4.2em;
    word-break: auto-phrase;
}
.about__img {
    width: 61.25%;
    height: auto;
}
.about__btn {
    font-size: 22px;
}
.about__btn:hover {
    border: 2px solid #00909F;
}

/* 事業内容 */
.service__title {
    color: #2a2a2a;
    text-align: center;
    font-size: 30px;
    font-weight: 500;
}
.service__title .section-title-en {
    font-size: 17px;
    font-weight: 400;
}
.service__text {
    font-size: 14px;
    text-align: center;
    margin: 2.1em 0 4.1em;
}
.service__list {
    justify-content: space-between;
    flex-wrap: wrap;
}
.service__list li {
    width: 30.5%;
    background: #fff;
    box-shadow: 4px 4px 4px 0px #00000040;
    font-size: 14px;
    padding: 2.8em 0 2em;
    text-align: center;
}
.service__list h3 {
    font-size: 20px;
    font-weight: 700;
}
.service__img {
    width: 81.4%;
    height: 168px;
    margin: 1.5em auto 2em;
    overflow: hidden;
}
.service__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s ease;
}
.service__here {
    font-size: 12px;
    font-weight: 600;
    margin-top: 1.2em;
    position: relative;
    display: inline-flex;
    align-items: center;
    transition: color 0.5s ease;
}
.service__here::before {
  content: "";
  position: absolute;
  width: 100%;
  bottom: 0.08em;
  border-bottom: 1px solid currentColor;
}
.service__here::after {
    content: '';
    width: .6em;
    height: .6em;
    display: inline-block;
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(-45deg);
    margin-left: .3em;
}
.service__list a:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}
.service__list a:hover .service__here {
    color: #00909F;
}
.service__list a:hover .service__here::before {
    border-bottom: none;
}

/* ========================================
施工実績
======================================== */
.works {
    margin-bottom: 200px;
}
.works__left {
    width: calc(100% / 3);
    padding: 60px 0 50px 50px;
    background: #e6e6e6;
    flex-direction: column;
    justify-content: space-between;
}
.works__img {
    width: calc(100% / 3 * 2);
    height: auto;
}

/* ========================================
取扱製品
======================================== */
#products {
    scroll-margin-top: calc(var(--header-height) + 20px);
}
.products {
    margin-bottom: 200px;
}
.products__list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: start;
    gap: 2em 2.6%;
    font-size: 20px;
    font-weight: 400;
    margin: 2.5em 0 7.5em;
}
.products__list li {
    min-width: 0;
    font-size: 95%;
}
.products__list li:nth-child(odd) {
    transform: translateY(4.5em);
}
.products__list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.products__img {
    width: 100%;
    aspect-ratio: 175 / 260;
    overflow: hidden;
}
.products__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s ease;
}
.products__name {
    position: relative;
    margin: .2em auto 0;
    letter-spacing: -0.1em;
    display: inline-block;
    font-weight: 400;
}
.products__name::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    height: 1px;
    background-color: #00909F;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.products__list a:hover img {
    transform: scale(1.05);
    opacity: 0.8;
}
.products__list a:hover .products__name::before {
    transform: scaleX(1);
}

/* 取扱メーカー */
.manufacturer__title {
    font-size: clamp(12px, 1.5625vw, 20px);
    font-weight: 400;
    position: relative;
    text-align: center;
}
.manufacturer__title::before,
.manufacturer__title::after {
    content: "";
    position: absolute;
    height: 1px;
    background: #2a2a2a;
    top: .8em;    
}
.manufacturer__title::before {
    left: 0;   
}
.manufacturer__title::after {
    right: 0;   
}
.manufacturer__title--main::before,
.manufacturer__title--main::after {
    width: calc(50% - 4em);
}
.manufacturer__title--other::before,
.manufacturer__title--other::after {
    width: calc(50% - 5em);
}
.manufacturer__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 3%;
    padding: 10px 0 clamp(10px, 3.9vw, 50px);
}
.manufacturer__list li {
    display: flex;
    align-items: center;
    height: clamp(50px, 5.46875vw, 70px);
    font-size: clamp(12px, 1.328125vw, 17px);
    font-weight: 400;
}
.manufacturer__list img {
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.manufacturer__note {
    text-align: center;
    font-size: clamp(12px, 1.328125vw, 17px);
    font-weight: 400;
}

/* 企業ロゴサイズ調整 */
.manufacturer__list .logo-aswan {
    width: 15.8%;
}
.manufacturer__list .logo-inoue {
    width: 25%;
}
.manufacturer__list .logo-okamura {
    width: 20%;
}
.manufacturer__list .logo-kawashima {
    width: 25.3%;
}
.manufacturer__list .logo-komatsu {
    width: 14.4%;
}
.manufacturer__list .logo-sangetsu {
    width: 17.4%;
}
.manufacturer__list .logo-silentgliss {
    width: 17.4%;
}
.manufacturer__list .logo-cinema {
    width: 15.8%;
}
.manufacturer__list .logo-toli {
    width: 9.7%;
}
.manufacturer__list .logo-toso {
    width: 9.6%;
}
.manufacturer__list .logo-arakawa {
    width: 20%;
}
.manufacturer__list .logo-naiki {
    width: 9.9%;
}
.manufacturer__list .logo-fujie {
    width: 8.2%;
}
.manufacturer__list .logo-manas {
    width: 11.8%;
}
.manufacturer__list .logo-lilycolor {
    width: 11.6%;
}


/* ========================================
会社概要・施工パートナー 募集
======================================== */
.company,
.partner {
    background-size: cover;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 26px;
    max-width: 1200px;
    padding: 0;
    position: relative;
    z-index: 0;
}
.company::before,
.partner::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}
.company {
    background-image: url("../img/top/bg-company-pc.webp");
    height: 420px;
    margin: 0 auto 270px;
}
.partner {
    background-image: url("../img/top/bg-partner-pc.webp");
    height: 300px;
    margin: 0 auto;
}

/* ========================================
採用情報
======================================== */
.recruit {
    position: relative;
    padding: 95px 0 70px 80px;
    max-width: 1190px;
    margin: 0 auto clamp(40px, 14.2vw, 182px);
    z-index: 1;
}
.recruit::before,
.recruit::after {
    content: "";
    position: absolute;
    width: 45%;
    height: 57%;
    z-index: -1;
}
.recruit::before {
    top: -5px;
    right: -5px;
    border-top: 10px solid #00909F;
    border-right: 10px solid #00909F;
}
.recruit::after {
    left: -5px;
    bottom: -5px;
    border-left: 10px solid #00909F;
    border-bottom: 10px solid #00909F;
}
.recruit__title {
    margin-bottom: 2em;
}
.recruit__text {
    font-size: 14px;
    margin-bottom: 2.6em;
}
.recruit__img {
    position: absolute;
    top: 50%;
    right: 4%;
    width: 54%;
    height: auto;
    transform: translateY(-50%);
    margin-top: -3%;
}

/* メディアクエリ */
@media screen and (max-width: 1280px) {
    /* ========================================
    共通
    ======================================== */
    /* section */
    .section-title {
        font-size: 2.5vw;
    }
    .section-title-en {
        font-size: 1.40625vw;
    }

    /* ========================================
    私たちについて・事業内容
    ======================================== */
    .top-intro {
        padding: 15.234375vw 0 10.9375vw;
        margin-bottom: 6.25vw;
    }
    .top-intro::before {
        width: 1.5625vw;
    }

    /* 私たちについて */
    .about {
        margin-bottom: 7.8125vw;
    }
    .about__lead {
        font-size: 1.5625vw;
    }
    .about__text {
        font-size: 1.09375vw;
    }
    .about__btn {
        font-size: 1.71875vw;
    }

    /* 事業内容 */
    .service__title {
        font-size: 2.34375vw;
    }
    .service__title .section-title-en {
        font-size: 1.328125vw;
    }
    .service__text {
        font-size: 1.09375vw;
    }
    .service__list li {
        font-size: 1.09375vw;
    }
    .service__list h3 {
        font-size: 1.5625vw;
    }
    .service__img {
        height: 13.125vw;
    }
    .service__here {
        font-size: 0.9375vw;
    }

    /* ========================================
    施工実績
    ======================================== */
    .works {
        margin-bottom: 15.625vw;
    }
    .works__left {
        padding: 4.6875vw 0 3.90625vw 3.90625vw;
    }

    /* ========================================
    取り扱い製品
    ======================================== */
    .products {
        margin-bottom: 15.625vw;
    }
    .products__list {
        font-size: 1.5625vw;
    }

    /* その他 取り扱い製品はこちら */
    .products-more__center {
        font-size: 1.5625vw;
    }
    .products-more__list a {
        font-size: 1.09375vw;
    }

    /* ========================================
    会社概要
    ======================================== */
    .company {
        height: 32.8125vw;
        gap: 2.03125vw;
        margin: 0 auto 21.09375vw;
    }

    /* ========================================
    採用情報
    ======================================== */
    .recruit {
        padding: 7.421875vw 0 5.46875vw 6.25vw;
        width: calc(100% - 0.78125vw);
    }
    .recruit::before {
        top: -0.390625vw;
        right: -0.390625vw;
        border-top: 0.78125vw solid #00909F;
        border-right: 0.78125vw solid #00909F;
    }
    .recruit::after {
        left: -0.390625vw;
        bottom: -0.390625vw;
        border-left: 0.78125vw solid #00909F;
        border-bottom: 0.78125vw solid #00909F;
    }
    .recruit__text {
        font-size: 1.09375vw;
    }
}

/* メディアクエリ */
@media screen and (max-width: 768px) {
    /* ========================================
    共通
    ======================================== */
    /* section */
    .section-title {
        font-size: 20px;
        display: flex;
        gap: 5px 10px;
        align-items: baseline;
    }
    .section-title-en {
        font-size: 14px;
        margin-top: 0;
    }
    
    /* ========================================
    キービジュアル
    ======================================== */
    .main-visual {
        background-image: url("../img/top/kv01-sp.png");
        background-position: center;
        height: 430px;
    }
    .main-visual__inner {
        bottom: 42px;
    }
    .main-visual__catch {
        margin: 0 0 16px;
        font-size: 18px;
        padding-left: 16px;
    }
    .main-visual__lead {
        font-size: 12px;
        padding-left: 16px;
    }
    .main-visual__lead--split {
        background: none;
        padding: 0;
        margin-bottom: 0;
    }
    .main-visual__lead-line {
        display: block;
        width: fit-content;
        background: rgba(255, 255, 255, 0.85);
        padding: .3em 0 .3em 16px;
        margin-bottom: .4em;
    }

    /* ========================================
    私たちについて・事業内容
    ======================================== */
    .top-intro {
        padding: 50px 0;
        margin-bottom: 55px;
    }
    .top-intro::before {
        content: none;
    }

    /* 私たちについて */
    .about {
        margin-bottom: 65px;
    }
    .about__left {
        width: 100%;
    }
    .about__title {
        margin-bottom: 30px;
    }
    .about__lead {
        font-size: 17px;
        margin-bottom: 10px;
    }
    .about__text {
        font-size: 12px;
        margin-bottom: 30px;
        line-height: 1.85;
        word-break: break-all;
    }
    .about__img {
        width: 100%;
        margin-bottom: 40px;
    }
    .about__btn {
        margin: 0 auto;
        font-size: 15px;
    }

    /* 事業内容 */
    .service__title {
        flex-direction: column;
        align-items: center;
    }
    .service__title .section-title-en {
        font-size: 14px;
    }
    .service__text {
        font-size: 12px;
        margin: 20px 0 30px;
    }
    .service__list {
        gap: 30px;
        justify-content: center;
    }
    .service__list li {
        width: 283px;
        font-size: 11px;
        padding: 20px 0;
    }
    .service__list h3 {
        font-size: 15px;
    }
    .service__img {
        width: 243px;
        height: 135px;
        margin: 20px auto 18px;
    }
    .service__here {
        font-size: 11px;
    }
    .service__here::after {
        border-bottom: 1px solid currentColor;
        border-right: 1px solid currentColor;
    }

    /* ========================================
    施工実績
    ======================================== */
    .works {
        margin-bottom: 55px;
    }
    .works__left {
        width: 100%;
        padding: 30px;
    }
    .works__img {
        width: 100%;
        margin: 20px 0;
    }
    .works__btn {
        margin: 0 auto;
    }

    /* ========================================
    取り扱い製品
    ======================================== */
    .products {
        margin-bottom: 100px;
    }
    .products__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 13px;
        font-size: 13px;
        font-weight: 400;
        margin: 20px 0 30px;
    }
    .products__list li {
        position: relative;
    }
    .products__list li:nth-child(odd) {
        transform: none;
    }
    .products__list li a {
        aspect-ratio: 1;
        display: block;
    }
    .products__img {
        width: 100%;
        height: 100%;
    }
    .products__name {
        position: absolute;
        bottom: 0;
        background: rgba(0, 144, 159, 0.55);
        color: #fff;
        width: 100%;
        height: 31px;
        padding: 0 8px;
        font-size: 13px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .products__name::after {
        content: "";
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        background-image: url("../img/common/icon-arrow-circle-pr.svg");
        background-repeat: no-repeat;
        background-size: contain;
    }
    .products__list a:hover .products__name {
        color: #fff;
    }
    .products__list a:hover .products__name::after {
        background-image: url("../img/common/icon-arrow-circle-pr.svg");
    }

    /* その他 取り扱い製品はこちら */
    .products-more {
        margin: 30px 0 0;
    }
    .products-more__center {
        font-size: 12px;
    }
    .products-more__arrow {
        border-right: 1px solid currentColor;
        border-bottom: 1px solid currentColor;
    }
    .products-more.is-open .products-more__panel {
        padding: 10px 0 20px;
    }
    .products-more__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .products-more__list a {
        font-size: 12px;
    }

    /* 取扱メーカー */
    .manufacturer__list .logo-aswan {
        width: 106px;
    }
    .manufacturer__list .logo-inoue {
        width: 170px;
    }
    .manufacturer__list .logo-okamura {
        width: 134px;
    }
    .manufacturer__list .logo-kawashima {
        width: 169px;
    }
    .manufacturer__list .logo-komatsu {
        width: 97px;
    }
    .manufacturer__list .logo-sangetsu {
        width: 117px;
    }
    .manufacturer__list .logo-silentgliss {
        width: 117px;
    }
    .manufacturer__list .logo-cinema {
        width: 110px;
    }
    .manufacturer__list .logo-toli {
        width: 65px;
    }
    .manufacturer__list .logo-toso {
        width: 64px;
    }
    .manufacturer__list .logo-arakawa {
        width: 134px;
    }
    .manufacturer__list .logo-naiki {
        width: 66px;
    }
    .manufacturer__list .logo-fujie {
        width: 56px;
    }
    .manufacturer__list .logo-manas {
        width: 78px;
    }
    .manufacturer__list .logo-lilycolor {
        width: 78px;
    }
    .manufacturer--other .manufacturer__list {
        gap: 0 35px; 
    }

    /* ========================================
    会社概要・パートナー募集
    ======================================== */
    .company {
        height: 210px;
        margin-bottom: 60px;
        gap: 20px;
        background-image: url("../img/top/bg-company-sp.webp");
    }
    .partner {
        background-image: url("../img/top/bg-partner-sp.webp");
        height: 148px;
    }
    .company__title,
    .partner__title {
        flex-direction: column;
    }


    /* ========================================
    採用情報
    ======================================== */
    .recruit {
        padding: 30px 20px;
        width: calc(100% - 32px);
    }
    .recruit::before,
    .recruit::after {
        width: 150px;
        height: 100px;
    }
    .recruit::before {
        top: -2px;
        left: -2px;
        right: auto;
        border-top: 4px solid #00909F;
        border-left: 4px solid #00909F;
        border-right: none;
    }
    .recruit::after {
        right: -2px;
        bottom: -2px;
        left: auto;
        border-right: 4px solid #00909F;
        border-bottom: 4px solid #00909F;
        border-left: none;
    }
    .recruit__title {
        margin-bottom: 26px;
    }
    .recruit__text {
        font-size: 12px;
        margin-bottom: 20px;
    }
    .recruit__img {
        position: initial;
        width: 100%;
        transform: none;
        margin-top: 40px;
    }
    
}