/* * ====================================================================================
 * スタイルシート：共通テーマ設定と主要なレイアウトの修正
 * ファイル名: style.css
 * ====================================================================================
 */

/* -----------------------------------
 * 1. テーマカラー・フォント設定
 * ----------------------------------- */

/* 2026/01/06 にコメントアウトした。 */
/* もともとタイプミスで正常に読み込めていなかったが、その状態でサイトは動作していたので不要と判断 */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap'); */

/* Bootstrapのプライマリカラーを緑色に設定 */
:root {
    --bs-primary: #4CAF50;    /* 標準の緑色 (ボタン、アクティブ状態) */
    --bs-primary-hover: #45A049; /* ホバー時の濃い緑色 */
    --bs-secondary: #3dcf3a;  /* セカンダリカラー */
}

body {
    font-family: 'Inter', sans-serif;
    color: #2B2C2E; /* 基本のテキスト色 */
}

/* -----------------------------------
 * 2. ユーティリティクラス
 * ----------------------------------- */

.fw-medium { font-weight: 600; }
.mt-6 { margin-top: 5rem; }
.mb-6 { margin-bottom: 5rem; }
.pt-6 { padding-top: 5rem; }
.pb-6 { padding-bottom: 5rem; }

/* アンカーオフセット調整 */
.anchor-offset {
    padding-top: 200px !important;
    margin-top: -90px !important;
}


/* -----------------------------------
 * 3. General Link Style
 * ----------------------------------- */
a {
    color: var(--bs-primary);
    transition: 0.3s;
    text-decoration: none; /* 下線をなくす */
}

a:hover,
a:focus {
    color: var(--bs-primary-hover);
    text-decoration: underline; /* ホバーで下線を表示 */
}




/* -----------------------------------
 * 4. ボタン
 * ----------------------------------- */

.btn {
    transition: .5s;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.375rem; /* 角丸を追加 */
}

/* プライマリボタンの色をテーマカラーに統一 */
.btn-primary,
.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-light) !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-secondary);
}

/* 各種サイズのボタン */
.btn-square { width: 38px; height: 38px; }
.btn-sm-square { width: 32px; height: 32px; }
.btn-lg-square { width: 48px; height: 48px; }
.btn-xl-square { width: 60px; height: 60px; }
.btn-xxl-square { width: 75px; height: 75px; }

.btn-square,
.btn-sm-square,
.btn-lg-square,
.btn-xl-square,
.btn-xxl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0.375rem;
}

/* -----------------------------------
 * 5. ナビゲーション
 * ----------------------------------- */

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* ナビバーに影を追加 */
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color:#2B2C2E;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary); /* テーマカラー適用 */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/* -----------------------------------
 * 6. ページネーション (最優先で緑色を適用)
 * ----------------------------------- */

/* アクティブなページ (現在地) */
.page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #ffffff !important;
    z-index: 2;
}

/* 非アクティブなページリンクのホバー/フォーカス時 */
.page-link:hover,
.page-link:focus {
    color: #ffffff !important;
    background-color: var(--bs-primary-hover) !important;
    border-color: var(--bs-primary-hover) !important;
    box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important;
}

/* 通常のページリンクの色（文字色をテーマカラーに） */
.page-link {
    color: var(--bs-primary) !important;
}


/* ---------------------------------------------
 * 7. テーブル（モバイル向けレスポンシブ）seach.html用
 * --------------------------------------------- */

@media (max-width: 991.98px) {
    /* ヘッダーの非表示 */
    .table-responsive-custom thead {
        display: none;
    }
    /* 行とセルの表示設定 */
    .table-responsive-custom tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 0.5rem; /* 角丸を追加 */
        overflow: hidden;
    }
    .table-responsive-custom td {
        display: block;
        width: 100% !important;
        padding: .75rem 1rem; /* パディングを調整 */
        border-top: none;
    }

    /* 企業情報セルと認定日セルのスタイル */
    .table-responsive-custom .td-rank-date {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 0.75rem;
        border-top: 1px solid #dee2e6;
    }

    /* モバイル時の画像サイズ調整 */
    .table-responsive .d-lg-none img {
        height: 25px !important;
        width: auto !important;
    }

    /* モバイル時のボタン調整 */
    .btn-group-sm-custom .btn {
        --bs-btn-padding-y: 0.15rem;
        --bs-btn-padding-x: 0.5rem;
        --bs-btn-font-size: 0.75rem;
    }

    .btn-group-sm-custom-text {
        font-size: 0.8rem;
    }
}


