* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- ヘッダーのスタイル --- */
.site-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: fixed; /* 画面最上部に固定 */
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px; /* ヘッダーの縦幅 */
}

/* ロゴのスタイル */
.site-logo a {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 60px;
    width: auto;
}

/* ナビゲーションメニューのスタイル */
.site-nav ul {
    display: flex;
    gap: 30px;
}

.site-nav a {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1.1rem;
    color: #177d3b;
    font-weight: bold;
    transition: color 0.3s ease;
}

.site-nav a:hover {
    color: #177d3b;
}

/* --- キービジュアル（ヘッダーの裏に少し潜り込ませる設定） --- */
.hero-image-container {
    width: 100%;
    line-height: 0; 
    margin-top: -80px; /* ヘッダーの高さと同じマイナス値にして重ねる */
    position: relative;
    z-index: 1; 
}

.hero-image-container img {
    width: 100%;       
    height: auto;       
    display: block;
}

/* --- 深緑のメインエリア（About Us ＆ Service） --- */
.main-green-area {
    background-color: #177d3b;
    color: #ffffff;
    padding: 60px 20px 150px;
    text-align: center;
    min-height: 1100px;
}

/* --- About Us セクション --- */
.about-section {
    text-align: center;
    color: #ffffff;
    padding-top: 80px;   /* キービジュアルとAbout Usの間の緑の余白 */
    margin-bottom: 150px;
}

.about-subtitle {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: bold;
    opacity: 0.9;
}

.about-title {
    font-size: 2.2rem;
    line-height: 1.5;
    margin-bottom: 25px;
    font-weight: bold;
}

.about-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 35px;
    opacity: 0.95;
}

/* --- About Us ふんわりアニメーション（上から降りてくる設定） --- */
.fade-target .about-title,
.fade-target .about-desc {
    opacity: 0;
    transform: translateY(-30px); /* マイナス値にして上からスタートさせる */
    transition: opacity 1s ease, transform 1s ease;
}

.fade-target.is-active .about-title {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
    transition-delay: 0.2s;
}

.fade-target.is-active .about-desc {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻る */
    transition-delay: 0.4s;
}

/* 企業紹介ボタンのスタイル */
.about-btn-container {
    display: inline-block;
    margin-bottom: 250px; 
}

.about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #177d3b;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.about-btn .arrow {
    margin-left: 10px;
    font-size: 1.1rem;
}

.about-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- Serviceセクション --- */
.section-title {
    font-size: 2rem;
    margin-top: -330px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: bold;
}

.service-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
}

.service-circle {
    background-color: transparent;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-25px);
    
    /* ボタンと同じように、動きをなめらかにする設定を入れる */
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.service-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transition: transform 0.3s ease, filter 0.3s ease;

}

.service-item:hover .service-circle img {
    /* お問い合わせボタンの (-2px) のように、上に少し持ち上げる */
    transform: translateY(-4px); 
    
    /* 丸い形に沿ったきれいな影を出す（不要ならこの行は消してもOKです） */
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* ★この、サービスの丸の塊の「一番最後」に、今回いただいたコードをそのまま追加する！ */
.service-container.is-active .service-item:hover .service-circle,
.service-item:hover .service-circle {
    /* 丸い形に沿った自然な影を少しだけ出す（必要であれば） */
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.12)) !important;
}

.service-text {
    margin-top: 15px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
}


