
/* =========================================
   基本設定
   ========================================= */
:root {
    --main-green: #7dc544; /* メインの緑 */
    --dark-green: #5ca028;
    --btn-green: #6bc83f;  /* お問い合わせボタンの鮮やかな緑 */
    --bg-beige: #fbffe8;   /* 薄いベージュ背景 */
    --accent-orange: #ef5b2b; /* アクセントのオレンジ */
    --text-dark: #333;
    --text-gray: #666;
    --white: #fff;
}

body {
    /* Noto Sans JP を優先フォントに設定 */
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    padding-top: 145px; /* 【追加】PCヘッダーの高さ分を確保 */
}

a { text-decoration: none; color: inherit; transition: opacity 0.3s; }
a:hover { opacity: 0.8; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* 1920px制限ラッパー */
.site-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    overflow-x: hidden;
}

/* コンテナ設定 */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-center { text-align: center; }


/* =========================================
   ヘッダー
   ========================================= */

header {
    background: var(--white);
    padding-top: 20px;
    padding-bottom: 0;
    
    /* 【追加】固定配置の設定 */
    position: fixed;
    top: 0;
    left: 50%; /* 画面中央に配置 */
    transform: translateX(-50%); /* 中央揃えの補正 */
    width: 100%;
    max-width: 1920px; /* サイト全体の最大幅に合わせる */
    z-index: 1000; /* 他の要素より手前に表示 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* スクロール時に境界がわかるよう薄い影 */
}

/* ヘッダー上部 */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.logo-wrapper {
    flex-shrink: 0; /* ロゴが縮むのを防ぐ */
}
.logo-img {
    height: 50px;
    width: auto;
    display: block; /* 隙間対策 */
    transition: height 0.3s; /* サイズ変更時のアニメーション */
}

/* お問い合わせボタン共通 */
/* ボタン共通設定（サイズ300x50、アイコン右寄せ） */
.contact-btn-header,
.support-btn-lg,
.card-btn,
.view-all-btn,
.report-btn,
.footer-contact-btn,
.stat-footer {
    /*width: 300px;*/
    width: 100%;
    max-width: 300px;
    height: 50px;
    display: flex;
    justify-content: center; /* 文字中央 */
    align-items: center;
    position: relative; /* アイコン配置の基準 */
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.125em; /* 約18px */
    font-family: "Noto Sans JP", sans-serif;
    padding: 0; /* 固定サイズのためパディング削除 */
    box-sizing: border-box;
    transition: opacity 0.3s, transform 0.3s;
    /*left: 0;*/
}
/* アイコン設定（右端配置） */
.contact-btn-header i,
.support-btn-lg i,
.card-btn i,
.view-all-btn i,
.report-btn i,
.footer-contact-btn i,
.stat-footer i,
.card-btn .btn-icon {
    position: absolute;
    right: 10px; /* 右端からの距離 */
    font-size: 28px; /* アイコンサイズ調整 */
    color: #fff; /* 白抜きアイコン */
    margin: 0;
}