/* -----------------------------------
 * 8. スピナー / トップへ戻るボタン
 * ----------------------------------- */

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/* ---------------------------------------------------------------
 * 9. アコーディオン（所在地エリア）　Index.Html,sab.html,sabr6.html
 * ---------------------------------------------------------------- */

@media (min-width: 992px) {
    /* PC: アコーディオンの中身を強制的に表示し、一覧表示に固定 */
    .area-accordion .accordion-collapse {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* PC: アコーディオンの開閉ボタンの機能を無効化 */
    .area-accordion .accordion-button {
        cursor: default !important;
        box-shadow: none !important;
    }

    /* PC: 開閉インジケーター（矢印など）を非表示にする */
    .area-accordion .accordion-button::after {
        display: none !important;
    }

    /* PC: ヘッダーボタンの見た目を調整 */
    .area-accordion .accordion-header button {
        padding: .5rem 1rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ---------------------------------------------------------------
 * 10. トップ画像
 * ---------------------------------------------------------------- */

 .image-display-container {
            /* 最大幅をmd (768px) に設定 */
            max-width: 1920px;
			margin-top:250px;
            margin-left: auto;
            margin-right: auto;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            border-radius: 1rem; /* 角丸を適用 */
            overflow: hidden; /* 角丸からはみ出さないように設定 */
        }

        /* 画像がコンテナの幅に収まり、レスポンシブになるようにする */
        .responsive-image {
            width: 100%;
            height: auto;
            display: block;
            /* 16:9の比率を維持 */
            aspect-ratio: 16 / 9;
            object-fit: cover;
        }




/* ---------------------------------------------------------------
 * 10. 認定ランクロゴサイズ変更　sab.html,sabr6.html
 * ---------------------------------------------------------------- */

/* Logo Image */
.logo-img {
    height: 150px;
    width: auto;
    display: block;
}

/* Mobile Typography */
@media (max-width: 767.98px) {
    .display-6 span {
        font-size: 1.5rem !important;
    }

    .nintei-grid img {
        width: 45%;
        height: auto;
    }
}


/* -----------------------------------
 *11. カルーセルアイテム (今日のピックアップ)
 * ----------------------------------- */

.team-carousel .team-item {
    height: 100%; /* 親要素に依存 */
}

/* <a>タグ (cardクラスを持つ) をFlexコンテナにし、高さを統一 */
.team-carousel .team-item .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, .08);
    transition: transform 0.3s; /* ホバーアニメーション */
}

/* ホバー時の効果 */
.team-carousel .team-item .card:hover {
    transform: translateY(-5px);
}

/* Team / Owl Carousel Navigation (画面端固定) */
.owl-carousel .owl-nav {
    position: static;
}

.owl-carousel .owl-prev,
.owl-carousel .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-20%);
    z-index: 1050;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 2.5rem;
}

.owl-carousel .owl-prev:hover,
.owl-carousel .owl-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.owl-carousel .owl-prev { left: 20px; }
.owl-carousel .owl-next { right: 20px; }


/* テキストエリア: 残りのスペースを埋めて高さを統一し、垂直方向中央にテキストを配置 */
.team-carousel .team-item .card .bg-light {
    flex-grow: 1; /* 残りのスペースを埋める */
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直中央揃え */
    align-items: center;
    text-align: center;
    /* p-4 (padding: 1.5rem) を優先するため、!importantは不要 */
}

