/* ===================================
   ジェイアール西日本マルニックス 採用サイト
   扉ページスタイル
=================================== */

/* ===================================
   CSS Variables
=================================== */
:root {
    /* Primary Colors - 爽やかなブルー */
    --color-primary: #0077b6;
    --color-primary-dark: #023e8a;
    --color-primary-light: #00b4d8;
    
    /* Accent Colors - シアン系 */
    --color-accent: #00b4d8;
    --color-accent-light: #48cae4;
    
    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #e8e8e8;
    --color-gray-300: #d1d1d1;
    --color-gray-500: #888888;
    --color-gray-700: #4a4a4a;
    
    /* Typography */
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base
=================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ja);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-black);
    background-color: var(--color-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Entrance Page Layout
=================================== */
.entrance-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Header
=================================== */
.entrance-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.logo-text {
    font-family: var(--font-ja);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
}

.logo-sub {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.2em;
}

.corporate-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: var(--transition-base);
}

.corporate-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   Entrance Main - 3分割レイアウト
=================================== */
.entrance-main {
    flex: 1;
    display: flex;
    min-height: 100vh;
}

.entrance-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: var(--space-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: flex var(--transition-slow);
}

.entrance-section:hover {
    flex: 1.3;
}

.entrance-section.preparing {
    cursor: default;
}

.entrance-section.preparing:hover {
    flex: 1;
}

/* 背景 */
.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.section-new-graduate .bg-image {
    object-position: center 30%;
}

.entrance-section:hover .bg-image {
    transform: scale(1.05);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    transition: var(--transition-base);
}

.section-new-graduate .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 119, 182, 0.3) 0%,
        rgba(2, 62, 138, 0.6) 50%,
        rgba(2, 62, 138, 0.88) 100%
    );
}

.section-new-graduate:hover .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 180, 216, 0.2) 0%,
        rgba(0, 119, 182, 0.5) 50%,
        rgba(2, 62, 138, 0.8) 100%
    );
}

.section-driver .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 119, 182, 0.35) 0%,
        rgba(2, 62, 138, 0.55) 50%,
        rgba(2, 62, 138, 0.85) 100%
    );
}

.section-driver:hover .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 180, 216, 0.25) 0%,
        rgba(0, 119, 182, 0.5) 50%,
        rgba(2, 62, 138, 0.8) 100%
    );
}

.section-parttime .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 180, 216, 0.3) 0%,
        rgba(0, 119, 182, 0.5) 50%,
        rgba(2, 62, 138, 0.8) 100%
    );
}

.section-parttime:hover .bg-overlay {
    background: linear-gradient(
        180deg,
        rgba(72, 202, 228, 0.25) 0%,
        rgba(0, 180, 216, 0.45) 50%,
        rgba(0, 119, 182, 0.75) 100%
    );
}

/* コンテンツ */
.section-content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
}

.section-number {
    display: block;
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.title-en {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: var(--space-xs);
}

.title-ja {
    display: block;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.5;
}

.section-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
}

/* ボタン */
.section-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-base);
}

.section-btn:hover {
    background-color: var(--color-accent-light);
    transform: translateX(5px);
}

.section-btn svg {
    transition: transform var(--transition-base);
}

.section-btn:hover svg {
    transform: translateX(5px);
}

/* 準備中バッジ */
.preparing-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.preparing-badge span {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-white);
}

.preparing-text {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-bottom: 0;
}

/* ===================================
   Footer
=================================== */
.entrance-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) var(--space-xl);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    text-align: center;
}