/*.contact-btn-header i { font-size: 18px; }*/
/* 個別ボタン色設定 */
.contact-btn-header { min-width: 300px; background: var(--btn-green); color: var(--white); }
.support-btn-lg { background: #6bc83f; color: white; margin-bottom: 60px; }
.card-btn { color: white; margin-top: 25px; } /* 背景色はカード側で指定 */
.view-all-btn { background: #5FBF43; color: white; margin: 60px auto 0; }
.report-btn { background: #F04202; color: white; margin-bottom: 60px; }
.footer-contact-btn { background: #fff; color: #5FBF43; width: 300px; }

/* ハンバーガーメニューボタン（PCでは非表示） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--main-green);
    cursor: pointer;
    /* 幅を固定してアイコン切替時のガタつきを防ぐ */
    width: 50px; 
    text-align: right;
    padding: 0;
    /* ボタン自体が縮まないように固定 */
    flex-shrink: 0;
}

/* ヘッダー下部（ナビゲーション） */
.header-nav {
    padding-bottom: 20px;
}
.header-nav ul {
    display: flex;
    justify-content: center;
/*    gap: 40px;*/
    gap: 5.5%;
    flex-wrap: wrap;
}
.header-nav a {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.125em; /* 18px相当 */
    font-weight: bold;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 5px;
    display: block;
}
.header-nav a:hover {
    color: var(--main-green);
}
.sp-contact-item { display: none; }

/* PCではスマホ専用メニューを非表示にする */
.sp-nav-item {
    display: none;
}


/* =========================================
   ヒーローセクション
   ========================================= */

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background-color: #333;
}
.hero-slider, .hero-slide {
    width: 100%;
    height: 100%;
}
.hero-slide {
    background: url('../images/mv.jpg') center/cover no-repeat;    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(51, 51, 51, 0.35);
}
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    
    mix-blend-mode: screen;
}
.hero-title-img {
    margin: 0;
    padding: 0;
    line-height: 1;
}
.hero-title-img img {
    max-width: 700px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
}


/* =========================================
   導入セクション
   ========================================= */

.intro {
    /*padding: 80px 20px;*/
    padding: 80px 0;
    text-align: center;
}
.section-title-lg {
    color: #5FBF43;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.25em; /* 36px相当 */
    margin-bottom: 20px;
    font-weight: bold;
}
.intro p {
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1em;
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
}


/* --- About Us --- */
.about-section {
    background-color: var(--bg-beige);
    padding: 80px 0;
    text-align: center;
}
.sub-header {
    color: #F04202;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.8125em; /* 29px相当 */
}
.about-section .section-title-lg {
    color: #5FBF43;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.25em;
    margin-bottom: 20px;
    font-weight: bold;
}
.about-section .section-desc {
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1em;
    max-width: 1040px;
    margin: 0 auto 50px;
    line-height: 2;
    padding: 0 20px;
}

/* 3つの特徴 */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}
.feature-item {
    /*width: 280px;*/
    width: 300px;
    text-align: center;
    transition: transform 0.3s;
}


/* タグエリア */
.tags-area {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    /*max-width: 1000px;*/
    max-width: 925px;
    margin: 0 auto 60px;
}
.tag-label-box {
    border: 2px solid #7dc544;
    background: #fff;
    color: #7dc544;
    font-weight: bold;
    /*width: 200px;*/
    width: 167px;
    /*height: 100px;*/
    height: 117px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}
.tag {
    background: #7dc544;
    color: var(--white);
    /*padding: 12px 25px;*/
    padding: 13px 70px;
    font-size: 15px;
    font-weight: bold;
}


/* =========================================
   実績部分
   ========================================= */
.stats-title {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 30px;
    font-family: "Noto Sans JP", sans-serif;
}
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.stat-box {
    background: var(--white);
    border: 1px solid #ef5b2b;
    border-top: 4px solid #ef5b2b;
    padding: 0;
    width: 340px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    padding-bottom: 1em;
}
.stat-label {
    /*font-size: 14px;*/
    font-weight: bold;
    background: #ef5b2b;
    color: white;
    display: block;
    /*width: 100%;*/
    /*padding: 8px 0;*/
    margin: 0;
    border-radius: 0;
    font-size: 1.15em;
    padding: 0 15px 5px;
}
/* 2. タイトルラベルは上段で横幅100% */
.stat-label {
    /*width: 100%;*/
    /*margin-bottom: 10px;*/
}
.stat-number {
    font-size: 40px;
    font-weight: bold;
    color: #333;
    /*padding: 15px 0 5px;*/
    padding: 10px 15px;
    margin: 0 auto;    
}
.stat-unit {
    font-size: 14px;
    margin-left: 5px;
    font-weight: normal;
}

