@charset "utf-8";

body {
    color: var(--font-black);
}
/*========= VISUAL ===============*/
.visual {
  background: url(../images/servicevisual.webp) center / cover;
}

/*****  VISUAL SP *****/
@media screen and (max-width: 768px){
    .visual {
        background: url(../images/servicevisual_sp.webp) center / cover;
    }
} /* SP 768px */
/*========= CONTENTS ===============*/
.mainTopic {
    text-align: center;
}

.mainTopic .titlename {
    position: relative;
    top: auto;
    left: auto;
    color: var(--main-purple);
    font-size: clamp(1.4rem, 1.38vw, 2rem);
    line-height: 1.5;
    margin: 0;
}

.mainTopic .title {
    position: relative;
    line-height: 1.5;
    font-size: clamp(1.8rem, 2.77vw, 4rem);
}

.mnavi {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: clamp(1.6rem, 1.52vw, 2.2rem)  ;
}

.mnavi li a {
    display: inline-block;
    width: auto;
    padding: 10px 0;
    background: transparent;
    color: var(--font-black);
    font-weight: 400;
    text-align: left;
    transition: color 0.2s;
}

.mnavi li.current a,
.mnavi li a:hover {
    background: transparent;
    color: var(--main-purple);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .mnavi {
        width: min(100%, 30rem);
        margin-inline: auto;
    }

    .mnavi li a {
        width: 100%;
        padding: 10px 0;
        font-size: 1.1em;
    }
}

.mnavi li a::after {
    display: block;
    background: var(--main-purple);
    left: 0;
    width: 100%;
}

.topicList {
    display: grid;
    grid-template-columns: minmax(420px, 900px) minmax(320px, 640px);
    gap: clamp(2rem, 3vw, 4rem);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .topicList {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.title {
    color: var(--font-black);
    font-size: clamp(1.8rem, 2.22vw, 3.2rem);
}

/*========= COMPETENCE ===============*/
#competence {
    padding: 10% 15%;
}

#competence .title {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    transform: none;
    margin: 0;
    color: var(--main-purple);
    font-size: clamp(2rem, 2.77vw, 4rem);
    line-height: 1.7;
}

#competence .contents {
    margin-top: 2rem;
}

#competence .text {
    position: relative;
    display: inline;
    color: var(--main-purple);
    font-weight: 700;
    font-size: clamp(1.6rem, 1.38vw, 2rem);
}

@media screen and (max-width: 768px) {
    #competence .text {
        line-height: 1.35;
    }
}

#competence .titlename {
    font-size: clamp(1.4rem, 1.38vw, 2rem);
    color: rgba(var(--main-color-rgb), 0.3);
}

#competence ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 4rem;
    row-gap: 2rem;
    margin-top: 4rem;
}

#competence ul li {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#competence ul li:not(:last-child)::after {
    content: '▶';
    position: absolute;
    right: -2.8rem;
    top: clamp(4rem, 7vw, 7rem);
    color: var(--main-color);
    font-size: clamp(2rem, 2.22vw, 3.2rem);
    line-height: 1;
}

#competence ul li img {
    width: 100%;
    height: auto;
    display: block;
}

#competence ul li p {
    font-size: clamp(1.2rem, 1.04vw, 1.5rem);
    line-height: 1.8;
}

#competence ul.competence__notes {
    display: block;
    grid-template-columns: unset;
    margin-top: 0;
    gap: 0;
}

#competence ul.competence__notes li {
    position: static;
    padding-left: 1.4em;
    font-size: clamp(1.1rem, 0.97vw, 1.4rem);
    line-height: 1.8;
    gap: 0;
}

#competence ul.competence__notes li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 0.8em;
}

#competence ul.competence__notes li::after {
    display: none;
}

.topic {
    font-size: clamp(1.6rem, 1.8vw, 2.6rem);
    padding: 0.25em 0.5em;
    border-left: solid 5px var(--main-purple);
    color: var(--font-black);
    font-weight: 700;
}

.competence__text {
    position: relative;
    font-size: clamp(1.4rem, 1.38vw, 1.8rem);
    line-height: 2;
}


/*****  COMPETENCE SP *****/
@media screen and (max-width: 1024px){
    #competence {
        padding: 10% 10%;
    }

    #competence ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 2.4rem;
        row-gap: 2.4rem;
    }

    #competence ul li::after {
        display: none;
    }
}

