/* ========================================
   TalentFlow Single Job - Brand #E8554A
   ======================================== */

:root {
    --tf-primary: #E8554A;
    --tf-primary-dark: #D4403A;
    --tf-primary-light: #F07A70;
    --tf-primary-bg: #FDF3F2;
    --tf-primary-bg2: #FCE8E6;
    --tf-text: #2D2D2D;
    --tf-text-light: #666;
    --tf-text-muted: #999;
    --tf-border: #F0D5D2;
    --tf-white: #FFFFFF;
    --tf-shadow: 0 2px 12px rgba(232,85,74,0.08);
    --tf-shadow-lg: 0 8px 30px rgba(232,85,74,0.12);
    --tf-radius: 12px;
    --tf-radius-sm: 8px;
}

.tf-single-job { font-family: 'Hiragino Sans','Hiragino Kaku Gothic ProN','Noto Sans JP',sans-serif; color: var(--tf-text); line-height: 1.8; -webkit-font-smoothing: antialiased; }
.tf-single-job *, .tf-single-job *::before, .tf-single-job *::after { box-sizing: border-box; }

/* CTAバー */
.tf-cta-bar { background: var(--tf-primary); padding: 10px 0; position: relative; z-index: 100; }
.tf-cta-bar.tf-cta-sticky { position: fixed; top: 0; left: 0; right: 0; box-shadow: 0 2px 16px rgba(232,85,74,0.3); animation: tf-slideDown 0.3s ease; }
@keyframes tf-slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.tf-cta-bar-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tf-cta-phone { display: flex; align-items: center; gap: 8px; color: var(--tf-white); text-decoration: none; transition: opacity 0.2s; }
.tf-cta-phone:hover { opacity: 0.85; }
.tf-cta-phone svg { flex-shrink: 0; }
.tf-cta-phone-num { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; }
.tf-cta-phone-note { font-size: 12px; opacity: 0.85; margin-left: 4px; }
.tf-cta-apply-btn { background: var(--tf-white); color: var(--tf-primary); padding: 10px 32px; border-radius: 50px; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.tf-cta-apply-btn:hover { background: var(--tf-primary-bg); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

/* ヒーロー */
.tf-hero { background: linear-gradient(135deg, #FFFFFF 0%, var(--tf-primary-bg) 100%); padding: 36px 0 40px; border-bottom: 1px solid var(--tf-border); }
.tf-hero-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.tf-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tf-tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; line-height: 1.4; }
.tf-tag-type { background: var(--tf-primary); color: var(--tf-white); }
.tf-tag-industry { background: var(--tf-primary-bg2); color: var(--tf-primary-dark); }
.tf-tag-remote { background: #E8F5E9; color: #2E7D32; }
.tf-tag-category { background: #E3F2FD; color: #1565C0; }
.tf-tag-skill { background: var(--tf-primary-bg); color: var(--tf-primary-dark); }
.tf-tag-google { background: #FFF3E0; color: #E65100; }
.tf-tag-indeed { background: #E8EAF6; color: #283593; }
.tf-hero-title { font-size: 28px; font-weight: 800; line-height: 1.4; margin: 0 0 8px; color: var(--tf-text); }
.tf-hero-company { font-size: 15px; color: var(--tf-text-light); margin: 0 0 24px; font-weight: 500; }

/* 情報カードグリッド */
.tf-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tf-info-card { background: var(--tf-white); border: 1px solid var(--tf-border); border-radius: var(--tf-radius-sm); padding: 16px; text-align: center; box-shadow: var(--tf-shadow); transition: box-shadow 0.2s; }
.tf-info-card:hover { box-shadow: var(--tf-shadow-lg); }
.tf-info-icon { font-size: 24px; margin-bottom: 6px; }
.tf-info-label { font-size: 11px; font-weight: 600; color: var(--tf-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.tf-info-value { font-size: 14px; font-weight: 600; color: var(--tf-text); line-height: 1.5; }
.tf-info-salary { color: var(--tf-primary) !important; font-weight: 700 !important; }

/* 2カラム */
.tf-content-wrap { max-width: 1100px; margin: 0 auto; padding: 32px 24px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.tf-main { min-width: 0; }

/* セクション */
.tf-section { background: var(--tf-white); border-radius: var(--tf-radius); padding: 32px; margin-bottom: 24px; border: 1px solid var(--tf-border); box-shadow: var(--tf-shadow); }
.tf-section-title { font-size: 20px; font-weight: 700; color: var(--tf-primary); margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--tf-primary-bg2); display: flex; align-items: center; gap: 8px; }
.tf-section-icon { font-size: 22px; }
.tf-section-body { font-size: 15px; line-height: 1.9; color: var(--tf-text); }
.tf-section-body p { margin: 0 0 16px; }
.tf-section-body p:last-child { margin-bottom: 0; }
.tf-section-body strong, .tf-section-body b { color: var(--tf-primary-dark); }

/* テーブル */
.tf-detail-table { width: 100%; border-collapse: collapse; }
.tf-detail-table tr { border-bottom: 1px solid var(--tf-border); }
.tf-detail-table tr:last-child { border-bottom: none; }
.tf-detail-table th { width: 130px; padding: 14px 16px; font-size: 13px; font-weight: 600; color: var(--tf-text-light); vertical-align: top; white-space: nowrap; background: var(--tf-primary-bg); border-radius: 4px 0 0 4px; }
.tf-detail-table td { padding: 14px 16px; font-size: 15px; }
.tf-salary-highlight { color: var(--tf-primary) !important; font-weight: 700 !important; font-size: 16px !important; }

/* スキルタグ */
.tf-skills-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-skill-tag { display: inline-block; background: var(--tf-primary-bg); color: var(--tf-primary-dark); padding: 6px 16px; border-radius: 24px; font-size: 14px; font-weight: 500; border: 1px solid var(--tf-primary-bg2); transition: background 0.2s; }
.tf-skill-tag:hover { background: var(--tf-primary-bg2); }

/* 応募CTA */
.tf-apply-section { background: linear-gradient(135deg, var(--tf-primary-bg) 0%, var(--tf-white) 100%); border: 2px solid var(--tf-primary-light); }
.tf-apply-box { text-align: center; }
.tf-apply-lead { font-size: 15px; color: var(--tf-text-light); margin-bottom: 24px; line-height: 1.8; }
.tf-apply-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tf-btn-apply-large { display: inline-flex; align-items: center; gap: 8px; background: var(--tf-primary); color: var(--tf-white); padding: 18px 48px; border-radius: 50px; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(232,85,74,0.3); transition: all 0.3s ease; }
.tf-btn-apply-large:hover { background: var(--tf-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,85,74,0.4); }
.tf-btn-phone-large { display: inline-flex; align-items: center; gap: 10px; background: var(--tf-white); color: var(--tf-primary); padding: 14px 32px; border-radius: 50px; font-size: 14px; font-weight: 600; text-decoration: none; border: 2px solid var(--tf-primary); transition: all 0.3s ease; text-align: left; line-height: 1.4; }
.tf-btn-phone-large:hover { background: var(--tf-primary-bg); }
.tf-btn-phone-large strong { font-size: 18px; color: var(--tf-primary-dark); }
.tf-line-cta { margin-top: 8px; }
.tf-btn-line { display: inline-flex; align-items: center; gap: 10px; color: var(--tf-text-light); text-decoration: none; font-size: 14px; padding: 8px; border-radius: 8px; transition: background 0.2s; }
.tf-btn-line:hover { background: var(--tf-primary-bg); }

/* サイドバー */
.tf-sidebar { min-width: 0; }
.tf-sidebar-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }
.tf-sidebar-card { background: var(--tf-white); border-radius: var(--tf-radius); padding: 24px 20px; border: 1px solid var(--tf-border); box-shadow: var(--tf-shadow); }
.tf-sidebar-heading { font-size: 15px; font-weight: 700; color: var(--tf-text); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--tf-primary-bg2); }
.tf-sidebar-cta { text-align: center; }
.tf-sidebar-apply-btn { display: block; background: var(--tf-primary); color: var(--tf-white); padding: 16px; border-radius: 50px; font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(232,85,74,0.25); transition: all 0.3s ease; }
.tf-sidebar-apply-btn:hover { background: var(--tf-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(232,85,74,0.35); }
.tf-sidebar-phone-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--tf-primary); border: 2px solid var(--tf-primary); padding: 12px; border-radius: 50px; font-size: 16px; font-weight: 700; text-decoration: none; transition: all 0.2s ease; }
.tf-sidebar-phone-btn:hover { background: var(--tf-primary-bg); }
.tf-sidebar-dl { margin: 0; font-size: 13px; }
.tf-sidebar-dl dt { color: var(--tf-text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 12px; }
.tf-sidebar-dl dt:first-child { margin-top: 0; }
.tf-sidebar-dl dd { margin: 2px 0 0 0; font-size: 14px; font-weight: 500; color: var(--tf-text); line-height: 1.5; }
.tf-sidebar-salary-val { color: var(--tf-primary) !important; font-weight: 700 !important; font-size: 15px !important; }
.tf-related-list { list-style: none; margin: 0; padding: 0; }
.tf-related-item { border-bottom: 1px solid var(--tf-border); padding: 12px 0; }
.tf-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.tf-related-item:first-child { padding-top: 0; }
.tf-related-item a { text-decoration: none; display: block; transition: opacity 0.2s; }
.tf-related-item a:hover { opacity: 0.7; }
.tf-related-title { display: block; font-size: 13px; font-weight: 600; color: var(--tf-primary); line-height: 1.5; margin-bottom: 2px; }
.tf-related-meta { font-size: 12px; color: var(--tf-text-muted); line-height: 1.4; }

/* モバイルフッター */
.tf-mobile-footer { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999; background: var(--tf-white); padding: 12px 16px; box-shadow: 0 -2px 16px rgba(0,0,0,0.1); gap: 10px; justify-content: center; align-items: center; }
.tf-m-apply { flex: 1; background: var(--tf-primary); color: var(--tf-white); padding: 14px; border-radius: 50px; text-align: center; font-weight: 700; font-size: 16px; text-decoration: none; box-shadow: 0 2px 10px rgba(232,85,74,0.3); transition: background 0.2s; }
.tf-m-apply:hover { background: var(--tf-primary-dark); }
.tf-m-phone { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--tf-primary); display: flex; align-items: center; justify-content: center; color: var(--tf-primary); text-decoration: none; flex-shrink: 0; transition: background 0.2s; }
.tf-m-phone:hover { background: var(--tf-primary-bg); }

/* レスポンシブ */
@media (max-width: 900px) {
    .tf-cta-bar { display: none; }
    .tf-mobile-footer { display: flex; }
    .tf-single-job { padding-bottom: 80px; }
    .tf-hero { padding: 24px 0 28px; }
    .tf-hero-title { font-size: 22px; }
    .tf-hero-company { font-size: 14px; margin-bottom: 16px; }
    .tf-info-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .tf-info-card { padding: 12px; }
    .tf-info-icon { font-size: 20px; }
    .tf-info-value { font-size: 13px; }
    .tf-content-wrap { grid-template-columns: 1fr; padding: 20px 16px 40px; gap: 20px; }
    .tf-sidebar { display: none; }
    .tf-section { padding: 24px 20px; margin-bottom: 16px; }
    .tf-section-title { font-size: 18px; }
    .tf-detail-table th { width: 90px; padding: 10px 12px; font-size: 12px; }
    .tf-detail-table td { padding: 10px 12px; font-size: 14px; }
    .tf-apply-actions { flex-direction: column; }
    .tf-btn-apply-large { width: 100%; justify-content: center; font-size: 16px; padding: 16px 32px; }
    .tf-btn-phone-large { width: 100%; justify-content: center; text-align: center; }
}
@media (min-width: 901px) and (max-width: 1100px) {
    .tf-content-wrap { grid-template-columns: 1fr 280px; }
    .tf-info-grid { grid-template-columns: repeat(2, 1fr); }
}
.tf-job-not-found { text-align: center; padding: 80px 20px; color: var(--tf-text-muted); }

/* ========================================
   TOP画像バナー & インライン画像
   ======================================== */
.tf-top-banner {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 0;
    position: relative;
    background: #f5f5f5;
}
.tf-top-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

/* インライン画像（セクション間） */
.tf-inline-image {
    margin: 8px 0 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: #f5f5f5;
}
.tf-inline-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 320px;
    transition: transform 0.4s ease;
}
.tf-inline-image:hover img {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .tf-top-banner { max-height: 220px; }
    .tf-top-banner-img { max-height: 220px; }
    .tf-inline-image { margin: 4px 0 16px; border-radius: 8px; }
    .tf-inline-image img { max-height: 200px; }
}

/* ===== Favorite Button ===== */
.tf-fav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.tf-fav-btn:hover {
    border-color: #e8546c;
    transform: scale(1.08);
}
.tf-fav-btn .tf-fav-icon {
    color: #9ca3af;
    transition: all 0.25s;
}
.tf-fav-btn:hover .tf-fav-icon {
    color: #e8546c;
}
.tf-fav-btn.tf-fav-active {
    background: #fef2f4;
    border-color: #e8546c;
}
.tf-fav-btn.tf-fav-active .tf-fav-icon {
    color: #e8546c;
    fill: #e8546c;
}
.tf-fav-btn.tf-fav-active:hover {
    transform: scale(1.08);
}
@keyframes tf-fav-pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.tf-fav-btn.tf-fav-active .tf-fav-icon {
    animation: tf-fav-pop 0.3s ease;
}

/* Mobile Favorite Button */
.tf-m-fav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.2s;
}
.tf-m-fav:hover, .tf-m-fav.tf-fav-active {
    border-color: #e8546c;
    color: #e8546c;
    background: #fef2f4;
}
.tf-m-fav.tf-fav-active svg {
    fill: #e8546c;
}
