/* ===================================
   高収入求人ポータル - メインスタイル
   =================================== */

/* ===================================
   リセット & 基本設定
   =================================== */

.forsp{display:none;}
@media (max-width: 767px) {
	.forsp{display:block;}
	.forpc{display:none !important;}
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラースキーム */
    --primary-color: #FF6B00;
    --secondary-color: #2C3E50;
    --accent-color: #F39C12;
    --bg-white: #FFFFFF;
    --bg-gray: #F8F9FA;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #BDC3C7;
    
    /* フォント */
    --font-primary: 'Noto Sans JP', sans-serif;
    
    /* スペーシング */
    --section-padding: 80px 0;
    --container-max-width: 1200px;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   ボタン
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-hero {
    padding: 18px 45px;
    font-size: 18px;
    margin: 0 10px;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-cta {
    padding: 25px 80px;
    font-size: 24px;
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ===================================
   ヘッダー
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 24px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item a {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item a:hover {
    color: var(--primary-color);
}

/* ドロップダウンメニュー */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;
    min-width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-gray);
    color: var(--primary-color);
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   ヒーローセクション
   =================================== */
.hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C3E50" opacity="0.1" width="1200" height="600"/><path fill="%23FFFFFF" opacity="0.05" d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
    padding: 0 20px;
}

.hero-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 32px;
    color: var(--bg-white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   特徴セクション
   =================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   セクションタイトル
   =================================== */
.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* ===================================
   カテゴリーセクション
   =================================== */
.categories {
    padding: var(--section-padding);
    background: var(--bg-gray);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition-normal);
}

.category-card:hover::before {
    opacity: 0.9;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.category-card:hover .category-icon,
.category-card:hover .category-name,
.category-card:hover .category-info {
    color: var(--bg-white);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.category-info {
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: var(--transition-normal);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: var(--bg-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

/* ===================================
   人気求人セクション
   =================================== */
.popular {
    padding: var(--section-padding);
    background: var(--bg-white);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.job-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition-normal);
}

.job-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.job-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-image-placeholder {
    font-size: 64px;
}

.job-content {
    padding: 25px;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.job-salary {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.job-location,
.job-company {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-content .btn {
    margin-top: 15px;
    width: 100%;
}

/* ===================================
   エリア検索セクション
   =================================== */
.area {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--secondary-color), #34495E);
    color: var(--bg-white);
}

.area .section-title {
    color: var(--bg-white);
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.area-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.area-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
}

.area-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--bg-white);
}

.area-count {
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 700;
}

/* ===================================
   CTAセクション
   =================================== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--bg-white);
    margin-bottom: 40px;
}

/* ===================================
   フッター
   =================================== */
.footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 1023px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

/* カテゴリー欄だけ3カラムに */
.footer-column:nth-child(2) .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0 15px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links i {
    margin-right: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   レスポンシブ対応
   =================================== */

/* タブレット: 768px〜1023px */
@media (max-width: 1023px) {
    .header-container {
        padding: 12px 20px;
    }
    
    .nav {
        display: none;
    }
    
    .hamburger {
        display: none;
    }
    
    .nav.active {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        padding: 20px;
    }
    
    .nav.active .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        margin-top: 10px;
        max-height: none;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .btn-hero {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .btn-cta {
        padding: 20px 60px;
        font-size: 20px;
    }
}

/* モバイル: 〜767px */
@media (max-width: 767px) {
    .hero {
        height: 300px;
		margin-top:8rem;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-hero {
        width: 100%;
        max-width: 300px;
        margin: 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: 1fr;
    }
    
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
    }
    
    .btn-cta {
        padding: 18px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 300px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* タブレットではカテゴリーを2カラムに */
    .footer-column:nth-child(2) .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* スマホ表示（767px以下） */
@media (max-width: 767px) {
    /* スマホではカテゴリーも1カラムに */
    .footer-column:nth-child(2) .footer-links {
        grid-template-columns: 1fr;
    }
}