@media screen and (max-width: 768px){
    #competence ul {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .topic {
        line-height: 1.5;
    }
} /* SP 768px */

@media screen and (max-width: 480px){
    .spBr {
        display: block;
    }
}
/*========= assignment ===============*/
.titlename {
    color: rgba(var(--main-purple-rgb), 0.2);
    font-size: clamp(4rem, 5.55vw, 8rem);
    line-height: 0.9;
}

.title {
    font-size: clamp(1.6rem, 1.66vw, 2.4rem);
}

#assignment {
    background: url(../images/assignmentbg.webp) center / cover;
}

.assignment__contents img {
    align-self: flex-start;
    width: 45%;
}

.assignment__label {
    color: var(--main-purple);
    font-size: clamp(2rem, 2.22vw, 3.2rem);
    border-left: solid 5px var(--main-purple);
    padding-left: 2rem;
}

.assignment__text strong {
    color: var(--font-black);
    font-size: clamp(1.4rem, 1.38vw, 2rem);
}

.assignment__text {
    font-size: clamp(1.6rem, 1.66vw, 2.4rem);
    padding-left: 2.5rem;
}

/* =============== ASSIGNMENT CHART =============== */
#assignment #chart01.chart-service {
    display: block;
    width: min(100%, 1180px) !important;
    max-width: 1180px !important;
    height: clamp(420px, 50vw, 700px) !important;
    margin: 2rem auto;
    padding: 0 !important;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.8rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#chart01-legend {
    width: min(100%, 1180px);
    margin: 1.8rem auto 0;
}

#chart01-legend .chart-legend-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 2.4rem;
    margin: 0;
    padding: 0;
}

#chart01-legend .chart-legend-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--font-black);
    font-size: clamp(1.8rem, 2vw, 2.4rem);
    line-height: 1.5;
}

#chart01-legend .chart-legend-swatch {
    width: 64px;
    min-width: 64px;
    height: 22px;
    border-radius: 2px;
}

@media screen and (max-width: 768px) {
    #chart01-legend .chart-legend-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    #chart01-legend .chart-legend-item {
        font-size: clamp(1.5rem, 4.2vw, 1.9rem);
    }

    #chart01-legend .chart-legend-swatch {
        width: 52px;
        min-width: 52px;
        height: 18px;
    }
}

@media screen and (max-width: 768px) {
    #assignment #chart01.chart-service {
        height: clamp(380px, 92vw, 560px) !important;
    }
}

/* =============== ASSIGNMENT02 =============== */
.section--assignment02 {
    padding: 3% 7% 5%;
}
.assignment02__text {
    font-size: clamp(1.4rem, 1.38vw, 2rem);
}

#assignment02 strong {
    color: var(--main-purple);
}

#assignment02 strong::before {
    content: '▼';
    margin-right: 0.35em;
}

/* =============== FLOW =============== */
#flow {
    background: url(../images/flowbg02.webp) center / cover;
}

#flow strong,
#flow .flow-note::before {
    color: var(--main-purple);
}

.timeline strong {
    margin-left: 2rem;
} 

#flow .timeline li:nth-child(1)::after {
    background-image: url(../images/flow06.webp);
}
#flow .timeline li:nth-child(2)::after {
    background-image: url(../images/flow07.webp);
}
#flow .timeline li:nth-child(3)::after {
    background-image: url(../images/flow08.webp);
}
#flow .timeline li:nth-child(4)::after {
    background-image: url(../images/flow09.webp);
}
#flow .timeline li:nth-child(5)::after {
    background-image: url(../images/flow10.webp);
}

#flow .border-line {
    background: rgba(var(--main-purple-rgb), var(--flow-line-alpha));
}

#flow .titlename {
    color: rgba(var(--main-purple-rgb), 0.2);
}

/* =============== PRODUCT =============== */
#product {
    padding: 5% 7%;
}

