/*
Theme Name: Recruit Hub Theme
Description: StockSun流 B2B採用支援テーマ（完全レスポンシブ版）
Version: 3.0.0
Author: Hiroshima Partners
*/

/* ==========================================================================
   1. 基本設定・変数
   ========================================================================== */
:root {
    --color-text: #333333;       /* メインテキスト */
    --color-bg: #FFFFFF;         /* 背景白 */
    --color-bg-gray: #F3F4F6;    /* 背景薄グレー */
    --color-primary: #111827;    /* 信頼の濃紺/黒（ヘッダー・フッター） */
    --color-accent: #D97706;     /* 情熱のオレンジ（アクセント） */
    --color-cta: #F59E0b;        /* CVボタン（目立つ黄色/オレンジ） */
    --color-border: #E5E7EB;     /* 境界線 */

    --width-max: 1200px;         /* コンテンツ最大幅 */
    --header-height-pc: 80px;    /* PCヘッダー高さ */
    --header-height-sp: 60px;    /* SPヘッダー高さ */
    
    --font-base: "Noto Sans JP", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height-pc); /* ヘッダー固定分の余白 */
}

@media screen and (max-width: 960px) {
    body {
        padding-top: var(--header-height-sp);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ユーティリティ */
.l-container {
    width: 100%;
    max-width: var(--width-max);
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 80px 0; }
.bg-gray { background-color: var(--color-bg-gray); }
.u-text-center { text-align: center; }
.u-sp-only { display: none; }
.u-pc-only { display: block; }

@media screen and (max-width: 960px) {
    .section-padding { padding: 60px 0; }
    .u-sp-only { display: block; }
    .u-pc-only { display: none; }
}

/* ==========================================================================
   2. ヘッダー（StockSun流 B2B仕様）
   ========================================================================== */
.l-header {
    width: 100%;
    height: var(--header-height-pc);
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.l-header__inner {
    max-width: var(--width-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.l-header__logo-link {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-main {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}
.logo-sub {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

/* PC用ナビゲーション */
.l-header__nav .nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.l-header__nav .nav-item a {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}
.l-header__nav .nav-item a:hover {
    color: var(--color-accent);
}

/* PC用 CTAエリア（ダブルボタン） */
.l-header__actions {
    display: flex;
    gap: 10px;
}
.c-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    line-height: 1;
}
.c-header-btn--sub {
    background: #fff;
    border: 1px solid #ccc;
    color: #333;
}
.c-header-btn--sub:hover {
    background: #f9f9f9;
}
.c-header-btn--main {
    background: var(--color-cta);
    border: 1px solid var(--color-cta);
    color: #fff;
    box-shadow: 0 2px 5px rgba(245, 158, 11, 0.4);
}
.c-header-btn--main:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* スマホ用ハンバーガーボタン */
.l-header__hamburger {
    display: none; /* PCでは非表示 */
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    z-index: 1100; /* ドロワーより上 */
}
.l-header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    position: absolute;
    left: 10px;
    transition: 0.3s;
}
.l-header__hamburger span:nth-child(1) { top: 14px; }
.l-header__hamburger span:nth-child(2) { top: 21px; }
.l-header__hamburger span:nth-child(3) { top: 28px; }

/* ハンバーガーのアクティブ状態 */
.l-header__hamburger.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.l-header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.l-header__hamburger.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ドロワーメニュー（スマホ用） */
.l-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding-top: var(--header-height-sp);
}
.l-drawer.is-active {
    right: 0;
}
.l-drawer__nav {
    list-style: none;
    padding: 0;
    margin: 0;
}
.l-drawer__nav li {
    border-bottom: 1px solid #eee;
}
.l-drawer__nav li a {
    display: block;
    padding: 15px 20px;
    font-weight: 700;
    color: var(--color-text);
}
.l-drawer__btns {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* SP用レスポンシブ設定 */
@media screen and (max-width: 960px) {
    .l-header { height: var(--header-height-sp); }
    .l-header__nav, .l-header__actions { display: none; } /* PCナビ非表示 */
    .l-header__hamburger { display: block; } /* ハンバーガー表示 */
}

/* ==========================================================================
   3. トップページ（LPエリア）
   ========================================================================== */
/* FV */
.p-fv {
    padding: 80px 0;
    background: linear-gradient(135deg, #F3F4F6 0%, #fff 100%);
}
.p-fv__inner {
    display: flex;
    align-items: center;
    gap: 50px;
}
.p-fv__content { flex: 1; }
.p-fv__img { flex: 1; }
.p-fv__sub {
    font-weight: bold;
    color: var(--color-accent);
    display: block;
    margin-bottom: 10px;
}
.p-fv__title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.4;
    margin: 0 0 20px 0;
}
.p-fv__lead {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .p-fv { padding: 40px 0; }
    .p-fv__inner { flex-direction: column-reverse; }
    .p-fv__title { font-size: 28px; }
}

/* 共通セクション */
.c-section-title {
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
}
.c-section-lead {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .c-section-title { font-size: 24px; }
    .c-section-lead { font-size: 14px; margin-bottom: 30px; }
}

/* グリッドレイアウト（解決策・パートナー） */
.p-grid {
    display: grid;
    gap: 30px;
    /* 300px以上のカードが入るだけ並べる */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* パートナーカード */
.c-partner-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}
.c-partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.c-partner-card__img {
    height: 200px;
    background: #ddd;
    overflow: hidden;
}
.c-partner-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.c-partner-card__body { padding: 20px; }
.c-partner-card__job {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-accent);
    margin-bottom: 5px;
}
.c-partner-card__name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* 実績カード */
.c-case-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.c-case-card__head { margin-bottom: 10px; }
.c-badge {
    background: #F3F4F6;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
}
.c-case-card__title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.c-case-card__result {
    background: #FEF3C7;
    padding: 10px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* ボタン */
.c-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    border-radius: 6px;
    padding: 16px 40px;
    cursor: pointer;
    font-size: 16px;
}
.c-btn--primary {
    background: var(--color-cta);
    color: #fff;
    box-shadow: 0 4px 6px rgba(245, 158, 11, 0.3);
}
.c-btn--primary:hover {
    background: #d97706;
}
.c-btn--secondary {
    background: #fff;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.c-btn--full {
    width: 100%;
    background: var(--color-cta);
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}
.c-btn--sub-full {
    width: 100%;
    background: #f5f5f5;
    color: #333;
    padding: 15px;
    text-align: center;
    border-radius: 4px;
}

/* ==========================================================================
   4. フッター
   ========================================================================== */
.l-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 60px 0 20px;
}
.l-footer__content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.l-footer__logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}
.l-footer__info {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.8;
}
.footer-nav li {
    list-style: none;
    margin-bottom: 10px;
}
.footer-nav a { color: #fff; opacity: 0.7; }
.l-footer__copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 12px;
    opacity: 0.5;
}

@media screen and (max-width: 768px) {
    .l-footer__content { flex-direction: column; gap: 40px; }
}

/* CTAセクション（フッター直前） */
.c-cta-section {
    background: var(--color-bg-gray);
    padding: 80px 0;
    text-align: center;
}