/* ========================================
   リセット & 基本スタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

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

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

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #2c5aa0;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav a:hover {
    color: #2c5aa0;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

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

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

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

/* ========================================
   ファーストビュー
======================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 40px 20px;
    max-width: 900px;
}

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

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

/* ========================================
   画像スライダー
======================================== */
.slider-section {
    overflow: hidden;
    background: #f8f9fa;
    padding: 40px 0;
}

.slider-track {
    display: flex;
    animation: scroll 40s linear infinite;
}

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

.slide {
    min-width: 300px;
    height: 225px;
    margin: 0 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
}

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

/* ========================================
   共通セクション
======================================== */
.section {
    padding: 80px 0;
}

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

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

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #2c5aa0;
}

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

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

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

.welcome-icon {
    font-size: 60px;
    color: #2c5aa0;
    margin-bottom: 25px;
}

.welcome-card-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   会社について
======================================== */
.about-section {
    background: #fff;
}

.about-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    text-align: center;
    font-size: 18px;
    line-height: 2;
}

.about-text p {
    margin-bottom: 25px;
}

/* ========================================
   仕事内容
======================================== */
.work-section {
    background: #f8f9fa;
}

.work-item {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

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

.work-item-reverse {
    flex-direction: row-reverse;
}

.work-image-container {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-content {
    flex: 1;
}

.work-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.work-text {
    font-size: 17px;
    line-height: 1.9;
}

/* ========================================
   CTA セクション
======================================== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    margin-bottom: 35px;
    color: #555;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: #28a745;
    color: #fff;
}

.btn-secondary:hover {
    background: #1e7a34;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

/* ========================================
   カードグリッド（入社後の流れ、魅力、メンバー）
======================================== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

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

.card-image-container {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 30px;
}

.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.card-text {
    font-size: 16px;
    line-height: 1.8;
}

/* ========================================
   1日の流れ
======================================== */
.schedule-section {
    background: #f8f9fa;
}

.schedule-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.schedule-item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.schedule-time {
    flex-shrink: 0;
    width: 100px;
    font-size: 20px;
    font-weight: bold;
    color: #2c5aa0;
}

.schedule-content {
    flex: 1;
    font-size: 17px;
    line-height: 1.6;
}

/* ========================================
   おわりに
======================================== */
.ending-section {
    background: #fff;
}

.ending-image-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 3;
}

.ending-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ending-text {
    text-align: center;
    font-size: 18px;
    line-height: 2;
}

.ending-text p {
    margin-bottom: 25px;
}

/* ========================================
   募集要項
======================================== */
.recruitment-section {
    background: #f8f9fa;
}

.recruitment-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recruitment-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
}

.recruitment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recruitment-subtitle {
    font-size: 22px;
    font-weight: bold;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.recruitment-item p {
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 15px;
}

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

/* ========================================
   応募フォーム
======================================== */
.contact-section {
    background: #fff;
    padding-bottom: 100px;
}

.contact-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-form {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

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

.form-group label {
    display: block;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.required {
    color: #dc3545;
    font-weight: normal;
    font-size: 14px;
}

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

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

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: #2c5aa0;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #1e3f7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-company h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.footer-company p,
.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-contact a {
    color: #fff;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #3498db;
}

.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: #bdc3c7;
}

/* ========================================
   レスポンシブ対応（768px以下）
======================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

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

    /* ファーストビュー */
    .hero {
        min-height: 60vh;
    }

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

    .hero-text {
        font-size: 16px;
    }

    /* セクション */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 35px;
    }

    /* スライダー */
    .slide {
        min-width: 250px;
        height: 188px;
    }

    /* こんな方歓迎 */
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 仕事内容（重要：写真→文章の順序） */
    .work-item,
    .work-item-reverse {
        flex-direction: column;
        gap: 25px;
    }

    /* 写真を常に上に */
    .work-image-container {
        order: 1;
    }

    .work-content {
        order: 2;
    }

    .work-title {
        font-size: 24px;
    }

    .work-text {
        font-size: 16px;
    }

    /* カードグリッド（写真→文章の順序） */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* カード内は自動的に写真が上、コンテンツが下になる */

    /* 1日の流れ（1行箇条書き） */
    .schedule-card {
        padding: 25px;
    }

    .schedule-item {
        flex-direction: column;
        gap: 5px;
        padding: 15px 0;
    }

    .schedule-time {
        width: 100%;
        font-size: 18px;
    }

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

    /* CTA */
    .cta-box {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 26px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    /* フォーム */
    .contact-form {
        padding: 30px 20px;
    }

    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

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

    .section-title {
        font-size: 24px;
    }
}