/* ==========================================================================
   リセット & ベーススタイル
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* スムーズスクロールにしたい場合 */
    scroll-padding-top: 100px; /* ズラしたい高さ（ヘッダーの高さなど）を指定 */
}

body {
    font-family: 'Inter', sans-serif;
    color: #3e3a39;
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 5vw 3vw;
    text-align: center;
}

/* ==========================================================================
   共通コンポーネント (タイトルなど)
   ========================================================================== */
.section-subtitle {
    display: block;
    color: #298400;
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.8em;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.section-text {
    line-height: 2;
    color: #3e3a39;
}

.section-text:last-of-type {
    margin-bottom: 40px;
}

.break {
    flex-basis: 100%;
    height: 0;
}

/* 外部リンクボタン *********************/
.btn-wrap {
    text-align: right;
    margin: 1em 0 1em auto;
}
/* 下線矢印リンク */
.arrow-link-underline {
    position: relative;
    display: inline-block;
    padding: 0 2em .6em .5em;
    text-decoration: none;
    font-weight: bold;
    color: #298400;
}
/* 下線＋矢印 */
.arrow-link-underline::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 10px;
    border-bottom: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: skewX(50deg) translateX(0);
    transition: transform .3s ease;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.header {
    background-color: #ffffff;
    padding: 20px 5vw;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    justify-content:flex-end;
    gap: 1vw;
}

.nav-item {
    display: inline-block;
}

.nav-item a {
    display: block;
    width: 100%;
    height: 100%;
    font-weight: 600;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius:20px;
}

.nav-item a:hover {
    color: #ffffff;
    background-color: #298400;
}

.site_logo {
    padding-top: 5px;
}

/* ==========================================================================
   ヒーローセクション
   ========================================================================== */
.hero-section {
    padding: min( 7vw, 70px ) 6vw 20vw 6vw;
    text-align: left;
    background:
    url(img/SocialContribution_keyvisual_wave.png) center bottom -1px / 100% auto no-repeat,
    url(img/SocialContribution_keyvisual_img.png) right bottom / min(100%,1200px)auto no-repeat;
    background-color: #D9E9D0;
    max-height: 750px;
}

.hero-title {
    font-size: clamp(23px, 4.5vw, 65px);
    letter-spacing: 33px;
    font-weight: 300;
    margin-bottom: 20px;
    color: #373737;
    line-height: 1.6em;
}

.hero-text {
    font-size: clamp(13px, 1.9vw, 32px);
    line-height: 2;
    font-weight: 100;
}

/* ==========================================================================
   社会貢献活動 (カードレイアウト)
   ========================================================================== */
.activities-section {
    background-color: #f2ffec;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.activity-card {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 5px 40px;
    /* background: #fff; */
    border-radius: 20px;
    padding: 30px;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.05); */
    text-align: left;
}

/* 偶数番目は画像を右側に */
.activity-card.reverse {
    flex-direction: row-reverse;
}

.activity-image-wrapper {
    position: relative;
    flex: 1;
}

.activity-image {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.activity-number {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 76px;
    font-weight: 500;
    color: rgba(41, 132, 0, 0.2);
    line-height: 1;
}

.section-number{
    font-size: 50pt;
    color: #abd896;

}

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 27px;
    font-weight: 400;
    margin-bottom: 15px;
}

/* ==========================================================================
   活動レポート
   ========================================================================== */
.report-section{
    width: 90%;
    margin: 0 auto;
}

.report-swiper {
    max-width: 700px; /* 1枚表示で見やす適度な幅に制限 */
    margin: 0 auto;
    padding: 10px 10px 50px;
}

.report-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    height: auto; 
}