/* stat-footer（実績ボタン）のスタイル */
.stat-footer {
    /*margin: 10px auto 20px;*/
    background: #ef5b2b;
    color: white;
    
    /* ボタンのサイズ */
    /*width: 100%;*/
    max-width: 300px;
    height: 50px;
    border-radius: 50px;
    
    /* フォント設定 */
    font-size: 13px;
    font-weight: bold;
    
    /* レイアウト設定（ここが重要） */
    display: flex;           /* Flexboxを使用 */
    justify-content: center; /* 横方向：中央揃え */
    align-items: baseline;   /* 縦方向：文字のベースライン（下端）で揃える */
    
    /* 50pxの高さの中で、ベースラインの位置を垂直中央付近にする */
    line-height: 50px;
    
    /* 共通設定の引き継ぎ */
    position: relative; 
    box-sizing: border-box;
    transition: opacity 0.3s;

    margin: 0 auto 0;
    width: auto;

}

/* ホバー設定 */
.stat-footer:hover {
    opacity: 0.9;
}

/* 数字部分のスタイル */
.stat-footer-num {
    font-size: 26px; /* 文字サイズを大きく（画像のバランスに合わせて調整） */
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    line-height: 1;
    margin: 0 4px; /* 前後の余白 */
    
    /* フォントによる微調整：ベースラインで揃えても数字が少し浮いて見える場合の補正 */
    position: relative;
    top: 2px;
}

/* アイコンの位置調整（ベースライン計算から外す） */
.stat-footer i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* アイコン自身の垂直中央揃え */
    font-size: 28px;
    color: #fff;
    margin: 0;
}


/* =========================================
   Support
   ========================================= */
.support-section {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}
.support-section .section-title-lg {
    color: #5FBF43;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.25em;
    margin-bottom: 20px;
    font-weight: bold;
}
.support-section .section-desc {
    color: #333333;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1em;
    max-width: 900px;
    margin: 0 auto 40px;
    line-height: 2;
}
.support-btn-lg {
    background: #6bc83f;
    color: white;
    padding: 15px 80px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    font-weight: bold;
    font-size: 1.125em;
    font-family: "Noto Sans JP", sans-serif;
    transition: opacity 0.3s, transform 0.3s;
}
.support-btn-lg:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
/*.support-btn-lg i { font-size: 1.2em; }*/

/* カード部分 */
.support-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    /*max-width: 1000px;*/
    margin: 0 auto;
}
.card {
    background: #fff;
    border: 1px solid #eee;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}
.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.card h3 {
    margin-bottom: 20px;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.25em;
}
.card-text {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: "Noto Sans JP", sans-serif;
}
.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 40px;
    color: white;
    font-weight: bold;
    position: relative;
    font-size: 1.125em;
    font-family: "Noto Sans JP", sans-serif;
    transition: opacity 0.3s;
    /*left: 10%;*/
    margin: 0 auto;
}
.card-btn:hover { opacity: 0.9; }
.card-btn .btn-icon { margin-left: 10px; }

