/* ============================================================
   🌸 サトウ花店 採用サイト：共通カスタムCSS (2026.03.24 最終整地版)
   ============================================================ */

/* ------------------------------------------------------------
   1. デザインシステム & 共通カラー
   ------------------------------------------------------------ */
.text-satoh {
    color: #3b5037 !important; /* サトウグリーン */
}

/* チェックアイコンの微調整 */
i.bi-check2-circle.text-satoh {
    -webkit-text-stroke: 0.5px #3b5037;
    display: inline-block;
    vertical-align: middle;
}

/* ------------------------------------------------------------
   2. 巨大化アイコン鎮圧 (Bootstrap Icons & 自作SVG)
   ------------------------------------------------------------ */
/* Webフォント系アイコン */
.bi, svg.bi, i.bi {
    width: 1em !important;
    height: 1em !important;
    display: inline-block;
    vertical-align: -0.125em;
    fill: currentColor;
}

.btn .bi, .nav-link .bi, td .bi {
    width: 1.2em !important;
    height: 1.2em !important;
}

/* 自作SVGアイコン (.hanamise-svg) */
.icon-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FCF5ED; /* サトウベージュ */
    border-radius: 50%;
    transition: all 0.4s ease;
    cursor: pointer;
}

.hanamise-svg {
    width: 50px !important;
    height: 50px !important;
    transition: all 0.4s ease;
}

/* ホバー時の「黒×白×110%」演出 */
.job-card:hover .icon-circle {
    background-color: #333;
    transform: scale(1.1);
}

.job-card:hover .hanamise-svg {
    filter: brightness(0) invert(1); /* 黒を白に反転 */
    transform: scale(1.1);
}
/* ------------------------------------------------------------
   3. タイムラインセクション (PC: 二列ギミック / SP・TB: 一列吸着)
   ------------------------------------------------------------ */

/* === 💻 PC版（992px以上）：二列で時計がカチカチ動く === */
@media (min-width: 992px) {
    .sticky-wrapper {
        position: sticky;
        top: 100px; /* PCでの固定位置 */
        z-index: 1020;
    }

    .clock-display {
        font-size: 4rem;
        font-weight: bold;
        color: #333;
        transition: all 0.3s ease;
    }

    /* PCではスマホ用のバッジ（帯）を完全に消す */
    .sp-time-badge {
        display: none !important;
    }
}

/* === 📱 スマホ・タブレット版（991px以下）：一列で時間が吸着する === */
@media (max-width: 991px) {
    /* 1. PC用の時計ユニット（左側のcol-md-5）を非表示にする */
    #f-time-line .col-md-5 {
        display: none !important;
    }

    /* 2. 写真・説明のエリア（右側のcol-md-7）を横幅100%にする */
    #f-time-line .col-md-7 {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* 3. 各ステップの中に仕込んだ「時間の帯」の設定 */
    .sp-time-badge {
        display: block !important; /* スマホ・タブでは表示 */
        position: sticky;
        top: 0;             /* 画面最上部に吸着 */
        z-index: 1050;      /* 写真より上に */
        background-color: #f8f9fa; /* 背後を隠すための不透明色 */
        color: #3b5037;     /* サトウグリーン */
        font-size: 1.8rem;
        font-weight: bold;
        padding: 10px 20px;
        margin-left: calc(-50vw + 50%); /* 画面端まで広げる */
        margin-right: calc(-50vw + 50%);
        border-bottom: 2px solid #d4b499; /* サトウゴールドの線 */
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        text-align: center;
    }

    /* 4. 余白の調整 */
    .work-step {
        position: relative;
        z-index: 1;
        margin-bottom: 4rem; /* 次のステップとの間隔 */
    }
}

/* ------------------------------------------------------------
   4. UIコンポーネント (FAQ, Buttons, Cards)
   ------------------------------------------------------------ */
/* FAQ アコーディオン */
.recruit-faq {
    border-radius: 20px !important;
    overflow: hidden;
    border: 1px solid #dee2e6 !important;
}

.recruit-faq .accordion-button:not(.collapsed) {
    background-color: #FCF5ED !important;
    color: #3b5037 !important;
    box-shadow: none !important;
}

/* アコーディオン矢印の色調整 */
.recruit-faq .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233b5037'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* ボタン類 */
.btn-hanamise-action {
    background-color: #5d5043;
    color: #fff !important;
    border: none;
    transition: all 0.3s ease !important;
}

.btn-hanamise-action:hover {
    background-color: #8D7B68 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* カテゴリカード・ホバー */
.hover-up {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #eee;
    background-color: #fff;
}

.hover-up:hover {
    transform: translateY(-8px);
    border-color: #3b5037;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    background-color: #FCF5ED !important;
}

/* ------------------------------------------------------------
   5. 背景・ヒーロー設定
   ------------------------------------------------------------ */
#section-categories::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("../images/rec_guide_back.webp");
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

.recruit-hero {
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recruit-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.recruit-hero .hero-title {
    position: relative;
    z-index: 2;
    font-size: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ------------------------------------------------------------
   6. Page Top ボタン
   ------------------------------------------------------------ */
/* --- PageTopボタン (最強の重なり設定) --- */
#btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    /* 1. z-indexを時計(1050)より大きくして、何よりも上に持ってくる */
    z-index: 9999 !important; 
    
    /* 2. 最初は消えていて、JSで表示される設定を確認 */
    display: none; 
    
    width: 50px;
    height: 50px;
    background-color: #8D7B68;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}