/* 画像を囲むコンテナ: 高さを固定し、画像サイズを統一 */
.card-img-wrapper {
    width: 100%;
    height: 200px; /* 画像の高さを固定 */
    overflow: hidden;
    /* Flex設定は不要 - flex-direction: column; の子要素なので */
}

.card-img-wrapper img {
    /* 画像をトリミングしてコンテナを埋める */
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* -----------------------------------
 * 12. 検索ワードアイテム
 * ----------------------------------- */


/* Feature Item Hover Effect - 検索ワード(揺れる動作) */
.feature-item {
        transition: transform 0.3s ease-in-out, box-shadow 0.3s;
}

/* ★ホバー時に「揺れる」動作を適用 (わずかに浮き上がり、わずかに回転) */
.feature-row .col-lg-3:hover .feature-item {
    transform: translateY(-5px) rotate(1deg); /* これが揺れるアニメーションです */
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
    border-color: var(--bs-primary);

}

/* ----------------------------------
 * 13. おすすめで検索アイテム
 * ----------------------------------- */

        #workstyle-search-section {
            /* このセクションのスタイルを明確にスコープするためにIDを使用 */
            padding-top: 3rem; /* 上下のパディングを少し調整 */
            padding-bottom: 3rem;
        }

        /* 項目全体の初期設定とホバーアニメーションをこのセクション内に限定 */
        #workstyle-search-section .feature-item {
            /* 角丸とオーバーフローを隠す */
            border-radius: 0.75rem;
            overflow: hidden;
            /* スムーズなトランジション設定 (この設定で「揺れる」動きが滑らかになります) */
            transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
            background-color: white; /* 背景色 */
            border: 1px solid #e0e0e0; /* 境界線を明確に */
        }

        /* ホバー時: 上に少し移動し、影を付ける（浮き上がる/揺れる効果）を限定 */
        #workstyle-search-section .feature-item:hover {
            transform: translateY(-8px); /* 上に移動 */
            box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15); /* 大きめの影 */
        }

        /* 検索ワード (h5) のアニメーション設定を限定 */
        #workstyle-search-section .feature-item .service-text h5 {
            /* スムーズなアニメーションのためのトランジション */
            transition: all 0.3s ease-in-out;
            color: #333; /* 初期色 */
            display: inline-block; /* transformを適用可能にする */
        }

        /* ホバー時: h5タイトルを拡大し、緑色に変化させるアニメーションを限定 */
        #workstyle-search-section .feature-item:hover .service-text h5 {
            color: #198754 !important; /* Bootstrapの'success'カラー */
            transform: scale(1.05); /* わずかに拡大 */
        }

        /* アイコンのスタイルを限定 */
        #workstyle-search-section .feature-icon {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 1.5rem;
            background-color: #f8f9fa; /* 薄いグレーの背景 */
            border-bottom: 1px solid #eee;
        }

        /* 項目内の詳細エリアのパディング調整 */
        #workstyle-search-section .feature-item .p-5 {
             padding: 1.5rem !important; /* パディングを少し調整 */
        }
        #workstyle-search-section .feature-item .pt-0 {
             padding-top: 0 !important;
        }

/* -----------------------------------
 * 14. セクションタイトルと背景
 * ----------------------------------- */

.section-title h6:before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -50px;
    margin-top: -1px;
    background: var(--bs-secondary);
}

.section-title h6:after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -50px;
    margin-top: -1px;
    background: var(--bs-secondary);
}


/* ---------------------------------------------------- */
/*　15.表示順ボタンの色変更 (Primaryカラーを緑色に上書き) */
/* ---------------------------------------------------- */

/* カスタムプロパティ（緑色の定義）*/
/* サイトの「いつもの緑」に合わせて値を調整してください */
:root {
    --custom-green: #38a169; /* ベースの緑色 */
    --custom-green-dark: #2c774f; /* ホバー・アクティブ時の濃い緑色 */
}

/* アウトラインボタンの基本スタイル（非アクティブ時） */
.sort-fill-group .btn-outline-primary {
    color: var(--custom-green); /* 文字色を緑に */
    border-color: var(--custom-green); /* 枠線を緑に */
}

