/* リセットとベーススタイル */
.ontents_wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    font-size: clamp(1.2rem, 1.3vw, 1.6rem);
    font-family:YakuHanJP, "Noto Sans JP", sans-serif;
}


@media screen and (max-width: 1024px) {
}
@media screen and (min-width: 769px) {
    .pc{

    }
    .sp{
        display: none !important;        
    }
    .sp2{      
        display: none !important;  
    }
}
@media screen and (max-width: 768px) {
    * {
        font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    }
    .pc{
        display: none !important;  
    }
    .sp{      
        display: inherit !important;  
    }
    .sp2{      
        display: none !important;  
    }
}
@media screen and (max-width: 480px) {
    .pc{
        display: none !important;  
    }
    .sp{      
        display: none !important;  
    }
    .sp2{      
        display: inherit !important;  
    }

}

body {
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}
p{
    text-align: justify;
}
img {
    max-width: 100%;
    height: auto;
}

/* ヒーローセクション */
.hero {
    background-image: url(../images/hero_bg01.jpg);
    background-size: 100% auto;
    background-position: center top;
    text-align: center;
}
.hero-content {
    text-align: center;
    padding-top: 19vw;
    min-height: 36vw;
}

.hero-text{
    margin-bottom: 3%;
}
.hero-title {
    text-align: center;
    margin-bottom: 4%;
}
.hero-title img{
    width: 40%;
    max-width: 380px;
}
.hero-text p{
    margin-bottom: 1%;
    font-size: clamp(1.4rem, 2.0vw, 2.4rem);
    font-family:YakuHanMP, "游明朝 Medium", "Yu Mincho Medium", "YuMincho Medium", "Noto Serif JP", serif;
    text-align: center;
}

/* 3つの柱のダイアグラム */
.pillars-diagram{
    background-image:linear-gradient(0deg,rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 85%, rgba(255, 255, 255, 1) 100%), url(../images/hero_bg02.webp);
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-size:100% auto, 100% auto;
    background-attachment:local ,fixed;
}
.pillars-diagram img{
    max-width: 850px;
    width: 90%;
    margin: 0 auto;
    position: relative;
}

.main_contents{
    background:url(../images/rproject_bg02.svg), url(../images/cont01_bg.jpg) ;
    background-position:center top -1px, top left ;
    background-repeat: no-repeat , repeat;
    background-size: 100% auto , auto;
}

/* カードセクション */
.cards-section {
    padding: 4rem 0;
    background-size: cover;
    background-position: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.cards-section.pillars h3{
    text-align: center;
}
.card {
    background: #fff;
    width: calc((100% - 5vw ) / 3 );
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.cards-section.green{
    background-image: url(../images/cont01_bg.jpg);
}
.cards-section.blue{
    background-image: url(../images/cont02_bg.jpg);
}
.cards-grid {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2.5vw;
    flex-wrap: wrap;
}
.card-banner {
    padding: 2.5rem 8%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
}

.banner-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-image img {
    width: 100%;
    height: auto;
}
.cards-section.pillars .banner-image{
    margin-bottom: 3%;
}
.cards-section.pillars .banner-image img {
    width: 75%;
}
.banner-title {
    font-size: clamp(1.4rem, 1.4vw, 1.8rem);
    margin-bottom: 3%;
    color: #333;
    line-height: 1.4;
    border-left: 5px solid #477E1E;
    padding-left:0.6rem;
}
.cards-section.pillars .banner-title {
    padding-left:0;
    border-left: none;
}
.cards-section.pillars .cards-grid .card:nth-child(1)  .banner-title {
    color: #4C8C6A;
}
.cards-section.pillars .cards-grid .card:nth-child(2)  .banner-title {
    color: #5F6DB2;
}
.cards-section.pillars .cards-grid .card:nth-child(3)  .banner-title {
    color: #0083AD;
}
.cards-section.pillars .cards-grid .card:nth-child(1)  .banner-button {
    background-color: #4C8C6A;
}
.cards-section.pillars .cards-grid .card:nth-child(2)  .banner-button {
    background-color: #5F6DB2;
}

.banner-description {
    margin-bottom: 1rem;
    color: #555;
}
.banner-button {
    display: inline-block;
    background: #1e88e5;
    color: #fff;
    padding: 0.7rem 2rem;
    width: 100%;
    position: relative;
    text-align: center;
    transition: background 0.3s;
}
.banner-button:hover {
}
.banner-button:after {
    content: ">";
    display: inline-block;
    padding-left: 3rem;
    transform: translateX(0px);
    transition: 0.3s all;
}
.banner-button:hover::after {
    transform: translateX(12px);
}
/* UPCYCLE DOWN バナー */
.upcycle-banner {
    width: 100%;
    margin:0 auto 6% auto;
}
.banner-content {
    background: #fff;
    max-width: 1200px;
    width: 85%;
    margin: 0 auto;
    display: flex;
    gap: 3%;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.banner-description{
    flex-grow: 1;
}
.banner-logo {
    width: 34%;
    padding: 0 2%;
    display: flex;
    align-items: center;
}
.banner-content > img{
    width: 28%; 
    align-self: center;
}

.banner-text {
    color: #5a9f3e;
}
.cards-section.pillars .banner-text{
    flex-grow: 1;
}
.banner-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}



.banner-button {
    display: inline-block;
    background: #477E1E;
    color: #fff;
    padding: 0.7rem 2.5rem;
    transition: background 0.3s;
}

.banner-button:hover {
    background: #4a8f2e;
}
.section-title-white{
    text-align: center;
    font-size: clamp(1.8rem, 2.0vw, 2.4rem);
    margin-bottom: 4%;
}
.section-title-white:after{
    content: "";
    padding-top: 6px;
    width: 160px;
    background-color: #477E1E;
    margin:0 auto;
    display: block;
    margin-top: 1%;
}

/* レスポンシブデザイン */
@media (max-width: 1400px) {
    .banner-content .banner-logo{
        width: 25%;
    }
}
@media (min-width: 1025px) {
    .banner-content .banner-logo{
        width: 25%;
    }
}
@media (max-width: 1024px) {

    .cards-grid {
        width: 94%;
    }
    .banner-content {
        width: 94%;
    }
    .banner-content .banner-logo{
        align-self: auto;
        background-image: url(../images/upcycle_img.webp);
        background-position: center bottom;
        background-size: auto 60%;
        width: 30%;
    }
    .banner-content .banner-logo img{
        align-self: start;
        width: 80%;
        display: block;
        margin: 0 auto;
    }
    .banner-content > img{
        display: none;
    }
    .banner-info{
        width: 70%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pillars-diagram {
        height: auto;
        position: static;
    }

    .pillar-circle {
        position: static;
        margin: 1rem auto;
        width: 100%;
        max-width: 300px;
        height: auto;
        min-height: 250px;
    }
    .cards-grid{
        flex-direction: column;
    }
    .cards-grid .card{
        width: 100%;
    }
    .upcycle-banner .banner-content {
        flex-wrap: wrap;
    }
    .upcycle-banner .banner-content .banner-logo{
        width:calc((100% - 3rem) / 2);
    }
    .upcycle-banner .banner-content > img{
        width:calc((100% - 3rem) / 2);
    }

    .initiatives-grid,
    .cards-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .banner-content{
        flex-direction: column;
    }
    .upcycle-banner .banner-content .banner-logo{
        width: 100%;
        background-image: none;
        margin-bottom: 3%;
    }
    .upcycle-banner .banner-content > img {
        display: block;
        width: 100%;
        margin-bottom: 3%;
    }
    .banner-info {
        width: 100%;
    }

}