/* スクロールアニメーション発動時 */
.service-container.is-active .service-circle {
    animation: fuwanCircle 1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.service-container.is-active .service-text {
    animation: fuwanText 1s ease forwards;
}

/* 時間差の設定 */
.service-item:nth-child(1) .service-circle { animation-delay: 0.1s; }
.service-item:nth-child(1) .service-text   { animation-delay: 0.4s; }

.service-item:nth-child(2) .service-circle { animation-delay: 0.2s; }
.service-item:nth-child(2) .service-text   { animation-delay: 0.5s; }

.service-item:nth-child(3) .service-circle { animation-delay: 0.3s; }
.service-item:nth-child(3) .service-text   { animation-delay: 0.6s; }

.service-item:nth-child(4) .service-circle { animation-delay: 0.4s; }
.service-item:nth-child(4) .service-text   { animation-delay: 0.7s; }

/* アニメーションの動き */
@keyframes fuwanCircle {
    0% {
        opacity: 0;
        transform: translateY(-25px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fuwanText {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 1. Worksセクション全体（白い背景にするエリア） */
.works-section {
    background-color:transparent; /* 白背景 */
    padding: 100px 20px;
    width: 100%;
}

/* Worksの中身を中央に寄せる親箱 */
.works-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 「Works」の見出しのデザイン */
.works-section-title {
    text-align: center;
    color: #177d3b; /* サイト全体のテーマカラーの緑 */
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: bold;
}

/* 2. カルーセル（Swiper）の全体の幅と余白 */
.works-swiper {
    padding: 0 40px 30px; /* 左右の矢印用の余白を空ける */
    position: relative;
}

/* 3. 実績カードのデザイン */
.works-card {
    display: block;
    text-decoration: none;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスを乗せたときに少し浮き上がる動き */
.works-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* カードの画像部分 */
.works-img-wrap {
    width: 100%;
    line-height: 0;
}

.works-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* カードの下のタイトルテキスト */
.works-title {
    padding: 20px 15px;
    color: #333333;
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
}

/* 4. 左右の矢印ボタンの色を緑にする */
.swiper-button-next,
.swiper-button-prev {
    color: #177d3b !important; 
}

/* ============================================== */
/* NEWSセクションのスタイル */
/* ============================================== */
.news-section {
    background-color: transparent;
    padding: 0px 0px;
}

.news-container {
    max-width: 800px;
    margin: 0 auto;
}

.news-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #177d3b; 
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.news-list {
    border-top: 1px solid #e0e0e0;
}

.news-item {
    border-bottom: 1px solid #e0e0e0;
}

.news-item a {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    transition: background-color 0.3s ease;
}

.news-item a:hover {
    background-color: #f9f9f9;
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}

.news-category {
    font-size: 0.85rem;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 4px;
    margin-right: 20px;
    flex-shrink: 0;
}

.news-text {
    font-size: 0.95rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* レスポンシブ対応（スマホ表示） */
@media screen and (max-width: 600px) {
    .news-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .news-date {
        width: auto;
    }
}

/* =================フッター用スタイル================= */
.site-footer {
    background-color: #177d3b; /* サイトの深緑の雰囲気に合わせたカラー */
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: 10px; /* ニュースエリアとの間にしっかり余白を確保 */
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 左側エリア */
.footer-left {
    flex: 1;
    min-width: 280px;
}

.footer-logo-area img {
    height: 40px; /* ロゴ画像の高さ調整（必要に応じて変更してください） */
    margin-bottom: 20px;
}

.footer-address {
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.footer-sub-links {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

.footer-sub-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-sub-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 右側エリア */
.footer-right {
    text-align: right;
    min-width: 280px;
}

/* お問い合わせボタン */
.footer-btn-wrap {
    margin-bottom: 25px;
}

.footer-contact-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #177d3b;
    font-weight: bold;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.footer-contact-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.footer-contact-btn .arrow {
    margin-left: 8px;
}

/* 電話番号まわり */
.footer-tel-text {
    font-size: 14px;
    margin-bottom: 5px;
    color: #f0f0f0;
}

.footer-tel-number {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.footer-tel-number .tel-label {
    font-size: 16px;
    margin-right: 4px;
}

.footer-fax-number {
    font-size: 12px;
    color: #cccccc;
}

/* コピーライト */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    color: #bbbbbb;
    font-size: 11px;
}

/* スマホ表示向けの調整（画面幅が狭い場合） */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-right {
        text-align: left;
        width: 100%;
    }
    
    .footer-contact-btn {
        display: block;
        text-align: center;
    }
}
/* フッターの上にしっかりと隙間を空ける設定 */
footer.site-footer, 
.site-footer {
    margin-top: 330px !important; /* 80pxの部分はお好みで 50px〜100px に変えてみてください */
}