/* ========================================
   リセット & 基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

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

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー（重なり問題を修正）
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 12px 0;
}

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

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
}

.header-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.company-name {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
    flex-shrink: 0;
    display: none;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-list li a {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-list li a:hover {
    background: #333;
    color: #667eea;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.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);
}

/* タブレット以下でハンバーガーメニューに切り替え */
@media (max-width: 1024px) {
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }

    .header-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li a {
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
    }

    .hamburger {
        display: flex;
    }
}

/* スマホでさらにコンパクトに */
@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 15px;
        gap: 10px;
    }

    .header-logo {
        height: 32px;
    }

    .company-name {
        font-size: 13px;
    }
}

/* ========================================
   ファーストビュー
======================================== */
body {
    padding-top: 70px;
}

.hero {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #fff;
}

.hero-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        padding: 40px 20px;
    }

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

    .hero-subtitle {
        font-size: 15px;
    }
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: #ff6b6b;
    color: #fff;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: #2ecc71;
    color: #fff;
}

.btn-secondary:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

/* ========================================
   スライダー
======================================== */
.slider-container {
    overflow: hidden;
    background: #f8f9fa;
    padding: 30px 0;
}

.slider {
    display: flex;
    animation: slide 40s linear infinite;
    width: fit-content;
}

.slide {
    flex-shrink: 0;
    width: 300px;
    height: 225px;
    margin: 0 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   セクション共通
======================================== */
.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: #667eea;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    section {
        padding: 50px 0;
    }
}

/* ========================================
   こんな方歓迎
======================================== */
.welcome {
    background: #f8f9fa;
}

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

.welcome-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.welcome-card:hover {
    transform: translateY(-5px);
}

.welcome-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.welcome-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   会社について
======================================== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

/* ========================================
   仕事内容（ジグザグ）
======================================== */
.business {
    background: #f8f9fa;
}

.business-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.business-item:last-child {
    margin-bottom: 0;
}

.business-item-reverse {
    direction: rtl;
}

.business-item-reverse .business-text {
    direction: ltr;
}

.business-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.business-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.business-text p {
    font-size: 15px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .business-item,
    .business-item-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .business-item-reverse .business-text {
        direction: ltr;
    }

    .business-image {
        order: -1;
    }
}

/* ========================================
   CTA
======================================== */
.cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   入社後の流れ・魅力・メンバー（3カラムカード）
======================================== */
.flow-cards,
.merit-cards,
.member-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.flow-card,
.merit-card,
.member-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.flow-card:hover,
.merit-card:hover,
.member-card:hover {
    transform: translateY(-5px);
}

.flow-image,
.merit-image,
.member-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.flow-card h3,
.merit-card h3,
.member-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    padding: 20px 20px 10px;
}

.flow-card p,
.merit-card p,
.member-card p {
    font-size: 14px;
    line-height: 1.8;
    padding: 0 20px 20px;
}

.flow {
    background: #f8f9fa;
}

.merit {
    background: #f8f9fa;
}

/* ========================================
   スケジュール
======================================== */
.schedule {
    background: #f8f9fa;
}

.schedule-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    min-width: 80px;
    flex-shrink: 0;
}

.schedule-content {
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .schedule-card {
        padding: 25px;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========================================
   おわりに
======================================== */
.closing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.closing-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.closing-text {
    font-size: 16px;
    line-height: 1.9;
    text-align: center;
}

/* ========================================
   募集要項
======================================== */
.requirements {
    background: #f8f9fa;
}

.requirements-content {
    max-width: 900px;
    margin: 0 auto;
}

.req-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.req-item:last-child {
    margin-bottom: 0;
}

.req-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.req-item p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.req-item p:last-child {
    margin-bottom: 0;
}

.warning-text {
    color: #e74c3c;
    font-weight: 700;
    background: #ffe6e6;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

/* ========================================
   応募フォーム
======================================== */
.contact {
    background: #f8f9fa;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.required {
    color: #e74c3c;
    font-size: 12px;
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   フッター
======================================== */
.footer {
    background: #2c3e50;
    color: #fff;
    padding: 50px 0 30px;
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.footer-logo .company-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: none;
}

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

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #667eea;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-bottom p {
    font-size: 13px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