.report-card {
    width: 100%;
    max-width: 600px; /* カードの最大幅 */
    background: #fff;
    border-radius: 15px;
    /* overflow: hidden; */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.report-image {
    width: 100%;
    max-height: 400px; /* 1枚表示に合わせて画像の高さを少し調整 */
    object-fit: cover;
    display: block;
}

.report-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.report-category {
    background-color: #d8e8d0;
    color: #1a5400;
    font-weight: bold;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 30px;
}

.green {
    background-color: #d8e8d0;
    color: #1a5400;
}

.blue {
    background-color: #d0d9e8;
    color: #10416e;
}

.orange{
    background-color: #e8e0d0;
    color: #864d0b;
}

.report-date {
    font-size: 13px;
    color: #666;
}

.report-title {
    font-size: 21px;
    margin-bottom: 10px;
}

/* 矢印とページネーションの色 */
.report-swiper .swiper-button-next,
.report-swiper .swiper-button-prev {
    color: #298400;
}
.report-swiper .swiper-pagination-bullet-active {
    background-color: #298400;
}

/* ==========================================================================
   未来へのメッセージ
   ========================================================================== */

   .future-section{
    background: url(img/future-bgimg.png) top center / 100% auto no-repeat;
    /* background-size: cover; */
    padding-top: 60px;

   }

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.contact-section {
    background-color: #f2f2f2;
    padding: 80px 20px;
    text-align: center;
}

.contact-btn {
    display: inline-block;
    background-color: #636363;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: #3e3a39;
}

.footer {
    display: block;
    box-sizing: border-box;
    text-align: right;
    line-height: 1.8;
    margin: 40px 75px 40px 0px;
    font-size: 14px;
    font-family: 'BIZ UDGothic', sans-serif;
}

.footer > a {
    display: inline-block;
}

/* ==========================================================================
   メディアクエリ (768px以下 スマートフォン対応)
   ========================================================================== */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .header {
        padding: 20px 1vw;
    }

    .future-section .container {
        background: url(img/future-bgimg2.png) center top -1px / 100% auto repeat;
    }

    .container {
        padding: 50px 15px;
    }

    .header-inner{
        display: block;
    }
    .hero-section {
        padding: 7vw 2vw 35vw 6vw;
        text-align: left;
        background:
        url(img/SocialContribution_keyvisual_wave.png) center bottom -1px / 100% auto no-repeat,
        url(img/SocialContribution_keyvisual_img_sp.png) right bottom / 100% auto no-repeat;
        background-color: #D9E9D0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        letter-spacing: 20px;
    }

    .activity-card,
    .activity-card.reverse {
        flex-direction: column; /* スマホでは全て縦並び */
        padding: 20px;
        gap: 15px 20px;
        align-items: center;
    }

    .activity-number {
        top: -10px;
        left: -10px;
        font-size: 50px;
    }

    .activity-title {
        font-size: 22px;
    }

    .footer {
        display: block;
        box-sizing: border-box;
        text-align: center;
        line-height: 1.8;
        margin: 40px 0px;
    }

    .break {
        display: none;
    }

    .btn-wrap {
        text-align: center;
        margin: 0.2em auto;
    }
}

/* --- ハンバーガーメニュー用スタイル --- */
#nav-input { display: none; }
.nav-open { display: none; cursor: pointer; }

@media screen and (max-width: 768px) {
    .nav-open {
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        top: 30px;
        right: 20px;
        z-index: 5;
    }
    
    /* 3本線の共通スタイルとアニメーションの準備 */
    .nav-open span, .nav-open span:before, .nav-open span:after {
        display: block; 
        height: 3px; 
        background: #333; 
        position: absolute; 
        width: 100%; 
        border-radius: 3px;
        transition: all 0.3s ease; /* なめらかに変形させる設定 */
    }
    .nav-open span { top: 15px; }
    .nav-open span:before { content: ''; top: -10px; }
    .nav-open span:after { content: ''; bottom: -10px; }

    /* ==========================================
       ★ここから追加：チェック時に「×」に変形させる記述
       ========================================== */
    #nav-input:checked ~ .header {
        position: fixed;
        top: 0px;
        left: 0px;
        width: 100%;
    }
    /* 真ん中の線を透明にする */
    #nav-input:checked ~ .header .nav-open span {
        background: transparent;
    }
    /* 上の線を45度回転させてバツ印の片側にする */
    #nav-input:checked ~ .header .nav-open span:before {
        top: 0;
        transform: rotate(45deg);
    }
    /* 下の線をマイナス45度回転させてバツ印のもう片側にする */
    #nav-input:checked ~ .header .nav-open span:after {
        bottom: 0;
        transform: rotate(-45deg);
    }
    /* ========================================== */

    /* メニューの初期状態（非表示） */
    .global-nav {
        display: none;
        width: 100%;
        height: calc( 100vh - 93px );
        padding: 20px 0;
        background: #fff;
    }
    .global-nav ul { flex-direction: column; align-items: center; }

    /* チェックされたらメニューを表示 */
    #nav-input:checked ~ .header .global-nav { 
        display: block;
        font-size: 4vw;
        background: url(./img/point05.png) right 10vw bottom 10vw / 33% auto no-repeat, url(./img/point01.png) left 10vw bottom 20vw / 25% auto no-repeat;
        background-color: #ffffff;
        opacity: 0;
        animation: slideUpBg 1s ease forwards;
    }
    @keyframes slideUpBg {
        0% {
            opacity: 0;
            background-position: right 10vw bottom calc(10vw - 150px), 
                                left 10vw bottom calc(20vw - 150px);
        }
        100% {
            opacity: 1;
            background-position: right 10vw bottom 10vw, 
                                left 10vw bottom 20vw;
        }
    }
    #nav-input:checked ~ .header .site_logo {
        width: 100%;
        height: 55px;
        position: relative;
    }
    #nav-input:checked ~ .header .site_logo > a {
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateY(0%) translateX(-50%);
        -webkit-transform: translateY(0%) translateX(-50%);
    }
    #nav-input:checked ~ .header .nav-item {
        border-bottom: 1px solid #dedede;
        width: 85%;
        text-align: center;
        padding: 3vw 0px;
    }
    #nav-input:checked ~ .header .nav-item:nth-of-type(1) {
        border-top: 1px solid #dedede;
    }
}

/* ==========================================================================
   メディアクエリ (500px以下)
   ========================================================================== */
@media (max-width: 500px) {
    br.spN {
        display: none;
    }
    .spLeft {
        text-align: left;
    }
    #nav-input:checked ~ .header .global-nav {
        background: url(./img/point05.png) right 10vw bottom 20vw / 50% auto no-repeat, url(./img/point01.png) left 10vw bottom 40vw / 30% auto no-repeat;
    }
}