:root {
    --primary: #1a2a40;
    --accent: #f39c12;
    --light-gray: #f4f7f6;
}

/* Base */
body { margin: 0; font-family: sans-serif; color: #333; overflow-x: hidden; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-light { background: var(--light-gray); padding: 80px 0; }

/* Header & Nav */
header { background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.flex-header { display: flex; justify-content: space-between; align-items: center; }
nav a { text-decoration: none; color: #333; margin-left: 20px; font-weight: bold; font-size: 0.9rem; transition: 0.3s; }
nav a:hover { color: var(--accent); }

/* Scroll Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tabs */
.tab-menu { display: flex; gap: 10px; margin-bottom: 20px; justify-content: center; }
.tab-btn {
    padding: 12px 25px;
    border: none;
    background: #ddd;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.tab-btn.active { background: var(--primary); color: #fff; }

.tab-content { display: none; background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* Job Table */
.info-table { width: 100%; margin-top: 20px; border-collapse: collapse; }
.info-table th { width: 30%; text-align: left; padding: 10px; border-bottom: 1px solid #eee; color: var(--primary); }
.info-table td { padding: 10px; border-bottom: 1px solid #eee; }

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: 0.3s;
}
.floating-btn:hover { transform: scale(1.05); }

/* Selection Flow Steps */
.flow-steps { display: flex; justify-content: space-between; margin-top: 40px; position: relative; }
.step { text-align: center; flex: 1; z-index: 1; }
.step-num { 
    width: 50px; height: 50px; background: var(--primary); color: #fff; 
    border-radius: 50%; display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 10px; font-weight: bold; 
}

/* Hero (Simple zoom effect) */
.hero { height: 60vh; display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; text-align: center; }

/* --- カッコいいボタンのカスタマイズ --- */

.btn-main.btn-shine {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 50px;
    background: linear-gradient(45deg, #f39c12, #e67e22); /* グラデーション */
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden; /* 光をはみ出させない */
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* ボタン内の文字とアイコンを前面に */
.btn-main.btn-shine span,
.btn-main.btn-shine i {
    position: relative;
    z-index: 2;
}

/* ホバー時の挙動 */
.btn-main.btn-shine:hover {
    transform: translateY(-5px); /* 上に浮く */
    box-shadow: 0 15px 30px rgba(243, 156, 18, 0.5);
    background: linear-gradient(45deg, #e67e22, #f39c12);
}

/* アイコンの動き */
.btn-main.btn-shine i {
    transition: transform 0.3s ease;
}

.btn-main.btn-shine:hover i {
    transform: translateX(5px); /* 矢印が右に動く */
}

/* 光が走るエフェクト（擬似要素） */
.btn-main.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    z-index: 1;
}

/* 定期的に光を走らせるアニメーション */
.btn-main.btn-shine::after {
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -60%; }
    20% { left: 120%; }
    100% { left: 120%; }
}

/* クリックした時の「押し込んだ」感 */
.btn-main.btn-shine:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(243, 156, 18, 0.3);
}

/* --- 既存のCSSの後に追記 --- */

/* タブレット・スマホ共通 (1000px以下) */
@media screen and (max-width: 1000px) {
    .container {
        padding: 0 30px;
    }
}

/* スマートフォン対応 (768px以下) */
@media screen and (max-width: 768px) {
    /* Base */
    .bg-light { padding: 50px 0; }
    .section-title { font-size: 1.5rem; margin-bottom: 30px; }

    /* Header */
    header { padding: 10px 0; }
    nav a { margin-left: 10px; font-size: 0.8rem; }
    .logo { font-size: 1.2rem; }

    /* Hero */
    .hero { height: auto; padding: 80px 0; }
    .hero-content h2 { font-size: 1.8rem; line-height: 1.4; }
    .btn-main.btn-shine {
        padding: 15px 35px;
        font-size: 1rem;
    }

    /* Tabs (スマホでは横に並べず、押しやすく調整) */
    .tab-menu {
        flex-direction: column;
        gap: 8px;
    }
    .tab-btn {
        width: 100%;
        padding: 15px;
    }
    .tab-content { padding: 20px; }

    /* Job Table (スマホでは1行1項目に) */
    .info-table th, .info-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .info-table th {
        padding-bottom: 0;
        font-size: 0.8rem;
        color: #888;
    }
    .info-table td {
        padding-top: 5px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

	.job-body {
	font-size:12px;
	}

    /* Selection Flow (横並びから縦並びへ) */
    .flow-steps {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .step {
        width: 100%;
        position: relative;
    }
    /* ステップ間の線を縦向きにするための装飾（任意） */
    .step:not(:last-child)::after {
	display:none;
    }

    /* Floating Button (少しコンパクトに) */
    .floating-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

	.sp_none {
	display: none;
	}
}

/* 極小デバイス用 (480px以下) */
@media screen and (max-width: 480px) {
    .hero-content h2 { font-size: 1.5rem; }
    .sub-copy { font-size: 0.8rem; }
    
    /* ナビゲーションが入り切らない場合は非表示にするか調整 */
    nav {
        display: none; /* 本格的な対応ならここでハンバーガーメニューに切り替え */
    }
}