.copyright {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

/* ===================================
   Responsive Design
=================================== */
@media screen and (max-width: 1024px) {
    .entrance-header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .entrance-section {
        padding: var(--space-xl) var(--space-md);
    }
    
    .entrance-section:hover {
        flex: 1.2;
    }
}

@media screen and (max-width: 768px) {
    html, body {
        overflow: hidden;
        height: 100%;
        height: 100dvh;
        position: fixed;
        width: 100%;
    }
    
    .entrance-page {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }
    
    .entrance-header {
        position: absolute;
        padding: 12px 16px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    }
    
    .logo a {
        gap: 8px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-text {
        font-size: 0.9375rem;
    }
    
    .logo-sub {
        font-size: 0.625rem;
    }
    
    .entrance-main {
        flex: 1;
        flex-direction: column;
        min-height: 0;
    }
    
    .entrance-section {
        flex: 1;
        min-height: 0;
        padding: 15px 16px;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .entrance-section:hover {
        flex: 1;
    }
    
    .entrance-section:hover .bg-image {
        transform: scale(1);
    }
    
    /* SPでの背景画像位置調整 */
    .section-new-graduate .bg-image {
        object-position: center 60%;
    }
    
    .section-driver {
        flex: 0.85;
    }
    
    .section-driver .bg-image {
        object-position: center center;
        transform: scale(1.3);
    }
    
    /* SPでのオーバーレイ調整 */
    .section-new-graduate .bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 119, 182, 0.4) 0%,
            rgba(2, 62, 138, 0.75) 100%
        );
    }
    
    .section-driver .bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 119, 182, 0.4) 0%,
            rgba(2, 62, 138, 0.75) 100%
        );
    }
    
    .section-parttime .bg-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 180, 216, 0.3) 0%,
            rgba(0, 119, 182, 0.65) 100%
        );
    }
    
    /* セクション間の区切り線 */
    .entrance-section:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        z-index: 20;
    }
    
    .section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .section-number {
        font-size: 0.625rem;
        margin-bottom: 4px;
    }
    
    .section-title {
        margin-bottom: 8px;
    }
    
    .title-ja {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
        line-height: 1.4;
    }
    
    .section-desc {
        font-size: 0.75rem;
        line-height: 1.6;
        margin-bottom: 20px;
        opacity: 0.85;
    }
    
    .section-btn {
        margin: 0 auto;
        padding: 12px 28px;
        font-size: 0.875rem;
        gap: 10px;
    }
    
    .section-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .entrance-footer {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
        padding: 10px 16px;
    }
    
    .copyright {
        font-size: 0.5625rem;
    }
}

@media screen and (max-width: 480px) {
    .entrance-header {
        padding: 8px 12px;
    }
    
    .logo a {
        gap: 6px;
    }
    
    .logo-img {
        height: 26px;
    }
    
    .logo-text {
        font-size: 0.75rem;
    }
    
    .logo-sub {
        font-size: 0.5rem;
    }
    
    .corporate-link span {
        display: none;
    }
    
    .corporate-link {
        padding: 6px;
        border-radius: 50%;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .corporate-link svg {
        width: 12px;
        height: 12px;
    }
    
    .entrance-section {
        padding: 10px 12px;
    }
    
    .section-number {
        font-size: 0.5625rem;
        margin-bottom: 3px;
    }
    
    .section-title {
        margin-bottom: 6px;
    }
    
    .title-ja {
        font-size: 1.375rem;
        line-height: 1.3;
    }
    
    .section-desc {
        font-size: 0.6875rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .section-btn {
        padding: 10px 24px;
        font-size: 0.8125rem;
        gap: 8px;
    }
    
    .section-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .entrance-footer {
        padding: 8px 12px;
    }
    
    .copyright {
        font-size: 0.5rem;
    }
}

/* 極小画面（SE等） */
@media screen and (max-width: 375px) {
    .logo-img {
        height: 22px;
    }
    
    .logo-text {
        font-size: 0.6875rem;
    }
    
    .entrance-section {
        padding: 8px 10px;
    }
    
    .section-number {
        font-size: 0.5rem;
        margin-bottom: 2px;
    }
    
    .section-title {
        margin-bottom: 4px;
    }
    
    .title-ja {
        font-size: 1.3rem;
        line-height: 1.25;
    }
    
    .section-desc {
        font-size: 0.625rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    .section-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .section-btn svg {
        width: 16px;
        height: 16px;
    }
}
