/* ========================================
   TOPページ
   ======================================== */

/* ===== HERO ===== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;

    background: var(--white) url('/images/背景_装飾つき.png') no-repeat center top / cover;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    max-width: 1320px;
    padding: 64px 60px 32px;
}

.hero-content {
    text-align: left;
    max-width: 460px;
}

.hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--black);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.8;
}

.hero-badges {
    display: block;
    width: 100%;
    max-width: 460px;
    height: auto;
    margin-top: 32px;
}

.hero-visual {
    flex-shrink: 0;
}

.hero-illustration {
    display: block;
    width: 100%;
}

.hero-illustration--pc {
    max-width: 580px;
}

.hero-illustration--sp {
    display: none;
}

/* 検索バー */
.hero-search-wrap {
    width: 100%;
    padding: 0 40px 48px;
    display: flex;
    justify-content: center;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 840px;
}

.hero-search select.hero-select {
    flex: 1;
    min-width: 140px;
    padding: 14px 36px 14px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--white);
    background-repeat: no-repeat, no-repeat;
    background-position: 14px center, calc(100% - 14px) center;
    background-size: 16px 16px, 12px 12px;
    font-size: 14px;
    color: var(--black);
    outline: none;
    cursor: pointer;
    appearance: none;
}

.hero-select--job {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.hero-select--location {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.hero-search input.hero-keyword {
    flex: 2;
    padding: 14px 16px 14px 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 16px 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    font-size: 14px;
    outline: none;
}

.hero-search input.hero-keyword::placeholder {
    color: var(--gray-400);
}

/* ===== 検索ボタン（グラデーション・ピル型） ===== */
.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(90deg, #1565C0, #26C6DA);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
    flex-shrink: 0;
    border-radius: 100px;
}

.btn-search svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-search:hover {
    opacity: 0.85;
}

.btn-primary {
    margin-bottom: 20px;
}

/* ===== AI SECTION ===== */
.ai-section {
    background: #f5f5f0;
    padding: 72px 40px;
    text-align: center;
}

.ai-section .section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 28px;
    line-height: 1.5;
}

.ai-section .btn-matching {
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}

.step-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-number {
    font-size: 12px;
    font-weight: 700;
    color: #1565C0;
    margin-bottom: 4px;
}

.step-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 12px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== JOBS SECTION ===== */
.jobs-section {
    padding: 40px;
    background: var(--white);
}

.jobs-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.jobs-inner .section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.jobs-inner .btn-matching {
    margin-bottom: 36px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: left;
}

.job-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    background: var(--white);
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.job-card-top {
    padding: 16px 16px 14px;
    flex: 1;
    position: relative;
}

.job-date {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.job-tags {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 青 */
.job-tag {
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1565C0;
}

.job-tag::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 14px;
    background: #1565C0;
    border-radius: 2px;
    flex-shrink: 0;
}

/* 緑 */
.job-tag.tag-green {
    color: #2E7D32;
}
.job-tag.tag-green::before {
    background: #2E7D32;
}

/* オレンジ */
.job-tag.tag-orange {
    color: #E65100;
}
.job-tag.tag-orange::before {
    background: #E65100;
}

.job-card-bottom {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.job-info-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.job-company-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-location-tag {
    font-size: 11px;
    color: var(--gray-400);
}

/* 矢印：青丸・線のみ */
.job-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.job-arrow:hover {
    opacity: 0.7;
}

/* ===== FAVORITE BUTTON ===== */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    padding: 0;
    z-index: 1;
}

.favorite-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-btn__icon {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
    transition: color 0.2s, fill 0.2s;
}

.favorite-btn--active .favorite-btn__icon {
    color: #e53e3e;
    fill: #e53e3e;
}

.favorite-btn:hover .favorite-btn__icon {
    color: #e53e3e;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-inner { padding: 48px 40px 24px; gap: 24px; }
    .hero-illustration--pc { max-width: 420px; }
    .hero-badges { max-width: 360px; }
    .hero-search-wrap { padding: 0 40px 28px; }
    .jobs-section { padding: 56px 24px; }
    .ai-section { padding: 56px 24px; }
}

@media (max-width: 768px) {
    .hero {
        background-image: url('/images/sp_top_MV_BG_装飾あり.png');
    }

    .hero-inner {
        flex-direction: column;
        padding: 40px 20px 20px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-title { font-size: 32px; }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-badges { display: none; }

    .hero-illustration--pc { display: none; }

    .hero-illustration--sp {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        max-width: 420px;
        margin: 24px auto 0;
    }

    .hero-badges-sp {
        display: block;
        width: 28%;
        height: auto;
        flex-shrink: 0;
    }

    .hero-ai-sp {
        display: block;
        width: 68%;
        height: auto;
    }

    .hero-search-wrap { padding: 16px 20px 28px; }

    .hero-search {
        flex-direction: column;
        overflow: visible;
        background: transparent;
        gap: 10px;
    }

    .hero-search select.hero-select,
    .hero-search input.hero-keyword {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .ai-section { padding: 48px 16px; }
    .jobs-section { padding: 48px 16px; }
}