.product__contents {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.product__contents img {
    align-self: center;
    width: 45%;
}

.product__text,
.product__spec {
    color: var(--font-black);
    font-weight: 700;
    font-size: clamp(1.6rem, 1.66vw, 2.4rem);
    line-height: 2;
}

.product__text strong {
    color: var(--main-purple);
    font-size: clamp(1.6rem, 1.94vw, 2.8rem);
}

.product__spec {
    font-size: clamp(1.4rem, 1.38vw, 2rem);
}

.product__spec li::before {
    content: '▶︎';
    margin-right: 0.5em;
    color: var(--main-purple);
    font-size: 1em;
}

.product__beforeafter .inner {
    display: flex;
    width: 70%;
    gap: 5rem;
    margin: 0 auto;
    padding: 2rem 4rem 4rem;
}

.product__beforeafter {
    background: rgba(var(--main-purple-rgb), 0.2);
}

.product__beforeafter strong {
    color: var(--font-black);
}

/*****  PRODUCT SP *****/
@media screen and (max-width: 768px){
    .product__beforeafter {
        flex-direction: column;
        gap: 1rem;
    }

    .product__contents {
        margin-top: 8rem;
        flex-direction: column;
        gap: 2rem;
    }

    .product__text strong {
        line-height: 1.5;
    }

    .product__contents img {
        width: 100%;
    }

    .product__beforeafter .inner {
        flex-direction: column;
        width: 90%;
        gap: 2rem;
        padding: 2rem;
    }
} /* SP 768px */



/* =============== RECYCLE =============== */
/* =============== MANIFESTO =============== */
#recycle {
    background: url(../images/recyclebg.webp) center / cover;
}

#recycle .titlename {
    right: 0;
    left: auto;
}

#recycle .title {
    top: 3%;
    right: 10%;
}

.recycle__contents {
    display: flex;
    align-items: flex-start;
    gap: 7rem;
}

.recycle__contents img {
    width: 60%;
}

#recycle strong {
    color: var(--main-purple);
}

.recycle__topic,
.manifesto__topic {
    font-size: clamp(1.6rem, 1.38vw, 2rem);
    font-weight: 700;
}

.recycle__topic::before,
.manifesto__topic::before {
    content: '▼';
    margin-right: 0.35em;
    color: var(--main-purple);
}

.manifesto__contents {
    display: flex;
    align-items: flex-start;
    gap: 7rem;
}

#manifesto ul li {
    position: relative;
    padding-left: 1.4em;
}

#manifesto ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.08em;
    color: var(--main-purple);
    font-size: 1.15em;
    font-weight: 900;
}

#manifesto img {
    width: 50%;
}


/*========= SERVICEPSE480px以下 ===============*/
@media screen and (max-width: 480px){
    .assignment__contents {
        margin-top: 7rem;
    }

    /* FLOW SP - 480px以下で調整 */
    #flow {
        background: url(../images/flowbg_sp.webp) center / cover;
        --flow-circle-size: 100px;
        --flow-item-gap: 50px;
        --flow-text-offset: 116px;
        --flow-line-left: calc(var(--flow-circle-size) / 2 - var(--flow-line-width) / 2);
        --flow-line-top: var(--flow-circle-size);
        --flow-line-max: calc(100% - var(--flow-line-top));
        --flow-line-width: 2px;
        --flow-text-gap-bottom: 12px;
        padding: 10% 7% 0;
    }

    #flow .timeline li {
        min-height: var(--flow-circle-size);
        padding: 0 0 var(--flow-item-gap) 0;
    }

    #flow .timeline li::after {
        width: var(--flow-circle-size);
        height: var(--flow-circle-size);
    }

    #flow .timeline dl {
        margin: 0 0 var(--flow-text-gap-bottom) var(--flow-text-offset);
        min-height: var(--flow-circle-size);
    }

    #flow .border-line {
        left: var(--flow-line-left);
        top: var(--flow-line-top);
        max-height: var(--flow-line-max);
    }

    .timeline strong {
        margin-left: 1rem;
        font-size: 1.4rem;
    }

    #flow .timeline-actions {
        flex-direction: column;
        gap: 1rem;
    }

    #flow .timeline-actions .btn {
        width: 100%;
        padding: 0 1rem;
    }

    .timeline {
        padding: 0 0;
    }

    /* RECYCLE SP - 480px以下で縦並び */
    .recycle__contents {
        flex-direction: column;
        gap: 2rem;
    }

    .recycle__contents img {
        width: 100%;
    }

    #recycle .titlename {
        right: auto;
        left: 0;
    }

    #recycle .title {
        top: auto;
        right: auto;
    }

    /* MANIFESTO SP - 480px以下で縦並び */
    .manifesto__contents {
        flex-direction: column;
        gap: 2rem;
    }

    #manifesto img {
        width: 100%;
    }

} /*  SP 480px */