/* カード配色 */
.card-orange { border: 1px solid #F04202; }
.card-orange h3 { color: #F04202; }
.card-orange .card-btn { background: #F04202; }

.card-green { border: 1px solid #5FBF43; }
.card-green h3 { color: #5FBF43; }
.card-green .card-btn { background: #5FBF43; }


/* =========================================
   News
   ========================================= */
.news-section {
    background-color: #F7FDE0;
    padding: 80px 0;
}
.news-section.page-archive {
    background-color: #fff;
}
.news-section .sub-header {
    color: #F04202;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1.8125em;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.news-section .section-title-lg {
    color: #5FBF43;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.25em;
    margin-bottom: 40px;
    font-weight: bold;
}
.news-list {
    /*max-width: 1000px;*/
    margin: 0 auto;
    background: transparent;
    border-top: 1px solid #333;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #333;
    font-family: "Noto Sans JP", sans-serif;
    text-decoration: none;
    color: var(--text-dark);
    transition: background-color 0.3s;
}
.news-item.page-archive {
    flex-wrap: wrap;
}
.news-item:hover {
    background-color: rgba(255,255,255,0.4);
}
.news-tag {
    color: white;
    font-size: 12px;
    padding: 4px 0;     /* 変更：上下4px */
    width: 124px;       /* 変更：幅124px */
    text-align: center;
    margin-right: 30px;
    border-radius: 4px;
    font-weight: bold;
    flex-shrink: 0;
}
.news-tag.news { background: #F04202; }
.news-tag.another { background: #333; }
.news-tag.refresh { background: #00489d; }
.news-tag.fair { background: #FFA631; }


.news-date {
    font-weight: bold;
    margin-right: 40px;
    font-size: 16px;
    white-space: nowrap;
}
.news-title {
    font-size: 16px;
    font-weight: normal;
}
.news-item.page-archive .news-title {
	margin-top: 25px;
    width: 100%;
}
.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    margin: 60px auto 0;
    background: #5FBF43;
    color: white;
    padding: 15px;
    border-radius: 50px;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    gap: 10px;
    transition: opacity 0.3s;
}
.view-all-btn:hover { opacity: 0.9; }
/*.view-all-btn i { font-size: 1.2em; }*/


/* =========================================
   パートナー・報告書エリア
   ========================================= */
.partners-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}
.report-title {
    font-size: 16px;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    color: #333;
    margin-bottom: 30px;
}
.report-btn {
    background: #F04202;
    color: white;
    padding: 18px 80px;
    border-radius: 50px;
    font-weight: bold;
    font-family: "Noto Sans JP", sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 60px;
    transition: opacity 0.3s;
    font-size: 16px;
}
.report-btn:hover { opacity: 0.9; }
/*.report-btn i { font-size: 1.2em; }*/

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.partner-link img {
    /*height: 50px;*/
    /* width: auto; */
    width: 220px;
    transition: opacity 0.3s;
}

.partner-link:nth-child(3) img {
	width: 108px;
}

.partner-link:hover img { opacity: 0.8; }


/* =========================================
   Footer
   ========================================= */
footer {
    background: #5FBF43;
    color: #FFFFFF;
    padding: 60px 0 20px;
    font-family: "Noto Sans JP", sans-serif;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 40px;
}
.footer-left {
    flex: 1;
    max-width: 500px;
}
.footer-logo-box {
    /* background: #fff; */
    display: inline-block;
    /* padding: 5px 15px; */
    margin-bottom: 0;
}
.footer-logo-box img {
    height: 55px;
    width: auto;
    display: block;
}
.footer-org-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px;
}
.footer-address {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}
.footer-contact-btn {
    background: #fff;
    color: #5FBF43;
    padding: 12px 0;
    width: 300px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    gap: 10px;
    transition: opacity 0.3s;
    text-align: center;
}
.footer-contact-btn:hover { opacity: 0.9; }
.footer-contact-btn i {/* font-size: 1.4em;*/ margin-left: 10px; color: var(--btn-green); }

.footer-right {
    display: flex;
    gap: 60px;
}
.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-link-item {
    font-size: 15px;
    font-weight: bold;
}
.footer-link-item:hover { text-decoration: underline; }

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-links {
    border-left: 1px solid #fff;
    padding-left: 15px;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-links a { font-size: 14px; }

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.4);
    padding-top: 20px;
    font-size: 12px;
}


/* =========================================
   TOPへ戻るボタン
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    
    width: 80px;
    height: 80px;
    background-color: #FFF; /* 緑色 */
    border-radius: 50%; /* 丸くする */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.9;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-5px);
}

/* 三角形部分 */
.btt-triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 15px 8px;
    border-color: transparent transparent #5FBF43 transparent; /* 下辺のみ白 */
    margin-bottom: 12px;
}

/* テキスト部分 */
.btt-text {
    color: #5FBF43;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1;
}


/* =========================================
   レスポンシブ設定 (Media Queries)
   ========================================= */
/* タブレットサイズ以下 (max-width: 1024px) */
@media (max-width: 1024px) {
    .features { gap: 20px; }
    .feature-item { /*width: 220px;*/width: 300px; }

    .stats-grid {
        gap: 10px;
    }

    /*.stat-box { width: 100%; padding: 10px; }*/
    .header-nav a { font-size: 1em; }1
    /* ボタンをコンテナ幅に合わせて調整 */
    .contact-btn-header,
    .support-btn-lg,
    .card-btn,
    .view-all-btn,
    .report-btn,
    .footer-contact-btn,
    .stat-footer {
        width: 100%; /* コンテナからはみ出さないように */
        max-width: 300px; /* PCサイズを上限に */
    }

    /* stat-footer（実績ボタン）のスタイル */
    .stat-footer {
        
        /* ボタンのサイズ */
        height: auto;

        /*margin: 0 auto 0;*/
        margin: 0 5px 0;
        /*width: auto;*/
        padding-right: 30px;
        padding-left: 5px;
    }
}

/* フッター用ブレークポイント (max-width: 900px) */
@media (max-width: 900px) {
	/*
    .footer-content {
        flex-direction: column;
        gap: 50px;
    }
    .footer-right {
        justify-content: flex-start;
        gap: 40px;
    }
    */
}

/* スマホサイズ (max-width: 768px) */
@media (max-width: 768px) {
    
    /* ヘッダーの高さが変わるためbodyの余白を再調整 */
    body {
        padding-top: 80px;
    }

    /* コンテナ設定 */
    .container {
        padding: 0 10px;
    }

    /* ヘッダー周り */
    .header-top {
        position: relative;
        z-index: 100;
        /* ロゴが縮まないように */
        flex-wrap: nowrap; 
    }
    .logo-img {
        /* スマホではロゴを少し小さくしてスペース確保 */
        height: 40px; 
    }
    
    .menu-toggle {
        display: block; /* ハンバーガー表示 */
    }
    .pc-contact {
        display: none; /* PC用のボタンを隠す */
    }

    /* 文字色を白に強制（詳細度を上げて上書き） */
    .header-nav .sp-contact-item .contact-btn-header {
        color: #fff;
        margin: 0 auto;
        line-height: 100%;
    }

    /* アイコン（三角/丸）の位置とサイズを調整 */
    .header-nav .sp-contact-item .contact-btn-header i {
        font-size: 28px; /* サイズをPC版と同じ28pxに固定 */
        color: #fff;     /* 丸の色を白に */
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%); /* 垂直中央揃え */
        margin: 0;
    }

    /* 600px以下の画面でアイコンが崩れるのを防ぐリセット */
    .header-nav .sp-contact-item .contact-btn-header i::before {
        /*font-size: 1em;*/
        vertical-align: baseline;
    }

    /* ナビゲーションメニュー（スライドダウン式） */
    .header-nav {
        display: none; /* 初期状態は非表示 */
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 99;

        /* 画面の高さ(100vh)からヘッダーの高さ(80px)を引いた高さを設定 */
        height: calc(100vh - 80px); 
        /* 中身が画面より長くなった場合にスクロールできるようにする */
        overflow-y: auto; 

    }
    .header-nav.active {
        display: block;
    }
    .header-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .header-nav li {
        border-bottom: 1px solid #eee;
        margin: 0 20px;
    }
    .header-nav a {
        padding: 15px 20px;
        font-size: 1rem;
        text-align: center;

    }

    /* スマホメニュー内で専用項目を表示する */
    .header-nav .sp-nav-item {
        display: block; /* リストとして表示 */
    }


    .sp-contact-item {
        display: block;
        padding: 15px;
        text-align: center;
        border-bottom: none;
        margin: 0 auto;
    }
    .sp-btn {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }

    .section-title-lg{
        font-size: 1.25em;
    }
    .about-section .section-title-lg{
        font-size: 1.25em;
    }


    /* お問い合わせボタン共通 */
    .support-btn-lg, 
    .card-btn, 
    .view-all-btn, 
    .report-btn, 
    .stat-footer{
        /*width: 100%;*/
        /*max-width: 300px;*/
        padding: 0;
        /*height: 100px;*/
        border-radius: 30px;
        font-size: 1.25em;
        line-height: 1.4;
    }

    /* ボタン共通設定（サイズ300x50、アイコン右寄せ） */
    .contact-btn-header i, 
    .support-btn-lg i, 
    .card-btn i, 
    .view-all-btn i, 
    .report-btn i, 
    .footer-contact-btn i, 
    .stat-footer i, 
    .card-btn .btn-icon {
        font-size: 30px;
        /*top: 7px;*/
    }


    /* ヒーローエリア */
    .hero { height: 350px; }
    .hero-title-img img { max-width: 90%; }
    
    /* 全体のフォント・余白調整 */
    .intro, .about-section, 
    .support-section, 
    .news-section {
        padding: 50px 0;
    }
    .intro p,.section-desc { text-align: left; }


    .pc-br { display: none; }

    /* Features（縦積み） */
    .features {
        /*flex-direction: column;*/
        /*align-items: center;*/
        gap: 5px;
        margin-bottom: 5px;
    }
    .feature-item { width: 100%; max-width: 250px; }

    /* タグエリア */
    .tags-area {
        flex-direction: column;
        align-items: center;
        margin-top: 1em;
    }
    .tag-label-box {
        /*width: 100%;*/
        /*width: 50%;*/
        width: auto;
        height: auto;
        /*padding: 15px;*/
        /*padding: 2.5% 25%;*/
        padding: 1.5% 10%;
    }

    /* --- タグエリア（スマホレイアウト変更） --- */
    .tags {
        justify-content: space-between; /* 両端揃え */
        gap: 10px !important; /* 隙間を10pxに統一 */
    }
    
    .tag {
        /* 共通設定リセット */
        width: auto;
        box-sizing: border-box;
        text-align: center;
        padding: 12px 2px; 
        /*font-size: 11px;*/
        font-size: 0.85em;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.3;
        min-height: 46px;
    }

    /* 1番目のタグ：横幅いっぱい */
    .tag:nth-child(1) {
        width: 90%;
        margin: 0 auto;
    }

    /* 2番目のタグ：少し短くする（例: 42%） */
    .tag:nth-child(2) {
        width: calc(42% - 5px);
    }

    /* 3番目のタグ：少し長くする（例: 58%） */
    .tag:nth-child(3) {
        width: calc(58% - 5px);
    }

    /* 4番目のタグ：3番目と同じ長さにして、右側に配置 */
    .tag:nth-child(4) {
        width: calc(58% - 5px);
        /*margin-left: auto;*/
        margin: 0 auto;
    }


    /* 実績（縦積み） */
    /* 1. 箱を横幅いっぱいにし、中身をFlexboxで配置 */
    .stat-box {
        width: 100%;
        max-width: 100%; /* 320px制限を解除 */
        display: flex;
        flex-wrap: wrap; /* 折り返しを許可 */
        align-items: center; /* 垂直方向中央揃え */
        justify-content: space-between; /* 両端配置 */
        justify-content: center;
        /*padding-bottom: 20px;*/
        box-sizing: border-box;
        padding: 0;
    }

    /* 2. タイトルラベルは上段で横幅100% */
    .stat-label {
        width: 100%;
        margin-bottom: 10px;
        font-size: 0.96em;
        padding: 0 15px 5px;
    }


    /* --- 実績エリアのスマホ専用カスタマイズ --- */
    /* 1. 数字部分（親要素） */
    .stat-number {
        display: block;
        text-align: center;
        /*font-size: 40px; */
        font-weight: bold;
        color: #333;
        line-height: 1.1;
        padding: 5px 15px 15px;
        margin: 0 auto;
    }

    /* 2. 単位部分（子要素） */
    .stat-unit {
        /* 元のテキスト「件(令和7年度)」を非表示にする */
        /*font-size: 0; */
        font-size: 0.6rem;
    }
    
    /* 「件」を擬似要素で再表示（インライン） */
    /*
    .stat-unit::before {
        content: "件";
        font-size: 1.5rem; 
        font-weight: normal;
        color: #333;
    }
    
    .stat-unit::after {
        content: "(令和7年度)";

        font-size: 1.5rem;
        font-weight: normal;
        color: #333;
        display: block;
        margin-top: 5px;
    }
    */


    /* 3. ボタン（stat-footer）のレイアウト修正 */
    .stat-footer {
        height: 80px;
        min-height: 60px;
        padding: 0 0 10px;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        
        width: 100%;
        max-width: 300px;
        margin: 0 15px 20px;
        line-height: 1.2;
        position: relative;
        padding-right: 0;
    }

    /* 1行目のテキスト（新規〇〇件） */
    .stat-footer > span:first-child {
        display: block;
        width: 100%;
        white-space: nowrap; /* 改行禁止 */
        text-align: center;
        font-weight: normal;
    }

    /* 数字強調（位置調整） */
    .stat-footer-num {
        font-size: 1.8em;
        font-weight: bold;
        line-height: 1;
        margin: 0 4px;
        position: relative;
        top: 3px; 
        display: inline-block;
    }

    /* 2行目の日付 */
    .stat-footer-date {
        display: block;
        margin-top: 3px;
        font-weight: normal;
        white-space: nowrap;
    }

    /* アイコン非表示 */
    .stat-footer i {
        display: none;
    }



    /* 支援カード（1列） */
    .support-cards {
        /*grid-template-columns: 1fr;*/
        gap: 15px;
    }
    .card {
        padding: 15px;
    }
    .card h3 { 
        /*font-size: 1.8em;*/ 
        font-size: 1.5em; 
        width: 60%;
        margin: 1em auto;
    }
    .card-text{
        font-size: 1.5em;
        font-weight: normal;
        width: 70%;
        margin: 1em auto;
    }
    .support-btn-lg {
        padding: 15px 40px;
        /*width: 80%;*/
        box-sizing: border-box;
    }

    .support-section .card-btn{
        padding-right: 50px;
        padding-left: 50px;
        padding-top: 0.5em;
        padding-bottom: 0.5em;
        height: auto;
        min-height: 70px;
    }

    .fa-circle-play:before, 
    .fa-play-circle:before{
        font-size: 0.64em;
        line-height: 1.8;
    }


    /* お知らせリスト */
    /* お知らせリスト（スマホレイアウト修正） */
    .news-item {
        /* 縦積み(column)ではなく、折り返しありの横並び(row wrap)にする */
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center; /* 垂直方向中央揃え */
        gap: 10px;           /* 要素間の隙間 */
        padding: 20px 0;     /* 上下の余白調整 */
    }

    /* 1. タグ（お知らせ/その他） */
    .news-tag {
        margin-right: 0;
        /* 幅は維持（124px） */
    }

    /* 2. 日付 */
    .news-date {
        margin-right: 0;
        margin-bottom: 0; /* 下マージンを削除 */
        font-size: 14px;
        /* 幅を指定せず、タグの横に並ぶようにする */
        width: auto; 
    }

    /* 3. タイトル（強制的に改行させて2行目に配置） */
    .news-title {
        width: 100%; /* 横幅いっぱいにすることで改行される */
        margin-top: 5px; /* 上との隙間 */
        line-height: 1.5;
    }
    
    /* ビューオールボタン */
    .view-all-btn { 
        width: 80%; 
    }



    /* パートナーエリア */
    .report-btn {
        padding: 15px 40px;
        width: 80%;
        box-sizing: border-box;
    }

    /* --- パートナーロゴエリア（スマホレイアウト変更） --- */
    .partner-logos {
        /* 縦積み(column)をやめて、折り返し可能な横並びにする */
        flex-direction: row; 
        flex-wrap: wrap;     
        justify-content: center;
        gap: 20px 10px;      /* 上下20px、左右10pxの隙間 */
    }

    /* 1つ目のロゴ（松江商工会議所）：横幅100%で上段に配置 */
    .partner-link:nth-child(1) {
        width: 100%;
        text-align: center;
    }
    
    /* 2つ目・3つ目のロゴ：横幅約50%で下段に並べる */
    .partner-link:nth-child(2),
    .partner-link:nth-child(3) {
        width: calc(50% - 10px); /* 左右の隙間分を引く */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 画像サイズの調整 */
    .partner-link img { 
        max-width: 100%; 
        height: auto; 
        /* max-height: 60px; */
        width: auto;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 50px;
    }
    .footer-left{
        margin: 0 auto;
        text-align:center;
    }
    .footer-right {
        display: none;
        /*flex-direction: column;*/
        /*gap: 30px;*/
    }

    /* TOPへ戻るボタンのスマホ調整 */
    .back-to-top {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    .btt-triangle {
        border-width: 0 7px 10px 7px;
        margin-bottom: 3px;
    }
    .btt-text {
        font-size: 10px;
    }
}

/* スマホ小画面用 (max-width: 600px) */
@media (max-width: 580px) {
    .fa-circle-play:before, 
    .fa-play-circle:before{

    }
    .support-cards{
        gap: 10px;
    }
    .card{
        padding: 10px 5px;
    }

    .fa-circle-play:before{
        vertical-align: middle;
    }
    /* 実績（縦積み） */
    .stats-grid {
        gap: 10px;
        align-items: self-start;
    }
    .stat-number{
        font-size: 1.5em;
    }
    .stat-unit::after{
        font-size: 1.25rem;
    }
    .stat-label{
        padding: 0px 10px 5px;
    }
    .stat-unit{
        margin: 0 auto;
        padding: 5px 10px 10px;
    }

    .footer-contact-btn {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 550px) {
    .stat-footer{
        padding: 0.5em;
        width: auto;
        margin: 0.25em 0.25em 0.25em;
        height: auto;
        border-radius: 12px;
    }
    .stat-unit{
        padding: 0;
    }
    .stat-footer > span:first-child{
        font-size: 0.96em;
    }
    .stat-footer-num{
        font-size: 0.96em;
    }
    .stat-footer-date{
        font-size: 0.96em;
    }
}

@media (max-width: 440px) {
    .card h3{
        font-size: 1.15em;
        width: 100%;
    }
    .card-text{
        font-size: 1.15em;
        width: 100%;
    }
    .card-btn{
        height: auto; 
    }
    .stat-label{
        padding: 0px 5px 5px;
        font-size: 0.86em;
    }
    .stat-unit::before {
        font-size: 1.15rem;
    }    
    .stat-number{
        margin: 0 auto;
        padding: 0.5em 0;
    }    
    .stat-unit::after{
        font-size: 1rem;
    }
    .stat-footer{
        width: 90%;
        margin: 0 auto 0.5em;
        padding: 0.25em 0;
    }
    .stat-footer > span:first-child{
        font-size: 0.76em;
    }
    .stat-footer-date{
        font-size: 0.66em;
    }
    .stat-footer-num{
        display: contents;
    }

    .support-section .card-btn{
        padding-left: 30px;
        padding-right: 30px;
        font-size: 0.94em;
    }
    .report-title{
        font-size: 14px;
    }
}