/* アウトラインボタンがホバーされたとき */
.sort-fill-group .btn-outline-primary:hover:not(:disabled) {
    color: #fff; /* 文字色を白に */
    background-color: var(--custom-green-dark); /* 背景色を濃い緑に */
    border-color: var(--custom-green-dark); /* 枠線を濃い緑に */
}

/* ボタンがアクティブ状態のとき（押されている状態） */
.sort-fill-group .btn-outline-primary.active,
.sort-fill-group .btn-outline-primary:active {
    color: #fff !important; /* 文字色を白に */
    background-color: var(--custom-green) !important; /* 背景色を緑に */
    border-color: var(--custom-green) !important; /* 枠線を緑に */
    box-shadow: none !important; /* フォーカス時の影を消す（任意） */
}

/* 無効なボタンのスタイル */
.sort-fill-group .btn-outline-primary:disabled {
    opacity: 0.5; /* 透明度を下げて無効であることを示す */
    color: var(--custom-green);
    border-color: var(--custom-green);

}
/* ======================================================================
    17. レスポンシブフォントサイズ調整のカスタムCSS
  ======================================================================*/

        /* .responsive-h5 は、h5要素がデスクトップサイズで標準の見た目を保つために使用されます。 */

        @media (max-width: 767.98px) {
            /* 画面幅がsmブレイクポイント（768px）未満の場合に適用されるスタイル */
            .responsive-h5 {
                /* フォントサイズをh6相当、または少し大きめに設定（例: 1.1rem） */
                font-size: 1.1rem !important;
            }
        }
 /* ======================================================================
   18.  ボタンを文字量に関係なく底に固定するCSS（Flexboxレイアウト）
 ======================================================================*/

        /* 1. カードの高さを揃えるための必須スタイル */
        .card-container-wrapper {
            /* 全てのカードコンテナ（col）に適用 */
            height: 100% !important;
        }

        /* 2. card-bodyにFlex設定を強制する */
        .card-body.d-flex.flex-column.h-100 {
            height: 100% !important;
        }


	/* 認定ランク　スマートフォンでの画像サイズ調整 */
@media (max-width: 767.98px) {
    /* img-fluid が適用されている画像が、親要素の幅を超えないようにする */
    /* ここでは、画像を中央寄せするためのクラスも含めて適用 */
    .container-fluid.bg-light img {
        /* 幅を100%にすることで、親要素(col-6)の幅いっぱいに広がる */
        width: 100%;
        /* 最大幅を100%にすることで、親要素を超えないようにする */
        max-width: 100%;
        /* 必要であれば、最大の高さを制限できます (例: max-height: 100px;) */
        height: auto;
    }
}

/*これで検索のボタン*/

        /* 画面幅が767.98px以下の場合に適用 */
        @media (max-width: 767.98px) {
            .btn-responsive-text {
                /* スマートフォン表示時に文字サイズを16pxに縮小 */
                font-size: 14px !important;
            }
        }

/* ======================================================================
   19. フッター、コピーライトなど
 ======================================================================*/

.footer .btn.btn-link {
    color: var(--bs-secondary);
}
.footer .btn.btn-link::before {
    color: var(--bs-primary);
}

/* フッターのbtn-linkも同様にテーマカラーに合わせる */
.btn-link {
    color: var(--bs-white); /* フッターは背景が暗いので白に */
    text-decoration: none;
}

.btn-link:hover {
    color: var(--bs-primary); /* ホバーでプライマリカラーに */
    text-decoration: underline;
}

.copyright a:hover {
    color: var(--bs-primary);
}

/* コピーライトにスマホ対応 */
@media (max-width: 767.98px) {
            .copyright-small-text {
                font-size: 0.80rem; /* スマートフォンでのみフォントを縮小 */
                white-space: nowrap; /* 強制的に折り返しを防止 */
                overflow: hidden;
                text-overflow: ellipsis;
            }
        }



